@fern-api/dynamic-ir-sdk 65.2.0 → 65.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuth.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/commons/types/FernFilepath.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/commons/types/WithDocs.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.ts +2 -2
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/Endpoint.d.ts +2 -2
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.ts +5 -5
- package/dist/cjs/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts +5 -5
- package/dist/cjs/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.ts +7 -7
- package/dist/cjs/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/types/types/NamedParameter.d.ts +2 -2
- package/dist/cjs/api/resources/dynamic/resources/types/types/ObjectType.d.ts +2 -2
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.ts +1 -1
- package/dist/cjs/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.ts +5 -5
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.ts +3 -3
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.ts +3 -3
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.ts +2 -2
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/OutputMetadata.d.ts +2 -2
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.ts +4 -4
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.ts +2 -2
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiMetadata.d.ts +3 -3
- package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.ts +1 -1
- package/dist/cjs/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.js +7 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/dynamic/resources/auth/types/HeaderAuthValues.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuth.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/auth/types/InferredAuthValues.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/commons/types/FernFilepath.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/commons/types/WithDocs.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/BodyRequest.d.mts +2 -2
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/Endpoint.d.mts +2 -2
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/EndpointExample.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/endpoints/types/InlinedRequest.d.mts +5 -5
- package/dist/esm/api/resources/dynamic/resources/environment/types/EnvironmentsConfig.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/CratesPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.mts +5 -5
- package/dist/esm/api/resources/dynamic/resources/ir/types/GeneratorConfig.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/MavenPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/NpmPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/NugetPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/PypiPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/ir/types/RubyGemsPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.mts +7 -7
- package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetResponse.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/types/types/NamedParameter.d.mts +2 -2
- package/dist/esm/api/resources/dynamic/resources/types/types/ObjectType.d.mts +2 -2
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeNoProperties.d.mts +1 -1
- package/dist/esm/api/resources/dynamic/resources/types/types/SingleDiscriminatedUnionTypeSingleProperty.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/CratesGithubPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorConfig.d.mts +5 -5
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.mts +3 -3
- package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/GithubOutputMode.d.mts +3 -3
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.mts +2 -2
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfig.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/MavenRegistryConfigV2.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/NpmGithubPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/NugetGithubPublishInfo.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/OutputMetadata.d.mts +2 -2
- package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.mts +4 -4
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.mts +2 -2
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiMetadata.d.mts +3 -3
- package/dist/esm/api/resources/generatorExec/resources/config/types/PypiRegistryConfig.d.mts +1 -1
- package/dist/esm/api/resources/generatorExec/resources/config/types/RubyGemsGithubPublishInfo.d.mts +1 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +7 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@fern-api/dynamic-ir-sdk",
|
|
44
|
-
"X-Fern-SDK-Version": "65.2.
|
|
45
|
-
"User-Agent": "@fern-api/dynamic-ir-sdk/65.2.
|
|
44
|
+
"X-Fern-SDK-Version": "65.2.1",
|
|
45
|
+
"User-Agent": "@fern-api/dynamic-ir-sdk/65.2.1",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -5,5 +5,5 @@ import type * as FernIr from "../../../../../index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface InferredAuth {
|
|
7
7
|
/** List of parameters (from token endpoint) needed for auth, including their types. */
|
|
8
|
-
parameters?: FernIr.dynamic.NamedParameter[];
|
|
8
|
+
parameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface BodyRequest {
|
|
3
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
4
|
-
body?: FernIr.dynamic.ReferencedRequestBodyType;
|
|
3
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
4
|
+
body?: FernIr.dynamic.ReferencedRequestBodyType | undefined;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface Endpoint {
|
|
3
|
-
auth?: FernIr.dynamic.Auth;
|
|
3
|
+
auth?: FernIr.dynamic.Auth | undefined;
|
|
4
4
|
declaration: FernIr.dynamic.Declaration;
|
|
5
5
|
location: FernIr.dynamic.EndpointLocation;
|
|
6
6
|
request: FernIr.dynamic.Request;
|
|
7
7
|
response: FernIr.dynamic.Response;
|
|
8
|
-
examples?: FernIr.dynamic.EndpointExample[];
|
|
8
|
+
examples?: FernIr.dynamic.EndpointExample[] | undefined;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface InlinedRequest {
|
|
3
3
|
declaration: FernIr.dynamic.Declaration;
|
|
4
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
5
|
-
queryParameters?: FernIr.dynamic.NamedParameter[];
|
|
6
|
-
headers?: FernIr.dynamic.NamedParameter[];
|
|
7
|
-
body?: FernIr.dynamic.InlinedRequestBody;
|
|
8
|
-
metadata?: FernIr.dynamic.InlinedRequestMetadata;
|
|
4
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
5
|
+
queryParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
6
|
+
headers?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
7
|
+
body?: FernIr.dynamic.InlinedRequestBody | undefined;
|
|
8
|
+
metadata?: FernIr.dynamic.InlinedRequestMetadata | undefined;
|
|
9
9
|
}
|
package/dist/cjs/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.ts
CHANGED
|
@@ -13,22 +13,22 @@ export interface DynamicIntermediateRepresentation {
|
|
|
13
13
|
version: "1.0.0";
|
|
14
14
|
types: Record<FernIr.dynamic.TypeId, FernIr.dynamic.NamedType>;
|
|
15
15
|
endpoints: Record<FernIr.dynamic.EndpointId, FernIr.dynamic.Endpoint>;
|
|
16
|
-
environments?: FernIr.dynamic.EnvironmentsConfig;
|
|
16
|
+
environments?: FernIr.dynamic.EnvironmentsConfig | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* The headers that are required on every request. These headers
|
|
19
19
|
* are typically included in the SDK's client constructor.
|
|
20
20
|
*/
|
|
21
|
-
headers?: FernIr.dynamic.NamedParameter[];
|
|
21
|
+
headers?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The path parameters that are required on every request. These
|
|
24
24
|
* path parameters are typically included in the SDK's client
|
|
25
25
|
* constructor.
|
|
26
26
|
*/
|
|
27
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
27
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Variables that are configured at the client level and can be
|
|
30
30
|
* referenced in path parameters and other contexts.
|
|
31
31
|
*/
|
|
32
|
-
variables?: FernIr.dynamic.VariableDeclaration[];
|
|
33
|
-
generatorConfig?: FernIr.dynamic.GeneratorConfig;
|
|
32
|
+
variables?: FernIr.dynamic.VariableDeclaration[] | undefined;
|
|
33
|
+
generatorConfig?: FernIr.dynamic.GeneratorConfig | undefined;
|
|
34
34
|
}
|
|
@@ -4,11 +4,11 @@ import type * as FernIr from "../../../../../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface EndpointSnippetRequest {
|
|
6
6
|
endpoint: FernIr.dynamic.EndpointLocation;
|
|
7
|
-
baseURL?: string;
|
|
8
|
-
environment?: FernIr.dynamic.EnvironmentValues;
|
|
9
|
-
auth?: FernIr.dynamic.AuthValues;
|
|
10
|
-
pathParameters?: FernIr.dynamic.Values;
|
|
11
|
-
queryParameters?: FernIr.dynamic.Values;
|
|
12
|
-
headers?: FernIr.dynamic.Values;
|
|
13
|
-
requestBody?: unknown;
|
|
7
|
+
baseURL?: string | undefined;
|
|
8
|
+
environment?: FernIr.dynamic.EnvironmentValues | undefined;
|
|
9
|
+
auth?: FernIr.dynamic.AuthValues | undefined;
|
|
10
|
+
pathParameters?: FernIr.dynamic.Values | undefined;
|
|
11
|
+
queryParameters?: FernIr.dynamic.Values | undefined;
|
|
12
|
+
headers?: FernIr.dynamic.Values | undefined;
|
|
13
|
+
requestBody?: unknown | undefined;
|
|
14
14
|
}
|
|
@@ -2,7 +2,7 @@ import type * as FernIr from "../../../../../index.js";
|
|
|
2
2
|
export interface NamedParameter {
|
|
3
3
|
name: FernIr.dynamic.NameAndWireValue;
|
|
4
4
|
typeReference: FernIr.dynamic.TypeReference;
|
|
5
|
-
propertyAccess?: FernIr.dynamic.ObjectPropertyAccess;
|
|
5
|
+
propertyAccess?: FernIr.dynamic.ObjectPropertyAccess | undefined;
|
|
6
6
|
/** If set, this parameter references a variable defined at the client level */
|
|
7
|
-
variable?: string;
|
|
7
|
+
variable?: string | undefined;
|
|
8
8
|
}
|
|
@@ -6,7 +6,7 @@ export interface ObjectType {
|
|
|
6
6
|
* List of type IDs that this object extends. Used by generators that need to
|
|
7
7
|
* handle inheritance patterns differently (e.g., Rust uses flattened wrapper fields).
|
|
8
8
|
*/
|
|
9
|
-
extends?: FernIr.dynamic.TypeId[];
|
|
9
|
+
extends?: FernIr.dynamic.TypeId[] | undefined;
|
|
10
10
|
/** Whether the type allows additional properties. */
|
|
11
|
-
additionalProperties?: boolean;
|
|
11
|
+
additionalProperties?: boolean | undefined;
|
|
12
12
|
}
|
|
@@ -2,5 +2,5 @@ import type * as FernIr from "../../../../../index.js";
|
|
|
2
2
|
export interface SingleDiscriminatedUnionTypeNoProperties {
|
|
3
3
|
discriminantValue: FernIr.dynamic.NameAndWireValue;
|
|
4
4
|
/** Any properties included here are the base and/or extended properties from the union. */
|
|
5
|
-
properties?: FernIr.dynamic.NamedParameter[];
|
|
5
|
+
properties?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
6
6
|
}
|
|
@@ -3,5 +3,5 @@ export interface SingleDiscriminatedUnionTypeSingleProperty {
|
|
|
3
3
|
typeReference: FernIr.dynamic.TypeReference;
|
|
4
4
|
discriminantValue: FernIr.dynamic.NameAndWireValue;
|
|
5
5
|
/** Any properties included here are the base and/or extended properties from the union. */
|
|
6
|
-
properties?: FernIr.dynamic.NamedParameter[];
|
|
6
|
+
properties?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
7
7
|
}
|
|
@@ -2,17 +2,17 @@ import type * as FernIr from "../../../../../index.js";
|
|
|
2
2
|
export interface GeneratorConfig {
|
|
3
3
|
dryRun: boolean;
|
|
4
4
|
irFilepath: string;
|
|
5
|
-
originalReadmeFilepath?: string;
|
|
6
|
-
license?: FernIr.generatorExec.LicenseConfig;
|
|
5
|
+
originalReadmeFilepath?: string | undefined;
|
|
6
|
+
license?: FernIr.generatorExec.LicenseConfig | undefined;
|
|
7
7
|
output: FernIr.generatorExec.GeneratorOutputConfig;
|
|
8
8
|
/** Deprecated. Use output.mode instead. */
|
|
9
|
-
publish?: FernIr.generatorExec.GeneratorPublishConfig;
|
|
9
|
+
publish?: FernIr.generatorExec.GeneratorPublishConfig | undefined;
|
|
10
10
|
workspaceName: string;
|
|
11
11
|
organization: string;
|
|
12
|
-
customConfig?: unknown;
|
|
12
|
+
customConfig?: unknown | undefined;
|
|
13
13
|
environment: FernIr.generatorExec.GeneratorEnvironment;
|
|
14
14
|
whitelabel: boolean;
|
|
15
15
|
writeUnitTests: boolean;
|
|
16
|
-
generatePaginatedClients?: boolean;
|
|
16
|
+
generatePaginatedClients?: boolean | undefined;
|
|
17
17
|
generateOauthClients: boolean;
|
|
18
18
|
}
|
package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface GeneratorOutputConfig {
|
|
3
3
|
path: string;
|
|
4
|
-
snippetFilepath?: string;
|
|
5
|
-
snippetTemplateFilepath?: string;
|
|
6
|
-
publishingMetadata?: FernIr.generatorExec.PublishingMetadata;
|
|
4
|
+
snippetFilepath?: string | undefined;
|
|
5
|
+
snippetTemplateFilepath?: string | undefined;
|
|
6
|
+
publishingMetadata?: FernIr.generatorExec.PublishingMetadata | undefined;
|
|
7
7
|
mode: FernIr.generatorExec.OutputMode;
|
|
8
8
|
}
|
package/dist/cjs/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface GeneratorPublishConfig {
|
|
|
4
4
|
registries: FernIr.generatorExec.GeneratorRegistriesConfig;
|
|
5
5
|
/** Deprecated, use publishTargets instead. */
|
|
6
6
|
registriesV2: FernIr.generatorExec.GeneratorRegistriesConfigV2;
|
|
7
|
-
publishTarget?: FernIr.generatorExec.GeneratorPublishTarget;
|
|
7
|
+
publishTarget?: FernIr.generatorExec.GeneratorPublishTarget | undefined;
|
|
8
8
|
version: string;
|
|
9
9
|
}
|
|
@@ -7,8 +7,8 @@ export interface GithubOutputMode {
|
|
|
7
7
|
* The token scoped to installing the repository. If not specified, the generator
|
|
8
8
|
* should NOT attempt to clone the repository.
|
|
9
9
|
*/
|
|
10
|
-
installationToken?: string;
|
|
10
|
+
installationToken?: string | undefined;
|
|
11
11
|
/** The branch to use for README cloning. Defaults to the repository's default branch when omitted. */
|
|
12
|
-
branch?: string;
|
|
13
|
-
publishInfo?: FernIr.generatorExec.GithubPublishInfo;
|
|
12
|
+
branch?: string | undefined;
|
|
13
|
+
publishInfo?: FernIr.generatorExec.GithubPublishInfo | undefined;
|
|
14
14
|
}
|
package/dist/cjs/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface MavenGithubPublishInfo {
|
|
|
4
4
|
coordinate: string;
|
|
5
5
|
usernameEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
6
6
|
passwordEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
7
|
-
signature?: FernIr.generatorExec.MavenCentralSignatureGithubInfo;
|
|
8
|
-
shouldGeneratePublishWorkflow?: boolean;
|
|
7
|
+
signature?: FernIr.generatorExec.MavenCentralSignatureGithubInfo | undefined;
|
|
8
|
+
shouldGeneratePublishWorkflow?: boolean | undefined;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface OutputMetadata {
|
|
3
|
-
description?: string;
|
|
4
|
-
authors?: FernIr.generatorExec.OutputMetadataAuthor[];
|
|
3
|
+
description?: string | undefined;
|
|
4
|
+
authors?: FernIr.generatorExec.OutputMetadataAuthor[] | undefined;
|
|
5
5
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This should effectively be deprecated in favor of a more specific configuration per-output mode (pypi, maven, etc.).
|
|
3
3
|
*/
|
|
4
4
|
export interface PublishingMetadata {
|
|
5
|
-
package_description?: string;
|
|
6
|
-
publisher_email?: string;
|
|
7
|
-
reference_url?: string;
|
|
8
|
-
publisher_name?: string;
|
|
5
|
+
package_description?: string | undefined;
|
|
6
|
+
publisher_email?: string | undefined;
|
|
7
|
+
reference_url?: string | undefined;
|
|
8
|
+
publisher_name?: string | undefined;
|
|
9
9
|
}
|
package/dist/cjs/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface PypiGithubPublishInfo {
|
|
|
4
4
|
packageName: string;
|
|
5
5
|
usernameEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
6
6
|
passwordEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
7
|
-
pypiMetadata?: FernIr.generatorExec.PypiMetadata;
|
|
8
|
-
shouldGeneratePublishWorkflow?: boolean;
|
|
7
|
+
pypiMetadata?: FernIr.generatorExec.PypiMetadata | undefined;
|
|
8
|
+
shouldGeneratePublishWorkflow?: boolean | undefined;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.js";
|
|
2
2
|
export interface PypiMetadata extends FernIr.generatorExec.OutputMetadata {
|
|
3
|
-
keywords?: string[];
|
|
4
|
-
documentationLink?: string;
|
|
5
|
-
homepageLink?: string;
|
|
3
|
+
keywords?: string[] | undefined;
|
|
4
|
+
documentationLink?: string | undefined;
|
|
5
|
+
homepageLink?: string | undefined;
|
|
6
6
|
}
|
|
@@ -156,7 +156,13 @@ function getHeaders(args) {
|
|
|
156
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
157
|
var _a;
|
|
158
158
|
const newHeaders = new Headers_js_1.Headers();
|
|
159
|
-
newHeaders.set("Accept", args.responseType === "json"
|
|
159
|
+
newHeaders.set("Accept", args.responseType === "json"
|
|
160
|
+
? "application/json"
|
|
161
|
+
: args.responseType === "text"
|
|
162
|
+
? "text/plain"
|
|
163
|
+
: args.responseType === "sse"
|
|
164
|
+
? "text/event-stream"
|
|
165
|
+
: "*/*");
|
|
160
166
|
if (args.body !== undefined && args.contentType != null) {
|
|
161
167
|
newHeaders.set("Content-Type", args.contentType);
|
|
162
168
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "65.2.
|
|
1
|
+
export declare const SDK_VERSION = "65.2.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
|
|
|
5
5
|
const headers = mergeHeaders({
|
|
6
6
|
"X-Fern-Language": "JavaScript",
|
|
7
7
|
"X-Fern-SDK-Name": "@fern-api/dynamic-ir-sdk",
|
|
8
|
-
"X-Fern-SDK-Version": "65.2.
|
|
9
|
-
"User-Agent": "@fern-api/dynamic-ir-sdk/65.2.
|
|
8
|
+
"X-Fern-SDK-Version": "65.2.1",
|
|
9
|
+
"User-Agent": "@fern-api/dynamic-ir-sdk/65.2.1",
|
|
10
10
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
11
11
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
12
12
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -5,5 +5,5 @@ import type * as FernIr from "../../../../../index.mjs";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface InferredAuth {
|
|
7
7
|
/** List of parameters (from token endpoint) needed for auth, including their types. */
|
|
8
|
-
parameters?: FernIr.dynamic.NamedParameter[];
|
|
8
|
+
parameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface BodyRequest {
|
|
3
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
4
|
-
body?: FernIr.dynamic.ReferencedRequestBodyType;
|
|
3
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
4
|
+
body?: FernIr.dynamic.ReferencedRequestBodyType | undefined;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface Endpoint {
|
|
3
|
-
auth?: FernIr.dynamic.Auth;
|
|
3
|
+
auth?: FernIr.dynamic.Auth | undefined;
|
|
4
4
|
declaration: FernIr.dynamic.Declaration;
|
|
5
5
|
location: FernIr.dynamic.EndpointLocation;
|
|
6
6
|
request: FernIr.dynamic.Request;
|
|
7
7
|
response: FernIr.dynamic.Response;
|
|
8
|
-
examples?: FernIr.dynamic.EndpointExample[];
|
|
8
|
+
examples?: FernIr.dynamic.EndpointExample[] | undefined;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface InlinedRequest {
|
|
3
3
|
declaration: FernIr.dynamic.Declaration;
|
|
4
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
5
|
-
queryParameters?: FernIr.dynamic.NamedParameter[];
|
|
6
|
-
headers?: FernIr.dynamic.NamedParameter[];
|
|
7
|
-
body?: FernIr.dynamic.InlinedRequestBody;
|
|
8
|
-
metadata?: FernIr.dynamic.InlinedRequestMetadata;
|
|
4
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
5
|
+
queryParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
6
|
+
headers?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
7
|
+
body?: FernIr.dynamic.InlinedRequestBody | undefined;
|
|
8
|
+
metadata?: FernIr.dynamic.InlinedRequestMetadata | undefined;
|
|
9
9
|
}
|
package/dist/esm/api/resources/dynamic/resources/ir/types/DynamicIntermediateRepresentation.d.mts
CHANGED
|
@@ -13,22 +13,22 @@ export interface DynamicIntermediateRepresentation {
|
|
|
13
13
|
version: "1.0.0";
|
|
14
14
|
types: Record<FernIr.dynamic.TypeId, FernIr.dynamic.NamedType>;
|
|
15
15
|
endpoints: Record<FernIr.dynamic.EndpointId, FernIr.dynamic.Endpoint>;
|
|
16
|
-
environments?: FernIr.dynamic.EnvironmentsConfig;
|
|
16
|
+
environments?: FernIr.dynamic.EnvironmentsConfig | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* The headers that are required on every request. These headers
|
|
19
19
|
* are typically included in the SDK's client constructor.
|
|
20
20
|
*/
|
|
21
|
-
headers?: FernIr.dynamic.NamedParameter[];
|
|
21
|
+
headers?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The path parameters that are required on every request. These
|
|
24
24
|
* path parameters are typically included in the SDK's client
|
|
25
25
|
* constructor.
|
|
26
26
|
*/
|
|
27
|
-
pathParameters?: FernIr.dynamic.NamedParameter[];
|
|
27
|
+
pathParameters?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Variables that are configured at the client level and can be
|
|
30
30
|
* referenced in path parameters and other contexts.
|
|
31
31
|
*/
|
|
32
|
-
variables?: FernIr.dynamic.VariableDeclaration[];
|
|
33
|
-
generatorConfig?: FernIr.dynamic.GeneratorConfig;
|
|
32
|
+
variables?: FernIr.dynamic.VariableDeclaration[] | undefined;
|
|
33
|
+
generatorConfig?: FernIr.dynamic.GeneratorConfig | undefined;
|
|
34
34
|
}
|
package/dist/esm/api/resources/dynamic/resources/snippets/types/EndpointSnippetRequest.d.mts
CHANGED
|
@@ -4,11 +4,11 @@ import type * as FernIr from "../../../../../index.mjs";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface EndpointSnippetRequest {
|
|
6
6
|
endpoint: FernIr.dynamic.EndpointLocation;
|
|
7
|
-
baseURL?: string;
|
|
8
|
-
environment?: FernIr.dynamic.EnvironmentValues;
|
|
9
|
-
auth?: FernIr.dynamic.AuthValues;
|
|
10
|
-
pathParameters?: FernIr.dynamic.Values;
|
|
11
|
-
queryParameters?: FernIr.dynamic.Values;
|
|
12
|
-
headers?: FernIr.dynamic.Values;
|
|
13
|
-
requestBody?: unknown;
|
|
7
|
+
baseURL?: string | undefined;
|
|
8
|
+
environment?: FernIr.dynamic.EnvironmentValues | undefined;
|
|
9
|
+
auth?: FernIr.dynamic.AuthValues | undefined;
|
|
10
|
+
pathParameters?: FernIr.dynamic.Values | undefined;
|
|
11
|
+
queryParameters?: FernIr.dynamic.Values | undefined;
|
|
12
|
+
headers?: FernIr.dynamic.Values | undefined;
|
|
13
|
+
requestBody?: unknown | undefined;
|
|
14
14
|
}
|
|
@@ -2,7 +2,7 @@ import type * as FernIr from "../../../../../index.mjs";
|
|
|
2
2
|
export interface NamedParameter {
|
|
3
3
|
name: FernIr.dynamic.NameAndWireValue;
|
|
4
4
|
typeReference: FernIr.dynamic.TypeReference;
|
|
5
|
-
propertyAccess?: FernIr.dynamic.ObjectPropertyAccess;
|
|
5
|
+
propertyAccess?: FernIr.dynamic.ObjectPropertyAccess | undefined;
|
|
6
6
|
/** If set, this parameter references a variable defined at the client level */
|
|
7
|
-
variable?: string;
|
|
7
|
+
variable?: string | undefined;
|
|
8
8
|
}
|
|
@@ -6,7 +6,7 @@ export interface ObjectType {
|
|
|
6
6
|
* List of type IDs that this object extends. Used by generators that need to
|
|
7
7
|
* handle inheritance patterns differently (e.g., Rust uses flattened wrapper fields).
|
|
8
8
|
*/
|
|
9
|
-
extends?: FernIr.dynamic.TypeId[];
|
|
9
|
+
extends?: FernIr.dynamic.TypeId[] | undefined;
|
|
10
10
|
/** Whether the type allows additional properties. */
|
|
11
|
-
additionalProperties?: boolean;
|
|
11
|
+
additionalProperties?: boolean | undefined;
|
|
12
12
|
}
|
|
@@ -2,5 +2,5 @@ import type * as FernIr from "../../../../../index.mjs";
|
|
|
2
2
|
export interface SingleDiscriminatedUnionTypeNoProperties {
|
|
3
3
|
discriminantValue: FernIr.dynamic.NameAndWireValue;
|
|
4
4
|
/** Any properties included here are the base and/or extended properties from the union. */
|
|
5
|
-
properties?: FernIr.dynamic.NamedParameter[];
|
|
5
|
+
properties?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
6
6
|
}
|
|
@@ -3,5 +3,5 @@ export interface SingleDiscriminatedUnionTypeSingleProperty {
|
|
|
3
3
|
typeReference: FernIr.dynamic.TypeReference;
|
|
4
4
|
discriminantValue: FernIr.dynamic.NameAndWireValue;
|
|
5
5
|
/** Any properties included here are the base and/or extended properties from the union. */
|
|
6
|
-
properties?: FernIr.dynamic.NamedParameter[];
|
|
6
|
+
properties?: FernIr.dynamic.NamedParameter[] | undefined;
|
|
7
7
|
}
|
|
@@ -2,17 +2,17 @@ import type * as FernIr from "../../../../../index.mjs";
|
|
|
2
2
|
export interface GeneratorConfig {
|
|
3
3
|
dryRun: boolean;
|
|
4
4
|
irFilepath: string;
|
|
5
|
-
originalReadmeFilepath?: string;
|
|
6
|
-
license?: FernIr.generatorExec.LicenseConfig;
|
|
5
|
+
originalReadmeFilepath?: string | undefined;
|
|
6
|
+
license?: FernIr.generatorExec.LicenseConfig | undefined;
|
|
7
7
|
output: FernIr.generatorExec.GeneratorOutputConfig;
|
|
8
8
|
/** Deprecated. Use output.mode instead. */
|
|
9
|
-
publish?: FernIr.generatorExec.GeneratorPublishConfig;
|
|
9
|
+
publish?: FernIr.generatorExec.GeneratorPublishConfig | undefined;
|
|
10
10
|
workspaceName: string;
|
|
11
11
|
organization: string;
|
|
12
|
-
customConfig?: unknown;
|
|
12
|
+
customConfig?: unknown | undefined;
|
|
13
13
|
environment: FernIr.generatorExec.GeneratorEnvironment;
|
|
14
14
|
whitelabel: boolean;
|
|
15
15
|
writeUnitTests: boolean;
|
|
16
|
-
generatePaginatedClients?: boolean;
|
|
16
|
+
generatePaginatedClients?: boolean | undefined;
|
|
17
17
|
generateOauthClients: boolean;
|
|
18
18
|
}
|
package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorOutputConfig.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface GeneratorOutputConfig {
|
|
3
3
|
path: string;
|
|
4
|
-
snippetFilepath?: string;
|
|
5
|
-
snippetTemplateFilepath?: string;
|
|
6
|
-
publishingMetadata?: FernIr.generatorExec.PublishingMetadata;
|
|
4
|
+
snippetFilepath?: string | undefined;
|
|
5
|
+
snippetTemplateFilepath?: string | undefined;
|
|
6
|
+
publishingMetadata?: FernIr.generatorExec.PublishingMetadata | undefined;
|
|
7
7
|
mode: FernIr.generatorExec.OutputMode;
|
|
8
8
|
}
|
package/dist/esm/api/resources/generatorExec/resources/config/types/GeneratorPublishConfig.d.mts
CHANGED
|
@@ -4,6 +4,6 @@ export interface GeneratorPublishConfig {
|
|
|
4
4
|
registries: FernIr.generatorExec.GeneratorRegistriesConfig;
|
|
5
5
|
/** Deprecated, use publishTargets instead. */
|
|
6
6
|
registriesV2: FernIr.generatorExec.GeneratorRegistriesConfigV2;
|
|
7
|
-
publishTarget?: FernIr.generatorExec.GeneratorPublishTarget;
|
|
7
|
+
publishTarget?: FernIr.generatorExec.GeneratorPublishTarget | undefined;
|
|
8
8
|
version: string;
|
|
9
9
|
}
|
|
@@ -7,8 +7,8 @@ export interface GithubOutputMode {
|
|
|
7
7
|
* The token scoped to installing the repository. If not specified, the generator
|
|
8
8
|
* should NOT attempt to clone the repository.
|
|
9
9
|
*/
|
|
10
|
-
installationToken?: string;
|
|
10
|
+
installationToken?: string | undefined;
|
|
11
11
|
/** The branch to use for README cloning. Defaults to the repository's default branch when omitted. */
|
|
12
|
-
branch?: string;
|
|
13
|
-
publishInfo?: FernIr.generatorExec.GithubPublishInfo;
|
|
12
|
+
branch?: string | undefined;
|
|
13
|
+
publishInfo?: FernIr.generatorExec.GithubPublishInfo | undefined;
|
|
14
14
|
}
|
package/dist/esm/api/resources/generatorExec/resources/config/types/MavenGithubPublishInfo.d.mts
CHANGED
|
@@ -4,6 +4,6 @@ export interface MavenGithubPublishInfo {
|
|
|
4
4
|
coordinate: string;
|
|
5
5
|
usernameEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
6
6
|
passwordEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
7
|
-
signature?: FernIr.generatorExec.MavenCentralSignatureGithubInfo;
|
|
8
|
-
shouldGeneratePublishWorkflow?: boolean;
|
|
7
|
+
signature?: FernIr.generatorExec.MavenCentralSignatureGithubInfo | undefined;
|
|
8
|
+
shouldGeneratePublishWorkflow?: boolean | undefined;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface OutputMetadata {
|
|
3
|
-
description?: string;
|
|
4
|
-
authors?: FernIr.generatorExec.OutputMetadataAuthor[];
|
|
3
|
+
description?: string | undefined;
|
|
4
|
+
authors?: FernIr.generatorExec.OutputMetadataAuthor[] | undefined;
|
|
5
5
|
}
|
package/dist/esm/api/resources/generatorExec/resources/config/types/PublishingMetadata.d.mts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This should effectively be deprecated in favor of a more specific configuration per-output mode (pypi, maven, etc.).
|
|
3
3
|
*/
|
|
4
4
|
export interface PublishingMetadata {
|
|
5
|
-
package_description?: string;
|
|
6
|
-
publisher_email?: string;
|
|
7
|
-
reference_url?: string;
|
|
8
|
-
publisher_name?: string;
|
|
5
|
+
package_description?: string | undefined;
|
|
6
|
+
publisher_email?: string | undefined;
|
|
7
|
+
reference_url?: string | undefined;
|
|
8
|
+
publisher_name?: string | undefined;
|
|
9
9
|
}
|
package/dist/esm/api/resources/generatorExec/resources/config/types/PypiGithubPublishInfo.d.mts
CHANGED
|
@@ -4,6 +4,6 @@ export interface PypiGithubPublishInfo {
|
|
|
4
4
|
packageName: string;
|
|
5
5
|
usernameEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
6
6
|
passwordEnvironmentVariable: FernIr.generatorExec.EnvironmentVariable;
|
|
7
|
-
pypiMetadata?: FernIr.generatorExec.PypiMetadata;
|
|
8
|
-
shouldGeneratePublishWorkflow?: boolean;
|
|
7
|
+
pypiMetadata?: FernIr.generatorExec.PypiMetadata | undefined;
|
|
8
|
+
shouldGeneratePublishWorkflow?: boolean | undefined;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as FernIr from "../../../../../index.mjs";
|
|
2
2
|
export interface PypiMetadata extends FernIr.generatorExec.OutputMetadata {
|
|
3
|
-
keywords?: string[];
|
|
4
|
-
documentationLink?: string;
|
|
5
|
-
homepageLink?: string;
|
|
3
|
+
keywords?: string[] | undefined;
|
|
4
|
+
documentationLink?: string | undefined;
|
|
5
|
+
homepageLink?: string | undefined;
|
|
6
6
|
}
|
|
@@ -152,7 +152,13 @@ function getHeaders(args) {
|
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
var _a;
|
|
154
154
|
const newHeaders = new Headers();
|
|
155
|
-
newHeaders.set("Accept", args.responseType === "json"
|
|
155
|
+
newHeaders.set("Accept", args.responseType === "json"
|
|
156
|
+
? "application/json"
|
|
157
|
+
: args.responseType === "text"
|
|
158
|
+
? "text/plain"
|
|
159
|
+
: args.responseType === "sse"
|
|
160
|
+
? "text/event-stream"
|
|
161
|
+
: "*/*");
|
|
156
162
|
if (args.body !== undefined && args.contentType != null) {
|
|
157
163
|
newHeaders.set("Content-Type", args.contentType);
|
|
158
164
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "65.2.
|
|
1
|
+
export declare const SDK_VERSION = "65.2.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "65.2.
|
|
1
|
+
export const SDK_VERSION = "65.2.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fern-api/dynamic-ir-sdk",
|
|
3
|
-
"version": "65.2.
|
|
3
|
+
"version": "65.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"msw": "2.11.2",
|
|
50
50
|
"@types/node": "^18.19.70",
|
|
51
51
|
"typescript": "~5.7.2",
|
|
52
|
-
"@biomejs/biome": "2.3
|
|
52
|
+
"@biomejs/biome": "2.4.3"
|
|
53
53
|
},
|
|
54
54
|
"browser": {
|
|
55
55
|
"fs": false,
|