Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Dec 2, 2024
1 parent 4ff67bc commit 03a3145
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 165 deletions.
19 changes: 13 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 983150e6-ebc8-43fe-9b18-750461aad344
management:
docChecksum: 2d735185f93b2f2b35ae9f3c9a9e1548
docChecksum: e2f72023c6cc876c7db4c3ea50bf541a
docVersion: 0.1.0
speakeasyVersion: 1.448.2
generationVersion: 2.467.4
releaseVersion: 0.17.3
configChecksum: 1718aa2e2a69a47dd43bb592bc9cf0fd
releaseVersion: 0.17.4
configChecksum: 9ec3ce0adc75d450c979ef2d7f33e4a1
repoURL: https://github.com/polarsource/polar-js.git
installationURL: https://github.com/polarsource/polar-js
published: true
Expand Down Expand Up @@ -560,8 +560,6 @@ generatedFiles:
- docs/models/errors/alreadycanceledsubscription.md
- docs/models/errors/alreadycanceledsubscriptionerror.md
- docs/models/errors/errort.md
- docs/models/errors/filenotfound.md
- docs/models/errors/filenotfounderror.md
- docs/models/errors/httpvalidationerror.md
- docs/models/errors/notpermitted.md
- docs/models/errors/notpermittederror.md
Expand Down Expand Up @@ -1208,7 +1206,6 @@ generatedFiles:
- src/models/components/webhooksubscriptionrevokedpayload.ts
- src/models/components/webhooksubscriptionupdatedpayload.ts
- src/models/errors/alreadycanceledsubscription.ts
- src/models/errors/filenotfound.ts
- src/models/errors/httpclienterrors.ts
- src/models/errors/httpvalidationerror.ts
- src/models/errors/index.ts
Expand Down Expand Up @@ -2020,6 +2017,8 @@ examples:
"200":
application/json: {"id": "<value>", "organization_id": "<value>", "name": "<value>", "path": "/tmp", "mime_type": "<value>", "size": 859213, "storage_version": "<value>", "checksum_etag": "<value>", "checksum_sha256_base64": "<value>", "checksum_sha256_hex": "<value>", "last_modified_at": "2023-04-03T12:48:32.050Z", "upload": {"id": "<id>", "path": "/media", "parts": []}, "version": "<value>", "service": "downloadable", "size_readable": "<value>"}
"422": {}
"201":
application/json: {"id": "<value>", "organization_id": "<value>", "name": "<value>", "path": "/var/spool", "mime_type": "<value>", "size": 86, "storage_version": "<value>", "checksum_etag": "<value>", "checksum_sha256_base64": "<value>", "checksum_sha256_hex": "<value>", "last_modified_at": "2022-07-06T00:30:20.403Z", "upload": {"id": "<id>", "path": "/etc", "parts": [{"number": 816588, "chunk_start": 586220, "chunk_end": 752438, "url": "https://harmful-disposer.com", "expires_at": "2022-09-10T10:08:53.440Z"}, {"number": 211337, "chunk_start": 64738, "chunk_end": 322997, "url": "https://blind-breastplate.name/", "expires_at": "2023-01-07T19:16:11.129Z"}, {"number": 36521, "chunk_start": 621636, "chunk_end": 650237, "url": "https://aggravating-lid.com/", "expires_at": "2023-12-25T00:15:46.309Z"}]}, "version": "<value>", "service": "product_media", "size_readable": "<value>"}
files:uploaded:
speakeasy-default-files:uploaded:
parameters:
Expand All @@ -2031,6 +2030,10 @@ examples:
"200":
application/json: {"id": "<value>", "organization_id": "<value>", "name": "<value>", "path": "/usr/ports", "mime_type": "<value>", "size": 173116, "storage_version": "<value>", "checksum_etag": "<value>", "checksum_sha256_base64": "<value>", "checksum_sha256_hex": "<value>", "last_modified_at": "2024-09-06T20:34:00.390Z", "version": "<value>", "is_uploaded": false, "created_at": "2023-12-06T04:28:57.373Z", "size_readable": "<value>", "public_url": "https://heartfelt-folklore.net/"}
"422": {}
"403":
application/json: {"detail": "<value>"}
"404":
application/json: {"detail": "<value>"}
files:update:
speakeasy-default-files:update:
parameters:
Expand All @@ -2040,6 +2043,10 @@ examples:
"200":
application/json: {"id": "<value>", "organization_id": "<value>", "name": "<value>", "path": "/srv", "mime_type": "<value>", "size": 344620, "storage_version": "<value>", "checksum_etag": "<value>", "checksum_sha256_base64": "<value>", "checksum_sha256_hex": "<value>", "last_modified_at": "2024-12-22T15:27:45.882Z", "version": "<value>", "is_uploaded": false, "created_at": "2023-06-20T18:46:17.643Z", "size_readable": "<value>", "public_url": "https://awful-technician.info"}
"422": {}
"403":
application/json: {"detail": "<value>"}
"404":
application/json: {"detail": "<value>"}
files:delete:
speakeasy-default-files:delete:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 0.17.3
version: 0.17.4
additionalDependencies:
dependencies:
standardwebhooks: ^1.0.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.448.2
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:c895668a6094ebeeb68681e8515f27cbcf5831c5529ef5234442d8dea9c6fe9c
sourceBlobDigest: sha256:a3f5791c123bd35cd8fe3e1f5413413c148d06a0f91230173a3457bc3759d86e
sourceRevisionDigest: sha256:16fb7d1b5edc47777780bef6125b331a8da1908673a62508b8d4bf195faef4b8
sourceBlobDigest: sha256:ad8b93bb52261c812faaeb35a67601df96e2d194b52535059176d5488101e192
tags:
- latest
- speakeasy-sdk-regen-1732926427
- speakeasy-sdk-regen-1733135864
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:c895668a6094ebeeb68681e8515f27cbcf5831c5529ef5234442d8dea9c6fe9c
sourceBlobDigest: sha256:a3f5791c123bd35cd8fe3e1f5413413c148d06a0f91230173a3457bc3759d86e
sourceRevisionDigest: sha256:16fb7d1b5edc47777780bef6125b331a8da1908673a62508b8d4bf195faef4b8
sourceBlobDigest: sha256:ad8b93bb52261c812faaeb35a67601df96e2d194b52535059176d5488101e192
codeSamplesNamespace: polar-oas-code-samples
codeSamplesRevisionDigest: sha256:a1f79dfa82d07a1ad2a326e98e91f569fac1eba0b5a15f04ae3ccaa1c740bad5
codeSamplesRevisionDigest: sha256:ff1b71de064fe3b9b1cd23d6efeeadf98e4b56e3242df9c01c60a966bef410a1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,14 @@ Based on:
### Generated
- [typescript v0.17.3] .
### Releases
- [NPM v0.17.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.17.3 - .
- [NPM v0.17.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.17.3 - .

## 2024-12-02 10:37:40
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.17.4] .
### Releases
- [NPM v0.17.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.17.4 - .
16 changes: 0 additions & 16 deletions docs/models/errors/filenotfound.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/models/errors/filenotfounderror.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/models/operations/filesupdateresponsefilesupdate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FilesUpdateResponseFilesUpdate

Successful Response
File updated.


## Supported Types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FilesUploadedResponseFilesUploaded

Successful Response
File upload completed.


## Supported Types
Expand Down
6 changes: 5 additions & 1 deletion docs/sdks/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ run();

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.NotPermitted | 403 | application/json |
| errors.ResourceNotFound | 404 | application/json |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

Expand Down Expand Up @@ -362,6 +364,8 @@ run();

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.NotPermitted | 403 | application/json |
| errors.ResourceNotFound | 404 | application/json |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

Expand Down Expand Up @@ -438,6 +442,6 @@ run();
| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.NotPermitted | 403 | application/json |
| errors.FileNotFound | 404 | application/json |
| errors.ResourceNotFound | 404 | application/json |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@polar-sh/sdk",
"version": "0.17.3",
"version": "0.17.4",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polar-sh/sdk",
"version": "0.17.3",
"version": "0.17.4",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/funcs/filesCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function filesCreate(
| RequestTimeoutError
| ConnectionError
>(
M.json(200, components.FileUpload$inboundSchema),
M.json(201, components.FileUpload$inboundSchema),
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
M.fail(["4XX", "5XX"]),
)(response, { extraFields: responseFields });
Expand Down
6 changes: 3 additions & 3 deletions src/funcs/filesDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function filesDelete(
Result<
void,
| errors.NotPermitted
| errors.FileNotFound
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand Down Expand Up @@ -120,7 +120,7 @@ export async function filesDelete(
const [result] = await M.match<
void,
| errors.NotPermitted
| errors.FileNotFound
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand All @@ -132,7 +132,7 @@ export async function filesDelete(
>(
M.nil(204, z.void()),
M.jsonErr(403, errors.NotPermitted$inboundSchema),
M.jsonErr(404, errors.FileNotFound$inboundSchema),
M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
M.fail(["4XX", "5XX"]),
)(response, { extraFields: responseFields });
Expand Down
8 changes: 7 additions & 1 deletion src/funcs/filesUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export async function filesUpdate(
): Promise<
Result<
operations.FilesUpdateResponseFilesUpdate,
| errors.NotPermitted
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand Down Expand Up @@ -102,7 +104,7 @@ export async function filesUpdate(

const doResult = await client._do(req, {
context,
errorCodes: ["422", "4XX", "5XX"],
errorCodes: ["403", "404", "422", "4XX", "5XX"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand All @@ -117,6 +119,8 @@ export async function filesUpdate(

const [result] = await M.match<
operations.FilesUpdateResponseFilesUpdate,
| errors.NotPermitted
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand All @@ -127,6 +131,8 @@ export async function filesUpdate(
| ConnectionError
>(
M.json(200, operations.FilesUpdateResponseFilesUpdate$inboundSchema),
M.jsonErr(403, errors.NotPermitted$inboundSchema),
M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
M.fail(["4XX", "5XX"]),
)(response, { extraFields: responseFields });
Expand Down
8 changes: 7 additions & 1 deletion src/funcs/filesUploaded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export async function filesUploaded(
): Promise<
Result<
operations.FilesUploadedResponseFilesUploaded,
| errors.NotPermitted
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand Down Expand Up @@ -104,7 +106,7 @@ export async function filesUploaded(

const doResult = await client._do(req, {
context,
errorCodes: ["422", "4XX", "5XX"],
errorCodes: ["403", "404", "422", "4XX", "5XX"],
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand All @@ -119,6 +121,8 @@ export async function filesUploaded(

const [result] = await M.match<
operations.FilesUploadedResponseFilesUploaded,
| errors.NotPermitted
| errors.ResourceNotFound
| errors.HTTPValidationError
| SDKError
| SDKValidationError
Expand All @@ -129,6 +133,8 @@ export async function filesUploaded(
| ConnectionError
>(
M.json(200, operations.FilesUploadedResponseFilesUploaded$inboundSchema),
M.jsonErr(403, errors.NotPermitted$inboundSchema),
M.jsonErr(404, errors.ResourceNotFound$inboundSchema),
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
M.fail(["4XX", "5XX"]),
)(response, { extraFields: responseFields });
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.1.0",
sdkVersion: "0.17.3",
sdkVersion: "0.17.4",
genVersion: "2.467.4",
userAgent: "speakeasy-sdk/typescript 0.17.3 2.467.4 0.1.0 @polar-sh/sdk",
userAgent: "speakeasy-sdk/typescript 0.17.4 2.467.4 0.1.0 @polar-sh/sdk",
} as const;
Loading

0 comments on commit 03a3145

Please sign in to comment.