Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.331.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jul 11, 2024
1 parent 402ffe0 commit 6e91990
Show file tree
Hide file tree
Showing 21 changed files with 99 additions and 28 deletions.
11 changes: 6 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.330.0
speakeasyVersion: 1.331.2
sources:
platform-source:
sourceNamespace: platform-source
sourceRevisionDigest: sha256:59b5bd8591d6b39332f73cd4256c7d340f5092490cf62b3276e8eb380cfa7dc7
sourceBlobDigest: sha256:5bb804deb2a67b94d3d214b593db4ec259c9e1dd50cc424689b59847d0465fcd
sourceRevisionDigest: sha256:14df481219fad245cca40b9bc118b435d81cf76644db91eb6cd141e1ae052504
sourceBlobDigest: sha256:5d647abdc8820166576203f4baf8ce52892bd5e7a527a4d2ddeeb588ec287226
tags:
- latest
- main
targets:
platform-library:
source: platform-source
sourceNamespace: platform-source
sourceRevisionDigest: sha256:59b5bd8591d6b39332f73cd4256c7d340f5092490cf62b3276e8eb380cfa7dc7
sourceBlobDigest: sha256:5bb804deb2a67b94d3d214b593db4ec259c9e1dd50cc424689b59847d0465fcd
sourceRevisionDigest: sha256:14df481219fad245cca40b9bc118b435d81cf76644db91eb6cd141e1ae052504
sourceBlobDigest: sha256:5d647abdc8820166576203f4baf8ce52892bd5e7a527a4d2ddeeb588ec287226
outLocation: ./platform
workflow:
workflowVersion: 1.0.0
Expand Down Expand Up @@ -105,6 +105,7 @@ workflow:
target: typescript
source: platform-source
output: ./platform
publish: {}
sync-for-commerce-library:
target: typescript
source: sync-for-commerce-source
Expand Down
10 changes: 5 additions & 5 deletions platform/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 6a970e30-8d0a-42f0-a8ce-621dfe880a1d
management:
docChecksum: ced98ff1180e32d5026f7d960a49babc
docVersion: 3.0.0
speakeasyVersion: 1.330.0
generationVersion: 2.361.10
releaseVersion: 3.0.1
configChecksum: 711ca2bc569c19eac6dff850d0442664
speakeasyVersion: 1.331.2
generationVersion: 2.366.1
releaseVersion: 3.0.2
configChecksum: b24049153b9330a7ac090f5c5932bd8b
repoURL: https://github.com/codatio/client-sdk-typescript.git
repoSubDirectory: platform
installationURL: https://gitpkg.now.sh/codatio/client-sdk-typescript/platform
Expand All @@ -15,7 +15,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.5
core: 3.11.5
core: 3.11.6
deprecations: 2.81.1
examples: 2.81.4
globalSecurity: 2.82.9
Expand Down
10 changes: 9 additions & 1 deletion platform/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.330.0 (2.361.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v3.0.1] ./platform
- [typescript v3.0.1] ./platform

## 2024-07-11 14:55:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.331.2 (2.366.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v3.0.2] ./platform
2 changes: 1 addition & 1 deletion platform/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 3.0.1
version: 3.0.2
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion platform/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@codat/platform",
"version": "3.0.1",
"version": "3.0.2",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
11 changes: 2 additions & 9 deletions platform/package-lock.json

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

3 changes: 1 addition & 2 deletions platform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codat/platform",
"version": "3.0.1",
"version": "3.0.2",
"author": "Codat",
"main": "./index.js",
"sideEffects": false,
Expand All @@ -18,7 +18,6 @@
"zod": ">= 3"
},
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"eslint": "^8.57.0",
Expand Down
7 changes: 4 additions & 3 deletions platform/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type SDKOptions = {
* Allows overriding the default retry config used by the SDK
*/
retryConfig?: RetryConfig;
timeoutMs?: number;
};

export function serverURLFromOptions(options: SDKOptions): URL | null {
Expand All @@ -54,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "3.0.0",
sdkVersion: "3.0.1",
genVersion: "2.361.10",
userAgent: "speakeasy-sdk/typescript 3.0.1 2.361.10 3.0.0 @codat/platform",
sdkVersion: "3.0.2",
genVersion: "2.366.1",
userAgent: "speakeasy-sdk/typescript 3.0.2 2.366.1 3.0.0 @codat/platform",
} as const;
23 changes: 22 additions & 1 deletion platform/src/lib/sdks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ import { SDKHooks } from "../hooks/hooks.js";
import { HookContext } from "../hooks/types.js";

export type RequestOptions = {
/**
* Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If
* `fetchOptions.signal` is set then it will take precedence over this option.
*/
timeoutMs?: number;
/**
* Sets various request options on the `fetch` call made by an SDK method.
*
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request}
*/
fetchOptions?: Omit<RequestInit, "method" | "body">;
};

Expand All @@ -24,6 +34,7 @@ type RequestConfig = {
headers?: HeadersInit;
security?: SecurityState | null;
uaHeader?: string;
timeoutMs?: number;
};

const gt: unknown = typeof globalThis === "undefined" ? null : globalThis;
Expand Down Expand Up @@ -119,10 +130,20 @@ export class ClientSDK {
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
}

let fetchOptions = options?.fetchOptions;
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
if (!fetchOptions) {
fetchOptions = { signal: timeoutSignal };
} else {
fetchOptions.signal = timeoutSignal;
}
}

const input = this.hooks$.beforeCreateRequest(context, {
url: reqURL,
options: {
...options?.fetchOptions,
...fetchOptions,
body: conf.body ?? null,
headers,
method,
Expand Down
5 changes: 5 additions & 0 deletions platform/src/sdk/companies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class Companies extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -215,6 +216,7 @@ export class Companies extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -318,6 +320,7 @@ export class Companies extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -421,6 +424,7 @@ export class Companies extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -525,6 +529,7 @@ export class Companies extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
1 change: 1 addition & 0 deletions platform/src/sdk/connectionmanagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class ConnectionManagement extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
6 changes: 6 additions & 0 deletions platform/src/sdk/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -220,6 +221,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -325,6 +327,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -431,6 +434,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -537,6 +541,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -644,6 +649,7 @@ export class Connections extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
2 changes: 2 additions & 0 deletions platform/src/sdk/corssettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class CorsSettings extends ClientSDK {
path: path$,
headers: headers$,
query: query$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -183,6 +184,7 @@ export class CorsSettings extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
4 changes: 4 additions & 0 deletions platform/src/sdk/customdatatype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class CustomDataType extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -228,6 +229,7 @@ export class CustomDataType extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -338,6 +340,7 @@ export class CustomDataType extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -464,6 +467,7 @@ export class CustomDataType extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
4 changes: 4 additions & 0 deletions platform/src/sdk/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class Groups extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -208,6 +209,7 @@ export class Groups extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -292,6 +294,7 @@ export class Groups extends ClientSDK {
path: path$,
headers: headers$,
query: query$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down Expand Up @@ -392,6 +395,7 @@ export class Groups extends ClientSDK {
headers: headers$,
query: query$,
body: body$,
timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1,
},
options
);
Expand Down
Loading

0 comments on commit 6e91990

Please sign in to comment.