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

Update api spec #271

Merged
merged 8 commits into from
Oct 3, 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 .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3.5.1
with:
node-version: '20.5.0'
node-version: '20.9.0'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'
# Only push a tag that matches the version in package.json
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Fully typed js library, compatible with js and ts.

Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for how to to publish this.
**Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for how to to publish AND
AN EXPLANATION BEHIND THE DERIVATION PROCESS!**

### [Full documentation here](https://zoo.dev/docs/api?lang=typescript)

Expand Down
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.5",
"version": "2.0.6",
"description": "Javascript library for KittyCAD API",
"type": "module",
"keywords": [
Expand Down
1,574 changes: 1,356 additions & 218 deletions spec.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/api/service-accounts/delete_service_account_for_org.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Error_type, ServiceAccountTokenUuid_type } from '../../models.js';
import { Error_type, ServiceAccountUuid_type } from '../../models.js';
import { Client } from '../../client.js';

interface Delete_service_account_for_org_params {
client?: Client;
token: ServiceAccountTokenUuid_type;
token: ServiceAccountUuid_type;
}

type Delete_service_account_for_org_return = Error_type;
Expand Down
4 changes: 2 additions & 2 deletions src/api/service-accounts/get_service_account_for_org.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
ServiceAccount_type,
Error_type,
ServiceAccountTokenUuid_type,
ServiceAccountUuid_type,
} from '../../models.js';
import { Client } from '../../client.js';

interface Get_service_account_for_org_params {
client?: Client;
token: ServiceAccountTokenUuid_type;
token: ServiceAccountUuid_type;
}

type Get_service_account_for_org_return = ServiceAccount_type | Error_type;
Expand Down
8 changes: 2 additions & 6 deletions src/api/users/get_session_for_user.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import {
Session_type,
Error_type,
SessionTokenUuid_type,
} from '../../models.js';
import { Session_type, Error_type, SessionUuid_type } from '../../models.js';
import { Client } from '../../client.js';

interface Get_session_for_user_params {
client?: Client;
token: SessionTokenUuid_type;
token: SessionUuid_type;
}

type Get_session_for_user_return = Session_type | Error_type;
Expand Down
4 changes: 2 additions & 2 deletions src/apiGen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ export default async function apiGen(lookup: any) {
);
} else if (
reffedSchema.type === 'string' &&
refName == 'ServiceAccountTokenUuid'
refName == 'ServiceAccountUuid'
) {
inputParamsExamples.push(
`${name}: '${'svc-00000000-0000-0000-0000-000000000000'}'`,
);
} else if (
reffedSchema.type === 'string' &&
refName == 'SessionTokenUuid'
refName == 'SessionUuid'
) {
inputParamsExamples.push(
`${name}: '${'ses-00000000-0000-0000-0000-000000000000'}'`,
Expand Down
Loading
Loading