Skip to content

Commit

Permalink
Update api spec (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoo-github-actions-auth[bot] authored Oct 24, 2024
1 parent 13a10c5 commit 04afe79
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kittycad/lib",
"version": "2.0.10",
"version": "2.0.11",
"description": "Javascript library for KittyCAD API",
"type": "module",
"keywords": [
Expand Down
69 changes: 68 additions & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8227,7 +8227,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubscriptionTierPrice"
"$ref": "#/components/schemas/EnterpriseSubscriptionTierPrice"
}
}
},
Expand Down Expand Up @@ -17999,6 +17999,73 @@
"pos"
]
},
"EnterpriseSubscriptionTierPrice": {
"description": "The price for an enterprise subscription.",
"oneOf": [
{
"description": "A flat price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"flat"
]
}
},
"required": [
"interval",
"price",
"type"
]
},
{
"description": "A per user price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"per_user"
]
}
},
"required": [
"interval",
"price",
"type"
]
}
]
},
"EntityCircularPattern": {
"description": "The response from the `EntityCircularPattern` command.",
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions src/api/orgs/update_enterprise_pricing_for_org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import {
ZooProductSubscriptions_type,
Error_type,
Uuid_type,
SubscriptionTierPrice_type,
EnterpriseSubscriptionTierPrice_type,
} from '../../models.js';
import { Client } from '../../client.js';

interface Update_enterprise_pricing_for_org_params {
client?: Client;
id: Uuid_type;
body: SubscriptionTierPrice_type;
body: EnterpriseSubscriptionTierPrice_type;
}

type Update_enterprise_pricing_for_org_return =
Expand Down
15 changes: 15 additions & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,20 @@ export interface EngineUtilEvaluatePath_type {
pos: Point3d_type /* The evaluated path curve position */;
}

export type EnterpriseSubscriptionTierPrice_type =
| {
interval: PlanInterval_type /* The interval the price is charged. */;
/* title:double, format:money-usd, description:The price. */
price: number;
type: 'flat';
}
| {
interval: PlanInterval_type /* The interval the price is charged. */;
/* title:double, format:money-usd, description:The price. */
price: number;
type: 'per_user';
};

export interface EntityCircularPattern_type {
/*{
"format": "uuid"
Expand Down Expand Up @@ -5799,6 +5813,7 @@ export interface Models {
EnableDryRun_type: EnableDryRun_type;
EnableSketchMode_type: EnableSketchMode_type;
EngineUtilEvaluatePath_type: EngineUtilEvaluatePath_type;
EnterpriseSubscriptionTierPrice_type: EnterpriseSubscriptionTierPrice_type;
EntityCircularPattern_type: EntityCircularPattern_type;
EntityFade_type: EntityFade_type;
EntityGetAllChildUuids_type: EntityGetAllChildUuids_type;
Expand Down

0 comments on commit 04afe79

Please sign in to comment.