Update api spec (#303)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							69118b949d
						
					
				
				
					commit
					8d9bc7a743
				
			
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -17,6 +17,8 @@ from ..models.zoo_tool import ZooTool
 | 
			
		||||
class ModelingAppSubscriptionTier(BaseModel):
 | 
			
		||||
    """A subscription tier we offer for the Modeling App."""
 | 
			
		||||
 | 
			
		||||
    annual_discount: Optional[int] = None
 | 
			
		||||
 | 
			
		||||
    description: str
 | 
			
		||||
 | 
			
		||||
    features: Optional[List[SubscriptionTierFeature]] = None
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,8 @@ from ..models.zoo_tool import ZooTool
 | 
			
		||||
class ZooProductSubscription(BaseModel):
 | 
			
		||||
    """A subscription to the modeling app."""
 | 
			
		||||
 | 
			
		||||
    annual_discount: Optional[int] = None
 | 
			
		||||
 | 
			
		||||
    description: str
 | 
			
		||||
 | 
			
		||||
    features: Optional[List[SubscriptionTierFeature]] = None
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,5 @@
 | 
			
		||||
from typing import Optional
 | 
			
		||||
 | 
			
		||||
from pydantic import BaseModel, ConfigDict
 | 
			
		||||
 | 
			
		||||
from ..models.modeling_app_organization_subscription_tier import (
 | 
			
		||||
@ -10,4 +12,6 @@ class ZooProductSubscriptionsOrgRequest(BaseModel):
 | 
			
		||||
 | 
			
		||||
    modeling_app: ModelingAppOrganizationSubscriptionTier = "team"  # type: ignore
 | 
			
		||||
 | 
			
		||||
    pay_annually: Optional[bool] = None
 | 
			
		||||
 | 
			
		||||
    model_config = ConfigDict(protected_namespaces=())
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,5 @@
 | 
			
		||||
from typing import Optional
 | 
			
		||||
 | 
			
		||||
from pydantic import BaseModel, ConfigDict
 | 
			
		||||
 | 
			
		||||
from ..models.modeling_app_individual_subscription_tier import (
 | 
			
		||||
@ -10,4 +12,6 @@ class ZooProductSubscriptionsUserRequest(BaseModel):
 | 
			
		||||
 | 
			
		||||
    modeling_app: ModelingAppIndividualSubscriptionTier = "free"  # type: ignore
 | 
			
		||||
 | 
			
		||||
    pay_annually: Optional[bool] = None
 | 
			
		||||
 | 
			
		||||
    model_config = ConfigDict(protected_namespaces=())
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								spec.json
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								spec.json
									
									
									
									
									
								
							@ -21161,6 +21161,13 @@
 | 
			
		||||
        "description": "A subscription tier we offer for the Modeling App.",
 | 
			
		||||
        "type": "object",
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "annual_discount": {
 | 
			
		||||
            "nullable": true,
 | 
			
		||||
            "description": "Annual discount. The percentage off the monthly price if the user pays annually.",
 | 
			
		||||
            "type": "integer",
 | 
			
		||||
            "format": "uint",
 | 
			
		||||
            "minimum": 0
 | 
			
		||||
          },
 | 
			
		||||
          "description": {
 | 
			
		||||
            "description": "A description of the tier.",
 | 
			
		||||
            "type": "string"
 | 
			
		||||
@ -32281,6 +32288,13 @@
 | 
			
		||||
            "description": "A subscription to the modeling app.",
 | 
			
		||||
            "type": "object",
 | 
			
		||||
            "properties": {
 | 
			
		||||
              "annual_discount": {
 | 
			
		||||
                "nullable": true,
 | 
			
		||||
                "description": "Annual discount. The percentage off the monthly price if the user pays annually.",
 | 
			
		||||
                "type": "integer",
 | 
			
		||||
                "format": "uint",
 | 
			
		||||
                "minimum": 0
 | 
			
		||||
              },
 | 
			
		||||
              "description": {
 | 
			
		||||
                "description": "A description of the tier.",
 | 
			
		||||
                "type": "string"
 | 
			
		||||
@ -32396,6 +32410,11 @@
 | 
			
		||||
                "$ref": "#/components/schemas/ModelingAppOrganizationSubscriptionTier"
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
          },
 | 
			
		||||
          "pay_annually": {
 | 
			
		||||
            "nullable": true,
 | 
			
		||||
            "description": "If the customer chooses to pay annually or monthly, we can add that here. The annual discount will apply if there is a discount for the subscription.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
@ -32411,6 +32430,11 @@
 | 
			
		||||
                "$ref": "#/components/schemas/ModelingAppIndividualSubscriptionTier"
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
          },
 | 
			
		||||
          "pay_annually": {
 | 
			
		||||
            "nullable": true,
 | 
			
		||||
            "description": "If the customer chooses to pay annually or monthly, we can add that here. The annual discount will apply if there is a discount for the subscription.",
 | 
			
		||||
            "type": "boolean"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user