Skip to content

Commit

Permalink
Release v0.82.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 4, 2024
1 parent 350f40f commit d278c14
Show file tree
Hide file tree
Showing 7 changed files with 656 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .mock/definition/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: generator-exec
error-discrimination:
strategy: property
property-name: error
46 changes: 46 additions & 0 deletions .mock/definition/backcompat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
imports:
config: config.yml
types:
BackwardsCompatibleGeneratorConfig:
properties:
dryRun: boolean
irFilepath: string
output: BackwardsCompatibleGeneratorOutputConfig
publish:
type: optional<BackwardsCompatGeneratorPublishConfig>
docs: Deprecated. Use output.mode instead.
workspaceName: string
organization: string
customConfig: unknown
environment: config.GeneratorEnvironment
BackwardsCompatibleGeneratorOutputConfig:
properties:
path: string
mode: BackwardsCompatibleOutputMode
BackwardsCompatibleOutputMode:
union:
publish: BackwardsCompatGeneratorPublishConfig
downloadFiles: {}
github: config.GithubOutputMode
BackwardsCompatGeneratorPublishConfig:
docs: For the TS generators that use strict parsing.
properties:
registries:
type: config.GeneratorRegistriesConfig
docs: Deprecated, use publishTargets instead.
registriesV2:
type: BackwardsCompatibleRegistriesConfigV2
docs: Deprecated, use publishTargets instead.
publishTarget:
type: optional<BackwardsCompatiblePublishTarget>
docs: Must always be TS for TypeScript
version: string
BackwardsCompatibleRegistriesConfigV2:
docs: For the ts generators that are not backwards compatible.
properties:
maven: config.MavenRegistryConfigV2
npm: config.NpmRegistryConfigV2
pypi: config.PypiRegistryConfig
BackwardsCompatiblePublishTarget:
union:
npm: config.NpmRegistryConfigV2
228 changes: 228 additions & 0 deletions .mock/definition/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
imports:
logging: logging.yml
types:
GeneratorConfig:
properties:
dryRun: boolean
irFilepath: string
originalReadmeFilepath: optional<string>
license: optional<LicenseConfig>
output: GeneratorOutputConfig
publish:
type: optional<GeneratorPublishConfig>
docs: Deprecated. Use output.mode instead.
workspaceName: string
organization: string
customConfig: unknown
environment: GeneratorEnvironment
whitelabel: boolean
writeUnitTests: boolean
generatePaginatedClients: optional<boolean>
generateOauthClients: boolean
LicenseConfig:
union:
basic: BasicLicense
custom: CustomLicense
BasicLicense:
properties:
id: LicenseId
LicenseId:
enum:
- MIT
- name: apache2
value: Apache-2.0
CustomLicense:
properties:
filename: string
GeneratorOutputConfig:
properties:
path: string
snippetFilepath: optional<string>
snippetTemplateFilepath: optional<string>
publishingMetadata: optional<PublishingMetadata>
mode: OutputMode
OutputMode:
union:
publish: GeneratorPublishConfig
downloadFiles: {}
github: GithubOutputMode
GeneratorPublishConfig:
properties:
registries:
type: GeneratorRegistriesConfig
docs: Deprecated, use publishTargets instead.
registriesV2:
type: GeneratorRegistriesConfigV2
docs: Deprecated, use publishTargets instead.
publishTarget: optional<GeneratorPublishTarget>
version: string
GithubOutputMode:
properties:
version: string
repoUrl:
type: string
docs: A full repo url (i.e. https://github.com/fern-api/fern)
installationToken:
type: optional<string>
docs: >
The token scoped to installing the repository. If not specified, the
generator
should NOT attempt to clone the repository.
publishInfo: optional<GithubPublishInfo>
OutputMetadataAuthor:
properties:
name: string
email: string
OutputMetadata:
properties:
description: optional<string>
authors: optional<list<OutputMetadataAuthor>>
PublishingMetadata:
docs: >-
This should effectively be deprecated in favor of a more specific
configuration per-output mode (pypi, maven, etc.).
properties:
package_description: optional<string>
publisher_email: optional<string>
reference_url: optional<string>
publisher_name: optional<string>
GithubPublishInfo:
union:
npm: NpmGithubPublishInfo
maven: MavenGithubPublishInfo
postman: PostmanGithubPublishInfo
pypi: PypiGithubPublishInfo
rubygems: RubyGemsGithubPublishInfo
nuget: NugetGithubPublishInfo
EnvironmentVariable: string
NpmGithubPublishInfo:
properties:
registryUrl: string
packageName: string
tokenEnvironmentVariable: EnvironmentVariable
shouldGeneratePublishWorkflow: optional<boolean>
MavenCentralSignatureGithubInfo:
properties:
keyIdEnvironmentVariable: EnvironmentVariable
passwordEnvironmentVariable: EnvironmentVariable
secretKeyEnvironmentVariable: EnvironmentVariable
MavenGithubPublishInfo:
properties:
registryUrl: string
coordinate: string
usernameEnvironmentVariable: EnvironmentVariable
passwordEnvironmentVariable: EnvironmentVariable
signature: optional<MavenCentralSignatureGithubInfo>
shouldGeneratePublishWorkflow: optional<boolean>
PostmanGithubPublishInfo:
properties:
apiKeyEnvironmentVariable: EnvironmentVariable
workspaceIdEnvironmentVariable: EnvironmentVariable
PypiMetadata:
extends: OutputMetadata
properties:
keywords: optional<list<string>>
documentationLink: optional<string>
homepageLink: optional<string>
PypiGithubPublishInfo:
properties:
registryUrl: string
packageName: string
usernameEnvironmentVariable: EnvironmentVariable
passwordEnvironmentVariable: EnvironmentVariable
pypiMetadata: optional<PypiMetadata>
shouldGeneratePublishWorkflow: optional<boolean>
RubyGemsGithubPublishInfo:
properties:
registryUrl: string
packageName: string
apiKeyEnvironmentVariable: EnvironmentVariable
shouldGeneratePublishWorkflow: optional<boolean>
NugetGithubPublishInfo:
properties:
registryUrl: string
packageName: string
apiKeyEnvironmentVariable: EnvironmentVariable
shouldGeneratePublishWorkflow: optional<boolean>
GeneratorRegistriesConfig:
properties:
maven: MavenRegistryConfig
npm: NpmRegistryConfig
MavenCentralSignature:
properties:
keyId: string
password: string
secretKey: string
MavenRegistryConfig:
properties:
registryUrl: string
username: string
password: string
group: string
signature: optional<MavenCentralSignature>
NpmRegistryConfig:
properties:
registryUrl: string
token: string
scope: string
GeneratorRegistriesConfigV2:
properties:
maven: MavenRegistryConfigV2
npm: NpmRegistryConfigV2
pypi: PypiRegistryConfig
rubygems: RubyGemsRegistryConfig
nuget: NugetRegistryConfig
GeneratorPublishTarget:
union:
maven: MavenRegistryConfigV2
npm: NpmRegistryConfigV2
pypi: PypiRegistryConfig
postman: PostmanConfig
rubygems: RubyGemsRegistryConfig
nuget: NugetRegistryConfig
MavenRegistryConfigV2:
properties:
registryUrl: string
username: string
password: string
coordinate: string
signature: optional<MavenCentralSignature>
NpmRegistryConfigV2:
properties:
registryUrl: string
token: string
packageName: string
PypiRegistryConfig:
properties:
registryUrl: string
username: string
password: string
packageName: string
pypiMetadata: optional<PypiMetadata>
RubyGemsRegistryConfig:
properties:
registryUrl: string
apiKey: string
packageName: string
NugetRegistryConfig:
properties:
registryUrl: string
apiKey: string
packageName: string
PostmanConfig:
properties:
apiKey: string
workspaceId: string
GeneratorEnvironment:
union:
local: {}
remote: RemoteGeneratorEnvironment
discriminant:
name: type
value: _type
RemoteGeneratorEnvironment:
properties:
coordinatorUrl: string
coordinatorUrlV2: string
id: logging.TaskId
82 changes: 82 additions & 0 deletions .mock/definition/logging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
types:
TaskId: string
GeneratorUpdate:
union:
init: InitUpdate
initV2: InitUpdateV2
log: LogUpdate
publishing:
type: PackageCoordinate
key: publishing
published:
type: PackageCoordinate
key: published
exitStatusUpdate:
type: ExitStatusUpdate
key: exitStatusUpdate
discriminant:
name: type
value: _type
InitUpdate:
properties:
packagesToPublish: list<PackageCoordinate>
InitUpdateV2:
properties:
publishingToRegistry: optional<RegistryType>
RegistryType:
enum:
- NPM
- MAVEN
- PYPI
- RUBYGEMS
- NUGET
LogUpdate:
properties:
level: LogLevel
message: string
LogLevel:
enum:
- DEBUG
- INFO
- WARN
- ERROR
PackageCoordinate:
union:
npm: NpmCoordinate
maven: MavenCoordinate
discriminant:
name: type
value: _type
NpmCoordinate:
properties:
name: string
version: string
MavenCoordinate:
properties:
group: string
artifact: string
version: string
ExitStatusUpdate:
union:
successful: SuccessfulStatusUpdate
error: ErrorExitStatusUpdate
discriminant:
name: type
value: _type
SuccessfulStatusUpdate:
properties:
zipFilename: optional<string>
ErrorExitStatusUpdate:
properties:
message: string
service:
auth: false
base-path: /api/generator-logging
endpoints:
sendUpdate:
path: /{taskId}
path-parameters:
taskId: TaskId
request:
body:
type: list<GeneratorUpdate>
Loading

0 comments on commit d278c14

Please sign in to comment.