Skip to content

Commit bad5397

Browse files
Update api spec (#698)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: zoo-github-actions-auth[bot] <zoo-github-actions-auth[bot]@users.noreply.github.com>
1 parent 32b1166 commit bad5397

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

kittycad/models/extended_user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class ExtendedUser(KittyCadBaseModel):
1111
1212
This is mostly used for internal purposes. It returns a mapping of the user's information, including that of our third party services we use for users: Stripe"""
1313

14+
allow_pay_as_you_go: Optional[bool] = False
15+
1416
block: Optional[BlockReason] = None
1517

1618
can_train_on_data: Optional[bool] = False

kittycad/models/update_user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
class UpdateUser(KittyCadBaseModel):
77
"""The user-modifiable parts of a User."""
88

9+
allow_pay_as_you_go: Optional[bool] = None
10+
911
company: Optional[str] = None
1012

1113
discord: Optional[str] = None

kittycad/models/user_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
class UserResponse(KittyCadBaseModel):
1010
"""Public user payload returned by the API."""
1111

12+
allow_pay_as_you_go: Optional[bool] = False
13+
1214
block: Optional[BlockReason] = None
1315

1416
block_message: Optional[str] = None

spec.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38045,6 +38045,11 @@
3804538045
"description": "Extended user information.\n\nThis is mostly used for internal purposes. It returns a mapping of the user's information, including that of our third party services we use for users: Stripe",
3804638046
"type": "object",
3804738047
"properties": {
38048+
"allow_pay_as_you_go": {
38049+
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
38050+
"default": false,
38051+
"type": "boolean"
38052+
},
3804838053
"block": {
3804938054
"nullable": true,
3805038055
"description": "If the user should be blocked and the reason why.",
@@ -60178,6 +60183,11 @@
6017860183
"description": "The user-modifiable parts of a User.",
6017960184
"type": "object",
6018060185
"properties": {
60186+
"allow_pay_as_you_go": {
60187+
"nullable": true,
60188+
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
60189+
"type": "boolean"
60190+
},
6018160191
"company": {
6018260192
"description": "The user's company.",
6018360193
"type": "string"
@@ -60589,6 +60599,11 @@
6058960599
"description": "Public user payload returned by the API.",
6059060600
"type": "object",
6059160601
"properties": {
60602+
"allow_pay_as_you_go": {
60603+
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
60604+
"default": false,
60605+
"type": "boolean"
60606+
},
6059260607
"block": {
6059360608
"nullable": true,
6059460609
"description": "If the user should be blocked and the reason why.",

0 commit comments

Comments
 (0)