Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #171

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ You can release to package managers by using [the `Publish PyPI` GitHub action](

### Publish manually

If you need to manually release a package, you can run the `bin/publish-pypi` script with an `PYPI_TOKEN` set on
If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
the environment.
2 changes: 1 addition & 1 deletion src/cloudflare/types/account_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccountGetResponse"]

AccountGetResponse = Union[Optional[object], Optional[str]]
AccountGetResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/account_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccountUpdateResponse"]

AccountUpdateResponse = Union[Optional[object], Optional[str]]
AccountUpdateResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/accounts/role_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["RoleGetResponse"]

RoleGetResponse = Union[Optional[object], Optional[str]]
RoleGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AddressMapDeleteResponse"]

AddressMapDeleteResponse = Union[object, List[object], str, None]
AddressMapDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccountDeleteResponse"]

AccountDeleteResponse = Union[object, List[object], str, None]
AccountDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccountUpdateResponse"]

AccountUpdateResponse = Union[object, List[object], str, None]
AccountUpdateResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["IPDeleteResponse"]

IPDeleteResponse = Union[object, List[object], str, None]
IPDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["IPUpdateResponse"]

IPUpdateResponse = Union[object, List[object], str, None]
IPUpdateResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ZoneDeleteResponse"]

ZoneDeleteResponse = Union[object, List[object], str, None]
ZoneDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ZoneUpdateResponse"]

ZoneUpdateResponse = Union[object, List[object], str, None]
ZoneUpdateResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["PrefixDeleteResponse"]

PrefixDeleteResponse = Union[object, List[object], str, None]
PrefixDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["BindingDeleteResponse"]

BindingDeleteResponse = Union[object, List[object], str]
BindingDeleteResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AvailableAlertListResponse"]

AvailableAlertListResponse = Union[object, List[object], str, None]
AvailableAlertListResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["EligibleGetResponse"]

EligibleGetResponse = Union[object, List[object], str, None]
EligibleGetResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["PagerdutyDeleteResponse"]

PagerdutyDeleteResponse = Union[object, List[object], str, None]
PagerdutyDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["WebhookDeleteResponse"]

WebhookDeleteResponse = Union[object, List[object], str, None]
WebhookDeleteResponse = Union[List[object], str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/alerting/policy_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["PolicyDeleteResponse"]

PolicyDeleteResponse = Union[object, List[object], str, None]
PolicyDeleteResponse = Union[List[object], str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/argo/smart_routing_edit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["SmartRoutingEditResponse"]

SmartRoutingEditResponse = Union[Optional[object], Optional[str]]
SmartRoutingEditResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/argo/smart_routing_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["SmartRoutingGetResponse"]

SmartRoutingGetResponse = Union[Optional[object], Optional[str]]
SmartRoutingGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["TieredCachingEditResponse"]

TieredCachingEditResponse = Union[Optional[object], Optional[str]]
TieredCachingEditResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/argo/tiered_caching_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["TieredCachingGetResponse"]

TieredCachingGetResponse = Union[Optional[object], Optional[str]]
TieredCachingGetResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/billing/profile_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ProfileGetResponse"]

ProfileGetResponse = Union[Optional[object], Optional[str]]
ProfileGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["SmartTieredCacheDeleteResponse"]

SmartTieredCacheDeleteResponse = Union[Optional[object], Optional[str]]
SmartTieredCacheDeleteResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["SmartTieredCacheEditResponse"]

SmartTieredCacheEditResponse = Union[Optional[object], Optional[str]]
SmartTieredCacheEditResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["SmartTieredCacheGetResponse"]

SmartTieredCacheGetResponse = Union[Optional[object], Optional[str]]
SmartTieredCacheGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["RequestDeleteResponse"]

RequestDeleteResponse = Union[object, List[object], str]
RequestDeleteResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["MessageDeleteResponse"]

MessageDeleteResponse = Union[object, List[object], str]
MessageDeleteResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["PriorityDeleteResponse"]

PriorityDeleteResponse = Union[object, List[object], str]
PriorityDeleteResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["CustomCertificateCreateResponse"]

CustomCertificateCreateResponse = Union[object, str]
CustomCertificateCreateResponse = Union[str, object]
2 changes: 1 addition & 1 deletion src/cloudflare/types/custom_certificate_edit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["CustomCertificateEditResponse"]

CustomCertificateEditResponse = Union[object, str]
CustomCertificateEditResponse = Union[str, object]
2 changes: 1 addition & 1 deletion src/cloudflare/types/custom_certificate_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["CustomCertificateGetResponse"]

CustomCertificateGetResponse = Union[object, str]
CustomCertificateGetResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["FallbackOriginDeleteResponse"]

FallbackOriginDeleteResponse = Union[object, str]
FallbackOriginDeleteResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["FallbackOriginGetResponse"]

FallbackOriginGetResponse = Union[object, str]
FallbackOriginGetResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["FallbackOriginUpdateResponse"]

FallbackOriginUpdateResponse = Union[object, str]
FallbackOriginUpdateResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["CustomNameserverDeleteResponse"]

CustomNameserverDeleteResponse = Union[object, List[object], str, None]
CustomNameserverDeleteResponse = Union[List[object], str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/d1/database_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["DatabaseDeleteResponse"]

DatabaseDeleteResponse = Union[object, str, None]
DatabaseDeleteResponse = Union[str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/dnssec_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["DNSSECDeleteResponse"]

DNSSECDeleteResponse = Union[object, str]
DNSSECDeleteResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccessRuleCreateResponse"]

AccessRuleCreateResponse = Union[object, str, None]
AccessRuleCreateResponse = Union[str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccessRuleEditResponse"]

AccessRuleEditResponse = Union[object, str, None]
AccessRuleEditResponse = Union[str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["AccessRuleGetResponse"]

AccessRuleGetResponse = Union[object, str, None]
AccessRuleGetResponse = Union[str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/firewall/ua_rule_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["UARuleCreateResponse"]

UARuleCreateResponse = Union[object, str, None]
UARuleCreateResponse = Union[str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/firewall/ua_rule_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["UARuleGetResponse"]

UARuleGetResponse = Union[object, str, None]
UARuleGetResponse = Union[str, object, None]
2 changes: 1 addition & 1 deletion src/cloudflare/types/firewall/ua_rule_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["UARuleUpdateResponse"]

UARuleUpdateResponse = Union[object, str, None]
UARuleUpdateResponse = Union[str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class LegacyJhsAPIResponseSingle(BaseModel):

messages: List[LegacyJhsAPIResponseSingleMessage]

result: Union[object, str, None] = None
result: Union[str, object, None] = None

success: Literal[True]
"""Whether the API call was successful"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LegacyJhsAPIResponseCollection(BaseModel):

messages: List[LegacyJhsAPIResponseCollectionMessage]

result: Union[object, List[object], str, None] = None
result: Union[List[object], str, object, None] = None

success: Literal[True]
"""Whether the API call was successful"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["GroupEditResponse"]

GroupEditResponse = Union[object, List[object], str]
GroupEditResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["GroupGetResponse"]

GroupGetResponse = Union[object, List[object], str]
GroupGetResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["RuleGetResponse"]

RuleGetResponse = Union[object, List[object], str]
RuleGetResponse = Union[List[object], str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ConfigDeleteResponse"]

ConfigDeleteResponse = Union[object, str, None]
ConfigDeleteResponse = Union[str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["VariantDeleteResponse"]

VariantDeleteResponse = Union[object, str]
VariantDeleteResponse = Union[str, object]
2 changes: 1 addition & 1 deletion src/cloudflare/types/images/v1_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["V1DeleteResponse"]

V1DeleteResponse = Union[object, str]
V1DeleteResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["IssueDismissResponse"]

IssueDismissResponse = Union[object, str]
IssueDismissResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["MiscategorizationCreateResponse"]

MiscategorizationCreateResponse = Union[object, str]
MiscategorizationCreateResponse = Union[str, object]
2 changes: 1 addition & 1 deletion src/cloudflare/types/kv/namespace_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["NamespaceDeleteResponse"]

NamespaceDeleteResponse = Union[object, str]
NamespaceDeleteResponse = Union[str, object]
2 changes: 1 addition & 1 deletion src/cloudflare/types/kv/namespace_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["NamespaceUpdateResponse"]

NamespaceUpdateResponse = Union[object, str]
NamespaceUpdateResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["BulkDeleteResponse"]

BulkDeleteResponse = Union[object, str]
BulkDeleteResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["BulkUpdateResponse"]

BulkUpdateResponse = Union[object, str]
BulkUpdateResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ValueDeleteResponse"]

ValueDeleteResponse = Union[object, str]
ValueDeleteResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ValueUpdateResponse"]

ValueUpdateResponse = Union[object, str]
ValueUpdateResponse = Union[str, object]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["HealthGetResponse"]

HealthGetResponse = Union[Optional[object], Optional[str]]
HealthGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["RegionGetResponse"]

RegionGetResponse = Union[Optional[object], Optional[str]]
RegionGetResponse = Union[Optional[str], Optional[object]]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["RegionListResponse"]

RegionListResponse = Union[Optional[object], Optional[str]]
RegionListResponse = Union[Optional[str], Optional[object]]
2 changes: 1 addition & 1 deletion src/cloudflare/types/logpush/job_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["JobDeleteResponse"]

JobDeleteResponse = Union[object, List[object], str, None]
JobDeleteResponse = Union[List[object], str, object, None]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["ConfigDeleteResponse"]

ConfigDeleteResponse = Union[object, List[object], str, None]
ConfigDeleteResponse = Union[List[object], str, object, None]
Loading