diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ca31876ee57..6bd98ee8d6d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,11 +1,26 @@ +# General rule for everything * @dsinghvi -fern/* @dsinghvi + +# Specific rules for fern/ +fern/docs.yml @chdeskur +fern/pages/* @chdeskur + +# Specific rules for generators generators/go/* @amckinney -generators/java/* @dcb6 -generators/csharp/* @dcb6 -generators/python/* @armandobelardo -generators/ruby/* @armandobelardo -generators/typescript/* @dsinghvi +generators/go-v2/* @amckinney +generators/php/* @amckinney +generators/commons/* @amckinney +generators/csharp/* @Swimburger +generators/typescript/* @Swimburger +generators/java/* @dsinghvi +generators/python/* @dsinghvi +generators/python-v2/* @dsinghvi +generators/ruby/* @dsinghvi +generators/swift/* @dsinghvi +generators/postman/* @dsinghvi +generators/openapi/* @dsinghvi + +# Specific rules for packages packages/cli/* @amckinney -packages/generators/cli/* @armandobelardo -packages/generators/docker/* @armandobelardo +packages/generators/cli/* @dsinghvi +packages/generators/docker/* @dsinghvi diff --git a/.github/ISSUE_TEMPLATE/cli.md b/.github/ISSUE_TEMPLATE/cli.md deleted file mode 100644 index 802ec462446..00000000000 --- a/.github/ISSUE_TEMPLATE/cli.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -name: CLI Bug report -about: Report a bug with the Fern CLI -title: "[Bug]" -labels: cli -assignees: dsinghvi ---- - -### Describe the bug - -A clear and concise description of what the bug is. - -### To reproduce - -Steps to reproduce the behavior: - -1. Go to '...' -2. Run the command '....' -3. See error - -If relevant, provide a minimal API definition (OpenAPI or Fern Definition) or Docs configuration (`docs.yml`) that can be used to reproduce the error. - -### Expected behavior - -A clear and concise description of what you expected to happen. - -### Screenshots - -If applicable, add screenshots to help explain your problem. - -### CLI Version - -The version of the Fern CLI you are using (found in `fern.config.json`). - -### Additional context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/csharp b/.github/ISSUE_TEMPLATE/csharp deleted file mode 100644 index a77df6919ad..00000000000 --- a/.github/ISSUE_TEMPLATE/csharp +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: C# Generator Bug report -about: Report a bug with the C# Generator -title: "[Bug]" -labels: csharp -assignees: amckinney ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```csharp -# TODO -``` - -### Expected SDK - -The expected SDK - -```csharp -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/docs-bug.yml b/.github/ISSUE_TEMPLATE/docs-bug.yml new file mode 100644 index 00000000000..fc0badf1805 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docs-bug.yml @@ -0,0 +1,57 @@ +name: "Docs Bug Report" +description: "Report a bug with Fern Docs" +labels: + - product/docs + - bug +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Please provide the following details to help us reproduce and fix the issue." + - type: input + id: cli-version + attributes: + label: "CLI Version (from `fern.config.json`)" + placeholder: "e.g., 0.44.11" + validations: + required: true + - type: textarea + id: api-spec + attributes: + label: "Minimal API Specification" + description: "Provide the smallest API spec necessary to reproduce the issue. This helps us quickly understand the context of the bug." + placeholder: "Paste the API spec here..." + validations: + required: true + - type: textarea + id: actual-site + attributes: + label: "Actual UI Behavior" + description: "Describe what is currently happening in the UI. If possible, include a screenshot, Loom video, or any other visual aid to help us understand the issue." + placeholder: "Paste a screenshot, Loom video, or detailed description of the issue here..." + validations: + required: true + - type: textarea + id: expected-site + attributes: + label: "Expected UI Behavior" + description: "Describe what you expected the UI to do. Providing as much detail as possible helps us understand the difference between expected and actual behavior." + placeholder: "Describe the expected behavior, including any screenshots or visuals..." + validations: + required: true + - type: textarea + id: steps-to-reproduce + attributes: + label: "Steps to Reproduce" + description: "List the steps to reproduce the issue. This helps us replicate the problem on our end." + placeholder: "1. Go to ...\n2. Click on ...\n3. Observe the issue..." + validations: + required: false + - type: textarea + id: environment-details + attributes: + label: "Environment Details" + description: "Provide information about your environment, such as browser version, OS, and any other relevant details." + placeholder: "e.g., Chrome 90, macOS 12.1" + validations: + required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/docs-feature.yml b/.github/ISSUE_TEMPLATE/docs-feature.yml new file mode 100644 index 00000000000..f8398d8d302 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docs-feature.yml @@ -0,0 +1,38 @@ +name: "Docs Feature Request" +description: "Request a new feature for Fern Docs" +labels: + - product/docs + - feature +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Have a feature idea for Fern Docs? Let us know why it's important and what it should look like!" + - type: textarea + id: feature-description + attributes: + label: "Feature Description" + description: "Explain in detail what the feature should do, how it will improve the user experience, and why it is needed. Provide specific examples if possible." + placeholder: "Describe the feature, its purpose, and the problem it solves..." + validations: + required: true + - type: textarea + id: use-case + attributes: + label: "Use Case" + description: "Provide a specific use case or scenario where this feature would be particularly useful." + placeholder: "Describe a situation where this feature would be helpful..." + validations: + required: true + - type: textarea + id: proposed-experience + attributes: + label: "Proposed Experience (Optional)" + description: "If possible, share what the UI or workflow should look like, including examples, diagrams, or screenshots." + placeholder: "Provide a description, diagram, screenshot, or leave blank if unsure..." + - type: textarea + id: alternatives-considered + attributes: + label: "Alternatives Considered (Optional)" + description: "If you've considered other solutions or workarounds, please describe them here." + placeholder: "Describe any alternative approaches you have thought of or tried..." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/docs.md b/.github/ISSUE_TEMPLATE/docs.md deleted file mode 100644 index b92104f0a41..00000000000 --- a/.github/ISSUE_TEMPLATE/docs.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Fern Docs Bug report -about: Report a bug with the Fern Docs product -title: "[Bug]" -labels: "fern docs" -assignees: abvthecity ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Actual Behavior - -The buggy behavior that is produced. - -### Expected Behavior - -What you wanted to happen. Please share a preview link or screenshot of the expected behavior. - -### API Definition (if relevant) - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/documentation-suggestion.md b/.github/ISSUE_TEMPLATE/documentation-suggestion.md deleted file mode 100644 index 36f39ab1b12..00000000000 --- a/.github/ISSUE_TEMPLATE/documentation-suggestion.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Documentation improvement -about: Suggest a change to Fern's documentation docs.buildwithfern.com -title: "[Fern's Documentation] " -labels: documentation -assignees: '' - ---- - -### What can be improved - -A clear and concise description about what can be improved in Fern's documentation. - -### Relevant Screenshots - -Any relevant screenshots. - -### Link a PR (optional) - -Offer a suggestion for how you would write the improvement. [Here's the folder](https://github.com/fern-api/fern/tree/main/fern) where you'll find Fern's documentation written in markdown (MDX) files. diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 00000000000..91da2b109a9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,37 @@ +name: "Documentation Issue" +description: "Report an issue or suggest an improvement for the documentation" +labels: + - documentation +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Help us improve our documentation by reporting an issue or suggesting an enhancement." + - type: input + id: page-url + attributes: + label: "Documentation Page URL" + description: "Provide the URL of the documentation page where you found the issue." + placeholder: "e.g., https://buildwithfern.com/learn/your-page" + validations: + required: true + - type: textarea + id: issue-description + attributes: + label: "Issue Description" + description: "Describe the issue or improvement in detail. Include any errors, inconsistencies, or areas of confusion." + placeholder: "Describe the issue here..." + validations: + required: true + - type: textarea + id: steps-to-reproduce + attributes: + label: "Steps to Reproduce (Optional)" + description: "Provide clear steps to help us reproduce the issue. This will help us understand the problem more easily." + placeholder: "1. Go to the page...\n2. Click on...\n3. Observe the issue..." + - type: textarea + id: suggested-improvement + attributes: + label: "Suggested Improvement" + description: "Propose how the documentation could be improved. Include specific changes or additional information that could be helpful." + placeholder: "Suggest an improvement or leave blank if unsure..." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index e7c28b6f302..00000000000 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Feature request -about: Let us know a feature you would want in Fern -title: "[Feature]" -labels: '' -assignees: '' - ---- - -### Problem description - -A clear and concise description of the problem. - -### Why would it be useful? - -Why would this feature be useful for Fern users? - -### Describe the solution (optional) - -A concise description of what the feature should be. - -### Additional context - -Add any other context or screenshots. diff --git a/.github/ISSUE_TEMPLATE/go.md b/.github/ISSUE_TEMPLATE/go.md deleted file mode 100644 index 0ed61a4becd..00000000000 --- a/.github/ISSUE_TEMPLATE/go.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: Go Generator Bug report -about: Report a bug with the Go Generator -title: "[Bug]" -labels: go -assignees: amckinney ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```go -# TODO -``` - -### Expected SDK - -The expected SDK - -```go -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/java.md b/.github/ISSUE_TEMPLATE/java.md deleted file mode 100644 index 37d06d55359..00000000000 --- a/.github/ISSUE_TEMPLATE/java.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: Java Generator Bug report -about: Report a bug with the Java Generator -title: "[Bug]" -labels: java -assignees: dsinghvi ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```java -# TODO -``` - -### Expected SDK - -The expected SDK - -```java -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/openapi.md b/.github/ISSUE_TEMPLATE/openapi.md deleted file mode 100644 index 1775f044696..00000000000 --- a/.github/ISSUE_TEMPLATE/openapi.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -name: OpenAPI Generator Bug Report -about: Report a bug with the OpenAPI Generator -title: "[Bug]" -labels: openapi -assignees: dsinghvi ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the OpenAPI generator y -ou are using (found in `generators.yml`). - -### Custom Config - -Any custom configuration requires to r -eproduce the bug (found in `generators.yml`). - -```yaml -config: - format: json - customOverrides: - license: MIT -``` - -### Fern Definition - -The minimal fern definition required to reproduce the bug. - -```yaml -types: - Movie: - name: string - rating: double -``` - -### Actual OpenAPI - -The buggy OpenAPI document that is produced: - -```yaml -paths: - /my/path: - post: - foo: bar # <----- This part is buggy -``` - -### Expected OpenAPI - -The buggy OpenAPI document that is produced: - -```yaml -paths: - /my/path: - post: - baz: faz # <----- This is the fix -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/other.yml b/.github/ISSUE_TEMPLATE/other.yml new file mode 100644 index 00000000000..34bcb0b7741 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other.yml @@ -0,0 +1,23 @@ +name: "Other Issue" +description: "Report any other issue or share feedback not covered by other templates" +labels: + - other +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Have something to report that doesn't fit into any of our other categories? Share it here!" + - type: textarea + id: issue-description + attributes: + label: "Issue Description" + description: "Provide a detailed description of the issue or feedback you want to share." + placeholder: "Describe the issue or feedback here..." + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: "Additional Context (Optional)" + description: "Include any relevant details, links, or attachments that might help us understand the issue better." + placeholder: "Provide any additional context here..." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/postman.md b/.github/ISSUE_TEMPLATE/postman.md deleted file mode 100644 index 27174df9312..00000000000 --- a/.github/ISSUE_TEMPLATE/postman.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: Postman Generator Bug report -about: Report a bug with the Postman Generator -title: "[Bug]" -labels: postman -assignees: dsinghvi ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual Postman collection - -The buggy collection that is produced: - -```json -# TODO -``` - -### Expected Postman collection - -The expected collection: - -```json -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/python.md b/.github/ISSUE_TEMPLATE/python.md deleted file mode 100644 index 8216e55aa78..00000000000 --- a/.github/ISSUE_TEMPLATE/python.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -name: Python Generator Bug report -about: Report a bug with the Python Generator -title: "[Bug]" -labels: python -assignees: armandobelardo ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). -Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```python -# client.py - -class PetStore: - def __init__(self): - self._client = None # <-------- This part is buggy -``` - -### Expected SDK - -The expected SDK - -```python -import httpx - -# client.py -class PetStore: - def __init__(self): - self._client = new httpx.Client() # <----- This is the fix -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/ruby.md b/.github/ISSUE_TEMPLATE/ruby.md deleted file mode 100644 index 34f1994fc5f..00000000000 --- a/.github/ISSUE_TEMPLATE/ruby.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: Ruby Generator Bug report -about: Report a bug with the Ruby Generator -title: "[Bug]" -labels: ruby -assignees: armandobelardo ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```ruby -# TODO -``` - -### Expected SDK - -The expected SDK - -```ruby -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/sdk-bug.yml b/.github/ISSUE_TEMPLATE/sdk-bug.yml new file mode 100644 index 00000000000..c172a77e8ad --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sdk-bug.yml @@ -0,0 +1,54 @@ +name: "SDK Bug Report" +description: "Report a bug with the Fern SDK generator" +labels: + - product/sdk-generator + - bug +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Please provide the following details to help us reproduce and fix the issue." + - type: input + id: cli-version + attributes: + label: "CLI Version from `fern.config.json`" + placeholder: "e.g., 0.44.11" + validations: + required: true + - type: input + id: generator-version + attributes: + label: "Generator & Version from `generators.yml`" + placeholder: "e.g., fernapi/fern-typescript-node-sdk 0.9.5" + validations: + required: true + - type: textarea + id: api-spec + attributes: + label: "Minimal API Specification" + description: "Provide the smallest API spec necessary to reproduce the issue. This will help us quickly understand the context of the bug." + placeholder: "Paste the API spec here..." + validations: + required: true + - type: textarea + id: actual-code + attributes: + label: "Actual Generated Code" + description: "Include a snippet of the code that was generated. Providing code samples helps us identify the issue faster." + placeholder: "Paste the actual generated code here..." + validations: + required: true + - type: textarea + id: expected-code + attributes: + label: "Expected Generated Code" + description: "Provide an example of what you expected the generated code to look like." + placeholder: "Paste the expected code here..." + validations: + required: true + - type: textarea + id: environment-details + attributes: + label: "Environment Details (Optional)" + description: "Provide any relevant information about your environment, such as operating system, Node.js version, etc." + placeholder: "e.g., macOS 12.3, Node.js 16.4.2" \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/sdk-feature.yml b/.github/ISSUE_TEMPLATE/sdk-feature.yml new file mode 100644 index 00000000000..9aea130b764 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sdk-feature.yml @@ -0,0 +1,24 @@ +name: "SDK Feature Request" +description: "Request a new feature for the SDK generator" +labels: + - product/sdk-generator + - feature +assignees: dsheridan +body: + - type: markdown + attributes: + value: "Have a feature idea? Tell us why you want it and what it might look like!" + - type: textarea + id: feature-description + attributes: + label: "Feature Description" + description: "Explain what the feature should do and why it would be useful." + placeholder: "Describe the feature and its purpose here..." + validations: + required: true + - type: textarea + id: proposed-code + attributes: + label: "Proposed Generated Code (Optional)" + description: "If possible, share what you think the generated code should look like." + placeholder: "Provide a code example or leave blank if unsure..." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/typescript.md b/.github/ISSUE_TEMPLATE/typescript.md deleted file mode 100644 index 94f94cbbd39..00000000000 --- a/.github/ISSUE_TEMPLATE/typescript.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: TypeScript Generator Bug report -about: Report a bug with the TypeScript Generator -title: "[Bug]" -labels: typescript -assignees: dsinghvi ---- - -## Describe the Bug - -A clear and concise description of what the bug is. - -## Information to Reproduce - -### CLI Version - -The version of the Fern CLI you are -using (found in `fern.config.json`). - -### Generator Version - -The version of the generator you are using (found in `generators.yml`). Plus any custom configuration required to reproduce the bug (found in `generators.yml`). - -### API Definition - -The minimal OpenAPI specification or Fern definition required to reproduce the bug. - -```yaml -types: - Pet: - name: string - age: double -``` - -### Actual SDK - -The buggy SDK that is produced: - -```typescript -# TODO -``` - -### Expected SDK - -The expected SDK - -```typescript -# TODO -``` - -## Additional Context - -Add any other context about the problem here. diff --git a/README.md b/README.md index b208439ff0d..0bc333cc932 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
- header + header
@@ -27,8 +27,6 @@ Fern is a toolkit that allows you to input your API Definition and output SDKs a
- - ## 🌿 SDKs The Fern toolkit is available via a command line interface (CLI) and requires Node 18+. To install it, run: @@ -82,35 +80,35 @@ Postman Collections, Server boilerplate, etc.). To add a generator run `fern add ### SDK Generators -| Generator ID | Latest Version | Entrypoint | -| -------------------------------------- | -------------- | ------------------------------------------------------------------------------- | -| `fernapi/fern-typescript-node-sdk` | ![Typescript Generator Version](https://img.shields.io/docker/v/fernapi/fern-typescript-node-sdk) | [cli.ts](./generators/typescript/sdk/cli/src/nodeCli.ts) | -| `fernapi/fern-python-sdk` | ![Python Generator Version](https://img.shields.io/docker/v/fernapi/fern-python-sdk) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | -| `fernapi/fern-java-sdk` | ![Java Generator Version](https://img.shields.io/docker/v/fernapi/fern-java-sdk) | [Cli.java](./generators/java/sdk/src/main/java/com/fern/java/client/Cli.java) | -| `fernapi/fern-ruby-sdk` | ![Ruby Generator Version](https://img.shields.io/docker/v/fernapi/fern-ruby-sdk) | [cli.ts](./generators/ruby/sdk/src/cli.ts) | -| `fernapi/fern-go-sdk` | ![Go Generator Version](https://img.shields.io/docker/v/fernapi/fern-go-sdk) | [main.go](./generators/go/cmd/fern-go-sdk/main.go) | -| `fernapi/fern-csharp-sdk` | ![C# Generator Version](https://img.shields.io/docker/v/fernapi/fern-csharp-sdk) | [cli.ts](./generators/csharp/sdk/src/cli.ts) | +| Generator ID | Latest Version | Entrypoint | +| ---------------------------------- | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `fernapi/fern-typescript-node-sdk` | ![Typescript Generator Version](https://img.shields.io/docker/v/fernapi/fern-typescript-node-sdk) | [cli.ts](./generators/typescript/sdk/cli/src/nodeCli.ts) | +| `fernapi/fern-python-sdk` | ![Python Generator Version](https://img.shields.io/docker/v/fernapi/fern-python-sdk) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | +| `fernapi/fern-java-sdk` | ![Java Generator Version](https://img.shields.io/docker/v/fernapi/fern-java-sdk) | [Cli.java](./generators/java/sdk/src/main/java/com/fern/java/client/Cli.java) | +| `fernapi/fern-ruby-sdk` | ![Ruby Generator Version](https://img.shields.io/docker/v/fernapi/fern-ruby-sdk) | [cli.ts](./generators/ruby/sdk/src/cli.ts) | +| `fernapi/fern-go-sdk` | ![Go Generator Version](https://img.shields.io/docker/v/fernapi/fern-go-sdk) | [main.go](./generators/go/cmd/fern-go-sdk/main.go) | +| `fernapi/fern-csharp-sdk` | ![C# Generator Version](https://img.shields.io/docker/v/fernapi/fern-csharp-sdk) | [cli.ts](./generators/csharp/sdk/src/cli.ts) | ### Server-side Generators Fern's server-side generators output boilerplate application code (models and networking logic). This is intended for spec-first or API-first developers, who write their API definition (as an OpenAPI spec or Fern definition) and want to generate backend code. -| Generator ID | Latest Version | Entrypoint | -| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------- | -| `fernapi/fern-typescript-express` | ![Typescript Express Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-typescript-express) |[cli.ts](./generators/typescript/express/cli/src/cli.ts) | -| `fernapi/fern-fastapi-server` | ![Python FastAPI Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-fastapi-server) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | -| `fernapi/fern-java-spring` | ![Java Spring Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-java-spring) | [Cli.java](./generators/java/spring/src/main/java/com/fern/java/spring/Cli.java) | +| Generator ID | Latest Version | Entrypoint | +| --------------------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `fernapi/fern-typescript-express` | ![Typescript Express Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-typescript-express) | [cli.ts](./generators/typescript/express/cli/src/cli.ts) | +| `fernapi/fern-fastapi-server` | ![Python FastAPI Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-fastapi-server) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | +| `fernapi/fern-java-spring` | ![Java Spring Server Generator Version](https://img.shields.io/docker/v/fernapi/fern-java-spring) | [Cli.java](./generators/java/spring/src/main/java/com/fern/java/spring/Cli.java) | ### Model Generators Fern's model generators will output schemas or types defined in your OpenAPI spec or Fern Definition. -| Generator ID | Latest Version | Entrypoint | -| ----------------------------- | --------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `fernapi/fern-pydantic-model` | ![Pydantic Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-pydantic-model) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | -| `fernapi/java-model` | ![Java Model Generator Version](https://img.shields.io/docker/v/fernapi/java-model) | [Cli.java](./generators/java/sdk/src/main/java/com/fern/java/client/Cli.java) | -| `fernapi/fern-ruby-model` | ![Ruby Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-ruby-model) | [cli.ts](./generators/ruby/model/src/cli.ts) | -| `fernapi/fern-go-model` | ![Go Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-go-model) | [main.go](./generators/go/cmd/fern-go-model/main.go) | +| Generator ID | Latest Version | Entrypoint | +| ----------------------------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | +| `fernapi/fern-pydantic-model` | ![Pydantic Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-pydantic-model) | [cli.py](./generators/python/src/fern_python/generators/sdk/cli.py) | +| `fernapi/java-model` | ![Java Model Generator Version](https://img.shields.io/docker/v/fernapi/java-model) | [Cli.java](./generators/java/sdk/src/main/java/com/fern/java/client/Cli.java) | +| `fernapi/fern-ruby-model` | ![Ruby Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-ruby-model) | [cli.ts](./generators/ruby/model/src/cli.ts) | +| `fernapi/fern-go-model` | ![Go Model Generator Version](https://img.shields.io/docker/v/fernapi/fern-go-model) | [main.go](./generators/go/cmd/fern-go-model/main.go) | ### Spec Generators @@ -118,11 +116,10 @@ Fern's spec generators can output an OpenAPI spec or a Postman collection. > **Note**: The OpenAPI spec generator is primarily intended for Fern Definition users. This prevents lock-in so that one can always export to OpenAPI. -| Generator ID | Latest Version | Entrypoint | -| ---------------------- | ------------------------------------------------- | ------------------------------------------ | -| `fernapi/fern-openapi` | ![OpenAPI Generator Version](https://img.shields.io/docker/v/fernapi/fern-openapi) | [cli.ts](./generators/openapi/src/cli.ts) | -| `fernapi/fern-postman` | ![Postman Generator Version](https://img.shields.io/docker/v/fernapi/fern-postman) | [cli.ts](./generators/postman/src/cli.ts) | - +| Generator ID | Latest Version | Entrypoint | +| ---------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------- | +| `fernapi/fern-openapi` | ![OpenAPI Generator Version](https://img.shields.io/docker/v/fernapi/fern-openapi) | [cli.ts](./generators/openapi/src/cli.ts) | +| `fernapi/fern-postman` | ![Postman Generator Version](https://img.shields.io/docker/v/fernapi/fern-postman) | [cli.ts](./generators/postman/src/cli.ts) | ## 🌿 CLI Commands diff --git a/SECURITY.md b/SECURITY.md index e9e67fcb52a..31292209faf 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,8 +6,7 @@ The following versions of Fern are currently being supported with security updat | Version | Supported | | ------- | ------------------ | -| 0.15.x | :white_check_mark: | -| 0.16.x | :white_check_mark: | +| 0.44.x | :white_check_mark: | ## Reporting a Vulnerability diff --git a/fern/apis/docs-yml/generators.yml b/fern/apis/docs-yml/generators.yml index c3683edefb2..b9705951d4a 100644 --- a/fern/apis/docs-yml/generators.yml +++ b/fern/apis/docs-yml/generators.yml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json + default-group: local groups: local: diff --git a/fern/apis/fern-definition/generators.yml b/fern/apis/fern-definition/generators.yml index 684d240849b..ea06cc6c2af 100644 --- a/fern/apis/fern-definition/generators.yml +++ b/fern/apis/fern-definition/generators.yml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json + default-group: local groups: local: diff --git a/fern/apis/fhir/generators.yml b/fern/apis/fhir/generators.yml index 2d500140d07..f658d6b3ab5 100644 --- a/fern/apis/fhir/generators.yml +++ b/fern/apis/fhir/generators.yml @@ -1,4 +1,5 @@ -# default-group: sdks +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json + groups: sdks: generators: diff --git a/fern/apis/generators-yml/generators.yml b/fern/apis/generators-yml/generators.yml index 0add1c88abe..5f1605a81da 100644 --- a/fern/apis/generators-yml/generators.yml +++ b/fern/apis/generators-yml/generators.yml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json + default-group: local groups: local: diff --git a/fern/apis/public-api/generators.yml b/fern/apis/public-api/generators.yml index 181362182a2..27495b7783f 100644 --- a/fern/apis/public-api/generators.yml +++ b/fern/apis/public-api/generators.yml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json + groups: node-sdk: audiences: @@ -40,7 +42,6 @@ groups: coordinate: com.fern.api:fern-java-sdk username: fernapi password: ${MAVEN_PASSWORD} - # TODO: uncomment after this config is released signature: keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID} password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD} diff --git a/fern/docs.yml b/fern/docs.yml index 21b733c699a..7bc036a92e0 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -39,8 +39,20 @@ tabs: css: ./assets/styles.css redirects: - - source: /api-definition/fern/api-yml-reference - destination: /api-definition/fern/api-yml/overview + - source: /learn/api-definition/fern/api-yml-reference + destination: /learn/api-definition/fern/api-yml/overview + - source: /learn/sdks/features/:slug + destination: /learn/sdks/capabilities/:slug + - source: /learn/sdks/package-managers/:slug + destination: /learn/sdks/guides/publish-to-package-managers/:slug + - source: /learn/sdks/introduction/configuration + destination: /learn/sdks/introduction/language-support + - source: /learn/sdks/getting-started/generate-your-first-sdk + destination: /learn/sdks/guides/generate-your-first-sdk + - source: /learn/sdks/getting-started/preview-your-sdk-locally + destination: /learn/sdks/guides/preview-your-sdk-locally + - source: /learn/sdks/getting-started/publish-a-public-facing-sdk + destination: /learn/sdks/guides/publish-a-public-facing-sdk navigation: - tab: home @@ -66,10 +78,6 @@ navigation: - page: Authentication icon: fa-regular fa-lock-keyhole path: ./pages/api-definition/openapi/auth.mdx - # - page: OpenAPI Examples - # icon: fa-regular fa-square-terminal - # path: ./pages/api-definition/openapi/examples.mdx - # slug: examples - section: Endpoints icon: fa-regular fa-object-intersect slug: endpoints @@ -204,8 +212,8 @@ navigation: contents: - page: Overview path: ./pages/sdks/introduction/overview.mdx - - page: Configuration - path: ./pages/sdks/introduction/configuration.mdx + - page: Language Support + path: ./pages/sdks/introduction/language-support.mdx - section: Changelogs slug: changelog contents: @@ -227,97 +235,91 @@ navigation: - changelog: ./pages/changelogs/ruby-sdk title: Ruby slug: ruby - - section: Getting Started - contents: - - page: Generate your First SDK - path: ./pages/sdks/getting-started/generate-your-first-sdk.mdx - - page: Preview your SDK Locally - path: ./pages/sdks/getting-started/preview-your-sdk-locally.mdx - - page: Publish a Public-Facing SDK - path: ./pages/sdks/publish-sdk/publish-your-sdk.mdx - - section: Features + - section: Capabilities contents: - page: Strongly Typed - path: ./pages/sdks/features/strongly-typed.mdx + path: ./pages/sdks/capabilities/strongly-typed.mdx - page: Idiomatic Method Names - path: ./pages/sdks/features/idiomatic-method-names.mdx + path: ./pages/sdks/capabilities/idiomatic-method-names.mdx - page: Schema Validation - path: ./pages/sdks/features/schema-validation.mdx + path: ./pages/sdks/capabilities/schema-validation.mdx - page: Discriminated Unions - path: ./pages/sdks/features/discriminated-unions.mdx + path: ./pages/sdks/capabilities/discriminated-unions.mdx - page: Multipart Form Data - path: ./pages/sdks/features/multipart-form-data.mdx + path: ./pages/sdks/capabilities/multipart-form-data.mdx - page: Forward Compatibility - path: ./pages/sdks/features/forward-compatibility.mdx + path: ./pages/sdks/capabilities/forward-compatibility.mdx - page: Registry Publishing - path: ./pages/sdks/features/publish-to-registries.mdx + path: ./pages/sdks/capabilities/publish-to-registries.mdx icon: fa-regular fa-pro - page: Auto-Pagination - path: ./pages/sdks/features/auto-pagination.mdx + path: ./pages/sdks/capabilities/auto-pagination.mdx icon: fa-regular fa-pro - page: OAuth Token Refresh - path: ./pages/sdks/features/oauth.mdx + path: ./pages/sdks/capabilities/oauth.mdx icon: fa-regular fa-pro - page: Retries with Backoff - path: ./pages/sdks/features/retries-with-backoff.mdx + path: ./pages/sdks/capabilities/retries-with-backoff.mdx icon: fa-regular fa-pro - page: Webhook Signature Verification - path: ./pages/sdks/features/webhook-signature-verification.mdx + path: ./pages/sdks/capabilities/webhook-signature-verification.mdx icon: fa-regular fa-pro - page: Idempotency Headers - path: ./pages/sdks/features/idempotency-headers.mdx + path: ./pages/sdks/capabilities/idempotency-headers.mdx icon: fa-regular fa-pro - page: Server-Sent Events - path: ./pages/sdks/features/server-sent-events.mdx + path: ./pages/sdks/capabilities/server-sent-events.mdx icon: fa-regular fa-pro - page: Integration Tests - path: ./pages/sdks/features/integration-tests.mdx + path: ./pages/sdks/capabilities/integration-tests.mdx icon: fa-regular fa-pro - page: Code Snippets - path: ./pages/sdks/features/code-snippets.mdx + path: ./pages/sdks/capabilities/code-snippets.mdx icon: fa-regular fa-pro - page: Augment with Custom Code - path: ./pages/sdks/features/augment-with-custom-code.mdx + path: ./pages/sdks/capabilities/augment-with-custom-code.mdx icon: fa-regular fa-pro - page: Merging Multiple APIs - path: ./pages/sdks/features/merging-multiple-apis.mdx + path: ./pages/sdks/capabilities/merging-multiple-apis.mdx icon: fa-regular fa-pro - page: WebSockets - path: ./pages/sdks/features/websockets.mdx + path: ./pages/sdks/capabilities/websockets.mdx icon: fa-regular fa-pro - # icon: fa-regular fa-pro - # - page: Object oriented SDKs - # path: ./pages/sdks/features/dummy.mdx - # icon: fa-regular fa-pro - # - page: Polling - # path: ./pages/sdks/features/dummy.mdx - # icon: fa-regular fa-pro - # - page: GitHub integration - # path: ./pages/sdks/features/dummy.mdx - # icon: fa-regular fa-pro - - section: Package Managers + - section: Reference contents: - - page: NPM (TypeScript) - path: ./pages/sdks/integration/npm.mdx - - page: PyPI (Python) - slug: pypi - path: ./pages/sdks/integration/pypi.mdx - - page: NuGet (C#) - slug: nuget - path: ./pages/sdks/integration/nuget.mdx - - page: Pkgsite (Go) - slug: pkgsite - path: ./pages/sdks/integration/pkgsite.mdx - - page: Maven Central (Java) - slug: maven-central - path: ./pages/sdks/integration/maven-central.mdx - - page: RubyGems (Ruby) - slug: rubygems - path: ./pages/sdks/integration/rubygems.mdx - - page: Packagist (PHP) - slug: packagist - path: ./pages/sdks/integration/packagist.mdx - + - page: Configuration + path: ./pages/sdks/introduction/configuration.mdx + - section: Guides + contents: + - page: Generate your First SDK + path: ./pages/sdks/getting-started/generate-your-first-sdk.mdx + - page: Preview your SDK Locally + path: ./pages/sdks/getting-started/preview-your-sdk-locally.mdx + - page: Publish a Public-Facing SDK + path: ./pages/sdks/publish-sdk/publish-your-sdk.mdx + slug: publish-a-public-facing-sdk + - section: Publish to package managers + contents: + - page: NPM (TypeScript) + path: ./pages/sdks/integration/npm.mdx + - page: PyPI (Python) + slug: pypi + path: ./pages/sdks/integration/pypi.mdx + - page: NuGet (C#) + slug: nuget + path: ./pages/sdks/integration/nuget.mdx + - page: Pkgsite (Go) + slug: pkgsite + path: ./pages/sdks/integration/pkgsite.mdx + - page: Maven Central (Java) + slug: maven-central + path: ./pages/sdks/integration/maven-central.mdx + - page: RubyGems (Ruby) + slug: rubygems + path: ./pages/sdks/integration/rubygems.mdx + - page: Packagist (PHP) + slug: packagist + path: ./pages/sdks/integration/packagist.mdx - section: Alternatives hidden: true contents: @@ -390,7 +392,6 @@ navigation: - section: Components icon: fa-regular fa-toolbox slug: components - # path: ./pages/docs/components/overview.mdx contents: - page: Overview icon: fa-regular fa-wrench @@ -493,6 +494,9 @@ navigation: icon: fa-regular fa-chart-simple slug: analytics contents: + - page: Google Analytics + path: ./pages/docs/integrations/analytics/google.mdx + slug: google - page: PostHog path: ./pages/docs/integrations/analytics/posthog.mdx slug: posthog @@ -550,9 +554,6 @@ navigation: layout: - page: Overview path: ./pages/cli-api/api-summary.mdx - # snippets: - # python: fern-api - # typescript: "@fern-api/node-sdk" navbar-links: - type: minimal @@ -576,8 +577,6 @@ logo: light: ./images/logo-primary.svg dark: ./images/logo-white.svg height: 30 -# background-image: -# dark: ./images/background.svg colors: accentPrimary: dark: "#1DA32B" diff --git a/fern/fern.config.json b/fern/fern.config.json index 7d8a700bd42..dafc642ff7b 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "fern", "version": "*" -} \ No newline at end of file +} diff --git a/fern/images/background.svg b/fern/images/background.svg deleted file mode 100644 index 49a3b358672..00000000000 --- a/fern/images/background.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fern/images/logo-primary.png b/fern/images/logo-primary.png deleted file mode 100644 index c7034db0795..00000000000 Binary files a/fern/images/logo-primary.png and /dev/null differ diff --git a/fern/images/logo-white.png b/fern/images/logo-white.png deleted file mode 100644 index 6dae45def2c..00000000000 Binary files a/fern/images/logo-white.png and /dev/null differ diff --git a/fern/pages/changelogs/cli/2024-11-23.mdx b/fern/pages/changelogs/cli/2024-11-23.mdx new file mode 100644 index 00000000000..9838d06e40f --- /dev/null +++ b/fern/pages/changelogs/cli/2024-11-23.mdx @@ -0,0 +1,4 @@ +## 0.45.0 +**`(internal):`** Several improvements to docs, conjure importer, and the cli. + + diff --git a/fern/pages/changelogs/csharp-sdk/2024-11-14.mdx b/fern/pages/changelogs/csharp-sdk/2024-11-14.mdx index ac9c06e9804..fab887bb95e 100644 --- a/fern/pages/changelogs/csharp-sdk/2024-11-14.mdx +++ b/fern/pages/changelogs/csharp-sdk/2024-11-14.mdx @@ -1,3 +1,3 @@ ## 1.9.8 -**`(feat):`** Add support for [idempotency headers](https://buildwithfern.com/learn/sdks/features/idempotency-headers). +**`(feat):`** Add support for [idempotency headers](https://buildwithfern.com/learn/sdks/capabilities/idempotency-headers). diff --git a/fern/pages/docs/building-your-docs/custom-css-js.mdx b/fern/pages/docs/building-your-docs/custom-css-js.mdx index 08f2bdf8b8f..926f8a33fb7 100644 --- a/fern/pages/docs/building-your-docs/custom-css-js.mdx +++ b/fern/pages/docs/building-your-docs/custom-css-js.mdx @@ -5,8 +5,8 @@ description: Add brand-specific styling, user interactions. and components to ma --- -Custom CSS & JS are available on the Business plan. -Adding Custom Components is available on the Enterprise plan. +Custom CSS & JS are available on the Basic plan. +Adding Custom Components is available on the Pro plan. ## Custom CSS diff --git a/fern/pages/docs/building-your-docs/custom-domain.mdx b/fern/pages/docs/building-your-docs/custom-domain.mdx index ae9618d2e1d..bf7438d29e3 100644 --- a/fern/pages/docs/building-your-docs/custom-domain.mdx +++ b/fern/pages/docs/building-your-docs/custom-domain.mdx @@ -9,7 +9,7 @@ You can use: - A subdomain on your custom domain, such as `docs.example.com` - A subpath on your custom domain, such as `example.com/docs` -This feature is available on the Starter plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. +This feature is available on the Basic plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. @@ -92,7 +92,7 @@ If you need to update your Fern Docs site manually, run `fern generate --docs`. ### Reach out to us -This feature is available on the Fern Docs Starter plan and above. Reach out to [sales@buildwithfern.com](mailto:sales@buildwithfern.com) to set up your subscription and obtain the configuration for setting up your custom subpath. +This feature is available on the Fern Docs Basic plan and above. Reach out to [sales@buildwithfern.com](mailto:sales@buildwithfern.com) to set up your subscription and obtain the configuration for setting up your custom subpath. diff --git a/fern/pages/docs/building-your-docs/links-and-redirects.mdx b/fern/pages/docs/building-your-docs/links-and-redirects.mdx index 5cc559ad842..efd766c2df8 100644 --- a/fern/pages/docs/building-your-docs/links-and-redirects.mdx +++ b/fern/pages/docs/building-your-docs/links-and-redirects.mdx @@ -27,6 +27,10 @@ redirects: ``` + +If your docs are hosted on a subpath (like `buildwithfern.com/learn`), be sure to include the subpath in the redirect. + + ## Links You can add a link to an external page within your sidebar navigation with the following configuration: diff --git a/fern/pages/docs/building-your-docs/user-feedback.mdx b/fern/pages/docs/building-your-docs/user-feedback.mdx index 78f7cfbd2b1..1b59c222756 100644 --- a/fern/pages/docs/building-your-docs/user-feedback.mdx +++ b/fern/pages/docs/building-your-docs/user-feedback.mdx @@ -12,7 +12,7 @@ By default, every Markdown page of your docs contains a feedback component at th -This feature is available on the Starter plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. +This feature is available on the Basic plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. The feedback can be sent to you in real-time via the method of your choosing (e.g. Slack, email). diff --git a/fern/pages/docs/components/code-blocks.mdx b/fern/pages/docs/components/code-blocks.mdx index 32b3fe8cec0..30cf9105089 100644 --- a/fern/pages/docs/components/code-blocks.mdx +++ b/fern/pages/docs/components/code-blocks.mdx @@ -194,10 +194,24 @@ number of lines to display. By default, the code block will display up to 20 lin +## Wrap overflow + +By default, long lines that exceed the width of the code block become scrollable: + +```txt title="Without Word Wrap" +A very very very long line of text that may cause the codeblock to overflow and scroll as a result. +``` + +To disable scrolling and wrap overflow onto the next line, use the `wordWrap` prop: + +```txt title="With Word Wrap" wordWrap +A very very very long line of text that may cause the codeblock to overflow and scroll as a result. +``` + ## Combining props -You can combine the `title`, `highlight`, `focus`, and `maxLines` +You can combine the `title`, `highlight`, `focus`, `maxLines`, and `wordWrap` props to create a code block with a title, highlighted lines, and a maximum height. diff --git a/fern/pages/docs/getting-started/project-structure.mdx b/fern/pages/docs/getting-started/project-structure.mdx index 07ce709efa3..7ab210f8b4e 100644 --- a/fern/pages/docs/getting-started/project-structure.mdx +++ b/fern/pages/docs/getting-started/project-structure.mdx @@ -90,8 +90,8 @@ navbar-links: url: https://buildwithfern.com/contact logo: - light: ./images/logo-primary.png - dark: ./images/logo-white.png + light: ./images/logo-primary.svg + dark: ./images/logo-white.svg colors: accentPrimary: diff --git a/fern/pages/docs/integrations/analytics/google.mdx b/fern/pages/docs/integrations/analytics/google.mdx new file mode 100644 index 00000000000..4057d9eed27 --- /dev/null +++ b/fern/pages/docs/integrations/analytics/google.mdx @@ -0,0 +1,10 @@ +--- +title: Google Analytics +subtitle: Add Google Analytics to your Docs with Fern. +--- + +Fern supports integrating with both [Google Analytics 4](https://developers.google.com/analytics) and [Google Tag Manager](https://tagmanager.google.com/). + + +This feature is available on the Fern Basic plan and above. Reach out to [support@buildwithfern.com](mailto:support@buildwithfern.com) to set up your Google Analytics. + diff --git a/fern/pages/fern-docs/content/api-playground.mdx b/fern/pages/fern-docs/content/api-playground.mdx index 1b2d116bb6b..f58b9628480 100644 --- a/fern/pages/fern-docs/content/api-playground.mdx +++ b/fern/pages/fern-docs/content/api-playground.mdx @@ -3,7 +3,7 @@ title: API Playground subtitle: Reduce "time to 200" by allowing users to make real calls to your API from right within the API Reference. --- -This feature is available on the Business plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. +This feature is available on the Basic plan and above. [Contact us](https://buildwithfern.com/contact) to get set up. Fern's API Playground allows users to make authenticated requests to your API without ever leaving your documentation. diff --git a/fern/pages/sdks/features/augment-with-custom-code.mdx b/fern/pages/sdks/capabilities/augment-with-custom-code.mdx similarity index 100% rename from fern/pages/sdks/features/augment-with-custom-code.mdx rename to fern/pages/sdks/capabilities/augment-with-custom-code.mdx diff --git a/fern/pages/sdks/features/auto-pagination.mdx b/fern/pages/sdks/capabilities/auto-pagination.mdx similarity index 100% rename from fern/pages/sdks/features/auto-pagination.mdx rename to fern/pages/sdks/capabilities/auto-pagination.mdx diff --git a/fern/pages/sdks/features/code-snippets.mdx b/fern/pages/sdks/capabilities/code-snippets.mdx similarity index 100% rename from fern/pages/sdks/features/code-snippets.mdx rename to fern/pages/sdks/capabilities/code-snippets.mdx diff --git a/fern/pages/sdks/features/discriminated-unions.mdx b/fern/pages/sdks/capabilities/discriminated-unions.mdx similarity index 100% rename from fern/pages/sdks/features/discriminated-unions.mdx rename to fern/pages/sdks/capabilities/discriminated-unions.mdx diff --git a/fern/pages/sdks/features/dummy.mdx b/fern/pages/sdks/capabilities/dummy.mdx similarity index 100% rename from fern/pages/sdks/features/dummy.mdx rename to fern/pages/sdks/capabilities/dummy.mdx diff --git a/fern/pages/sdks/features/forward-compatibility.mdx b/fern/pages/sdks/capabilities/forward-compatibility.mdx similarity index 100% rename from fern/pages/sdks/features/forward-compatibility.mdx rename to fern/pages/sdks/capabilities/forward-compatibility.mdx diff --git a/fern/pages/sdks/features/idempotency-headers.mdx b/fern/pages/sdks/capabilities/idempotency-headers.mdx similarity index 100% rename from fern/pages/sdks/features/idempotency-headers.mdx rename to fern/pages/sdks/capabilities/idempotency-headers.mdx diff --git a/fern/pages/sdks/features/idiomatic-method-names.mdx b/fern/pages/sdks/capabilities/idiomatic-method-names.mdx similarity index 100% rename from fern/pages/sdks/features/idiomatic-method-names.mdx rename to fern/pages/sdks/capabilities/idiomatic-method-names.mdx diff --git a/fern/pages/sdks/features/integration-tests.mdx b/fern/pages/sdks/capabilities/integration-tests.mdx similarity index 100% rename from fern/pages/sdks/features/integration-tests.mdx rename to fern/pages/sdks/capabilities/integration-tests.mdx diff --git a/fern/pages/sdks/features/merging-multiple-apis.mdx b/fern/pages/sdks/capabilities/merging-multiple-apis.mdx similarity index 100% rename from fern/pages/sdks/features/merging-multiple-apis.mdx rename to fern/pages/sdks/capabilities/merging-multiple-apis.mdx diff --git a/fern/pages/sdks/features/multipart-form-data.mdx b/fern/pages/sdks/capabilities/multipart-form-data.mdx similarity index 100% rename from fern/pages/sdks/features/multipart-form-data.mdx rename to fern/pages/sdks/capabilities/multipart-form-data.mdx diff --git a/fern/pages/sdks/features/oauth.mdx b/fern/pages/sdks/capabilities/oauth.mdx similarity index 100% rename from fern/pages/sdks/features/oauth.mdx rename to fern/pages/sdks/capabilities/oauth.mdx diff --git a/fern/pages/sdks/features/pro.mdx b/fern/pages/sdks/capabilities/pro.mdx similarity index 100% rename from fern/pages/sdks/features/pro.mdx rename to fern/pages/sdks/capabilities/pro.mdx diff --git a/fern/pages/sdks/features/publish-to-registries.mdx b/fern/pages/sdks/capabilities/publish-to-registries.mdx similarity index 100% rename from fern/pages/sdks/features/publish-to-registries.mdx rename to fern/pages/sdks/capabilities/publish-to-registries.mdx diff --git a/fern/pages/sdks/features/retries-with-backoff.mdx b/fern/pages/sdks/capabilities/retries-with-backoff.mdx similarity index 100% rename from fern/pages/sdks/features/retries-with-backoff.mdx rename to fern/pages/sdks/capabilities/retries-with-backoff.mdx diff --git a/fern/pages/sdks/features/schema-validation.mdx b/fern/pages/sdks/capabilities/schema-validation.mdx similarity index 100% rename from fern/pages/sdks/features/schema-validation.mdx rename to fern/pages/sdks/capabilities/schema-validation.mdx diff --git a/fern/pages/sdks/features/server-sent-events.mdx b/fern/pages/sdks/capabilities/server-sent-events.mdx similarity index 100% rename from fern/pages/sdks/features/server-sent-events.mdx rename to fern/pages/sdks/capabilities/server-sent-events.mdx diff --git a/fern/pages/sdks/features/strongly-typed.mdx b/fern/pages/sdks/capabilities/strongly-typed.mdx similarity index 100% rename from fern/pages/sdks/features/strongly-typed.mdx rename to fern/pages/sdks/capabilities/strongly-typed.mdx diff --git a/fern/pages/sdks/features/webhook-signature-verification.mdx b/fern/pages/sdks/capabilities/webhook-signature-verification.mdx similarity index 100% rename from fern/pages/sdks/features/webhook-signature-verification.mdx rename to fern/pages/sdks/capabilities/webhook-signature-verification.mdx diff --git a/fern/pages/sdks/features/websockets.mdx b/fern/pages/sdks/capabilities/websockets.mdx similarity index 100% rename from fern/pages/sdks/features/websockets.mdx rename to fern/pages/sdks/capabilities/websockets.mdx diff --git a/fern/pages/sdks/getting-started/preview-your-sdk-locally.mdx b/fern/pages/sdks/getting-started/preview-your-sdk-locally.mdx index 622e5865daf..0e118894997 100644 --- a/fern/pages/sdks/getting-started/preview-your-sdk-locally.mdx +++ b/fern/pages/sdks/getting-started/preview-your-sdk-locally.mdx @@ -1,17 +1,18 @@ --- title: Preview your SDK -subtitle: Use Fern's CLI tool to preview your SDK locally. +subtitle: Use Fern's CLI tool to preview your SDK locally. --- -[Once you configure your SDK](/learn/sdks/getting-started/generate-your-first-sdk), you can preview the generated SDK code using Fern's CLI. +[Once you configure your SDK](/learn/sdks/getting-started/generate-your-first-sdk), you can preview the generated SDK code using Fern's CLI. -Simply append the `--preview` flag to the command used to generate the SDK and you will see the generated code populated in a `.preview` folder within your `fern` folder. +Simply append the `--preview` flag to the command used to generate the SDK and you will see the generated code populated in a `.preview` folder within your `fern` folder. -[If you have added custom code to your SDK](/learn/sdks/features/augment-with-custom-code), `--preview` will preserve those changes. + [If you have added custom code to your SDK](/learn/sdks/capabilities/augment-with-custom-code), `--preview` will + preserve those changes. -Here's an example of how you can preview your SDK: +Here's an example of how you can preview your SDK: ### Generator configuration @@ -35,13 +36,13 @@ groups: ### Invoke the Fern CLI -```shell +```shell fern generate --group python-sdk --preview ``` ### Preview your SDK -The resulting folder structure will look like this: +The resulting folder structure will look like this: @@ -70,4 +71,4 @@ fern/ ``` - \ No newline at end of file + diff --git a/fern/pages/sdks/introduction/configuration.mdx b/fern/pages/sdks/introduction/configuration.mdx index 3fd9d89f420..23c58ecf96f 100644 --- a/fern/pages/sdks/introduction/configuration.mdx +++ b/fern/pages/sdks/introduction/configuration.mdx @@ -1,63 +1,58 @@ --- -title: 'SDK Configuration' -subtitle: 'Configure your SDK generators in `generators.yml` and publish to registries' +title: "SDK Configuration" +subtitle: "Configure your SDK generators in `generators.yml` and publish to registries" --- - Before you can configure your generators, you must setup your API Definition. Learn more [**here**](/learn/api-definition/introduction/what-is-the-fern-folder) - - - - - The public schema for `generators.yml` can be found [**here**](https://schema.buildwithfern.dev/generators-yml.json). + Before you can configure your generators, you must setup your API Definition. Learn more + [**here**](/learn/api-definition/introduction/what-is-the-fern-folder) ## Top Level Configuration - ```yaml title="generators.yml" maxLines=10 default-group: local -readme: +readme: apiReferenceLink: https://plantstore.dev defaultEndpoint: GET /v3/store/inventory -groups: - node: - generators: +groups: + node: + generators: - name: fernapi/fern-typescript-node-sdk version: 0.x.x - output: + output: location: npm package-name: "@plantstore/sdk" token: ${NPM_TOKEN} - config: + config: outputSourceFiles: true - github: + github: repository: "plantstore/plantstore-js" - metadata: + metadata: package-description: JavaScript library for the Plant Store API Service license: MIT - python: - generators: + python: + generators: - name: fernapi/fern-python-sdk version: 0.x.x - output: + output: location: pypi package-name: "plantstore" token: ${PYPI_TOKEN} - config: + config: outputSourceFiles: true - github: - repository: "plantstore/plantstore-python" + github: + repository: "plantstore/plantstore-python" ``` - The default group of generators to run when running `fern generate`. + The default group of generators to run when running `fern generate`. - Learn more about the README configuration [here](/learn/sdks/introduction/configuration#readme-configuration). + Learn more about the README configuration [here](#readme-configuration). @@ -67,24 +62,24 @@ groups: ## README Configuration ```yaml generators.yml -readme: +readme: apiReferenceLink: https://plantstore.dev defaultEndpoint: GET /v3/store/inventory ``` - A link to your hosted API Reference. Fern will embed this link into your generated READMEs so that SDK users know to navigate to your - API Reference. + A link to your hosted API Reference. Fern will embed this link into your generated READMEs so that SDK users know to + navigate to your API Reference. - The endpoint you want to use in README code samples. If unspecified, Fern will default to the first POST request. + The endpoint you want to use in README code samples. If unspecified, Fern will default to the first POST request. ## Specify Package Metadata ```yaml generators.yml -metadata: +metadata: package-description: Python library for the Plant Store API Service license: Apache ``` @@ -94,5 +89,15 @@ metadata: - The license you'd like to apply to the code published to GitHub. Options include `MIT` or `Apache` (Apache 2.0). To request a new license, [open a GitHub Issue](https://github.com/fern-api/fern/issues/new?assignees=&labels=&projects=&template=feature-request.md&title=%5BFeature%5D). + The license you'd like to apply to the code published to GitHub. Options include `MIT` or `Apache` (Apache 2.0). To + request a new license, [open a GitHub + Issue](https://github.com/fern-api/fern/issues/new?assignees=&labels=&projects=&template=feature-request.md&title=%5BFeature%5D). + +## Schema Validation + +Add the following as a comment in your `generators.yml` to enable schema validation, ensuring that your configuration is correct. Check out an example in [Cartesia's Fern Folder](https://github.com/cartesia-ai/docs/blob/43b143f66845d90bffbd0ef1951fd812229d95c0/fern/generators.yml#L1). + +```yaml +yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json +``` \ No newline at end of file diff --git a/fern/pages/sdks/introduction/language-support.mdx b/fern/pages/sdks/introduction/language-support.mdx new file mode 100644 index 00000000000..38b07b468fb --- /dev/null +++ b/fern/pages/sdks/introduction/language-support.mdx @@ -0,0 +1,30 @@ +--- +title: Language support +--- + +Fern supports generating SDKs in several different programming languages. Each SDK generator is written by a language expert and is officially maintained by the Fern team. + +### Generally Available + + + + + + + + + + + +### Coming Soon + + + + + + + + + + Please reach out to support@buildwithfern.com if you're interested in our generators that are coming soon. + diff --git a/fern/pages/sdks/introduction/overview.mdx b/fern/pages/sdks/introduction/overview.mdx index 86f3c13c3b7..3ce5af8219c 100644 --- a/fern/pages/sdks/introduction/overview.mdx +++ b/fern/pages/sdks/introduction/overview.mdx @@ -1,33 +1,23 @@ --- title: SDK Overview -description: Generate SDKs in multiple programming languages +description: Generate idiomatic SDKs in multiple programming languages --- -Fern supports generating SDKs in several different programming languages. Each -SDK generator is written by a language expert and is officially maintained by -the Fern team. +Let Fern do the heavy lifting of generating and publishing client libraries so your team can focus on building the API. -### Generally Available +## Learn more - - - - - - - - + + + Explore the full list of Fern's supported languages. + + + See Fern in action with a personalized demo. + + + Learn more about advanced features supported by Fern's SDk generation. + + + Follow our step-by-step guide to generate your first SDK in minutes. + - -### Coming Soon - - - - - - - - - - Please reach out to support@buildwithfern.com if you're interested in our generators that are coming soon. - diff --git a/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGenerator.ts b/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGenerator.ts new file mode 100644 index 00000000000..fefa931b597 --- /dev/null +++ b/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGenerator.ts @@ -0,0 +1,16 @@ +import { AbstractDynamicSnippetsGeneratorContext } from "./AbstractDynamicSnippetsGeneratorContext"; + +export abstract class AbstractDynamicSnippetsGenerator< + DynamicIntermediateRepresentation, + Context extends AbstractDynamicSnippetsGeneratorContext, + EndpointSnippetRequest, + EndpointSnippetResponse +> { + public constructor(public readonly context: Context) {} + + /** + * Generates code for the specified request. + * @param request + */ + public abstract generate(request: EndpointSnippetRequest): Promise; +} diff --git a/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts b/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts new file mode 100644 index 00000000000..c7d0c30e676 --- /dev/null +++ b/generators/commons/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts @@ -0,0 +1,8 @@ +import { FernGeneratorExec } from "@fern-fern/generator-exec-sdk"; + +export abstract class AbstractDynamicSnippetsGeneratorContext { + public constructor( + public readonly ir: DynamicIntermediateRepresentation, + public readonly config: FernGeneratorExec.GeneratorConfig + ) {} +} diff --git a/generators/commons/src/dynamic-snippets/index.ts b/generators/commons/src/dynamic-snippets/index.ts new file mode 100644 index 00000000000..64b381e483a --- /dev/null +++ b/generators/commons/src/dynamic-snippets/index.ts @@ -0,0 +1,2 @@ +export { AbstractDynamicSnippetsGenerator } from "./AbstractDynamicSnippetsGenerator"; +export { AbstractDynamicSnippetsGeneratorContext } from "./AbstractDynamicSnippetsGeneratorContext"; diff --git a/generators/commons/src/index.ts b/generators/commons/src/index.ts index 03611850e8e..71448ee2aa5 100644 --- a/generators/commons/src/index.ts +++ b/generators/commons/src/index.ts @@ -8,3 +8,4 @@ export * from "./project"; export * from "./readme"; export * from "./reference"; export * from "./utils"; +export * from "./dynamic-snippets"; diff --git a/generators/csharp/sdk/versions.yml b/generators/csharp/sdk/versions.yml index eed3cdb41bd..b3185103fb2 100644 --- a/generators/csharp/sdk/versions.yml +++ b/generators/csharp/sdk/versions.yml @@ -27,7 +27,7 @@ createdAt: "2024-11-14" changelogEntry: - type: feat - summary: Add support for [idempotency headers](https://buildwithfern.com/learn/sdks/features/idempotency-headers). + summary: Add support for [idempotency headers](https://buildwithfern.com/learn/sdks/capabilities/idempotency-headers). irVersion: 53 - version: 1.9.7 createdAt: "2024-11-12" diff --git a/generators/go-v2/dynamic-snippets/build.cjs b/generators/go-v2/dynamic-snippets/build.cjs index cc12e9cb640..259a7b0d2a9 100644 --- a/generators/go-v2/dynamic-snippets/build.cjs +++ b/generators/go-v2/dynamic-snippets/build.cjs @@ -16,8 +16,6 @@ async function main() { external: [ // Test dependencies should not be included in the published package. '@fern-api/go-formatter', - '@fern-api/project-loader', - '@fern-api/workspace-loader' ], tsconfig: "./build.tsconfig.json" }); diff --git a/generators/go-v2/dynamic-snippets/package.json b/generators/go-v2/dynamic-snippets/package.json index 6404dd2b6ad..a17c105e426 100644 --- a/generators/go-v2/dynamic-snippets/package.json +++ b/generators/go-v2/dynamic-snippets/package.json @@ -29,17 +29,11 @@ }, "devDependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-api/dynamic-snippets": "workspace:*", "@fern-api/fern-definition-schema": "workspace:*", "@fern-api/fs-utils": "workspace:*", "@fern-api/generator-commons": "workspace:*", "@fern-api/go-ast": "workspace:*", "@fern-api/go-formatter": "workspace:*", - "@fern-api/ir-generator": "workspace:*", - "@fern-api/ir-sdk": "workspace:*", - "@fern-api/project-loader": "workspace:*", - "@fern-api/task-context": "workspace:*", - "@fern-api/workspace-loader": "workspace:*", "@fern-fern/ir-sdk": "^53.21.0", "@types/jest": "^29.5.12", "@types/node": "^18.7.18", diff --git a/generators/go-v2/dynamic-snippets/src/DynamicSnippetsGenerator.ts b/generators/go-v2/dynamic-snippets/src/DynamicSnippetsGenerator.ts index c9b6ac99df7..ea296f9c4aa 100644 --- a/generators/go-v2/dynamic-snippets/src/DynamicSnippetsGenerator.ts +++ b/generators/go-v2/dynamic-snippets/src/DynamicSnippetsGenerator.ts @@ -1,11 +1,9 @@ -import { AbstractFormatter, FernGeneratorExec } from "@fern-api/generator-commons"; +import { AbstractDynamicSnippetsGenerator, AbstractFormatter, FernGeneratorExec } from "@fern-api/generator-commons"; import { go } from "@fern-api/go-ast"; import { DynamicSnippetsGeneratorContext } from "./context/DynamicSnippetsGeneratorContext"; import { dynamic as DynamicSnippets } from "@fern-fern/ir-sdk/api"; -import { AbstractDynamicSnippetsGenerator } from "@fern-api/dynamic-snippets"; import { ErrorReporter, Severity } from "./context/ErrorReporter"; import { Scope } from "./Scope"; -import { assertNever } from "@fern-api/core-utils"; import { FilePropertyInfo } from "./context/FilePropertyMapper"; const SNIPPET_PACKAGE_NAME = "example"; @@ -13,7 +11,12 @@ const SNIPPET_IMPORT_PATH = "fern"; const SNIPPET_FUNC_NAME = "do"; const CLIENT_VAR_NAME = "client"; -export class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator { +export class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator< + DynamicSnippets.DynamicIntermediateRepresentation, + DynamicSnippetsGeneratorContext, + DynamicSnippets.EndpointSnippetRequest, + DynamicSnippets.EndpointSnippetResponse +> { private formatter: AbstractFormatter | undefined; constructor({ diff --git a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/ir.test.ts.snap b/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/ir.test.ts.snap deleted file mode 100644 index fc03ccb2d4c..00000000000 --- a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/ir.test.ts.snap +++ /dev/null @@ -1,6797 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`test definitions > alias 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Get( - context.TODO(), - "typeId", - ) -} -" -`; - -exports[`test definitions > alias-extends 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.ExtendedInlineRequestBody( - context.TODO(), - &acme.InlinedChildRequest{ - Child: "child", - }, - ) -} -" -`; - -exports[`test definitions > any-auth 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Auth.GetToken( - context.TODO(), - &acme.GetTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - Scope: acme.String( - "scope", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.User.Get( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > api-wide-base-path 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.Post( - context.TODO(), - "pathParam", - "serviceParam", - "resourceParam", - 1, - ) -} -" -`; - -exports[`test definitions > audiences 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.FolderA.Service.GetDirectThread( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.FolderD.Service.GetDirectThread( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo.Find( - context.TODO(), - &acme.FindRequest{ - OptionalString: acme.String( - "optionalString", - ), - PublicProperty: acme.String( - "publicProperty", - ), - PrivateProperty: acme.Int( - 1, - ), - }, - ) -} -" -`; - -exports[`test definitions > auth-environment-variables 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithAPIKey( - "", - ), - ) - client.Service.GetWithAPIKey( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithAPIKey( - "", - ), - ) - client.Service.GetWithHeader( - context.TODO(), - &acme.HeaderAuthRequest{ - XEndpointHeader: "X-Endpoint-Header", - }, - ) -} -" -`; - -exports[`test definitions > basic-auth 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithBasicAuth( - "", - "", - ), - ) - client.BasicAuth.GetWithBasicAuth( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithBasicAuth( - "", - "", - ), - ) - client.BasicAuth.PostWithBasicAuth( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} -" -`; - -exports[`test definitions > basic-auth-environment-variables 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithBasicAuth( - "", - "", - ), - ) - client.BasicAuth.GetWithBasicAuth( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithBasicAuth( - "", - "", - ), - ) - client.BasicAuth.PostWithBasicAuth( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} -" -`; - -exports[`test definitions > bearer-token-environment-variable 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithAPIKey( - "", - ), - ) - client.Service.GetWithBearerToken( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > bytes 1`] = `""`; - -exports[`test definitions > circular-references 1`] = `""`; - -exports[`test definitions > circular-references-advanced 1`] = `""`; - -exports[`test definitions > cross-package-type-names 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.FolderA.Service.GetDirectThread( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.FolderA.Service.GetDirectThread( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo.Find( - context.TODO(), - &acme.FindRequest{ - OptionalString: acme.String( - "optionalString", - ), - PublicProperty: acme.String( - "publicProperty", - ), - PrivateProperty: acme.Int( - 1, - ), - }, - ) -} -" -`; - -exports[`test definitions > csharp-grpc-proto 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Userservice.Create( - context.TODO(), - &acme.CreateRequest{}, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Userservice.Create( - context.TODO(), - &acme.CreateRequest{ - Username: acme.String( - "username", - ), - Email: acme.String( - "email", - ), - Age: acme.Int( - 1, - ), - Weight: acme.Float64( - 1.1, - ), - Metadata: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "metadata": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - }, - ) -} -" -`; - -exports[`test definitions > csharp-grpc-proto-exhaustive 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Upload( - context.TODO(), - &acme.UploadRequest{ - Columns: []*acme.Column{ - &acme.Column{ - ID: "id", - Values: []float64{ - 1.1, - }, - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Upload( - context.TODO(), - &acme.UploadRequest{ - Columns: []*acme.Column{ - &acme.Column{ - ID: "id", - Values: []float64{ - 1.1, - 1.1, - }, - Metadata: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "metadata": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - &acme.Column{ - ID: "id", - Values: []float64{ - 1.1, - 1.1, - }, - Metadata: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "metadata": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - }, - Namespace: acme.String( - "namespace", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Delete( - context.TODO(), - &acme.DeleteRequest{}, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Delete( - context.TODO(), - &acme.DeleteRequest{ - IDs: []string{ - "ids", - "ids", - }, - DeleteAll: acme.Bool( - true, - ), - Namespace: acme.String( - "namespace", - ), - Filter: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "filter": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Describe( - context.TODO(), - &acme.DescribeRequest{}, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Describe( - context.TODO(), - &acme.DescribeRequest{ - Filter: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "filter": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Fetch( - context.TODO(), - &acme.FetchRequest{}, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Fetch( - context.TODO(), - &acme.FetchRequest{ - IDs: []*string{ - acme.String( - "ids", - ), - }, - Namespace: acme.String( - "namespace", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.List( - context.TODO(), - &acme.ListRequest{}, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.List( - context.TODO(), - &acme.ListRequest{ - Prefix: acme.String( - "prefix", - ), - Limit: acme.Int( - 1, - ), - PaginationToken: acme.String( - "paginationToken", - ), - Namespace: acme.String( - "namespace", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Query( - context.TODO(), - &acme.QueryRequest{ - TopK: 1, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Query( - context.TODO(), - &acme.QueryRequest{ - Namespace: acme.String( - "namespace", - ), - TopK: 1, - Filter: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "filter": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - IncludeValues: acme.Bool( - true, - ), - IncludeMetadata: acme.Bool( - true, - ), - Queries: []*acme.QueryColumn{ - &acme.QueryColumn{ - Values: []float64{ - 1.1, - 1.1, - }, - TopK: acme.Int( - 1, - ), - Namespace: acme.String( - "namespace", - ), - Filter: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "filter": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - &acme.QueryColumn{ - Values: []float64{ - 1.1, - 1.1, - }, - TopK: acme.Int( - 1, - ), - Namespace: acme.String( - "namespace", - ), - Filter: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "filter": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - }, - Column: []float64{ - 1.1, - 1.1, - }, - ID: acme.String( - "id", - ), - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Update( - context.TODO(), - &acme.UpdateRequest{ - ID: "id", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dataservice.Update( - context.TODO(), - &acme.UpdateRequest{ - ID: "id", - Values: []float64{ - 1.1, - 1.1, - }, - SetMetadata: &acme.Metadata{ - StringMetadataValueMap: map[string]*acme.MetadataValue{ - "setMetadata": &acme.MetadataValue{ - Double: 1.1, - }, - }, - }, - Namespace: acme.String( - "namespace", - ), - IndexedData: &acme.IndexedData{ - Indices: []int{ - 1, - 1, - }, - Values: []float64{ - 1.1, - 1.1, - }, - }, - }, - ) -} -" -`; - -exports[`test definitions > csharp-namespace-conflict 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Tasktest.Hello( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > custom-auth 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithCustomAuthScheme( - "", - ), - ) - client.CustomAuth.GetWithCustomAuth( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithCustomAuthScheme( - "", - ), - ) - client.CustomAuth.PostWithCustomAuth( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} -" -`; - -exports[`test definitions > enum 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.InlinedRequest.Send( - context.TODO(), - &acme.SendEnumInlinedRequest{ - Operand: acme.OperandGreaterThan, - OperandOrColor: &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.InlinedRequest.Send( - context.TODO(), - &acme.SendEnumInlinedRequest{ - Operand: acme.OperandGreaterThan, - MaybeOperand: acme.OperandGreaterThan.Ptr(), - OperandOrColor: &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - MaybeOperandOrColor: &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.PathParam.Send( - context.TODO(), - acme.OperandGreaterThan, - &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.PathParam.Send( - context.TODO(), - acme.OperandGreaterThan, - &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.QueryParam.Send( - context.TODO(), - &acme.SendEnumAsQueryParamRequest{ - Operand: acme.OperandGreaterThan, - OperandOrColor: &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.QueryParam.Send( - context.TODO(), - &acme.SendEnumAsQueryParamRequest{ - Operand: acme.OperandGreaterThan, - MaybeOperand: acme.OperandGreaterThan.Ptr(), - OperandOrColor: &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.QueryParam.SendList( - context.TODO(), - &acme.SendEnumListAsQueryParamRequest{ - Operand: []acme.Operand{ - acme.OperandGreaterThan, - }, - MaybeOperand: []*acme.Operand{ - acme.OperandGreaterThan.Ptr(), - }, - OperandOrColor: []*acme.ColorOrOperand{ - &acme.ColorOrOperand{ - Color: acme.ColorRed, - }, - }, - MaybeOperandOrColor: []*acme.ColorOrOperand{}, - }, - ) -} -" -`; - -exports[`test definitions > error-property 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.PropertyBasedError.ThrowError( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > examples 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Echo( - context.TODO(), - "Hello world!\\n\\nwith\\n\\tnewlines", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Echo( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Echo( - context.TODO(), - "primitive", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.File.Notification.Service.GetException( - context.TODO(), - "notification-hsy129x", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.File.Notification.Service.GetException( - context.TODO(), - "notificationId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - file "github.com/acme/acme-go/file" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.File.Service.GetFile( - context.TODO(), - "file.txt", - &file.GetFileRequest{ - XFileAPIVersion: "0.0.2", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - file "github.com/acme/acme-go/file" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.File.Service.GetFile( - context.TODO(), - "filename", - &file.GetFileRequest{ - XFileAPIVersion: "X-File-API-Version", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Health.Service.Check( - context.TODO(), - "id-2sdx82h", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Health.Service.Check( - context.TODO(), - "id-3tey93i", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Health.Service.Check( - context.TODO(), - "id", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Health.Service.Ping( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Health.Service.Ping( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.GetMovie( - context.TODO(), - "movie-c06a4ad7", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.GetMovie( - context.TODO(), - "movieId", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.CreateMovie( - context.TODO(), - &acme.Movie{ - ID: "movie-c06a4ad7", - Prequel: acme.String( - "movie-cv9b914f", - ), - Title: "The Boy and the Heron", - From: "Hayao Miyazaki", - Rating: 8, - Tag: "tag-wf9as23d", - Metadata: map[string]interface{}{ - "actors": []interface{}{ - "Christian Bale", - "Florence Pugh", - "Willem Dafoe", - }, - "releaseDate": "2023-12-08", - "ratings": map[string]interface{}{ - "rottenTomatoes": 97, - "imdb": 7.6, - }, - }, - Revenue: 1000000, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.CreateMovie( - context.TODO(), - &acme.Movie{ - ID: "id", - Prequel: acme.String( - "prequel", - ), - Title: "title", - From: "from", - Rating: 1.1, - Tag: "tag", - Book: acme.String( - "book", - ), - Metadata: map[string]interface{}{ - "metadata": map[string]interface{}{ - "key": "value", - }, - }, - Revenue: 1000000, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.GetMetadata( - context.TODO(), - &acme.GetMetadataRequest{ - Shallow: acme.Bool( - false, - ), - Tag: []*string{ - acme.String( - "development", - ), - }, - XAPIVersion: "0.0.1", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.GetMetadata( - context.TODO(), - &acme.GetMetadataRequest{ - Shallow: acme.Bool( - true, - ), - Tag: []*string{ - acme.String( - "tag", - ), - }, - XAPIVersion: "X-API-Version", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - commons "github.com/acme/acme-go/commons" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Service.CreateBigEntity( - context.TODO(), - &acme.BigEntity{ - CastMember: &acme.CastMember{ - Actor: &acme.Actor{ - Name: "name", - ID: "id", - }, - }, - ExtendedMovie: &acme.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, - }, - Entity: &acme.Entity{ - Type: &acme.Type{ - BasicType: acme.BasicTypePrimitive, - }, - Name: "name", - }, - Metadata: &acme.Metadata{}, - CommonMetadata: &commons.Metadata{ - ID: "id", - Data: map[string]string{ - "data": "data", - }, - JSONString: acme.String( - "jsonString", - ), - }, - EventInfo: &commons.EventInfo{ - Metadata: &commons.Metadata{ - ID: "id", - Data: map[string]string{ - "data": "data", - }, - JSONString: acme.String( - "jsonString", - ), - }, - }, - Data: &commons.Data{}, - Migration: &acme.Migration{ - Name: "name", - Status: acme.MigrationStatusRunning, - }, - Exception: &acme.Exception{ - Generic: &acme.ExceptionInfo{ - ExceptionType: "exceptionType", - ExceptionMessage: "exceptionMessage", - ExceptionStacktrace: "exceptionStacktrace", - }, - }, - Test: &acme.Test{}, - Node: &acme.Node{ - Name: "name", - Nodes: []*acme.Node{ - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{ - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - }, - Trees: []*acme.Tree{ - &acme.Tree{ - Nodes: []*acme.Node{}, - }, - &acme.Tree{ - Nodes: []*acme.Node{}, - }, - }, - }, - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{ - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - }, - Trees: []*acme.Tree{ - &acme.Tree{ - Nodes: []*acme.Node{}, - }, - &acme.Tree{ - Nodes: []*acme.Node{}, - }, - }, - }, - }, - Trees: []*acme.Tree{ - &acme.Tree{ - Nodes: []*acme.Node{ - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - }, - }, - &acme.Tree{ - Nodes: []*acme.Node{ - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - &acme.Node{ - Name: "name", - Nodes: []*acme.Node{}, - Trees: []*acme.Tree{}, - }, - }, - }, - }, - }, - Directory: &acme.Directory{ - Name: "name", - Files: []*acme.File{ - &acme.File{ - Name: "name", - Contents: "contents", - }, - &acme.File{ - Name: "name", - Contents: "contents", - }, - }, - Directories: []*acme.Directory{ - &acme.Directory{ - Name: "name", - Files: []*acme.File{ - &acme.File{ - Name: "name", - Contents: "contents", - }, - &acme.File{ - Name: "name", - Contents: "contents", - }, - }, - Directories: []*acme.Directory{ - &acme.Directory{ - Name: "name", - Files: []*acme.File{}, - Directories: []*acme.Directory{}, - }, - &acme.Directory{ - Name: "name", - Files: []*acme.File{}, - Directories: []*acme.Directory{}, - }, - }, - }, - &acme.Directory{ - Name: "name", - Files: []*acme.File{ - &acme.File{ - Name: "name", - Contents: "contents", - }, - &acme.File{ - Name: "name", - Contents: "contents", - }, - }, - Directories: []*acme.Directory{ - &acme.Directory{ - Name: "name", - Files: []*acme.File{}, - Directories: []*acme.Directory{}, - }, - &acme.Directory{ - Name: "name", - Files: []*acme.File{}, - Directories: []*acme.Directory{}, - }, - }, - }, - }, - }, - Moment: &acme.Moment{ - ID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - Date: acme.MustParseDateTime( - "2023-01-15", - ), - Datetime: acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - }, - }, - ) -} -" -`; - -exports[`test definitions > exhaustive 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnListOfPrimitives( - context.TODO(), - []string{ - "string", - "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnListOfObjects( - context.TODO(), - []*types.ObjectWithRequiredField{ - &types.ObjectWithRequiredField{ - String: "string", - }, - &types.ObjectWithRequiredField{ - String: "string", - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnSetOfPrimitives( - context.TODO(), - []string{ - "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnSetOfObjects( - context.TODO(), - []*types.ObjectWithRequiredField{ - &types.ObjectWithRequiredField{ - String: "string", - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnMapPrimToPrim( - context.TODO(), - map[string]string{ - "string": "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnMapOfPrimToObject( - context.TODO(), - map[string]*types.ObjectWithRequiredField{ - "string": &types.ObjectWithRequiredField{ - String: "string", - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Container.GetAndReturnOptional( - context.TODO(), - &types.ObjectWithRequiredField{ - String: "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.ContentType.PostJSONPatchContentType( - context.TODO(), - &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.ContentType.PostJSONPatchContentWithCharsetType( - context.TODO(), - &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Enum.GetAndReturnEnum( - context.TODO(), - types.WeatherReportSunny, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.HTTPMethods.TestGet( - context.TODO(), - "id", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.HTTPMethods.TestPost( - context.TODO(), - &types.ObjectWithRequiredField{ - String: "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.HTTPMethods.TestPut( - context.TODO(), - "id", - &types.ObjectWithRequiredField{ - String: "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.HTTPMethods.TestPatch( - context.TODO(), - "id", - &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.HTTPMethods.TestDelete( - context.TODO(), - "id", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnWithOptionalField( - context.TODO(), - &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnWithRequiredField( - context.TODO(), - &types.ObjectWithRequiredField{ - String: "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnWithMapOfMap( - context.TODO(), - &types.ObjectWithMapOfMap{ - Map: map[string]map[string]string{ - "map": map[string]string{ - "map": "map", - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnNestedWithOptionalField( - context.TODO(), - &types.NestedObjectWithOptionalField{ - String: acme.String( - "string", - ), - NestedObject: &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnNestedWithRequiredField( - context.TODO(), - "string", - &types.NestedObjectWithRequiredField{ - String: "string", - NestedObject: &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Object.GetAndReturnNestedWithRequiredFieldAsList( - context.TODO(), - []*types.NestedObjectWithRequiredField{ - &types.NestedObjectWithRequiredField{ - String: "string", - NestedObject: &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - }, - &types.NestedObjectWithRequiredField{ - String: "string", - NestedObject: &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Params.GetWithPath( - context.TODO(), - "param", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - endpoints "github.com/acme/acme-go/endpoints" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Params.GetWithQuery( - context.TODO(), - &endpoints.GetWithQuery{ - Query: "query", - Number: 1, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - endpoints "github.com/acme/acme-go/endpoints" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Params.GetWithAllowMultipleQuery( - context.TODO(), - &endpoints.GetWithMultipleQuery{ - Query: []string{ - "query", - }, - Numer: []int{ - 1, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - endpoints "github.com/acme/acme-go/endpoints" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Params.GetWithPathAndQuery( - context.TODO(), - "param", - &endpoints.GetWithPathAndQuery{ - Query: "query", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Params.ModifyWithPath( - context.TODO(), - "param", - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnString( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnInt( - context.TODO(), - 1, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnLong( - context.TODO(), - 1000000, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnDouble( - context.TODO(), - 1.1, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnBool( - context.TODO(), - true, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnDatetime( - context.TODO(), - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnDate( - context.TODO(), - acme.MustParseDateTime( - "2023-01-15", - ), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnUUID( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Primitive.GetAndReturnBase64( - context.TODO(), - []byte("SGVsbG8gd29ybGQh"), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Endpoints.Union.GetAndReturnUnion( - context.TODO(), - &types.Animal{ - Dog: &types.Dog{ - Name: "name", - LikesToWoof: true, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - types "github.com/acme/acme-go/types" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.InlinedRequests.PostWithObjectBodyandResponse( - context.TODO(), - &acme.PostWithObjectBody{ - String: "string", - Integer: 1, - NestedObject: &types.ObjectWithOptionalField{ - String: acme.String( - "string", - ), - Integer: acme.Int( - 1, - ), - Long: acme.Int64( - 1000000, - ), - Double: acme.Float64( - 1.1, - ), - Bool: acme.Bool( - true, - ), - Datetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Date: acme.Time( - acme.MustParseDateTime( - "2023-01-15", - ), - ), - UUID: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - Base64: []byte("SGVsbG8gd29ybGQh"), - List: []string{ - "list", - "list", - }, - Set: []string{ - "set", - }, - Map: map[int]string{ - 1: "map", - }, - Bigint: acme.String( - "1000000", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.NoAuth.PostWithNoAuth( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.NoReqBody.GetWithNoRequestBody( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.NoReqBody.PostWithNoRequestBody( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.ReqWithHeaders.GetWithCustomHeader( - context.TODO(), - &acme.ReqWithHeaders{ - XTestServiceHeader: "X-TEST-SERVICE-HEADER", - XTestEndpointHeader: "X-TEST-ENDPOINT-HEADER", - Body: "string", - }, - ) -} -" -`; - -exports[`test definitions > extends 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.ExtendedInlineRequestBody( - context.TODO(), - &acme.Inlined{ - Unique: "unique", - }, - ) -} -" -`; - -exports[`test definitions > extra-properties 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.CreateUser( - context.TODO(), - &acme.CreateUserRequest{ - Name: "name", - }, - ) -} -" -`; - -exports[`test definitions > file-download 1`] = `""`; - -exports[`test definitions > file-upload 1`] = `""`; - -exports[`test definitions > folders 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Foo( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Folder.Service.Endpoint( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Folder.Service.UnknownRequest( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} -" -`; - -exports[`test definitions > go-content-type 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Imdb.CreateMovie( - context.TODO(), - &acme.CreateMovieRequest{ - Title: "title", - Rating: 1.1, - }, - ) -} -" -`; - -exports[`test definitions > idempotency-headers 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Payment.Create( - context.TODO(), - &acme.CreatePaymentRequest{ - Amount: 1, - Currency: acme.CurrencyUsd, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Payment.Delete( - context.TODO(), - "paymentId", - ) -} -" -`; - -exports[`test definitions > imdb 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Imdb.CreateMovie( - context.TODO(), - &acme.CreateMovieRequest{ - Title: "title", - Rating: 1.1, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Imdb.GetMovie( - context.TODO(), - "movieId", - ) -} -" -`; - -exports[`test definitions > license 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Get( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > literal 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Headers.Send( - context.TODO(), - &acme.SendLiteralsInHeadersRequest{ - Query: "What is the weather today", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Headers.Send( - context.TODO(), - &acme.SendLiteralsInHeadersRequest{ - Query: "query", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Inlined.Send( - context.TODO(), - &acme.SendLiteralsInlinedRequest{ - Temperature: acme.Float64( - 10.1, - ), - ObjectWithLiteral: &acme.ATopLevelLiteral{ - NestedLiteral: &acme.ANestedLiteral{}, - }, - Query: "What is the weather today", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Inlined.Send( - context.TODO(), - &acme.SendLiteralsInlinedRequest{ - Query: "query", - Temperature: acme.Float64( - 1.1, - ), - ObjectWithLiteral: &acme.ATopLevelLiteral{ - NestedLiteral: &acme.ANestedLiteral{}, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Path.Send( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Path.Send( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Query.Send( - context.TODO(), - &acme.SendLiteralsInQueryRequest{ - Query: "What is the weather today", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Query.Send( - context.TODO(), - &acme.SendLiteralsInQueryRequest{ - Query: "query", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Reference.Send( - context.TODO(), - &acme.SendRequest{ - Query: "What is the weather today", - ContainerObject: &acme.ContainerObject{ - NestedObjects: []*acme.NestedObjectWithLiterals{ - &acme.NestedObjectWithLiterals{ - StrProp: "strProp", - }, - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Reference.Send( - context.TODO(), - &acme.SendRequest{ - Query: "query", - ContainerObject: &acme.ContainerObject{ - NestedObjects: []*acme.NestedObjectWithLiterals{ - &acme.NestedObjectWithLiterals{ - StrProp: "strProp", - }, - &acme.NestedObjectWithLiterals{ - StrProp: "strProp", - }, - }, - }, - }, - ) -} -" -`; - -exports[`test definitions > mixed-case 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetResource( - context.TODO(), - "rsc-xyz", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetResource( - context.TODO(), - "ResourceID", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.ListResources( - context.TODO(), - &acme.ListResourcesRequest{ - PageLimit: 10, - BeforeDate: acme.MustParseDateTime( - "2023-01-01", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.ListResources( - context.TODO(), - &acme.ListResourcesRequest{ - PageLimit: 1, - BeforeDate: acme.MustParseDateTime( - "2023-01-15", - ), - }, - ) -} -" -`; - -exports[`test definitions > mixed-file-directory 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Organization.Create( - context.TODO(), - &acme.CreateOrganizationRequest{ - Name: "name", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.List( - context.TODO(), - &acme.ListUsersRequest{ - Limit: acme.Int( - 1, - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - user "github.com/acme/acme-go/user" -) - -func do() { - client := client.NewClient() - client.User.Events.ListEvents( - context.TODO(), - &user.ListUserEventsRequest{ - Limit: acme.Int( - 1, - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - events "github.com/acme/acme-go/user/events" -) - -func do() { - client := client.NewClient() - client.User.Events.Metadata.GetMetadata( - context.TODO(), - &events.GetEventMetadataRequest{ - ID: "id", - }, - ) -} -" -`; - -exports[`test definitions > multi-line-docs 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetUser( - context.TODO(), - "userId", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.CreateUser( - context.TODO(), - &acme.CreateUserRequest{ - Name: "name", - Age: acme.Int( - 1, - ), - }, - ) -} -" -`; - -exports[`test definitions > multi-url-environment 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Ec2.BootInstance( - context.TODO(), - &acme.BootInstanceRequest{ - Size: "size", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.S3.GetPresignedURL( - context.TODO(), - &acme.GetPresignedURLRequest{ - S3Key: "s3Key", - }, - ) -} -" -`; - -exports[`test definitions > multi-url-environment-no-default 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Ec2.BootInstance( - context.TODO(), - &acme.BootInstanceRequest{ - Size: "size", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.S3.GetPresignedURL( - context.TODO(), - &acme.GetPresignedURLRequest{ - S3Key: "s3Key", - }, - ) -} -" -`; - -exports[`test definitions > no-environment 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Dummy.GetDummy( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > oauth-client-credentials 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.GetTokenWithClientCredentials( - context.TODO(), - &acme.GetTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - Scope: acme.String( - "scope", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.RefreshToken( - context.TODO(), - &acme.RefreshTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - RefreshToken: "refresh_token", - Scope: acme.String( - "scope", - ), - }, - ) -} -" -`; - -exports[`test definitions > oauth-client-credentials-default 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.GetToken( - context.TODO(), - &acme.GetTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - }, - ) -} -" -`; - -exports[`test definitions > oauth-client-credentials-environment-variables 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.GetTokenWithClientCredentials( - context.TODO(), - &acme.GetTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - Scope: acme.String( - "scope", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.RefreshToken( - context.TODO(), - &acme.RefreshTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - RefreshToken: "refresh_token", - Scope: acme.String( - "scope", - ), - }, - ) -} -" -`; - -exports[`test definitions > oauth-client-credentials-nested-root 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - auth "github.com/acme/acme-go/auth" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Auth.GetToken( - context.TODO(), - &auth.GetTokenRequest{ - ClientID: "client_id", - ClientSecret: "client_secret", - Scope: acme.String( - "scope", - ), - }, - ) -} -" -`; - -exports[`test definitions > object 1`] = `""`; - -exports[`test definitions > objects-with-imports 1`] = `""`; - -exports[`test definitions > optional 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Optional.SendOptionalBody( - context.TODO(), - map[string]interface{}{ - "string": map[string]interface{}{ - "key": "value", - }, - }, - ) -} -" -`; - -exports[`test definitions > package-yml 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Echo( - context.TODO(), - "id-ksfd9c1", - &acme.EchoRequest{ - Name: "Hello world!", - Size: 20, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Echo( - context.TODO(), - "id", - &acme.EchoRequest{ - Name: "name", - Size: 1, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.Nop( - context.TODO(), - "id-a2ijs82", - "id-219xca8", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.Nop( - context.TODO(), - "id", - "nestedId", - ) -} -" -`; - -exports[`test definitions > pagination 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithCursorPagination( - context.TODO(), - &acme.ListUsersCursorPaginationRequest{ - Page: acme.Int( - 1, - ), - PerPage: acme.Int( - 1, - ), - Order: acme.OrderAsc.Ptr(), - StartingAfter: acme.String( - "starting_after", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithBodyCursorPagination( - context.TODO(), - &acme.ListUsersBodyCursorPaginationRequest{ - Pagination: &acme.WithCursor{ - Cursor: acme.String( - "cursor", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithCursorPagination( - context.TODO(), - &acme.ListUsersCursorPaginationRequest{ - Page: acme.Int( - 1, - ), - PerPage: acme.Int( - 1, - ), - Order: acme.OrderAsc.Ptr(), - StartingAfter: acme.String( - "starting_after", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithBodyOffsetPagination( - context.TODO(), - &acme.ListUsersBodyOffsetPaginationRequest{ - Pagination: &acme.WithPage{ - Page: acme.Int( - 1, - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithOffsetStepPagination( - context.TODO(), - &acme.ListUsersOffsetStepPaginationRequest{ - Page: acme.Int( - 1, - ), - Limit: acme.Int( - 1, - ), - Order: acme.OrderAsc.Ptr(), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithOffsetStepPagination( - context.TODO(), - &acme.ListUsersOffsetStepPaginationRequest{ - Page: acme.Int( - 1, - ), - Limit: acme.Int( - 1, - ), - Order: acme.OrderAsc.Ptr(), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithExtendedResults( - context.TODO(), - &acme.ListUsersExtendedRequest{ - Cursor: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithExtendedResults( - context.TODO(), - &acme.ListUsersExtendedRequest{ - Cursor: acme.UUID( - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithCursorPagination( - context.TODO(), - &acme.ListUsersCursorPaginationRequest{ - StartingAfter: acme.String( - "starting_after", - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Users.ListWithGlobalConfig( - context.TODO(), - &acme.ListWithGlobalConfigRequest{ - Offset: acme.Int( - 1, - ), - }, - ) -} -" -`; - -exports[`test definitions > path-parameters 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetOrganization( - context.TODO(), - "organizationId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetUser( - context.TODO(), - "userId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetOrganizationUser( - context.TODO(), - "organizationId", - "userId", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.SearchUsers( - context.TODO(), - "userId", - &acme.SearchUsersRequest{ - Limit: acme.Int( - 1, - ), - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.SearchOrganizations( - context.TODO(), - "organizationId", - &acme.SearchOrganizationsRequest{ - Limit: acme.Int( - 1, - ), - }, - ) -} -" -`; - -exports[`test definitions > plain-text 1`] = `""`; - -exports[`test definitions > query-parameters 1`] = `""`; - -exports[`test definitions > reserved-keywords 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Package.Test( - context.TODO(), - &acme.TestRequest{ - For: "for", - }, - ) -} -" -`; - -exports[`test definitions > response-property 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.GetMovie( - context.TODO(), - "string", - ) -} -" -`; - -exports[`test definitions > server-sent-event-examples 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Completions.Stream( - context.TODO(), - &acme.StreamCompletionRequest{ - Query: "foo", - }, - ) -} -" -`; - -exports[`test definitions > server-sent-events 1`] = `""`; - -exports[`test definitions > simple-fhir 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.GetAccount( - context.TODO(), - "account_id", - ) -} -" -`; - -exports[`test definitions > single-url-environment-default 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Dummy.GetDummy( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > single-url-environment-no-default 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Dummy.GetDummy( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > streaming 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dummy.Generate( - context.TODO(), - &acme.Generateequest{ - NumEvents: 5, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dummy.Generate( - context.TODO(), - &acme.Generateequest{ - NumEvents: 1, - }, - ) -} -" -`; - -exports[`test definitions > streaming-parameter 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Dummy.Generate( - context.TODO(), - &acme.GenerateRequest{ - Stream: false, - NumEvents: 5, - }, - ) -} -" -`; - -exports[`test definitions > trace 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Test( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.UpdateTestSubmissionStatus( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - &acme.TestSubmissionStatus{ - Stopped: "stopped", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.SendTestSubmissionUpdate( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - &acme.TestSubmissionUpdate{ - UpdateTime: acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - UpdateInfo: &acme.TestSubmissionUpdateInfo{}, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.UpdateWorkspaceSubmissionStatus( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - &acme.WorkspaceSubmissionStatus{ - Stopped: "stopped", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.SendWorkspaceSubmissionUpdate( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - &acme.WorkspaceSubmissionUpdate{ - UpdateTime: acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - UpdateInfo: &acme.WorkspaceSubmissionUpdateInfo{}, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.StoreTracedTestCase( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - "testCaseId", - &acme.StoreTracedTestCaseRequest{ - Result: &acme.TestCaseResultWithStdout{ - Result: &acme.TestCaseResult{ - ExpectedResult: &acme.VariableValue{}, - ActualResult: &acme.ActualResult{ - Value: &acme.VariableValue{}, - }, - Passed: true, - }, - Stdout: "stdout", - }, - TraceResponses: []*acme.TraceResponse{ - &acme.TraceResponse{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - &acme.TraceResponse{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.StoreTracedTestCaseV2( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - "testCaseId", - []*acme.TraceResponseV2{ - &acme.TraceResponseV2{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - File: &acme.TracedFile{ - Filename: "filename", - Directory: "directory", - }, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - &acme.TraceResponseV2{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - File: &acme.TracedFile{ - Filename: "filename", - Directory: "directory", - }, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.StoreTracedWorkspace( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - &acme.StoreTracedWorkspaceRequest{ - WorkspaceRunDetails: &acme.WorkspaceRunDetails{ - ExceptionV2: &acme.ExceptionV2{ - Generic: &acme.ExceptionInfo{ - ExceptionType: "exceptionType", - ExceptionMessage: "exceptionMessage", - ExceptionStacktrace: "exceptionStacktrace", - }, - }, - Exception: &acme.ExceptionInfo{ - ExceptionType: "exceptionType", - ExceptionMessage: "exceptionMessage", - ExceptionStacktrace: "exceptionStacktrace", - }, - Stdout: "stdout", - }, - TraceResponses: []*acme.TraceResponse{ - &acme.TraceResponse{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - &acme.TraceResponse{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" - uuid "github.com/google/uuid" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Admin.StoreTracedWorkspaceV2( - context.TODO(), - uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - []*acme.TraceResponseV2{ - &acme.TraceResponseV2{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - File: &acme.TracedFile{ - Filename: "filename", - Directory: "directory", - }, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - &acme.TraceResponseV2{ - SubmissionID: uuid.MustParse( - "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", - ), - LineNumber: 1, - File: &acme.TracedFile{ - Filename: "filename", - Directory: "directory", - }, - ReturnValue: &acme.DebugVariableValue{}, - ExpressionLocation: &acme.ExpressionLocation{ - Start: 1, - Offset: 1, - }, - Stack: &acme.StackInformation{ - NumStackFrames: 1, - TopStackFrame: &acme.StackFrame{ - MethodName: "methodName", - LineNumber: 1, - Scopes: []*acme.Scope{ - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - &acme.Scope{ - Variables: map[string]*acme.DebugVariableValue{ - "variables": &acme.DebugVariableValue{}, - }, - }, - }, - }, - }, - Stdout: acme.String( - "stdout", - ), - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Homepage.GetHomepageProblems( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Homepage.SetHomepageProblems( - context.TODO(), - []acme.ProblemID{ - "string", - "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Migration.GetAttemptedMigrations( - context.TODO(), - &acme.GetAttemptedMigrationsRequest{ - AdminKeyHeader: "admin-key-header", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Playlist.CreatePlaylist( - context.TODO(), - 1, - &acme.CreatePlaylistRequest{ - Datetime: acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - OptionalDatetime: acme.Time( - acme.MustParseDateTime( - "2024-01-15T09:30:00Z", - ), - ), - Body: &acme.PlaylistCreateRequest{ - Name: "name", - Problems: []acme.ProblemID{ - "problems", - "problems", - }, - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Playlist.GetPlaylists( - context.TODO(), - 1, - &acme.GetPlaylistsRequest{ - Limit: acme.Int( - 1, - ), - OtherField: "otherField", - MultiLineDocs: "multiLineDocs", - OptionalMultipleField: []*string{ - acme.String( - "optionalMultipleField", - ), - }, - MultipleField: []string{ - "multipleField", - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Playlist.GetPlaylist( - context.TODO(), - 1, - "playlistId", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Playlist.UpdatePlaylist( - context.TODO(), - 1, - "playlistId", - &acme.UpdatePlaylistRequest{ - Name: "name", - Problems: []acme.ProblemID{ - "problems", - "problems", - }, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Playlist.DeletePlaylist( - context.TODO(), - 1, - "playlist_id", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Problem.CreateProblem( - context.TODO(), - &acme.CreateProblemRequest{ - ProblemName: "problemName", - ProblemDescription: &acme.ProblemDescription{ - Boards: []*acme.ProblemDescriptionBoard{ - &acme.ProblemDescriptionBoard{}, - &acme.ProblemDescriptionBoard{}, - }, - }, - Files: map[acme.Language]*acme.ProblemFiles{ - acme.LanguageJava: &acme.ProblemFiles{ - SolutionFile: &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - ReadOnlyFiles: []*acme.FileInfo{ - &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - }, - }, - }, - InputParams: []*acme.VariableTypeAndName{ - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - }, - OutputType: &acme.VariableType{ - IntegerType: "integerType", - }, - Testcases: []*acme.TestCaseWithExpectedResult{ - &acme.TestCaseWithExpectedResult{ - TestCase: &acme.TestCase{ - ID: "id", - Params: []*acme.VariableValue{ - &acme.VariableValue{}, - &acme.VariableValue{}, - }, - }, - ExpectedResult: &acme.VariableValue{}, - }, - &acme.TestCaseWithExpectedResult{ - TestCase: &acme.TestCase{ - ID: "id", - Params: []*acme.VariableValue{ - &acme.VariableValue{}, - &acme.VariableValue{}, - }, - }, - ExpectedResult: &acme.VariableValue{}, - }, - }, - MethodName: "methodName", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Problem.UpdateProblem( - context.TODO(), - "problemId", - &acme.CreateProblemRequest{ - ProblemName: "problemName", - ProblemDescription: &acme.ProblemDescription{ - Boards: []*acme.ProblemDescriptionBoard{ - &acme.ProblemDescriptionBoard{}, - &acme.ProblemDescriptionBoard{}, - }, - }, - Files: map[acme.Language]*acme.ProblemFiles{ - acme.LanguageJava: &acme.ProblemFiles{ - SolutionFile: &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - ReadOnlyFiles: []*acme.FileInfo{ - &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - &acme.FileInfo{ - Filename: "filename", - Contents: "contents", - }, - }, - }, - }, - InputParams: []*acme.VariableTypeAndName{ - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - }, - OutputType: &acme.VariableType{ - IntegerType: "integerType", - }, - Testcases: []*acme.TestCaseWithExpectedResult{ - &acme.TestCaseWithExpectedResult{ - TestCase: &acme.TestCase{ - ID: "id", - Params: []*acme.VariableValue{ - &acme.VariableValue{}, - &acme.VariableValue{}, - }, - }, - ExpectedResult: &acme.VariableValue{}, - }, - &acme.TestCaseWithExpectedResult{ - TestCase: &acme.TestCase{ - ID: "id", - Params: []*acme.VariableValue{ - &acme.VariableValue{}, - &acme.VariableValue{}, - }, - }, - ExpectedResult: &acme.VariableValue{}, - }, - }, - MethodName: "methodName", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Problem.DeleteProblem( - context.TODO(), - "problemId", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Problem.GetDefaultStarterFiles( - context.TODO(), - &acme.GetDefaultStarterFilesRequest{ - InputParams: []*acme.VariableTypeAndName{ - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - &acme.VariableTypeAndName{ - VariableType: &acme.VariableType{ - IntegerType: "integerType", - }, - Name: "name", - }, - }, - OutputType: &acme.VariableType{ - IntegerType: "integerType", - }, - MethodName: "methodName", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Submission.CreateExecutionSession( - context.TODO(), - acme.LanguageJava, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Submission.GetExecutionSession( - context.TODO(), - "sessionId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Submission.StopExecutionSession( - context.TODO(), - "sessionId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Submission.GetExecutionSessionsState( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Sysprop.SetNumWarmInstances( - context.TODO(), - acme.LanguageJava, - 1, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Sysprop.GetNumWarmInstances( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetLightweightProblems( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetProblems( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetLatestProblem( - context.TODO(), - "problemId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetProblemVersion( - context.TODO(), - "problemId", - 1, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetLightweightProblems( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetProblems( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetLatestProblem( - context.TODO(), - "problemId", - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.V2.Problem.GetProblemVersion( - context.TODO(), - "problemId", - 1, - ) -} -" -`; - -exports[`test definitions > ts-express-casing 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Imdb.CreateMovie( - context.TODO(), - &acme.CreateMovieRequest{ - ID: "id", - MovieTitle: "movie_title", - MovieRating: 1.1, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" - option "github.com/acme/acme-go/option" -) - -func do() { - client := client.NewClient( - option.WithToken( - "", - ), - ) - client.Imdb.GetMovie( - context.TODO(), - "movie_id", - ) -} -" -`; - -exports[`test definitions > undiscriminated-unions 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Union.Get( - context.TODO(), - &acme.MyUnion{ - String: "string", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Union.GetMetadata( - context.TODO(), - ) -} - ------------------------- - -package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Union.GetMetadata( - context.TODO(), - ) -} -" -`; - -exports[`test definitions > unions 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Union.Get( - context.TODO(), - "id", - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Union.Update( - context.TODO(), - &acme.Shape{ - Circle: &acme.Circle{ - Radius: 1.1, - }, - }, - ) -} -" -`; - -exports[`test definitions > unknown 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Unknown.Post( - context.TODO(), - map[string]interface{}{ - "key": "value", - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Unknown.PostObject( - context.TODO(), - &acme.MyObject{ - Unknown: map[string]interface{}{ - "key": "value", - }, - }, - ) -} -" -`; - -exports[`test definitions > validation 1`] = ` -"package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Create( - context.TODO(), - &acme.CreateRequest{ - Decimal: 1.1, - Even: 1, - Name: "name", - Shape: acme.ShapeSquare, - }, - ) -} - ------------------------- - -package example - -import ( - context "context" - acme "github.com/acme/acme-go" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Get( - context.TODO(), - &acme.GetRequest{ - Decimal: 1.1, - Even: 1, - Name: "name", - }, - ) -} -" -`; - -exports[`test definitions > variables 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.Service.Post( - context.TODO(), - "endpointParam", - ) -} -" -`; - -exports[`test definitions > version 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetUser( - context.TODO(), - "userId", - ) -} -" -`; - -exports[`test definitions > version-no-default 1`] = ` -"package example - -import ( - context "context" - client "github.com/acme/acme-go/client" -) - -func do() { - client := client.NewClient() - client.User.GetUser( - context.TODO(), - "userId", - ) -} -" -`; - -exports[`test definitions > websocket 1`] = `""`; diff --git a/generators/go-v2/dynamic-snippets/src/__test__/ir.test.ts b/generators/go-v2/dynamic-snippets/src/__test__/ir.test.ts deleted file mode 100644 index ee8cb4bb7d8..00000000000 --- a/generators/go-v2/dynamic-snippets/src/__test__/ir.test.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { AbsoluteFilePath, join, RelativeFilePath } from "@fern-api/fs-utils"; -import { loadApis } from "@fern-api/project-loader"; -import { createMockTaskContext } from "@fern-api/task-context"; -import path from "path"; -import { TestResult } from "./utils/TestResult"; -import { generateDynamicSnippetsTestSuite } from "@fern-api/dynamic-snippets"; -import { buildGeneratorConfig } from "./utils/buildGeneratorConfig"; -import { DynamicSnippetsGenerator } from ".."; -import { AbstractAPIWorkspace } from "@fern-api/workspace-loader"; -import { generateIntermediateRepresentation } from "@fern-api/ir-generator"; -import { IntermediateRepresentation } from "@fern-api/ir-sdk"; -import { GoFormatter } from "@fern-api/go-formatter"; - -// eslint-disable-next-line @typescript-eslint/no-misused-promises -describe("test definitions", async () => { - const TEST_DEFINITIONS_DIR = path.join(__dirname, "../../../../../test-definitions"); - const apiWorkspaces = await loadApis({ - fernDirectory: join(AbsoluteFilePath.of(TEST_DEFINITIONS_DIR), RelativeFilePath.of("fern")), - context: createMockTaskContext(), - cliVersion: "0.0.0", - cliName: "fern", - commandLineApiWorkspace: undefined, - defaultToAllApiWorkspaces: true - }); - - await Promise.all( - apiWorkspaces.map(async (workspace) => { - it(`${workspace.workspaceName}`, async () => { - const test = await generateDynamicSnippetsTestSuite({ - ir: await getIntermediateRepresentation({ workspace }), - config: buildGeneratorConfig() - }); - const generator = new DynamicSnippetsGenerator({ - ir: test.ir, - config: test.config, - formatter: new GoFormatter() - }); - const result = new TestResult(); - for (const request of test.requests) { - const response = await generator.generate(request); - result.addSnippet(response.snippet); - } - expect(result.toString()).toMatchSnapshot(); - }); - }) - ); -}); - -async function getIntermediateRepresentation({ - workspace -}: { - workspace: AbstractAPIWorkspace; -}): Promise { - const context = createMockTaskContext(); - const fernWorkspace = await workspace.toFernWorkspace({ - context - }); - return generateIntermediateRepresentation({ - workspace: fernWorkspace, - generationLanguage: "go", - keywords: undefined, - smartCasing: true, - disableExamples: false, - includeOptionalRequestPropertyExamples: true, - readme: undefined, - packageName: undefined, - version: undefined, - audiences: { type: "all" }, - context - }); -} diff --git a/generators/go-v2/dynamic-snippets/src/__test__/utils/TestResult.ts b/generators/go-v2/dynamic-snippets/src/__test__/utils/TestResult.ts deleted file mode 100644 index 0cd14d2832a..00000000000 --- a/generators/go-v2/dynamic-snippets/src/__test__/utils/TestResult.ts +++ /dev/null @@ -1,21 +0,0 @@ -export class TestResult { - public snippets: string[] = []; - - public addSnippet(snippet: string): void { - this.snippets.push(snippet); - } - - public toString(): string { - if (this.snippets.length === 0) { - return ""; - } - let s = ""; - this.snippets.forEach((snippet, idx) => { - if (idx > 0) { - s += "\n------------------------\n\n"; - } - s += snippet; - }); - return s; - } -} diff --git a/generators/go-v2/dynamic-snippets/src/__test__/utils/constant.ts b/generators/go-v2/dynamic-snippets/src/__test__/utils/constant.ts index cf6c7dfe7d4..e270bb616d6 100644 --- a/generators/go-v2/dynamic-snippets/src/__test__/utils/constant.ts +++ b/generators/go-v2/dynamic-snippets/src/__test__/utils/constant.ts @@ -2,5 +2,8 @@ import path from "path"; import { AbsoluteFilePath } from "@fern-api/fs-utils"; export const DYNAMIC_IR_TEST_DEFINITIONS_DIRECTORY = AbsoluteFilePath.of( - path.join(__dirname, "../../../../../../packages/cli/dynamic-snippets/src/__test__/test-definitions") + path.join( + __dirname, + "../../../../../../packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions" + ) ); diff --git a/generators/go-v2/dynamic-snippets/src/context/DynamicSnippetsGeneratorContext.ts b/generators/go-v2/dynamic-snippets/src/context/DynamicSnippetsGeneratorContext.ts index 4466c56503a..98657015a4c 100644 --- a/generators/go-v2/dynamic-snippets/src/context/DynamicSnippetsGeneratorContext.ts +++ b/generators/go-v2/dynamic-snippets/src/context/DynamicSnippetsGeneratorContext.ts @@ -11,10 +11,9 @@ import { go } from "@fern-api/go-ast"; import path from "path"; import { ErrorReporter, Severity } from "./ErrorReporter"; import { FilePropertyMapper } from "./FilePropertyMapper"; +import { AbstractDynamicSnippetsGeneratorContext } from "@fern-api/generator-commons"; -export class DynamicSnippetsGeneratorContext { - public ir: DynamicSnippets.DynamicIntermediateRepresentation; - public config: FernGeneratorExec.config.GeneratorConfig; +export class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGeneratorContext { public customConfig: BaseGoCustomConfigSchema | undefined; public errors: ErrorReporter; public dynamicTypeMapper: DynamicTypeMapper; @@ -31,8 +30,7 @@ export class DynamicSnippetsGeneratorContext { ir: DynamicSnippets.DynamicIntermediateRepresentation; config: FernGeneratorExec.config.GeneratorConfig; }) { - this.ir = ir; - this.config = config; + super(ir, config); this.customConfig = config.customConfig != null ? (config.customConfig as BaseGoCustomConfigSchema) : undefined; this.errors = new ErrorReporter(); this.dynamicTypeMapper = new DynamicTypeMapper({ context: this }); diff --git a/generators/go-v2/dynamic-snippets/src/context/DynamicTypeMapper.ts b/generators/go-v2/dynamic-snippets/src/context/DynamicTypeMapper.ts index 910a10cc636..30917f5460a 100644 --- a/generators/go-v2/dynamic-snippets/src/context/DynamicTypeMapper.ts +++ b/generators/go-v2/dynamic-snippets/src/context/DynamicTypeMapper.ts @@ -2,7 +2,6 @@ import { assertNever } from "@fern-api/core-utils"; import { go } from "@fern-api/go-ast"; import { DynamicSnippetsGeneratorContext } from "./DynamicSnippetsGeneratorContext"; import { dynamic as DynamicSnippets, PrimitiveTypeV1 } from "@fern-fern/ir-sdk/api"; -import { Severity } from "./ErrorReporter"; export declare namespace DynamicTypeMapper { interface Args { diff --git a/generators/go-v2/dynamic-snippets/tsconfig.json b/generators/go-v2/dynamic-snippets/tsconfig.json index dfd9523b41c..b4b10688fee 100644 --- a/generators/go-v2/dynamic-snippets/tsconfig.json +++ b/generators/go-v2/dynamic-snippets/tsconfig.json @@ -5,12 +5,7 @@ "references": [ { "path": "../../../packages/commons/core-utils" }, { "path": "../../../packages/commons/fs-utils" }, - { "path": "../../../packages/cli/generation/ir-generator" }, - { "path": "../../../packages/cli/dynamic-snippets" }, { "path": "../../../packages/cli/fern-definition/schema" }, - { "path": "../../../packages/cli/project-loader" }, - { "path": "../../../packages/cli/task-context" }, - { "path": "../../../packages/cli/workspace-loader" }, { "path": "../../../packages/ir-sdk" }, { "path": "../../commons" }, { "path": "../ast" }, diff --git a/generators/go/README.md b/generators/go/README.md index 87dddc17e5a..cf640eaa556 100644 --- a/generators/go/README.md +++ b/generators/go/README.md @@ -1,7 +1,7 @@
- header + header
diff --git a/generators/openapi/README.md b/generators/openapi/README.md index ae01324eadb..16f05fbd297 100644 --- a/generators/openapi/README.md +++ b/generators/openapi/README.md @@ -1,7 +1,7 @@
- Fern logo + Fern logo
diff --git a/generators/postman/README.md b/generators/postman/README.md index 139e1ab4256..8caafa67bb8 100644 --- a/generators/postman/README.md +++ b/generators/postman/README.md @@ -1,7 +1,7 @@
- Fern logo + Fern logo
diff --git a/generators/python/README.md b/generators/python/README.md index 7b669ffa8de..1316f7ab4c1 100644 --- a/generators/python/README.md +++ b/generators/python/README.md @@ -1,7 +1,7 @@
- Fern logo + Fern logo
diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertParameters.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertParameters.ts index b2a18deb15a..b0803ca4e08 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertParameters.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/endpoint/convertParameters.ts @@ -63,7 +63,7 @@ export function convertParameters({ const availability = convertAvailability(resolvedParameter); const parameterBreadcrumbs = [...requestBreadcrumbs, resolvedParameter.name]; - const generatedName = getGeneratedTypeName(parameterBreadcrumbs); + const generatedName = getGeneratedTypeName(parameterBreadcrumbs, context.options.preserveSchemaIds); let schema = resolvedParameter.schema != null diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertAsyncSyncOperation.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertAsyncSyncOperation.ts index 460573cd163..0701018e7fe 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertAsyncSyncOperation.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertAsyncSyncOperation.ts @@ -69,7 +69,7 @@ export function convertAsyncSyncOperation({ name: headerToIgnore, schema: SchemaWithExample.literal({ nameOverride: undefined, - generatedName: getGeneratedTypeName([headerToIgnore]), + generatedName: getGeneratedTypeName([headerToIgnore], context.options.preserveSchemaIds), title: undefined, description: undefined, availability: undefined, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertHttpOperation.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertHttpOperation.ts index c69febdce1d..c01c372bf7a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertHttpOperation.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertHttpOperation.ts @@ -121,7 +121,7 @@ export function convertHttpOperation({ queryParameters: convertedParameters.queryParameters, headers: convertedParameters.headers, requestNameOverride: requestNameOverride ?? undefined, - generatedRequestName: getGeneratedTypeName(requestBreadcrumbs), + generatedRequestName: getGeneratedTypeName(requestBreadcrumbs, context.options.preserveSchemaIds), request: convertedRequest, response: convertedResponse.value, errors: convertedResponse.errors, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertWebhookOperation.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertWebhookOperation.ts index ee5f1a984b8..13968c1df3d 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertWebhookOperation.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/converters/operation/convertWebhookOperation.ts @@ -64,7 +64,7 @@ export function convertWebhookOperation({ operationId: operation.operationId, tags: context.resolveTagsToTagIds(operation.tags), headers: convertedParameters.headers, - generatedPayloadName: getGeneratedTypeName(payloadBreadcrumbs), + generatedPayloadName: getGeneratedTypeName(payloadBreadcrumbs, context.options.preserveSchemaIds), payload: convertedPayload.schema, description: operation.description, examples: convertWebhookExamples(convertedPayload.fullExamples), diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getVariableDefinitions.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getVariableDefinitions.ts index 8a3d27de161..e6de1fe8d5a 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getVariableDefinitions.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/openapi/v3/extensions/getVariableDefinitions.ts @@ -5,7 +5,10 @@ import { getDefaultAsString } from "../../../schema/defaults/getDefault"; import { getGeneratedTypeName } from "../../../schema/utils/getSchemaName"; import { FernOpenAPIExtension } from "./fernExtensions"; -export function getVariableDefinitions(document: OpenAPIV3.Document): Record { +export function getVariableDefinitions( + document: OpenAPIV3.Document, + preserveSchemaIds: boolean +): Record { const variables = getExtension>( document, FernOpenAPIExtension.SDK_VARIABLES @@ -22,7 +25,7 @@ export function getVariableDefinitions(document: OpenAPIV3.Document): Record(schema, FernOpenAPIExtension.TYPE_NAME); - const generatedName = getGeneratedTypeName(breadcrumbs); + const generatedName = getGeneratedTypeName(breadcrumbs, preserveSchemaIds); // eslint-disable-next-line @typescript-eslint/no-explicit-any const description = (schema as any).description; const availability = convertAvailability(schema); diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts index eb99f23f498..34aabed2039 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/convertUndiscriminatedOneOf.ts @@ -66,7 +66,7 @@ export function convertUndiscriminatedOneOf({ return schema.enum.map((enumValue) => { return SchemaWithExample.literal({ nameOverride: undefined, - generatedName: getGeneratedTypeName([generatedName, enumValue]), + generatedName: getGeneratedTypeName([generatedName, enumValue], context.options.preserveSchemaIds), title: undefined, value: LiteralSchemaValue.string(enumValue), groupName: undefined, @@ -201,7 +201,10 @@ export function convertUndiscriminatedOneOfWithDiscriminant({ subtypeReference.properties = { [discriminator.propertyName]: SchemaWithExample.literal({ nameOverride: undefined, - generatedName: getGeneratedTypeName([generatedName, discriminantValue]), + generatedName: getGeneratedTypeName( + [generatedName, discriminantValue], + context.options.preserveSchemaIds + ), title: undefined, value: LiteralSchemaValue.string(discriminantValue), groupName: undefined, diff --git a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/getSchemaName.ts b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/getSchemaName.ts index b854ffaa1db..d8cd9a88d84 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/getSchemaName.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-parser/src/schema/utils/getSchemaName.ts @@ -1,9 +1,17 @@ import { camelCase, upperFirst } from "lodash-es"; import { replaceStartingNumber } from "./replaceStartingNumber"; -export function getGeneratedTypeName(breadcrumbs: string[]): string { - const underscoreDelimeted = breadcrumbs.join("_"); - const name = upperFirst(camelCase(underscoreDelimeted)); +export function getGeneratedTypeName(breadcrumbs: string[], useOriginalSchemaIds: boolean): string { + const processedTokens = breadcrumbs.map((token) => { + if (/^[^a-zA-Z0-9]+$/.test(token)) { + return token; + } else { + return upperFirst(camelCase(token)); + } + }); + + const name = processedTokens.join(""); + if (/^\d/.test(name)) { return replaceStartingNumber(name) ?? name; } @@ -11,6 +19,6 @@ export function getGeneratedTypeName(breadcrumbs: string[]): string { } export function getGeneratedPropertyName(breadcrumbs: string[]): string { - const underscoreDelimeted = breadcrumbs.join("_"); - return camelCase(underscoreDelimeted); + const underscoreDelimited = breadcrumbs.join("_"); + return camelCase(underscoreDelimited); } diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-docs/ntropy.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-docs/ntropy.json new file mode 100644 index 00000000000..da9a04af27f --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-docs/ntropy.json @@ -0,0 +1,10921 @@ +{ + "absoluteFilePath": "/DUMMY_PATH", + "importedDefinitions": {}, + "namedDefinitionFiles": { + "__package__.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "errors": { + "CreateAccountHolderV3AccountHoldersPostRequestBadRequestError": { + "docs": "Account holder with the provided id already exists.", + "status-code": 400, + "type": "unknown", + }, + "CreateAccountHolderV3AccountHoldersPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "CustomCategoriesPostV3CategoriesAccountHolderTypePostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteAccountHolderV3AccountHoldersIdDeleteRequestNotFoundError": { + "docs": "Account holder with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "DeleteAccountHolderV3AccountHoldersIdDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteBankStatementV3BankStatementsIdDeleteRequestNotFoundError": { + "docs": "Bank statement with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "DeleteBankStatementV3BankStatementsIdDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteReportV3ReportsIdDeleteRequestNotFoundError": { + "docs": "Report with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "DeleteReportV3ReportsIdDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteTransactionV3TransactionsIdDeleteRequestNotFoundError": { + "docs": "Transaction with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "DeleteTransactionV3TransactionsIdDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "DeleteWebhookV3WebhooksIdDeleteRequestNotFoundError": { + "docs": "Webhook with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "DeleteWebhookV3WebhooksIdDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "FilterAppendV3RulesAppendPostRequestBadRequestError": { + "docs": "Provided rule has invalid structure", + "status-code": 400, + "type": "unknown", + }, + "FilterAppendV3RulesAppendPostRequestContentTooLargeError": { + "docs": "Ruleset after append was larger than 50KiB", + "status-code": 413, + "type": "unknown", + }, + "FilterAppendV3RulesAppendPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "FilterDeleteV3RulesIndexDeleteRequestBadRequestError": { + "docs": "Provided index does not exist in ruleset", + "status-code": 400, + "type": "unknown", + }, + "FilterDeleteV3RulesIndexDeleteRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "FilterGetV3RulesGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "FilterPatchV3RulesIndexPatchRequestBadRequestError": { + "docs": "Provided index does not exist in ruleset", + "status-code": 400, + "type": "unknown", + }, + "FilterPatchV3RulesIndexPatchRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "FilterPostV3RulesPostRequestBadRequestError": { + "docs": "Provided ruleset has invalid structure", + "status-code": 400, + "type": "unknown", + }, + "FilterPostV3RulesPostRequestContentTooLargeError": { + "docs": "Ruleset was larger than 50KiB", + "status-code": 413, + "type": "unknown", + }, + "FilterPostV3RulesPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestNotFoundError": { + "docs": "Account holder with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetAccountHolderV3AccountHoldersIdGetRequestNotFoundError": { + "docs": "Account holder with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetAccountHolderV3AccountHoldersIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetAccountHoldersV3AccountHoldersGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBankStatementResultV3BankStatementsIdResultsGetRequestNotFoundError": { + "docs": "Bank statement with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetBankStatementResultV3BankStatementsIdResultsGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestNotFoundError": { + "docs": "Bank statement with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBankStatementV3BankStatementsIdGetRequestNotFoundError": { + "docs": "Bank statement with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetBankStatementV3BankStatementsIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBankStatementsV3BankStatementsGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBatchResultsV3BatchesIdResultsGetRequestNotFoundError": { + "docs": "Batch with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetBatchResultsV3BatchesIdResultsGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetBatchesV3BatchesGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetCategorySetV3CategoriesAccountHolderTypeGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetEntityByIdV3EntitiesIdGetRequestBadRequestError": { + "docs": "Bad request.", + "status-code": 400, + "type": "unknown", + }, + "GetEntityByIdV3EntitiesIdGetRequestNotFoundError": { + "docs": "Entity does not exist for ID", + "status-code": 404, + "type": "unknown", + }, + "GetEntityByIdV3EntitiesIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetReportV3ReportsIdGetRequestNotFoundError": { + "docs": "Report with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetReportV3ReportsIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetReportsV3ReportsGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetSingleBatchV3BatchesIdGetRequestNotFoundError": { + "docs": "Batch with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetSingleBatchV3BatchesIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetTransactionV3TransactionsIdGetRequestNotFoundError": { + "docs": "Transaction with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "GetTransactionV3TransactionsIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetWebhookV3WebhooksIdGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "GetWebhooksV3WebhooksGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "ListTransactionsV3TransactionsGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PatchWebhookV3WebhooksIdPatchRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PostBankStatementV3BankStatementsPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PostBatchV3BatchesPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PostReportV3ReportsPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PostTransactionsV3TransactionsPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "PostWebhookV3WebhooksPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "SearchEntityV3EntitiesLookupGetRequestBadRequestError": { + "docs": "Bad request.", + "status-code": 400, + "type": "unknown", + }, + "SearchEntityV3EntitiesLookupGetRequestLockedError": { + "docs": "Not enough credits.", + "status-code": 423, + "type": "unknown", + }, + "SearchEntityV3EntitiesLookupGetRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + "SetTransactionAhV3TransactionsIdAssignPostRequestNotFoundError": { + "docs": "Transaction or account holder with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "SetTransactionAhV3TransactionsIdAssignPostRequestUnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + }, + "types": { + "Account": { + "docs": undefined, + "properties": { + "closing_balance": { + "type": "optional", + }, + "iso_currency_code": { + "type": "optional", + }, + "number": { + "type": "optional", + }, + "opening_balance": { + "type": "optional", + }, + "type": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolder": { + "docs": undefined, + "properties": { + "address": { + "type": "optional
", + }, + "name": { + "type": "optional", + }, + "type": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolderExternal": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "name": { + "docs": "The name of the account holder", + "type": "optional", + }, + "type": { + "docs": "The type of the account holder. ", + "type": "AccountHolderType", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolderType": { + "docs": "An enumeration.", + "enum": [ + "consumer", + "business", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountType": { + "docs": "An enumeration.", + "enum": [ + "consumer", + "business", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountingCategory": { + "docs": "An enumeration.", + "enum": [ + { + "name": "OperationalExpenses", + "value": "operational expenses", + }, + { + "name": "CostOfGoodsSold", + "value": "cost of goods sold", + }, + "revenue", + "financing", + "taxes", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "ActionModel": { + "type": "action", + }, + "Address": { + "docs": undefined, + "properties": { + "city": { + "type": "optional", + }, + "country": { + "type": "optional", + }, + "postcode": { + "type": "optional", + }, + "state": { + "type": "optional", + }, + "street": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatement": { + "docs": "Represents a bank statement with details about the file and its status.", + "properties": { + "created_at": { + "docs": "The date and time when the job was created.", + "type": "datetime", + }, + "error": { + "type": "optional", + }, + "file": { + "docs": "Information about the bank statement file being processed.", + "type": "BankStatementFile", + }, + "id": { + "docs": "A unique identifier for the bank statement job.", + "type": "string", + }, + "name": { + "docs": "The name of the bank statement file, if available.", + "type": "optional", + }, + "status": { + "docs": "The current status of the document.", + "type": "BankStatementStatus", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementAccount": { + "docs": undefined, + "properties": { + "closing_balance": { + "docs": "The closing balance of the account for the statement period.", + "type": "optional", + }, + "end_date": { + "docs": "The end date of the statement period.", + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "is_balance_reconciled": { + "docs": "Indicates whether the balance has been reconciled.", + "type": "optional", + }, + "number": { + "docs": "The account number, if available.", + "type": "optional", + }, + "opening_balance": { + "docs": "The opening balance of the account for the statement period.", + "type": "optional", + }, + "start_date": { + "docs": "The start date of the statement period.", + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "total_incoming": { + "docs": "The sum of amounts of all incoming transactions.", + "type": "optional", + }, + "total_outgoing": { + "docs": "The sum of amounts of all outgoing transactions.", + "type": "optional", + }, + "transactions": { + "docs": "List of transactions for this account.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementError": { + "docs": undefined, + "properties": { + "code": { + "type": "BankStatementErrorCode", + }, + "message": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementErrorCode": { + "docs": "An enumeration.", + "enum": [ + "invalid_bank_statement", + "internal_error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementFile": { + "docs": undefined, + "properties": { + "no_pages": { + "docs": "The number of pages in the bank statement file.", + "type": "integer", + }, + "size": { + "docs": "The size of the bank statement file in bytes, if available.", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementResults": { + "docs": undefined, + "properties": { + "accounts": { + "docs": "List of accounts in the bank statement.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementStatus": { + "docs": "An enumeration.", + "enum": [ + "processing", + "completed", + "error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementTransaction": { + "docs": undefined, + "properties": { + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "running_balance": { + "docs": "The account's balance when this transaction was performed", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Batch": { + "docs": "The `Batch` object represents the status and progress of an asynchronous batch enrichment job.", + "properties": { + "created_at": { + "docs": "The timestamp of when the batch was created.", + "type": "datetime", + }, + "id": { + "docs": "A unique identifier for the batch.", + "type": "string", + }, + "progress": { + "docs": "The number of transactions processed so far.", + "type": "integer", + }, + "status": { + "docs": "The current status of the batch. A batch will error if at least one of the transactions contains an error.", + "type": "BatchStatus", + }, + "total": { + "docs": "The total number of transactions in the batch.", + "type": "integer", + }, + "updated_at": { + "docs": "The timestamp of when the batch was last updated.", + "type": "datetime", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BatchResult": { + "docs": "The `BatchResult` object represents the result of a batch enrichment job, including its status and +enriched transactions.", + "properties": { + "id": { + "docs": "A unique identifier for the batch.", + "type": "string", + }, + "results": { + "type": "EnrichmentResult", + }, + "status": { + "docs": "The current status of the batch job.", + "type": "BatchStatus", + }, + "total": { + "docs": "The total number of transactions in the batch result.", + "type": "integer", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BatchStatus": { + "docs": "An enumeration.", + "enum": [ + "processing", + "completed", + "error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Categories": { + "docs": undefined, + "properties": { + "accounting": { + "docs": "The corresponding accounting category. Only available for `business` transactions.", + "type": "optional", + }, + "general": { + "docs": "The category of the transaction. View the valid set of categories for your key [here](./docs/v3/enrichment/entities).", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "CategoryConfidence": { + "docs": "An enumeration.", + "enum": [ + "high", + "medium", + "low", + "unknown", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "CategorySet": { + "docs": undefined, + "properties": { + "incoming": { + "type": "list", + }, + "outgoing": { + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Counterparty": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "type": { + "type": "CounterpartyType", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "CounterpartyType": { + "docs": "An enumeration.", + "enum": [ + "person", + "organization", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Country": { + "docs": "An enumeration.", + "enum": [ + "AD", + "AE", + "AF", + "AG", + "AI", + "AL", + "AM", + "AO", + "AR", + "AS", + "AT", + "AU", + "AW", + "AZ", + "BA", + "BB", + "BD", + "BE", + "BF", + "BG", + "BH", + "BI", + "BJ", + "BL", + "BM", + "BN", + "BO", + "BQ", + "BR", + "BS", + "BT", + "BV", + "BW", + "BY", + "BZ", + "CA", + "CC", + "CD", + "CF", + "CG", + "CH", + "CI", + "CK", + "CL", + "CM", + "CN", + "CO", + "CR", + "CU", + "CV", + "CW", + "CX", + "CY", + "CZ", + "DE", + "DJ", + "DK", + "DM", + "DO", + "DZ", + "EC", + "EE", + "EG", + "EH", + "ER", + "ES", + "ET", + "FI", + "FJ", + "FK", + "FM", + "FR", + "GA", + "GB", + "GD", + "GE", + "GF", + "GG", + "GH", + "GI", + "GL", + "GM", + "GN", + "GP", + "GQ", + "GR", + "GS", + "GT", + "GU", + "GW", + "GY", + "HK", + "HM", + "HN", + "HR", + "HT", + "HU", + "ID", + "IE", + "IL", + "IM", + "IN", + "IO", + "IQ", + "IR", + "IS", + "IT", + "JE", + "JM", + "JO", + "JP", + "KE", + "KG", + "KH", + "KI", + "KM", + "KN", + "KP", + "KR", + "KW", + "KY", + "KZ", + "LA", + "LB", + "LC", + "LI", + "LK", + "LR", + "LS", + "LT", + "LU", + "LV", + "LY", + "MA", + "MC", + "MD", + "ME", + "MF", + "MG", + "MH", + "MK", + "ML", + "MM", + "MN", + "MO", + "MP", + "MQ", + "MR", + "MS", + "MT", + "MU", + "MV", + "MW", + "MX", + "MY", + "MZ", + "NA", + "NC", + "NE", + "NF", + "NG", + "NI", + "NL", + "NO", + "NP", + "NR", + "NU", + "NZ", + "OM", + "PA", + "PE", + "PF", + "PG", + "PH", + "PK", + "PL", + "PM", + "PN", + "PR", + "PS", + "PT", + "PW", + "PY", + "QA", + "RE", + "RO", + "RS", + "RU", + "RW", + "SA", + "SB", + "SC", + "SD", + "SE", + "SG", + "SH", + "SI", + "SJ", + "SK", + "SL", + "SM", + "SN", + "SO", + "SR", + "SS", + "ST", + "SV", + "SX", + "SY", + "SZ", + "TC", + "TD", + "TG", + "TH", + "TJ", + "TK", + "TL", + "TM", + "TN", + "TO", + "TR", + "TT", + "TV", + "TW", + "TZ", + "UA", + "UG", + "UM", + "US", + "UY", + "UZ", + "VC", + "VE", + "VG", + "VI", + "VN", + "VU", + "WF", + "WS", + "YE", + "YT", + "ZA", + "ZM", + "ZW", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Currency": { + "docs": "An enumeration.", + "enum": [ + "EUR", + "AED", + "AFN", + "XCD", + "ALL", + "AMD", + "AOA", + "ARS", + "USD", + "AUD", + "AWG", + "AZN", + "BAM", + "BBD", + "BDT", + "XOF", + "BGN", + "BHD", + "BIF", + "BMD", + "BND", + "BOB", + "BRL", + "BSD", + "INR", + "NOK", + "BWP", + "BYR", + "BZD", + "CAD", + "CDF", + "XAF", + "CHF", + "NZD", + "CLP", + "CNY", + "COP", + "CRC", + "CUP", + "CVE", + "ANG", + "CZK", + "DJF", + "DKK", + "DOP", + "DZD", + "EGP", + "MAD", + "ERN", + "ETB", + "FJD", + "FKP", + "GBP", + "GEL", + "GHS", + "GIP", + "GMD", + "GNF", + "GTQ", + "GYD", + "HKD", + "HNL", + "HUF", + "IDR", + "ILS", + "IQD", + "IRR", + "ISK", + "JMD", + "JOD", + "JPY", + "KES", + "KGS", + "KHR", + "KMF", + "KPW", + "KRW", + "KWD", + "KYD", + "KZT", + "LAK", + "LBP", + "LKR", + "LRD", + "ZAR", + "LYD", + "MDL", + "MGA", + "MKD", + "MMK", + "MNT", + "MOP", + "MRO", + "MUR", + "MVR", + "MWK", + "MXN", + "MYR", + "MZN", + "XPF", + "NGN", + "NIO", + "NPR", + "OMR", + "PEN", + "PGK", + "PHP", + "PKR", + "PLN", + "PYG", + "QAR", + "RON", + "RSD", + "RUB", + "RWF", + "SAR", + "SBD", + "SCR", + "SDG", + "SEK", + "SGD", + "SHP", + "SLL", + "SOS", + "SRD", + "SSP", + "STD", + "SYP", + "SZL", + "THB", + "TJS", + "TMT", + "TND", + "TOP", + "TRY", + "TTD", + "TWD", + "TZS", + "UAH", + "UGX", + "UYU", + "UZS", + "VEF", + "VND", + "VUV", + "WST", + "YER", + "ZMW", + "ZWL", + "HRK", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "CustomCategorySet": { + "docs": undefined, + "properties": { + "incoming": { + "type": "list", + }, + "outgoing": { + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "DocumentStatus": { + "docs": "An enumeration.", + "enum": [ + "queued", + "processing", + "processed", + "failed", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "EditableTxProp": { + "enum": [ + "logo", + "website", + "merchant", + "merchant_id", + "location", + "person", + "transaction_type", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "EnrichedTransaction": { + "docs": undefined, + "properties": { + "categories": { + "type": "optional", + }, + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "entities": { + "type": "optional", + }, + "error": { + "type": "optional", + }, + "id": { + "docs": "A unique identifier for the transaction. If two transactions are submitted with the same `id` the most recent one will replace the previous one.", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "EnrichmentResult": { + "docs": undefined, + "properties": { + "transactions": { + "docs": "A list of enriched transactions resulting from the enrichment of this batch.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Entities": { + "docs": "Entities found by identity identification", + "properties": { + "counterparty": { + "type": "optional", + }, + "intermediaries": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Entity": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "EntryType": { + "docs": "An enumeration.", + "enum": [ + "incoming", + "outgoing", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Filter": { + "type": "list", + }, + "FilterModel": { + "type": "Filter", + }, + "FnCall": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "FnCall&&", + }, + { + "type": "FnCall||", + }, + { + "type": "FnCall==", + }, + { + "type": "FnCall+", + }, + { + "type": "FnCall-", + }, + { + "type": "FnCall*", + }, + { + "type": "FnCall/", + }, + { + "type": "FnCall//", + }, + { + "type": "FnCall<", + }, + { + "type": "FnCall<=", + }, + { + "type": "FnCall>", + }, + { + "type": "FnCall>=", + }, + { + "type": "FnCall!", + }, + { + "type": "FnCallIsSubstring", + }, + { + "type": "FnCallStartsWith", + }, + { + "type": "FnCallEndsWith", + }, + { + "type": "FnCallToLower", + }, + { + "type": "FnCallToUpper", + }, + { + "type": "FnCallHasLabel", + }, + { + "type": "FnCallHasMcc", + }, + { + "type": "FnCallGet", + }, + ], + }, + "FnCall!": { + "docs": undefined, + "properties": { + "!": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall&&": { + "docs": undefined, + "properties": { + "&&": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall*": { + "docs": undefined, + "properties": { + "*": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall+": { + "docs": undefined, + "properties": { + "+": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall-": { + "docs": undefined, + "properties": { + "-": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall/": { + "docs": undefined, + "properties": { + "/": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall//": { + "docs": undefined, + "properties": { + "//": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall<": { + "docs": undefined, + "properties": { + "<": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall<=": { + "docs": undefined, + "properties": { + "<=": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall==": { + "docs": undefined, + "properties": { + "==": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall>": { + "docs": undefined, + "properties": { + ">": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall>=": { + "docs": undefined, + "properties": { + ">=": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallEndsWith": { + "docs": undefined, + "properties": { + "ends_with": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallGet": { + "docs": undefined, + "properties": { + "get": { + "type": "properties", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallHasLabel": { + "docs": undefined, + "properties": { + "has_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallHasMcc": { + "docs": undefined, + "properties": { + "has_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallIsSubstring": { + "docs": undefined, + "properties": { + "is_substring": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallStartsWith": { + "docs": undefined, + "properties": { + "starts_with": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallToLower": { + "docs": undefined, + "properties": { + "to_lower": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallToUpper": { + "docs": undefined, + "properties": { + "to_upper": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall||": { + "docs": undefined, + "properties": { + "||": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "HTTPValidationError": { + "docs": undefined, + "properties": { + "detail": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Intermediary": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "type": { + "type": "IntermediaryType", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "IntermediaryType": { + "docs": "An enumeration.", + "enum": [ + "delivery_service", + "payment_processor", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Location": { + "docs": undefined, + "properties": { + "raw_address": { + "docs": "An unstructured string containing the address", + "type": "optional", + }, + "structured": { + "docs": "When raw is set, a structured representation of it.", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "LocationInput": { + "docs": "Location of where the transaction has taken place. This can greatly improve entity identification, especially +under ambiguity.", + "properties": { + "country": { + "docs": "The country where the transaction was made in ISO 3166-2 format", + "type": "Country", + }, + "raw_address": { + "docs": "An unstructured string containing the address", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "LocationStructured": { + "docs": undefined, + "properties": { + "apple_maps_url": { + "docs": "A URL link to view the location on Apple Maps", + "type": "optional", + }, + "city": { + "docs": "The city where the location is situated", + "type": "optional", + }, + "country": { + "docs": "The full name of the country", + "type": "optional", + }, + "country_code": { + "docs": "The country code of the location in ISO 3166-2 format", + "type": "optional", + }, + "google_maps_url": { + "docs": "A URL link to view the location on Google Maps", + "type": "optional", + }, + "latitude": { + "docs": "The latitude coordinate of the location", + "type": "optional", + }, + "longitude": { + "docs": "The longitude coordinate of the location", + "type": "optional", + }, + "postcode": { + "docs": "The postal code or ZIP code of the location", + "type": "optional", + }, + "state": { + "docs": "The state or region of the location", + "type": "optional", + }, + "store_number": { + "docs": "A unique identifier for a specific store or branch, if applicable", + "type": "optional", + }, + "street": { + "docs": "The street name and number of the location", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabels": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "ModifyLabelsAddLabel", + }, + { + "type": "ModifyLabelsRemoveLabel", + }, + { + "type": "ModifyLabelsSetLabels", + }, + { + "type": "ModifyLabelsAddMcc", + }, + { + "type": "ModifyLabelsRemoveMcc", + }, + { + "type": "ModifyLabelsSetMcc", + }, + ], + }, + "ModifyLabelsAddLabel": { + "docs": undefined, + "properties": { + "add_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsAddMcc": { + "docs": undefined, + "properties": { + "add_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsRemoveLabel": { + "docs": undefined, + "properties": { + "remove_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsRemoveMcc": { + "docs": undefined, + "properties": { + "remove_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsSetLabels": { + "docs": undefined, + "properties": { + "set_labels": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsSetMcc": { + "docs": undefined, + "properties": { + "set_mcc": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseAccountHolderExternal": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseBankStatement": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseBatch": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseReport": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseTransaction": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseWebhook": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Recurrence": { + "docs": "The `Recurrence` object represents the recurrence pattern of a transaction. It provides information about +whether a transaction is a one-time event or a part of a recurring series.", + "properties": { + "type": { + "docs": "Whether the transaction is a one-time transfer `one-off`, regularly with varying pricing `recurring` or with fixed pricing `subscription`", + "type": "RecurrenceType", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrenceGroup": { + "docs": undefined, + "properties": { + "average_amount": { + "docs": "The average amount per transaction in this group", + "type": "double", + }, + "categories": { + "docs": "Categories of the transactions in the recurrence group", + "type": "Categories", + }, + "counterparty": { + "docs": "Counterparty of the transactions", + "type": "Counterparty", + }, + "end_date": { + "docs": "The date of the most recent transaction in the group", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "id": { + "docs": "A unique UUID identifier for the group", + "type": "string", + }, + "periodicity": { + "docs": "A human-readable description of the transaction frequency", + "type": "RecurrencePeriodicity", + }, + "periodicity_in_days": { + "docs": "The estimated number of days between transactions in this group", + "type": "double", + }, + "start_date": { + "docs": "The date of the oldest transaction in the group", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "total_amount": { + "docs": "The sum of all transaction amounts in this group", + "type": "double", + }, + "transaction_ids": { + "docs": "Transactions in this recurrence group", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrencePeriodicity": { + "docs": "An enumeration.", + "enum": [ + "daily", + "weekly", + "bi_weekly", + "monthly", + "bi_monthly", + "quarterly", + "semi_yearly", + "yearly", + "other", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrenceType": { + "docs": "An enumeration.", + "enum": [ + "recurring", + "subscription", + { + "name": "OneOff", + "value": "one off", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Report": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The date and time when the report was created.", + "type": "datetime", + }, + "description": { + "docs": "A description of what is wrong in the transaction", + "type": "string", + }, + "fields": { + "docs": "A list of the fields that are incorrect", + "type": "list", + }, + "id": { + "docs": "A generated unique identifier for the report.", + "type": "string", + }, + "rejection_reason": { + "docs": "An explanation of why the report was rejected", + "type": "optional", + }, + "status": { + "docs": "The status of the report. + +* `open`: a newly created report +* `pending`: the report is being investigated +* `rejected`: the original enrichment output was deemed correct or we couldn't resolve it, check `rejection_reason` +* `resolved`: the issue has been resolved", + "type": "ReportStatus", + }, + "transaction_id": { + "docs": "The unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ReportStatus": { + "docs": "An enumeration.", + "enum": [ + "open", + "pending", + "resolved", + "rejected", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "StatementInfo": { + "docs": undefined, + "properties": { + "account_holder": { + "type": "optional", + }, + "accounts": { + "type": "optional>", + }, + "end_date": { + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "institution": { + "type": "optional", + }, + "start_date": { + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "SyncEnrichmentOutput": { + "docs": undefined, + "properties": { + "transactions": { + "docs": "A list of enriched transactions resulting from the enrichment of this batch.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Transaction": { + "docs": undefined, + "properties": { + "account_holder_id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "categories": { + "type": "optional", + }, + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entities": { + "type": "optional", + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "error": { + "type": "optional", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + "recurrence": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionError": { + "docs": undefined, + "properties": { + "code": { + "type": "TransactionErrorCode", + }, + "message": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionErrorCode": { + "docs": "An enumeration.", + "enum": [ + "account_holder_not_found", + "internal_error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionInput": { + "docs": undefined, + "properties": { + "account_holder_id": { + "docs": "The unique ID of the account holder. Unsetting it will disable [categorization](./docs/v3/enrichment/entities).", + "type": "string", + }, + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ValidationError": { + "docs": undefined, + "properties": { + "loc": { + "type": "list", + }, + "msg": "string", + "type": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ValidationErrorLocItem": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + "string", + "integer", + ], + }, + "Webhook": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The date and time when the webhook was created.", + "type": "datetime", + }, + "enabled": { + "docs": "Whether the webhook is enabled or not.", + "type": "boolean", + }, + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "list", + }, + "id": { + "docs": "A generated unique identifier for the webhook", + "type": "string", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "string", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "WebhookEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "action": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "if", + }, + { + "type": "ModifyLabels", + }, + { + "type": "set", + }, + ], + }, + "expression": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + "boolean", + "string", + "double", + "FnCall", + ], + }, + "if": { + "docs": undefined, + "properties": { + "else": { + "type": "optional>", + }, + "if": { + "type": "expression", + }, + "then": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "properties": { + "enum": [ + "logo", + "website", + "merchant", + "description", + "merchant_id", + "location", + "person", + "transaction_type", + "amount", + "entry_type", + "account_holder_type", + "account_holder_id", + "account_holder_name", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "set": { + "docs": undefined, + "properties": { + "set": { + "type": "EditableTxProp", + }, + "to": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + }, + "rawContents": "errors: + GetTransactionV3TransactionsIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Transaction with the provided id not found. + GetTransactionV3TransactionsIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteTransactionV3TransactionsIdDeleteRequestNotFoundError: + status-code: 404 + type: unknown + docs: Transaction with the provided id not found. + DeleteTransactionV3TransactionsIdDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + ListTransactionsV3TransactionsGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PostTransactionsV3TransactionsPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + SetTransactionAhV3TransactionsIdAssignPostRequestNotFoundError: + status-code: 404 + type: unknown + docs: Transaction or account holder with the provided id not found. + SetTransactionAhV3TransactionsIdAssignPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBatchesV3BatchesGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PostBatchV3BatchesPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetSingleBatchV3BatchesIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Batch with the provided id not found. + GetSingleBatchV3BatchesIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBatchResultsV3BatchesIdResultsGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Batch with the provided id not found. + GetBatchResultsV3BatchesIdResultsGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBankStatementsV3BankStatementsGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PostBankStatementV3BankStatementsPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBankStatementV3BankStatementsIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Bank statement with the provided id not found. + GetBankStatementV3BankStatementsIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteBankStatementV3BankStatementsIdDeleteRequestNotFoundError: + status-code: 404 + type: unknown + docs: Bank statement with the provided id not found. + DeleteBankStatementV3BankStatementsIdDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestNotFoundError: + status-code: 404 + type: unknown + docs: Bank statement with the provided id not found. + GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetBankStatementResultV3BankStatementsIdResultsGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Bank statement with the provided id not found. + GetBankStatementResultV3BankStatementsIdResultsGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetAccountHolderV3AccountHoldersIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Account holder with the provided id not found. + GetAccountHolderV3AccountHoldersIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteAccountHolderV3AccountHoldersIdDeleteRequestNotFoundError: + status-code: 404 + type: unknown + docs: Account holder with the provided id not found. + DeleteAccountHolderV3AccountHoldersIdDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetAccountHoldersV3AccountHoldersGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + CreateAccountHolderV3AccountHoldersPostRequestBadRequestError: + status-code: 400 + type: unknown + docs: Account holder with the provided id already exists. + CreateAccountHolderV3AccountHoldersPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestNotFoundError: + status-code: 404 + type: unknown + docs: Account holder with the provided id not found. + GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetWebhooksV3WebhooksGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PostWebhookV3WebhooksPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetWebhookV3WebhooksIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteWebhookV3WebhooksIdDeleteRequestNotFoundError: + status-code: 404 + type: unknown + docs: Webhook with the provided id not found. + DeleteWebhookV3WebhooksIdDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PatchWebhookV3WebhooksIdPatchRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + FilterGetV3RulesGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + FilterPostV3RulesPostRequestBadRequestError: + status-code: 400 + type: unknown + docs: Provided ruleset has invalid structure + FilterPostV3RulesPostRequestContentTooLargeError: + status-code: 413 + type: unknown + docs: Ruleset was larger than 50KiB + FilterPostV3RulesPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + FilterAppendV3RulesAppendPostRequestBadRequestError: + status-code: 400 + type: unknown + docs: Provided rule has invalid structure + FilterAppendV3RulesAppendPostRequestContentTooLargeError: + status-code: 413 + type: unknown + docs: Ruleset after append was larger than 50KiB + FilterAppendV3RulesAppendPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + FilterDeleteV3RulesIndexDeleteRequestBadRequestError: + status-code: 400 + type: unknown + docs: Provided index does not exist in ruleset + FilterDeleteV3RulesIndexDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + FilterPatchV3RulesIndexPatchRequestBadRequestError: + status-code: 400 + type: unknown + docs: Provided index does not exist in ruleset + FilterPatchV3RulesIndexPatchRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetReportsV3ReportsGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + PostReportV3ReportsPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetReportV3ReportsIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Report with the provided id not found. + GetReportV3ReportsIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteReportV3ReportsIdDeleteRequestNotFoundError: + status-code: 404 + type: unknown + docs: Report with the provided id not found. + DeleteReportV3ReportsIdDeleteRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + GetCategorySetV3CategoriesAccountHolderTypeGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + CustomCategoriesPostV3CategoriesAccountHolderTypePostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + SearchEntityV3EntitiesLookupGetRequestBadRequestError: + status-code: 400 + type: unknown + docs: Bad request. + SearchEntityV3EntitiesLookupGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + SearchEntityV3EntitiesLookupGetRequestLockedError: + status-code: 423 + type: unknown + docs: Not enough credits. + GetEntityByIdV3EntitiesIdGetRequestBadRequestError: + status-code: 400 + type: unknown + docs: Bad request. + GetEntityByIdV3EntitiesIdGetRequestNotFoundError: + status-code: 404 + type: unknown + docs: Entity does not exist for ID + GetEntityByIdV3EntitiesIdGetRequestUnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} +types: + Account: + properties: + type: + type: optional + number: + type: optional + opening_balance: + type: optional + closing_balance: + type: optional + iso_currency_code: + type: optional + source: + openapi: ../openapi.yml + AccountHolder: + properties: + type: + type: optional + name: + type: optional + address: + type: optional
+ source: + openapi: ../openapi.yml + AccountHolderExternal: + properties: + id: + type: string + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + type: + type: AccountHolderType + docs: 'The type of the account holder. ' + name: + type: optional + docs: The name of the account holder + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + source: + openapi: ../openapi.yml + AccountHolderType: + enum: + - consumer + - business + docs: An enumeration. + source: + openapi: ../openapi.yml + AccountType: + enum: + - consumer + - business + docs: An enumeration. + source: + openapi: ../openapi.yml + AccountingCategory: + enum: + - value: operational expenses + name: OperationalExpenses + - value: cost of goods sold + name: CostOfGoodsSold + - revenue + - financing + - taxes + docs: An enumeration. + source: + openapi: ../openapi.yml + ActionModel: + type: action + Address: + properties: + street: + type: optional + postcode: + type: optional + city: + type: optional + state: + type: optional + country: + type: optional + source: + openapi: ../openapi.yml + BankStatement: + docs: Represents a bank statement with details about the file and its status. + properties: + id: + type: string + docs: A unique identifier for the bank statement job. + name: + type: optional + docs: The name of the bank statement file, if available. + status: + type: BankStatementStatus + docs: The current status of the document. + created_at: + type: datetime + docs: The date and time when the job was created. + file: + type: BankStatementFile + docs: Information about the bank statement file being processed. + error: + type: optional + source: + openapi: ../openapi.yml + BankStatementAccount: + properties: + number: + type: optional + docs: The account number, if available. + opening_balance: + type: optional + docs: The opening balance of the account for the statement period. + closing_balance: + type: optional + docs: The closing balance of the account for the statement period. + start_date: + type: optional + docs: The start date of the statement period. + validation: + format: date + end_date: + type: optional + docs: The end date of the statement period. + validation: + format: date + is_balance_reconciled: + type: optional + docs: Indicates whether the balance has been reconciled. + total_incoming: + type: optional + docs: The sum of amounts of all incoming transactions. + total_outgoing: + type: optional + docs: The sum of amounts of all outgoing transactions. + transactions: + docs: List of transactions for this account. + type: list + source: + openapi: ../openapi.yml + BankStatementError: + properties: + code: + type: BankStatementErrorCode + message: string + source: + openapi: ../openapi.yml + BankStatementErrorCode: + enum: + - invalid_bank_statement + - internal_error + docs: An enumeration. + source: + openapi: ../openapi.yml + BankStatementFile: + properties: + no_pages: + type: integer + docs: The number of pages in the bank statement file. + size: + type: optional + docs: The size of the bank statement file in bytes, if available. + source: + openapi: ../openapi.yml + BankStatementResults: + properties: + accounts: + docs: List of accounts in the bank statement. + type: list + source: + openapi: ../openapi.yml + BankStatementStatus: + enum: + - processing + - completed + - error + docs: An enumeration. + source: + openapi: ../openapi.yml + BankStatementTransaction: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + running_balance: + type: optional + docs: The account's balance when this transaction was performed + source: + openapi: ../openapi.yml + Batch: + docs: >- + The `Batch` object represents the status and progress of an asynchronous + batch enrichment job. + properties: + id: + type: string + docs: A unique identifier for the batch. + status: + type: BatchStatus + docs: >- + The current status of the batch. A batch will error if at least one of + the transactions contains an error. + created_at: + type: datetime + docs: The timestamp of when the batch was created. + updated_at: + type: datetime + docs: The timestamp of when the batch was last updated. + progress: + type: integer + docs: The number of transactions processed so far. + total: + type: integer + docs: The total number of transactions in the batch. + source: + openapi: ../openapi.yml + BatchResult: + docs: >- + The `BatchResult` object represents the result of a batch enrichment job, + including its status and + + enriched transactions. + properties: + id: + type: string + docs: A unique identifier for the batch. + total: + type: integer + docs: The total number of transactions in the batch result. + status: + type: BatchStatus + docs: The current status of the batch job. + results: + type: EnrichmentResult + source: + openapi: ../openapi.yml + BatchStatus: + enum: + - processing + - completed + - error + docs: An enumeration. + source: + openapi: ../openapi.yml + Categories: + properties: + general: + type: optional + docs: >- + The category of the transaction. View the valid set of categories for + your key [here](./docs/v3/enrichment/entities). + accounting: + type: optional + docs: >- + The corresponding accounting category. Only available for `business` + transactions. + source: + openapi: ../openapi.yml + CategoryConfidence: + enum: + - high + - medium + - low + - unknown + docs: An enumeration. + source: + openapi: ../openapi.yml + CategorySet: + properties: + incoming: + type: list + outgoing: + type: list + source: + openapi: ../openapi.yml + Counterparty: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + type: + type: CounterpartyType + source: + openapi: ../openapi.yml + CounterpartyType: + enum: + - person + - organization + docs: An enumeration. + source: + openapi: ../openapi.yml + Country: + enum: + - AD + - AE + - AF + - AG + - AI + - AL + - AM + - AO + - AR + - AS + - AT + - AU + - AW + - AZ + - BA + - BB + - BD + - BE + - BF + - BG + - BH + - BI + - BJ + - BL + - BM + - BN + - BO + - BQ + - BR + - BS + - BT + - BV + - BW + - BY + - BZ + - CA + - CC + - CD + - CF + - CG + - CH + - CI + - CK + - CL + - CM + - CN + - CO + - CR + - CU + - CV + - CW + - CX + - CY + - CZ + - DE + - DJ + - DK + - DM + - DO + - DZ + - EC + - EE + - EG + - EH + - ER + - ES + - ET + - FI + - FJ + - FK + - FM + - FR + - GA + - GB + - GD + - GE + - GF + - GG + - GH + - GI + - GL + - GM + - GN + - GP + - GQ + - GR + - GS + - GT + - GU + - GW + - GY + - HK + - HM + - HN + - HR + - HT + - HU + - ID + - IE + - IL + - IM + - IN + - IO + - IQ + - IR + - IS + - IT + - JE + - JM + - JO + - JP + - KE + - KG + - KH + - KI + - KM + - KN + - KP + - KR + - KW + - KY + - KZ + - LA + - LB + - LC + - LI + - LK + - LR + - LS + - LT + - LU + - LV + - LY + - MA + - MC + - MD + - ME + - MF + - MG + - MH + - MK + - ML + - MM + - MN + - MO + - MP + - MQ + - MR + - MS + - MT + - MU + - MV + - MW + - MX + - MY + - MZ + - NA + - NC + - NE + - NF + - NG + - NI + - NL + - 'NO' + - NP + - NR + - NU + - NZ + - OM + - PA + - PE + - PF + - PG + - PH + - PK + - PL + - PM + - PN + - PR + - PS + - PT + - PW + - PY + - QA + - RE + - RO + - RS + - RU + - RW + - SA + - SB + - SC + - SD + - SE + - SG + - SH + - SI + - SJ + - SK + - SL + - SM + - SN + - SO + - SR + - SS + - ST + - SV + - SX + - SY + - SZ + - TC + - TD + - TG + - TH + - TJ + - TK + - TL + - TM + - TN + - TO + - TR + - TT + - TV + - TW + - TZ + - UA + - UG + - UM + - US + - UY + - UZ + - VC + - VE + - VG + - VI + - VN + - VU + - WF + - WS + - YE + - YT + - ZA + - ZM + - ZW + docs: An enumeration. + source: + openapi: ../openapi.yml + Currency: + enum: + - EUR + - AED + - AFN + - XCD + - ALL + - AMD + - AOA + - ARS + - USD + - AUD + - AWG + - AZN + - BAM + - BBD + - BDT + - XOF + - BGN + - BHD + - BIF + - BMD + - BND + - BOB + - BRL + - BSD + - INR + - NOK + - BWP + - BYR + - BZD + - CAD + - CDF + - XAF + - CHF + - NZD + - CLP + - CNY + - COP + - CRC + - CUP + - CVE + - ANG + - CZK + - DJF + - DKK + - DOP + - DZD + - EGP + - MAD + - ERN + - ETB + - FJD + - FKP + - GBP + - GEL + - GHS + - GIP + - GMD + - GNF + - GTQ + - GYD + - HKD + - HNL + - HUF + - IDR + - ILS + - IQD + - IRR + - ISK + - JMD + - JOD + - JPY + - KES + - KGS + - KHR + - KMF + - KPW + - KRW + - KWD + - KYD + - KZT + - LAK + - LBP + - LKR + - LRD + - ZAR + - LYD + - MDL + - MGA + - MKD + - MMK + - MNT + - MOP + - MRO + - MUR + - MVR + - MWK + - MXN + - MYR + - MZN + - XPF + - NGN + - NIO + - NPR + - OMR + - PEN + - PGK + - PHP + - PKR + - PLN + - PYG + - QAR + - RON + - RSD + - RUB + - RWF + - SAR + - SBD + - SCR + - SDG + - SEK + - SGD + - SHP + - SLL + - SOS + - SRD + - SSP + - STD + - SYP + - SZL + - THB + - TJS + - TMT + - TND + - TOP + - TRY + - TTD + - TWD + - TZS + - UAH + - UGX + - UYU + - UZS + - VEF + - VND + - VUV + - WST + - YER + - ZMW + - ZWL + - HRK + docs: An enumeration. + source: + openapi: ../openapi.yml + CustomCategorySet: + properties: + incoming: + type: list + outgoing: + type: list + source: + openapi: ../openapi.yml + DocumentStatus: + enum: + - queued + - processing + - processed + - failed + docs: An enumeration. + source: + openapi: ../openapi.yml + EnrichedTransaction: + properties: + entities: + type: optional + categories: + type: optional + location: + type: optional + error: + type: optional + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + id: + type: string + docs: >- + A unique identifier for the transaction. If two transactions are + submitted with the same `id` the most recent one will replace the + previous one. + validation: + minLength: 1 + source: + openapi: ../openapi.yml + EnrichmentResult: + properties: + transactions: + docs: >- + A list of enriched transactions resulting from the enrichment of this + batch. + type: list + source: + openapi: ../openapi.yml + Entities: + docs: Entities found by identity identification + properties: + counterparty: + type: optional + intermediaries: + type: optional> + source: + openapi: ../openapi.yml + Entity: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + source: + openapi: ../openapi.yml + EntryType: + enum: + - incoming + - outgoing + docs: An enumeration. + source: + openapi: ../openapi.yml + FilterModel: + type: Filter + HTTPValidationError: + properties: + detail: + type: optional> + source: + openapi: ../openapi.yml + Intermediary: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + type: + type: IntermediaryType + source: + openapi: ../openapi.yml + IntermediaryType: + enum: + - delivery_service + - payment_processor + docs: An enumeration. + source: + openapi: ../openapi.yml + Location: + properties: + raw_address: + type: optional + docs: An unstructured string containing the address + structured: + type: optional + docs: When raw is set, a structured representation of it. + source: + openapi: ../openapi.yml + LocationInput: + docs: >- + Location of where the transaction has taken place. This can greatly + improve entity identification, especially + + under ambiguity. + properties: + raw_address: + type: optional + docs: An unstructured string containing the address + country: + type: Country + docs: The country where the transaction was made in ISO 3166-2 format + source: + openapi: ../openapi.yml + LocationStructured: + properties: + street: + type: optional + docs: The street name and number of the location + city: + type: optional + docs: The city where the location is situated + state: + type: optional + docs: The state or region of the location + postcode: + type: optional + docs: The postal code or ZIP code of the location + country_code: + type: optional + docs: The country code of the location in ISO 3166-2 format + country: + type: optional + docs: The full name of the country + latitude: + type: optional + docs: The latitude coordinate of the location + longitude: + type: optional + docs: The longitude coordinate of the location + google_maps_url: + type: optional + docs: A URL link to view the location on Google Maps + apple_maps_url: + type: optional + docs: A URL link to view the location on Apple Maps + store_number: + type: optional + docs: A unique identifier for a specific store or branch, if applicable + source: + openapi: ../openapi.yml + PagedResponseAccountHolderExternal: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseBankStatement: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseBatch: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseReport: + properties: + next_cursor: + type: optional + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseTransaction: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseWebhook: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + Recurrence: + docs: >- + The `Recurrence` object represents the recurrence pattern of a + transaction. It provides information about + + whether a transaction is a one-time event or a part of a recurring series. + properties: + type: + type: RecurrenceType + docs: >- + Whether the transaction is a one-time transfer `one-off`, regularly + with varying pricing `recurring` or with fixed pricing `subscription` + source: + openapi: ../openapi.yml + RecurrenceGroup: + properties: + id: + type: string + docs: A unique UUID identifier for the group + start_date: + type: string + docs: The date of the oldest transaction in the group + validation: + format: date + end_date: + type: string + docs: The date of the most recent transaction in the group + validation: + format: date + total_amount: + type: double + docs: The sum of all transaction amounts in this group + average_amount: + type: double + docs: The average amount per transaction in this group + periodicity_in_days: + type: double + docs: The estimated number of days between transactions in this group + periodicity: + type: RecurrencePeriodicity + docs: A human-readable description of the transaction frequency + counterparty: + type: Counterparty + docs: Counterparty of the transactions + categories: + type: Categories + docs: Categories of the transactions in the recurrence group + transaction_ids: + docs: Transactions in this recurrence group + type: list + source: + openapi: ../openapi.yml + RecurrencePeriodicity: + enum: + - daily + - weekly + - bi_weekly + - monthly + - bi_monthly + - quarterly + - semi_yearly + - yearly + - other + docs: An enumeration. + source: + openapi: ../openapi.yml + RecurrenceType: + enum: + - recurring + - subscription + - value: one off + name: OneOff + docs: An enumeration. + source: + openapi: ../openapi.yml + Report: + properties: + transaction_id: + type: string + docs: The unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: A description of what is wrong in the transaction + fields: + docs: A list of the fields that are incorrect + type: list + id: + type: string + docs: A generated unique identifier for the report. + created_at: + type: datetime + docs: The date and time when the report was created. + status: + type: ReportStatus + docs: >- + The status of the report. + + + * `open`: a newly created report + + * `pending`: the report is being investigated + + * `rejected`: the original enrichment output was deemed correct or we + couldn't resolve it, check `rejection_reason` + + * `resolved`: the issue has been resolved + rejection_reason: + type: optional + docs: An explanation of why the report was rejected + source: + openapi: ../openapi.yml + ReportStatus: + enum: + - open + - pending + - resolved + - rejected + docs: An enumeration. + source: + openapi: ../openapi.yml + StatementInfo: + properties: + institution: + type: optional + start_date: + type: optional + validation: + format: date + end_date: + type: optional + validation: + format: date + account_holder: + type: optional + accounts: + type: optional> + source: + openapi: ../openapi.yml + SyncEnrichmentOutput: + properties: + transactions: + docs: >- + A list of enriched transactions resulting from the enrichment of this + batch. + type: list + source: + openapi: ../openapi.yml + Transaction: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + entities: + type: optional + categories: + type: optional + location: + type: optional + error: + type: optional + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + account_holder_id: + type: optional + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + recurrence: + type: optional + source: + openapi: ../openapi.yml + TransactionError: + properties: + code: + type: TransactionErrorCode + message: string + source: + openapi: ../openapi.yml + TransactionErrorCode: + enum: + - account_holder_not_found + - internal_error + docs: An enumeration. + source: + openapi: ../openapi.yml + TransactionInput: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + account_holder_id: + type: string + docs: >- + The unique ID of the account holder. Unsetting it will disable + [categorization](./docs/v3/enrichment/entities). + location: + type: optional + source: + openapi: ../openapi.yml + ValidationErrorLocItem: + discriminated: false + union: + - string + - integer + source: + openapi: ../openapi.yml + ValidationError: + properties: + loc: + type: list + msg: string + type: string + source: + openapi: ../openapi.yml + WebhookEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml + Webhook: + properties: + url: + type: string + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + docs: A list of events that this webhook subscribes to + type: list + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value will be + included in the `X-Ntropy-Token` header when sending requests to the + webhook + validation: + maxLength: 128 + id: + type: string + docs: A generated unique identifier for the webhook + created_at: + type: datetime + docs: The date and time when the webhook was created. + enabled: + type: boolean + docs: Whether the webhook is enabled or not. + source: + openapi: ../openapi.yml + expression: + discriminated: false + union: + - boolean + - string + - double + - FnCall + source: + openapi: ../openapi.yml + properties: + enum: + - logo + - website + - merchant + - description + - merchant_id + - location + - person + - transaction_type + - amount + - entry_type + - account_holder_type + - account_holder_id + - account_holder_name + source: + openapi: ../openapi.yml + FnCall&&: + properties: + '&&': list + source: + openapi: ../openapi.yml + FnCall||: + properties: + '||': list + source: + openapi: ../openapi.yml + FnCall==: + properties: + '==': list + source: + openapi: ../openapi.yml + FnCall+: + properties: + +: list + source: + openapi: ../openapi.yml + FnCall-: + properties: + '-': list + source: + openapi: ../openapi.yml + FnCall*: + properties: + '*': list + source: + openapi: ../openapi.yml + FnCall/: + properties: + /: list + source: + openapi: ../openapi.yml + FnCall//: + properties: + //: list + source: + openapi: ../openapi.yml + FnCall<: + properties: + <: list + source: + openapi: ../openapi.yml + FnCall<=: + properties: + <=: list + source: + openapi: ../openapi.yml + FnCall>: + properties: + '>': list + source: + openapi: ../openapi.yml + FnCall>=: + properties: + '>=': list + source: + openapi: ../openapi.yml + FnCall!: + properties: + '!': + type: expression + source: + openapi: ../openapi.yml + FnCallIsSubstring: + properties: + is_substring: list + source: + openapi: ../openapi.yml + FnCallStartsWith: + properties: + starts_with: list + source: + openapi: ../openapi.yml + FnCallEndsWith: + properties: + ends_with: list + source: + openapi: ../openapi.yml + FnCallToLower: + properties: + to_lower: + type: expression + source: + openapi: ../openapi.yml + FnCallToUpper: + properties: + to_upper: + type: expression + source: + openapi: ../openapi.yml + FnCallHasLabel: + properties: + has_label: + type: expression + source: + openapi: ../openapi.yml + FnCallHasMcc: + properties: + has_mcc: + type: expression + source: + openapi: ../openapi.yml + FnCallGet: + properties: + get: + type: properties + source: + openapi: ../openapi.yml + FnCall: + discriminated: false + union: + - type: FnCall&& + - type: FnCall|| + - type: FnCall== + - type: FnCall+ + - type: FnCall- + - type: FnCall* + - type: FnCall/ + - type: FnCall// + - type: FnCall< + - type: FnCall<= + - type: FnCall> + - type: FnCall>= + - type: FnCall! + - type: FnCallIsSubstring + - type: FnCallStartsWith + - type: FnCallEndsWith + - type: FnCallToLower + - type: FnCallToUpper + - type: FnCallHasLabel + - type: FnCallHasMcc + - type: FnCallGet + source: + openapi: ../openapi.yml + action: + discriminated: false + union: + - type: if + - type: ModifyLabels + - type: set + source: + openapi: ../openapi.yml + if: + properties: + if: + type: expression + then: + type: optional> + else: + type: optional> + source: + openapi: ../openapi.yml + ModifyLabelsAddLabel: + properties: + add_label: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsRemoveLabel: + properties: + remove_label: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsSetLabels: + properties: + set_labels: list + source: + openapi: ../openapi.yml + ModifyLabelsAddMcc: + properties: + add_mcc: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsRemoveMcc: + properties: + remove_mcc: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsSetMcc: + properties: + set_mcc: list + source: + openapi: ../openapi.yml + ModifyLabels: + discriminated: false + union: + - type: ModifyLabelsAddLabel + - type: ModifyLabelsRemoveLabel + - type: ModifyLabelsSetLabels + - type: ModifyLabelsAddMcc + - type: ModifyLabelsRemoveMcc + - type: ModifyLabelsSetMcc + source: + openapi: ../openapi.yml + EditableTxProp: + enum: + - logo + - website + - merchant + - merchant_id + - location + - person + - transaction_type + source: + openapi: ../openapi.yml + set: + properties: + set: + type: EditableTxProp + to: + type: expression + source: + openapi: ../openapi.yml + Filter: + type: list +", + }, + "accountHolders.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Account Holder API allows you to retrieve, create and modify account holders. An account holder represents an +entity that holds an account associated with transactions. An account holder can either be a business or an individual +person - consumer. + +The fields chosen for an account holder are used by our enrichment process and can dramatically improve the accuracy +of the results. + +Complete guide: [Account Holders](../../../account-holders). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Account Holders", + "endpoints": { + "createAccountHolder": { + "auth": true, + "display-name": "Create an account holder.", + "docs": undefined, + "errors": [ + "root.CreateAccountHolderV3AccountHoldersPostRequestBadRequestError", + "root.CreateAccountHolderV3AccountHoldersPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "consumer", + "name": "John Doe" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.create( + id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + type="consumer", + name="John Doe", +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "id": "id", + "type": "consumer", + }, + "response": { + "body": { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/account_holders", + "request": { + "body": { + "properties": { + "id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "name": { + "docs": "The name of the account holder", + "type": "optional", + }, + "type": { + "docs": "The type of the account holder. ", + "type": "root.AccountHolderType", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "AccountHolderCreate", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.AccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "deleteAccountHolder": { + "auth": true, + "display-name": "Deletes an account holder and their transactions", + "docs": "Deletes all of the transactions in the account holder's history. This operation is permanent and irreversible", + "errors": [ + "root.DeleteAccountHolderV3AccountHoldersIdDeleteRequestNotFoundError", + "root.DeleteAccountHolderV3AccountHoldersIdDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.delete("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/account_holders/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getAccountHolder": { + "auth": true, + "display-name": "Retrieve an account holder.", + "docs": undefined, + "errors": [ + "root.GetAccountHolderV3AccountHoldersIdGetRequestNotFoundError", + "root.GetAccountHolderV3AccountHoldersIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/account_holders/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.AccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getAccountHolders": { + "auth": true, + "display-name": "List all account holders.", + "docs": undefined, + "errors": [ + "root.GetAccountHoldersV3AccountHoldersGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/account_holders", + "request": { + "name": "GetAccountHoldersV3AccountHoldersGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return account holders older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return account holders newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of account holders", + "type": "optional", + }, + "limit": { + "docs": "The limit of account holders to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseAccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getAccountHolder: + path: /v3/account_holders/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve an account holder. + response: + docs: Successful Response + type: root.AccountHolderExternal + errors: + - root.GetAccountHolderV3AccountHoldersIdGetRequestNotFoundError + - >- + root.GetAccountHolderV3AccountHoldersIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + deleteAccountHolder: + path: /v3/account_holders/{id} + method: DELETE + auth: true + docs: >- + Deletes all of the transactions in the account holder's history. This + operation is permanent and irreversible + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes an account holder and their transactions + errors: + - root.DeleteAccountHolderV3AccountHoldersIdDeleteRequestNotFoundError + - >- + root.DeleteAccountHolderV3AccountHoldersIdDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.delete("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + getAccountHolders: + path: /v3/account_holders + method: GET + auth: true + source: + openapi: ../openapi.yml + display-name: List all account holders. + request: + name: GetAccountHoldersV3AccountHoldersGetRequest + query-parameters: + created_after: + type: optional + docs: Only return account holders older or equal than this date + created_before: + type: optional + docs: Only return account holders newer than this date + cursor: + type: optional + docs: Starting point for the set of account holders + limit: + type: optional + docs: The limit of account holders to be returned + validation: + min: 1 + max: 50 + response: + docs: Successful Response + type: root.PagedResponseAccountHolderExternal + errors: + - >- + root.GetAccountHoldersV3AccountHoldersGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + createAccountHolder: + path: /v3/account_holders + method: POST + auth: true + source: + openapi: ../openapi.yml + display-name: Create an account holder. + request: + name: AccountHolderCreate + body: + properties: + id: + type: string + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + type: + type: root.AccountHolderType + docs: 'The type of the account holder. ' + name: + type: optional + docs: The name of the account holder + content-type: application/json + response: + docs: Successful Response + type: root.AccountHolderExternal + errors: + - root.CreateAccountHolderV3AccountHoldersPostRequestBadRequestError + - >- + root.CreateAccountHolderV3AccountHoldersPostRequestUnprocessableEntityError + examples: + - request: + id: id + type: consumer + response: + body: + id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "consumer", + "name": "John Doe" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + ah = sdk.account_holders.create( + id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + type="consumer", + name="John Doe", + ) + source: + openapi: ../openapi.yml + display-name: Account Holders +docs: > + + The Account Holder API allows you to retrieve, create and modify account + holders. An account holder represents an + + entity that holds an account associated with transactions. An account holder + can either be a business or an individual + + person - consumer. + + + The fields chosen for an account holder are used by our enrichment process and + can dramatically improve the accuracy + + of the results. + + + Complete guide: [Account Holders](../../../account-holders). +", + }, + "bankStatements.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Bank Statements API allows you to manage and extract information from bank statements. We support extraction of +account holder information, account information and transaction records. Files should be uploaded in PDF format. + +During the extraction process, the bank statements undergo several status changes: +| Status | Description | +|----------|------------------------------------------------------------------------| +|processing|The upload was successful. Extraction is in progress. | +|completed |The extraction was successful. Results are available. | +|error |An error occurred during extraction. Check `error` for more information.| + + +A list of error codes for the `error` status can be found below: +| Code | Description | +|----------------------|-------------------------------------------| +|invalid_bank_statement|Failed to process file as a bank statement.| +|internal_error |Internal error. Please contact support. | + + +Complete guide: [Bank Statements](../../../bank-statements). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Bank statements", + "endpoints": { + "deleteBankStatement": { + "auth": true, + "display-name": "Deletes a bank statement", + "docs": undefined, + "errors": [ + "root.DeleteBankStatementV3BankStatementsIdDeleteRequestNotFoundError", + "root.DeleteBankStatementV3BankStatementsIdDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/bank_statements/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatement": { + "auth": true, + "display-name": "Retrieve a bank statement", + "docs": undefined, + "errors": [ + "root.GetBankStatementV3BankStatementsIdGetRequestNotFoundError", + "root.GetBankStatementV3BankStatementsIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +bs = sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatementResult": { + "auth": true, + "display-name": "Retrieve the extraction results", + "docs": "Return the extracted account information and associated transactions from a bank statement PDF. The results are accessible once the statement's status is `completed`.", + "errors": [ + "root.GetBankStatementResultV3BankStatementsIdResultsGetRequestNotFoundError", + "root.GetBankStatementResultV3BankStatementsIdResultsGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +bs = sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") +results = sdk.bank_statements.wait_for_results( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "accounts": [ + { + "closing_balance": 200, + "end_date": "2024-02-01", + "is_balance_reconciled": true, + "number": "972913289", + "opening_balance": 400, + "start_date": "2024-01-01", + "total_incoming": 0, + "total_outgoing": 200, + "transactions": [ + { + "amount": 200, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "running_balance": 400, + }, + ], + }, + ], + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements/{id}/results", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatementResults", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatementStatementInfo": { + "auth": true, + "display-name": "Quickly extract account holder, institution and first account", + "docs": "Extracts account holder, bank and account information extracted from the first page of the bank statement, which is typically available before the full results. This is a synchronous call. + +Complete guide: [Overview](../../../bank-statements)", + "errors": [ + "root.GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestNotFoundError", + "root.GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +overview = sdk.bank_statements.overview( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "account_holder": { + "address": { + "city": "Victoria", + "country": "United States", + "postcode": "77901", + "state": "Texas", + "street": "601 Rosebud Avenue", + }, + "name": "John Doe", + "type": "consumer", + }, + "accounts": [ + { + "closing_balance": 1500, + "iso_currency_code": "USD", + "number": "83721", + "opening_balance": 1000, + "type": "checking", + }, + ], + "end_date": "2024-02-01", + "institution": "Well's Fargo", + "start_date": "2024-01-01", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/bank_statements/{id}/overview", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.StatementInfo", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatements": { + "auth": true, + "display-name": "List all bank statements", + "docs": "Return a list of submitted bank statements starting with the most recent one.", + "errors": [ + "root.GetBankStatementsV3BankStatementsGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for bs in sdk.bank_statements.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements", + "request": { + "name": "GetBankStatementsV3BankStatementsGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return bank statements older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return bank statements newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of bank statements", + "type": "optional", + }, + "limit": { + "docs": "The limit of bank statements to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return bank statements with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseBankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postBankStatement": { + "auth": true, + "display-name": "Submit a bank statement PDF", + "docs": "Upload a PDF file and queue it for extraction.", + "errors": [ + "root.PostBankStatementV3BankStatementsPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + --form file=@bank_statement.pdf + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +with open('bank_statement.pdf', 'rb') as fh: + bank_statement = sdk.bank_statements.create(fh) + results = sdk.bank_statement.wait_for_results(bank_statement.id) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": {}, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/bank_statements", + "request": { + "body": { + "properties": { + "file": "file", + }, + }, + "content-type": "multipart/form-data", + "headers": undefined, + "name": "Body_post_bank_statement_v3_bank_statements_post", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getBankStatements: + path: /v3/bank_statements + method: GET + auth: true + docs: >- + Return a list of submitted bank statements starting with the most recent + one. + source: + openapi: ../openapi.yml + display-name: List all bank statements + request: + name: GetBankStatementsV3BankStatementsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return bank statements older or equal than this date + created_before: + type: optional + docs: Only return bank statements newer than this date + cursor: + type: optional + docs: Starting point for the set of bank statements + limit: + type: optional + docs: The limit of bank statements to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return bank statements with this status + response: + docs: Successful Response + type: root.PagedResponseBankStatement + errors: + - >- + root.GetBankStatementsV3BankStatementsGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for bs in sdk.bank_statements.list().auto_paginate(): + ... + postBankStatement: + path: /v3/bank_statements + method: POST + auth: true + docs: Upload a PDF file and queue it for extraction. + source: + openapi: ../openapi.yml + display-name: Submit a bank statement PDF + request: + name: Body_post_bank_statement_v3_bank_statements_post + body: + properties: + file: file + content-type: multipart/form-data + response: + docs: Successful Response + type: root.BankStatement + errors: + - >- + root.PostBankStatementV3BankStatementsPostRequestUnprocessableEntityError + examples: + - request: {} + response: + body: + id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + --form file=@bank_statement.pdf + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + with open('bank_statement.pdf', 'rb') as fh: + bank_statement = sdk.bank_statements.create(fh) + results = sdk.bank_statement.wait_for_results(bank_statement.id) + getBankStatement: + path: /v3/bank_statements/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a bank statement + response: + docs: Successful Response + type: root.BankStatement + errors: + - root.GetBankStatementV3BankStatementsIdGetRequestNotFoundError + - >- + root.GetBankStatementV3BankStatementsIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + bs = + sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") + deleteBankStatement: + path: /v3/bank_statements/{id} + method: DELETE + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes a bank statement + errors: + - root.DeleteBankStatementV3BankStatementsIdDeleteRequestNotFoundError + - >- + root.DeleteBankStatementV3BankStatementsIdDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + getBankStatementStatementInfo: + path: /v3/bank_statements/{id}/overview + method: POST + auth: true + docs: >- + Extracts account holder, bank and account information extracted from the + first page of the bank statement, which is typically available before + the full results. This is a synchronous call. + + + Complete guide: [Overview](../../../bank-statements) + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Quickly extract account holder, institution and first account + response: + docs: Successful Response + type: root.StatementInfo + errors: + - >- + root.GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestNotFoundError + - >- + root.GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + institution: Well's Fargo + start_date: '2024-01-01' + end_date: '2024-02-01' + account_holder: + type: consumer + name: John Doe + address: + street: 601 Rosebud Avenue + postcode: '77901' + city: Victoria + state: Texas + country: United States + accounts: + - type: checking + number: '83721' + opening_balance: 1000 + closing_balance: 1500 + iso_currency_code: USD + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + overview = sdk.bank_statements.overview( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" + ) + getBankStatementResult: + path: /v3/bank_statements/{id}/results + method: GET + auth: true + docs: >- + Return the extracted account information and associated transactions + from a bank statement PDF. The results are accessible once the + statement's status is `completed`. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve the extraction results + response: + docs: Successful Response + type: root.BankStatementResults + errors: + - >- + root.GetBankStatementResultV3BankStatementsIdResultsGetRequestNotFoundError + - >- + root.GetBankStatementResultV3BankStatementsIdResultsGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + accounts: + - number: '972913289' + opening_balance: 400 + closing_balance: 200 + start_date: '2024-01-01' + end_date: '2024-02-01' + is_balance_reconciled: true + total_incoming: 0 + total_outgoing: 200 + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 200 + entry_type: outgoing + currency: USD + running_balance: 400 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + bs = + sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") + + results = sdk.bank_statements.wait_for_results( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" + ) + source: + openapi: ../openapi.yml + display-name: Bank statements +docs: > + + The Bank Statements API allows you to manage and extract information from bank + statements. We support extraction of + + account holder information, account information and transaction records. Files + should be uploaded in PDF format. + + + During the extraction process, the bank statements undergo several status + changes: + + | Status | + Description | + + |----------|------------------------------------------------------------------------| + + |processing|The upload was successful. Extraction is in + progress. | + + |completed |The extraction was successful. Results are + available. | + + |error |An error occurred during extraction. Check `error` for more + information.| + + + + A list of error codes for the `error` status can be found below: + + | Code | Description | + + |----------------------|-------------------------------------------| + + |invalid_bank_statement|Failed to process file as a bank statement.| + + |internal_error |Internal error. Please contact support. | + + + + Complete guide: [Bank Statements](../../../bank-statements). +", + }, + "batches.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "getBatchResults": { + "auth": true, + "display-name": "Retrieve the results of a batch", + "docs": "Returns the results of the enrichment request. The resulting enriched transactions are returned in the same order they were submitted. Results are available after the batch has finished processing.", + "errors": [ + "root.GetBatchResultsV3BatchesIdResultsGetRequestNotFoundError", + "root.GetBatchResultsV3BatchesIdResultsGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +results = sdk.batches.wait_for_results("f203613d2-83c8-4130-8809-d14206eeec20") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "id": "id", + "results": { + "transactions": [ + { + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + }, + ], + }, + "status": "processing", + "total": 1, + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches/{id}/results", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Returned batch of transaction enrichment results.", + "type": "root.BatchResult", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBatches": { + "auth": true, + "display-name": "List all batches", + "docs": "Returns a list of submitted batches starting with the most recent one.", + "errors": [ + "root.GetBatchesV3BatchesGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +for batch in sdk.batches.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches", + "request": { + "name": "GetBatchesV3BatchesGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return batches older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return batches newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of batches", + "type": "optional", + }, + "limit": { + "docs": "The limit of batches to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return batches with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseBatch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getSingleBatch": { + "auth": true, + "display-name": "Retrieve a batch", + "docs": undefined, + "errors": [ + "root.GetSingleBatchV3BatchesIdGetRequestNotFoundError", + "root.GetSingleBatchV3BatchesIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +batch = sdk.batches.get("f203613d2-83c8-4130-8809-d14206eeec20") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Batch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postBatch": { + "auth": true, + "display-name": "Submit a batch of transactions", + "docs": "Creates a batch of transactions and enriches it in an asynchronous fashion. A batch, representing the status of the +enrichment progress is returned as a result of the submission. + +In order to be notified on the status of the batch, you can setup [webhooks](../../../webhooks) and receive +the respective notifications. Alternatively, you can +[poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch) for the status of the batch using its id. + +This endpoints supports up to 24960 transactions.", + "errors": [ + "root.PostBatchV3BatchesPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/batches/" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput + +sdk = SDK("cd1H...Wmhl") +batch = sdk.batches.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) +]) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "transactions": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "location": { + "country": "US", + }, + }, + ], + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/batches", + "request": { + "body": { + "properties": { + "transactions": { + "type": "list", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "AsyncEnrichmentInput", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Batch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getBatches: + path: /v3/batches + method: GET + auth: true + docs: Returns a list of submitted batches starting with the most recent one. + source: + openapi: ../openapi.yml + display-name: List all batches + request: + name: GetBatchesV3BatchesGetRequest + query-parameters: + created_after: + type: optional + docs: Only return batches older or equal than this date + created_before: + type: optional + docs: Only return batches newer than this date + cursor: + type: optional + docs: Starting point for the set of batches + limit: + type: optional + docs: The limit of batches to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return batches with this status + response: + docs: Successful Response + type: root.PagedResponseBatch + errors: + - root.GetBatchesV3BatchesGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + for batch in sdk.batches.list().auto_paginate(): + ... + postBatch: + path: /v3/batches + method: POST + auth: true + docs: >- + Creates a batch of transactions and enriches it in an asynchronous + fashion. A batch, representing the status of the + + enrichment progress is returned as a result of the submission. + + + In order to be notified on the status of the batch, you can setup + [webhooks](../../../webhooks) and receive + + the respective notifications. Alternatively, you can + + [poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch) + for the status of the batch using its id. + + + This endpoints supports up to 24960 transactions. + source: + openapi: ../openapi.yml + display-name: Submit a batch of transactions + request: + name: AsyncEnrichmentInput + body: + properties: + transactions: + type: list + content-type: application/json + response: + docs: Successful Response + type: root.Batch + errors: + - root.PostBatchV3BatchesPostRequestUnprocessableEntityError + examples: + - request: + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + location: + country: US + response: + body: + id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/batches/" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK, TransactionInput, LocationInput + + sdk = SDK("cd1H...Wmhl") + batch = sdk.batches.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) + ]) + getSingleBatch: + path: /v3/batches/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a batch + response: + docs: Successful Response + type: root.Batch + errors: + - root.GetSingleBatchV3BatchesIdGetRequestNotFoundError + - root.GetSingleBatchV3BatchesIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + batch = + sdk.batches.get("f203613d2-83c8-4130-8809-d14206eeec20") + getBatchResults: + path: /v3/batches/{id}/results + method: GET + auth: true + docs: >- + Returns the results of the enrichment request. The resulting enriched + transactions are returned in the same order they were submitted. Results + are available after the batch has finished processing. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve the results of a batch + response: + docs: Returned batch of transaction enrichment results. + type: root.BatchResult + errors: + - root.GetBatchResultsV3BatchesIdResultsGetRequestNotFoundError + - >- + root.GetBatchResultsV3BatchesIdResultsGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: id + total: 1 + status: processing + results: + transactions: + - entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + created_at: '2024-03-30T00:00:00Z' + id: xbx8YP14g565Xk + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + results = + sdk.batches.wait_for_results("f203613d2-83c8-4130-8809-d14206eeec20") + source: + openapi: ../openapi.yml +", + }, + "categories.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "customCategoriesPost": { + "auth": true, + "display-name": "Set a custom set of categories", + "docs": "Sets a custom set of categories. Transactions that don't match a category will be categorized `not enough information` regardless of whether it is present in the set.", + "errors": [ + "root.CustomCategoriesPostV3CategoriesAccountHolderTypePostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "incoming": [ + "salary", + "investment income", + "other income" + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment" + ] + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.set("consumer", { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend" + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal" + ] +}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "request": { + "incoming": [ + "salary", + "investment income", + "other income", + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment", + ], + }, + "response": { + "body": { + "incoming": [ + "salary", + "investment income", + "other income", + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment", + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "request": { + "body": { + "type": "root.CustomCategorySet", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Custom categories successfully set.", + "type": "root.CustomCategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "deleteCustomCategorySet": { + "auth": true, + "display-name": "Reset category set to original values", + "docs": "Resets the set of categories of the specified account holder type to the original values.", + "errors": [ + "root.DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer/reset" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.reset("consumer") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "response": { + "body": { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend", + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal", + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}/reset", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "response": { + "docs": "Successful Response", + "type": "root.CategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getCategorySet": { + "auth": true, + "display-name": "Retrieve category set", + "docs": "Retrieves the set of categories. Category sets are different per account holder type.", + "errors": [ + "root.GetCategorySetV3CategoriesAccountHolderTypeGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.get("consumer") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "response": { + "body": { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend", + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal", + ], + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "response": { + "docs": "Category set for the selected type of account holder", + "type": "root.CategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getCategorySet: + path: /v3/categories/{account_holder_type} + method: GET + auth: true + docs: >- + Retrieves the set of categories. Category sets are different per account + holder type. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Retrieve category set + response: + docs: Category set for the selected type of account holder + type: root.CategorySet + errors: + - >- + root.GetCategorySetV3CategoriesAccountHolderTypeGetRequestUnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + response: + body: + incoming: + - transfer from investment app + - transfer from stock broker + - transfer from crypto broker + - chargeback + - freelance income + - rideshare or delivery income + - paycheck + - benefits + - interest earned + - stock dividend + outgoing: + - digital content and streaming + - vending machine + - reversal + - transfer to investment app + - transfer to stock broker + - transfer to crypto broker + - adjustment + - intra account transfer + - inter account transfer + - peer to peer transfer + - funeral service + - ATM withdrawal + - teller withdrawal + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.get("consumer") + customCategoriesPost: + path: /v3/categories/{account_holder_type} + method: POST + auth: true + docs: >- + Sets a custom set of categories. Transactions that don't match a + category will be categorized `not enough information` regardless of + whether it is present in the set. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Set a custom set of categories + request: + body: + type: root.CustomCategorySet + content-type: application/json + response: + docs: Custom categories successfully set. + type: root.CustomCategorySet + errors: + - >- + root.CustomCategoriesPostV3CategoriesAccountHolderTypePostRequestUnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + request: + incoming: + - salary + - investment income + - other income + outgoing: + - rent + - utilities + - groceries + - entertainment + response: + body: + incoming: + - salary + - investment income + - other income + outgoing: + - rent + - utilities + - groceries + - entertainment + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "incoming": [ + "salary", + "investment income", + "other income" + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment" + ] + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.set("consumer", { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend" + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal" + ] + }) + deleteCustomCategorySet: + path: /v3/categories/{account_holder_type}/reset + method: POST + auth: true + docs: >- + Resets the set of categories of the specified account holder type to the + original values. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Reset category set to original values + response: + docs: Successful Response + type: root.CategorySet + errors: + - >- + root.DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequestUnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + response: + body: + incoming: + - transfer from investment app + - transfer from stock broker + - transfer from crypto broker + - chargeback + - freelance income + - rideshare or delivery income + - paycheck + - benefits + - interest earned + - stock dividend + outgoing: + - digital content and streaming + - vending machine + - reversal + - transfer to investment app + - transfer to stock broker + - transfer to crypto broker + - adjustment + - intra account transfer + - inter account transfer + - peer to peer transfer + - funeral service + - ATM withdrawal + - teller withdrawal + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer/reset" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.reset("consumer") + source: + openapi: ../openapi.yml +", + }, + "entities.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "getEntityById": { + "auth": true, + "display-name": "Retrieve an entity", + "docs": "Retrieve more information about an entity by using its unique ID.", + "errors": [ + "root.GetEntityByIdV3EntitiesIdGetRequestBadRequestError", + "root.GetEntityByIdV3EntitiesIdGetRequestNotFoundError", + "root.GetEntityByIdV3EntitiesIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.entities.lookup("d4bc3c80-ec1a-3da2-836e-2a4ca4758be5") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "website": "starbucks.com", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/entities/{id}", + "path-parameters": { + "id": { + "docs": "The unique ID of the entity", + "type": "string", + }, + }, + "response": { + "docs": "Entity", + "type": "root.Entity", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "searchEntity": { + "auth": true, + "display-name": "Searches for an entity", + "docs": "Resolves a query into an entity by querying our entity resolution system. + The parameters `name` and `website` are mutually exclusive. Calls to this endpoint using + the `name` parameter are billed the same way transactions are.", + "errors": [ + "root.SearchEntityV3EntitiesLookupGetRequestBadRequestError", + "root.SearchEntityV3EntitiesLookupGetRequestUnprocessableEntityError", + "root.SearchEntityV3EntitiesLookupGetRequestLockedError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/entities?name=Starbucks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.entities.lookup(name="Starbucks") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "website": "starbucks.com", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/entities/lookup", + "request": { + "name": "SearchEntityV3EntitiesLookupGetRequest", + "query-parameters": { + "location": { + "docs": "An unstructured location string of the entity to resolve", + "type": "optional", + }, + "name": { + "docs": "The name of the entity to resolve", + "type": "optional", + }, + "website": { + "docs": "The website of the entity to resolve", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Entity", + "type": "root.Entity", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + searchEntity: + path: /v3/entities/lookup + method: GET + auth: true + docs: >- + Resolves a query into an entity by querying our entity resolution + system. + The parameters `name` and `website` are mutually exclusive. Calls to this endpoint using + the `name` parameter are billed the same way transactions are. + source: + openapi: ../openapi.yml + display-name: Searches for an entity + request: + name: SearchEntityV3EntitiesLookupGetRequest + query-parameters: + name: + type: optional + docs: The name of the entity to resolve + website: + type: optional + docs: The website of the entity to resolve + location: + type: optional + docs: An unstructured location string of the entity to resolve + response: + docs: Entity + type: root.Entity + errors: + - root.SearchEntityV3EntitiesLookupGetRequestBadRequestError + - root.SearchEntityV3EntitiesLookupGetRequestUnprocessableEntityError + - root.SearchEntityV3EntitiesLookupGetRequestLockedError + examples: + - response: + body: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/entities?name=Starbucks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.entities.lookup(name="Starbucks") + getEntityById: + path: /v3/entities/{id} + method: GET + auth: true + docs: Retrieve more information about an entity by using its unique ID. + source: + openapi: ../openapi.yml + path-parameters: + id: + type: string + docs: The unique ID of the entity + display-name: Retrieve an entity + response: + docs: Entity + type: root.Entity + errors: + - root.GetEntityByIdV3EntitiesIdGetRequestBadRequestError + - root.GetEntityByIdV3EntitiesIdGetRequestNotFoundError + - root.GetEntityByIdV3EntitiesIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.entities.lookup("d4bc3c80-ec1a-3da2-836e-2a4ca4758be5") + source: + openapi: ../openapi.yml +", + }, + "personalization.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Personalization API allows you to customize the output of enrichment by +uploading a set of rules. For more information, see our documentation on +[Personalization](None). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Personalization", + "endpoints": { + "filterAppend": { + "auth": true, + "display-name": "Append a rule.", + "docs": "Append a rule to the personalization ruleset.", + "errors": [ + "root.FilterAppendV3RulesAppendPostRequestBadRequestError", + "root.FilterAppendV3RulesAppendPostRequestContentTooLargeError", + "root.FilterAppendV3RulesAppendPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/rules/append" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.append({"set": "logo", "to": "http://example.com/favicon.ico"}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "if": true, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/rules/append", + "request": { + "body": { + "type": "root.action", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterDelete": { + "auth": true, + "display-name": "Delete a rule.", + "docs": "Delete the rule at the specified index from the personalization ruleset.", + "errors": [ + "root.FilterDeleteV3RulesIndexDeleteRequestBadRequestError", + "root.FilterDeleteV3RulesIndexDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.delete(0) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "index": 1, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/rules/{index}", + "path-parameters": { + "index": "integer", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterGet": { + "auth": true, + "display-name": "Get the current personalization ruleset.", + "docs": "Get the current personalization ruleset.", + "errors": [ + "root.FilterGetV3RulesGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +rules = sdk.rules.get() +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": [ + { + "if": { + "is_substring": [], + }, + }, + ], + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/rules", + "response": { + "docs": "Successful Response", + "type": "root.Filter", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterPatch": { + "auth": true, + "display-name": "Modify an existing rule.", + "docs": "Modify an existing rule at the specified index on the ruleset.", + "errors": [ + "root.FilterPatchV3RulesIndexPatchRequestBadRequestError", + "root.FilterPatchV3RulesIndexPatchRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "PATCH" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.patch(0, {"set": "logo", "to": "http://example.com/favicon.ico"}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "index": 1, + }, + "request": { + "if": true, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "PATCH", + "pagination": undefined, + "path": "/v3/rules/{index}", + "path-parameters": { + "index": "integer", + }, + "request": { + "body": { + "type": "root.action", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterPost": { + "auth": true, + "display-name": "Set the personalization ruleset.", + "docs": "Set the personalization ruleset.", + "errors": [ + "root.FilterPostV3RulesPostRequestBadRequestError", + "root.FilterPostV3RulesPostRequestContentTooLargeError", + "root.FilterPostV3RulesPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.set([{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] +}]) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": [ + { + "if": { + "is_substring": [], + }, + }, + ], + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/rules", + "request": { + "body": { + "type": "root.Filter", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + filterGet: + path: /v3/rules + method: GET + auth: true + docs: Get the current personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Get the current personalization ruleset. + response: + docs: Successful Response + type: root.Filter + errors: + - root.FilterGetV3RulesGetRequestUnprocessableEntityError + examples: + - response: + body: + - if: + is_substring: [] + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + rules = sdk.rules.get() + filterPost: + path: /v3/rules + method: POST + auth: true + docs: Set the personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Set the personalization ruleset. + request: + body: + type: root.Filter + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.FilterPostV3RulesPostRequestBadRequestError + - root.FilterPostV3RulesPostRequestContentTooLargeError + - root.FilterPostV3RulesPostRequestUnprocessableEntityError + examples: + - request: + - if: + is_substring: [] + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "POST" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]' + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.rules.set([{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]) + filterAppend: + path: /v3/rules/append + method: POST + auth: true + docs: Append a rule to the personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Append a rule. + request: + body: + type: root.action + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.FilterAppendV3RulesAppendPostRequestBadRequestError + - root.FilterAppendV3RulesAppendPostRequestContentTooLargeError + - root.FilterAppendV3RulesAppendPostRequestUnprocessableEntityError + examples: + - request: + if: true + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "POST" \ + "https://api.ntropy.com/v3/rules/append" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.append({"set": "logo", "to": + "http://example.com/favicon.ico"}) + filterDelete: + path: /v3/rules/{index} + method: DELETE + auth: true + docs: Delete the rule at the specified index from the personalization ruleset. + source: + openapi: ../openapi.yml + path-parameters: + index: integer + display-name: Delete a rule. + response: + docs: Successful Response + type: unknown + errors: + - root.FilterDeleteV3RulesIndexDeleteRequestBadRequestError + - root.FilterDeleteV3RulesIndexDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + index: 1 + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.rules.delete(0) + filterPatch: + path: /v3/rules/{index} + method: PATCH + auth: true + docs: Modify an existing rule at the specified index on the ruleset. + source: + openapi: ../openapi.yml + path-parameters: + index: integer + display-name: Modify an existing rule. + request: + body: + type: root.action + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.FilterPatchV3RulesIndexPatchRequestBadRequestError + - root.FilterPatchV3RulesIndexPatchRequestUnprocessableEntityError + examples: + - path-parameters: + index: 1 + request: + if: true + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "PATCH" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.patch(0, {"set": "logo", "to": + "http://example.com/favicon.ico"}) + source: + openapi: ../openapi.yml + display-name: Personalization +docs: | + + The Personalization API allows you to customize the output of enrichment by + uploading a set of rules. For more information, see our documentation on + [Personalization](None). +", + }, + "recurrence.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Recurrence API allows you to identify and categorize recurring patterns found in the transactions of an +[account holder](#tag/Account-Holders), such as periodic payments or subscriptions and group them +into recurrence groups. Each recurrence group contains detailed information about the pattern, +such as periodicity, amount and counterparty. + +Transactions can be added to an account holder via the [Enrichment API](#tag/Enrichment). +It is crucial that transactions are submitted with the [correct](../../../account-holders) +account holder information as the recurrence calculation relies heavily on it. + +Complete guide: [Recurrence](../../../enrichment/recurrence). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Recurrence", + "endpoints": { + "getAccountHolderRecurringPayments": { + "auth": true, + "display-name": "Find recurring groups in a transaction history", + "docs": "Identifies and categorizes recurring patterns found in the transaction history of the account holder, such as periodic payments or subscriptions. These patterns are called recurrence groups.", + "errors": [ + "root.GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestNotFoundError", + "root.GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +recurring_groups = sdk.account_holders.recurring_groups( + "35b927b6-6fda-40aa-93b8-95b47c2b2cad" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": [ + { + "average_amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "end_date": "2024-03-30", + "id": "8efbac45-9bd5-4b67-be29-334106198c40", + "periodicity": "daily", + "periodicity_in_days": 1, + "start_date": "2024-03-01", + "total_amount": 300, + "transaction_ids": [ + "2dc6SE8A7cTQ2jUdUadCg", + "tQYAhhl0XNkl1wasacpVQ", + "NNJTqvockIdKnYxBqPlJw", + ], + }, + ], + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/account_holders/{id}/recurring_groups", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getAccountHolderRecurringPayments: + path: /v3/account_holders/{id}/recurring_groups + method: POST + auth: true + docs: >- + Identifies and categorizes recurring patterns found in the transaction + history of the account holder, such as periodic payments or + subscriptions. These patterns are called recurrence groups. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Find recurring groups in a transaction history + response: + docs: Successful Response + type: list + errors: + - >- + root.GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestNotFoundError + - >- + root.GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + - id: 8efbac45-9bd5-4b67-be29-334106198c40 + start_date: '2024-03-01' + end_date: '2024-03-30' + total_amount: 300 + average_amount: 10 + periodicity_in_days: 1 + periodicity: daily + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + categories: + general: outgoing - coffee shops + accounting: operational expenses + transaction_ids: + - 2dc6SE8A7cTQ2jUdUadCg + - tQYAhhl0XNkl1wasacpVQ + - NNJTqvockIdKnYxBqPlJw + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + recurring_groups = sdk.account_holders.recurring_groups( + "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + ) + source: + openapi: ../openapi.yml + display-name: Recurrence +docs: > + + The Recurrence API allows you to identify and categorize recurring patterns + found in the transactions of an + + [account holder](#tag/Account-Holders), such as periodic payments or + subscriptions and group them + + into recurrence groups. Each recurrence group contains detailed information + about the pattern, + + such as periodicity, amount and counterparty. + + + Transactions can be added to an account holder via the [Enrichment + API](#tag/Enrichment). + + It is crucial that transactions are submitted with the + [correct](../../../account-holders) + + account holder information as the recurrence calculation relies heavily on it. + + + Complete guide: [Recurrence](../../../enrichment/recurrence). +", + }, + "reports.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Reports API allows you to flag transactions with incorrect fields. You can also track the progress of each +report either through the API or using [webhooks](#tag/Webhooks). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Reports", + "endpoints": { + "deleteReport": { + "auth": true, + "display-name": "Delete a report", + "docs": "Delete a report", + "errors": [ + "root.DeleteReportV3ReportsIdDeleteRequestNotFoundError", + "root.DeleteReportV3ReportsIdDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/reports/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getReport": { + "auth": true, + "display-name": "Retrieve a report", + "docs": "Retrieve a report", + "errors": [ + "root.GetReportV3ReportsIdGetRequestNotFoundError", + "root.GetReportV3ReportsIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +report = sdk.reports.get("a652285d-de1b-4a6f-b6ce-45efa9be7952") + ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/reports/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Report", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getReports": { + "auth": true, + "display-name": "List all reports", + "docs": "List all reports", + "errors": [ + "root.GetReportsV3ReportsGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +reports = sdk.reports.list() + ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + ], + "next_cursor": "next_cursor", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/reports", + "request": { + "name": "GetReportsV3ReportsGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return report older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return report newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of report", + "type": "optional", + }, + "limit": { + "docs": "The limit of report to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return reports with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseReport", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postReport": { + "auth": true, + "display-name": "Create a report", + "docs": "Report a transaction with incorrect fields.", + "errors": [ + "root.PostReportV3ReportsPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "transaction_id": "xbx8YP14g565Xk", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty" + ] + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +report = sdk.reports.create( + transaction_id="xbx8YP14g565Xk", + description="lorem ipsum", + fields=['.entities.counterparty'], +) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "transaction_id": "xbx8YP14g565Xk", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/reports", + "request": { + "body": { + "properties": { + "description": { + "docs": "A description of what is wrong in the transaction", + "type": "string", + }, + "fields": { + "docs": "A list of the fields that are incorrect", + "type": "list", + }, + "transaction_id": { + "docs": "The unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "ReportBase", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "The newly created report", + "type": "root.Report", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getReports: + path: /v3/reports + method: GET + auth: true + docs: List all reports + source: + openapi: ../openapi.yml + display-name: List all reports + request: + name: GetReportsV3ReportsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return report older or equal than this date + created_before: + type: optional + docs: Only return report newer than this date + cursor: + type: optional + docs: Starting point for the set of report + limit: + type: optional + docs: The limit of report to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return reports with this status + response: + docs: Successful Response + type: root.PagedResponseReport + errors: + - root.GetReportsV3ReportsGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: next_cursor + data: + - transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + reports = sdk.reports.list() + + postReport: + path: /v3/reports + method: POST + auth: true + docs: Report a transaction with incorrect fields. + source: + openapi: ../openapi.yml + display-name: Create a report + request: + name: ReportBase + body: + properties: + transaction_id: + type: string + docs: The unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: A description of what is wrong in the transaction + fields: + docs: A list of the fields that are incorrect + type: list + content-type: application/json + response: + docs: The newly created report + type: root.Report + errors: + - root.PostReportV3ReportsPostRequestUnprocessableEntityError + examples: + - request: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + response: + body: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "transaction_id": "xbx8YP14g565Xk", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty" + ] + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + report = sdk.reports.create( + transaction_id="xbx8YP14g565Xk", + description="lorem ipsum", + fields=['.entities.counterparty'], + ) + getReport: + path: /v3/reports/{id} + method: GET + auth: true + docs: Retrieve a report + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a report + response: + docs: Successful Response + type: root.Report + errors: + - root.GetReportV3ReportsIdGetRequestNotFoundError + - root.GetReportV3ReportsIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + report = sdk.reports.get("a652285d-de1b-4a6f-b6ce-45efa9be7952") + + deleteReport: + path: /v3/reports/{id} + method: DELETE + auth: true + docs: Delete a report + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Delete a report + errors: + - root.DeleteReportV3ReportsIdDeleteRequestNotFoundError + - root.DeleteReportV3ReportsIdDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + source: + openapi: ../openapi.yml + display-name: Reports +docs: > + + The Reports API allows you to flag transactions with incorrect fields. You can + also track the progress of each + + report either through the API or using [webhooks](#tag/Webhooks). +", + }, + "transactions.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Transaction API allows you to manage, retrieve and search through enriched transactions. A transaction contains +both the enrichment fields and the original input fields. They are made available after being +[enriched](#tag/Enrichment). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Transactions", + "endpoints": { + "deleteTransaction": { + "auth": true, + "display-name": "Deletes a transaction", + "docs": "Deleting a transaction will also delete it from our systems. This operation is permanent.", + "errors": [ + "root.DeleteTransactionV3TransactionsIdDeleteRequestNotFoundError", + "root.DeleteTransactionV3TransactionsIdDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +tx = sdk.transactions.delete("xbx8YP14g565Xk") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/transactions/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getTransaction": { + "auth": true, + "display-name": "Retrieve a transaction", + "docs": undefined, + "errors": [ + "root.GetTransactionV3TransactionsIdGetRequestNotFoundError", + "root.GetTransactionV3TransactionsIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +tx = sdk.transactions.get("xbx8YP14g565Xk") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "store_number": "store_number", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/transactions/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Transaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "listTransactions": { + "auth": true, + "display-name": "List all transactions", + "docs": "Return a list of enriched transactions starting with the most recent one.", + "errors": [ + "root.ListTransactionsV3TransactionsGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for tx in sdk.transactions.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/transactions", + "request": { + "name": "ListTransactionsV3TransactionsGetRequest", + "query-parameters": { + "account_holder_id": { + "docs": "If specified, only return the transactions of this account holder", + "type": "optional", + }, + "created_after": { + "docs": "Only return transactions older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return transactions newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of transactions", + "type": "optional", + }, + "limit": { + "docs": "The limit of transactions to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 500, + "min": 1, + "multipleOf": undefined, + }, + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseTransaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postTransactions": { + "auth": true, + "display-name": "Synchronously enrich transactions", + "docs": "Enriches a list of transactions in synchronous fashion. The enriched transactions returned in +the order that they were submitted. Webhook events are not triggered for this operation. + +This endpoint supports up to 1000 transactions. + +If you want more throughput and live updates refer to the +[async enrichment endpoint](../batches/post-batch).", + "errors": [ + "root.PostTransactionsV3TransactionsPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput + +sdk = SDK("cd1H...Wmhl") +enriched = sdk.transactions.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) +]) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "transactions": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "location": { + "country": "US", + }, + }, + ], + }, + "response": { + "body": { + "transactions": [ + { + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + }, + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/transactions", + "request": { + "body": { + "properties": { + "transactions": { + "type": "list", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "SyncEnrichmentInput", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Enriched transactions.", + "type": "root.SyncEnrichmentOutput", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "setTransactionAh": { + "auth": true, + "display-name": "Assign a transaction to an account holder", + "docs": "Changes the account holder associated with the transaction. The old and new account holder must share the same categories", + "errors": [ + "root.SetTransactionAhV3TransactionsIdAssignPostRequestNotFoundError", + "root.SetTransactionAhV3TransactionsIdAssignPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.transactions.assign( + transaction_id="xbx8YP14g565Xk", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "request": { + "account_holder_id": "account_holder_id", + }, + "response": { + "body": { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "store_number": "store_number", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/transactions/{id}/assign", + "path-parameters": { + "id": "string", + }, + "request": { + "body": { + "properties": { + "account_holder_id": "string", + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "BodySetTransactionAhV3TransactionsIdAssignPost", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Transaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getTransaction: + path: /v3/transactions/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a transaction + response: + docs: Successful Response + type: root.Transaction + errors: + - root.GetTransactionV3TransactionsIdGetRequestNotFoundError + - root.GetTransactionV3TransactionsIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + accounting: operational expenses + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + store_number: store_number + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + tx = sdk.transactions.get("xbx8YP14g565Xk") + deleteTransaction: + path: /v3/transactions/{id} + method: DELETE + auth: true + docs: >- + Deleting a transaction will also delete it from our systems. This + operation is permanent. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes a transaction + errors: + - root.DeleteTransactionV3TransactionsIdDeleteRequestNotFoundError + - >- + root.DeleteTransactionV3TransactionsIdDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + tx = sdk.transactions.delete("xbx8YP14g565Xk") + listTransactions: + path: /v3/transactions + method: GET + auth: true + docs: >- + Return a list of enriched transactions starting with the most recent + one. + source: + openapi: ../openapi.yml + display-name: List all transactions + request: + name: ListTransactionsV3TransactionsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return transactions older or equal than this date + created_before: + type: optional + docs: Only return transactions newer than this date + cursor: + type: optional + docs: Starting point for the set of transactions + limit: + type: optional + docs: The limit of transactions to be returned + validation: + min: 1 + max: 500 + account_holder_id: + type: optional + docs: If specified, only return the transactions of this account holder + response: + docs: Successful Response + type: root.PagedResponseTransaction + errors: + - root.ListTransactionsV3TransactionsGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for tx in sdk.transactions.list().auto_paginate(): + ... + postTransactions: + path: /v3/transactions + method: POST + auth: true + docs: >- + Enriches a list of transactions in synchronous fashion. The enriched + transactions returned in + + the order that they were submitted. Webhook events are not triggered for + this operation. + + + This endpoint supports up to 1000 transactions. + + + If you want more throughput and live updates refer to the + + [async enrichment endpoint](../batches/post-batch). + source: + openapi: ../openapi.yml + display-name: Synchronously enrich transactions + request: + name: SyncEnrichmentInput + body: + properties: + transactions: + type: list + content-type: application/json + response: + docs: Enriched transactions. + type: root.SyncEnrichmentOutput + errors: + - root.PostTransactionsV3TransactionsPostRequestUnprocessableEntityError + examples: + - request: + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + location: + country: US + response: + body: + transactions: + - entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + id: xbx8YP14g565Xk + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK, TransactionInput, LocationInput + + sdk = SDK("cd1H...Wmhl") + enriched = sdk.transactions.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) + ]) + setTransactionAh: + path: /v3/transactions/{id}/assign + method: POST + auth: true + docs: >- + Changes the account holder associated with the transaction. The old and + new account holder must share the same categories + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Assign a transaction to an account holder + request: + name: BodySetTransactionAhV3TransactionsIdAssignPost + body: + properties: + account_holder_id: string + content-type: application/json + response: + docs: Successful Response + type: root.Transaction + errors: + - root.SetTransactionAhV3TransactionsIdAssignPostRequestNotFoundError + - >- + root.SetTransactionAhV3TransactionsIdAssignPostRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + request: + account_holder_id: account_holder_id + response: + body: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + accounting: operational expenses + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + store_number: store_number + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.transactions.assign( + transaction_id="xbx8YP14g565Xk", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad" + ) + source: + openapi: ../openapi.yml + display-name: Transactions +docs: > + + The Transaction API allows you to manage, retrieve and search through enriched + transactions. A transaction contains + + both the enrichment fields and the original input fields. They are made + available after being + + [enriched](#tag/Enrichment). +", + }, + "webhooks.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Webhooks API allows you to receive notifications when certain events occur, +such as when a batch or bank statement finishes processing. + +When an event occurs, Ntropy will make a POST request to the `url` of the +webhook. If you specified a `token` when creating the webhook, this string will +be included in the `X-Ntropy-Token` header. The webhook call has a timeout limit of 10 +seconds, so any processing of the event +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Webhooks", + "endpoints": { + "deleteWebhook": { + "auth": true, + "display-name": "Delete a webhook", + "docs": "Delete a webhook", + "errors": [ + "root.DeleteWebhookV3WebhooksIdDeleteRequestNotFoundError", + "root.DeleteWebhookV3WebhooksIdDeleteRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.webhooks.delete("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getWebhook": { + "auth": true, + "display-name": "Retrieve a webhook", + "docs": "Retrieve a webhook", + "errors": [ + "root.GetWebhookV3WebhooksIdGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +webhook = sdk.webhooks.get("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getWebhooks": { + "auth": true, + "display-name": "List all webhooks", + "docs": "List all webhooks", + "errors": [ + "root.GetWebhooksV3WebhooksGetRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for webhook in sdk.webhooks.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/webhooks", + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseWebhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "patchWebhook": { + "auth": true, + "display-name": "Update a webhook", + "docs": "Update a webhook. Fields that aren't specified in the body will remain unchanged", + "errors": [ + "root.PatchWebhookV3WebhooksIdPatchRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "events": [ + "batches.completed", + "batches.error" + ], + "enabled": false + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +wh = sdk.webhooks.patch( + "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + events=['batches.completed', 'batches.error'], + enabled=False, +) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "request": {}, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "PATCH", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "request": { + "body": { + "properties": { + "enabled": { + "docs": "Whether the webhook is enabled or not.", + "type": "optional", + }, + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "optional>", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "optional", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "WebhookPatch", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postWebhook": { + "auth": true, + "display-name": "Create a webhook", + "docs": "Create a webhook to be called when certain events occur.", + "errors": [ + "root.PostWebhookV3WebhooksPostRequestUnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "url": "https://example.com:5689", + "events": [ + "batches.completed", + "batches.error" + ], + "token": "hunter2" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.webhooks.create( + url="https://example.com:5689", + events="['batches.completed', 'batches.error']", + token="hunter2", +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "events": [ + "reports.resolved", + ], + "url": "url", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/webhooks", + "request": { + "body": { + "properties": { + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "list", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "string", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "WebhookBase", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "types": { + "WebhookBaseEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "WebhookPatchEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getWebhooks: + path: /v3/webhooks + method: GET + auth: true + docs: List all webhooks + source: + openapi: ../openapi.yml + display-name: List all webhooks + response: + docs: Successful Response + type: root.PagedResponseWebhook + errors: + - root.GetWebhooksV3WebhooksGetRequestUnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for webhook in sdk.webhooks.list().auto_paginate(): + ... + postWebhook: + path: /v3/webhooks + method: POST + auth: true + docs: Create a webhook to be called when certain events occur. + source: + openapi: ../openapi.yml + display-name: Create a webhook + request: + name: WebhookBase + body: + properties: + url: + type: string + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + docs: A list of events that this webhook subscribes to + type: list + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending + requests to the webhook + validation: + maxLength: 128 + content-type: application/json + response: + docs: Successful Response + type: root.Webhook + errors: + - root.PostWebhookV3WebhooksPostRequestUnprocessableEntityError + examples: + - request: + url: url + events: + - reports.resolved + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "url": "https://example.com:5689", + "events": [ + "batches.completed", + "batches.error" + ], + "token": "hunter2" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.webhooks.create( + url="https://example.com:5689", + events="['batches.completed', 'batches.error']", + token="hunter2", + ) + getWebhook: + path: /v3/webhooks/{id} + method: GET + auth: true + docs: Retrieve a webhook + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a webhook + response: + docs: Successful Response + type: root.Webhook + errors: + - root.GetWebhookV3WebhooksIdGetRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + webhook = + sdk.webhooks.get("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") + deleteWebhook: + path: /v3/webhooks/{id} + method: DELETE + auth: true + docs: Delete a webhook + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Delete a webhook + errors: + - root.DeleteWebhookV3WebhooksIdDeleteRequestNotFoundError + - root.DeleteWebhookV3WebhooksIdDeleteRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.webhooks.delete("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") + patchWebhook: + path: /v3/webhooks/{id} + method: PATCH + auth: true + docs: >- + Update a webhook. Fields that aren't specified in the body will remain + unchanged + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Update a webhook + request: + name: WebhookPatch + body: + properties: + url: + type: optional + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + type: optional> + docs: A list of events that this webhook subscribes to + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending + requests to the webhook + validation: + maxLength: 128 + enabled: + type: optional + docs: Whether the webhook is enabled or not. + content-type: application/json + response: + docs: Successful Response + type: root.Webhook + errors: + - root.PatchWebhookV3WebhooksIdPatchRequestUnprocessableEntityError + examples: + - path-parameters: + id: id + request: {} + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "events": [ + "batches.completed", + "batches.error" + ], + "enabled": false + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + wh = sdk.webhooks.patch( + "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + events=['batches.completed', 'batches.error'], + enabled=False, + ) + source: + openapi: ../openapi.yml + display-name: Webhooks +docs: > + + The Webhooks API allows you to receive notifications when certain events + occur, + + such as when a batch or bank statement finishes processing. + + + When an event occurs, Ntropy will make a POST request to the `url` of the + + webhook. If you specified a `token` when creating the webhook, this string + will + + be included in the `X-Ntropy-Token` header. The webhook call has a timeout + limit of 10 + + seconds, so any processing of the event +types: + WebhookBaseEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml + WebhookPatchEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml +", + }, + }, + "packageMarkers": {}, + "rootApiFile": { + "contents": { + "auth": "APIKeyHeader", + "auth-schemes": { + "APIKeyHeader": { + "header": "X-Api-Key", + "name": "apiKey", + "type": "string", + }, + }, + "default-environment": "Default", + "display-name": "Ntropy Transaction API", + "environments": { + "Default": "https://api.ntropy.com", + }, + "error-discrimination": { + "strategy": "status-code", + }, + "name": "api", + }, + "defaultUrl": undefined, + "rawContents": "name: api +error-discrimination: + strategy: status-code +display-name: Ntropy Transaction API +environments: + Default: https://api.ntropy.com +default-environment: Default +auth-schemes: + APIKeyHeader: + header: X-Api-Key + name: apiKey + type: string +auth: APIKeyHeader +", + }, +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json new file mode 100644 index 00000000000..0babf21c358 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi-ir/ntropy.json @@ -0,0 +1,17567 @@ +{ + "title": "Ntropy Transaction API", + "servers": [ + { + "url": "https://api.ntropy.com", + "description": "Production server (uses live data)." + } + ], + "tags": { + "tagsById": { + "Enrichment": { + "id": "Enrichment", + "description": "\nThe Enrichment API allows you to submit multiple transactions for enrichment in a single request. It supports both \nsynchronous and asynchronous submission of transactions.\n\nTransactions enriched by these endpoints are accessible via the [Transactions API](#tag/Transactions) \nand only accessible by the API key that has submitted them. Each transaction is identified by an id, if you submit two\ntransactions the same id, the most recent will replace the previous one. Transactions also accept an account holder.\nNot supplying one will disable both categorization and recurrence.\n\nFor more information on account holder attributes, please refer to \n[this](../../../account-holders/#optional-account-holder-fields) guide.\n\nComplete guide: [Transaction Enrichment](../../../enrichment/introduction).\n" + }, + "Transactions": { + "id": "Transactions", + "description": "\nThe Transaction API allows you to manage, retrieve and search through enriched transactions. A transaction contains\nboth the enrichment fields and the original input fields. They are made available after being \n[enriched](#tag/Enrichment).\n" + }, + "Account Holders": { + "id": "Account Holders", + "description": "\nThe Account Holder API allows you to retrieve, create and modify account holders. An account holder represents an\nentity that holds an account associated with transactions. An account holder can either be a business or an individual\nperson - consumer.\n\nThe fields chosen for an account holder are used by our enrichment process and can dramatically improve the accuracy\nof the results. \n\nComplete guide: [Account Holders](../../../account-holders).\n" + }, + "Recurrence": { + "id": "Recurrence", + "description": "\nThe Recurrence API allows you to identify and categorize recurring patterns found in the transactions of an \n[account holder](#tag/Account-Holders), such as periodic payments or subscriptions and group them \ninto recurrence groups. Each recurrence group contains detailed information about the pattern, \nsuch as periodicity, amount and counterparty.\n\nTransactions can be added to an account holder via the [Enrichment API](#tag/Enrichment). \nIt is crucial that transactions are submitted with the [correct](../../../account-holders) \naccount holder information as the recurrence calculation relies heavily on it.\n\nComplete guide: [Recurrence](../../../enrichment/recurrence).\n" + }, + "Bank statements": { + "id": "Bank statements", + "description": "\nThe Bank Statements API allows you to manage and extract information from bank statements. We support extraction of\naccount holder information, account information and transaction records. Files should be uploaded in PDF format.\n\nDuring the extraction process, the bank statements undergo several status changes:\n| Status | Description |\n|----------|------------------------------------------------------------------------|\n|processing|The upload was successful. Extraction is in progress. |\n|completed |The extraction was successful. Results are available. |\n|error |An error occurred during extraction. Check `error` for more information.|\n\n\nA list of error codes for the `error` status can be found below:\n| Code | Description |\n|----------------------|-------------------------------------------|\n|invalid_bank_statement|Failed to process file as a bank statement.|\n|internal_error |Internal error. Please contact support. |\n\n\nComplete guide: [Bank Statements](../../../bank-statements).\n" + }, + "Webhooks": { + "id": "Webhooks", + "description": "\nThe Webhooks API allows you to receive notifications when certain events occur,\nsuch as when a batch or bank statement finishes processing. \n\nWhen an event occurs, Ntropy will make a POST request to the `url` of the\nwebhook. If you specified a `token` when creating the webhook, this string will\nbe included in the `X-Ntropy-Token` header. The webhook call has a timeout limit of 10 \nseconds, so any processing of the event \n" + }, + "Personalization": { + "id": "Personalization", + "description": "\nThe Personalization API allows you to customize the output of enrichment by\nuploading a set of rules. For more information, see our documentation on\n[Personalization](None).\n" + }, + "Reports": { + "id": "Reports", + "description": "\nThe Reports API allows you to flag transactions with incorrect fields. You can also track the progress of each\nreport either through the API or using [webhooks](#tag/Webhooks).\n" + } + }, + "orderedTagIds": [ + "Enrichment", + "Transactions", + "Account Holders", + "Recurrence", + "Bank statements", + "Webhooks", + "Personalization", + "Reports" + ] + }, + "hasEndpointsMarkedInternal": false, + "endpoints": [ + { + "summary": "Retrieve a transaction", + "audiences": [], + "operationId": "get_transaction_v3_transactions__id__get", + "tags": [ + "Transactions" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetTransactionV3TransactionsIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetTransactionV3TransactionsIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetTransactionV3TransactionsIdGetResponse", + "schema": "Transaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Transaction with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "GET", + "path": "/v3/transactions/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "entities": { + "properties": { + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "intermediaries": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Square", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "payment_processor", + "type": "enum" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + }, + "accounting": { + "value": "operational expenses", + "type": "enum" + } + }, + "type": "object" + }, + "location": { + "properties": { + "raw_address": { + "value": { + "value": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "type": "string" + }, + "type": "primitive" + }, + "structured": { + "properties": { + "street": { + "value": { + "value": "Nw 43rd Street 5480", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Gainesville", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Florida", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "32653", + "type": "string" + }, + "type": "primitive" + }, + "country_code": { + "value": { + "value": "US", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + }, + "latitude": { + "value": { + "value": 29.704558, + "type": "double" + }, + "type": "primitive" + }, + "longitude": { + "value": { + "value": -82.389277, + "type": "double" + }, + "type": "primitive" + }, + "google_maps_url": { + "value": { + "value": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "apple_maps_url": { + "value": { + "value": "https://maps.apple.com/?q=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "store_number": { + "value": { + "value": "store_number", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "account_holder_not_found", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "account_holder_id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "recurrence": { + "properties": { + "type": { + "value": "recurring", + "type": "enum" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\ntx = sdk.transactions.get(\"xbx8YP14g565Xk\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Deletes a transaction", + "audiences": [], + "operationId": "delete_transaction_v3_transactions__id__delete", + "tags": [ + "Transactions" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "DeleteTransactionV3TransactionsIdDeleteRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteTransactionV3TransactionsIdDeleteRequest", + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Transaction with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Deleting a transaction will also delete it from our systems. This operation is permanent.", + "authed": true, + "method": "DELETE", + "path": "/v3/transactions/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\ntx = sdk.transactions.delete(\"xbx8YP14g565Xk\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all transactions", + "audiences": [], + "operationId": "list_transactions_v3_transactions_get", + "tags": [ + "Transactions" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "Only return transactions older or equal than this date", + "name": "created_after", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetRequestCreatedAfter", + "title": "Created After", + "description": "Only return transactions older or equal than this date", + "value": { + "description": "Only return transactions older or equal than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "ListTransactionsV3TransactionsGetRequestCreatedAfter", + "title": "Created After", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Only return transactions newer than this date", + "name": "created_before", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetRequestCreatedBefore", + "title": "Created Before", + "description": "Only return transactions newer than this date", + "value": { + "description": "Only return transactions newer than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "ListTransactionsV3TransactionsGetRequestCreatedBefore", + "title": "Created Before", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Starting point for the set of transactions", + "name": "cursor", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "description": "Starting point for the set of transactions", + "value": { + "description": "Starting point for the set of transactions", + "schema": { + "type": "string" + }, + "generatedName": "ListTransactionsV3TransactionsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The limit of transactions to be returned", + "name": "limit", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "description": "The limit of transactions to be returned", + "value": { + "description": "The limit of transactions to be returned", + "schema": { + "default": 25, + "minimum": 1, + "maximum": 500, + "type": "int" + }, + "generatedName": "ListTransactionsV3TransactionsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "If specified, only return the transactions of this account holder", + "name": "account_holder_id", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetRequestAccountHolderId", + "title": "Account Holder Id", + "description": "If specified, only return the transactions of this account holder", + "value": { + "description": "If specified, only return the transactions of this account holder", + "schema": { + "type": "string" + }, + "generatedName": "ListTransactionsV3TransactionsGetRequestAccountHolderId", + "title": "Account Holder Id", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "ListTransactionsV3TransactionsGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "ListTransactionsV3TransactionsGetResponse", + "schema": "PagedResponse_Transaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Return a list of enriched transactions starting with the most recent one.", + "authed": true, + "method": "GET", + "path": "/v3/transactions", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "XjdHaksD", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "entities": { + "properties": { + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "intermediaries": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Square", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "payment_processor", + "type": "enum" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "location": { + "properties": { + "raw_address": { + "value": { + "value": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "type": "string" + }, + "type": "primitive" + }, + "structured": { + "properties": { + "street": { + "value": { + "value": "Nw 43rd Street 5480", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Gainesville", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Florida", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "32653", + "type": "string" + }, + "type": "primitive" + }, + "country_code": { + "value": { + "value": "US", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + }, + "latitude": { + "value": { + "value": 29.704558, + "type": "double" + }, + "type": "primitive" + }, + "longitude": { + "value": { + "value": -82.389277, + "type": "double" + }, + "type": "primitive" + }, + "google_maps_url": { + "value": { + "value": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "apple_maps_url": { + "value": { + "value": "https://maps.apple.com/?q=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "account_holder_not_found", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "account_holder_id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "recurrence": { + "properties": { + "type": { + "value": "recurring", + "type": "enum" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/transactions\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor tx in sdk.transactions.list().auto_paginate():\n ... ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Synchronously enrich transactions", + "audiences": [], + "operationId": "post_transactions_v3_transactions_post", + "tags": [ + "Transactions" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostTransactionsV3TransactionsPostRequest", + "request": { + "schema": { + "generatedName": "PostTransactionsV3TransactionsPostRequest", + "schema": "SyncEnrichmentInput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Enriched transactions.", + "schema": { + "generatedName": "PostTransactionsV3TransactionsPostResponse", + "schema": "SyncEnrichmentOutput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Enriches a list of transactions in synchronous fashion. The enriched transactions returned in\nthe order that they were submitted. Webhook events are not triggered for this operation. \n\nThis endpoint supports up to 1000 transactions. \n\nIf you want more throughput and live updates refer to the \n[async enrichment endpoint](../batches/post-batch).", + "authed": true, + "method": "POST", + "path": "/v3/transactions", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "transactions": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "account_holder_id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "location": { + "properties": { + "country": { + "value": "US", + "type": "enum" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "transactions": { + "value": [ + { + "properties": { + "entities": { + "properties": { + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "intermediaries": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Square", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "payment_processor", + "type": "enum" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "location": { + "properties": { + "raw_address": { + "value": { + "value": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "type": "string" + }, + "type": "primitive" + }, + "structured": { + "properties": { + "street": { + "value": { + "value": "Nw 43rd Street 5480", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Gainesville", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Florida", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "32653", + "type": "string" + }, + "type": "primitive" + }, + "country_code": { + "value": { + "value": "US", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + }, + "latitude": { + "value": { + "value": 29.704558, + "type": "double" + }, + "type": "primitive" + }, + "longitude": { + "value": { + "value": -82.389277, + "type": "double" + }, + "type": "primitive" + }, + "google_maps_url": { + "value": { + "value": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "apple_maps_url": { + "value": { + "value": "https://maps.apple.com/?q=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "account_holder_not_found", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/transactions\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \"id\": \"xbx8YP14g565Xk\",\n \"description\": \"SQ* STARBUCKS NW 43RD\",\n \"date\": \"2024-03-30\",\n \"amount\": 10.0,\n \"entry_type\": \"outgoing\",\n \"currency\": \"USD\",\n \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n \"location\": {\n \"country\": \"US\"\n }\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput\n\nsdk = SDK(\"cd1H...Wmhl\")\nenriched = sdk.transactions.create([\n TransactionInput(\n id=\"xbx8YP14g565Xk\",\n description=\"SQ* STARBUCKS NW 43RD\",\n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n amount=10.0,\n entry_type=\"outgoing\",\n date=\"2024-03-30\",\n currency=\"USD\",\n location=LocationInput(\n country=\"US\",\n )\n )\n]) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Assign a transaction to an account holder", + "audiences": [], + "operationId": "set_transaction_ah_v3_transactions__id__assign_post", + "tags": [ + "Transactions" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "SetTransactionAhV3TransactionsIdAssignPostRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "SetTransactionAhV3TransactionsIdAssignPostRequest", + "request": { + "schema": { + "generatedName": "SetTransactionAhV3TransactionsIdAssignPostRequest", + "schema": "Body_set_transaction_ah_v3_transactions__id__assign_post", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "SetTransactionAhV3TransactionsIdAssignPostResponse", + "schema": "Transaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Transaction or account holder with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Changes the account holder associated with the transaction. The old and new account holder must share the same categories", + "authed": true, + "method": "POST", + "path": "/v3/transactions/{id}/assign", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "account_holder_id": { + "value": { + "value": "account_holder_id", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "entities": { + "properties": { + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "intermediaries": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Square", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "payment_processor", + "type": "enum" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + }, + "accounting": { + "value": "operational expenses", + "type": "enum" + } + }, + "type": "object" + }, + "location": { + "properties": { + "raw_address": { + "value": { + "value": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "type": "string" + }, + "type": "primitive" + }, + "structured": { + "properties": { + "street": { + "value": { + "value": "Nw 43rd Street 5480", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Gainesville", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Florida", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "32653", + "type": "string" + }, + "type": "primitive" + }, + "country_code": { + "value": { + "value": "US", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + }, + "latitude": { + "value": { + "value": 29.704558, + "type": "double" + }, + "type": "primitive" + }, + "longitude": { + "value": { + "value": -82.389277, + "type": "double" + }, + "type": "primitive" + }, + "google_maps_url": { + "value": { + "value": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "apple_maps_url": { + "value": { + "value": "https://maps.apple.com/?q=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "store_number": { + "value": { + "value": "store_number", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "account_holder_not_found", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "account_holder_id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "recurrence": { + "properties": { + "type": { + "value": "recurring", + "type": "enum" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.transactions.assign(\n transaction_id=\"xbx8YP14g565Xk\", \n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all batches", + "audiences": [], + "operationId": "get_batches_v3_batches_get", + "tags": [ + "Batches" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "Only return batches older or equal than this date", + "name": "created_after", + "schema": { + "generatedName": "GetBatchesV3BatchesGetRequestCreatedAfter", + "title": "Created After", + "description": "Only return batches older or equal than this date", + "value": { + "description": "Only return batches older or equal than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetBatchesV3BatchesGetRequestCreatedAfter", + "title": "Created After", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Only return batches newer than this date", + "name": "created_before", + "schema": { + "generatedName": "GetBatchesV3BatchesGetRequestCreatedBefore", + "title": "Created Before", + "description": "Only return batches newer than this date", + "value": { + "description": "Only return batches newer than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetBatchesV3BatchesGetRequestCreatedBefore", + "title": "Created Before", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Starting point for the set of batches", + "name": "cursor", + "schema": { + "generatedName": "GetBatchesV3BatchesGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "description": "Starting point for the set of batches", + "value": { + "description": "Starting point for the set of batches", + "schema": { + "type": "string" + }, + "generatedName": "GetBatchesV3BatchesGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The limit of batches to be returned", + "name": "limit", + "schema": { + "generatedName": "GetBatchesV3BatchesGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "description": "The limit of batches to be returned", + "value": { + "description": "The limit of batches to be returned", + "schema": { + "default": 10, + "minimum": 1, + "maximum": 50, + "type": "int" + }, + "generatedName": "GetBatchesV3BatchesGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "If specified, only return batches with this status", + "name": "status", + "schema": { + "generatedName": "GetBatchesV3BatchesGetRequestStatus", + "description": "If specified, only return batches with this status", + "value": { + "generatedName": "GetBatchesV3BatchesGetRequestStatus", + "schema": "BatchStatus", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "GetBatchesV3BatchesGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetBatchesV3BatchesGetResponse", + "schema": "PagedResponse_Batch", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Returns a list of submitted batches starting with the most recent one.", + "authed": true, + "method": "GET", + "path": "/v3/batches", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "XjdHaksD", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "203613d2-83c8-4130-8809-d14206eeec20", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "updated_at": { + "value": { + "value": "2024-01-01T00:00:30", + "type": "datetime" + }, + "type": "primitive" + }, + "progress": { + "value": { + "value": 0, + "type": "int" + }, + "type": "primitive" + }, + "total": { + "value": { + "value": 4000, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nfor batch in sdk.batches.list().auto_paginate():\n ... ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Submit a batch of transactions", + "audiences": [], + "operationId": "post_batch_v3_batches_post", + "tags": [ + "Batches" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostBatchV3BatchesPostRequest", + "request": { + "schema": { + "generatedName": "PostBatchV3BatchesPostRequest", + "schema": "AsyncEnrichmentInput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "PostBatchV3BatchesPostResponse", + "schema": "Batch", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Creates a batch of transactions and enriches it in an asynchronous fashion. A batch, representing the status of the \nenrichment progress is returned as a result of the submission. \n\nIn order to be notified on the status of the batch, you can setup [webhooks](../../../webhooks) and receive \nthe respective notifications. Alternatively, you can \n[poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch) for the status of the batch using its id.\n\nThis endpoints supports up to 24960 transactions.", + "authed": true, + "method": "POST", + "path": "/v3/batches", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "transactions": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "account_holder_id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "location": { + "properties": { + "country": { + "value": "US", + "type": "enum" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "203613d2-83c8-4130-8809-d14206eeec20", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "updated_at": { + "value": { + "value": "2024-01-01T00:00:30", + "type": "datetime" + }, + "type": "primitive" + }, + "progress": { + "value": { + "value": 0, + "type": "int" + }, + "type": "primitive" + }, + "total": { + "value": { + "value": 4000, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/batches/\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \"id\": \"xbx8YP14g565Xk\",\n \"description\": \"SQ* STARBUCKS NW 43RD\",\n \"date\": \"2024-03-30\",\n \"amount\": 10.0,\n \"entry_type\": \"outgoing\",\n \"currency\": \"USD\",\n \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n \"location\": {\n \"country\": \"US\"\n }\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput\n\nsdk = SDK(\"cd1H...Wmhl\")\nbatch = sdk.batches.create([\n TransactionInput(\n id=\"xbx8YP14g565Xk\",\n description=\"SQ* STARBUCKS NW 43RD\",\n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n amount=10.0,\n entry_type=\"outgoing\",\n date=\"2024-03-30\",\n currency=\"USD\",\n location=LocationInput(\n country=\"US\",\n )\n )\n]) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve a batch", + "audiences": [], + "operationId": "get_single_batch_v3_batches__id__get", + "tags": [ + "Batches" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetSingleBatchV3BatchesIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetSingleBatchV3BatchesIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetSingleBatchV3BatchesIdGetResponse", + "schema": "Batch", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Batch with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "GET", + "path": "/v3/batches/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "203613d2-83c8-4130-8809-d14206eeec20", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "updated_at": { + "value": { + "value": "2024-01-01T00:00:30", + "type": "datetime" + }, + "type": "primitive" + }, + "progress": { + "value": { + "value": 0, + "type": "int" + }, + "type": "primitive" + }, + "total": { + "value": { + "value": 4000, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nbatch = sdk.batches.get(\"f203613d2-83c8-4130-8809-d14206eeec20\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve the results of a batch", + "audiences": [], + "operationId": "get_batch_results_v3_batches__id__results_get", + "tags": [ + "Batches" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetBatchResultsV3BatchesIdResultsGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetBatchResultsV3BatchesIdResultsGetRequest", + "response": { + "description": "Returned batch of transaction enrichment results.", + "schema": { + "generatedName": "GetBatchResultsV3BatchesIdResultsGetResponse", + "schema": "BatchResult", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Batch with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Returns the results of the enrichment request. The resulting enriched transactions are returned in the same order they were submitted. Results are available after the batch has finished processing.", + "authed": true, + "method": "GET", + "path": "/v3/batches/{id}/results", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + }, + "total": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "results": { + "properties": { + "transactions": { + "value": [ + { + "properties": { + "entities": { + "properties": { + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "intermediaries": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Square", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/squareup.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "payment_processor", + "type": "enum" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "location": { + "properties": { + "raw_address": { + "value": { + "value": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "type": "string" + }, + "type": "primitive" + }, + "structured": { + "properties": { + "street": { + "value": { + "value": "Nw 43rd Street 5480", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Gainesville", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Florida", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "32653", + "type": "string" + }, + "type": "primitive" + }, + "country_code": { + "value": { + "value": "US", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + }, + "latitude": { + "value": { + "value": 29.704558, + "type": "double" + }, + "type": "primitive" + }, + "longitude": { + "value": { + "value": -82.389277, + "type": "double" + }, + "type": "primitive" + }, + "google_maps_url": { + "value": { + "value": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + }, + "apple_maps_url": { + "value": { + "value": "https://maps.apple.com/?q=29.704558,-82.389277", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nresults = sdk.batches.wait_for_results(\"f203613d2-83c8-4130-8809-d14206eeec20\")\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all bank statements", + "audiences": [], + "operationId": "get_bank_statements_v3_bank_statements_get", + "tags": [ + "Bank statements" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "Only return bank statements older or equal than this date", + "name": "created_after", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCreatedAfter", + "title": "Created After", + "description": "Only return bank statements older or equal than this date", + "value": { + "description": "Only return bank statements older or equal than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCreatedAfter", + "title": "Created After", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Only return bank statements newer than this date", + "name": "created_before", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCreatedBefore", + "title": "Created Before", + "description": "Only return bank statements newer than this date", + "value": { + "description": "Only return bank statements newer than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCreatedBefore", + "title": "Created Before", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Starting point for the set of bank statements", + "name": "cursor", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "description": "Starting point for the set of bank statements", + "value": { + "description": "Starting point for the set of bank statements", + "schema": { + "type": "string" + }, + "generatedName": "GetBankStatementsV3BankStatementsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The limit of bank statements to be returned", + "name": "limit", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "description": "The limit of bank statements to be returned", + "value": { + "description": "The limit of bank statements to be returned", + "schema": { + "default": 10, + "minimum": 1, + "maximum": 50, + "type": "int" + }, + "generatedName": "GetBankStatementsV3BankStatementsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "If specified, only return bank statements with this status", + "name": "status", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestStatus", + "description": "If specified, only return bank statements with this status", + "value": { + "generatedName": "GetBankStatementsV3BankStatementsGetRequestStatus", + "schema": "DocumentStatus", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "GetBankStatementsV3BankStatementsGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetBankStatementsV3BankStatementsGetResponse", + "schema": "PagedResponse_BankStatement", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Return a list of submitted bank statements starting with the most recent one.", + "authed": true, + "method": "GET", + "path": "/v3/bank_statements", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "XjdHaksD", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "2014-01-01_2014-02-01_statement.pdf", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "file": { + "properties": { + "no_pages": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + }, + "size": { + "value": { + "value": 4096, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "invalid_bank_statement", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor bs in sdk.bank_statements.list().auto_paginate():\n ... ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Submit a bank statement PDF", + "audiences": [], + "operationId": "post_bank_statement_v3_bank_statements_post", + "tags": [ + "Bank statements" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostBankStatementV3BankStatementsPostRequest", + "request": { + "name": "Body_post_bank_statement_v3_bank_statements_post", + "properties": [ + { + "key": "file", + "schema": { + "isOptional": false, + "isArray": false, + "type": "file" + } + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "multipart" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "PostBankStatementV3BankStatementsPostResponse", + "schema": "BankStatement", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Upload a PDF file and queue it for extraction.", + "authed": true, + "method": "POST", + "path": "/v3/bank_statements", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": {}, + "type": "object" + }, + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "2014-01-01_2014-02-01_statement.pdf", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "file": { + "properties": { + "no_pages": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + }, + "size": { + "value": { + "value": 4096, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "invalid_bank_statement", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/bank_statements\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n --form file=@bank_statement.pdf\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nwith open('bank_statement.pdf', 'rb') as fh:\n bank_statement = sdk.bank_statements.create(fh)\n results = sdk.bank_statement.wait_for_results(bank_statement.id) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve a bank statement", + "audiences": [], + "operationId": "get_bank_statement_v3_bank_statements__id__get", + "tags": [ + "Bank statements" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetBankStatementV3BankStatementsIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetBankStatementV3BankStatementsIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetBankStatementV3BankStatementsIdGetResponse", + "schema": "BankStatement", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Bank statement with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "GET", + "path": "/v3/bank_statements/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "2014-01-01_2014-02-01_statement.pdf", + "type": "string" + }, + "type": "primitive" + }, + "status": { + "value": "processing", + "type": "enum" + }, + "created_at": { + "value": { + "value": "2024-01-01T00:00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "file": { + "properties": { + "no_pages": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + }, + "size": { + "value": { + "value": 4096, + "type": "int" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "error": { + "properties": { + "code": { + "value": "invalid_bank_statement", + "type": "enum" + }, + "message": { + "value": { + "value": "message", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nbs = sdk.bank_statements.get(\"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Deletes a bank statement", + "audiences": [], + "operationId": "delete_bank_statement_v3_bank_statements__id__delete", + "tags": [ + "Bank statements" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "DeleteBankStatementV3BankStatementsIdDeleteRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteBankStatementV3BankStatementsIdDeleteRequest", + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Bank statement with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "DELETE", + "path": "/v3/bank_statements/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "codeSamples": [], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Quickly extract account holder, institution and first account", + "audiences": [], + "operationId": "get_bank_statement_statement_info_v3_bank_statements__id__overview_post", + "tags": [ + "Bank statements" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetBankStatementStatementInfoV3BankStatementsIdOverviewPostRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetBankStatementStatementInfoV3BankStatementsIdOverviewPostResponse", + "schema": "StatementInfo", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Bank statement with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Extracts account holder, bank and account information extracted from the first page of the bank statement, which is typically available before the full results. This is a synchronous call.\n\nComplete guide: [Overview](../../../bank-statements)", + "authed": true, + "method": "POST", + "path": "/v3/bank_statements/{id}/overview", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "institution": { + "value": { + "value": "Well's Fargo", + "type": "string" + }, + "type": "primitive" + }, + "start_date": { + "value": { + "value": "2024-01-01", + "type": "string" + }, + "type": "primitive" + }, + "end_date": { + "value": { + "value": "2024-02-01", + "type": "string" + }, + "type": "primitive" + }, + "account_holder": { + "properties": { + "type": { + "value": "consumer", + "type": "enum" + }, + "name": { + "value": { + "value": "John Doe", + "type": "string" + }, + "type": "primitive" + }, + "address": { + "properties": { + "street": { + "value": { + "value": "601 Rosebud Avenue", + "type": "string" + }, + "type": "primitive" + }, + "postcode": { + "value": { + "value": "77901", + "type": "string" + }, + "type": "primitive" + }, + "city": { + "value": { + "value": "Victoria", + "type": "string" + }, + "type": "primitive" + }, + "state": { + "value": { + "value": "Texas", + "type": "string" + }, + "type": "primitive" + }, + "country": { + "value": { + "value": "United States", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "accounts": { + "value": [ + { + "properties": { + "type": { + "value": { + "value": "checking", + "type": "string" + }, + "type": "primitive" + }, + "number": { + "value": { + "value": "83721", + "type": "string" + }, + "type": "primitive" + }, + "opening_balance": { + "value": { + "value": 1000, + "type": "double" + }, + "type": "primitive" + }, + "closing_balance": { + "value": { + "value": 1500, + "type": "double" + }, + "type": "primitive" + }, + "iso_currency_code": { + "value": { + "value": "USD", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\noverview = sdk.bank_statements.overview(\n \"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\"\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve the extraction results", + "audiences": [], + "operationId": "get_bank_statement_result_v3_bank_statements__id__results_get", + "tags": [ + "Bank statements" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetBankStatementResultV3BankStatementsIdResultsGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetBankStatementResultV3BankStatementsIdResultsGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetBankStatementResultV3BankStatementsIdResultsGetResponse", + "schema": "BankStatementResults", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Bank statement with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Return the extracted account information and associated transactions from a bank statement PDF. The results are accessible once the statement's status is `completed`.", + "authed": true, + "method": "GET", + "path": "/v3/bank_statements/{id}/results", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "accounts": { + "value": [ + { + "properties": { + "number": { + "value": { + "value": "972913289", + "type": "string" + }, + "type": "primitive" + }, + "opening_balance": { + "value": { + "value": 400, + "type": "double" + }, + "type": "primitive" + }, + "closing_balance": { + "value": { + "value": 200, + "type": "double" + }, + "type": "primitive" + }, + "start_date": { + "value": { + "value": "2024-01-01", + "type": "string" + }, + "type": "primitive" + }, + "end_date": { + "value": { + "value": "2024-02-01", + "type": "string" + }, + "type": "primitive" + }, + "is_balance_reconciled": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + }, + "total_incoming": { + "value": { + "value": 0, + "type": "double" + }, + "type": "primitive" + }, + "total_outgoing": { + "value": { + "value": 200, + "type": "double" + }, + "type": "primitive" + }, + "transactions": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "SQ* STARBUCKS NW 43RD", + "type": "string" + }, + "type": "primitive" + }, + "date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "amount": { + "value": { + "value": 200, + "type": "double" + }, + "type": "primitive" + }, + "entry_type": { + "value": "outgoing", + "type": "enum" + }, + "currency": { + "value": "USD", + "type": "enum" + }, + "running_balance": { + "value": { + "value": 400, + "type": "double" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nbs = sdk.bank_statements.get(\"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\")\nresults = sdk.bank_statements.wait_for_results(\n \"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\"\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve an account holder.", + "audiences": [], + "operationId": "get_account_holder_v3_account_holders__id__get", + "tags": [ + "Account Holders" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetAccountHolderV3AccountHoldersIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetAccountHolderV3AccountHoldersIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetAccountHolderV3AccountHoldersIdGetResponse", + "schema": "AccountHolderExternal", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Account holder with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "GET", + "path": "/v3/account_holders/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "type": { + "value": "consumer", + "type": "enum" + }, + "name": { + "value": { + "value": "John Doe", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nah = sdk.account_holders.get(\"f35b927b6-6fda-40aa-93b8-95b47c2b2cad\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Deletes an account holder and their transactions", + "audiences": [], + "operationId": "delete_account_holder_v3_account_holders__id__delete", + "tags": [ + "Account Holders" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "DeleteAccountHolderV3AccountHoldersIdDeleteRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteAccountHolderV3AccountHoldersIdDeleteRequest", + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Account holder with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Deletes all of the transactions in the account holder's history. This operation is permanent and irreversible", + "authed": true, + "method": "DELETE", + "path": "/v3/account_holders/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nah = sdk.account_holders.delete(\"f35b927b6-6fda-40aa-93b8-95b47c2b2cad\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all account holders.", + "audiences": [], + "operationId": "get_account_holders_v3_account_holders_get", + "tags": [ + "Account Holders" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "Only return account holders older or equal than this date", + "name": "created_after", + "schema": { + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCreatedAfter", + "title": "Created After", + "description": "Only return account holders older or equal than this date", + "value": { + "description": "Only return account holders older or equal than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCreatedAfter", + "title": "Created After", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Only return account holders newer than this date", + "name": "created_before", + "schema": { + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCreatedBefore", + "title": "Created Before", + "description": "Only return account holders newer than this date", + "value": { + "description": "Only return account holders newer than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCreatedBefore", + "title": "Created Before", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Starting point for the set of account holders", + "name": "cursor", + "schema": { + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "description": "Starting point for the set of account holders", + "value": { + "description": "Starting point for the set of account holders", + "schema": { + "type": "string" + }, + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The limit of account holders to be returned", + "name": "limit", + "schema": { + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "description": "The limit of account holders to be returned", + "value": { + "description": "The limit of account holders to be returned", + "schema": { + "default": 10, + "minimum": 1, + "maximum": 50, + "type": "int" + }, + "generatedName": "GetAccountHoldersV3AccountHoldersGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "GetAccountHoldersV3AccountHoldersGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetAccountHoldersV3AccountHoldersGetResponse", + "schema": "PagedResponse_AccountHolderExternal", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "GET", + "path": "/v3/account_holders", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "XjdHaksD", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "type": { + "value": "consumer", + "type": "enum" + }, + "name": { + "value": { + "value": "John Doe", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nah = sdk.account_holders.get(\"f35b927b6-6fda-40aa-93b8-95b47c2b2cad\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Create an account holder.", + "audiences": [], + "operationId": "create_account_holder_v3_account_holders_post", + "tags": [ + "Account Holders" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "CreateAccountHolderV3AccountHoldersPostRequest", + "request": { + "schema": { + "generatedName": "CreateAccountHolderV3AccountHoldersPostRequest", + "schema": "AccountHolderCreate", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "CreateAccountHolderV3AccountHoldersPostResponse", + "schema": "AccountHolderExternal", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Account holder with the provided id already exists.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "authed": true, + "method": "POST", + "path": "/v3/account_holders", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "id": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + }, + "type": { + "value": "consumer", + "type": "enum" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "string" + }, + "type": "primitive" + }, + "type": { + "value": "consumer", + "type": "enum" + }, + "name": { + "value": { + "value": "John Doe", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-03-30T00:00:00", + "type": "datetime" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/account_holders\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n \"type\": \"consumer\",\n \"name\": \"John Doe\"\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nah = sdk.account_holders.create(\n id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n type=\"consumer\",\n name=\"John Doe\",\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Find recurring groups in a transaction history", + "audiences": [], + "operationId": "get_account_holder_recurring_payments_v3_account_holders__id__recurring_groups_post", + "tags": [ + "Recurrence" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostRequest", + "response": { + "description": "Successful Response", + "schema": { + "value": { + "generatedName": "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostResponseItem", + "schema": "RecurrenceGroup", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "GetAccountHolderRecurringPaymentsV3AccountHoldersIdRecurringGroupsPostResponse", + "title": "Response Get Account Holder Recurring Payments V3 Account Holders Id Recurring Groups Post", + "groupName": [], + "type": "array" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Account holder with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Identifies and categorizes recurring patterns found in the transaction history of the account holder, such as periodic payments or subscriptions. These patterns are called recurrence groups.", + "authed": true, + "method": "POST", + "path": "/v3/account_holders/{id}/recurring_groups", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "value": [ + { + "properties": { + "id": { + "value": { + "value": "8efbac45-9bd5-4b67-be29-334106198c40", + "type": "string" + }, + "type": "primitive" + }, + "start_date": { + "value": { + "value": "2024-03-01", + "type": "string" + }, + "type": "primitive" + }, + "end_date": { + "value": { + "value": "2024-03-30", + "type": "string" + }, + "type": "primitive" + }, + "total_amount": { + "value": { + "value": 300, + "type": "double" + }, + "type": "primitive" + }, + "average_amount": { + "value": { + "value": 10, + "type": "double" + }, + "type": "primitive" + }, + "periodicity_in_days": { + "value": { + "value": 1, + "type": "double" + }, + "type": "primitive" + }, + "periodicity": { + "value": "daily", + "type": "enum" + }, + "counterparty": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "type": { + "value": "organization", + "type": "enum" + } + }, + "type": "object" + }, + "categories": { + "properties": { + "general": { + "value": { + "value": "outgoing - coffee shops", + "type": "string" + }, + "type": "primitive" + }, + "accounting": { + "value": "operational expenses", + "type": "enum" + } + }, + "type": "object" + }, + "transaction_ids": { + "value": [ + { + "value": { + "value": "2dc6SE8A7cTQ2jUdUadCg", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "tQYAhhl0XNkl1wasacpVQ", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "NNJTqvockIdKnYxBqPlJw", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nrecurring_groups = sdk.account_holders.recurring_groups(\n \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all webhooks", + "audiences": [], + "operationId": "get_webhooks_v3_webhooks_get", + "tags": [ + "Webhooks" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetWebhooksV3WebhooksGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetWebhooksV3WebhooksGetResponse", + "schema": "PagedResponse_Webhook", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "List all webhooks", + "authed": true, + "method": "GET", + "path": "/v3/webhooks", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "XjdHaksD", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "url": { + "value": { + "value": "https://example.com:5689", + "type": "string" + }, + "type": "primitive" + }, + "events": { + "value": [ + { + "value": "batches.completed", + "type": "enum" + }, + { + "value": "batches.error", + "type": "enum" + } + ], + "type": "array" + }, + "token": { + "value": { + "value": "hunter2", + "type": "string" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953", + "type": "datetime" + }, + "type": "primitive" + }, + "enabled": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/webhooks\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor webhook in sdk.webhooks.list().auto_paginate():\n ... ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Create a webhook", + "audiences": [], + "operationId": "post_webhook_v3_webhooks_post", + "tags": [ + "Webhooks" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostWebhookV3WebhooksPostRequest", + "request": { + "schema": { + "generatedName": "PostWebhookV3WebhooksPostRequest", + "schema": "WebhookBase", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "PostWebhookV3WebhooksPostResponse", + "schema": "Webhook", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Create a webhook to be called when certain events occur.", + "authed": true, + "method": "POST", + "path": "/v3/webhooks", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "url": { + "value": { + "value": "url", + "type": "string" + }, + "type": "primitive" + }, + "events": { + "value": [ + { + "value": "reports.resolved", + "type": "enum" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "url": { + "value": { + "value": "https://example.com:5689", + "type": "string" + }, + "type": "primitive" + }, + "events": { + "value": [ + { + "value": "batches.completed", + "type": "enum" + }, + { + "value": "batches.error", + "type": "enum" + } + ], + "type": "array" + }, + "token": { + "value": { + "value": "hunter2", + "type": "string" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953", + "type": "datetime" + }, + "type": "primitive" + }, + "enabled": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/webhooks\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"url\": \"https://example.com:5689\",\n \"events\": [\n \"batches.completed\",\n \"batches.error\"\n ],\n \"token\": \"hunter2\"\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.webhooks.create(\n url=\"https://example.com:5689\",\n events=\"['batches.completed', 'batches.error']\",\n token=\"hunter2\",\n) ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve a webhook", + "audiences": [], + "operationId": "get_webhook_v3_webhooks__id__get", + "tags": [ + "Webhooks" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetWebhookV3WebhooksIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetWebhookV3WebhooksIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetWebhookV3WebhooksIdGetResponse", + "schema": "Webhook", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Retrieve a webhook", + "authed": true, + "method": "GET", + "path": "/v3/webhooks/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "url": { + "value": { + "value": "https://example.com:5689", + "type": "string" + }, + "type": "primitive" + }, + "events": { + "value": [ + { + "value": "batches.completed", + "type": "enum" + }, + { + "value": "batches.error", + "type": "enum" + } + ], + "type": "array" + }, + "token": { + "value": { + "value": "hunter2", + "type": "string" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953", + "type": "datetime" + }, + "type": "primitive" + }, + "enabled": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nwebhook = sdk.webhooks.get(\"e94a150d-40af-4e96-8aa7-2948a6b4d8d3\")\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Delete a webhook", + "audiences": [], + "operationId": "delete_webhook_v3_webhooks__id__delete", + "tags": [ + "Webhooks" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "DeleteWebhookV3WebhooksIdDeleteRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteWebhookV3WebhooksIdDeleteRequest", + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Webhook with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Delete a webhook", + "authed": true, + "method": "DELETE", + "path": "/v3/webhooks/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.webhooks.delete(\"e94a150d-40af-4e96-8aa7-2948a6b4d8d3\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Update a webhook", + "audiences": [], + "operationId": "patch_webhook_v3_webhooks__id__patch", + "tags": [ + "Webhooks" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PatchWebhookV3WebhooksIdPatchRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PatchWebhookV3WebhooksIdPatchRequest", + "request": { + "schema": { + "generatedName": "PatchWebhookV3WebhooksIdPatchRequest", + "schema": "WebhookPatch", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "PatchWebhookV3WebhooksIdPatchResponse", + "schema": "Webhook", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Update a webhook. Fields that aren't specified in the body will remain unchanged", + "authed": true, + "method": "PATCH", + "path": "/v3/webhooks/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "request": { + "properties": {}, + "type": "object" + }, + "response": { + "value": { + "properties": { + "url": { + "value": { + "value": "https://example.com:5689", + "type": "string" + }, + "type": "primitive" + }, + "events": { + "value": [ + { + "value": "batches.completed", + "type": "enum" + }, + { + "value": "batches.error", + "type": "enum" + } + ], + "type": "array" + }, + "token": { + "value": { + "value": "hunter2", + "type": "string" + }, + "type": "primitive" + }, + "id": { + "value": { + "value": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953", + "type": "datetime" + }, + "type": "primitive" + }, + "enabled": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"events\": [\n \"batches.completed\",\n \"batches.error\"\n ],\n \"enabled\": false\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nwh = sdk.webhooks.patch(\n \"e94a150d-40af-4e96-8aa7-2948a6b4d8d3\",\n events=['batches.completed', 'batches.error'],\n enabled=False,\n)\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Get the current personalization ruleset.", + "audiences": [], + "operationId": "filter_get_v3_rules_get", + "tags": [ + "Personalization", + "Personalization" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "FilterGetV3RulesGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "FilterGetV3RulesGetResponse", + "schema": "personalization", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Get the current personalization ruleset.", + "authed": true, + "method": "GET", + "path": "/v3/rules", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "value": [ + { + "properties": { + "if": { + "properties": { + "is_substring": { + "value": [], + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/rules\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nrules = sdk.rules.get()\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Set the personalization ruleset.", + "audiences": [], + "operationId": "filter_post_v3_rules_post", + "tags": [ + "Personalization", + "Personalization" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "FilterPostV3RulesPostRequest", + "request": { + "schema": { + "generatedName": "FilterPostV3RulesPostRequest", + "schema": "personalization", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "FilterPostV3RulesPostResponse", + "type": "unknown" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Provided ruleset has invalid structure", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "413": { + "generatedName": "ContentTooLargeError", + "schema": { + "generatedName": "ContentTooLargeErrorBody", + "type": "unknown" + }, + "description": "Ruleset was larger than 50KiB", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Set the personalization ruleset.", + "authed": true, + "method": "POST", + "path": "/v3/rules", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "value": [ + { + "properties": { + "if": { + "properties": { + "is_substring": { + "value": [], + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + } + ], + "type": "array" + }, + "response": { + "value": { + "value": [ + { + "key": { + "value": "key", + "type": "string" + }, + "value": { + "value": { + "value": "value", + "type": "string" + }, + "type": "primitive" + } + } + ], + "type": "map" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/rules\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \"if\": {\n \"is_substring\": [\n {\"get\": \"website\"},\n \"ntropy\"\n ]\n },\n \"then\": [\n {\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"}\n ],\n \"else\": [\n {\"remove_label\": \"example label\"}\n ]\n }]'\n", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.rules.set([{\n \"if\": {\n \"is_substring\": [\n {\"get\": \"website\"},\n \"ntropy\"\n ]\n },\n \"then\": [\n {\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"}\n ],\n \"else\": [\n {\"remove_label\": \"example label\"}\n ]\n}])\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Append a rule.", + "audiences": [], + "operationId": "filter_append_v3_rules_append_post", + "tags": [ + "Personalization", + "Personalization" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "FilterAppendV3RulesAppendPostRequest", + "request": { + "schema": { + "generatedName": "FilterAppendV3RulesAppendPostRequest", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "FilterAppendV3RulesAppendPostResponse", + "type": "unknown" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Provided rule has invalid structure", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "413": { + "generatedName": "ContentTooLargeError", + "schema": { + "generatedName": "ContentTooLargeErrorBody", + "type": "unknown" + }, + "description": "Ruleset after append was larger than 50KiB", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Append a rule to the personalization ruleset.", + "authed": true, + "method": "POST", + "path": "/v3/rules/append", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "if": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "response": { + "value": { + "value": [ + { + "key": { + "value": "key", + "type": "string" + }, + "value": { + "value": { + "value": "value", + "type": "string" + }, + "type": "primitive" + } + } + ], + "type": "map" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/rules/append\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"}'\n", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.rules.append({\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"})\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Delete a rule.", + "audiences": [], + "operationId": "filter_delete_v3_rules__index__delete", + "tags": [ + "Personalization", + "Personalization" + ], + "pathParameters": [ + { + "name": "index", + "schema": { + "schema": { + "type": "int" + }, + "generatedName": "FilterDeleteV3RulesIndexDeleteRequestIndex", + "nameOverride": "Index", + "title": "Index", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "FilterDeleteV3RulesIndexDeleteRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "FilterDeleteV3RulesIndexDeleteResponse", + "type": "unknown" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Provided index does not exist in ruleset", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Delete the rule at the specified index from the personalization ruleset.", + "authed": true, + "method": "DELETE", + "path": "/v3/rules/{index}", + "examples": [ + { + "pathParameters": [ + { + "name": "index", + "value": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "value": [ + { + "key": { + "value": "key", + "type": "string" + }, + "value": { + "value": { + "value": "value", + "type": "string" + }, + "type": "primitive" + } + } + ], + "type": "map" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/rules/0\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.rules.delete(0)\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Modify an existing rule.", + "audiences": [], + "operationId": "filter_patch_v3_rules__index__patch", + "tags": [ + "Personalization", + "Personalization" + ], + "pathParameters": [ + { + "name": "index", + "schema": { + "schema": { + "type": "int" + }, + "generatedName": "FilterPatchV3RulesIndexPatchRequestIndex", + "nameOverride": "Index", + "title": "Index", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "FilterPatchV3RulesIndexPatchRequest", + "request": { + "schema": { + "generatedName": "FilterPatchV3RulesIndexPatchRequest", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "FilterPatchV3RulesIndexPatchResponse", + "type": "unknown" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Provided index does not exist in ruleset", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Modify an existing rule at the specified index on the ruleset.", + "authed": true, + "method": "PATCH", + "path": "/v3/rules/{index}", + "examples": [ + { + "pathParameters": [ + { + "name": "index", + "value": { + "value": { + "value": 1, + "type": "int" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "if": { + "value": { + "value": true, + "type": "boolean" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "response": { + "value": { + "value": [ + { + "key": { + "value": "key", + "type": "string" + }, + "value": { + "value": { + "value": "value", + "type": "string" + }, + "type": "primitive" + } + } + ], + "type": "map" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"PATCH\" \\\n \"https://api.ntropy.com/v3/rules/0\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"}'\n", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.rules.patch(0, {\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"})\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "List all reports", + "audiences": [], + "operationId": "get_reports_v3_reports_get", + "tags": [ + "Reports" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "Only return report older or equal than this date", + "name": "created_after", + "schema": { + "generatedName": "GetReportsV3ReportsGetRequestCreatedAfter", + "title": "Created After", + "description": "Only return report older or equal than this date", + "value": { + "description": "Only return report older or equal than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetReportsV3ReportsGetRequestCreatedAfter", + "title": "Created After", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Only return report newer than this date", + "name": "created_before", + "schema": { + "generatedName": "GetReportsV3ReportsGetRequestCreatedBefore", + "title": "Created Before", + "description": "Only return report newer than this date", + "value": { + "description": "Only return report newer than this date", + "schema": { + "type": "datetime" + }, + "generatedName": "GetReportsV3ReportsGetRequestCreatedBefore", + "title": "Created Before", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "Starting point for the set of report", + "name": "cursor", + "schema": { + "generatedName": "GetReportsV3ReportsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "description": "Starting point for the set of report", + "value": { + "description": "Starting point for the set of report", + "schema": { + "type": "string" + }, + "generatedName": "GetReportsV3ReportsGetRequestCursor", + "nameOverride": "Cursor", + "title": "Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The limit of report to be returned", + "name": "limit", + "schema": { + "generatedName": "GetReportsV3ReportsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "description": "The limit of report to be returned", + "value": { + "description": "The limit of report to be returned", + "schema": { + "default": 10, + "minimum": 1, + "maximum": 50, + "type": "int" + }, + "generatedName": "GetReportsV3ReportsGetRequestLimit", + "nameOverride": "Limit", + "title": "Limit", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "If specified, only return reports with this status", + "name": "status", + "schema": { + "generatedName": "GetReportsV3ReportsGetRequestStatus", + "description": "If specified, only return reports with this status", + "value": { + "generatedName": "GetReportsV3ReportsGetRequestStatus", + "schema": "ReportStatus", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "GetReportsV3ReportsGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetReportsV3ReportsGetResponse", + "schema": "PagedResponse_Report_", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "List all reports", + "authed": true, + "method": "GET", + "path": "/v3/reports", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "next_cursor": { + "value": { + "value": "next_cursor", + "type": "string" + }, + "type": "primitive" + }, + "data": { + "value": [ + { + "properties": { + "transaction_id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "lorem ipsum", + "type": "string" + }, + "type": "primitive" + }, + "fields": { + "value": [ + { + "value": { + "value": ".entities.counterparty", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "id": { + "value": { + "value": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953+00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "status": { + "value": "open", + "type": "enum" + }, + "rejection_reason": { + "value": { + "value": "rejection_reason", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/reports\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreports = sdk.reports.list()\n ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Create a report", + "audiences": [], + "operationId": "post_report_v3_reports_post", + "tags": [ + "Reports" + ], + "pathParameters": [], + "queryParameters": [], + "headers": [], + "generatedRequestName": "PostReportV3ReportsPostRequest", + "request": { + "schema": { + "generatedName": "PostReportV3ReportsPostRequest", + "schema": "ReportBase", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "The newly created report", + "schema": { + "generatedName": "PostReportV3ReportsPostResponse", + "schema": "Report", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Report a transaction with incorrect fields.", + "authed": true, + "method": "POST", + "path": "/v3/reports", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "transaction_id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "lorem ipsum", + "type": "string" + }, + "type": "primitive" + }, + "fields": { + "value": [ + { + "value": { + "value": ".entities.counterparty", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "transaction_id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "lorem ipsum", + "type": "string" + }, + "type": "primitive" + }, + "fields": { + "value": [ + { + "value": { + "value": ".entities.counterparty", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "id": { + "value": { + "value": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953+00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "status": { + "value": "open", + "type": "enum" + }, + "rejection_reason": { + "value": { + "value": "rejection_reason", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/reports\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"transaction_id\": \"xbx8YP14g565Xk\",\n \"description\": \"lorem ipsum\",\n \"fields\": [\n \".entities.counterparty\"\n ]\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreport = sdk.reports.create(\n transaction_id=\"xbx8YP14g565Xk\",\n description=\"lorem ipsum\",\n fields=['.entities.counterparty'],\n)\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve a report", + "audiences": [], + "operationId": "get_report_v3_reports__id__get", + "tags": [ + "Reports" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "GetReportV3ReportsIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetReportV3ReportsIdGetRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "GetReportV3ReportsIdGetResponse", + "schema": "Report", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Report with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Retrieve a report", + "authed": true, + "method": "GET", + "path": "/v3/reports/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "transaction_id": { + "value": { + "value": "xbx8YP14g565Xk", + "type": "string" + }, + "type": "primitive" + }, + "description": { + "value": { + "value": "lorem ipsum", + "type": "string" + }, + "type": "primitive" + }, + "fields": { + "value": [ + { + "value": { + "value": ".entities.counterparty", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "id": { + "value": { + "value": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "type": "string" + }, + "type": "primitive" + }, + "created_at": { + "value": { + "value": "2024-10-03T02:53:30.167953+00:00", + "type": "datetime" + }, + "type": "primitive" + }, + "status": { + "value": "open", + "type": "enum" + }, + "rejection_reason": { + "value": { + "value": "rejection_reason", + "type": "string" + }, + "type": "primitive" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreport = sdk.reports.get(\"a652285d-de1b-4a6f-b6ce-45efa9be7952\")\n ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Delete a report", + "audiences": [], + "operationId": "delete_report_v3_reports__id__delete", + "tags": [ + "Reports" + ], + "pathParameters": [ + { + "name": "id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "DeleteReportV3ReportsIdDeleteRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteReportV3ReportsIdDeleteRequest", + "errors": { + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Report with the provided id not found.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Delete a report", + "authed": true, + "method": "DELETE", + "path": "/v3/reports/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "codeSamples": [], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve category set", + "audiences": [], + "operationId": "get_category_set_v3_categories__account_holder_type__get", + "tags": [ + "Categories" + ], + "pathParameters": [ + { + "name": "account_holder_type", + "schema": { + "generatedName": "GetCategorySetV3CategoriesAccountHolderTypeGetRequestAccountHolderType", + "schema": "AccountHolderType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetCategorySetV3CategoriesAccountHolderTypeGetRequest", + "response": { + "description": "Category set for the selected type of account holder", + "schema": { + "generatedName": "GetCategorySetV3CategoriesAccountHolderTypeGetResponse", + "schema": "CategorySet", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Retrieves the set of categories. Category sets are different per account holder type.", + "authed": true, + "method": "GET", + "path": "/v3/categories/{account_holder_type}", + "examples": [ + { + "pathParameters": [ + { + "name": "account_holder_type", + "value": { + "value": "consumer", + "type": "enum" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "incoming": { + "value": [ + { + "value": { + "value": "transfer from investment app", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer from stock broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer from crypto broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "chargeback", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "freelance income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "rideshare or delivery income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "paycheck", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "benefits", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "interest earned", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "stock dividend", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "outgoing": { + "value": [ + { + "value": { + "value": "digital content and streaming", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "vending machine", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "reversal", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to investment app", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to stock broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to crypto broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "adjustment", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "intra account transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "inter account transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "peer to peer transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "funeral service", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "ATM withdrawal", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "teller withdrawal", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/categories/consumer\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.categories.get(\"consumer\")\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Set a custom set of categories", + "audiences": [], + "operationId": "custom_categories_post_v3_categories__account_holder_type__post", + "tags": [ + "Categories" + ], + "pathParameters": [ + { + "name": "account_holder_type", + "schema": { + "generatedName": "CustomCategoriesPostV3CategoriesAccountHolderTypePostRequestAccountHolderType", + "schema": "AccountHolderType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "CustomCategoriesPostV3CategoriesAccountHolderTypePostRequest", + "request": { + "schema": { + "generatedName": "CustomCategoriesPostV3CategoriesAccountHolderTypePostRequest", + "schema": "CustomCategorySet", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "contentType": "application/json", + "fullExamples": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "response": { + "description": "Custom categories successfully set.", + "schema": { + "generatedName": "CustomCategoriesPostV3CategoriesAccountHolderTypePostResponse", + "schema": "CustomCategorySet", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Sets a custom set of categories. Transactions that don't match a category will be categorized `not enough information` regardless of whether it is present in the set.", + "authed": true, + "method": "POST", + "path": "/v3/categories/{account_holder_type}", + "examples": [ + { + "pathParameters": [ + { + "name": "account_holder_type", + "value": { + "value": "consumer", + "type": "enum" + } + } + ], + "queryParameters": [], + "headers": [], + "request": { + "properties": { + "incoming": { + "value": [ + { + "value": { + "value": "salary", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "investment income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "other income", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "outgoing": { + "value": [ + { + "value": { + "value": "rent", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "utilities", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "groceries", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "entertainment", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "response": { + "value": { + "properties": { + "incoming": { + "value": [ + { + "value": { + "value": "salary", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "investment income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "other income", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "outgoing": { + "value": [ + { + "value": { + "value": "rent", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "utilities", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "groceries", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "entertainment", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/categories/consumer\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"incoming\": [\n \"salary\",\n \"investment income\",\n \"other income\"\n ],\n \"outgoing\": [\n \"rent\",\n \"utilities\",\n \"groceries\",\n \"entertainment\"\n ]\n }]'\n ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.categories.set(\"consumer\", {\n \"incoming\": [\n \"transfer from investment app\",\n \"transfer from stock broker\",\n \"transfer from crypto broker\",\n \"chargeback\",\n \"freelance income\",\n \"rideshare or delivery income\",\n \"paycheck\",\n \"benefits\",\n \"interest earned\",\n \"stock dividend\"\n ],\n \"outgoing\": [\n \"digital content and streaming\",\n \"vending machine\",\n \"reversal\",\n \"transfer to investment app\",\n \"transfer to stock broker\",\n \"transfer to crypto broker\",\n \"adjustment\",\n \"intra account transfer\",\n \"inter account transfer\",\n \"peer to peer transfer\",\n \"funeral service\",\n \"ATM withdrawal\",\n \"teller withdrawal\"\n ]\n})\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Reset category set to original values", + "audiences": [], + "operationId": "delete_custom_category_set_v3_categories__account_holder_type__reset_post", + "tags": [ + "Categories" + ], + "pathParameters": [ + { + "name": "account_holder_type", + "schema": { + "generatedName": "DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequestAccountHolderType", + "schema": "AccountHolderType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostRequest", + "response": { + "description": "Successful Response", + "schema": { + "generatedName": "DeleteCustomCategorySetV3CategoriesAccountHolderTypeResetPostResponse", + "schema": "CategorySet", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Resets the set of categories of the specified account holder type to the original values.", + "authed": true, + "method": "POST", + "path": "/v3/categories/{account_holder_type}/reset", + "examples": [ + { + "pathParameters": [ + { + "name": "account_holder_type", + "value": { + "value": "consumer", + "type": "enum" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "incoming": { + "value": [ + { + "value": { + "value": "transfer from investment app", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer from stock broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer from crypto broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "chargeback", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "freelance income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "rideshare or delivery income", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "paycheck", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "benefits", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "interest earned", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "stock dividend", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + }, + "outgoing": { + "value": [ + { + "value": { + "value": "digital content and streaming", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "vending machine", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "reversal", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to investment app", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to stock broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "transfer to crypto broker", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "adjustment", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "intra account transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "inter account transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "peer to peer transfer", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "funeral service", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "ATM withdrawal", + "type": "string" + }, + "type": "primitive" + }, + { + "value": { + "value": "teller withdrawal", + "type": "string" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/categories/consumer/reset\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.categories.reset(\"consumer\")\n", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Searches for an entity", + "audiences": [], + "operationId": "search_entity_v3_entities_lookup_get", + "tags": [ + "Entities" + ], + "pathParameters": [], + "queryParameters": [ + { + "description": "The name of the entity to resolve", + "name": "name", + "schema": { + "generatedName": "SearchEntityV3EntitiesLookupGetRequestName", + "nameOverride": "Name", + "title": "Name", + "description": "The name of the entity to resolve", + "value": { + "description": "The name of the entity to resolve", + "schema": { + "type": "string" + }, + "generatedName": "SearchEntityV3EntitiesLookupGetRequestName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "The website of the entity to resolve", + "name": "website", + "schema": { + "generatedName": "SearchEntityV3EntitiesLookupGetRequestWebsite", + "nameOverride": "Website", + "title": "Website", + "description": "The website of the entity to resolve", + "value": { + "description": "The website of the entity to resolve", + "schema": { + "type": "string" + }, + "generatedName": "SearchEntityV3EntitiesLookupGetRequestWebsite", + "nameOverride": "Website", + "title": "Website", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "description": "An unstructured location string of the entity to resolve", + "name": "location", + "schema": { + "generatedName": "SearchEntityV3EntitiesLookupGetRequestLocation", + "nameOverride": "Location", + "title": "Location", + "description": "An unstructured location string of the entity to resolve", + "value": { + "description": "An unstructured location string of the entity to resolve", + "schema": { + "type": "string" + }, + "generatedName": "SearchEntityV3EntitiesLookupGetRequestLocation", + "nameOverride": "Location", + "title": "Location", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "nullable" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "headers": [], + "generatedRequestName": "SearchEntityV3EntitiesLookupGetRequest", + "response": { + "description": "Entity", + "schema": { + "generatedName": "SearchEntityV3EntitiesLookupGetResponse", + "schema": "Entity", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Bad request.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + }, + "423": { + "generatedName": "LockedError", + "schema": { + "generatedName": "LockedErrorBody", + "type": "unknown" + }, + "description": "Not enough credits.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + }, + "server": [], + "description": "Resolves a query into an entity by querying our entity resolution system. \n The parameters `name` and `website` are mutually exclusive. Calls to this endpoint using \n the `name` parameter are billed the same way transactions are.", + "authed": true, + "method": "GET", + "path": "/v3/entities/lookup", + "examples": [ + { + "pathParameters": [], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/entities?name=Starbucks\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.entities.lookup(name=\"Starbucks\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + { + "summary": "Retrieve an entity", + "audiences": [], + "operationId": "get_entity_by_id_v3_entities__id__get", + "tags": [ + "Entities" + ], + "pathParameters": [ + { + "description": "The unique ID of the entity", + "name": "id", + "schema": { + "description": "The unique ID of the entity", + "schema": { + "type": "string" + }, + "generatedName": "GetEntityByIdV3EntitiesIdGetRequestId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "queryParameters": [], + "headers": [], + "generatedRequestName": "GetEntityByIdV3EntitiesIdGetRequest", + "response": { + "description": "Entity", + "schema": { + "generatedName": "GetEntityByIdV3EntitiesIdGetResponse", + "schema": "Entity", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "fullExamples": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "json" + }, + "errors": { + "400": { + "generatedName": "BadRequestError", + "schema": { + "generatedName": "BadRequestErrorBody", + "type": "unknown" + }, + "description": "Bad request.", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "404": { + "generatedName": "NotFoundError", + "schema": { + "generatedName": "NotFoundErrorBody", + "type": "unknown" + }, + "description": "Entity does not exist for ID", + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + }, + "422": { + "generatedName": "UnprocessableEntityError", + "schema": { + "generatedName": "UnprocessableEntityErrorBody", + "schema": "HTTPValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "description": "Validation Error", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "examples": [ + { + "example": { + "properties": {}, + "type": "object" + } + } + ] + } + }, + "server": [], + "description": "Retrieve more information about an entity by using its unique ID.", + "authed": true, + "method": "GET", + "path": "/v3/entities/{id}", + "examples": [ + { + "pathParameters": [ + { + "name": "id", + "value": { + "value": { + "value": "id", + "type": "string" + }, + "type": "primitive" + } + } + ], + "queryParameters": [], + "headers": [], + "response": { + "value": { + "properties": { + "id": { + "value": { + "value": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "type": "string" + }, + "type": "primitive" + }, + "name": { + "value": { + "value": "Starbucks", + "type": "string" + }, + "type": "primitive" + }, + "website": { + "value": { + "value": "starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "logo": { + "value": { + "value": "https://logos.ntropy.com/starbucks.com", + "type": "string" + }, + "type": "primitive" + }, + "mccs": { + "value": [ + { + "value": { + "value": 5814, + "type": "int" + }, + "type": "primitive" + } + ], + "type": "array" + } + }, + "type": "object" + }, + "type": "withoutStreaming" + }, + "codeSamples": [ + { + "name": "cURL", + "language": "cURL", + "code": "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5\" \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\" ", + "type": "language" + }, + { + "name": "Python SDK", + "language": "python", + "code": "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.entities.lookup(\"d4bc3c80-ec1a-3da2-836e-2a4ca4758be5\") ", + "type": "language" + } + ], + "type": "full" + } + ], + "source": { + "file": "../openapi.yml", + "type": "openapi" + } + } + ], + "webhooks": [], + "channel": [], + "groupedSchemas": { + "rootSchemas": { + "Account": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "accountType", + "key": "type", + "schema": { + "generatedName": "accountType", + "nameOverride": "Account", + "title": "Account", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AccountType", + "nameOverride": "Type", + "title": "Type", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountNumber", + "key": "number", + "schema": { + "generatedName": "accountNumber", + "nameOverride": "Account", + "title": "Account", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AccountNumber", + "nameOverride": "Number", + "title": "Number", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountOpeningBalance", + "key": "opening_balance", + "schema": { + "generatedName": "accountOpeningBalance", + "nameOverride": "Account", + "title": "Account", + "value": { + "schema": { + "type": "double" + }, + "generatedName": "AccountOpeningBalance", + "title": "Opening Balance", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountClosingBalance", + "key": "closing_balance", + "schema": { + "generatedName": "accountClosingBalance", + "nameOverride": "Account", + "title": "Account", + "value": { + "schema": { + "type": "double" + }, + "generatedName": "AccountClosingBalance", + "title": "Closing Balance", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountIsoCurrencyCode", + "key": "iso_currency_code", + "schema": { + "generatedName": "accountIsoCurrencyCode", + "nameOverride": "Account", + "title": "Account", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AccountIsoCurrencyCode", + "title": "Iso Currency Code", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Account", + "nameOverride": "Account", + "title": "Account", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "AccountHolder": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "accountHolderType", + "key": "type", + "schema": { + "generatedName": "accountHolderType", + "nameOverride": "AccountHolder", + "title": "AccountHolder", + "value": { + "generatedName": "AccountHolderType", + "schema": "AccountType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "accountHolderName", + "key": "name", + "schema": { + "generatedName": "accountHolderName", + "nameOverride": "AccountHolder", + "title": "AccountHolder", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AccountHolderName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderAddress", + "key": "address", + "schema": { + "generatedName": "accountHolderAddress", + "nameOverride": "AccountHolder", + "title": "AccountHolder", + "value": { + "generatedName": "AccountHolderAddress", + "schema": "Address", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "AccountHolder", + "nameOverride": "AccountHolder", + "title": "AccountHolder", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "AccountHolderCreate": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "accountHolderCreateId", + "key": "id", + "schema": { + "description": "The unique ID of the account holder of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "AccountHolderCreateId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderCreateType", + "key": "type", + "schema": { + "description": "The type of the account holder. ", + "generatedName": "AccountHolderCreateType", + "schema": "AccountHolderType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderCreateName", + "key": "name", + "schema": { + "generatedName": "accountHolderCreateName", + "nameOverride": "AccountHolderCreate", + "title": "AccountHolderCreate", + "value": { + "description": "The name of the account holder", + "schema": { + "type": "string" + }, + "generatedName": "AccountHolderCreateName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "AccountHolderCreate", + "nameOverride": "AccountHolderCreate", + "title": "AccountHolderCreate", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "AccountHolderExternal": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "accountHolderExternalId", + "key": "id", + "schema": { + "description": "The unique ID of the account holder of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "AccountHolderExternalId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderExternalType", + "key": "type", + "schema": { + "description": "The type of the account holder. ", + "generatedName": "AccountHolderExternalType", + "schema": "AccountHolderType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderExternalName", + "key": "name", + "schema": { + "generatedName": "accountHolderExternalName", + "nameOverride": "AccountHolderExternal", + "title": "AccountHolderExternal", + "value": { + "description": "The name of the account holder", + "schema": { + "type": "string" + }, + "generatedName": "AccountHolderExternalName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "accountHolderExternalCreatedAt", + "key": "created_at", + "schema": { + "description": "The timestamp of when the account holder was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "AccountHolderExternalCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "AccountHolderExternal", + "nameOverride": "AccountHolderExternal", + "title": "AccountHolderExternal", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "AccountHolderType": { + "description": "An enumeration.", + "generatedName": "AccountHolderType", + "nameOverride": "AccountHolderType", + "title": "AccountHolderType", + "values": [ + { + "generatedName": "consumer", + "value": "consumer", + "casing": {} + }, + { + "generatedName": "business", + "value": "business", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "AccountType": { + "description": "An enumeration.", + "generatedName": "AccountType", + "nameOverride": "AccountType", + "title": "AccountType", + "values": [ + { + "generatedName": "consumer", + "value": "consumer", + "casing": {} + }, + { + "generatedName": "business", + "value": "business", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "AccountingCategory": { + "description": "An enumeration.", + "generatedName": "AccountingCategory", + "nameOverride": "AccountingCategory", + "title": "AccountingCategory", + "values": [ + { + "generatedName": "OperationalExpenses", + "value": "operational expenses", + "casing": {} + }, + { + "generatedName": "CostOfGoodsSold", + "value": "cost of goods sold", + "casing": {} + }, + { + "generatedName": "revenue", + "value": "revenue", + "casing": {} + }, + { + "generatedName": "financing", + "value": "financing", + "casing": {} + }, + { + "generatedName": "taxes", + "value": "taxes", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "ActionModel": { + "generatedName": "ActionModel", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "Address": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "addressStreet", + "key": "street", + "schema": { + "generatedName": "addressStreet", + "nameOverride": "Address", + "title": "Address", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AddressStreet", + "nameOverride": "Street", + "title": "Street", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "addressPostcode", + "key": "postcode", + "schema": { + "generatedName": "addressPostcode", + "nameOverride": "Address", + "title": "Address", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AddressPostcode", + "nameOverride": "Postcode", + "title": "Postcode", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "addressCity", + "key": "city", + "schema": { + "generatedName": "addressCity", + "nameOverride": "Address", + "title": "Address", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AddressCity", + "nameOverride": "City", + "title": "City", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "addressState", + "key": "state", + "schema": { + "generatedName": "addressState", + "nameOverride": "Address", + "title": "Address", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AddressState", + "nameOverride": "State", + "title": "State", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "addressCountry", + "key": "country", + "schema": { + "generatedName": "addressCountry", + "nameOverride": "Address", + "title": "Address", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "AddressCountry", + "nameOverride": "Country", + "title": "Country", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Address", + "nameOverride": "Address", + "title": "Address", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "AsyncEnrichmentInput": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "asyncEnrichmentInputTransactions", + "key": "transactions", + "schema": { + "value": { + "generatedName": "AsyncEnrichmentInputTransactionsItem", + "schema": "TransactionInput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "AsyncEnrichmentInputTransactions", + "nameOverride": "Transactions", + "title": "Transactions", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "AsyncEnrichmentInput", + "nameOverride": "AsyncEnrichmentInput", + "title": "AsyncEnrichmentInput", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatement": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementId", + "key": "id", + "schema": { + "description": "A unique identifier for the bank statement job.", + "schema": { + "type": "string" + }, + "generatedName": "BankStatementId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementName", + "key": "name", + "schema": { + "generatedName": "bankStatementName", + "nameOverride": "BankStatement", + "title": "BankStatement", + "value": { + "description": "The name of the bank statement file, if available.", + "schema": { + "type": "string" + }, + "generatedName": "BankStatementName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementStatus", + "key": "status", + "schema": { + "description": "The current status of the document.", + "generatedName": "BankStatementStatus", + "schema": "BankStatementStatus", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementCreatedAt", + "key": "created_at", + "schema": { + "description": "The date and time when the job was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "BankStatementCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementFile", + "key": "file", + "schema": { + "description": "Information about the bank statement file being processed.", + "generatedName": "BankStatementFile", + "schema": "BankStatementFile", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementError", + "key": "error", + "schema": { + "generatedName": "bankStatementError", + "nameOverride": "BankStatement", + "title": "BankStatement", + "value": { + "generatedName": "BankStatementError", + "schema": "BankStatementError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "description": "Represents a bank statement with details about the file and its status.", + "generatedName": "BankStatement", + "nameOverride": "BankStatement", + "title": "BankStatement", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatementAccount": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementAccountNumber", + "key": "number", + "schema": { + "generatedName": "bankStatementAccountNumber", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The account number, if available.", + "schema": { + "type": "string" + }, + "generatedName": "BankStatementAccountNumber", + "nameOverride": "Number", + "title": "Number", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountOpeningBalance", + "key": "opening_balance", + "schema": { + "generatedName": "bankStatementAccountOpeningBalance", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The opening balance of the account for the statement period.", + "schema": { + "type": "double" + }, + "generatedName": "BankStatementAccountOpeningBalance", + "title": "Opening Balance", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountClosingBalance", + "key": "closing_balance", + "schema": { + "generatedName": "bankStatementAccountClosingBalance", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The closing balance of the account for the statement period.", + "schema": { + "type": "double" + }, + "generatedName": "BankStatementAccountClosingBalance", + "title": "Closing Balance", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountStartDate", + "key": "start_date", + "schema": { + "generatedName": "bankStatementAccountStartDate", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The start date of the statement period.", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "BankStatementAccountStartDate", + "title": "Start Date", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountEndDate", + "key": "end_date", + "schema": { + "generatedName": "bankStatementAccountEndDate", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The end date of the statement period.", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "BankStatementAccountEndDate", + "title": "End Date", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountIsBalanceReconciled", + "key": "is_balance_reconciled", + "schema": { + "generatedName": "bankStatementAccountIsBalanceReconciled", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "Indicates whether the balance has been reconciled.", + "schema": { + "type": "boolean" + }, + "generatedName": "BankStatementAccountIsBalanceReconciled", + "title": "Is Balance Reconciled", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountTotalIncoming", + "key": "total_incoming", + "schema": { + "generatedName": "bankStatementAccountTotalIncoming", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The sum of amounts of all incoming transactions.", + "schema": { + "type": "double" + }, + "generatedName": "BankStatementAccountTotalIncoming", + "title": "Total Incoming", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountTotalOutgoing", + "key": "total_outgoing", + "schema": { + "generatedName": "bankStatementAccountTotalOutgoing", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "value": { + "description": "The sum of amounts of all outgoing transactions.", + "schema": { + "type": "double" + }, + "generatedName": "BankStatementAccountTotalOutgoing", + "title": "Total Outgoing", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementAccountTransactions", + "key": "transactions", + "schema": { + "description": "List of transactions for this account.", + "value": { + "generatedName": "BankStatementAccountTransactionsItem", + "schema": "BankStatementTransaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "BankStatementAccountTransactions", + "nameOverride": "Transactions", + "title": "Transactions", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BankStatementAccount", + "nameOverride": "BankStatementAccount", + "title": "BankStatementAccount", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatementError": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementErrorCode", + "key": "code", + "schema": { + "generatedName": "BankStatementErrorCode", + "schema": "BankStatementErrorCode", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "bankStatementErrorMessage", + "key": "message", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "BankStatementErrorMessage", + "nameOverride": "Message", + "title": "Message", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BankStatementError", + "nameOverride": "BankStatementError", + "title": "BankStatementError", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatementErrorCode": { + "description": "An enumeration.", + "generatedName": "BankStatementErrorCode", + "nameOverride": "BankStatementErrorCode", + "title": "BankStatementErrorCode", + "values": [ + { + "generatedName": "invalid_bank_statement", + "value": "invalid_bank_statement", + "casing": {} + }, + { + "generatedName": "internal_error", + "value": "internal_error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "BankStatementFile": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementFileNoPages", + "key": "no_pages", + "schema": { + "description": "The number of pages in the bank statement file.", + "schema": { + "type": "int" + }, + "generatedName": "BankStatementFileNoPages", + "title": "No Pages", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementFileSize", + "key": "size", + "schema": { + "generatedName": "bankStatementFileSize", + "nameOverride": "BankStatementFile", + "title": "BankStatementFile", + "value": { + "description": "The size of the bank statement file in bytes, if available.", + "schema": { + "type": "int" + }, + "generatedName": "BankStatementFileSize", + "nameOverride": "Size", + "title": "Size", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BankStatementFile", + "nameOverride": "BankStatementFile", + "title": "BankStatementFile", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatementResults": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementResultsAccounts", + "key": "accounts", + "schema": { + "description": "List of accounts in the bank statement.", + "value": { + "generatedName": "BankStatementResultsAccountsItem", + "schema": "BankStatementAccount", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "BankStatementResultsAccounts", + "nameOverride": "Accounts", + "title": "Accounts", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BankStatementResults", + "nameOverride": "BankStatementResults", + "title": "BankStatementResults", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BankStatementStatus": { + "description": "An enumeration.", + "generatedName": "BankStatementStatus", + "nameOverride": "BankStatementStatus", + "title": "BankStatementStatus", + "values": [ + { + "generatedName": "processing", + "value": "processing", + "casing": {} + }, + { + "generatedName": "completed", + "value": "completed", + "casing": {} + }, + { + "generatedName": "error", + "value": "error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "BankStatementTransaction": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bankStatementTransactionId", + "key": "id", + "schema": { + "description": "A unique identifier of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "BankStatementTransactionId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionDescription", + "key": "description", + "schema": { + "description": "The description string of the transaction", + "schema": { + "minLength": 0, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "BankStatementTransactionDescription", + "nameOverride": "Description", + "title": "Description", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionDate", + "key": "date", + "schema": { + "description": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "BankStatementTransactionDate", + "nameOverride": "Date", + "title": "Date", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionAmount", + "key": "amount", + "schema": { + "description": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "schema": { + "minimum": 0, + "type": "double" + }, + "generatedName": "BankStatementTransactionAmount", + "nameOverride": "Amount", + "title": "Amount", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionEntryType", + "key": "entry_type", + "schema": { + "description": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "generatedName": "BankStatementTransactionEntryType", + "schema": "EntryType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionCurrency", + "key": "currency", + "schema": { + "description": "The currency of the transaction in ISO 4217 format", + "generatedName": "BankStatementTransactionCurrency", + "schema": "Currency", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "bankStatementTransactionRunningBalance", + "key": "running_balance", + "schema": { + "generatedName": "bankStatementTransactionRunningBalance", + "nameOverride": "BankStatementTransaction", + "title": "BankStatementTransaction", + "value": { + "description": "The account's balance when this transaction was performed", + "schema": { + "type": "double" + }, + "generatedName": "BankStatementTransactionRunningBalance", + "title": "Running Balance", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BankStatementTransaction", + "nameOverride": "BankStatementTransaction", + "title": "BankStatementTransaction", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Batch": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "batchId", + "key": "id", + "schema": { + "description": "A unique identifier for the batch.", + "schema": { + "type": "string" + }, + "generatedName": "BatchId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchStatus", + "key": "status", + "schema": { + "description": "The current status of the batch. A batch will error if at least one of the transactions contains an error.", + "generatedName": "BatchStatus", + "schema": "BatchStatus", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchCreatedAt", + "key": "created_at", + "schema": { + "description": "The timestamp of when the batch was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "BatchCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchUpdatedAt", + "key": "updated_at", + "schema": { + "description": "The timestamp of when the batch was last updated.", + "schema": { + "type": "datetime" + }, + "generatedName": "BatchUpdatedAt", + "title": "Updated At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchProgress", + "key": "progress", + "schema": { + "description": "The number of transactions processed so far.", + "schema": { + "type": "int" + }, + "generatedName": "BatchProgress", + "nameOverride": "Progress", + "title": "Progress", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchTotal", + "key": "total", + "schema": { + "description": "The total number of transactions in the batch.", + "schema": { + "type": "int" + }, + "generatedName": "BatchTotal", + "nameOverride": "Total", + "title": "Total", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "description": "The `Batch` object represents the status and progress of an asynchronous batch enrichment job.", + "generatedName": "Batch", + "nameOverride": "Batch", + "title": "Batch", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BatchResult": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "batchResultId", + "key": "id", + "schema": { + "description": "A unique identifier for the batch.", + "schema": { + "type": "string" + }, + "generatedName": "BatchResultId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchResultTotal", + "key": "total", + "schema": { + "description": "The total number of transactions in the batch result.", + "schema": { + "type": "int" + }, + "generatedName": "BatchResultTotal", + "nameOverride": "Total", + "title": "Total", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchResultStatus", + "key": "status", + "schema": { + "description": "The current status of the batch job.", + "generatedName": "BatchResultStatus", + "schema": "BatchStatus", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "batchResultResults", + "key": "results", + "schema": { + "generatedName": "BatchResultResults", + "schema": "EnrichmentResult", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "description": "The `BatchResult` object represents the result of a batch enrichment job, including its status and\nenriched transactions.", + "generatedName": "BatchResult", + "nameOverride": "BatchResult", + "title": "BatchResult", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "BatchStatus": { + "description": "An enumeration.", + "generatedName": "BatchStatus", + "nameOverride": "BatchStatus", + "title": "BatchStatus", + "values": [ + { + "generatedName": "processing", + "value": "processing", + "casing": {} + }, + { + "generatedName": "completed", + "value": "completed", + "casing": {} + }, + { + "generatedName": "error", + "value": "error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Body_post_bank_statement_v3_bank_statements_post": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bodyPostBankStatementV3BankStatementsPostFile", + "key": "file", + "schema": { + "schema": { + "format": "binary", + "type": "string" + }, + "generatedName": "BodyPostBankStatementV3BankStatementsPostFile", + "nameOverride": "File", + "title": "File", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BodyPostBankStatementV3BankStatementsPost", + "title": "Body_post_bank_statement_v3_bank_statements_post", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Body_set_transaction_ah_v3_transactions__id__assign_post": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "bodySetTransactionAhV3TransactionsIdAssignPostAccountHolderId", + "key": "account_holder_id", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "BodySetTransactionAhV3TransactionsIdAssignPostAccountHolderId", + "title": "Account Holder Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "BodySetTransactionAhV3TransactionsIdAssignPost", + "title": "Body_set_transaction_ah_v3_transactions__id__assign_post", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Categories": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "categoriesGeneral", + "key": "general", + "schema": { + "generatedName": "categoriesGeneral", + "nameOverride": "Categories", + "title": "Categories", + "value": { + "description": "The category of the transaction. View the valid set of categories for your key [here](./docs/v3/enrichment/entities).", + "schema": { + "type": "string" + }, + "generatedName": "CategoriesGeneral", + "nameOverride": "General", + "title": "General", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "categoriesAccounting", + "key": "accounting", + "schema": { + "generatedName": "categoriesAccounting", + "nameOverride": "Categories", + "title": "Categories", + "value": { + "description": "The corresponding accounting category. Only available for `business` transactions.", + "generatedName": "CategoriesAccounting", + "schema": "AccountingCategory", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Categories", + "nameOverride": "Categories", + "title": "Categories", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "CategoryConfidence": { + "description": "An enumeration.", + "generatedName": "CategoryConfidence", + "nameOverride": "CategoryConfidence", + "title": "CategoryConfidence", + "values": [ + { + "generatedName": "high", + "value": "high", + "casing": {} + }, + { + "generatedName": "medium", + "value": "medium", + "casing": {} + }, + { + "generatedName": "low", + "value": "low", + "casing": {} + }, + { + "generatedName": "unknown", + "value": "unknown", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "CategorySet": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "categorySetIncoming", + "key": "incoming", + "schema": { + "value": { + "schema": { + "type": "string" + }, + "generatedName": "CategorySetIncomingItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "CategorySetIncoming", + "nameOverride": "Incoming", + "title": "Incoming", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "categorySetOutgoing", + "key": "outgoing", + "schema": { + "value": { + "schema": { + "type": "string" + }, + "generatedName": "CategorySetOutgoingItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "CategorySetOutgoing", + "nameOverride": "Outgoing", + "title": "Outgoing", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "CategorySet", + "nameOverride": "CategorySet", + "title": "CategorySet", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Counterparty": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "counterpartyId", + "key": "id", + "schema": { + "generatedName": "counterpartyId", + "nameOverride": "Counterparty", + "title": "Counterparty", + "value": { + "description": "The unique UUID identifier of the entity", + "schema": { + "type": "string" + }, + "generatedName": "CounterpartyId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "counterpartyName", + "key": "name", + "schema": { + "generatedName": "counterpartyName", + "nameOverride": "Counterparty", + "title": "Counterparty", + "value": { + "description": "The name of the entity", + "schema": { + "type": "string" + }, + "generatedName": "CounterpartyName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "counterpartyWebsite", + "key": "website", + "schema": { + "generatedName": "counterpartyWebsite", + "nameOverride": "Counterparty", + "title": "Counterparty", + "value": { + "description": "The website URL of the entity", + "schema": { + "type": "string" + }, + "generatedName": "CounterpartyWebsite", + "nameOverride": "Website", + "title": "Website", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "counterpartyLogo", + "key": "logo", + "schema": { + "generatedName": "counterpartyLogo", + "nameOverride": "Counterparty", + "title": "Counterparty", + "value": { + "description": "Logo's URL", + "schema": { + "type": "string" + }, + "generatedName": "CounterpartyLogo", + "nameOverride": "Logo", + "title": "Logo", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "counterpartyMccs", + "key": "mccs", + "schema": { + "generatedName": "counterpartyMccs", + "nameOverride": "Counterparty", + "title": "Counterparty", + "value": { + "description": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "value": { + "schema": { + "type": "int" + }, + "generatedName": "CounterpartyMccsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "CounterpartyMccs", + "nameOverride": "Mccs", + "title": "Mccs", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "counterpartyType", + "key": "type", + "schema": { + "generatedName": "CounterpartyType", + "schema": "CounterpartyType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Counterparty", + "nameOverride": "Counterparty", + "title": "Counterparty", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "CounterpartyType": { + "description": "An enumeration.", + "generatedName": "CounterpartyType", + "nameOverride": "CounterpartyType", + "title": "CounterpartyType", + "values": [ + { + "generatedName": "person", + "value": "person", + "casing": {} + }, + { + "generatedName": "organization", + "value": "organization", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Country": { + "description": "An enumeration.", + "generatedName": "Country", + "nameOverride": "Country", + "title": "Country", + "values": [ + { + "generatedName": "AD", + "value": "AD", + "casing": {} + }, + { + "generatedName": "AE", + "value": "AE", + "casing": {} + }, + { + "generatedName": "AF", + "value": "AF", + "casing": {} + }, + { + "generatedName": "AG", + "value": "AG", + "casing": {} + }, + { + "generatedName": "AI", + "value": "AI", + "casing": {} + }, + { + "generatedName": "AL", + "value": "AL", + "casing": {} + }, + { + "generatedName": "AM", + "value": "AM", + "casing": {} + }, + { + "generatedName": "AO", + "value": "AO", + "casing": {} + }, + { + "generatedName": "AR", + "value": "AR", + "casing": {} + }, + { + "generatedName": "AS", + "value": "AS", + "casing": {} + }, + { + "generatedName": "AT", + "value": "AT", + "casing": {} + }, + { + "generatedName": "AU", + "value": "AU", + "casing": {} + }, + { + "generatedName": "AW", + "value": "AW", + "casing": {} + }, + { + "generatedName": "AZ", + "value": "AZ", + "casing": {} + }, + { + "generatedName": "BA", + "value": "BA", + "casing": {} + }, + { + "generatedName": "BB", + "value": "BB", + "casing": {} + }, + { + "generatedName": "BD", + "value": "BD", + "casing": {} + }, + { + "generatedName": "BE", + "value": "BE", + "casing": {} + }, + { + "generatedName": "BF", + "value": "BF", + "casing": {} + }, + { + "generatedName": "BG", + "value": "BG", + "casing": {} + }, + { + "generatedName": "BH", + "value": "BH", + "casing": {} + }, + { + "generatedName": "BI", + "value": "BI", + "casing": {} + }, + { + "generatedName": "BJ", + "value": "BJ", + "casing": {} + }, + { + "generatedName": "BL", + "value": "BL", + "casing": {} + }, + { + "generatedName": "BM", + "value": "BM", + "casing": {} + }, + { + "generatedName": "BN", + "value": "BN", + "casing": {} + }, + { + "generatedName": "BO", + "value": "BO", + "casing": {} + }, + { + "generatedName": "BQ", + "value": "BQ", + "casing": {} + }, + { + "generatedName": "BR", + "value": "BR", + "casing": {} + }, + { + "generatedName": "BS", + "value": "BS", + "casing": {} + }, + { + "generatedName": "BT", + "value": "BT", + "casing": {} + }, + { + "generatedName": "BV", + "value": "BV", + "casing": {} + }, + { + "generatedName": "BW", + "value": "BW", + "casing": {} + }, + { + "generatedName": "BY", + "value": "BY", + "casing": {} + }, + { + "generatedName": "BZ", + "value": "BZ", + "casing": {} + }, + { + "generatedName": "CA", + "value": "CA", + "casing": {} + }, + { + "generatedName": "CC", + "value": "CC", + "casing": {} + }, + { + "generatedName": "CD", + "value": "CD", + "casing": {} + }, + { + "generatedName": "CF", + "value": "CF", + "casing": {} + }, + { + "generatedName": "CG", + "value": "CG", + "casing": {} + }, + { + "generatedName": "CH", + "value": "CH", + "casing": {} + }, + { + "generatedName": "CI", + "value": "CI", + "casing": {} + }, + { + "generatedName": "CK", + "value": "CK", + "casing": {} + }, + { + "generatedName": "CL", + "value": "CL", + "casing": {} + }, + { + "generatedName": "CM", + "value": "CM", + "casing": {} + }, + { + "generatedName": "CN", + "value": "CN", + "casing": {} + }, + { + "generatedName": "CO", + "value": "CO", + "casing": {} + }, + { + "generatedName": "CR", + "value": "CR", + "casing": {} + }, + { + "generatedName": "CU", + "value": "CU", + "casing": {} + }, + { + "generatedName": "CV", + "value": "CV", + "casing": {} + }, + { + "generatedName": "CW", + "value": "CW", + "casing": {} + }, + { + "generatedName": "CX", + "value": "CX", + "casing": {} + }, + { + "generatedName": "CY", + "value": "CY", + "casing": {} + }, + { + "generatedName": "CZ", + "value": "CZ", + "casing": {} + }, + { + "generatedName": "DE", + "value": "DE", + "casing": {} + }, + { + "generatedName": "DJ", + "value": "DJ", + "casing": {} + }, + { + "generatedName": "DK", + "value": "DK", + "casing": {} + }, + { + "generatedName": "DM", + "value": "DM", + "casing": {} + }, + { + "generatedName": "DO", + "value": "DO", + "casing": {} + }, + { + "generatedName": "DZ", + "value": "DZ", + "casing": {} + }, + { + "generatedName": "EC", + "value": "EC", + "casing": {} + }, + { + "generatedName": "EE", + "value": "EE", + "casing": {} + }, + { + "generatedName": "EG", + "value": "EG", + "casing": {} + }, + { + "generatedName": "EH", + "value": "EH", + "casing": {} + }, + { + "generatedName": "ER", + "value": "ER", + "casing": {} + }, + { + "generatedName": "ES", + "value": "ES", + "casing": {} + }, + { + "generatedName": "ET", + "value": "ET", + "casing": {} + }, + { + "generatedName": "FI", + "value": "FI", + "casing": {} + }, + { + "generatedName": "FJ", + "value": "FJ", + "casing": {} + }, + { + "generatedName": "FK", + "value": "FK", + "casing": {} + }, + { + "generatedName": "FM", + "value": "FM", + "casing": {} + }, + { + "generatedName": "FR", + "value": "FR", + "casing": {} + }, + { + "generatedName": "GA", + "value": "GA", + "casing": {} + }, + { + "generatedName": "GB", + "value": "GB", + "casing": {} + }, + { + "generatedName": "GD", + "value": "GD", + "casing": {} + }, + { + "generatedName": "GE", + "value": "GE", + "casing": {} + }, + { + "generatedName": "GF", + "value": "GF", + "casing": {} + }, + { + "generatedName": "GG", + "value": "GG", + "casing": {} + }, + { + "generatedName": "GH", + "value": "GH", + "casing": {} + }, + { + "generatedName": "GI", + "value": "GI", + "casing": {} + }, + { + "generatedName": "GL", + "value": "GL", + "casing": {} + }, + { + "generatedName": "GM", + "value": "GM", + "casing": {} + }, + { + "generatedName": "GN", + "value": "GN", + "casing": {} + }, + { + "generatedName": "GP", + "value": "GP", + "casing": {} + }, + { + "generatedName": "GQ", + "value": "GQ", + "casing": {} + }, + { + "generatedName": "GR", + "value": "GR", + "casing": {} + }, + { + "generatedName": "GS", + "value": "GS", + "casing": {} + }, + { + "generatedName": "GT", + "value": "GT", + "casing": {} + }, + { + "generatedName": "GU", + "value": "GU", + "casing": {} + }, + { + "generatedName": "GW", + "value": "GW", + "casing": {} + }, + { + "generatedName": "GY", + "value": "GY", + "casing": {} + }, + { + "generatedName": "HK", + "value": "HK", + "casing": {} + }, + { + "generatedName": "HM", + "value": "HM", + "casing": {} + }, + { + "generatedName": "HN", + "value": "HN", + "casing": {} + }, + { + "generatedName": "HR", + "value": "HR", + "casing": {} + }, + { + "generatedName": "HT", + "value": "HT", + "casing": {} + }, + { + "generatedName": "HU", + "value": "HU", + "casing": {} + }, + { + "generatedName": "ID", + "value": "ID", + "casing": {} + }, + { + "generatedName": "IE", + "value": "IE", + "casing": {} + }, + { + "generatedName": "IL", + "value": "IL", + "casing": {} + }, + { + "generatedName": "IM", + "value": "IM", + "casing": {} + }, + { + "generatedName": "IN", + "value": "IN", + "casing": {} + }, + { + "generatedName": "IO", + "value": "IO", + "casing": {} + }, + { + "generatedName": "IQ", + "value": "IQ", + "casing": {} + }, + { + "generatedName": "IR", + "value": "IR", + "casing": {} + }, + { + "generatedName": "IS", + "value": "IS", + "casing": {} + }, + { + "generatedName": "IT", + "value": "IT", + "casing": {} + }, + { + "generatedName": "JE", + "value": "JE", + "casing": {} + }, + { + "generatedName": "JM", + "value": "JM", + "casing": {} + }, + { + "generatedName": "JO", + "value": "JO", + "casing": {} + }, + { + "generatedName": "JP", + "value": "JP", + "casing": {} + }, + { + "generatedName": "KE", + "value": "KE", + "casing": {} + }, + { + "generatedName": "KG", + "value": "KG", + "casing": {} + }, + { + "generatedName": "KH", + "value": "KH", + "casing": {} + }, + { + "generatedName": "KI", + "value": "KI", + "casing": {} + }, + { + "generatedName": "KM", + "value": "KM", + "casing": {} + }, + { + "generatedName": "KN", + "value": "KN", + "casing": {} + }, + { + "generatedName": "KP", + "value": "KP", + "casing": {} + }, + { + "generatedName": "KR", + "value": "KR", + "casing": {} + }, + { + "generatedName": "KW", + "value": "KW", + "casing": {} + }, + { + "generatedName": "KY", + "value": "KY", + "casing": {} + }, + { + "generatedName": "KZ", + "value": "KZ", + "casing": {} + }, + { + "generatedName": "LA", + "value": "LA", + "casing": {} + }, + { + "generatedName": "LB", + "value": "LB", + "casing": {} + }, + { + "generatedName": "LC", + "value": "LC", + "casing": {} + }, + { + "generatedName": "LI", + "value": "LI", + "casing": {} + }, + { + "generatedName": "LK", + "value": "LK", + "casing": {} + }, + { + "generatedName": "LR", + "value": "LR", + "casing": {} + }, + { + "generatedName": "LS", + "value": "LS", + "casing": {} + }, + { + "generatedName": "LT", + "value": "LT", + "casing": {} + }, + { + "generatedName": "LU", + "value": "LU", + "casing": {} + }, + { + "generatedName": "LV", + "value": "LV", + "casing": {} + }, + { + "generatedName": "LY", + "value": "LY", + "casing": {} + }, + { + "generatedName": "MA", + "value": "MA", + "casing": {} + }, + { + "generatedName": "MC", + "value": "MC", + "casing": {} + }, + { + "generatedName": "MD", + "value": "MD", + "casing": {} + }, + { + "generatedName": "ME", + "value": "ME", + "casing": {} + }, + { + "generatedName": "MF", + "value": "MF", + "casing": {} + }, + { + "generatedName": "MG", + "value": "MG", + "casing": {} + }, + { + "generatedName": "MH", + "value": "MH", + "casing": {} + }, + { + "generatedName": "MK", + "value": "MK", + "casing": {} + }, + { + "generatedName": "ML", + "value": "ML", + "casing": {} + }, + { + "generatedName": "MM", + "value": "MM", + "casing": {} + }, + { + "generatedName": "MN", + "value": "MN", + "casing": {} + }, + { + "generatedName": "MO", + "value": "MO", + "casing": {} + }, + { + "generatedName": "MP", + "value": "MP", + "casing": {} + }, + { + "generatedName": "MQ", + "value": "MQ", + "casing": {} + }, + { + "generatedName": "MR", + "value": "MR", + "casing": {} + }, + { + "generatedName": "MS", + "value": "MS", + "casing": {} + }, + { + "generatedName": "MT", + "value": "MT", + "casing": {} + }, + { + "generatedName": "MU", + "value": "MU", + "casing": {} + }, + { + "generatedName": "MV", + "value": "MV", + "casing": {} + }, + { + "generatedName": "MW", + "value": "MW", + "casing": {} + }, + { + "generatedName": "MX", + "value": "MX", + "casing": {} + }, + { + "generatedName": "MY", + "value": "MY", + "casing": {} + }, + { + "generatedName": "MZ", + "value": "MZ", + "casing": {} + }, + { + "generatedName": "NA", + "value": "NA", + "casing": {} + }, + { + "generatedName": "NC", + "value": "NC", + "casing": {} + }, + { + "generatedName": "NE", + "value": "NE", + "casing": {} + }, + { + "generatedName": "NF", + "value": "NF", + "casing": {} + }, + { + "generatedName": "NG", + "value": "NG", + "casing": {} + }, + { + "generatedName": "NI", + "value": "NI", + "casing": {} + }, + { + "generatedName": "NL", + "value": "NL", + "casing": {} + }, + { + "generatedName": "NO", + "value": "NO", + "casing": {} + }, + { + "generatedName": "NP", + "value": "NP", + "casing": {} + }, + { + "generatedName": "NR", + "value": "NR", + "casing": {} + }, + { + "generatedName": "NU", + "value": "NU", + "casing": {} + }, + { + "generatedName": "NZ", + "value": "NZ", + "casing": {} + }, + { + "generatedName": "OM", + "value": "OM", + "casing": {} + }, + { + "generatedName": "PA", + "value": "PA", + "casing": {} + }, + { + "generatedName": "PE", + "value": "PE", + "casing": {} + }, + { + "generatedName": "PF", + "value": "PF", + "casing": {} + }, + { + "generatedName": "PG", + "value": "PG", + "casing": {} + }, + { + "generatedName": "PH", + "value": "PH", + "casing": {} + }, + { + "generatedName": "PK", + "value": "PK", + "casing": {} + }, + { + "generatedName": "PL", + "value": "PL", + "casing": {} + }, + { + "generatedName": "PM", + "value": "PM", + "casing": {} + }, + { + "generatedName": "PN", + "value": "PN", + "casing": {} + }, + { + "generatedName": "PR", + "value": "PR", + "casing": {} + }, + { + "generatedName": "PS", + "value": "PS", + "casing": {} + }, + { + "generatedName": "PT", + "value": "PT", + "casing": {} + }, + { + "generatedName": "PW", + "value": "PW", + "casing": {} + }, + { + "generatedName": "PY", + "value": "PY", + "casing": {} + }, + { + "generatedName": "QA", + "value": "QA", + "casing": {} + }, + { + "generatedName": "RE", + "value": "RE", + "casing": {} + }, + { + "generatedName": "RO", + "value": "RO", + "casing": {} + }, + { + "generatedName": "RS", + "value": "RS", + "casing": {} + }, + { + "generatedName": "RU", + "value": "RU", + "casing": {} + }, + { + "generatedName": "RW", + "value": "RW", + "casing": {} + }, + { + "generatedName": "SA", + "value": "SA", + "casing": {} + }, + { + "generatedName": "SB", + "value": "SB", + "casing": {} + }, + { + "generatedName": "SC", + "value": "SC", + "casing": {} + }, + { + "generatedName": "SD", + "value": "SD", + "casing": {} + }, + { + "generatedName": "SE", + "value": "SE", + "casing": {} + }, + { + "generatedName": "SG", + "value": "SG", + "casing": {} + }, + { + "generatedName": "SH", + "value": "SH", + "casing": {} + }, + { + "generatedName": "SI", + "value": "SI", + "casing": {} + }, + { + "generatedName": "SJ", + "value": "SJ", + "casing": {} + }, + { + "generatedName": "SK", + "value": "SK", + "casing": {} + }, + { + "generatedName": "SL", + "value": "SL", + "casing": {} + }, + { + "generatedName": "SM", + "value": "SM", + "casing": {} + }, + { + "generatedName": "SN", + "value": "SN", + "casing": {} + }, + { + "generatedName": "SO", + "value": "SO", + "casing": {} + }, + { + "generatedName": "SR", + "value": "SR", + "casing": {} + }, + { + "generatedName": "SS", + "value": "SS", + "casing": {} + }, + { + "generatedName": "ST", + "value": "ST", + "casing": {} + }, + { + "generatedName": "SV", + "value": "SV", + "casing": {} + }, + { + "generatedName": "SX", + "value": "SX", + "casing": {} + }, + { + "generatedName": "SY", + "value": "SY", + "casing": {} + }, + { + "generatedName": "SZ", + "value": "SZ", + "casing": {} + }, + { + "generatedName": "TC", + "value": "TC", + "casing": {} + }, + { + "generatedName": "TD", + "value": "TD", + "casing": {} + }, + { + "generatedName": "TG", + "value": "TG", + "casing": {} + }, + { + "generatedName": "TH", + "value": "TH", + "casing": {} + }, + { + "generatedName": "TJ", + "value": "TJ", + "casing": {} + }, + { + "generatedName": "TK", + "value": "TK", + "casing": {} + }, + { + "generatedName": "TL", + "value": "TL", + "casing": {} + }, + { + "generatedName": "TM", + "value": "TM", + "casing": {} + }, + { + "generatedName": "TN", + "value": "TN", + "casing": {} + }, + { + "generatedName": "TO", + "value": "TO", + "casing": {} + }, + { + "generatedName": "TR", + "value": "TR", + "casing": {} + }, + { + "generatedName": "TT", + "value": "TT", + "casing": {} + }, + { + "generatedName": "TV", + "value": "TV", + "casing": {} + }, + { + "generatedName": "TW", + "value": "TW", + "casing": {} + }, + { + "generatedName": "TZ", + "value": "TZ", + "casing": {} + }, + { + "generatedName": "UA", + "value": "UA", + "casing": {} + }, + { + "generatedName": "UG", + "value": "UG", + "casing": {} + }, + { + "generatedName": "UM", + "value": "UM", + "casing": {} + }, + { + "generatedName": "US", + "value": "US", + "casing": {} + }, + { + "generatedName": "UY", + "value": "UY", + "casing": {} + }, + { + "generatedName": "UZ", + "value": "UZ", + "casing": {} + }, + { + "generatedName": "VC", + "value": "VC", + "casing": {} + }, + { + "generatedName": "VE", + "value": "VE", + "casing": {} + }, + { + "generatedName": "VG", + "value": "VG", + "casing": {} + }, + { + "generatedName": "VI", + "value": "VI", + "casing": {} + }, + { + "generatedName": "VN", + "value": "VN", + "casing": {} + }, + { + "generatedName": "VU", + "value": "VU", + "casing": {} + }, + { + "generatedName": "WF", + "value": "WF", + "casing": {} + }, + { + "generatedName": "WS", + "value": "WS", + "casing": {} + }, + { + "generatedName": "YE", + "value": "YE", + "casing": {} + }, + { + "generatedName": "YT", + "value": "YT", + "casing": {} + }, + { + "generatedName": "ZA", + "value": "ZA", + "casing": {} + }, + { + "generatedName": "ZM", + "value": "ZM", + "casing": {} + }, + { + "generatedName": "ZW", + "value": "ZW", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Currency": { + "description": "An enumeration.", + "generatedName": "Currency", + "nameOverride": "Currency", + "title": "Currency", + "values": [ + { + "generatedName": "EUR", + "value": "EUR", + "casing": {} + }, + { + "generatedName": "AED", + "value": "AED", + "casing": {} + }, + { + "generatedName": "AFN", + "value": "AFN", + "casing": {} + }, + { + "generatedName": "XCD", + "value": "XCD", + "casing": {} + }, + { + "generatedName": "ALL", + "value": "ALL", + "casing": {} + }, + { + "generatedName": "AMD", + "value": "AMD", + "casing": {} + }, + { + "generatedName": "AOA", + "value": "AOA", + "casing": {} + }, + { + "generatedName": "ARS", + "value": "ARS", + "casing": {} + }, + { + "generatedName": "USD", + "value": "USD", + "casing": {} + }, + { + "generatedName": "AUD", + "value": "AUD", + "casing": {} + }, + { + "generatedName": "AWG", + "value": "AWG", + "casing": {} + }, + { + "generatedName": "AZN", + "value": "AZN", + "casing": {} + }, + { + "generatedName": "BAM", + "value": "BAM", + "casing": {} + }, + { + "generatedName": "BBD", + "value": "BBD", + "casing": {} + }, + { + "generatedName": "BDT", + "value": "BDT", + "casing": {} + }, + { + "generatedName": "XOF", + "value": "XOF", + "casing": {} + }, + { + "generatedName": "BGN", + "value": "BGN", + "casing": {} + }, + { + "generatedName": "BHD", + "value": "BHD", + "casing": {} + }, + { + "generatedName": "BIF", + "value": "BIF", + "casing": {} + }, + { + "generatedName": "BMD", + "value": "BMD", + "casing": {} + }, + { + "generatedName": "BND", + "value": "BND", + "casing": {} + }, + { + "generatedName": "BOB", + "value": "BOB", + "casing": {} + }, + { + "generatedName": "BRL", + "value": "BRL", + "casing": {} + }, + { + "generatedName": "BSD", + "value": "BSD", + "casing": {} + }, + { + "generatedName": "INR", + "value": "INR", + "casing": {} + }, + { + "generatedName": "NOK", + "value": "NOK", + "casing": {} + }, + { + "generatedName": "BWP", + "value": "BWP", + "casing": {} + }, + { + "generatedName": "BYR", + "value": "BYR", + "casing": {} + }, + { + "generatedName": "BZD", + "value": "BZD", + "casing": {} + }, + { + "generatedName": "CAD", + "value": "CAD", + "casing": {} + }, + { + "generatedName": "CDF", + "value": "CDF", + "casing": {} + }, + { + "generatedName": "XAF", + "value": "XAF", + "casing": {} + }, + { + "generatedName": "CHF", + "value": "CHF", + "casing": {} + }, + { + "generatedName": "NZD", + "value": "NZD", + "casing": {} + }, + { + "generatedName": "CLP", + "value": "CLP", + "casing": {} + }, + { + "generatedName": "CNY", + "value": "CNY", + "casing": {} + }, + { + "generatedName": "COP", + "value": "COP", + "casing": {} + }, + { + "generatedName": "CRC", + "value": "CRC", + "casing": {} + }, + { + "generatedName": "CUP", + "value": "CUP", + "casing": {} + }, + { + "generatedName": "CVE", + "value": "CVE", + "casing": {} + }, + { + "generatedName": "ANG", + "value": "ANG", + "casing": {} + }, + { + "generatedName": "CZK", + "value": "CZK", + "casing": {} + }, + { + "generatedName": "DJF", + "value": "DJF", + "casing": {} + }, + { + "generatedName": "DKK", + "value": "DKK", + "casing": {} + }, + { + "generatedName": "DOP", + "value": "DOP", + "casing": {} + }, + { + "generatedName": "DZD", + "value": "DZD", + "casing": {} + }, + { + "generatedName": "EGP", + "value": "EGP", + "casing": {} + }, + { + "generatedName": "MAD", + "value": "MAD", + "casing": {} + }, + { + "generatedName": "ERN", + "value": "ERN", + "casing": {} + }, + { + "generatedName": "ETB", + "value": "ETB", + "casing": {} + }, + { + "generatedName": "FJD", + "value": "FJD", + "casing": {} + }, + { + "generatedName": "FKP", + "value": "FKP", + "casing": {} + }, + { + "generatedName": "GBP", + "value": "GBP", + "casing": {} + }, + { + "generatedName": "GEL", + "value": "GEL", + "casing": {} + }, + { + "generatedName": "GHS", + "value": "GHS", + "casing": {} + }, + { + "generatedName": "GIP", + "value": "GIP", + "casing": {} + }, + { + "generatedName": "GMD", + "value": "GMD", + "casing": {} + }, + { + "generatedName": "GNF", + "value": "GNF", + "casing": {} + }, + { + "generatedName": "GTQ", + "value": "GTQ", + "casing": {} + }, + { + "generatedName": "GYD", + "value": "GYD", + "casing": {} + }, + { + "generatedName": "HKD", + "value": "HKD", + "casing": {} + }, + { + "generatedName": "HNL", + "value": "HNL", + "casing": {} + }, + { + "generatedName": "HUF", + "value": "HUF", + "casing": {} + }, + { + "generatedName": "IDR", + "value": "IDR", + "casing": {} + }, + { + "generatedName": "ILS", + "value": "ILS", + "casing": {} + }, + { + "generatedName": "IQD", + "value": "IQD", + "casing": {} + }, + { + "generatedName": "IRR", + "value": "IRR", + "casing": {} + }, + { + "generatedName": "ISK", + "value": "ISK", + "casing": {} + }, + { + "generatedName": "JMD", + "value": "JMD", + "casing": {} + }, + { + "generatedName": "JOD", + "value": "JOD", + "casing": {} + }, + { + "generatedName": "JPY", + "value": "JPY", + "casing": {} + }, + { + "generatedName": "KES", + "value": "KES", + "casing": {} + }, + { + "generatedName": "KGS", + "value": "KGS", + "casing": {} + }, + { + "generatedName": "KHR", + "value": "KHR", + "casing": {} + }, + { + "generatedName": "KMF", + "value": "KMF", + "casing": {} + }, + { + "generatedName": "KPW", + "value": "KPW", + "casing": {} + }, + { + "generatedName": "KRW", + "value": "KRW", + "casing": {} + }, + { + "generatedName": "KWD", + "value": "KWD", + "casing": {} + }, + { + "generatedName": "KYD", + "value": "KYD", + "casing": {} + }, + { + "generatedName": "KZT", + "value": "KZT", + "casing": {} + }, + { + "generatedName": "LAK", + "value": "LAK", + "casing": {} + }, + { + "generatedName": "LBP", + "value": "LBP", + "casing": {} + }, + { + "generatedName": "LKR", + "value": "LKR", + "casing": {} + }, + { + "generatedName": "LRD", + "value": "LRD", + "casing": {} + }, + { + "generatedName": "ZAR", + "value": "ZAR", + "casing": {} + }, + { + "generatedName": "LYD", + "value": "LYD", + "casing": {} + }, + { + "generatedName": "MDL", + "value": "MDL", + "casing": {} + }, + { + "generatedName": "MGA", + "value": "MGA", + "casing": {} + }, + { + "generatedName": "MKD", + "value": "MKD", + "casing": {} + }, + { + "generatedName": "MMK", + "value": "MMK", + "casing": {} + }, + { + "generatedName": "MNT", + "value": "MNT", + "casing": {} + }, + { + "generatedName": "MOP", + "value": "MOP", + "casing": {} + }, + { + "generatedName": "MRO", + "value": "MRO", + "casing": {} + }, + { + "generatedName": "MUR", + "value": "MUR", + "casing": {} + }, + { + "generatedName": "MVR", + "value": "MVR", + "casing": {} + }, + { + "generatedName": "MWK", + "value": "MWK", + "casing": {} + }, + { + "generatedName": "MXN", + "value": "MXN", + "casing": {} + }, + { + "generatedName": "MYR", + "value": "MYR", + "casing": {} + }, + { + "generatedName": "MZN", + "value": "MZN", + "casing": {} + }, + { + "generatedName": "XPF", + "value": "XPF", + "casing": {} + }, + { + "generatedName": "NGN", + "value": "NGN", + "casing": {} + }, + { + "generatedName": "NIO", + "value": "NIO", + "casing": {} + }, + { + "generatedName": "NPR", + "value": "NPR", + "casing": {} + }, + { + "generatedName": "OMR", + "value": "OMR", + "casing": {} + }, + { + "generatedName": "PEN", + "value": "PEN", + "casing": {} + }, + { + "generatedName": "PGK", + "value": "PGK", + "casing": {} + }, + { + "generatedName": "PHP", + "value": "PHP", + "casing": {} + }, + { + "generatedName": "PKR", + "value": "PKR", + "casing": {} + }, + { + "generatedName": "PLN", + "value": "PLN", + "casing": {} + }, + { + "generatedName": "PYG", + "value": "PYG", + "casing": {} + }, + { + "generatedName": "QAR", + "value": "QAR", + "casing": {} + }, + { + "generatedName": "RON", + "value": "RON", + "casing": {} + }, + { + "generatedName": "RSD", + "value": "RSD", + "casing": {} + }, + { + "generatedName": "RUB", + "value": "RUB", + "casing": {} + }, + { + "generatedName": "RWF", + "value": "RWF", + "casing": {} + }, + { + "generatedName": "SAR", + "value": "SAR", + "casing": {} + }, + { + "generatedName": "SBD", + "value": "SBD", + "casing": {} + }, + { + "generatedName": "SCR", + "value": "SCR", + "casing": {} + }, + { + "generatedName": "SDG", + "value": "SDG", + "casing": {} + }, + { + "generatedName": "SEK", + "value": "SEK", + "casing": {} + }, + { + "generatedName": "SGD", + "value": "SGD", + "casing": {} + }, + { + "generatedName": "SHP", + "value": "SHP", + "casing": {} + }, + { + "generatedName": "SLL", + "value": "SLL", + "casing": {} + }, + { + "generatedName": "SOS", + "value": "SOS", + "casing": {} + }, + { + "generatedName": "SRD", + "value": "SRD", + "casing": {} + }, + { + "generatedName": "SSP", + "value": "SSP", + "casing": {} + }, + { + "generatedName": "STD", + "value": "STD", + "casing": {} + }, + { + "generatedName": "SYP", + "value": "SYP", + "casing": {} + }, + { + "generatedName": "SZL", + "value": "SZL", + "casing": {} + }, + { + "generatedName": "THB", + "value": "THB", + "casing": {} + }, + { + "generatedName": "TJS", + "value": "TJS", + "casing": {} + }, + { + "generatedName": "TMT", + "value": "TMT", + "casing": {} + }, + { + "generatedName": "TND", + "value": "TND", + "casing": {} + }, + { + "generatedName": "TOP", + "value": "TOP", + "casing": {} + }, + { + "generatedName": "TRY", + "value": "TRY", + "casing": {} + }, + { + "generatedName": "TTD", + "value": "TTD", + "casing": {} + }, + { + "generatedName": "TWD", + "value": "TWD", + "casing": {} + }, + { + "generatedName": "TZS", + "value": "TZS", + "casing": {} + }, + { + "generatedName": "UAH", + "value": "UAH", + "casing": {} + }, + { + "generatedName": "UGX", + "value": "UGX", + "casing": {} + }, + { + "generatedName": "UYU", + "value": "UYU", + "casing": {} + }, + { + "generatedName": "UZS", + "value": "UZS", + "casing": {} + }, + { + "generatedName": "VEF", + "value": "VEF", + "casing": {} + }, + { + "generatedName": "VND", + "value": "VND", + "casing": {} + }, + { + "generatedName": "VUV", + "value": "VUV", + "casing": {} + }, + { + "generatedName": "WST", + "value": "WST", + "casing": {} + }, + { + "generatedName": "YER", + "value": "YER", + "casing": {} + }, + { + "generatedName": "ZMW", + "value": "ZMW", + "casing": {} + }, + { + "generatedName": "ZWL", + "value": "ZWL", + "casing": {} + }, + { + "generatedName": "HRK", + "value": "HRK", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "CustomCategorySet": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "customCategorySetIncoming", + "key": "incoming", + "schema": { + "value": { + "schema": { + "type": "string" + }, + "generatedName": "CustomCategorySetIncomingItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "CustomCategorySetIncoming", + "nameOverride": "Incoming", + "title": "Incoming", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "customCategorySetOutgoing", + "key": "outgoing", + "schema": { + "value": { + "schema": { + "type": "string" + }, + "generatedName": "CustomCategorySetOutgoingItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "CustomCategorySetOutgoing", + "nameOverride": "Outgoing", + "title": "Outgoing", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "CustomCategorySet", + "nameOverride": "CustomCategorySet", + "title": "CustomCategorySet", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "DocumentStatus": { + "description": "An enumeration.", + "generatedName": "DocumentStatus", + "nameOverride": "DocumentStatus", + "title": "DocumentStatus", + "values": [ + { + "generatedName": "queued", + "value": "queued", + "casing": {} + }, + { + "generatedName": "processing", + "value": "processing", + "casing": {} + }, + { + "generatedName": "processed", + "value": "processed", + "casing": {} + }, + { + "generatedName": "failed", + "value": "failed", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "EnrichedTransaction": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "enrichedTransactionEntities", + "key": "entities", + "schema": { + "generatedName": "enrichedTransactionEntities", + "nameOverride": "EnrichedTransaction", + "title": "EnrichedTransaction", + "value": { + "generatedName": "EnrichedTransactionEntities", + "schema": "Entities", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "enrichedTransactionCategories", + "key": "categories", + "schema": { + "generatedName": "enrichedTransactionCategories", + "nameOverride": "EnrichedTransaction", + "title": "EnrichedTransaction", + "value": { + "generatedName": "EnrichedTransactionCategories", + "schema": "Categories", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "enrichedTransactionLocation", + "key": "location", + "schema": { + "generatedName": "enrichedTransactionLocation", + "nameOverride": "EnrichedTransaction", + "title": "EnrichedTransaction", + "value": { + "generatedName": "EnrichedTransactionLocation", + "schema": "Location", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "enrichedTransactionError", + "key": "error", + "schema": { + "generatedName": "enrichedTransactionError", + "nameOverride": "EnrichedTransaction", + "title": "EnrichedTransaction", + "value": { + "generatedName": "EnrichedTransactionError", + "schema": "TransactionError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "enrichedTransactionCreatedAt", + "key": "created_at", + "schema": { + "description": "The timestamp of when the account holder was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "EnrichedTransactionCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "enrichedTransactionId", + "key": "id", + "schema": { + "description": "A unique identifier for the transaction. If two transactions are submitted with the same `id` the most recent one will replace the previous one.", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "EnrichedTransactionId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "EnrichedTransaction", + "nameOverride": "EnrichedTransaction", + "title": "EnrichedTransaction", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "EnrichmentResult": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "enrichmentResultTransactions", + "key": "transactions", + "schema": { + "description": "A list of enriched transactions resulting from the enrichment of this batch.", + "value": { + "generatedName": "EnrichmentResultTransactionsItem", + "schema": "EnrichedTransaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "EnrichmentResultTransactions", + "nameOverride": "Transactions", + "title": "Transactions", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "EnrichmentResult", + "nameOverride": "EnrichmentResult", + "title": "EnrichmentResult", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Entities": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "entitiesCounterparty", + "key": "counterparty", + "schema": { + "generatedName": "entitiesCounterparty", + "nameOverride": "Entities", + "title": "Entities", + "value": { + "generatedName": "EntitiesCounterparty", + "schema": "Counterparty", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "entitiesIntermediaries", + "key": "intermediaries", + "schema": { + "generatedName": "entitiesIntermediaries", + "nameOverride": "Entities", + "title": "Entities", + "value": { + "value": { + "generatedName": "EntitiesIntermediariesItem", + "schema": "Intermediary", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "EntitiesIntermediaries", + "nameOverride": "Intermediaries", + "title": "Intermediaries", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "description": "Entities found by identity identification", + "generatedName": "Entities", + "nameOverride": "Entities", + "title": "Entities", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Entity": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "entityId", + "key": "id", + "schema": { + "generatedName": "entityId", + "nameOverride": "Entity", + "title": "Entity", + "value": { + "description": "The unique UUID identifier of the entity", + "schema": { + "type": "string" + }, + "generatedName": "EntityId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "entityName", + "key": "name", + "schema": { + "generatedName": "entityName", + "nameOverride": "Entity", + "title": "Entity", + "value": { + "description": "The name of the entity", + "schema": { + "type": "string" + }, + "generatedName": "EntityName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "entityWebsite", + "key": "website", + "schema": { + "generatedName": "entityWebsite", + "nameOverride": "Entity", + "title": "Entity", + "value": { + "description": "The website URL of the entity", + "schema": { + "type": "string" + }, + "generatedName": "EntityWebsite", + "nameOverride": "Website", + "title": "Website", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "entityLogo", + "key": "logo", + "schema": { + "generatedName": "entityLogo", + "nameOverride": "Entity", + "title": "Entity", + "value": { + "description": "Logo's URL", + "schema": { + "type": "string" + }, + "generatedName": "EntityLogo", + "nameOverride": "Logo", + "title": "Logo", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "entityMccs", + "key": "mccs", + "schema": { + "generatedName": "entityMccs", + "nameOverride": "Entity", + "title": "Entity", + "value": { + "description": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "value": { + "schema": { + "type": "int" + }, + "generatedName": "EntityMccsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "EntityMccs", + "nameOverride": "Mccs", + "title": "Mccs", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Entity", + "nameOverride": "Entity", + "title": "Entity", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "EntryType": { + "description": "An enumeration.", + "generatedName": "EntryType", + "nameOverride": "EntryType", + "title": "EntryType", + "values": [ + { + "generatedName": "incoming", + "value": "incoming", + "casing": {} + }, + { + "generatedName": "outgoing", + "value": "outgoing", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "FilterModel": { + "generatedName": "FilterModel", + "schema": "personalization", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "HTTPValidationError": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "httpValidationErrorDetail", + "key": "detail", + "schema": { + "generatedName": "httpValidationErrorDetail", + "nameOverride": "HTTPValidationError", + "title": "HTTPValidationError", + "value": { + "value": { + "generatedName": "HttpValidationErrorDetailItem", + "schema": "ValidationError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "HttpValidationErrorDetail", + "nameOverride": "Detail", + "title": "Detail", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "HttpValidationError", + "nameOverride": "HTTPValidationError", + "title": "HTTPValidationError", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Intermediary": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "intermediaryId", + "key": "id", + "schema": { + "generatedName": "intermediaryId", + "nameOverride": "Intermediary", + "title": "Intermediary", + "value": { + "description": "The unique UUID identifier of the entity", + "schema": { + "type": "string" + }, + "generatedName": "IntermediaryId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "intermediaryName", + "key": "name", + "schema": { + "generatedName": "intermediaryName", + "nameOverride": "Intermediary", + "title": "Intermediary", + "value": { + "description": "The name of the entity", + "schema": { + "type": "string" + }, + "generatedName": "IntermediaryName", + "nameOverride": "Name", + "title": "Name", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "intermediaryWebsite", + "key": "website", + "schema": { + "generatedName": "intermediaryWebsite", + "nameOverride": "Intermediary", + "title": "Intermediary", + "value": { + "description": "The website URL of the entity", + "schema": { + "type": "string" + }, + "generatedName": "IntermediaryWebsite", + "nameOverride": "Website", + "title": "Website", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "intermediaryLogo", + "key": "logo", + "schema": { + "generatedName": "intermediaryLogo", + "nameOverride": "Intermediary", + "title": "Intermediary", + "value": { + "description": "Logo's URL", + "schema": { + "type": "string" + }, + "generatedName": "IntermediaryLogo", + "nameOverride": "Logo", + "title": "Logo", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "intermediaryMccs", + "key": "mccs", + "schema": { + "generatedName": "intermediaryMccs", + "nameOverride": "Intermediary", + "title": "Intermediary", + "value": { + "description": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "value": { + "schema": { + "type": "int" + }, + "generatedName": "IntermediaryMccsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "IntermediaryMccs", + "nameOverride": "Mccs", + "title": "Mccs", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "intermediaryType", + "key": "type", + "schema": { + "generatedName": "IntermediaryType", + "schema": "IntermediaryType", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Intermediary", + "nameOverride": "Intermediary", + "title": "Intermediary", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "IntermediaryType": { + "description": "An enumeration.", + "generatedName": "IntermediaryType", + "nameOverride": "IntermediaryType", + "title": "IntermediaryType", + "values": [ + { + "generatedName": "delivery_service", + "value": "delivery_service", + "casing": {} + }, + { + "generatedName": "payment_processor", + "value": "payment_processor", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Location": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "locationRawAddress", + "key": "raw_address", + "schema": { + "generatedName": "locationRawAddress", + "nameOverride": "Location", + "title": "Location", + "value": { + "description": "An unstructured string containing the address", + "schema": { + "type": "string" + }, + "generatedName": "LocationRawAddress", + "title": "Raw Address", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructured", + "key": "structured", + "schema": { + "generatedName": "locationStructured", + "nameOverride": "Location", + "title": "Location", + "value": { + "description": "When raw is set, a structured representation of it.", + "generatedName": "LocationStructured", + "schema": "LocationStructured", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Location", + "nameOverride": "Location", + "title": "Location", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "LocationInput": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "locationInputRawAddress", + "key": "raw_address", + "schema": { + "generatedName": "locationInputRawAddress", + "nameOverride": "LocationInput", + "title": "LocationInput", + "value": { + "description": "An unstructured string containing the address", + "schema": { + "type": "string" + }, + "generatedName": "LocationInputRawAddress", + "title": "Raw Address", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationInputCountry", + "key": "country", + "schema": { + "description": "The country where the transaction was made in ISO 3166-2 format", + "generatedName": "LocationInputCountry", + "schema": "Country", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "description": "Location of where the transaction has taken place. This can greatly improve entity identification, especially\nunder ambiguity.", + "generatedName": "LocationInput", + "nameOverride": "LocationInput", + "title": "LocationInput", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "LocationStructured": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "locationStructuredStreet", + "key": "street", + "schema": { + "generatedName": "locationStructuredStreet", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The street name and number of the location", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredStreet", + "nameOverride": "Street", + "title": "Street", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredCity", + "key": "city", + "schema": { + "generatedName": "locationStructuredCity", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The city where the location is situated", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredCity", + "nameOverride": "City", + "title": "City", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredState", + "key": "state", + "schema": { + "generatedName": "locationStructuredState", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The state or region of the location", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredState", + "nameOverride": "State", + "title": "State", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredPostcode", + "key": "postcode", + "schema": { + "generatedName": "locationStructuredPostcode", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The postal code or ZIP code of the location", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredPostcode", + "nameOverride": "Postcode", + "title": "Postcode", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredCountryCode", + "key": "country_code", + "schema": { + "generatedName": "locationStructuredCountryCode", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The country code of the location in ISO 3166-2 format", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredCountryCode", + "title": "Country Code", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredCountry", + "key": "country", + "schema": { + "generatedName": "locationStructuredCountry", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The full name of the country", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredCountry", + "nameOverride": "Country", + "title": "Country", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredLatitude", + "key": "latitude", + "schema": { + "generatedName": "locationStructuredLatitude", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The latitude coordinate of the location", + "schema": { + "type": "double" + }, + "generatedName": "LocationStructuredLatitude", + "nameOverride": "Latitude", + "title": "Latitude", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredLongitude", + "key": "longitude", + "schema": { + "generatedName": "locationStructuredLongitude", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "The longitude coordinate of the location", + "schema": { + "type": "double" + }, + "generatedName": "LocationStructuredLongitude", + "nameOverride": "Longitude", + "title": "Longitude", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredGoogleMapsUrl", + "key": "google_maps_url", + "schema": { + "generatedName": "locationStructuredGoogleMapsUrl", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "A URL link to view the location on Google Maps", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredGoogleMapsUrl", + "title": "Google Maps Url", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredAppleMapsUrl", + "key": "apple_maps_url", + "schema": { + "generatedName": "locationStructuredAppleMapsUrl", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "A URL link to view the location on Apple Maps", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredAppleMapsUrl", + "title": "Apple Maps Url", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "locationStructuredStoreNumber", + "key": "store_number", + "schema": { + "generatedName": "locationStructuredStoreNumber", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "value": { + "description": "A unique identifier for a specific store or branch, if applicable", + "schema": { + "type": "string" + }, + "generatedName": "LocationStructuredStoreNumber", + "title": "Store Number", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "LocationStructured", + "nameOverride": "LocationStructured", + "title": "LocationStructured", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_AccountHolderExternal": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseAccountHolderExternalNextCursor", + "key": "next_cursor", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseAccountHolderExternalNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseAccountHolderExternalData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseAccountHolderExternalDataItem", + "schema": "AccountHolderExternal", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseAccountHolderExternalData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseAccountHolderExternal", + "title": "PagedResponse_AccountHolderExternal", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_BankStatement": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseBankStatementNextCursor", + "key": "next_cursor", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseBankStatementNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseBankStatementData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseBankStatementDataItem", + "schema": "BankStatement", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseBankStatementData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseBankStatement", + "title": "PagedResponse_BankStatement", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_Batch": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseBatchNextCursor", + "key": "next_cursor", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseBatchNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseBatchData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseBatchDataItem", + "schema": "Batch", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseBatchData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseBatch", + "title": "PagedResponse_Batch", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_Report_": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseReportNextCursor", + "key": "next_cursor", + "schema": { + "generatedName": "pagedResponseReportNextCursor", + "title": "PagedResponse[Report]", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseReportNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseReportData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseReportDataItem", + "schema": "Report", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseReportData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseReport", + "title": "PagedResponse[Report]", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_Transaction": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseTransactionNextCursor", + "key": "next_cursor", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseTransactionNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseTransactionData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseTransactionDataItem", + "schema": "Transaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseTransactionData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseTransaction", + "title": "PagedResponse_Transaction", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "PagedResponse_Webhook": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "pagedResponseWebhookNextCursor", + "key": "next_cursor", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "PagedResponseWebhookNextCursor", + "title": "Next Cursor", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "pagedResponseWebhookData", + "key": "data", + "schema": { + "value": { + "generatedName": "PagedResponseWebhookDataItem", + "schema": "Webhook", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "PagedResponseWebhookData", + "nameOverride": "Data", + "title": "Data", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "PagedResponseWebhook", + "title": "PagedResponse_Webhook", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Recurrence": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "recurrenceType", + "key": "type", + "schema": { + "description": "Whether the transaction is a one-time transfer `one-off`, regularly with varying pricing `recurring` or with fixed pricing `subscription`", + "generatedName": "RecurrenceType", + "schema": "RecurrenceType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "description": "The `Recurrence` object represents the recurrence pattern of a transaction. It provides information about\nwhether a transaction is a one-time event or a part of a recurring series.", + "generatedName": "Recurrence", + "nameOverride": "Recurrence", + "title": "Recurrence", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "RecurrenceGroup": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "recurrenceGroupId", + "key": "id", + "schema": { + "description": "A unique UUID identifier for the group", + "schema": { + "type": "string" + }, + "generatedName": "RecurrenceGroupId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupStartDate", + "key": "start_date", + "schema": { + "description": "The date of the oldest transaction in the group", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "RecurrenceGroupStartDate", + "title": "Start Date", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupEndDate", + "key": "end_date", + "schema": { + "description": "The date of the most recent transaction in the group", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "RecurrenceGroupEndDate", + "title": "End Date", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupTotalAmount", + "key": "total_amount", + "schema": { + "description": "The sum of all transaction amounts in this group", + "schema": { + "type": "double" + }, + "generatedName": "RecurrenceGroupTotalAmount", + "title": "Total Amount", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupAverageAmount", + "key": "average_amount", + "schema": { + "description": "The average amount per transaction in this group", + "schema": { + "type": "double" + }, + "generatedName": "RecurrenceGroupAverageAmount", + "title": "Average Amount", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupPeriodicityInDays", + "key": "periodicity_in_days", + "schema": { + "description": "The estimated number of days between transactions in this group", + "schema": { + "type": "double" + }, + "generatedName": "RecurrenceGroupPeriodicityInDays", + "title": "Periodicity In Days", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupPeriodicity", + "key": "periodicity", + "schema": { + "description": "A human-readable description of the transaction frequency", + "generatedName": "RecurrenceGroupPeriodicity", + "schema": "RecurrencePeriodicity", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupCounterparty", + "key": "counterparty", + "schema": { + "description": "Counterparty of the transactions", + "generatedName": "RecurrenceGroupCounterparty", + "schema": "Counterparty", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupCategories", + "key": "categories", + "schema": { + "description": "Categories of the transactions in the recurrence group", + "generatedName": "RecurrenceGroupCategories", + "schema": "Categories", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "recurrenceGroupTransactionIds", + "key": "transaction_ids", + "schema": { + "description": "Transactions in this recurrence group", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "RecurrenceGroupTransactionIdsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "RecurrenceGroupTransactionIds", + "title": "Transaction Ids", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "RecurrenceGroup", + "nameOverride": "RecurrenceGroup", + "title": "RecurrenceGroup", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "RecurrencePeriodicity": { + "description": "An enumeration.", + "generatedName": "RecurrencePeriodicity", + "nameOverride": "RecurrencePeriodicity", + "title": "RecurrencePeriodicity", + "values": [ + { + "generatedName": "daily", + "value": "daily", + "casing": {} + }, + { + "generatedName": "weekly", + "value": "weekly", + "casing": {} + }, + { + "generatedName": "bi_weekly", + "value": "bi_weekly", + "casing": {} + }, + { + "generatedName": "monthly", + "value": "monthly", + "casing": {} + }, + { + "generatedName": "bi_monthly", + "value": "bi_monthly", + "casing": {} + }, + { + "generatedName": "quarterly", + "value": "quarterly", + "casing": {} + }, + { + "generatedName": "semi_yearly", + "value": "semi_yearly", + "casing": {} + }, + { + "generatedName": "yearly", + "value": "yearly", + "casing": {} + }, + { + "generatedName": "other", + "value": "other", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "RecurrenceType": { + "description": "An enumeration.", + "generatedName": "RecurrenceType", + "nameOverride": "RecurrenceType", + "title": "RecurrenceType", + "values": [ + { + "generatedName": "recurring", + "value": "recurring", + "casing": {} + }, + { + "generatedName": "subscription", + "value": "subscription", + "casing": {} + }, + { + "generatedName": "OneOff", + "value": "one off", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Report": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "reportTransactionId", + "key": "transaction_id", + "schema": { + "description": "The unique identifier of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "ReportTransactionId", + "title": "Transaction Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportDescription", + "key": "description", + "schema": { + "description": "A description of what is wrong in the transaction", + "schema": { + "type": "string" + }, + "generatedName": "ReportDescription", + "nameOverride": "Description", + "title": "Description", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportFields", + "key": "fields", + "schema": { + "description": "A list of the fields that are incorrect", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "ReportFieldsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "ReportFields", + "nameOverride": "Fields", + "title": "Fields", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportId", + "key": "id", + "schema": { + "description": "A generated unique identifier for the report.", + "schema": { + "type": "string" + }, + "generatedName": "ReportId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportCreatedAt", + "key": "created_at", + "schema": { + "description": "The date and time when the report was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "ReportCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportStatus", + "key": "status", + "schema": { + "description": "The status of the report.\n\n* `open`: a newly created report\n* `pending`: the report is being investigated\n* `rejected`: the original enrichment output was deemed correct or we couldn't resolve it, check `rejection_reason`\n* `resolved`: the issue has been resolved", + "generatedName": "ReportStatus", + "schema": "ReportStatus", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportRejectionReason", + "key": "rejection_reason", + "schema": { + "generatedName": "reportRejectionReason", + "nameOverride": "Report", + "title": "Report", + "value": { + "description": "An explanation of why the report was rejected", + "schema": { + "type": "string" + }, + "generatedName": "ReportRejectionReason", + "title": "Rejection Reason", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Report", + "nameOverride": "Report", + "title": "Report", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "ReportBase": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "reportBaseTransactionId", + "key": "transaction_id", + "schema": { + "description": "The unique identifier of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "ReportBaseTransactionId", + "title": "Transaction Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportBaseDescription", + "key": "description", + "schema": { + "description": "A description of what is wrong in the transaction", + "schema": { + "type": "string" + }, + "generatedName": "ReportBaseDescription", + "nameOverride": "Description", + "title": "Description", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "reportBaseFields", + "key": "fields", + "schema": { + "description": "A list of the fields that are incorrect", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "ReportBaseFieldsItem", + "groupName": [], + "type": "primitive" + }, + "generatedName": "ReportBaseFields", + "nameOverride": "Fields", + "title": "Fields", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ReportBase", + "nameOverride": "ReportBase", + "title": "ReportBase", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "ReportStatus": { + "description": "An enumeration.", + "generatedName": "ReportStatus", + "nameOverride": "ReportStatus", + "title": "ReportStatus", + "values": [ + { + "generatedName": "open", + "value": "open", + "casing": {} + }, + { + "generatedName": "pending", + "value": "pending", + "casing": {} + }, + { + "generatedName": "resolved", + "value": "resolved", + "casing": {} + }, + { + "generatedName": "rejected", + "value": "rejected", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "StatementInfo": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "statementInfoInstitution", + "key": "institution", + "schema": { + "generatedName": "statementInfoInstitution", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "value": { + "schema": { + "type": "string" + }, + "generatedName": "StatementInfoInstitution", + "nameOverride": "Institution", + "title": "Institution", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "statementInfoStartDate", + "key": "start_date", + "schema": { + "generatedName": "statementInfoStartDate", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "value": { + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "StatementInfoStartDate", + "title": "Start Date", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "statementInfoEndDate", + "key": "end_date", + "schema": { + "generatedName": "statementInfoEndDate", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "value": { + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "StatementInfoEndDate", + "title": "End Date", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "statementInfoAccountHolder", + "key": "account_holder", + "schema": { + "generatedName": "statementInfoAccountHolder", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "value": { + "generatedName": "StatementInfoAccountHolder", + "schema": "AccountHolder", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "statementInfoAccounts", + "key": "accounts", + "schema": { + "generatedName": "statementInfoAccounts", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "value": { + "value": { + "generatedName": "StatementInfoAccountsItem", + "schema": "Account", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "StatementInfoAccounts", + "nameOverride": "Accounts", + "title": "Accounts", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "StatementInfo", + "nameOverride": "StatementInfo", + "title": "StatementInfo", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "SyncEnrichmentInput": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "syncEnrichmentInputTransactions", + "key": "transactions", + "schema": { + "value": { + "generatedName": "SyncEnrichmentInputTransactionsItem", + "schema": "TransactionInput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "SyncEnrichmentInputTransactions", + "nameOverride": "Transactions", + "title": "Transactions", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "SyncEnrichmentInput", + "nameOverride": "SyncEnrichmentInput", + "title": "SyncEnrichmentInput", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "SyncEnrichmentOutput": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "syncEnrichmentOutputTransactions", + "key": "transactions", + "schema": { + "description": "A list of enriched transactions resulting from the enrichment of this batch.", + "value": { + "generatedName": "SyncEnrichmentOutputTransactionsItem", + "schema": "EnrichedTransaction", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "SyncEnrichmentOutputTransactions", + "nameOverride": "Transactions", + "title": "Transactions", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "SyncEnrichmentOutput", + "nameOverride": "SyncEnrichmentOutput", + "title": "SyncEnrichmentOutput", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Transaction": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "transactionId", + "key": "id", + "schema": { + "description": "A unique identifier of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "TransactionId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionDescription", + "key": "description", + "schema": { + "description": "The description string of the transaction", + "schema": { + "minLength": 0, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "TransactionDescription", + "nameOverride": "Description", + "title": "Description", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionDate", + "key": "date", + "schema": { + "description": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "TransactionDate", + "nameOverride": "Date", + "title": "Date", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionAmount", + "key": "amount", + "schema": { + "description": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "schema": { + "minimum": 0, + "type": "double" + }, + "generatedName": "TransactionAmount", + "nameOverride": "Amount", + "title": "Amount", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionEntryType", + "key": "entry_type", + "schema": { + "description": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "generatedName": "TransactionEntryType", + "schema": "EntryType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionCurrency", + "key": "currency", + "schema": { + "description": "The currency of the transaction in ISO 4217 format", + "generatedName": "TransactionCurrency", + "schema": "Currency", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionEntities", + "key": "entities", + "schema": { + "generatedName": "transactionEntities", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "generatedName": "TransactionEntities", + "schema": "Entities", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "transactionCategories", + "key": "categories", + "schema": { + "generatedName": "transactionCategories", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "generatedName": "TransactionCategories", + "schema": "Categories", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "transactionLocation", + "key": "location", + "schema": { + "generatedName": "transactionLocation", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "generatedName": "TransactionLocation", + "schema": "Location", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "transactionError", + "key": "error", + "schema": { + "generatedName": "transactionError", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "generatedName": "TransactionError", + "schema": "TransactionError", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "transactionCreatedAt", + "key": "created_at", + "schema": { + "description": "The timestamp of when the account holder was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "TransactionCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionAccountHolderId", + "key": "account_holder_id", + "schema": { + "generatedName": "transactionAccountHolderId", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "description": "The unique ID of the account holder of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "TransactionAccountHolderId", + "title": "Account Holder Id", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionRecurrence", + "key": "recurrence", + "schema": { + "generatedName": "transactionRecurrence", + "nameOverride": "Transaction", + "title": "Transaction", + "value": { + "generatedName": "TransactionRecurrence", + "schema": "Recurrence", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Transaction", + "nameOverride": "Transaction", + "title": "Transaction", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "TransactionError": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "transactionErrorCode", + "key": "code", + "schema": { + "generatedName": "TransactionErrorCode", + "schema": "TransactionErrorCode", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "transactionErrorMessage", + "key": "message", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "TransactionErrorMessage", + "nameOverride": "Message", + "title": "Message", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "TransactionError", + "nameOverride": "TransactionError", + "title": "TransactionError", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "TransactionErrorCode": { + "description": "An enumeration.", + "generatedName": "TransactionErrorCode", + "nameOverride": "TransactionErrorCode", + "title": "TransactionErrorCode", + "values": [ + { + "generatedName": "account_holder_not_found", + "value": "account_holder_not_found", + "casing": {} + }, + { + "generatedName": "internal_error", + "value": "internal_error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "TransactionInput": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "transactionInputId", + "key": "id", + "schema": { + "description": "A unique identifier of the transaction", + "schema": { + "minLength": 1, + "type": "string" + }, + "generatedName": "TransactionInputId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputDescription", + "key": "description", + "schema": { + "description": "The description string of the transaction", + "schema": { + "minLength": 0, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "TransactionInputDescription", + "nameOverride": "Description", + "title": "Description", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputDate", + "key": "date", + "schema": { + "description": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "schema": { + "format": "date", + "type": "string" + }, + "generatedName": "TransactionInputDate", + "nameOverride": "Date", + "title": "Date", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputAmount", + "key": "amount", + "schema": { + "description": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "schema": { + "minimum": 0, + "type": "double" + }, + "generatedName": "TransactionInputAmount", + "nameOverride": "Amount", + "title": "Amount", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputEntryType", + "key": "entry_type", + "schema": { + "description": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "generatedName": "TransactionInputEntryType", + "schema": "EntryType", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputCurrency", + "key": "currency", + "schema": { + "description": "The currency of the transaction in ISO 4217 format", + "generatedName": "TransactionInputCurrency", + "schema": "Currency", + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputAccountHolderId", + "key": "account_holder_id", + "schema": { + "description": "The unique ID of the account holder. Unsetting it will disable [categorization](./docs/v3/enrichment/entities).", + "schema": { + "type": "string" + }, + "generatedName": "TransactionInputAccountHolderId", + "title": "Account Holder Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "transactionInputLocation", + "key": "location", + "schema": { + "generatedName": "transactionInputLocation", + "nameOverride": "TransactionInput", + "title": "TransactionInput", + "value": { + "generatedName": "TransactionInputLocation", + "schema": "LocationInput", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "TransactionInput", + "nameOverride": "TransactionInput", + "title": "TransactionInput", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "ValidationError": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "validationErrorLoc", + "key": "loc", + "schema": { + "value": { + "value": { + "generatedName": "ValidationErrorLocItem", + "schemas": [ + { + "schema": { + "type": "string" + }, + "generatedName": "ValidationErrorLocItem", + "groupName": [], + "type": "primitive" + }, + { + "schema": { + "type": "int" + }, + "generatedName": "ValidationErrorLocItem", + "groupName": [], + "type": "primitive" + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "undisciminated" + }, + "type": "oneOf" + }, + "generatedName": "ValidationErrorLoc", + "nameOverride": "Location", + "title": "Location", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "validationErrorMsg", + "key": "msg", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "ValidationErrorMsg", + "nameOverride": "Message", + "title": "Message", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "validationErrorType", + "key": "type", + "schema": { + "schema": { + "type": "string" + }, + "generatedName": "ValidationErrorType", + "title": "Error Type", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ValidationError", + "nameOverride": "ValidationError", + "title": "ValidationError", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Webhook": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "webhookUrl", + "key": "url", + "schema": { + "description": "The URL of the webhook", + "schema": { + "format": "uri", + "minLength": 1, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "WebhookUrl", + "nameOverride": "Url", + "title": "Url", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookEvents", + "key": "events", + "schema": { + "description": "A list of events that this webhook subscribes to", + "value": { + "generatedName": "WebhookEventsItem", + "values": [ + { + "generatedName": "ReportsResolved", + "value": "reports.resolved", + "casing": {} + }, + { + "generatedName": "ReportsRejected", + "value": "reports.rejected", + "casing": {} + }, + { + "generatedName": "ReportsPending", + "value": "reports.pending", + "casing": {} + }, + { + "generatedName": "BankStatementsCompleted", + "value": "bank_statements.completed", + "casing": {} + }, + { + "generatedName": "BankStatementsError", + "value": "bank_statements.error", + "casing": {} + }, + { + "generatedName": "BatchesCompleted", + "value": "batches.completed", + "casing": {} + }, + { + "generatedName": "BatchesError", + "value": "batches.error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "generatedName": "WebhookEvents", + "nameOverride": "Events", + "title": "Events", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookToken", + "key": "token", + "schema": { + "generatedName": "webhookToken", + "nameOverride": "Webhook", + "title": "Webhook", + "value": { + "description": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "schema": { + "maxLength": 128, + "type": "string" + }, + "generatedName": "WebhookToken", + "nameOverride": "Token", + "title": "Token", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookId", + "key": "id", + "schema": { + "description": "A generated unique identifier for the webhook", + "schema": { + "type": "string" + }, + "generatedName": "WebhookId", + "nameOverride": "Id", + "title": "Id", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookCreatedAt", + "key": "created_at", + "schema": { + "description": "The date and time when the webhook was created.", + "schema": { + "type": "datetime" + }, + "generatedName": "WebhookCreatedAt", + "title": "Created At", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookEnabled", + "key": "enabled", + "schema": { + "description": "Whether the webhook is enabled or not.", + "schema": { + "type": "boolean" + }, + "generatedName": "WebhookEnabled", + "nameOverride": "Enabled", + "title": "Enabled", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Webhook", + "nameOverride": "Webhook", + "title": "Webhook", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "WebhookBase": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "webhookBaseUrl", + "key": "url", + "schema": { + "description": "The URL of the webhook", + "schema": { + "format": "uri", + "minLength": 1, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "WebhookBaseUrl", + "nameOverride": "Url", + "title": "Url", + "groupName": [], + "type": "primitive" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookBaseEvents", + "key": "events", + "schema": { + "description": "A list of events that this webhook subscribes to", + "value": { + "generatedName": "WebhookBaseEventsItem", + "values": [ + { + "generatedName": "ReportsResolved", + "value": "reports.resolved", + "casing": {} + }, + { + "generatedName": "ReportsRejected", + "value": "reports.rejected", + "casing": {} + }, + { + "generatedName": "ReportsPending", + "value": "reports.pending", + "casing": {} + }, + { + "generatedName": "BankStatementsCompleted", + "value": "bank_statements.completed", + "casing": {} + }, + { + "generatedName": "BankStatementsError", + "value": "bank_statements.error", + "casing": {} + }, + { + "generatedName": "BatchesCompleted", + "value": "batches.completed", + "casing": {} + }, + { + "generatedName": "BatchesError", + "value": "batches.error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "generatedName": "WebhookBaseEvents", + "nameOverride": "Events", + "title": "Events", + "groupName": [], + "type": "array" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookBaseToken", + "key": "token", + "schema": { + "generatedName": "webhookBaseToken", + "nameOverride": "WebhookBase", + "title": "WebhookBase", + "value": { + "description": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "schema": { + "maxLength": 128, + "type": "string" + }, + "generatedName": "WebhookBaseToken", + "nameOverride": "Token", + "title": "Token", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "WebhookBase", + "nameOverride": "WebhookBase", + "title": "WebhookBase", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "WebhookPatch": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "webhookPatchUrl", + "key": "url", + "schema": { + "generatedName": "webhookPatchUrl", + "nameOverride": "WebhookPatch", + "title": "WebhookPatch", + "value": { + "description": "The URL of the webhook", + "schema": { + "format": "uri", + "minLength": 1, + "maxLength": 1024, + "type": "string" + }, + "generatedName": "WebhookPatchUrl", + "nameOverride": "Url", + "title": "Url", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookPatchEvents", + "key": "events", + "schema": { + "generatedName": "webhookPatchEvents", + "nameOverride": "WebhookPatch", + "title": "WebhookPatch", + "value": { + "description": "A list of events that this webhook subscribes to", + "value": { + "generatedName": "WebhookPatchEventsItem", + "values": [ + { + "generatedName": "ReportsResolved", + "value": "reports.resolved", + "casing": {} + }, + { + "generatedName": "ReportsRejected", + "value": "reports.rejected", + "casing": {} + }, + { + "generatedName": "ReportsPending", + "value": "reports.pending", + "casing": {} + }, + { + "generatedName": "BankStatementsCompleted", + "value": "bank_statements.completed", + "casing": {} + }, + { + "generatedName": "BankStatementsError", + "value": "bank_statements.error", + "casing": {} + }, + { + "generatedName": "BatchesCompleted", + "value": "batches.completed", + "casing": {} + }, + { + "generatedName": "BatchesError", + "value": "batches.error", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "generatedName": "WebhookPatchEvents", + "nameOverride": "Events", + "title": "Events", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookPatchToken", + "key": "token", + "schema": { + "generatedName": "webhookPatchToken", + "nameOverride": "WebhookPatch", + "title": "WebhookPatch", + "value": { + "description": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "schema": { + "maxLength": 128, + "type": "string" + }, + "generatedName": "WebhookPatchToken", + "nameOverride": "Token", + "title": "Token", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "webhookPatchEnabled", + "key": "enabled", + "schema": { + "generatedName": "webhookPatchEnabled", + "nameOverride": "WebhookPatch", + "title": "WebhookPatch", + "value": { + "description": "Whether the webhook is enabled or not.", + "schema": { + "type": "boolean" + }, + "generatedName": "WebhookPatchEnabled", + "nameOverride": "Enabled", + "title": "Enabled", + "groupName": [], + "type": "primitive" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "WebhookPatch", + "nameOverride": "WebhookPatch", + "title": "WebhookPatch", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "Expr": { + "value": { + "generatedName": "Expr", + "title": "expression", + "nameOverride": "expression", + "schemas": [ + { + "schema": { + "type": "boolean" + }, + "generatedName": "Expr", + "nameOverride": "boolean", + "title": "boolean", + "groupName": [], + "type": "primitive" + }, + { + "schema": { + "type": "string" + }, + "generatedName": "Expr", + "nameOverride": "string", + "title": "string", + "groupName": [], + "type": "primitive" + }, + { + "schema": { + "type": "double" + }, + "generatedName": "Expr", + "nameOverride": "number", + "title": "number", + "groupName": [], + "type": "primitive" + }, + { + "generatedName": "ExprThree", + "schema": "FnCall", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "undisciminated" + }, + "type": "oneOf" + }, + "TxProp": { + "generatedName": "TxProp", + "nameOverride": "properties", + "title": "properties", + "values": [ + { + "generatedName": "logo", + "value": "logo", + "casing": {} + }, + { + "generatedName": "website", + "value": "website", + "casing": {} + }, + { + "generatedName": "merchant", + "value": "merchant", + "casing": {} + }, + { + "generatedName": "description", + "value": "description", + "casing": {} + }, + { + "generatedName": "merchant_id", + "value": "merchant_id", + "casing": {} + }, + { + "generatedName": "location", + "value": "location", + "casing": {} + }, + { + "generatedName": "person", + "value": "person", + "casing": {} + }, + { + "generatedName": "transaction_type", + "value": "transaction_type", + "casing": {} + }, + { + "generatedName": "amount", + "value": "amount", + "casing": {} + }, + { + "generatedName": "entry_type", + "value": "entry_type", + "casing": {} + }, + { + "generatedName": "account_holder_type", + "value": "account_holder_type", + "casing": {} + }, + { + "generatedName": "account_holder_id", + "value": "account_holder_id", + "casing": {} + }, + { + "generatedName": "account_holder_name", + "value": "account_holder_name", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "FnCall": { + "value": { + "generatedName": "FnCall", + "schemas": [ + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "&&", + "schema": { + "value": { + "generatedName": "FnCall&&&&Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall&&&&", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall&&", + "title": "&&", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "||", + "schema": { + "value": { + "generatedName": "FnCall||||Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall||||", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall||", + "title": "||", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "==", + "schema": { + "value": { + "generatedName": "FnCall====Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall====", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall==", + "title": "==", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "+", + "schema": { + "value": { + "generatedName": "FnCall++Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall++", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall+", + "title": "+", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "-", + "schema": { + "value": { + "generatedName": "FnCall--Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall--", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall-", + "title": "-", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "*", + "schema": { + "value": { + "generatedName": "FnCall**Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall**", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall*", + "title": "*", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "/", + "schema": { + "value": { + "generatedName": "FnCall//Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall//", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall/", + "title": "/", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "//", + "schema": { + "value": { + "generatedName": "FnCall////Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall////", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall//", + "title": "//", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "<", + "schema": { + "value": { + "generatedName": "FnCall<", + "schema": { + "value": { + "generatedName": "FnCall>>Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall>>", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall>", + "title": ">", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": ">=", + "schema": { + "value": { + "generatedName": "FnCall>=>=Item", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCall>=>=", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall>=", + "title": ">=", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCall", + "key": "!", + "schema": { + "generatedName": "FnCall!!", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCall!", + "title": "!", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallIsSubstringIsSubstring", + "key": "is_substring", + "schema": { + "value": { + "generatedName": "FnCallIsSubstringIsSubstringItem", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCallIsSubstringIsSubstring", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallIsSubstring", + "title": "is_substring", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallStartsWithStartsWith", + "key": "starts_with", + "schema": { + "value": { + "generatedName": "FnCallStartsWithStartsWithItem", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCallStartsWithStartsWith", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallStartsWith", + "title": "starts_with", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallEndsWithEndsWith", + "key": "ends_with", + "schema": { + "value": { + "generatedName": "FnCallEndsWithEndsWithItem", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "FnCallEndsWithEndsWith", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallEndsWith", + "title": "ends_with", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallToLowerToLower", + "key": "to_lower", + "schema": { + "generatedName": "FnCallToLowerToLower", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallToLower", + "title": "to_lower", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallToUpperToUpper", + "key": "to_upper", + "schema": { + "generatedName": "FnCallToUpperToUpper", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallToUpper", + "title": "to_upper", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallHasLabelHasLabel", + "key": "has_label", + "schema": { + "generatedName": "FnCallHasLabelHasLabel", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallHasLabel", + "title": "has_label", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallHasMccHasMcc", + "key": "has_mcc", + "schema": { + "generatedName": "FnCallHasMccHasMcc", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallHasMcc", + "title": "has_mcc", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "fnCallGetGet", + "key": "get", + "schema": { + "generatedName": "FnCallGetGet", + "schema": "TxProp", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "FnCallGet", + "title": "get property", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "undisciminated" + }, + "type": "oneOf" + }, + "Action": { + "value": { + "generatedName": "Action", + "title": "action", + "nameOverride": "action", + "schemas": [ + { + "generatedName": "ActionZero", + "schema": "If", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + { + "generatedName": "ActionOne", + "schema": "ModifyLabels", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + { + "generatedName": "ActionTwo", + "schema": "Setter", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "undisciminated" + }, + "type": "oneOf" + }, + "If": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "ifIf", + "key": "if", + "schema": { + "generatedName": "IfIf", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "ifThen", + "key": "then", + "schema": { + "generatedName": "ifThen", + "nameOverride": "if", + "title": "if", + "value": { + "value": { + "generatedName": "IfThenItem", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "IfThen", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + }, + { + "conflict": {}, + "generatedName": "ifElse", + "key": "else", + "schema": { + "generatedName": "ifElse", + "nameOverride": "if", + "title": "if", + "value": { + "value": { + "generatedName": "IfElseItem", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "IfElse", + "groupName": [], + "type": "array" + }, + "groupName": [], + "type": "optional" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "If", + "nameOverride": "if", + "title": "if", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "ModifyLabels": { + "value": { + "generatedName": "ModifyLabels", + "title": "modify labels", + "schemas": [ + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsAddLabelAddLabel", + "key": "add_label", + "schema": { + "generatedName": "ModifyLabelsAddLabelAddLabel", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsAddLabel", + "title": "add_label", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsRemoveLabelRemoveLabel", + "key": "remove_label", + "schema": { + "generatedName": "ModifyLabelsRemoveLabelRemoveLabel", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsRemoveLabel", + "title": "remove_label", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsSetLabelsSetLabels", + "key": "set_labels", + "schema": { + "value": { + "generatedName": "ModifyLabelsSetLabelsSetLabelsItem", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "ModifyLabelsSetLabelsSetLabels", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsSetLabels", + "title": "set_labels", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsAddMccAddMcc", + "key": "add_mcc", + "schema": { + "generatedName": "ModifyLabelsAddMccAddMcc", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsAddMcc", + "title": "add_mcc", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsRemoveMccRemoveMcc", + "key": "remove_mcc", + "schema": { + "generatedName": "ModifyLabelsRemoveMccRemoveMcc", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsRemoveMcc", + "title": "remove_mcc", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "modifyLabelsSetMccSetMcc", + "key": "set_mcc", + "schema": { + "value": { + "generatedName": "ModifyLabelsSetMccSetMccItem", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "ModifyLabelsSetMccSetMcc", + "groupName": [], + "type": "array" + }, + "audiences": [] + } + ], + "allOfPropertyConflicts": [], + "generatedName": "ModifyLabelsSetMcc", + "title": "set_mcc", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "undisciminated" + }, + "type": "oneOf" + }, + "EditableTxProp": { + "generatedName": "EditableTxProp", + "title": "editable properties", + "values": [ + { + "generatedName": "logo", + "value": "logo", + "casing": {} + }, + { + "generatedName": "website", + "value": "website", + "casing": {} + }, + { + "generatedName": "merchant", + "value": "merchant", + "casing": {} + }, + { + "generatedName": "merchant_id", + "value": "merchant_id", + "casing": {} + }, + { + "generatedName": "location", + "value": "location", + "casing": {} + }, + { + "generatedName": "person", + "value": "person", + "casing": {} + }, + { + "generatedName": "transaction_type", + "value": "transaction_type", + "casing": {} + } + ], + "groupName": [], + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "enum" + }, + "Setter": { + "allOf": [], + "properties": [ + { + "conflict": {}, + "generatedName": "setterSet", + "key": "set", + "schema": { + "generatedName": "SetterSet", + "schema": "EditableTxProp", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + }, + { + "conflict": {}, + "generatedName": "setterTo", + "key": "to", + "schema": { + "generatedName": "SetterTo", + "schema": "Expr", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "audiences": [], + "readonly": false + } + ], + "allOfPropertyConflicts": [], + "generatedName": "Setter", + "nameOverride": "set", + "title": "set", + "groupName": [], + "additionalProperties": false, + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "object" + }, + "personalization": { + "value": { + "generatedName": "PersonalizationItem", + "schema": "Action", + "source": { + "file": "../openapi.yml", + "type": "openapi" + }, + "type": "reference" + }, + "generatedName": "Personalization", + "nameOverride": "Filter", + "title": "Filter", + "groupName": [], + "type": "array" + } + }, + "namespacedSchemas": {} + }, + "variables": {}, + "nonRequestReferencedSchemas": {}, + "securitySchemes": { + "APIKeyHeader": { + "headerName": "X-Api-Key", + "type": "header" + } + }, + "globalHeaders": [], + "idempotencyHeaders": [], + "groups": {} +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/ntropy.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/ntropy.json new file mode 100644 index 00000000000..0d731e2be4b --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/__snapshots__/openapi/ntropy.json @@ -0,0 +1,10019 @@ +{ + "absoluteFilePath": "/DUMMY_PATH", + "importedDefinitions": {}, + "namedDefinitionFiles": { + "__package__.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "errors": { + "BadRequestError": { + "docs": "Account holder with the provided id already exists.", + "status-code": 400, + "type": "unknown", + }, + "ContentTooLargeError": { + "docs": "Ruleset was larger than 50KiB", + "status-code": 413, + "type": "unknown", + }, + "LockedError": { + "docs": "Not enough credits.", + "status-code": 423, + "type": "unknown", + }, + "NotFoundError": { + "docs": "Transaction with the provided id not found.", + "status-code": 404, + "type": "unknown", + }, + "UnprocessableEntityError": { + "docs": "Validation Error", + "examples": [ + { + "docs": undefined, + "name": undefined, + "value": {}, + }, + ], + "status-code": 422, + "type": "HTTPValidationError", + }, + }, + "types": { + "Account": { + "docs": undefined, + "properties": { + "closing_balance": { + "type": "optional", + }, + "iso_currency_code": { + "type": "optional", + }, + "number": { + "type": "optional", + }, + "opening_balance": { + "type": "optional", + }, + "type": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolder": { + "docs": undefined, + "properties": { + "address": { + "type": "optional
", + }, + "name": { + "type": "optional", + }, + "type": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolderExternal": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "name": { + "docs": "The name of the account holder", + "type": "optional", + }, + "type": { + "docs": "The type of the account holder. ", + "type": "AccountHolderType", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountHolderType": { + "docs": "An enumeration.", + "enum": [ + "consumer", + "business", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountType": { + "docs": "An enumeration.", + "enum": [ + "consumer", + "business", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "AccountingCategory": { + "docs": "An enumeration.", + "enum": [ + { + "name": "OperationalExpenses", + "value": "operational expenses", + }, + { + "name": "CostOfGoodsSold", + "value": "cost of goods sold", + }, + "revenue", + "financing", + "taxes", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "ActionModel": { + "type": "action", + }, + "Address": { + "docs": undefined, + "properties": { + "city": { + "type": "optional", + }, + "country": { + "type": "optional", + }, + "postcode": { + "type": "optional", + }, + "state": { + "type": "optional", + }, + "street": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatement": { + "docs": "Represents a bank statement with details about the file and its status.", + "properties": { + "created_at": { + "docs": "The date and time when the job was created.", + "type": "datetime", + }, + "error": { + "type": "optional", + }, + "file": { + "docs": "Information about the bank statement file being processed.", + "type": "BankStatementFile", + }, + "id": { + "docs": "A unique identifier for the bank statement job.", + "type": "string", + }, + "name": { + "docs": "The name of the bank statement file, if available.", + "type": "optional", + }, + "status": { + "docs": "The current status of the document.", + "type": "BankStatementStatus", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementAccount": { + "docs": undefined, + "properties": { + "closing_balance": { + "docs": "The closing balance of the account for the statement period.", + "type": "optional", + }, + "end_date": { + "docs": "The end date of the statement period.", + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "is_balance_reconciled": { + "docs": "Indicates whether the balance has been reconciled.", + "type": "optional", + }, + "number": { + "docs": "The account number, if available.", + "type": "optional", + }, + "opening_balance": { + "docs": "The opening balance of the account for the statement period.", + "type": "optional", + }, + "start_date": { + "docs": "The start date of the statement period.", + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "total_incoming": { + "docs": "The sum of amounts of all incoming transactions.", + "type": "optional", + }, + "total_outgoing": { + "docs": "The sum of amounts of all outgoing transactions.", + "type": "optional", + }, + "transactions": { + "docs": "List of transactions for this account.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementError": { + "docs": undefined, + "properties": { + "code": { + "type": "BankStatementErrorCode", + }, + "message": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementErrorCode": { + "docs": "An enumeration.", + "enum": [ + "invalid_bank_statement", + "internal_error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementFile": { + "docs": undefined, + "properties": { + "no_pages": { + "docs": "The number of pages in the bank statement file.", + "type": "integer", + }, + "size": { + "docs": "The size of the bank statement file in bytes, if available.", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementResults": { + "docs": undefined, + "properties": { + "accounts": { + "docs": "List of accounts in the bank statement.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementStatus": { + "docs": "An enumeration.", + "enum": [ + "processing", + "completed", + "error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "BankStatementTransaction": { + "docs": undefined, + "properties": { + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "running_balance": { + "docs": "The account's balance when this transaction was performed", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Batch": { + "docs": "The `Batch` object represents the status and progress of an asynchronous batch enrichment job.", + "properties": { + "created_at": { + "docs": "The timestamp of when the batch was created.", + "type": "datetime", + }, + "id": { + "docs": "A unique identifier for the batch.", + "type": "string", + }, + "progress": { + "docs": "The number of transactions processed so far.", + "type": "integer", + }, + "status": { + "docs": "The current status of the batch. A batch will error if at least one of the transactions contains an error.", + "type": "BatchStatus", + }, + "total": { + "docs": "The total number of transactions in the batch.", + "type": "integer", + }, + "updated_at": { + "docs": "The timestamp of when the batch was last updated.", + "type": "datetime", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BatchResult": { + "docs": "The `BatchResult` object represents the result of a batch enrichment job, including its status and +enriched transactions.", + "properties": { + "id": { + "docs": "A unique identifier for the batch.", + "type": "string", + }, + "results": { + "type": "EnrichmentResult", + }, + "status": { + "docs": "The current status of the batch job.", + "type": "BatchStatus", + }, + "total": { + "docs": "The total number of transactions in the batch result.", + "type": "integer", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "BatchStatus": { + "docs": "An enumeration.", + "enum": [ + "processing", + "completed", + "error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Categories": { + "docs": undefined, + "properties": { + "accounting": { + "docs": "The corresponding accounting category. Only available for `business` transactions.", + "type": "optional", + }, + "general": { + "docs": "The category of the transaction. View the valid set of categories for your key [here](./docs/v3/enrichment/entities).", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "CategoryConfidence": { + "docs": "An enumeration.", + "enum": [ + "high", + "medium", + "low", + "unknown", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "CategorySet": { + "docs": undefined, + "properties": { + "incoming": { + "type": "list", + }, + "outgoing": { + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Counterparty": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "type": { + "type": "CounterpartyType", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "CounterpartyType": { + "docs": "An enumeration.", + "enum": [ + "person", + "organization", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Country": { + "docs": "An enumeration.", + "enum": [ + "AD", + "AE", + "AF", + "AG", + "AI", + "AL", + "AM", + "AO", + "AR", + "AS", + "AT", + "AU", + "AW", + "AZ", + "BA", + "BB", + "BD", + "BE", + "BF", + "BG", + "BH", + "BI", + "BJ", + "BL", + "BM", + "BN", + "BO", + "BQ", + "BR", + "BS", + "BT", + "BV", + "BW", + "BY", + "BZ", + "CA", + "CC", + "CD", + "CF", + "CG", + "CH", + "CI", + "CK", + "CL", + "CM", + "CN", + "CO", + "CR", + "CU", + "CV", + "CW", + "CX", + "CY", + "CZ", + "DE", + "DJ", + "DK", + "DM", + "DO", + "DZ", + "EC", + "EE", + "EG", + "EH", + "ER", + "ES", + "ET", + "FI", + "FJ", + "FK", + "FM", + "FR", + "GA", + "GB", + "GD", + "GE", + "GF", + "GG", + "GH", + "GI", + "GL", + "GM", + "GN", + "GP", + "GQ", + "GR", + "GS", + "GT", + "GU", + "GW", + "GY", + "HK", + "HM", + "HN", + "HR", + "HT", + "HU", + "ID", + "IE", + "IL", + "IM", + "IN", + "IO", + "IQ", + "IR", + "IS", + "IT", + "JE", + "JM", + "JO", + "JP", + "KE", + "KG", + "KH", + "KI", + "KM", + "KN", + "KP", + "KR", + "KW", + "KY", + "KZ", + "LA", + "LB", + "LC", + "LI", + "LK", + "LR", + "LS", + "LT", + "LU", + "LV", + "LY", + "MA", + "MC", + "MD", + "ME", + "MF", + "MG", + "MH", + "MK", + "ML", + "MM", + "MN", + "MO", + "MP", + "MQ", + "MR", + "MS", + "MT", + "MU", + "MV", + "MW", + "MX", + "MY", + "MZ", + "NA", + "NC", + "NE", + "NF", + "NG", + "NI", + "NL", + "NO", + "NP", + "NR", + "NU", + "NZ", + "OM", + "PA", + "PE", + "PF", + "PG", + "PH", + "PK", + "PL", + "PM", + "PN", + "PR", + "PS", + "PT", + "PW", + "PY", + "QA", + "RE", + "RO", + "RS", + "RU", + "RW", + "SA", + "SB", + "SC", + "SD", + "SE", + "SG", + "SH", + "SI", + "SJ", + "SK", + "SL", + "SM", + "SN", + "SO", + "SR", + "SS", + "ST", + "SV", + "SX", + "SY", + "SZ", + "TC", + "TD", + "TG", + "TH", + "TJ", + "TK", + "TL", + "TM", + "TN", + "TO", + "TR", + "TT", + "TV", + "TW", + "TZ", + "UA", + "UG", + "UM", + "US", + "UY", + "UZ", + "VC", + "VE", + "VG", + "VI", + "VN", + "VU", + "WF", + "WS", + "YE", + "YT", + "ZA", + "ZM", + "ZW", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Currency": { + "docs": "An enumeration.", + "enum": [ + "EUR", + "AED", + "AFN", + "XCD", + "ALL", + "AMD", + "AOA", + "ARS", + "USD", + "AUD", + "AWG", + "AZN", + "BAM", + "BBD", + "BDT", + "XOF", + "BGN", + "BHD", + "BIF", + "BMD", + "BND", + "BOB", + "BRL", + "BSD", + "INR", + "NOK", + "BWP", + "BYR", + "BZD", + "CAD", + "CDF", + "XAF", + "CHF", + "NZD", + "CLP", + "CNY", + "COP", + "CRC", + "CUP", + "CVE", + "ANG", + "CZK", + "DJF", + "DKK", + "DOP", + "DZD", + "EGP", + "MAD", + "ERN", + "ETB", + "FJD", + "FKP", + "GBP", + "GEL", + "GHS", + "GIP", + "GMD", + "GNF", + "GTQ", + "GYD", + "HKD", + "HNL", + "HUF", + "IDR", + "ILS", + "IQD", + "IRR", + "ISK", + "JMD", + "JOD", + "JPY", + "KES", + "KGS", + "KHR", + "KMF", + "KPW", + "KRW", + "KWD", + "KYD", + "KZT", + "LAK", + "LBP", + "LKR", + "LRD", + "ZAR", + "LYD", + "MDL", + "MGA", + "MKD", + "MMK", + "MNT", + "MOP", + "MRO", + "MUR", + "MVR", + "MWK", + "MXN", + "MYR", + "MZN", + "XPF", + "NGN", + "NIO", + "NPR", + "OMR", + "PEN", + "PGK", + "PHP", + "PKR", + "PLN", + "PYG", + "QAR", + "RON", + "RSD", + "RUB", + "RWF", + "SAR", + "SBD", + "SCR", + "SDG", + "SEK", + "SGD", + "SHP", + "SLL", + "SOS", + "SRD", + "SSP", + "STD", + "SYP", + "SZL", + "THB", + "TJS", + "TMT", + "TND", + "TOP", + "TRY", + "TTD", + "TWD", + "TZS", + "UAH", + "UGX", + "UYU", + "UZS", + "VEF", + "VND", + "VUV", + "WST", + "YER", + "ZMW", + "ZWL", + "HRK", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "CustomCategorySet": { + "docs": undefined, + "properties": { + "incoming": { + "type": "list", + }, + "outgoing": { + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "DocumentStatus": { + "docs": "An enumeration.", + "enum": [ + "queued", + "processing", + "processed", + "failed", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "EditableTxProp": { + "enum": [ + "logo", + "website", + "merchant", + "merchant_id", + "location", + "person", + "transaction_type", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "EnrichedTransaction": { + "docs": undefined, + "properties": { + "categories": { + "type": "optional", + }, + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "entities": { + "type": "optional", + }, + "error": { + "type": "optional", + }, + "id": { + "docs": "A unique identifier for the transaction. If two transactions are submitted with the same `id` the most recent one will replace the previous one.", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "EnrichmentResult": { + "docs": undefined, + "properties": { + "transactions": { + "docs": "A list of enriched transactions resulting from the enrichment of this batch.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Entities": { + "docs": "Entities found by identity identification", + "properties": { + "counterparty": { + "type": "optional", + }, + "intermediaries": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Entity": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "EntryType": { + "docs": "An enumeration.", + "enum": [ + "incoming", + "outgoing", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Filter": { + "type": "list", + }, + "FilterModel": { + "type": "Filter", + }, + "FnCall": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "FnCall&&", + }, + { + "type": "FnCall||", + }, + { + "type": "FnCall==", + }, + { + "type": "FnCall+", + }, + { + "type": "FnCall-", + }, + { + "type": "FnCall*", + }, + { + "type": "FnCall/", + }, + { + "type": "FnCall//", + }, + { + "type": "FnCall<", + }, + { + "type": "FnCall<=", + }, + { + "type": "FnCall>", + }, + { + "type": "FnCall>=", + }, + { + "type": "FnCall!", + }, + { + "type": "FnCallIsSubstring", + }, + { + "type": "FnCallStartsWith", + }, + { + "type": "FnCallEndsWith", + }, + { + "type": "FnCallToLower", + }, + { + "type": "FnCallToUpper", + }, + { + "type": "FnCallHasLabel", + }, + { + "type": "FnCallHasMcc", + }, + { + "type": "FnCallGet", + }, + ], + }, + "FnCall!": { + "docs": undefined, + "properties": { + "!": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall&&": { + "docs": undefined, + "properties": { + "&&": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall*": { + "docs": undefined, + "properties": { + "*": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall+": { + "docs": undefined, + "properties": { + "+": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall-": { + "docs": undefined, + "properties": { + "-": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall/": { + "docs": undefined, + "properties": { + "/": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall//": { + "docs": undefined, + "properties": { + "//": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall<": { + "docs": undefined, + "properties": { + "<": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall<=": { + "docs": undefined, + "properties": { + "<=": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall==": { + "docs": undefined, + "properties": { + "==": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall>": { + "docs": undefined, + "properties": { + ">": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall>=": { + "docs": undefined, + "properties": { + ">=": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallEndsWith": { + "docs": undefined, + "properties": { + "ends_with": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallGet": { + "docs": undefined, + "properties": { + "get": { + "type": "properties", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallHasLabel": { + "docs": undefined, + "properties": { + "has_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallHasMcc": { + "docs": undefined, + "properties": { + "has_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallIsSubstring": { + "docs": undefined, + "properties": { + "is_substring": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallStartsWith": { + "docs": undefined, + "properties": { + "starts_with": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallToLower": { + "docs": undefined, + "properties": { + "to_lower": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCallToUpper": { + "docs": undefined, + "properties": { + "to_upper": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "FnCall||": { + "docs": undefined, + "properties": { + "||": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "HTTPValidationError": { + "docs": undefined, + "properties": { + "detail": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Intermediary": { + "docs": undefined, + "properties": { + "id": { + "docs": "The unique UUID identifier of the entity", + "type": "optional", + }, + "logo": { + "docs": "Logo's URL", + "type": "optional", + }, + "mccs": { + "docs": "A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code)", + "type": "optional>", + }, + "name": { + "docs": "The name of the entity", + "type": "optional", + }, + "type": { + "type": "IntermediaryType", + }, + "website": { + "docs": "The website URL of the entity", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "IntermediaryType": { + "docs": "An enumeration.", + "enum": [ + "delivery_service", + "payment_processor", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Location": { + "docs": undefined, + "properties": { + "raw_address": { + "docs": "An unstructured string containing the address", + "type": "optional", + }, + "structured": { + "docs": "When raw is set, a structured representation of it.", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "LocationInput": { + "docs": "Location of where the transaction has taken place. This can greatly improve entity identification, especially +under ambiguity.", + "properties": { + "country": { + "docs": "The country where the transaction was made in ISO 3166-2 format", + "type": "Country", + }, + "raw_address": { + "docs": "An unstructured string containing the address", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "LocationStructured": { + "docs": undefined, + "properties": { + "apple_maps_url": { + "docs": "A URL link to view the location on Apple Maps", + "type": "optional", + }, + "city": { + "docs": "The city where the location is situated", + "type": "optional", + }, + "country": { + "docs": "The full name of the country", + "type": "optional", + }, + "country_code": { + "docs": "The country code of the location in ISO 3166-2 format", + "type": "optional", + }, + "google_maps_url": { + "docs": "A URL link to view the location on Google Maps", + "type": "optional", + }, + "latitude": { + "docs": "The latitude coordinate of the location", + "type": "optional", + }, + "longitude": { + "docs": "The longitude coordinate of the location", + "type": "optional", + }, + "postcode": { + "docs": "The postal code or ZIP code of the location", + "type": "optional", + }, + "state": { + "docs": "The state or region of the location", + "type": "optional", + }, + "store_number": { + "docs": "A unique identifier for a specific store or branch, if applicable", + "type": "optional", + }, + "street": { + "docs": "The street name and number of the location", + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabels": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "ModifyLabelsAddLabel", + }, + { + "type": "ModifyLabelsRemoveLabel", + }, + { + "type": "ModifyLabelsSetLabels", + }, + { + "type": "ModifyLabelsAddMcc", + }, + { + "type": "ModifyLabelsRemoveMcc", + }, + { + "type": "ModifyLabelsSetMcc", + }, + ], + }, + "ModifyLabelsAddLabel": { + "docs": undefined, + "properties": { + "add_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsAddMcc": { + "docs": undefined, + "properties": { + "add_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsRemoveLabel": { + "docs": undefined, + "properties": { + "remove_label": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsRemoveMcc": { + "docs": undefined, + "properties": { + "remove_mcc": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsSetLabels": { + "docs": undefined, + "properties": { + "set_labels": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ModifyLabelsSetMcc": { + "docs": undefined, + "properties": { + "set_mcc": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseAccountHolderExternal": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseBankStatement": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseBatch": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseReport": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseTransaction": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "PagedResponseWebhook": { + "docs": undefined, + "properties": { + "data": { + "type": "list", + }, + "next_cursor": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Recurrence": { + "docs": "The `Recurrence` object represents the recurrence pattern of a transaction. It provides information about +whether a transaction is a one-time event or a part of a recurring series.", + "properties": { + "type": { + "docs": "Whether the transaction is a one-time transfer `one-off`, regularly with varying pricing `recurring` or with fixed pricing `subscription`", + "type": "RecurrenceType", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrenceGroup": { + "docs": undefined, + "properties": { + "average_amount": { + "docs": "The average amount per transaction in this group", + "type": "double", + }, + "categories": { + "docs": "Categories of the transactions in the recurrence group", + "type": "Categories", + }, + "counterparty": { + "docs": "Counterparty of the transactions", + "type": "Counterparty", + }, + "end_date": { + "docs": "The date of the most recent transaction in the group", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "id": { + "docs": "A unique UUID identifier for the group", + "type": "string", + }, + "periodicity": { + "docs": "A human-readable description of the transaction frequency", + "type": "RecurrencePeriodicity", + }, + "periodicity_in_days": { + "docs": "The estimated number of days between transactions in this group", + "type": "double", + }, + "start_date": { + "docs": "The date of the oldest transaction in the group", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "total_amount": { + "docs": "The sum of all transaction amounts in this group", + "type": "double", + }, + "transaction_ids": { + "docs": "Transactions in this recurrence group", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrencePeriodicity": { + "docs": "An enumeration.", + "enum": [ + "daily", + "weekly", + "bi_weekly", + "monthly", + "bi_monthly", + "quarterly", + "semi_yearly", + "yearly", + "other", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "RecurrenceType": { + "docs": "An enumeration.", + "enum": [ + "recurring", + "subscription", + { + "name": "OneOff", + "value": "one off", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "Report": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The date and time when the report was created.", + "type": "datetime", + }, + "description": { + "docs": "A description of what is wrong in the transaction", + "type": "string", + }, + "fields": { + "docs": "A list of the fields that are incorrect", + "type": "list", + }, + "id": { + "docs": "A generated unique identifier for the report.", + "type": "string", + }, + "rejection_reason": { + "docs": "An explanation of why the report was rejected", + "type": "optional", + }, + "status": { + "docs": "The status of the report. + +* `open`: a newly created report +* `pending`: the report is being investigated +* `rejected`: the original enrichment output was deemed correct or we couldn't resolve it, check `rejection_reason` +* `resolved`: the issue has been resolved", + "type": "ReportStatus", + }, + "transaction_id": { + "docs": "The unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ReportStatus": { + "docs": "An enumeration.", + "enum": [ + "open", + "pending", + "resolved", + "rejected", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "StatementInfo": { + "docs": undefined, + "properties": { + "account_holder": { + "type": "optional", + }, + "accounts": { + "type": "optional>", + }, + "end_date": { + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "institution": { + "type": "optional", + }, + "start_date": { + "type": "optional", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "SyncEnrichmentOutput": { + "docs": undefined, + "properties": { + "transactions": { + "docs": "A list of enriched transactions resulting from the enrichment of this batch.", + "type": "list", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "Transaction": { + "docs": undefined, + "properties": { + "account_holder_id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "categories": { + "type": "optional", + }, + "created_at": { + "docs": "The timestamp of when the account holder was created.", + "type": "datetime", + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entities": { + "type": "optional", + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "error": { + "type": "optional", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + "recurrence": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionError": { + "docs": undefined, + "properties": { + "code": { + "type": "TransactionErrorCode", + }, + "message": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionErrorCode": { + "docs": "An enumeration.", + "enum": [ + "account_holder_not_found", + "internal_error", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "TransactionInput": { + "docs": undefined, + "properties": { + "account_holder_id": { + "docs": "The unique ID of the account holder. Unsetting it will disable [categorization](./docs/v3/enrichment/entities).", + "type": "string", + }, + "amount": { + "docs": "The amount of the transaction in the `currency`. Must be a positive value. For example, if the `currency` is USD, then it's the amount in dollars.", + "type": "double", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": undefined, + "min": 0, + "multipleOf": undefined, + }, + }, + "currency": { + "docs": "The currency of the transaction in ISO 4217 format", + "type": "Currency", + }, + "date": { + "docs": "The date that the transaction was posted. Uses ISO 8601 format (YYYY-MM-DD)", + "type": "string", + "validation": { + "format": "date", + "maxLength": undefined, + "minLength": undefined, + "pattern": undefined, + }, + }, + "description": { + "docs": "The description string of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": 1024, + "minLength": 0, + "pattern": undefined, + }, + }, + "entry_type": { + "docs": "The direction of the flow of the money from the perspective of the account holder. `outgoing` to represent money leaving the account, such as purchases or fees, while `incoming` represents money entering the account, such as income or refunds.", + "type": "EntryType", + }, + "id": { + "docs": "A unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "location": { + "type": "optional", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ValidationError": { + "docs": undefined, + "properties": { + "loc": { + "type": "list", + }, + "msg": "string", + "type": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "ValidationErrorLocItem": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + "string", + "integer", + ], + }, + "Webhook": { + "docs": undefined, + "properties": { + "created_at": { + "docs": "The date and time when the webhook was created.", + "type": "datetime", + }, + "enabled": { + "docs": "Whether the webhook is enabled or not.", + "type": "boolean", + }, + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "list", + }, + "id": { + "docs": "A generated unique identifier for the webhook", + "type": "string", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "string", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "WebhookEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "action": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + { + "type": "if", + }, + { + "type": "ModifyLabels", + }, + { + "type": "set", + }, + ], + }, + "expression": { + "discriminated": false, + "docs": undefined, + "encoding": undefined, + "source": { + "openapi": "../openapi.yml", + }, + "union": [ + "boolean", + "string", + "double", + "FnCall", + ], + }, + "if": { + "docs": undefined, + "properties": { + "else": { + "type": "optional>", + }, + "if": { + "type": "expression", + }, + "then": { + "type": "optional>", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "properties": { + "enum": [ + "logo", + "website", + "merchant", + "description", + "merchant_id", + "location", + "person", + "transaction_type", + "amount", + "entry_type", + "account_holder_type", + "account_holder_id", + "account_holder_name", + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "set": { + "docs": undefined, + "properties": { + "set": { + "type": "EditableTxProp", + }, + "to": { + "type": "expression", + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + }, + "rawContents": "errors: + NotFoundError: + status-code: 404 + type: unknown + docs: Transaction with the provided id not found. + UnprocessableEntityError: + status-code: 422 + type: HTTPValidationError + docs: Validation Error + examples: + - value: {} + BadRequestError: + status-code: 400 + type: unknown + docs: Account holder with the provided id already exists. + ContentTooLargeError: + status-code: 413 + type: unknown + docs: Ruleset was larger than 50KiB + LockedError: + status-code: 423 + type: unknown + docs: Not enough credits. +types: + Account: + properties: + type: + type: optional + number: + type: optional + opening_balance: + type: optional + closing_balance: + type: optional + iso_currency_code: + type: optional + source: + openapi: ../openapi.yml + AccountHolder: + properties: + type: + type: optional + name: + type: optional + address: + type: optional
+ source: + openapi: ../openapi.yml + AccountHolderExternal: + properties: + id: + type: string + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + type: + type: AccountHolderType + docs: 'The type of the account holder. ' + name: + type: optional + docs: The name of the account holder + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + source: + openapi: ../openapi.yml + AccountHolderType: + enum: + - consumer + - business + docs: An enumeration. + source: + openapi: ../openapi.yml + AccountType: + enum: + - consumer + - business + docs: An enumeration. + source: + openapi: ../openapi.yml + AccountingCategory: + enum: + - value: operational expenses + name: OperationalExpenses + - value: cost of goods sold + name: CostOfGoodsSold + - revenue + - financing + - taxes + docs: An enumeration. + source: + openapi: ../openapi.yml + ActionModel: + type: action + Address: + properties: + street: + type: optional + postcode: + type: optional + city: + type: optional + state: + type: optional + country: + type: optional + source: + openapi: ../openapi.yml + BankStatement: + docs: Represents a bank statement with details about the file and its status. + properties: + id: + type: string + docs: A unique identifier for the bank statement job. + name: + type: optional + docs: The name of the bank statement file, if available. + status: + type: BankStatementStatus + docs: The current status of the document. + created_at: + type: datetime + docs: The date and time when the job was created. + file: + type: BankStatementFile + docs: Information about the bank statement file being processed. + error: + type: optional + source: + openapi: ../openapi.yml + BankStatementAccount: + properties: + number: + type: optional + docs: The account number, if available. + opening_balance: + type: optional + docs: The opening balance of the account for the statement period. + closing_balance: + type: optional + docs: The closing balance of the account for the statement period. + start_date: + type: optional + docs: The start date of the statement period. + validation: + format: date + end_date: + type: optional + docs: The end date of the statement period. + validation: + format: date + is_balance_reconciled: + type: optional + docs: Indicates whether the balance has been reconciled. + total_incoming: + type: optional + docs: The sum of amounts of all incoming transactions. + total_outgoing: + type: optional + docs: The sum of amounts of all outgoing transactions. + transactions: + docs: List of transactions for this account. + type: list + source: + openapi: ../openapi.yml + BankStatementError: + properties: + code: + type: BankStatementErrorCode + message: string + source: + openapi: ../openapi.yml + BankStatementErrorCode: + enum: + - invalid_bank_statement + - internal_error + docs: An enumeration. + source: + openapi: ../openapi.yml + BankStatementFile: + properties: + no_pages: + type: integer + docs: The number of pages in the bank statement file. + size: + type: optional + docs: The size of the bank statement file in bytes, if available. + source: + openapi: ../openapi.yml + BankStatementResults: + properties: + accounts: + docs: List of accounts in the bank statement. + type: list + source: + openapi: ../openapi.yml + BankStatementStatus: + enum: + - processing + - completed + - error + docs: An enumeration. + source: + openapi: ../openapi.yml + BankStatementTransaction: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + running_balance: + type: optional + docs: The account's balance when this transaction was performed + source: + openapi: ../openapi.yml + Batch: + docs: >- + The `Batch` object represents the status and progress of an asynchronous + batch enrichment job. + properties: + id: + type: string + docs: A unique identifier for the batch. + status: + type: BatchStatus + docs: >- + The current status of the batch. A batch will error if at least one of + the transactions contains an error. + created_at: + type: datetime + docs: The timestamp of when the batch was created. + updated_at: + type: datetime + docs: The timestamp of when the batch was last updated. + progress: + type: integer + docs: The number of transactions processed so far. + total: + type: integer + docs: The total number of transactions in the batch. + source: + openapi: ../openapi.yml + BatchResult: + docs: >- + The `BatchResult` object represents the result of a batch enrichment job, + including its status and + + enriched transactions. + properties: + id: + type: string + docs: A unique identifier for the batch. + total: + type: integer + docs: The total number of transactions in the batch result. + status: + type: BatchStatus + docs: The current status of the batch job. + results: + type: EnrichmentResult + source: + openapi: ../openapi.yml + BatchStatus: + enum: + - processing + - completed + - error + docs: An enumeration. + source: + openapi: ../openapi.yml + Categories: + properties: + general: + type: optional + docs: >- + The category of the transaction. View the valid set of categories for + your key [here](./docs/v3/enrichment/entities). + accounting: + type: optional + docs: >- + The corresponding accounting category. Only available for `business` + transactions. + source: + openapi: ../openapi.yml + CategoryConfidence: + enum: + - high + - medium + - low + - unknown + docs: An enumeration. + source: + openapi: ../openapi.yml + CategorySet: + properties: + incoming: + type: list + outgoing: + type: list + source: + openapi: ../openapi.yml + Counterparty: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + type: + type: CounterpartyType + source: + openapi: ../openapi.yml + CounterpartyType: + enum: + - person + - organization + docs: An enumeration. + source: + openapi: ../openapi.yml + Country: + enum: + - AD + - AE + - AF + - AG + - AI + - AL + - AM + - AO + - AR + - AS + - AT + - AU + - AW + - AZ + - BA + - BB + - BD + - BE + - BF + - BG + - BH + - BI + - BJ + - BL + - BM + - BN + - BO + - BQ + - BR + - BS + - BT + - BV + - BW + - BY + - BZ + - CA + - CC + - CD + - CF + - CG + - CH + - CI + - CK + - CL + - CM + - CN + - CO + - CR + - CU + - CV + - CW + - CX + - CY + - CZ + - DE + - DJ + - DK + - DM + - DO + - DZ + - EC + - EE + - EG + - EH + - ER + - ES + - ET + - FI + - FJ + - FK + - FM + - FR + - GA + - GB + - GD + - GE + - GF + - GG + - GH + - GI + - GL + - GM + - GN + - GP + - GQ + - GR + - GS + - GT + - GU + - GW + - GY + - HK + - HM + - HN + - HR + - HT + - HU + - ID + - IE + - IL + - IM + - IN + - IO + - IQ + - IR + - IS + - IT + - JE + - JM + - JO + - JP + - KE + - KG + - KH + - KI + - KM + - KN + - KP + - KR + - KW + - KY + - KZ + - LA + - LB + - LC + - LI + - LK + - LR + - LS + - LT + - LU + - LV + - LY + - MA + - MC + - MD + - ME + - MF + - MG + - MH + - MK + - ML + - MM + - MN + - MO + - MP + - MQ + - MR + - MS + - MT + - MU + - MV + - MW + - MX + - MY + - MZ + - NA + - NC + - NE + - NF + - NG + - NI + - NL + - 'NO' + - NP + - NR + - NU + - NZ + - OM + - PA + - PE + - PF + - PG + - PH + - PK + - PL + - PM + - PN + - PR + - PS + - PT + - PW + - PY + - QA + - RE + - RO + - RS + - RU + - RW + - SA + - SB + - SC + - SD + - SE + - SG + - SH + - SI + - SJ + - SK + - SL + - SM + - SN + - SO + - SR + - SS + - ST + - SV + - SX + - SY + - SZ + - TC + - TD + - TG + - TH + - TJ + - TK + - TL + - TM + - TN + - TO + - TR + - TT + - TV + - TW + - TZ + - UA + - UG + - UM + - US + - UY + - UZ + - VC + - VE + - VG + - VI + - VN + - VU + - WF + - WS + - YE + - YT + - ZA + - ZM + - ZW + docs: An enumeration. + source: + openapi: ../openapi.yml + Currency: + enum: + - EUR + - AED + - AFN + - XCD + - ALL + - AMD + - AOA + - ARS + - USD + - AUD + - AWG + - AZN + - BAM + - BBD + - BDT + - XOF + - BGN + - BHD + - BIF + - BMD + - BND + - BOB + - BRL + - BSD + - INR + - NOK + - BWP + - BYR + - BZD + - CAD + - CDF + - XAF + - CHF + - NZD + - CLP + - CNY + - COP + - CRC + - CUP + - CVE + - ANG + - CZK + - DJF + - DKK + - DOP + - DZD + - EGP + - MAD + - ERN + - ETB + - FJD + - FKP + - GBP + - GEL + - GHS + - GIP + - GMD + - GNF + - GTQ + - GYD + - HKD + - HNL + - HUF + - IDR + - ILS + - IQD + - IRR + - ISK + - JMD + - JOD + - JPY + - KES + - KGS + - KHR + - KMF + - KPW + - KRW + - KWD + - KYD + - KZT + - LAK + - LBP + - LKR + - LRD + - ZAR + - LYD + - MDL + - MGA + - MKD + - MMK + - MNT + - MOP + - MRO + - MUR + - MVR + - MWK + - MXN + - MYR + - MZN + - XPF + - NGN + - NIO + - NPR + - OMR + - PEN + - PGK + - PHP + - PKR + - PLN + - PYG + - QAR + - RON + - RSD + - RUB + - RWF + - SAR + - SBD + - SCR + - SDG + - SEK + - SGD + - SHP + - SLL + - SOS + - SRD + - SSP + - STD + - SYP + - SZL + - THB + - TJS + - TMT + - TND + - TOP + - TRY + - TTD + - TWD + - TZS + - UAH + - UGX + - UYU + - UZS + - VEF + - VND + - VUV + - WST + - YER + - ZMW + - ZWL + - HRK + docs: An enumeration. + source: + openapi: ../openapi.yml + CustomCategorySet: + properties: + incoming: + type: list + outgoing: + type: list + source: + openapi: ../openapi.yml + DocumentStatus: + enum: + - queued + - processing + - processed + - failed + docs: An enumeration. + source: + openapi: ../openapi.yml + EnrichedTransaction: + properties: + entities: + type: optional + categories: + type: optional + location: + type: optional + error: + type: optional + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + id: + type: string + docs: >- + A unique identifier for the transaction. If two transactions are + submitted with the same `id` the most recent one will replace the + previous one. + validation: + minLength: 1 + source: + openapi: ../openapi.yml + EnrichmentResult: + properties: + transactions: + docs: >- + A list of enriched transactions resulting from the enrichment of this + batch. + type: list + source: + openapi: ../openapi.yml + Entities: + docs: Entities found by identity identification + properties: + counterparty: + type: optional + intermediaries: + type: optional> + source: + openapi: ../openapi.yml + Entity: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + source: + openapi: ../openapi.yml + EntryType: + enum: + - incoming + - outgoing + docs: An enumeration. + source: + openapi: ../openapi.yml + FilterModel: + type: Filter + HTTPValidationError: + properties: + detail: + type: optional> + source: + openapi: ../openapi.yml + Intermediary: + properties: + id: + type: optional + docs: The unique UUID identifier of the entity + name: + type: optional + docs: The name of the entity + website: + type: optional + docs: The website URL of the entity + logo: + type: optional + docs: Logo's URL + mccs: + type: optional> + docs: >- + A list of [Merchant Category + Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + type: + type: IntermediaryType + source: + openapi: ../openapi.yml + IntermediaryType: + enum: + - delivery_service + - payment_processor + docs: An enumeration. + source: + openapi: ../openapi.yml + Location: + properties: + raw_address: + type: optional + docs: An unstructured string containing the address + structured: + type: optional + docs: When raw is set, a structured representation of it. + source: + openapi: ../openapi.yml + LocationInput: + docs: >- + Location of where the transaction has taken place. This can greatly + improve entity identification, especially + + under ambiguity. + properties: + raw_address: + type: optional + docs: An unstructured string containing the address + country: + type: Country + docs: The country where the transaction was made in ISO 3166-2 format + source: + openapi: ../openapi.yml + LocationStructured: + properties: + street: + type: optional + docs: The street name and number of the location + city: + type: optional + docs: The city where the location is situated + state: + type: optional + docs: The state or region of the location + postcode: + type: optional + docs: The postal code or ZIP code of the location + country_code: + type: optional + docs: The country code of the location in ISO 3166-2 format + country: + type: optional + docs: The full name of the country + latitude: + type: optional + docs: The latitude coordinate of the location + longitude: + type: optional + docs: The longitude coordinate of the location + google_maps_url: + type: optional + docs: A URL link to view the location on Google Maps + apple_maps_url: + type: optional + docs: A URL link to view the location on Apple Maps + store_number: + type: optional + docs: A unique identifier for a specific store or branch, if applicable + source: + openapi: ../openapi.yml + PagedResponseAccountHolderExternal: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseBankStatement: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseBatch: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseReport: + properties: + next_cursor: + type: optional + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseTransaction: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + PagedResponseWebhook: + properties: + next_cursor: string + data: + type: list + source: + openapi: ../openapi.yml + Recurrence: + docs: >- + The `Recurrence` object represents the recurrence pattern of a + transaction. It provides information about + + whether a transaction is a one-time event or a part of a recurring series. + properties: + type: + type: RecurrenceType + docs: >- + Whether the transaction is a one-time transfer `one-off`, regularly + with varying pricing `recurring` or with fixed pricing `subscription` + source: + openapi: ../openapi.yml + RecurrenceGroup: + properties: + id: + type: string + docs: A unique UUID identifier for the group + start_date: + type: string + docs: The date of the oldest transaction in the group + validation: + format: date + end_date: + type: string + docs: The date of the most recent transaction in the group + validation: + format: date + total_amount: + type: double + docs: The sum of all transaction amounts in this group + average_amount: + type: double + docs: The average amount per transaction in this group + periodicity_in_days: + type: double + docs: The estimated number of days between transactions in this group + periodicity: + type: RecurrencePeriodicity + docs: A human-readable description of the transaction frequency + counterparty: + type: Counterparty + docs: Counterparty of the transactions + categories: + type: Categories + docs: Categories of the transactions in the recurrence group + transaction_ids: + docs: Transactions in this recurrence group + type: list + source: + openapi: ../openapi.yml + RecurrencePeriodicity: + enum: + - daily + - weekly + - bi_weekly + - monthly + - bi_monthly + - quarterly + - semi_yearly + - yearly + - other + docs: An enumeration. + source: + openapi: ../openapi.yml + RecurrenceType: + enum: + - recurring + - subscription + - value: one off + name: OneOff + docs: An enumeration. + source: + openapi: ../openapi.yml + Report: + properties: + transaction_id: + type: string + docs: The unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: A description of what is wrong in the transaction + fields: + docs: A list of the fields that are incorrect + type: list + id: + type: string + docs: A generated unique identifier for the report. + created_at: + type: datetime + docs: The date and time when the report was created. + status: + type: ReportStatus + docs: >- + The status of the report. + + + * `open`: a newly created report + + * `pending`: the report is being investigated + + * `rejected`: the original enrichment output was deemed correct or we + couldn't resolve it, check `rejection_reason` + + * `resolved`: the issue has been resolved + rejection_reason: + type: optional + docs: An explanation of why the report was rejected + source: + openapi: ../openapi.yml + ReportStatus: + enum: + - open + - pending + - resolved + - rejected + docs: An enumeration. + source: + openapi: ../openapi.yml + StatementInfo: + properties: + institution: + type: optional + start_date: + type: optional + validation: + format: date + end_date: + type: optional + validation: + format: date + account_holder: + type: optional + accounts: + type: optional> + source: + openapi: ../openapi.yml + SyncEnrichmentOutput: + properties: + transactions: + docs: >- + A list of enriched transactions resulting from the enrichment of this + batch. + type: list + source: + openapi: ../openapi.yml + Transaction: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + entities: + type: optional + categories: + type: optional + location: + type: optional + error: + type: optional + created_at: + type: datetime + docs: The timestamp of when the account holder was created. + account_holder_id: + type: optional + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + recurrence: + type: optional + source: + openapi: ../openapi.yml + TransactionError: + properties: + code: + type: TransactionErrorCode + message: string + source: + openapi: ../openapi.yml + TransactionErrorCode: + enum: + - account_holder_not_found + - internal_error + docs: An enumeration. + source: + openapi: ../openapi.yml + TransactionInput: + properties: + id: + type: string + docs: A unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: The description string of the transaction + validation: + minLength: 0 + maxLength: 1024 + date: + type: string + docs: >- + The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + validation: + format: date + amount: + type: double + docs: >- + The amount of the transaction in the `currency`. Must be a positive + value. For example, if the `currency` is USD, then it's the amount in + dollars. + validation: + min: 0 + entry_type: + type: EntryType + docs: >- + The direction of the flow of the money from the perspective of the + account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + type: Currency + docs: The currency of the transaction in ISO 4217 format + account_holder_id: + type: string + docs: >- + The unique ID of the account holder. Unsetting it will disable + [categorization](./docs/v3/enrichment/entities). + location: + type: optional + source: + openapi: ../openapi.yml + ValidationErrorLocItem: + discriminated: false + union: + - string + - integer + source: + openapi: ../openapi.yml + ValidationError: + properties: + loc: + type: list + msg: string + type: string + source: + openapi: ../openapi.yml + WebhookEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml + Webhook: + properties: + url: + type: string + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + docs: A list of events that this webhook subscribes to + type: list + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value will be + included in the `X-Ntropy-Token` header when sending requests to the + webhook + validation: + maxLength: 128 + id: + type: string + docs: A generated unique identifier for the webhook + created_at: + type: datetime + docs: The date and time when the webhook was created. + enabled: + type: boolean + docs: Whether the webhook is enabled or not. + source: + openapi: ../openapi.yml + expression: + discriminated: false + union: + - boolean + - string + - double + - FnCall + source: + openapi: ../openapi.yml + properties: + enum: + - logo + - website + - merchant + - description + - merchant_id + - location + - person + - transaction_type + - amount + - entry_type + - account_holder_type + - account_holder_id + - account_holder_name + source: + openapi: ../openapi.yml + FnCall&&: + properties: + '&&': list + source: + openapi: ../openapi.yml + FnCall||: + properties: + '||': list + source: + openapi: ../openapi.yml + FnCall==: + properties: + '==': list + source: + openapi: ../openapi.yml + FnCall+: + properties: + +: list + source: + openapi: ../openapi.yml + FnCall-: + properties: + '-': list + source: + openapi: ../openapi.yml + FnCall*: + properties: + '*': list + source: + openapi: ../openapi.yml + FnCall/: + properties: + /: list + source: + openapi: ../openapi.yml + FnCall//: + properties: + //: list + source: + openapi: ../openapi.yml + FnCall<: + properties: + <: list + source: + openapi: ../openapi.yml + FnCall<=: + properties: + <=: list + source: + openapi: ../openapi.yml + FnCall>: + properties: + '>': list + source: + openapi: ../openapi.yml + FnCall>=: + properties: + '>=': list + source: + openapi: ../openapi.yml + FnCall!: + properties: + '!': + type: expression + source: + openapi: ../openapi.yml + FnCallIsSubstring: + properties: + is_substring: list + source: + openapi: ../openapi.yml + FnCallStartsWith: + properties: + starts_with: list + source: + openapi: ../openapi.yml + FnCallEndsWith: + properties: + ends_with: list + source: + openapi: ../openapi.yml + FnCallToLower: + properties: + to_lower: + type: expression + source: + openapi: ../openapi.yml + FnCallToUpper: + properties: + to_upper: + type: expression + source: + openapi: ../openapi.yml + FnCallHasLabel: + properties: + has_label: + type: expression + source: + openapi: ../openapi.yml + FnCallHasMcc: + properties: + has_mcc: + type: expression + source: + openapi: ../openapi.yml + FnCallGet: + properties: + get: + type: properties + source: + openapi: ../openapi.yml + FnCall: + discriminated: false + union: + - type: FnCall&& + - type: FnCall|| + - type: FnCall== + - type: FnCall+ + - type: FnCall- + - type: FnCall* + - type: FnCall/ + - type: FnCall// + - type: FnCall< + - type: FnCall<= + - type: FnCall> + - type: FnCall>= + - type: FnCall! + - type: FnCallIsSubstring + - type: FnCallStartsWith + - type: FnCallEndsWith + - type: FnCallToLower + - type: FnCallToUpper + - type: FnCallHasLabel + - type: FnCallHasMcc + - type: FnCallGet + source: + openapi: ../openapi.yml + action: + discriminated: false + union: + - type: if + - type: ModifyLabels + - type: set + source: + openapi: ../openapi.yml + if: + properties: + if: + type: expression + then: + type: optional> + else: + type: optional> + source: + openapi: ../openapi.yml + ModifyLabelsAddLabel: + properties: + add_label: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsRemoveLabel: + properties: + remove_label: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsSetLabels: + properties: + set_labels: list + source: + openapi: ../openapi.yml + ModifyLabelsAddMcc: + properties: + add_mcc: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsRemoveMcc: + properties: + remove_mcc: + type: expression + source: + openapi: ../openapi.yml + ModifyLabelsSetMcc: + properties: + set_mcc: list + source: + openapi: ../openapi.yml + ModifyLabels: + discriminated: false + union: + - type: ModifyLabelsAddLabel + - type: ModifyLabelsRemoveLabel + - type: ModifyLabelsSetLabels + - type: ModifyLabelsAddMcc + - type: ModifyLabelsRemoveMcc + - type: ModifyLabelsSetMcc + source: + openapi: ../openapi.yml + EditableTxProp: + enum: + - logo + - website + - merchant + - merchant_id + - location + - person + - transaction_type + source: + openapi: ../openapi.yml + set: + properties: + set: + type: EditableTxProp + to: + type: expression + source: + openapi: ../openapi.yml + Filter: + type: list +", + }, + "accountHolders.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Account Holder API allows you to retrieve, create and modify account holders. An account holder represents an +entity that holds an account associated with transactions. An account holder can either be a business or an individual +person - consumer. + +The fields chosen for an account holder are used by our enrichment process and can dramatically improve the accuracy +of the results. + +Complete guide: [Account Holders](../../../account-holders). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Account Holders", + "endpoints": { + "createAccountHolder": { + "auth": true, + "display-name": "Create an account holder.", + "docs": undefined, + "errors": [ + "root.BadRequestError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "consumer", + "name": "John Doe" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.create( + id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + type="consumer", + name="John Doe", +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "id": "id", + "type": "consumer", + }, + "response": { + "body": { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/account_holders", + "request": { + "body": { + "properties": { + "id": { + "docs": "The unique ID of the account holder of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + "name": { + "docs": "The name of the account holder", + "type": "optional", + }, + "type": { + "docs": "The type of the account holder. ", + "type": "root.AccountHolderType", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "AccountHolderCreate", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.AccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "deleteAccountHolder": { + "auth": true, + "display-name": "Deletes an account holder and their transactions", + "docs": "Deletes all of the transactions in the account holder's history. This operation is permanent and irreversible", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.delete("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/account_holders/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getAccountHolder": { + "auth": true, + "display-name": "Retrieve an account holder.", + "docs": undefined, + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/account_holders/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.AccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getAccountHolders": { + "auth": true, + "display-name": "List all account holders.", + "docs": undefined, + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-03-30T00:00:00Z", + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "name": "John Doe", + "type": "consumer", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/account_holders", + "request": { + "name": "GetAccountHoldersV3AccountHoldersGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return account holders older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return account holders newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of account holders", + "type": "optional", + }, + "limit": { + "docs": "The limit of account holders to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseAccountHolderExternal", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getAccountHolder: + path: /v3/account_holders/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve an account holder. + response: + docs: Successful Response + type: root.AccountHolderExternal + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + deleteAccountHolder: + path: /v3/account_holders/{id} + method: DELETE + auth: true + docs: >- + Deletes all of the transactions in the account holder's history. This + operation is permanent and irreversible + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes an account holder and their transactions + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.delete("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + getAccountHolders: + path: /v3/account_holders + method: GET + auth: true + source: + openapi: ../openapi.yml + display-name: List all account holders. + request: + name: GetAccountHoldersV3AccountHoldersGetRequest + query-parameters: + created_after: + type: optional + docs: Only return account holders older or equal than this date + created_before: + type: optional + docs: Only return account holders newer than this date + cursor: + type: optional + docs: Starting point for the set of account holders + limit: + type: optional + docs: The limit of account holders to be returned + validation: + min: 1 + max: 50 + response: + docs: Successful Response + type: root.PagedResponseAccountHolderExternal + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = + sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") + createAccountHolder: + path: /v3/account_holders + method: POST + auth: true + source: + openapi: ../openapi.yml + display-name: Create an account holder. + request: + name: AccountHolderCreate + body: + properties: + id: + type: string + docs: The unique ID of the account holder of the transaction + validation: + minLength: 1 + type: + type: root.AccountHolderType + docs: 'The type of the account holder. ' + name: + type: optional + docs: The name of the account holder + content-type: application/json + response: + docs: Successful Response + type: root.AccountHolderExternal + errors: + - root.BadRequestError + - root.UnprocessableEntityError + examples: + - request: + id: id + type: consumer + response: + body: + id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00Z' + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "type": "consumer", + "name": "John Doe" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + ah = sdk.account_holders.create( + id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + type="consumer", + name="John Doe", + ) + source: + openapi: ../openapi.yml + display-name: Account Holders +docs: > + + The Account Holder API allows you to retrieve, create and modify account + holders. An account holder represents an + + entity that holds an account associated with transactions. An account holder + can either be a business or an individual + + person - consumer. + + + The fields chosen for an account holder are used by our enrichment process and + can dramatically improve the accuracy + + of the results. + + + Complete guide: [Account Holders](../../../account-holders). +", + }, + "bankStatements.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Bank Statements API allows you to manage and extract information from bank statements. We support extraction of +account holder information, account information and transaction records. Files should be uploaded in PDF format. + +During the extraction process, the bank statements undergo several status changes: +| Status | Description | +|----------|------------------------------------------------------------------------| +|processing|The upload was successful. Extraction is in progress. | +|completed |The extraction was successful. Results are available. | +|error |An error occurred during extraction. Check `error` for more information.| + + +A list of error codes for the `error` status can be found below: +| Code | Description | +|----------------------|-------------------------------------------| +|invalid_bank_statement|Failed to process file as a bank statement.| +|internal_error |Internal error. Please contact support. | + + +Complete guide: [Bank Statements](../../../bank-statements). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Bank statements", + "endpoints": { + "deleteBankStatement": { + "auth": true, + "display-name": "Deletes a bank statement", + "docs": undefined, + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/bank_statements/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatement": { + "auth": true, + "display-name": "Retrieve a bank statement", + "docs": undefined, + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +bs = sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatementResult": { + "auth": true, + "display-name": "Retrieve the extraction results", + "docs": "Return the extracted account information and associated transactions from a bank statement PDF. The results are accessible once the statement's status is `completed`.", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +bs = sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") +results = sdk.bank_statements.wait_for_results( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "accounts": [ + { + "closing_balance": 200, + "end_date": "2024-02-01", + "is_balance_reconciled": true, + "number": "972913289", + "opening_balance": 400, + "start_date": "2024-01-01", + "total_incoming": 0, + "total_outgoing": 200, + "transactions": [ + { + "amount": 200, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "running_balance": 400, + }, + ], + }, + ], + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements/{id}/results", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatementResults", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatementStatementInfo": { + "auth": true, + "display-name": "Quickly extract account holder, institution and first account", + "docs": "Extracts account holder, bank and account information extracted from the first page of the bank statement, which is typically available before the full results. This is a synchronous call. + +Complete guide: [Overview](../../../bank-statements)", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +overview = sdk.bank_statements.overview( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "account_holder": { + "address": { + "city": "Victoria", + "country": "United States", + "postcode": "77901", + "state": "Texas", + "street": "601 Rosebud Avenue", + }, + "name": "John Doe", + "type": "consumer", + }, + "accounts": [ + { + "closing_balance": 1500, + "iso_currency_code": "USD", + "number": "83721", + "opening_balance": 1000, + "type": "checking", + }, + ], + "end_date": "2024-02-01", + "institution": "Well's Fargo", + "start_date": "2024-01-01", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/bank_statements/{id}/overview", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.StatementInfo", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBankStatements": { + "auth": true, + "display-name": "List all bank statements", + "docs": "Return a list of submitted bank statements starting with the most recent one.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for bs in sdk.bank_statements.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/bank_statements", + "request": { + "name": "GetBankStatementsV3BankStatementsGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return bank statements older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return bank statements newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of bank statements", + "type": "optional", + }, + "limit": { + "docs": "The limit of bank statements to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return bank statements with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseBankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postBankStatement": { + "auth": true, + "display-name": "Submit a bank statement PDF", + "docs": "Upload a PDF file and queue it for extraction.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + --form file=@bank_statement.pdf + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +with open('bank_statement.pdf', 'rb') as fh: + bank_statement = sdk.bank_statements.create(fh) + results = sdk.bank_statement.wait_for_results(bank_statement.id) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": {}, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "error": { + "code": "invalid_bank_statement", + "message": "message", + }, + "file": { + "no_pages": 1, + "size": 4096, + }, + "id": "7f8dceac-2848-472d-b5c3-55cdbaf35a9b", + "name": "2014-01-01_2014-02-01_statement.pdf", + "status": "processing", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/bank_statements", + "request": { + "body": { + "properties": { + "file": "file", + }, + }, + "content-type": "multipart/form-data", + "headers": undefined, + "name": "Body_post_bank_statement_v3_bank_statements_post", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.BankStatement", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getBankStatements: + path: /v3/bank_statements + method: GET + auth: true + docs: >- + Return a list of submitted bank statements starting with the most recent + one. + source: + openapi: ../openapi.yml + display-name: List all bank statements + request: + name: GetBankStatementsV3BankStatementsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return bank statements older or equal than this date + created_before: + type: optional + docs: Only return bank statements newer than this date + cursor: + type: optional + docs: Starting point for the set of bank statements + limit: + type: optional + docs: The limit of bank statements to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return bank statements with this status + response: + docs: Successful Response + type: root.PagedResponseBankStatement + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for bs in sdk.bank_statements.list().auto_paginate(): + ... + postBankStatement: + path: /v3/bank_statements + method: POST + auth: true + docs: Upload a PDF file and queue it for extraction. + source: + openapi: ../openapi.yml + display-name: Submit a bank statement PDF + request: + name: Body_post_bank_statement_v3_bank_statements_post + body: + properties: + file: file + content-type: multipart/form-data + response: + docs: Successful Response + type: root.BankStatement + errors: + - root.UnprocessableEntityError + examples: + - request: {} + response: + body: + id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + --form file=@bank_statement.pdf + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + with open('bank_statement.pdf', 'rb') as fh: + bank_statement = sdk.bank_statements.create(fh) + results = sdk.bank_statement.wait_for_results(bank_statement.id) + getBankStatement: + path: /v3/bank_statements/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a bank statement + response: + docs: Successful Response + type: root.BankStatement + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00Z' + file: + no_pages: 1 + size: 4096 + error: + code: invalid_bank_statement + message: message + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + bs = + sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") + deleteBankStatement: + path: /v3/bank_statements/{id} + method: DELETE + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes a bank statement + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + getBankStatementStatementInfo: + path: /v3/bank_statements/{id}/overview + method: POST + auth: true + docs: >- + Extracts account holder, bank and account information extracted from the + first page of the bank statement, which is typically available before + the full results. This is a synchronous call. + + + Complete guide: [Overview](../../../bank-statements) + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Quickly extract account holder, institution and first account + response: + docs: Successful Response + type: root.StatementInfo + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + institution: Well's Fargo + start_date: '2024-01-01' + end_date: '2024-02-01' + account_holder: + type: consumer + name: John Doe + address: + street: 601 Rosebud Avenue + postcode: '77901' + city: Victoria + state: Texas + country: United States + accounts: + - type: checking + number: '83721' + opening_balance: 1000 + closing_balance: 1500 + iso_currency_code: USD + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + overview = sdk.bank_statements.overview( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" + ) + getBankStatementResult: + path: /v3/bank_statements/{id}/results + method: GET + auth: true + docs: >- + Return the extracted account information and associated transactions + from a bank statement PDF. The results are accessible once the + statement's status is `completed`. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve the extraction results + response: + docs: Successful Response + type: root.BankStatementResults + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + accounts: + - number: '972913289' + opening_balance: 400 + closing_balance: 200 + start_date: '2024-01-01' + end_date: '2024-02-01' + is_balance_reconciled: true + total_incoming: 0 + total_outgoing: 200 + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 200 + entry_type: outgoing + currency: USD + running_balance: 400 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + bs = + sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") + + results = sdk.bank_statements.wait_for_results( + "7f8dceac-2848-472d-b5c3-55cdbaf35a9b" + ) + source: + openapi: ../openapi.yml + display-name: Bank statements +docs: > + + The Bank Statements API allows you to manage and extract information from bank + statements. We support extraction of + + account holder information, account information and transaction records. Files + should be uploaded in PDF format. + + + During the extraction process, the bank statements undergo several status + changes: + + | Status | + Description | + + |----------|------------------------------------------------------------------------| + + |processing|The upload was successful. Extraction is in + progress. | + + |completed |The extraction was successful. Results are + available. | + + |error |An error occurred during extraction. Check `error` for more + information.| + + + + A list of error codes for the `error` status can be found below: + + | Code | Description | + + |----------------------|-------------------------------------------| + + |invalid_bank_statement|Failed to process file as a bank statement.| + + |internal_error |Internal error. Please contact support. | + + + + Complete guide: [Bank Statements](../../../bank-statements). +", + }, + "batches.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "getBatchResults": { + "auth": true, + "display-name": "Retrieve the results of a batch", + "docs": "Returns the results of the enrichment request. The resulting enriched transactions are returned in the same order they were submitted. Results are available after the batch has finished processing.", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +results = sdk.batches.wait_for_results("f203613d2-83c8-4130-8809-d14206eeec20") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "id": "id", + "results": { + "transactions": [ + { + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + }, + ], + }, + "status": "processing", + "total": 1, + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches/{id}/results", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Returned batch of transaction enrichment results.", + "type": "root.BatchResult", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getBatches": { + "auth": true, + "display-name": "List all batches", + "docs": "Returns a list of submitted batches starting with the most recent one.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +for batch in sdk.batches.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches", + "request": { + "name": "GetBatchesV3BatchesGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return batches older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return batches newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of batches", + "type": "optional", + }, + "limit": { + "docs": "The limit of batches to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return batches with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseBatch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getSingleBatch": { + "auth": true, + "display-name": "Retrieve a batch", + "docs": undefined, + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +batch = sdk.batches.get("f203613d2-83c8-4130-8809-d14206eeec20") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/batches/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Batch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postBatch": { + "auth": true, + "display-name": "Submit a batch of transactions", + "docs": "Creates a batch of transactions and enriches it in an asynchronous fashion. A batch, representing the status of the +enrichment progress is returned as a result of the submission. + +In order to be notified on the status of the batch, you can setup [webhooks](../../../webhooks) and receive +the respective notifications. Alternatively, you can +[poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch) for the status of the batch using its id. + +This endpoints supports up to 24960 transactions.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/batches/" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput + +sdk = SDK("cd1H...Wmhl") +batch = sdk.batches.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) +]) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "transactions": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "location": { + "country": "US", + }, + }, + ], + }, + "response": { + "body": { + "created_at": "2024-01-01T00:00:00Z", + "id": "203613d2-83c8-4130-8809-d14206eeec20", + "progress": 0, + "status": "processing", + "total": 4000, + "updated_at": "2024-01-01T00:00:30Z", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/batches", + "request": { + "body": { + "properties": { + "transactions": { + "type": "list", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "AsyncEnrichmentInput", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Batch", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getBatches: + path: /v3/batches + method: GET + auth: true + docs: Returns a list of submitted batches starting with the most recent one. + source: + openapi: ../openapi.yml + display-name: List all batches + request: + name: GetBatchesV3BatchesGetRequest + query-parameters: + created_after: + type: optional + docs: Only return batches older or equal than this date + created_before: + type: optional + docs: Only return batches newer than this date + cursor: + type: optional + docs: Starting point for the set of batches + limit: + type: optional + docs: The limit of batches to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return batches with this status + response: + docs: Successful Response + type: root.PagedResponseBatch + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + for batch in sdk.batches.list().auto_paginate(): + ... + postBatch: + path: /v3/batches + method: POST + auth: true + docs: >- + Creates a batch of transactions and enriches it in an asynchronous + fashion. A batch, representing the status of the + + enrichment progress is returned as a result of the submission. + + + In order to be notified on the status of the batch, you can setup + [webhooks](../../../webhooks) and receive + + the respective notifications. Alternatively, you can + + [poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch) + for the status of the batch using its id. + + + This endpoints supports up to 24960 transactions. + source: + openapi: ../openapi.yml + display-name: Submit a batch of transactions + request: + name: AsyncEnrichmentInput + body: + properties: + transactions: + type: list + content-type: application/json + response: + docs: Successful Response + type: root.Batch + errors: + - root.UnprocessableEntityError + examples: + - request: + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + location: + country: US + response: + body: + id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/batches/" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK, TransactionInput, LocationInput + + sdk = SDK("cd1H...Wmhl") + batch = sdk.batches.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) + ]) + getSingleBatch: + path: /v3/batches/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a batch + response: + docs: Successful Response + type: root.Batch + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00Z' + updated_at: '2024-01-01T00:00:30Z' + progress: 0 + total: 4000 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: >- + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + batch = + sdk.batches.get("f203613d2-83c8-4130-8809-d14206eeec20") + getBatchResults: + path: /v3/batches/{id}/results + method: GET + auth: true + docs: >- + Returns the results of the enrichment request. The resulting enriched + transactions are returned in the same order they were submitted. Results + are available after the batch has finished processing. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve the results of a batch + response: + docs: Returned batch of transaction enrichment results. + type: root.BatchResult + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: id + total: 1 + status: processing + results: + transactions: + - entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + created_at: '2024-03-30T00:00:00Z' + id: xbx8YP14g565Xk + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + results = + sdk.batches.wait_for_results("f203613d2-83c8-4130-8809-d14206eeec20") + source: + openapi: ../openapi.yml +", + }, + "categories.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "customCategoriesPost": { + "auth": true, + "display-name": "Set a custom set of categories", + "docs": "Sets a custom set of categories. Transactions that don't match a category will be categorized `not enough information` regardless of whether it is present in the set.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "incoming": [ + "salary", + "investment income", + "other income" + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment" + ] + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.set("consumer", { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend" + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal" + ] +}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "request": { + "incoming": [ + "salary", + "investment income", + "other income", + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment", + ], + }, + "response": { + "body": { + "incoming": [ + "salary", + "investment income", + "other income", + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment", + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "request": { + "body": { + "type": "root.CustomCategorySet", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Custom categories successfully set.", + "type": "root.CustomCategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "deleteCustomCategorySet": { + "auth": true, + "display-name": "Reset category set to original values", + "docs": "Resets the set of categories of the specified account holder type to the original values.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer/reset" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.reset("consumer") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "response": { + "body": { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend", + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal", + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}/reset", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "response": { + "docs": "Successful Response", + "type": "root.CategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getCategorySet": { + "auth": true, + "display-name": "Retrieve category set", + "docs": "Retrieves the set of categories. Category sets are different per account holder type.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.categories.get("consumer") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "account_holder_type": "consumer", + }, + "response": { + "body": { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend", + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal", + ], + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/categories/{account_holder_type}", + "path-parameters": { + "account_holder_type": "root.AccountHolderType", + }, + "response": { + "docs": "Category set for the selected type of account holder", + "type": "root.CategorySet", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getCategorySet: + path: /v3/categories/{account_holder_type} + method: GET + auth: true + docs: >- + Retrieves the set of categories. Category sets are different per account + holder type. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Retrieve category set + response: + docs: Category set for the selected type of account holder + type: root.CategorySet + errors: + - root.UnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + response: + body: + incoming: + - transfer from investment app + - transfer from stock broker + - transfer from crypto broker + - chargeback + - freelance income + - rideshare or delivery income + - paycheck + - benefits + - interest earned + - stock dividend + outgoing: + - digital content and streaming + - vending machine + - reversal + - transfer to investment app + - transfer to stock broker + - transfer to crypto broker + - adjustment + - intra account transfer + - inter account transfer + - peer to peer transfer + - funeral service + - ATM withdrawal + - teller withdrawal + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.get("consumer") + customCategoriesPost: + path: /v3/categories/{account_holder_type} + method: POST + auth: true + docs: >- + Sets a custom set of categories. Transactions that don't match a + category will be categorized `not enough information` regardless of + whether it is present in the set. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Set a custom set of categories + request: + body: + type: root.CustomCategorySet + content-type: application/json + response: + docs: Custom categories successfully set. + type: root.CustomCategorySet + errors: + - root.UnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + request: + incoming: + - salary + - investment income + - other income + outgoing: + - rent + - utilities + - groceries + - entertainment + response: + body: + incoming: + - salary + - investment income + - other income + outgoing: + - rent + - utilities + - groceries + - entertainment + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "incoming": [ + "salary", + "investment income", + "other income" + ], + "outgoing": [ + "rent", + "utilities", + "groceries", + "entertainment" + ] + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.set("consumer", { + "incoming": [ + "transfer from investment app", + "transfer from stock broker", + "transfer from crypto broker", + "chargeback", + "freelance income", + "rideshare or delivery income", + "paycheck", + "benefits", + "interest earned", + "stock dividend" + ], + "outgoing": [ + "digital content and streaming", + "vending machine", + "reversal", + "transfer to investment app", + "transfer to stock broker", + "transfer to crypto broker", + "adjustment", + "intra account transfer", + "inter account transfer", + "peer to peer transfer", + "funeral service", + "ATM withdrawal", + "teller withdrawal" + ] + }) + deleteCustomCategorySet: + path: /v3/categories/{account_holder_type}/reset + method: POST + auth: true + docs: >- + Resets the set of categories of the specified account holder type to the + original values. + source: + openapi: ../openapi.yml + path-parameters: + account_holder_type: root.AccountHolderType + display-name: Reset category set to original values + response: + docs: Successful Response + type: root.CategorySet + errors: + - root.UnprocessableEntityError + examples: + - path-parameters: + account_holder_type: consumer + response: + body: + incoming: + - transfer from investment app + - transfer from stock broker + - transfer from crypto broker + - chargeback + - freelance income + - rideshare or delivery income + - paycheck + - benefits + - interest earned + - stock dividend + outgoing: + - digital content and streaming + - vending machine + - reversal + - transfer to investment app + - transfer to stock broker + - transfer to crypto broker + - adjustment + - intra account transfer + - inter account transfer + - peer to peer transfer + - funeral service + - ATM withdrawal + - teller withdrawal + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/categories/consumer/reset" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.categories.reset("consumer") + source: + openapi: ../openapi.yml +", + }, + "entities.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "endpoints": { + "getEntityById": { + "auth": true, + "display-name": "Retrieve an entity", + "docs": "Retrieve more information about an entity by using its unique ID.", + "errors": [ + "root.BadRequestError", + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.entities.lookup("d4bc3c80-ec1a-3da2-836e-2a4ca4758be5") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "website": "starbucks.com", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/entities/{id}", + "path-parameters": { + "id": { + "docs": "The unique ID of the entity", + "type": "string", + }, + }, + "response": { + "docs": "Entity", + "type": "root.Entity", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "searchEntity": { + "auth": true, + "display-name": "Searches for an entity", + "docs": "Resolves a query into an entity by querying our entity resolution system. + The parameters `name` and `website` are mutually exclusive. Calls to this endpoint using + the `name` parameter are billed the same way transactions are.", + "errors": [ + "root.BadRequestError", + "root.UnprocessableEntityError", + "root.LockedError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/entities?name=Starbucks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.entities.lookup(name="Starbucks") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "website": "starbucks.com", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/entities/lookup", + "request": { + "name": "SearchEntityV3EntitiesLookupGetRequest", + "query-parameters": { + "location": { + "docs": "An unstructured location string of the entity to resolve", + "type": "optional", + }, + "name": { + "docs": "The name of the entity to resolve", + "type": "optional", + }, + "website": { + "docs": "The website of the entity to resolve", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Entity", + "type": "root.Entity", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + searchEntity: + path: /v3/entities/lookup + method: GET + auth: true + docs: >- + Resolves a query into an entity by querying our entity resolution + system. + The parameters `name` and `website` are mutually exclusive. Calls to this endpoint using + the `name` parameter are billed the same way transactions are. + source: + openapi: ../openapi.yml + display-name: Searches for an entity + request: + name: SearchEntityV3EntitiesLookupGetRequest + query-parameters: + name: + type: optional + docs: The name of the entity to resolve + website: + type: optional + docs: The website of the entity to resolve + location: + type: optional + docs: An unstructured location string of the entity to resolve + response: + docs: Entity + type: root.Entity + errors: + - root.BadRequestError + - root.UnprocessableEntityError + - root.LockedError + examples: + - response: + body: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/entities?name=Starbucks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.entities.lookup(name="Starbucks") + getEntityById: + path: /v3/entities/{id} + method: GET + auth: true + docs: Retrieve more information about an entity by using its unique ID. + source: + openapi: ../openapi.yml + path-parameters: + id: + type: string + docs: The unique ID of the entity + display-name: Retrieve an entity + response: + docs: Entity + type: root.Entity + errors: + - root.BadRequestError + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.entities.lookup("d4bc3c80-ec1a-3da2-836e-2a4ca4758be5") + source: + openapi: ../openapi.yml +", + }, + "personalization.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Personalization API allows you to customize the output of enrichment by +uploading a set of rules. For more information, see our documentation on +[Personalization](None). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Personalization", + "endpoints": { + "filterAppend": { + "auth": true, + "display-name": "Append a rule.", + "docs": "Append a rule to the personalization ruleset.", + "errors": [ + "root.BadRequestError", + "root.ContentTooLargeError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/rules/append" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.append({"set": "logo", "to": "http://example.com/favicon.ico"}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "if": true, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/rules/append", + "request": { + "body": { + "type": "root.action", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterDelete": { + "auth": true, + "display-name": "Delete a rule.", + "docs": "Delete the rule at the specified index from the personalization ruleset.", + "errors": [ + "root.BadRequestError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.delete(0) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "index": 1, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/rules/{index}", + "path-parameters": { + "index": "integer", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterGet": { + "auth": true, + "display-name": "Get the current personalization ruleset.", + "docs": "Get the current personalization ruleset.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +rules = sdk.rules.get() +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": [ + { + "if": { + "is_substring": [], + }, + }, + ], + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/rules", + "response": { + "docs": "Successful Response", + "type": "root.Filter", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterPatch": { + "auth": true, + "display-name": "Modify an existing rule.", + "docs": "Modify an existing rule at the specified index on the ruleset.", + "errors": [ + "root.BadRequestError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "PATCH" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.patch(0, {"set": "logo", "to": "http://example.com/favicon.ico"}) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "index": 1, + }, + "request": { + "if": true, + }, + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "PATCH", + "pagination": undefined, + "path": "/v3/rules/{index}", + "path-parameters": { + "index": "integer", + }, + "request": { + "body": { + "type": "root.action", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "filterPost": { + "auth": true, + "display-name": "Set the personalization ruleset.", + "docs": "Set the personalization ruleset.", + "errors": [ + "root.BadRequestError", + "root.ContentTooLargeError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]' +", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.rules.set([{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] +}]) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": [ + { + "if": { + "is_substring": [], + }, + }, + ], + "response": { + "body": { + "key": "value", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/rules", + "request": { + "body": { + "type": "root.Filter", + }, + "content-type": "application/json", + }, + "response": { + "docs": "Successful Response", + "type": "unknown", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + filterGet: + path: /v3/rules + method: GET + auth: true + docs: Get the current personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Get the current personalization ruleset. + response: + docs: Successful Response + type: root.Filter + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + - if: + is_substring: [] + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + rules = sdk.rules.get() + filterPost: + path: /v3/rules + method: POST + auth: true + docs: Set the personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Set the personalization ruleset. + request: + body: + type: root.Filter + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.BadRequestError + - root.ContentTooLargeError + - root.UnprocessableEntityError + examples: + - request: + - if: + is_substring: [] + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "POST" \ + "https://api.ntropy.com/v3/rules" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]' + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.rules.set([{ + "if": { + "is_substring": [ + {"get": "website"}, + "ntropy" + ] + }, + "then": [ + {"set": "logo", "to": "http://example.com/favicon.ico"} + ], + "else": [ + {"remove_label": "example label"} + ] + }]) + filterAppend: + path: /v3/rules/append + method: POST + auth: true + docs: Append a rule to the personalization ruleset. + source: + openapi: ../openapi.yml + display-name: Append a rule. + request: + body: + type: root.action + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.BadRequestError + - root.ContentTooLargeError + - root.UnprocessableEntityError + examples: + - request: + if: true + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "POST" \ + "https://api.ntropy.com/v3/rules/append" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.append({"set": "logo", "to": + "http://example.com/favicon.ico"}) + filterDelete: + path: /v3/rules/{index} + method: DELETE + auth: true + docs: Delete the rule at the specified index from the personalization ruleset. + source: + openapi: ../openapi.yml + path-parameters: + index: integer + display-name: Delete a rule. + response: + docs: Successful Response + type: unknown + errors: + - root.BadRequestError + - root.UnprocessableEntityError + examples: + - path-parameters: + index: 1 + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.rules.delete(0) + filterPatch: + path: /v3/rules/{index} + method: PATCH + auth: true + docs: Modify an existing rule at the specified index on the ruleset. + source: + openapi: ../openapi.yml + path-parameters: + index: integer + display-name: Modify an existing rule. + request: + body: + type: root.action + content-type: application/json + response: + docs: Successful Response + type: unknown + errors: + - root.BadRequestError + - root.UnprocessableEntityError + examples: + - path-parameters: + index: 1 + request: + if: true + response: + body: + key: value + code-samples: + - name: cURL + language: cURL + code: | + curl -X "PATCH" \ + "https://api.ntropy.com/v3/rules/0" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{"set": "logo", "to": "http://example.com/favicon.ico"}' + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.patch(0, {"set": "logo", "to": + "http://example.com/favicon.ico"}) + source: + openapi: ../openapi.yml + display-name: Personalization +docs: | + + The Personalization API allows you to customize the output of enrichment by + uploading a set of rules. For more information, see our documentation on + [Personalization](None). +", + }, + "recurrence.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Recurrence API allows you to identify and categorize recurring patterns found in the transactions of an +[account holder](#tag/Account-Holders), such as periodic payments or subscriptions and group them +into recurrence groups. Each recurrence group contains detailed information about the pattern, +such as periodicity, amount and counterparty. + +Transactions can be added to an account holder via the [Enrichment API](#tag/Enrichment). +It is crucial that transactions are submitted with the [correct](../../../account-holders) +account holder information as the recurrence calculation relies heavily on it. + +Complete guide: [Recurrence](../../../enrichment/recurrence). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Recurrence", + "endpoints": { + "getAccountHolderRecurringPayments": { + "auth": true, + "display-name": "Find recurring groups in a transaction history", + "docs": "Identifies and categorizes recurring patterns found in the transaction history of the account holder, such as periodic payments or subscriptions. These patterns are called recurrence groups.", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +recurring_groups = sdk.account_holders.recurring_groups( + "35b927b6-6fda-40aa-93b8-95b47c2b2cad" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": [ + { + "average_amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "end_date": "2024-03-30", + "id": "8efbac45-9bd5-4b67-be29-334106198c40", + "periodicity": "daily", + "periodicity_in_days": 1, + "start_date": "2024-03-01", + "total_amount": 300, + "transaction_ids": [ + "2dc6SE8A7cTQ2jUdUadCg", + "tQYAhhl0XNkl1wasacpVQ", + "NNJTqvockIdKnYxBqPlJw", + ], + }, + ], + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/account_holders/{id}/recurring_groups", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "list", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getAccountHolderRecurringPayments: + path: /v3/account_holders/{id}/recurring_groups + method: POST + auth: true + docs: >- + Identifies and categorizes recurring patterns found in the transaction + history of the account holder, such as periodic payments or + subscriptions. These patterns are called recurrence groups. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Find recurring groups in a transaction history + response: + docs: Successful Response + type: list + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + - id: 8efbac45-9bd5-4b67-be29-334106198c40 + start_date: '2024-03-01' + end_date: '2024-03-30' + total_amount: 300 + average_amount: 10 + periodicity_in_days: 1 + periodicity: daily + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + categories: + general: outgoing - coffee shops + accounting: operational expenses + transaction_ids: + - 2dc6SE8A7cTQ2jUdUadCg + - tQYAhhl0XNkl1wasacpVQ + - NNJTqvockIdKnYxBqPlJw + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + recurring_groups = sdk.account_holders.recurring_groups( + "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + ) + source: + openapi: ../openapi.yml + display-name: Recurrence +docs: > + + The Recurrence API allows you to identify and categorize recurring patterns + found in the transactions of an + + [account holder](#tag/Account-Holders), such as periodic payments or + subscriptions and group them + + into recurrence groups. Each recurrence group contains detailed information + about the pattern, + + such as periodicity, amount and counterparty. + + + Transactions can be added to an account holder via the [Enrichment + API](#tag/Enrichment). + + It is crucial that transactions are submitted with the + [correct](../../../account-holders) + + account holder information as the recurrence calculation relies heavily on it. + + + Complete guide: [Recurrence](../../../enrichment/recurrence). +", + }, + "reports.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Reports API allows you to flag transactions with incorrect fields. You can also track the progress of each +report either through the API or using [webhooks](#tag/Webhooks). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Reports", + "endpoints": { + "deleteReport": { + "auth": true, + "display-name": "Delete a report", + "docs": "Delete a report", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/reports/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getReport": { + "auth": true, + "display-name": "Retrieve a report", + "docs": "Retrieve a report", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +report = sdk.reports.get("a652285d-de1b-4a6f-b6ce-45efa9be7952") + ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/reports/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Report", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getReports": { + "auth": true, + "display-name": "List all reports", + "docs": "List all reports", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +reports = sdk.reports.list() + ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + ], + "next_cursor": "next_cursor", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/reports", + "request": { + "name": "GetReportsV3ReportsGetRequest", + "query-parameters": { + "created_after": { + "docs": "Only return report older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return report newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of report", + "type": "optional", + }, + "limit": { + "docs": "The limit of report to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 50, + "min": 1, + "multipleOf": undefined, + }, + }, + "status": { + "docs": "If specified, only return reports with this status", + "type": "optional", + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseReport", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postReport": { + "auth": true, + "display-name": "Create a report", + "docs": "Report a transaction with incorrect fields.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "transaction_id": "xbx8YP14g565Xk", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty" + ] + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +report = sdk.reports.create( + transaction_id="xbx8YP14g565Xk", + description="lorem ipsum", + fields=['.entities.counterparty'], +) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "transaction_id": "xbx8YP14g565Xk", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty", + ], + "id": "a652285d-de1b-4a6f-b6ce-45efa9be7952", + "rejection_reason": "rejection_reason", + "status": "open", + "transaction_id": "xbx8YP14g565Xk", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/reports", + "request": { + "body": { + "properties": { + "description": { + "docs": "A description of what is wrong in the transaction", + "type": "string", + }, + "fields": { + "docs": "A list of the fields that are incorrect", + "type": "list", + }, + "transaction_id": { + "docs": "The unique identifier of the transaction", + "type": "string", + "validation": { + "format": undefined, + "maxLength": undefined, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "ReportBase", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "The newly created report", + "type": "root.Report", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getReports: + path: /v3/reports + method: GET + auth: true + docs: List all reports + source: + openapi: ../openapi.yml + display-name: List all reports + request: + name: GetReportsV3ReportsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return report older or equal than this date + created_before: + type: optional + docs: Only return report newer than this date + cursor: + type: optional + docs: Starting point for the set of report + limit: + type: optional + docs: The limit of report to be returned + validation: + min: 1 + max: 50 + status: + type: optional + docs: If specified, only return reports with this status + response: + docs: Successful Response + type: root.PagedResponseReport + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: next_cursor + data: + - transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + reports = sdk.reports.list() + + postReport: + path: /v3/reports + method: POST + auth: true + docs: Report a transaction with incorrect fields. + source: + openapi: ../openapi.yml + display-name: Create a report + request: + name: ReportBase + body: + properties: + transaction_id: + type: string + docs: The unique identifier of the transaction + validation: + minLength: 1 + description: + type: string + docs: A description of what is wrong in the transaction + fields: + docs: A list of the fields that are incorrect + type: list + content-type: application/json + response: + docs: The newly created report + type: root.Report + errors: + - root.UnprocessableEntityError + examples: + - request: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + response: + body: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/reports" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "transaction_id": "xbx8YP14g565Xk", + "description": "lorem ipsum", + "fields": [ + ".entities.counterparty" + ] + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + report = sdk.reports.create( + transaction_id="xbx8YP14g565Xk", + description="lorem ipsum", + fields=['.entities.counterparty'], + ) + getReport: + path: /v3/reports/{id} + method: GET + auth: true + docs: Retrieve a report + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a report + response: + docs: Successful Response + type: root.Report + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30Z' + status: open + rejection_reason: rejection_reason + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + report = sdk.reports.get("a652285d-de1b-4a6f-b6ce-45efa9be7952") + + deleteReport: + path: /v3/reports/{id} + method: DELETE + auth: true + docs: Delete a report + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Delete a report + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + source: + openapi: ../openapi.yml + display-name: Reports +docs: > + + The Reports API allows you to flag transactions with incorrect fields. You can + also track the progress of each + + report either through the API or using [webhooks](#tag/Webhooks). +", + }, + "transactions.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Transaction API allows you to manage, retrieve and search through enriched transactions. A transaction contains +both the enrichment fields and the original input fields. They are made available after being +[enriched](#tag/Enrichment). +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Transactions", + "endpoints": { + "deleteTransaction": { + "auth": true, + "display-name": "Deletes a transaction", + "docs": "Deleting a transaction will also delete it from our systems. This operation is permanent.", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +tx = sdk.transactions.delete("xbx8YP14g565Xk") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/transactions/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getTransaction": { + "auth": true, + "display-name": "Retrieve a transaction", + "docs": undefined, + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +tx = sdk.transactions.get("xbx8YP14g565Xk") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "store_number": "store_number", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/transactions/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Transaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "listTransactions": { + "auth": true, + "display-name": "List all transactions", + "docs": "Return a list of enriched transactions starting with the most recent one.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for tx in sdk.transactions.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/transactions", + "request": { + "name": "ListTransactionsV3TransactionsGetRequest", + "query-parameters": { + "account_holder_id": { + "docs": "If specified, only return the transactions of this account holder", + "type": "optional", + }, + "created_after": { + "docs": "Only return transactions older or equal than this date", + "type": "optional", + }, + "created_before": { + "docs": "Only return transactions newer than this date", + "type": "optional", + }, + "cursor": { + "docs": "Starting point for the set of transactions", + "type": "optional", + }, + "limit": { + "docs": "The limit of transactions to be returned", + "type": "optional", + "validation": { + "exclusiveMax": undefined, + "exclusiveMin": undefined, + "max": 500, + "min": 1, + "multipleOf": undefined, + }, + }, + }, + }, + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseTransaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postTransactions": { + "auth": true, + "display-name": "Synchronously enrich transactions", + "docs": "Enriches a list of transactions in synchronous fashion. The enriched transactions returned in +the order that they were submitted. Webhook events are not triggered for this operation. + +This endpoint supports up to 1000 transactions. + +If you want more throughput and live updates refer to the +[async enrichment endpoint](../batches/post-batch).", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK, TransactionInput, LocationInput + +sdk = SDK("cd1H...Wmhl") +enriched = sdk.transactions.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) +]) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "transactions": [ + { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entry_type": "outgoing", + "id": "xbx8YP14g565Xk", + "location": { + "country": "US", + }, + }, + ], + }, + "response": { + "body": { + "transactions": [ + { + "categories": { + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "street": "Nw 43rd Street 5480", + }, + }, + }, + ], + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/transactions", + "request": { + "body": { + "properties": { + "transactions": { + "type": "list", + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "SyncEnrichmentInput", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Enriched transactions.", + "type": "root.SyncEnrichmentOutput", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "setTransactionAh": { + "auth": true, + "display-name": "Assign a transaction to an account holder", + "docs": "Changes the account holder associated with the transaction. The old and new account holder must share the same categories", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.transactions.assign( + transaction_id="xbx8YP14g565Xk", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad" +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "request": { + "account_holder_id": "account_holder_id", + }, + "response": { + "body": { + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "amount": 10, + "categories": { + "accounting": "operational expenses", + "general": "outgoing - coffee shops", + }, + "created_at": "2024-03-30T00:00:00Z", + "currency": "USD", + "date": "2024-03-30", + "description": "SQ* STARBUCKS NW 43RD", + "entities": { + "counterparty": { + "id": "d4bc3c80-ec1a-3da2-836e-2a4ca4758be5", + "logo": "https://logos.ntropy.com/starbucks.com", + "mccs": [ + 5814, + ], + "name": "Starbucks", + "type": "organization", + "website": "starbucks.com", + }, + "intermediaries": [ + { + "id": "916bc837-55ef-3106-88f6-5a8269ca9f2a", + "logo": "https://logos.ntropy.com/squareup.com", + "mccs": [ + 1, + ], + "name": "Square", + "type": "payment_processor", + "website": "squareup.com", + }, + ], + }, + "entry_type": "outgoing", + "error": { + "code": "account_holder_not_found", + "message": "message", + }, + "id": "xbx8YP14g565Xk", + "location": { + "raw_address": "Nw 43rd Street 5480, Gainesville, Florida 32653, US", + "structured": { + "apple_maps_url": "https://maps.apple.com/?q=29.704558,-82.389277", + "city": "Gainesville", + "country": "United States", + "country_code": "US", + "google_maps_url": "https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277", + "latitude": 29.704558, + "longitude": -82.389277, + "postcode": "32653", + "state": "Florida", + "store_number": "store_number", + "street": "Nw 43rd Street 5480", + }, + }, + "recurrence": { + "type": "recurring", + }, + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/transactions/{id}/assign", + "path-parameters": { + "id": "string", + }, + "request": { + "body": { + "properties": { + "account_holder_id": "string", + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "BodySetTransactionAhV3TransactionsIdAssignPost", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Transaction", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getTransaction: + path: /v3/transactions/{id} + method: GET + auth: true + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a transaction + response: + docs: Successful Response + type: root.Transaction + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + accounting: operational expenses + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + store_number: store_number + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + tx = sdk.transactions.get("xbx8YP14g565Xk") + deleteTransaction: + path: /v3/transactions/{id} + method: DELETE + auth: true + docs: >- + Deleting a transaction will also delete it from our systems. This + operation is permanent. + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Deletes a transaction + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + tx = sdk.transactions.delete("xbx8YP14g565Xk") + listTransactions: + path: /v3/transactions + method: GET + auth: true + docs: >- + Return a list of enriched transactions starting with the most recent + one. + source: + openapi: ../openapi.yml + display-name: List all transactions + request: + name: ListTransactionsV3TransactionsGetRequest + query-parameters: + created_after: + type: optional + docs: Only return transactions older or equal than this date + created_before: + type: optional + docs: Only return transactions newer than this date + cursor: + type: optional + docs: Starting point for the set of transactions + limit: + type: optional + docs: The limit of transactions to be returned + validation: + min: 1 + max: 500 + account_holder_id: + type: optional + docs: If specified, only return the transactions of this account holder + response: + docs: Successful Response + type: root.PagedResponseTransaction + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for tx in sdk.transactions.list().auto_paginate(): + ... + postTransactions: + path: /v3/transactions + method: POST + auth: true + docs: >- + Enriches a list of transactions in synchronous fashion. The enriched + transactions returned in + + the order that they were submitted. Webhook events are not triggered for + this operation. + + + This endpoint supports up to 1000 transactions. + + + If you want more throughput and live updates refer to the + + [async enrichment endpoint](../batches/post-batch). + source: + openapi: ../openapi.yml + display-name: Synchronously enrich transactions + request: + name: SyncEnrichmentInput + body: + properties: + transactions: + type: list + content-type: application/json + response: + docs: Enriched transactions. + type: root.SyncEnrichmentOutput + errors: + - root.UnprocessableEntityError + examples: + - request: + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + location: + country: US + response: + body: + transactions: + - entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + id: xbx8YP14g565Xk + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/transactions" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '[{ + "id": "xbx8YP14g565Xk", + "description": "SQ* STARBUCKS NW 43RD", + "date": "2024-03-30", + "amount": 10.0, + "entry_type": "outgoing", + "currency": "USD", + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad", + "location": { + "country": "US" + } + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK, TransactionInput, LocationInput + + sdk = SDK("cd1H...Wmhl") + enriched = sdk.transactions.create([ + TransactionInput( + id="xbx8YP14g565Xk", + description="SQ* STARBUCKS NW 43RD", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad", + amount=10.0, + entry_type="outgoing", + date="2024-03-30", + currency="USD", + location=LocationInput( + country="US", + ) + ) + ]) + setTransactionAh: + path: /v3/transactions/{id}/assign + method: POST + auth: true + docs: >- + Changes the account holder associated with the transaction. The old and + new account holder must share the same categories + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Assign a transaction to an account holder + request: + name: BodySetTransactionAhV3TransactionsIdAssignPost + body: + properties: + account_holder_id: string + content-type: application/json + response: + docs: Successful Response + type: root.Transaction + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + request: + account_holder_id: account_holder_id + response: + body: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: + - 1 + type: payment_processor + categories: + general: outgoing - coffee shops + accounting: operational expenses + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: >- + https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + store_number: store_number + error: + code: account_holder_not_found + message: message + created_at: '2024-03-30T00:00:00Z' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "account_holder_id": "35b927b6-6fda-40aa-93b8-95b47c2b2cad" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.transactions.assign( + transaction_id="xbx8YP14g565Xk", + account_holder_id="35b927b6-6fda-40aa-93b8-95b47c2b2cad" + ) + source: + openapi: ../openapi.yml + display-name: Transactions +docs: > + + The Transaction API allows you to manage, retrieve and search through enriched + transactions. A transaction contains + + both the enrichment fields and the original input fields. They are made + available after being + + [enriched](#tag/Enrichment). +", + }, + "webhooks.yml": { + "absoluteFilepath": "/DUMMY_PATH", + "contents": { + "docs": " +The Webhooks API allows you to receive notifications when certain events occur, +such as when a batch or bank statement finishes processing. + +When an event occurs, Ntropy will make a POST request to the `url` of the +webhook. If you specified a `token` when creating the webhook, this string will +be included in the `X-Ntropy-Token` header. The webhook call has a timeout limit of 10 +seconds, so any processing of the event +", + "imports": { + "root": "__package__.yml", + }, + "service": { + "auth": false, + "base-path": "", + "display-name": "Webhooks", + "endpoints": { + "deleteWebhook": { + "auth": true, + "display-name": "Delete a webhook", + "docs": "Delete a webhook", + "errors": [ + "root.NotFoundError", + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "DELETE" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.webhooks.delete("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + }, + ], + "method": "DELETE", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getWebhook": { + "auth": true, + "display-name": "Retrieve a webhook", + "docs": "Retrieve a webhook", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +webhook = sdk.webhooks.get("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "getWebhooks": { + "auth": true, + "display-name": "List all webhooks", + "docs": "List all webhooks", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +for webhook in sdk.webhooks.list().auto_paginate(): + ... ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "response": { + "body": { + "data": [ + { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + ], + "next_cursor": "XjdHaksD", + }, + }, + }, + ], + "method": "GET", + "pagination": undefined, + "path": "/v3/webhooks", + "response": { + "docs": "Successful Response", + "type": "root.PagedResponseWebhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "patchWebhook": { + "auth": true, + "display-name": "Update a webhook", + "docs": "Update a webhook. Fields that aren't specified in the body will remain unchanged", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "events": [ + "batches.completed", + "batches.error" + ], + "enabled": false + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +wh = sdk.webhooks.patch( + "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + events=['batches.completed', 'batches.error'], + enabled=False, +) +", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "path-parameters": { + "id": "id", + }, + "request": {}, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "PATCH", + "pagination": undefined, + "path": "/v3/webhooks/{id}", + "path-parameters": { + "id": "string", + }, + "request": { + "body": { + "properties": { + "enabled": { + "docs": "Whether the webhook is enabled or not.", + "type": "optional", + }, + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "optional>", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "optional", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "WebhookPatch", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "postWebhook": { + "auth": true, + "display-name": "Create a webhook", + "docs": "Create a webhook to be called when certain events occur.", + "errors": [ + "root.UnprocessableEntityError", + ], + "examples": [ + { + "code-samples": [ + { + "code": "curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "url": "https://example.com:5689", + "events": [ + "batches.completed", + "batches.error" + ], + "token": "hunter2" + }]' + ", + "docs": undefined, + "install": undefined, + "language": "cURL", + "name": "cURL", + }, + { + "code": "from ntropy_sdk import SDK + +sdk = SDK("cd1H...Wmhl") +sdk.webhooks.create( + url="https://example.com:5689", + events="['batches.completed', 'batches.error']", + token="hunter2", +) ", + "docs": undefined, + "install": undefined, + "language": "python", + "name": "Python SDK", + }, + ], + "request": { + "events": [ + "reports.resolved", + ], + "url": "url", + }, + "response": { + "body": { + "created_at": "2024-10-03T02:53:30Z", + "enabled": true, + "events": [ + "batches.completed", + "batches.error", + ], + "id": "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + "token": "hunter2", + "url": "https://example.com:5689", + }, + }, + }, + ], + "method": "POST", + "pagination": undefined, + "path": "/v3/webhooks", + "request": { + "body": { + "properties": { + "events": { + "docs": "A list of events that this webhook subscribes to", + "type": "list", + }, + "token": { + "docs": "A secret string used to authenticate the webhook. This value will be included in the `X-Ntropy-Token` header when sending requests to the webhook", + "type": "optional", + "validation": { + "format": undefined, + "maxLength": 128, + "minLength": undefined, + "pattern": undefined, + }, + }, + "url": { + "docs": "The URL of the webhook", + "type": "string", + "validation": { + "format": "uri", + "maxLength": 1024, + "minLength": 1, + "pattern": undefined, + }, + }, + }, + }, + "content-type": "application/json", + "headers": undefined, + "name": "WebhookBase", + "path-parameters": undefined, + "query-parameters": undefined, + }, + "response": { + "docs": "Successful Response", + "type": "root.Webhook", + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + "source": { + "openapi": "../openapi.yml", + }, + }, + "types": { + "WebhookBaseEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + "WebhookPatchEventsItem": { + "enum": [ + { + "name": "ReportsResolved", + "value": "reports.resolved", + }, + { + "name": "ReportsRejected", + "value": "reports.rejected", + }, + { + "name": "ReportsPending", + "value": "reports.pending", + }, + { + "name": "BankStatementsCompleted", + "value": "bank_statements.completed", + }, + { + "name": "BankStatementsError", + "value": "bank_statements.error", + }, + { + "name": "BatchesCompleted", + "value": "batches.completed", + }, + { + "name": "BatchesError", + "value": "batches.error", + }, + ], + "source": { + "openapi": "../openapi.yml", + }, + }, + }, + }, + "rawContents": "imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + getWebhooks: + path: /v3/webhooks + method: GET + auth: true + docs: List all webhooks + source: + openapi: ../openapi.yml + display-name: List all webhooks + response: + docs: Successful Response + type: root.PagedResponseWebhook + errors: + - root.UnprocessableEntityError + examples: + - response: + body: + next_cursor: XjdHaksD + data: + - url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + for webhook in sdk.webhooks.list().auto_paginate(): + ... + postWebhook: + path: /v3/webhooks + method: POST + auth: true + docs: Create a webhook to be called when certain events occur. + source: + openapi: ../openapi.yml + display-name: Create a webhook + request: + name: WebhookBase + body: + properties: + url: + type: string + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + docs: A list of events that this webhook subscribes to + type: list + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending + requests to the webhook + validation: + maxLength: 128 + content-type: application/json + response: + docs: Successful Response + type: root.Webhook + errors: + - root.UnprocessableEntityError + examples: + - request: + url: url + events: + - reports.resolved + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "url": "https://example.com:5689", + "events": [ + "batches.completed", + "batches.error" + ], + "token": "hunter2" + }]' + + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.webhooks.create( + url="https://example.com:5689", + events="['batches.completed', 'batches.error']", + token="hunter2", + ) + getWebhook: + path: /v3/webhooks/{id} + method: GET + auth: true + docs: Retrieve a webhook + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Retrieve a webhook + response: + docs: Successful Response + type: root.Webhook + errors: + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "GET" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: > + from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + webhook = + sdk.webhooks.get("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") + deleteWebhook: + path: /v3/webhooks/{id} + method: DELETE + auth: true + docs: Delete a webhook + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Delete a webhook + errors: + - root.NotFoundError + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "DELETE" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" + - name: Python SDK + language: python + code: |- + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + sdk.webhooks.delete("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") + patchWebhook: + path: /v3/webhooks/{id} + method: PATCH + auth: true + docs: >- + Update a webhook. Fields that aren't specified in the body will remain + unchanged + source: + openapi: ../openapi.yml + path-parameters: + id: string + display-name: Update a webhook + request: + name: WebhookPatch + body: + properties: + url: + type: optional + docs: The URL of the webhook + validation: + format: uri + minLength: 1 + maxLength: 1024 + events: + type: optional> + docs: A list of events that this webhook subscribes to + token: + type: optional + docs: >- + A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending + requests to the webhook + validation: + maxLength: 128 + enabled: + type: optional + docs: Whether the webhook is enabled or not. + content-type: application/json + response: + docs: Successful Response + type: root.Webhook + errors: + - root.UnprocessableEntityError + examples: + - path-parameters: + id: id + request: {} + response: + body: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30Z' + enabled: true + code-samples: + - name: cURL + language: cURL + code: |- + curl -X "POST" \ + "https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3" \ + -H "Accept: application/json" \ + -H "X-API-KEY: cd1H...Wmhl" \ + -H "Content-Type: application/json" \ + -d '{ + "events": [ + "batches.completed", + "batches.error" + ], + "enabled": false + }]' + + - name: Python SDK + language: python + code: | + from ntropy_sdk import SDK + + sdk = SDK("cd1H...Wmhl") + wh = sdk.webhooks.patch( + "e94a150d-40af-4e96-8aa7-2948a6b4d8d3", + events=['batches.completed', 'batches.error'], + enabled=False, + ) + source: + openapi: ../openapi.yml + display-name: Webhooks +docs: > + + The Webhooks API allows you to receive notifications when certain events + occur, + + such as when a batch or bank statement finishes processing. + + + When an event occurs, Ntropy will make a POST request to the `url` of the + + webhook. If you specified a `token` when creating the webhook, this string + will + + be included in the `X-Ntropy-Token` header. The webhook call has a timeout + limit of 10 + + seconds, so any processing of the event +types: + WebhookBaseEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml + WebhookPatchEventsItem: + enum: + - value: reports.resolved + name: ReportsResolved + - value: reports.rejected + name: ReportsRejected + - value: reports.pending + name: ReportsPending + - value: bank_statements.completed + name: BankStatementsCompleted + - value: bank_statements.error + name: BankStatementsError + - value: batches.completed + name: BatchesCompleted + - value: batches.error + name: BatchesError + source: + openapi: ../openapi.yml +", + }, + }, + "packageMarkers": {}, + "rootApiFile": { + "contents": { + "auth": "APIKeyHeader", + "auth-schemes": { + "APIKeyHeader": { + "header": "X-Api-Key", + "name": "apiKey", + "type": "string", + }, + }, + "default-environment": "Default", + "display-name": "Ntropy Transaction API", + "environments": { + "Default": "https://api.ntropy.com", + }, + "error-discrimination": { + "strategy": "status-code", + }, + "name": "api", + }, + "defaultUrl": undefined, + "rawContents": "name: api +error-discrimination: + strategy: status-code +display-name: Ntropy Transaction API +environments: + Default: https://api.ntropy.com +default-environment: Default +auth-schemes: + APIKeyHeader: + header: X-Api-Key + name: apiKey + type: string +auth: APIKeyHeader +", + }, +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/fern.config.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/fern.config.json new file mode 100644 index 00000000000..7980537f564 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/fern.config.json @@ -0,0 +1,4 @@ +{ + "organization": "fern", + "version": "*" +} \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/generators.yml b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/generators.yml new file mode 100644 index 00000000000..602118874c2 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/fern/generators.yml @@ -0,0 +1,3 @@ +api: + specs: + - openapi: ../openapi.yml diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/openapi.yml b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/openapi.yml new file mode 100644 index 00000000000..90fcd63f6fd --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/openapi.yml @@ -0,0 +1,4145 @@ +openapi: 3.1.0 +info: + title: Ntropy Transaction API + contact: + name: API Support + url: https://ntropy.com/developers + email: api@ntropy.com + version: '3.0' +servers: +- url: https://api.ntropy.com + description: Production server (uses live data). +paths: + /v3/transactions/{id}: + get: + tags: + - Transactions + summary: Retrieve a transaction + operationId: get_transaction_v3_transactions__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Transaction' + '404': + description: Transaction with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + tx = sdk.transactions.get("xbx8YP14g565Xk") ' + delete: + tags: + - Transactions + summary: Deletes a transaction + description: Deleting a transaction will also delete it from our systems. This + operation is permanent. + operationId: delete_transaction_v3_transactions__id__delete + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '204': + description: Deletion successful + '404': + description: Transaction with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + tx = sdk.transactions.delete("xbx8YP14g565Xk") ' + /v3/transactions: + get: + tags: + - Transactions + summary: List all transactions + description: Return a list of enriched transactions starting with the most recent + one. + operationId: list_transactions_v3_transactions_get + parameters: + - description: Only return transactions older or equal than this date + required: false + schema: + type: string + format: date-time + title: Created After + description: Only return transactions older or equal than this date + name: created_after + in: query + - description: Only return transactions newer than this date + required: false + schema: + type: string + format: date-time + title: Created Before + description: Only return transactions newer than this date + name: created_before + in: query + - description: Starting point for the set of transactions + required: false + schema: + type: string + title: Cursor + description: Starting point for the set of transactions + name: cursor + in: query + - description: The limit of transactions to be returned + required: false + schema: + type: integer + maximum: 500.0 + minimum: 1.0 + title: Limit + description: The limit of transactions to be returned + default: 25 + name: limit + in: query + - description: If specified, only return the transactions of this account holder + required: false + schema: + type: string + title: Account Holder Id + description: If specified, only return the transactions of this account + holder + name: account_holder_id + in: query + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_Transaction' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/transactions\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor tx\ + \ in sdk.transactions.list().auto_paginate():\n ... " + post: + tags: + - Transactions + summary: Synchronously enrich transactions + description: "Enriches a list of transactions in synchronous fashion. The enriched\ + \ transactions returned in\nthe order that they were submitted. Webhook events\ + \ are not triggered for this operation. \n\nThis endpoint supports up to 1000\ + \ transactions. \n\nIf you want more throughput and live updates refer to\ + \ the \n[async enrichment endpoint](../batches/post-batch)." + operationId: post_transactions_v3_transactions_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SyncEnrichmentInput' + required: true + responses: + '200': + description: Enriched transactions. + content: + application/json: + schema: + $ref: '#/components/schemas/SyncEnrichmentOutput' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/transactions\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \ + \ \"id\": \"xbx8YP14g565Xk\",\n \"description\": \"SQ* STARBUCKS\ + \ NW 43RD\",\n \"date\": \"2024-03-30\",\n \"amount\": 10.0,\n\ + \ \"entry_type\": \"outgoing\",\n \"currency\": \"USD\",\n\ + \ \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + ,\n \"location\": {\n \"country\": \"US\"\n }\n\ + \ }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK, TransactionInput, LocationInput\n\nsdk\ + \ = SDK(\"cd1H...Wmhl\")\nenriched = sdk.transactions.create([\n TransactionInput(\n\ + \ id=\"xbx8YP14g565Xk\",\n description=\"SQ* STARBUCKS NW\ + \ 43RD\",\n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + ,\n amount=10.0,\n entry_type=\"outgoing\",\n date=\"\ + 2024-03-30\",\n currency=\"USD\",\n location=LocationInput(\n\ + \ country=\"US\",\n )\n )\n]) " + /v3/transactions/{id}/assign: + post: + tags: + - Transactions + summary: Assign a transaction to an account holder + description: Changes the account holder associated with the transaction. The + old and new account holder must share the same categories + operationId: set_transaction_ah_v3_transactions__id__assign_post + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Body_set_transaction_ah_v3_transactions__id__assign_post' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Transaction' + '404': + description: Transaction or account holder with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/transactions/xbx8YP14g565Xk\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\n }]'\n\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.transactions.assign(\n\ + \ transaction_id=\"xbx8YP14g565Xk\", \n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + \n) " + /v3/batches: + get: + tags: + - Batches + summary: List all batches + description: Returns a list of submitted batches starting with the most recent + one. + operationId: get_batches_v3_batches_get + parameters: + - description: Only return batches older or equal than this date + required: false + schema: + type: string + format: date-time + title: Created After + description: Only return batches older or equal than this date + name: created_after + in: query + - description: Only return batches newer than this date + required: false + schema: + type: string + format: date-time + title: Created Before + description: Only return batches newer than this date + name: created_before + in: query + - description: Starting point for the set of batches + required: false + schema: + type: string + title: Cursor + description: Starting point for the set of batches + name: cursor + in: query + - description: The limit of batches to be returned + required: false + schema: + type: integer + maximum: 50.0 + minimum: 1.0 + title: Limit + description: The limit of batches to be returned + default: 10 + name: limit + in: query + - description: If specified, only return batches with this status + required: false + schema: + allOf: + - $ref: '#/components/schemas/BatchStatus' + description: If specified, only return batches with this status + name: status + in: query + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_Batch' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches\" \\\n\ + \ -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nfor batch in sdk.batches.list().auto_paginate():\n\ + \ ... " + post: + tags: + - Batches + summary: Submit a batch of transactions + description: "Creates a batch of transactions and enriches it in an asynchronous\ + \ fashion. A batch, representing the status of the \nenrichment progress is\ + \ returned as a result of the submission. \n\nIn order to be notified on the\ + \ status of the batch, you can setup [webhooks](../../../webhooks) and receive\ + \ \nthe respective notifications. Alternatively, you can \n[poll](../../../enrichment/introduction/#viewing-the-progress-of-a-batch)\ + \ for the status of the batch using its id.\n\nThis endpoints supports up\ + \ to 24960 transactions." + operationId: post_batch_v3_batches_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncEnrichmentInput' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Batch' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/batches/\" \\\ + \n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \ + \ \"id\": \"xbx8YP14g565Xk\",\n \"description\": \"SQ* STARBUCKS\ + \ NW 43RD\",\n \"date\": \"2024-03-30\",\n \"amount\": 10.0,\n\ + \ \"entry_type\": \"outgoing\",\n \"currency\": \"USD\",\n\ + \ \"account_holder_id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + ,\n \"location\": {\n \"country\": \"US\"\n }\n\ + \ }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK, TransactionInput, LocationInput\n\nsdk\ + \ = SDK(\"cd1H...Wmhl\")\nbatch = sdk.batches.create([\n TransactionInput(\n\ + \ id=\"xbx8YP14g565Xk\",\n description=\"SQ* STARBUCKS NW\ + \ 43RD\",\n account_holder_id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + ,\n amount=10.0,\n entry_type=\"outgoing\",\n date=\"\ + 2024-03-30\",\n currency=\"USD\",\n location=LocationInput(\n\ + \ country=\"US\",\n )\n )\n]) " + /v3/batches/{id}: + get: + tags: + - Batches + summary: Retrieve a batch + operationId: get_single_batch_v3_batches__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Batch' + '404': + description: Batch with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + batch = sdk.batches.get("f203613d2-83c8-4130-8809-d14206eeec20") ' + /v3/batches/{id}/results: + get: + tags: + - Batches + summary: Retrieve the results of a batch + description: Returns the results of the enrichment request. The resulting enriched + transactions are returned in the same order they were submitted. Results are + available after the batch has finished processing. + operationId: get_batch_results_v3_batches__id__results_get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Returned batch of transaction enrichment results. + content: + application/json: + schema: + $ref: '#/components/schemas/BatchResult' + '404': + description: Batch with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/batches/203613d2-83c8-4130-8809-d14206eeec20/results\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + results = sdk.batches.wait_for_results("f203613d2-83c8-4130-8809-d14206eeec20") + + ' + /v3/bank_statements: + get: + tags: + - Bank statements + summary: List all bank statements + description: Return a list of submitted bank statements starting with the most + recent one. + operationId: get_bank_statements_v3_bank_statements_get + parameters: + - description: Only return bank statements older or equal than this date + required: false + schema: + type: string + format: date-time + title: Created After + description: Only return bank statements older or equal than this date + name: created_after + in: query + - description: Only return bank statements newer than this date + required: false + schema: + type: string + format: date-time + title: Created Before + description: Only return bank statements newer than this date + name: created_before + in: query + - description: Starting point for the set of bank statements + required: false + schema: + type: string + title: Cursor + description: Starting point for the set of bank statements + name: cursor + in: query + - description: The limit of bank statements to be returned + required: false + schema: + type: integer + maximum: 50.0 + minimum: 1.0 + title: Limit + description: The limit of bank statements to be returned + default: 10 + name: limit + in: query + - description: If specified, only return bank statements with this status + required: false + schema: + allOf: + - $ref: '#/components/schemas/DocumentStatus' + description: If specified, only return bank statements with this status + name: status + in: query + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_BankStatement' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor bs\ + \ in sdk.bank_statements.list().auto_paginate():\n ... " + post: + tags: + - Bank statements + summary: Submit a bank statement PDF + description: Upload a PDF file and queue it for extraction. + operationId: post_bank_statement_v3_bank_statements_post + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/Body_post_bank_statement_v3_bank_statements_post' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/BankStatement' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/bank_statements\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY:\ + \ cd1H...Wmhl\" \\\n --form file=@bank_statement.pdf\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nwith open('bank_statement.pdf',\ + \ 'rb') as fh:\n bank_statement = sdk.bank_statements.create(fh)\n \ + \ results = sdk.bank_statement.wait_for_results(bank_statement.id) " + /v3/bank_statements/{id}: + get: + tags: + - Bank statements + summary: Retrieve a bank statement + operationId: get_bank_statement_v3_bank_statements__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/BankStatement' + '404': + description: Bank statement with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + bs = sdk.bank_statements.get("7f8dceac-2848-472d-b5c3-55cdbaf35a9b") ' + delete: + tags: + - Bank statements + summary: Deletes a bank statement + operationId: delete_bank_statement_v3_bank_statements__id__delete + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '204': + description: Deletion successful + '404': + description: Bank statement with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + /v3/bank_statements/{id}/overview: + post: + tags: + - Bank statements + summary: Quickly extract account holder, institution and first account + description: 'Extracts account holder, bank and account information extracted + from the first page of the bank statement, which is typically available before + the full results. This is a synchronous call. + + + Complete guide: [Overview](../../../bank-statements)' + operationId: get_bank_statement_statement_info_v3_bank_statements__id__overview_post + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/StatementInfo' + '404': + description: Bank statement with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/overview\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\noverview\ + \ = sdk.bank_statements.overview(\n \"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\"\ + \n) " + /v3/bank_statements/{id}/results: + get: + tags: + - Bank statements + summary: Retrieve the extraction results + description: Return the extracted account information and associated transactions + from a bank statement PDF. The results are accessible once the statement's + status is `completed`. + operationId: get_bank_statement_result_v3_bank_statements__id__results_get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/BankStatementResults' + '404': + description: Bank statement with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/bank_statements/7f8dceac-2848-472d-b5c3-55cdbaf35a9b/results\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nbs = sdk.bank_statements.get(\"\ + 7f8dceac-2848-472d-b5c3-55cdbaf35a9b\")\nresults = sdk.bank_statements.wait_for_results(\n\ + \ \"7f8dceac-2848-472d-b5c3-55cdbaf35a9b\"\n) " + /v3/account_holders/{id}: + get: + tags: + - Account Holders + summary: Retrieve an account holder. + operationId: get_account_holder_v3_account_holders__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/AccountHolderExternal' + '404': + description: Account holder with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ' + delete: + tags: + - Account Holders + summary: Deletes an account holder and their transactions + description: Deletes all of the transactions in the account holder's history. + This operation is permanent and irreversible + operationId: delete_account_holder_v3_account_holders__id__delete + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '204': + description: Deletion successful + '404': + description: Account holder with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = sdk.account_holders.delete("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ' + /v3/account_holders: + get: + tags: + - Account Holders + summary: List all account holders. + operationId: get_account_holders_v3_account_holders_get + parameters: + - description: Only return account holders older or equal than this date + required: false + schema: + type: string + format: date-time + title: Created After + description: Only return account holders older or equal than this date + name: created_after + in: query + - description: Only return account holders newer than this date + required: false + schema: + type: string + format: date-time + title: Created Before + description: Only return account holders newer than this date + name: created_before + in: query + - description: Starting point for the set of account holders + required: false + schema: + type: string + title: Cursor + description: Starting point for the set of account holders + name: cursor + in: query + - description: The limit of account holders to be returned + required: false + schema: + type: integer + maximum: 50.0 + minimum: 1.0 + title: Limit + description: The limit of account holders to be returned + default: 10 + name: limit + in: query + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_AccountHolderExternal' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + ah = sdk.account_holders.get("f35b927b6-6fda-40aa-93b8-95b47c2b2cad") ' + post: + tags: + - Account Holders + summary: Create an account holder. + operationId: create_account_holder_v3_account_holders_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountHolderCreate' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/AccountHolderExternal' + '400': + description: Account holder with the provided id already exists. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/account_holders\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"id\": \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n \"type\": \"\ + consumer\",\n \"name\": \"John Doe\"\n }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nah = sdk.account_holders.create(\n\ + \ id=\"35b927b6-6fda-40aa-93b8-95b47c2b2cad\",\n type=\"consumer\"\ + ,\n name=\"John Doe\",\n) " + /v3/account_holders/{id}/recurring_groups: + post: + tags: + - Recurrence + summary: Find recurring groups in a transaction history + description: Identifies and categorizes recurring patterns found in the transaction + history of the account holder, such as periodic payments or subscriptions. + These patterns are called recurrence groups. + operationId: get_account_holder_recurring_payments_v3_account_holders__id__recurring_groups_post + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RecurrenceGroup' + type: array + title: Response Get Account Holder Recurring Payments V3 Account Holders Id Recurring + Groups Post + '404': + description: Account holder with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/account_holders/35b927b6-6fda-40aa-93b8-95b47c2b2cad/recurring_groups\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nrecurring_groups\ + \ = sdk.account_holders.recurring_groups(\n \"35b927b6-6fda-40aa-93b8-95b47c2b2cad\"\ + \n) " + /v3/webhooks: + get: + tags: + - Webhooks + summary: List all webhooks + description: List all webhooks + operationId: get_webhooks_v3_webhooks_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_Webhook' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/webhooks\" \\\ + \n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nfor webhook\ + \ in sdk.webhooks.list().auto_paginate():\n ... " + post: + tags: + - Webhooks + summary: Create a webhook + description: Create a webhook to be called when certain events occur. + operationId: post_webhook_v3_webhooks_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WebhookBase' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Webhook' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/webhooks\" \\\ + \n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"url\": \"https://example.com:5689\",\n \"events\": [\n \ + \ \"batches.completed\",\n \"batches.error\"\n ],\n\ + \ \"token\": \"hunter2\"\n }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.webhooks.create(\n\ + \ url=\"https://example.com:5689\",\n events=\"['batches.completed',\ + \ 'batches.error']\",\n token=\"hunter2\",\n) " + /v3/webhooks/{id}: + get: + tags: + - Webhooks + summary: Retrieve a webhook + description: Retrieve a webhook + operationId: get_webhook_v3_webhooks__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Webhook' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + webhook = sdk.webhooks.get("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") + + ' + delete: + tags: + - Webhooks + summary: Delete a webhook + description: Delete a webhook + operationId: delete_webhook_v3_webhooks__id__delete + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '204': + description: Deletion successful + '404': + description: Webhook with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.webhooks.delete("e94a150d-40af-4e96-8aa7-2948a6b4d8d3") ' + patch: + tags: + - Webhooks + summary: Update a webhook + description: Update a webhook. Fields that aren't specified in the body will + remain unchanged + operationId: patch_webhook_v3_webhooks__id__patch + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WebhookPatch' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Webhook' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/webhooks/e94a150d-40af-4e96-8aa7-2948a6b4d8d3\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"events\": [\n \"batches.completed\",\n \"batches.error\"\ + \n ],\n \"enabled\": false\n }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nwh = sdk.webhooks.patch(\n\ + \ \"e94a150d-40af-4e96-8aa7-2948a6b4d8d3\",\n events=['batches.completed',\ + \ 'batches.error'],\n enabled=False,\n)\n" + /v3/rules: + get: + tags: + - Personalization + - Personalization + summary: Get the current personalization ruleset. + description: Get the current personalization ruleset. + operationId: filter_get_v3_rules_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/FilterModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/rules\" \\\n\ + \ -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + rules = sdk.rules.get() + + ' + post: + tags: + - Personalization + - Personalization + summary: Set the personalization ruleset. + description: Set the personalization ruleset. + operationId: filter_post_v3_rules_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FilterModel' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: {} + '400': + description: Provided ruleset has invalid structure + '413': + description: Ruleset was larger than 50KiB + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/rules\" \\\n\ + \ -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '[{\n \ + \ \"if\": {\n \"is_substring\": [\n {\"get\":\ + \ \"website\"},\n \"ntropy\"\n ]\n },\n\ + \ \"then\": [\n {\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"\ + }\n ],\n \"else\": [\n {\"remove_label\": \"example\ + \ label\"}\n ]\n }]'\n" + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.rules.set([{\n\ + \ \"if\": {\n \"is_substring\": [\n {\"get\": \"website\"\ + },\n \"ntropy\"\n ]\n },\n \"then\": [\n \ + \ {\"set\": \"logo\", \"to\": \"http://example.com/favicon.ico\"}\n ],\n\ + \ \"else\": [\n {\"remove_label\": \"example label\"}\n ]\n\ + }])\n" + /v3/rules/append: + post: + tags: + - Personalization + - Personalization + summary: Append a rule. + description: Append a rule to the personalization ruleset. + operationId: filter_append_v3_rules_append_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ActionModel' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: {} + '400': + description: Provided rule has invalid structure + '413': + description: Ruleset after append was larger than 50KiB + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/rules/append\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\"set\": \"\ + logo\", \"to\": \"http://example.com/favicon.ico\"}'\n" + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.append({"set": "logo", "to": "http://example.com/favicon.ico"}) + + ' + /v3/rules/{index}: + delete: + tags: + - Personalization + - Personalization + summary: Delete a rule. + description: Delete the rule at the specified index from the personalization + ruleset. + operationId: filter_delete_v3_rules__index__delete + parameters: + - required: true + schema: + type: integer + title: Index + name: index + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: {} + '400': + description: Provided index does not exist in ruleset + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"DELETE\" \\\n \"https://api.ntropy.com/v3/rules/0\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.delete(0) + + ' + patch: + tags: + - Personalization + - Personalization + summary: Modify an existing rule. + description: Modify an existing rule at the specified index on the ruleset. + operationId: filter_patch_v3_rules__index__patch + parameters: + - required: true + schema: + type: integer + title: Index + name: index + in: path + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ActionModel' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: {} + '400': + description: Provided index does not exist in ruleset + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"PATCH\" \\\n \"https://api.ntropy.com/v3/rules/0\" \\\ + \n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\"set\": \"\ + logo\", \"to\": \"http://example.com/favicon.ico\"}'\n" + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.rules.patch(0, {"set": "logo", "to": "http://example.com/favicon.ico"}) + + ' + /v3/reports: + get: + tags: + - Reports + summary: List all reports + description: List all reports + operationId: get_reports_v3_reports_get + parameters: + - description: Only return report older or equal than this date + required: false + schema: + type: string + format: date-time + title: Created After + description: Only return report older or equal than this date + name: created_after + in: query + - description: Only return report newer than this date + required: false + schema: + type: string + format: date-time + title: Created Before + description: Only return report newer than this date + name: created_before + in: query + - description: Starting point for the set of report + required: false + schema: + type: string + title: Cursor + description: Starting point for the set of report + name: cursor + in: query + - description: The limit of report to be returned + required: false + schema: + type: integer + maximum: 50.0 + minimum: 1.0 + title: Limit + description: The limit of report to be returned + default: 10 + name: limit + in: query + - description: If specified, only return reports with this status + required: false + schema: + allOf: + - $ref: '#/components/schemas/ReportStatus' + description: If specified, only return reports with this status + name: status + in: query + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PagedResponse_Report_' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/reports\" \\\n\ + \ -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreports\ + \ = sdk.reports.list()\n " + post: + tags: + - Reports + summary: Create a report + description: Report a transaction with incorrect fields. + operationId: post_report_v3_reports_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ReportBase' + required: true + responses: + '200': + description: The newly created report + content: + application/json: + schema: + $ref: '#/components/schemas/Report' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/reports\" \\\ + \n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"transaction_id\": \"xbx8YP14g565Xk\",\n \"description\": \"lorem\ + \ ipsum\",\n \"fields\": [\n \".entities.counterparty\"\ + \n ]\n }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreport\ + \ = sdk.reports.create(\n transaction_id=\"xbx8YP14g565Xk\",\n description=\"\ + lorem ipsum\",\n fields=['.entities.counterparty'],\n)\n" + /v3/reports/{id}: + get: + tags: + - Reports + summary: Retrieve a report + description: Retrieve a report + operationId: get_report_v3_reports__id__get + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Report' + '404': + description: Report with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/reports/a652285d-de1b-4a6f-b6ce-45efa9be7952\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nreport\ + \ = sdk.reports.get(\"a652285d-de1b-4a6f-b6ce-45efa9be7952\")\n " + delete: + tags: + - Reports + summary: Delete a report + description: Delete a report + operationId: delete_report_v3_reports__id__delete + parameters: + - required: true + schema: + type: string + title: Id + name: id + in: path + responses: + '204': + description: Deletion successful + '404': + description: Report with the provided id not found. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + /v3/categories/{account_holder_type}: + get: + tags: + - Categories + summary: Retrieve category set + description: Retrieves the set of categories. Category sets are different per + account holder type. + operationId: get_category_set_v3_categories__account_holder_type__get + parameters: + - required: true + schema: + $ref: '#/components/schemas/AccountHolderType' + name: account_holder_type + in: path + responses: + '200': + description: Category set for the selected type of account holder + content: + application/json: + schema: + $ref: '#/components/schemas/CategorySet' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/categories/consumer\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.categories.get("consumer") + + ' + post: + tags: + - Categories + summary: Set a custom set of categories + description: Sets a custom set of categories. Transactions that don't match + a category will be categorized `not enough information` regardless of whether + it is present in the set. + operationId: custom_categories_post_v3_categories__account_holder_type__post + parameters: + - required: true + schema: + $ref: '#/components/schemas/AccountHolderType' + name: account_holder_type + in: path + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CustomCategorySet' + required: true + responses: + '200': + description: Custom categories successfully set. + content: + application/json: + schema: + $ref: '#/components/schemas/CustomCategorySet' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/categories/consumer\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \ + \ \"incoming\": [\n \"salary\",\n \"investment income\"\ + ,\n \"other income\"\n ],\n \"outgoing\": [\n \ + \ \"rent\",\n \"utilities\",\n \"groceries\"\ + ,\n \"entertainment\"\n ]\n }]'\n " + - lang: python + label: Python SDK + source: "from ntropy_sdk import SDK\n\nsdk = SDK(\"cd1H...Wmhl\")\nsdk.categories.set(\"\ + consumer\", {\n \"incoming\": [\n \"transfer from investment app\"\ + ,\n \"transfer from stock broker\",\n \"transfer from crypto\ + \ broker\",\n \"chargeback\",\n \"freelance income\",\n \ + \ \"rideshare or delivery income\",\n \"paycheck\",\n \ + \ \"benefits\",\n \"interest earned\",\n \"stock dividend\"\ + \n ],\n \"outgoing\": [\n \"digital content and streaming\"\ + ,\n \"vending machine\",\n \"reversal\",\n \"transfer\ + \ to investment app\",\n \"transfer to stock broker\",\n \"\ + transfer to crypto broker\",\n \"adjustment\",\n \"intra account\ + \ transfer\",\n \"inter account transfer\",\n \"peer to peer\ + \ transfer\",\n \"funeral service\",\n \"ATM withdrawal\"\ + ,\n \"teller withdrawal\"\n ]\n})\n" + /v3/categories/{account_holder_type}/reset: + post: + tags: + - Categories + summary: Reset category set to original values + description: Resets the set of categories of the specified account holder type + to the original values. + operationId: delete_custom_category_set_v3_categories__account_holder_type__reset_post + parameters: + - required: true + schema: + $ref: '#/components/schemas/AccountHolderType' + name: account_holder_type + in: path + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/CategorySet' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"POST\" \\\n \"https://api.ntropy.com/v3/categories/consumer/reset\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.categories.reset("consumer") + + ' + /v3/entities/lookup: + get: + tags: + - Entities + summary: Searches for an entity + description: "Resolves a query into an entity by querying our entity resolution\ + \ system. \n The parameters `name` and `website` are mutually exclusive.\ + \ Calls to this endpoint using \n the `name` parameter are billed the same\ + \ way transactions are." + operationId: search_entity_v3_entities_lookup_get + parameters: + - description: The name of the entity to resolve + required: false + schema: + type: string + title: Name + description: The name of the entity to resolve + name: name + in: query + - description: The website of the entity to resolve + required: false + schema: + type: string + title: Website + description: The website of the entity to resolve + name: website + in: query + - description: An unstructured location string of the entity to resolve + required: false + schema: + type: string + title: Location + description: An unstructured location string of the entity to resolve + name: location + in: query + responses: + '200': + description: Entity + content: + application/json: + schema: + $ref: '#/components/schemas/Entity' + '400': + description: Bad request. + '423': + description: Not enough credits. + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/entities?name=Starbucks\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.entities.lookup(name="Starbucks") ' + /v3/entities/{id}: + get: + tags: + - Entities + summary: Retrieve an entity + description: Retrieve more information about an entity by using its unique ID. + operationId: get_entity_by_id_v3_entities__id__get + parameters: + - description: The unique ID of the entity + required: true + schema: + type: string + title: Id + description: The unique ID of the entity + name: id + in: path + responses: + '200': + description: Entity + content: + application/json: + schema: + $ref: '#/components/schemas/Entity' + '400': + description: Bad request. + '404': + description: Entity does not exist for ID + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - APIKeyHeader: [] + x-codeSamples: + - lang: cURL + label: cURL + source: "curl -X \"GET\" \\\n \"https://api.ntropy.com/v3/entities/d4bc3c80-ec1a-3da2-836e-2a4ca4758be5\"\ + \ \\\n -H \"Accept: application/json\" \\\n -H \"X-API-KEY: cd1H...Wmhl\"\ + \ " + - lang: python + label: Python SDK + source: 'from ntropy_sdk import SDK + + + sdk = SDK("cd1H...Wmhl") + + sdk.entities.lookup("d4bc3c80-ec1a-3da2-836e-2a4ca4758be5") ' +components: + schemas: + Account: + properties: + type: + type: string + title: Type + number: + type: string + title: Number + opening_balance: + type: number + title: Opening Balance + closing_balance: + type: number + title: Closing Balance + iso_currency_code: + type: string + title: Iso Currency Code + type: object + title: Account + AccountHolder: + properties: + type: + $ref: '#/components/schemas/AccountType' + name: + type: string + title: Name + address: + $ref: '#/components/schemas/Address' + type: object + title: AccountHolder + AccountHolderCreate: + properties: + id: + type: string + minLength: 1 + title: Id + description: The unique ID of the account holder of the transaction + type: + allOf: + - $ref: '#/components/schemas/AccountHolderType' + description: 'The type of the account holder. ' + name: + type: string + title: Name + description: The name of the account holder + type: object + required: + - id + - type + title: AccountHolderCreate + AccountHolderExternal: + properties: + id: + type: string + minLength: 1 + title: Id + description: The unique ID of the account holder of the transaction + type: + allOf: + - $ref: '#/components/schemas/AccountHolderType' + description: 'The type of the account holder. ' + name: + type: string + title: Name + description: The name of the account holder + created_at: + type: string + format: date-time + title: Created At + description: The timestamp of when the account holder was created. + additionalProperties: false + type: object + required: + - id + - type + - created_at + title: AccountHolderExternal + example: + id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00' + AccountHolderType: + type: string + enum: + - consumer + - business + title: AccountHolderType + description: An enumeration. + AccountType: + type: string + enum: + - consumer + - business + title: AccountType + description: An enumeration. + AccountingCategory: + type: string + enum: + - operational expenses + - cost of goods sold + - revenue + - financing + - taxes + title: AccountingCategory + description: An enumeration. + ActionModel: + $ref: personalization.json#/definitions/Action + Address: + properties: + street: + type: string + title: Street + postcode: + type: string + title: Postcode + city: + type: string + title: City + state: + type: string + title: State + country: + type: string + title: Country + type: object + title: Address + AsyncEnrichmentInput: + properties: + transactions: + items: + $ref: '#/components/schemas/TransactionInput' + type: array + maxItems: 24960 + minItems: 1 + title: Transactions + additionalProperties: false + type: object + required: + - transactions + title: AsyncEnrichmentInput + BankStatement: + properties: + id: + type: string + title: Id + description: A unique identifier for the bank statement job. + name: + type: string + title: Name + description: The name of the bank statement file, if available. + status: + allOf: + - $ref: '#/components/schemas/BankStatementStatus' + description: The current status of the document. + created_at: + type: string + format: date-time + title: Created At + description: The date and time when the job was created. + file: + allOf: + - $ref: '#/components/schemas/BankStatementFile' + title: File + description: Information about the bank statement file being processed. + error: + $ref: '#/components/schemas/BankStatementError' + additionalProperties: false + type: object + required: + - id + - status + - created_at + - file + title: BankStatement + description: Represents a bank statement with details about the file and its + status. + example: + id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00' + file: + no_pages: 1 + size: 4096 + BankStatementAccount: + properties: + number: + type: string + title: Number + description: The account number, if available. + opening_balance: + type: number + title: Opening Balance + description: The opening balance of the account for the statement period. + closing_balance: + type: number + title: Closing Balance + description: The closing balance of the account for the statement period. + start_date: + type: string + format: date + title: Start Date + description: The start date of the statement period. + end_date: + type: string + format: date + title: End Date + description: The end date of the statement period. + is_balance_reconciled: + type: boolean + title: Is Balance Reconciled + description: Indicates whether the balance has been reconciled. + total_incoming: + type: number + title: Total Incoming + description: The sum of amounts of all incoming transactions. + total_outgoing: + type: number + title: Total Outgoing + description: The sum of amounts of all outgoing transactions. + transactions: + items: + $ref: '#/components/schemas/BankStatementTransaction' + type: array + title: Transactions + description: List of transactions for this account. + additionalProperties: false + type: object + required: + - transactions + title: BankStatementAccount + example: + number: '972913289' + opening_balance: 400.0 + closing_balance: 200.0 + start_date: '2024-01-01' + end_date: '2024-02-01' + is_balance_reconciled: true + total_incoming: 0.0 + total_outgoing: 200.0 + transactions: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 200 + entry_type: outgoing + currency: USD + running_balance: 400.0 + BankStatementError: + properties: + code: + $ref: '#/components/schemas/BankStatementErrorCode' + message: + type: string + title: Message + type: object + required: + - code + - message + title: BankStatementError + BankStatementErrorCode: + type: string + enum: + - invalid_bank_statement + - internal_error + title: BankStatementErrorCode + description: An enumeration. + BankStatementFile: + properties: + no_pages: + type: integer + title: No Pages + description: The number of pages in the bank statement file. + size: + type: integer + title: Size + description: The size of the bank statement file in bytes, if available. + additionalProperties: false + type: object + required: + - no_pages + title: BankStatementFile + example: + no_pages: 1 + size: 4096 + BankStatementResults: + properties: + accounts: + items: + $ref: '#/components/schemas/BankStatementAccount' + type: array + title: Accounts + description: List of accounts in the bank statement. + type: object + required: + - accounts + title: BankStatementResults + BankStatementStatus: + type: string + enum: + - processing + - completed + - error + title: BankStatementStatus + description: An enumeration. + BankStatementTransaction: + properties: + id: + type: string + minLength: 1 + title: Id + description: A unique identifier of the transaction + description: + type: string + maxLength: 1024 + minLength: 0 + title: Description + description: The description string of the transaction + date: + type: string + format: date + title: Date + description: The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + amount: + type: number + minimum: 0.0 + title: Amount + description: The amount of the transaction in the `currency`. Must be a + positive value. For example, if the `currency` is USD, then it's the amount + in dollars. + entry_type: + allOf: + - $ref: '#/components/schemas/EntryType' + description: The direction of the flow of the money from the perspective + of the account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + allOf: + - $ref: '#/components/schemas/Currency' + description: The currency of the transaction in ISO 4217 format + running_balance: + type: number + title: Running Balance + description: The account's balance when this transaction was performed + additionalProperties: false + type: object + required: + - id + - description + - date + - amount + - entry_type + - currency + title: BankStatementTransaction + example: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10.0 + entry_type: outgoing + currency: USD + running_balance: 400.0 + Batch: + properties: + id: + type: string + title: Id + description: A unique identifier for the batch. + status: + allOf: + - $ref: '#/components/schemas/BatchStatus' + description: The current status of the batch. A batch will error if at least + one of the transactions contains an error. + created_at: + type: string + format: date-time + title: Created At + description: The timestamp of when the batch was created. + updated_at: + type: string + format: date-time + title: Updated At + description: The timestamp of when the batch was last updated. + progress: + type: integer + title: Progress + description: The number of transactions processed so far. + total: + type: integer + title: Total + description: The total number of transactions in the batch. + additionalProperties: false + type: object + required: + - id + - status + - created_at + - updated_at + - progress + - total + title: Batch + description: The `Batch` object represents the status and progress of an asynchronous + batch enrichment job. + example: + id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00' + updated_at: '2024-01-01T00:00:30' + progress: 0 + total: 4000 + BatchResult: + properties: + id: + type: string + title: Id + description: A unique identifier for the batch. + total: + type: integer + title: Total + description: The total number of transactions in the batch result. + status: + allOf: + - $ref: '#/components/schemas/BatchStatus' + description: The current status of the batch job. + results: + $ref: '#/components/schemas/EnrichmentResult' + additionalProperties: false + type: object + required: + - id + - total + - status + - results + title: BatchResult + description: 'The `BatchResult` object represents the result of a batch enrichment + job, including its status and + + enriched transactions.' + BatchStatus: + type: string + enum: + - processing + - completed + - error + title: BatchStatus + description: An enumeration. + Body_post_bank_statement_v3_bank_statements_post: + properties: + file: + type: string + format: binary + title: File + type: object + required: + - file + title: Body_post_bank_statement_v3_bank_statements_post + Body_set_transaction_ah_v3_transactions__id__assign_post: + properties: + account_holder_id: + type: string + title: Account Holder Id + type: object + required: + - account_holder_id + title: Body_set_transaction_ah_v3_transactions__id__assign_post + Categories: + properties: + general: + type: string + title: General + description: The category of the transaction. View the valid set of categories + for your key [here](./docs/v3/enrichment/entities). + accounting: + allOf: + - $ref: '#/components/schemas/AccountingCategory' + description: The corresponding accounting category. Only available for `business` + transactions. + additionalProperties: false + type: object + title: Categories + CategoryConfidence: + type: string + enum: + - high + - medium + - low + - unknown + title: CategoryConfidence + description: An enumeration. + CategorySet: + properties: + incoming: + items: + type: string + type: array + title: Incoming + outgoing: + items: + type: string + type: array + title: Outgoing + type: object + required: + - incoming + - outgoing + title: CategorySet + example: + incoming: + - transfer from investment app + - transfer from stock broker + - transfer from crypto broker + - chargeback + - freelance income + - rideshare or delivery income + - paycheck + - benefits + - interest earned + - stock dividend + outgoing: + - digital content and streaming + - vending machine + - reversal + - transfer to investment app + - transfer to stock broker + - transfer to crypto broker + - adjustment + - intra account transfer + - inter account transfer + - peer to peer transfer + - funeral service + - ATM withdrawal + - teller withdrawal + Counterparty: + properties: + id: + type: string + title: Id + description: The unique UUID identifier of the entity + name: + type: string + title: Name + description: The name of the entity + website: + type: string + title: Website + description: The website URL of the entity + logo: + type: string + title: Logo + description: Logo's URL + mccs: + items: + type: integer + type: array + title: Mccs + description: A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + default: [] + type: + $ref: '#/components/schemas/CounterpartyType' + additionalProperties: false + type: object + required: + - type + title: Counterparty + example: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + CounterpartyType: + type: string + enum: + - person + - organization + title: CounterpartyType + description: An enumeration. + Country: + type: string + enum: + - AD + - AE + - AF + - AG + - AI + - AL + - AM + - AO + - AR + - AS + - AT + - AU + - AW + - AZ + - BA + - BB + - BD + - BE + - BF + - BG + - BH + - BI + - BJ + - BL + - BM + - BN + - BO + - BQ + - BR + - BS + - BT + - BV + - BW + - BY + - BZ + - CA + - CC + - CD + - CF + - CG + - CH + - CI + - CK + - CL + - CM + - CN + - CO + - CR + - CU + - CV + - CW + - CX + - CY + - CZ + - DE + - DJ + - DK + - DM + - DO + - DZ + - EC + - EE + - EG + - EH + - ER + - ES + - ET + - FI + - FJ + - FK + - FM + - FR + - GA + - GB + - GD + - GE + - GF + - GG + - GH + - GI + - GL + - GM + - GN + - GP + - GQ + - GR + - GS + - GT + - GU + - GW + - GY + - HK + - HM + - HN + - HR + - HT + - HU + - ID + - IE + - IL + - IM + - IN + - IO + - IQ + - IR + - IS + - IT + - JE + - JM + - JO + - JP + - KE + - KG + - KH + - KI + - KM + - KN + - KP + - KR + - KW + - KY + - KZ + - LA + - LB + - LC + - LI + - LK + - LR + - LS + - LT + - LU + - LV + - LY + - MA + - MC + - MD + - ME + - MF + - MG + - MH + - MK + - ML + - MM + - MN + - MO + - MP + - MQ + - MR + - MS + - MT + - MU + - MV + - MW + - MX + - MY + - MZ + - NA + - NC + - NE + - NF + - NG + - NI + - NL + - 'NO' + - NP + - NR + - NU + - NZ + - OM + - PA + - PE + - PF + - PG + - PH + - PK + - PL + - PM + - PN + - PR + - PS + - PT + - PW + - PY + - QA + - RE + - RO + - RS + - RU + - RW + - SA + - SB + - SC + - SD + - SE + - SG + - SH + - SI + - SJ + - SK + - SL + - SM + - SN + - SO + - SR + - SS + - ST + - SV + - SX + - SY + - SZ + - TC + - TD + - TG + - TH + - TJ + - TK + - TL + - TM + - TN + - TO + - TR + - TT + - TV + - TW + - TZ + - UA + - UG + - UM + - US + - UY + - UZ + - VC + - VE + - VG + - VI + - VN + - VU + - WF + - WS + - YE + - YT + - ZA + - ZM + - ZW + title: Country + description: An enumeration. + Currency: + type: string + enum: + - EUR + - AED + - AFN + - XCD + - ALL + - AMD + - AOA + - ARS + - USD + - AUD + - AWG + - AZN + - BAM + - BBD + - BDT + - XOF + - BGN + - BHD + - BIF + - BMD + - BND + - BOB + - BRL + - BSD + - INR + - NOK + - BWP + - BYR + - BZD + - CAD + - CDF + - XAF + - CHF + - NZD + - CLP + - CNY + - COP + - CRC + - CUP + - CVE + - ANG + - CZK + - DJF + - DKK + - DOP + - DZD + - EGP + - MAD + - ERN + - ETB + - FJD + - FKP + - GBP + - GEL + - GHS + - GIP + - GMD + - GNF + - GTQ + - GYD + - HKD + - HNL + - HUF + - IDR + - ILS + - IQD + - IRR + - ISK + - JMD + - JOD + - JPY + - KES + - KGS + - KHR + - KMF + - KPW + - KRW + - KWD + - KYD + - KZT + - LAK + - LBP + - LKR + - LRD + - ZAR + - LYD + - MDL + - MGA + - MKD + - MMK + - MNT + - MOP + - MRO + - MUR + - MVR + - MWK + - MXN + - MYR + - MZN + - XPF + - NGN + - NIO + - NPR + - OMR + - PEN + - PGK + - PHP + - PKR + - PLN + - PYG + - QAR + - RON + - RSD + - RUB + - RWF + - SAR + - SBD + - SCR + - SDG + - SEK + - SGD + - SHP + - SLL + - SOS + - SRD + - SSP + - STD + - SYP + - SZL + - THB + - TJS + - TMT + - TND + - TOP + - TRY + - TTD + - TWD + - TZS + - UAH + - UGX + - UYU + - UZS + - VEF + - VND + - VUV + - WST + - YER + - ZMW + - ZWL + - HRK + title: Currency + description: An enumeration. + CustomCategorySet: + properties: + incoming: + items: + type: string + type: array + title: Incoming + outgoing: + items: + type: string + type: array + title: Outgoing + type: object + required: + - incoming + - outgoing + title: CustomCategorySet + example: + incoming: + - salary + - investment income + - other income + outgoing: + - rent + - utilities + - groceries + - entertainment + DocumentStatus: + type: string + enum: + - queued + - processing + - processed + - failed + title: DocumentStatus + description: An enumeration. + EnrichedTransaction: + properties: + entities: + $ref: '#/components/schemas/Entities' + categories: + $ref: '#/components/schemas/Categories' + location: + $ref: '#/components/schemas/Location' + error: + $ref: '#/components/schemas/TransactionError' + created_at: + type: string + format: date-time + title: Created At + description: The timestamp of when the account holder was created. + id: + type: string + minLength: 1 + title: Id + description: A unique identifier for the transaction. If two transactions + are submitted with the same `id` the most recent one will replace the + previous one. + additionalProperties: false + type: object + required: + - created_at + - id + title: EnrichedTransaction + example: + error: null + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: [] + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + created_at: '2024-03-30T00:00:00' + id: xbx8YP14g565Xk + EnrichmentResult: + properties: + transactions: + items: + $ref: '#/components/schemas/EnrichedTransaction' + type: array + title: Transactions + description: A list of enriched transactions resulting from the enrichment + of this batch. + additionalProperties: false + type: object + required: + - transactions + title: EnrichmentResult + Entities: + properties: + counterparty: + $ref: '#/components/schemas/Counterparty' + intermediaries: + items: + $ref: '#/components/schemas/Intermediary' + type: array + title: Intermediaries + default: [] + additionalProperties: false + type: object + title: Entities + description: Entities found by identity identification + Entity: + properties: + id: + type: string + title: Id + description: The unique UUID identifier of the entity + name: + type: string + title: Name + description: The name of the entity + website: + type: string + title: Website + description: The website URL of the entity + logo: + type: string + title: Logo + description: Logo's URL + mccs: + items: + type: integer + type: array + title: Mccs + description: A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + default: [] + type: object + title: Entity + example: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + EntryType: + type: string + enum: + - incoming + - outgoing + title: EntryType + description: An enumeration. + FilterModel: + $ref: personalization.json + HTTPValidationError: + properties: + detail: + items: + $ref: '#/components/schemas/ValidationError' + type: array + title: Detail + type: object + title: HTTPValidationError + Intermediary: + properties: + id: + type: string + title: Id + description: The unique UUID identifier of the entity + name: + type: string + title: Name + description: The name of the entity + website: + type: string + title: Website + description: The website URL of the entity + logo: + type: string + title: Logo + description: Logo's URL + mccs: + items: + type: integer + type: array + title: Mccs + description: A list of [Merchant Category Codes](https://en.wikipedia.org/wiki/Merchant_category_code) + default: [] + type: + $ref: '#/components/schemas/IntermediaryType' + additionalProperties: false + type: object + required: + - type + title: Intermediary + example: + id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: [] + type: payment_processor + IntermediaryType: + type: string + enum: + - delivery_service + - payment_processor + title: IntermediaryType + description: An enumeration. + Location: + properties: + raw_address: + type: string + title: Raw Address + description: An unstructured string containing the address + structured: + allOf: + - $ref: '#/components/schemas/LocationStructured' + title: Structured + description: When raw is set, a structured representation of it. + additionalProperties: false + type: object + title: Location + LocationInput: + properties: + raw_address: + type: string + title: Raw Address + description: An unstructured string containing the address + country: + allOf: + - $ref: '#/components/schemas/Country' + description: The country where the transaction was made in ISO 3166-2 format + additionalProperties: false + type: object + required: + - country + title: LocationInput + description: 'Location of where the transaction has taken place. This can greatly + improve entity identification, especially + + under ambiguity.' + LocationStructured: + properties: + street: + type: string + title: Street + description: The street name and number of the location + city: + type: string + title: City + description: The city where the location is situated + state: + type: string + title: State + description: The state or region of the location + postcode: + type: string + title: Postcode + description: The postal code or ZIP code of the location + country_code: + type: string + title: Country Code + description: The country code of the location in ISO 3166-2 format + country: + type: string + title: Country + description: The full name of the country + latitude: + type: number + title: Latitude + description: The latitude coordinate of the location + longitude: + type: number + title: Longitude + description: The longitude coordinate of the location + google_maps_url: + type: string + title: Google Maps Url + description: A URL link to view the location on Google Maps + apple_maps_url: + type: string + title: Apple Maps Url + description: A URL link to view the location on Apple Maps + store_number: + type: string + title: Store Number + description: A unique identifier for a specific store or branch, if applicable + type: object + title: LocationStructured + PagedResponse_AccountHolderExternal: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/AccountHolderExternal' + type: array + title: Data + type: object + required: + - next_cursor + - data + title: PagedResponse_AccountHolderExternal + example: + next_cursor: XjdHaksD + data: + - id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + type: consumer + name: John Doe + created_at: '2024-03-30T00:00:00' + PagedResponse_BankStatement: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/BankStatement' + type: array + title: Data + type: object + required: + - next_cursor + - data + title: PagedResponse_BankStatement + example: + next_cursor: XjdHaksD + data: + - id: 7f8dceac-2848-472d-b5c3-55cdbaf35a9b + name: 2014-01-01_2014-02-01_statement.pdf + status: processing + created_at: '2024-01-01T00:00:00' + file: + no_pages: 1 + size: 4096 + PagedResponse_Batch: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/Batch' + type: array + title: Data + type: object + required: + - next_cursor + - data + title: PagedResponse_Batch + example: + next_cursor: XjdHaksD + data: + - id: 203613d2-83c8-4130-8809-d14206eeec20 + status: processing + created_at: '2024-01-01T00:00:00' + updated_at: '2024-01-01T00:00:30' + progress: 0 + total: 4000 + PagedResponse_Report_: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/Report' + type: array + title: Data + type: object + required: + - data + title: PagedResponse[Report] + PagedResponse_Transaction: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/Transaction' + type: array + title: Data + type: object + required: + - next_cursor + - data + title: PagedResponse_Transaction + example: + next_cursor: XjdHaksD + data: + - id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10.0 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: [] + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + created_at: '2024-03-30T00:00:00' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + PagedResponse_Webhook: + properties: + next_cursor: + type: string + title: Next Cursor + data: + items: + $ref: '#/components/schemas/Webhook' + type: array + title: Data + type: object + required: + - next_cursor + - data + title: PagedResponse_Webhook + example: + next_cursor: XjdHaksD + data: + - url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30.167953' + enabled: true + Recurrence: + properties: + type: + allOf: + - $ref: '#/components/schemas/RecurrenceType' + description: Whether the transaction is a one-time transfer `one-off`, regularly + with varying pricing `recurring` or with fixed pricing `subscription` + additionalProperties: false + type: object + required: + - type + title: Recurrence + description: 'The `Recurrence` object represents the recurrence pattern of a + transaction. It provides information about + + whether a transaction is a one-time event or a part of a recurring series.' + RecurrenceGroup: + properties: + id: + type: string + title: Id + description: A unique UUID identifier for the group + start_date: + type: string + format: date + title: Start Date + description: The date of the oldest transaction in the group + end_date: + type: string + format: date + title: End Date + description: The date of the most recent transaction in the group + total_amount: + type: number + title: Total Amount + description: The sum of all transaction amounts in this group + average_amount: + type: number + title: Average Amount + description: The average amount per transaction in this group + periodicity_in_days: + type: number + title: Periodicity In Days + description: The estimated number of days between transactions in this group + periodicity: + allOf: + - $ref: '#/components/schemas/RecurrencePeriodicity' + description: A human-readable description of the transaction frequency + counterparty: + allOf: + - $ref: '#/components/schemas/Counterparty' + title: Counterparty + description: Counterparty of the transactions + categories: + allOf: + - $ref: '#/components/schemas/Categories' + title: Categories + description: Categories of the transactions in the recurrence group + transaction_ids: + items: + type: string + type: array + title: Transaction Ids + description: Transactions in this recurrence group + additionalProperties: false + type: object + required: + - id + - start_date + - end_date + - total_amount + - average_amount + - periodicity_in_days + - periodicity + - counterparty + - categories + - transaction_ids + title: RecurrenceGroup + example: + id: 8efbac45-9bd5-4b67-be29-334106198c40 + start_date: '2024-03-01' + end_date: '2024-03-30' + total_amount: 300.0 + average_amount: 10.0 + periodicity_in_days: 1.0 + periodicity: daily + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + categories: + general: outgoing - coffee shops + transaction_ids: + - 2dc6SE8A7cTQ2jUdUadCg + - tQYAhhl0XNkl1wasacpVQ + - NNJTqvockIdKnYxBqPlJw + RecurrencePeriodicity: + type: string + enum: + - daily + - weekly + - bi_weekly + - monthly + - bi_monthly + - quarterly + - semi_yearly + - yearly + - other + title: RecurrencePeriodicity + description: An enumeration. + RecurrenceType: + type: string + enum: + - recurring + - subscription + - one off + title: RecurrenceType + description: An enumeration. + Report: + properties: + transaction_id: + type: string + minLength: 1 + title: Transaction Id + description: The unique identifier of the transaction + description: + type: string + title: Description + description: A description of what is wrong in the transaction + fields: + items: + type: string + type: array + title: Fields + description: A list of the fields that are incorrect + id: + type: string + title: Id + description: A generated unique identifier for the report. + created_at: + type: string + format: date-time + title: Created At + description: The date and time when the report was created. + status: + allOf: + - $ref: '#/components/schemas/ReportStatus' + description: 'The status of the report. + + + * `open`: a newly created report + + * `pending`: the report is being investigated + + * `rejected`: the original enrichment output was deemed correct or we + couldn''t resolve it, check `rejection_reason` + + * `resolved`: the issue has been resolved' + rejection_reason: + type: string + title: Rejection Reason + description: An explanation of why the report was rejected + additionalProperties: false + type: object + required: + - transaction_id + - description + - fields + - id + - created_at + - status + title: Report + examples: + - transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + id: a652285d-de1b-4a6f-b6ce-45efa9be7952 + created_at: '2024-10-03T02:53:30.167953+00:00' + status: open + ReportBase: + properties: + transaction_id: + type: string + minLength: 1 + title: Transaction Id + description: The unique identifier of the transaction + description: + type: string + title: Description + description: A description of what is wrong in the transaction + fields: + items: + type: string + type: array + title: Fields + description: A list of the fields that are incorrect + additionalProperties: false + type: object + required: + - transaction_id + - description + - fields + title: ReportBase + examples: + - transaction_id: xbx8YP14g565Xk + description: lorem ipsum + fields: + - .entities.counterparty + ReportStatus: + type: string + enum: + - open + - pending + - resolved + - rejected + title: ReportStatus + description: An enumeration. + StatementInfo: + properties: + institution: + type: string + title: Institution + start_date: + type: string + format: date + title: Start Date + end_date: + type: string + format: date + title: End Date + account_holder: + $ref: '#/components/schemas/AccountHolder' + accounts: + items: + $ref: '#/components/schemas/Account' + type: array + title: Accounts + type: object + title: StatementInfo + example: + institution: Well's Fargo + start_date: '2024-01-01' + end_date: '2024-02-01' + account_holder: + type: consumer + name: John Doe + address: + street: 601 Rosebud Avenue + postcode: '77901' + city: Victoria + state: Texas + country: United States + accounts: + - type: checking + number: '83721' + opening_balance: 1000.0 + closing_balance: 1500.0 + iso_currency_code: USD + SyncEnrichmentInput: + properties: + transactions: + items: + $ref: '#/components/schemas/TransactionInput' + type: array + maxItems: 1000 + minItems: 1 + title: Transactions + additionalProperties: false + type: object + required: + - transactions + title: SyncEnrichmentInput + SyncEnrichmentOutput: + properties: + transactions: + items: + $ref: '#/components/schemas/EnrichedTransaction' + type: array + title: Transactions + description: A list of enriched transactions resulting from the enrichment + of this batch. + additionalProperties: false + type: object + required: + - transactions + title: SyncEnrichmentOutput + Transaction: + properties: + id: + type: string + minLength: 1 + title: Id + description: A unique identifier of the transaction + description: + type: string + maxLength: 1024 + minLength: 0 + title: Description + description: The description string of the transaction + date: + type: string + format: date + title: Date + description: The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + amount: + type: number + minimum: 0.0 + title: Amount + description: The amount of the transaction in the `currency`. Must be a + positive value. For example, if the `currency` is USD, then it's the amount + in dollars. + entry_type: + allOf: + - $ref: '#/components/schemas/EntryType' + description: The direction of the flow of the money from the perspective + of the account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + allOf: + - $ref: '#/components/schemas/Currency' + description: The currency of the transaction in ISO 4217 format + entities: + $ref: '#/components/schemas/Entities' + categories: + $ref: '#/components/schemas/Categories' + location: + $ref: '#/components/schemas/Location' + error: + $ref: '#/components/schemas/TransactionError' + created_at: + type: string + format: date-time + title: Created At + description: The timestamp of when the account holder was created. + account_holder_id: + type: string + minLength: 1 + title: Account Holder Id + description: The unique ID of the account holder of the transaction + recurrence: + $ref: '#/components/schemas/Recurrence' + additionalProperties: false + type: object + required: + - id + - description + - date + - amount + - entry_type + - currency + - created_at + title: Transaction + example: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10.0 + entry_type: outgoing + currency: USD + entities: + counterparty: + id: d4bc3c80-ec1a-3da2-836e-2a4ca4758be5 + name: Starbucks + website: starbucks.com + logo: https://logos.ntropy.com/starbucks.com + mccs: + - 5814 + type: organization + intermediaries: + - id: 916bc837-55ef-3106-88f6-5a8269ca9f2a + name: Square + website: squareup.com + logo: https://logos.ntropy.com/squareup.com + mccs: [] + type: payment_processor + categories: + general: outgoing - coffee shops + location: + raw_address: Nw 43rd Street 5480, Gainesville, Florida 32653, US + structured: + street: Nw 43rd Street 5480 + city: Gainesville + state: Florida + postcode: '32653' + country_code: US + country: United States + latitude: 29.704558 + longitude: -82.389277 + google_maps_url: https://www.google.com/maps/search/?api=1&query=29.704558,-82.389277 + apple_maps_url: https://maps.apple.com/?q=29.704558,-82.389277 + created_at: '2024-03-30T00:00:00' + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + recurrence: + type: recurring + TransactionError: + properties: + code: + $ref: '#/components/schemas/TransactionErrorCode' + message: + type: string + title: Message + type: object + required: + - code + - message + title: TransactionError + TransactionErrorCode: + type: string + enum: + - account_holder_not_found + - internal_error + title: TransactionErrorCode + description: An enumeration. + TransactionInput: + properties: + id: + type: string + minLength: 1 + title: Id + description: A unique identifier of the transaction + description: + type: string + maxLength: 1024 + minLength: 0 + title: Description + description: The description string of the transaction + date: + type: string + format: date + title: Date + description: The date that the transaction was posted. Uses ISO 8601 format + (YYYY-MM-DD) + amount: + type: number + minimum: 0.0 + title: Amount + description: The amount of the transaction in the `currency`. Must be a + positive value. For example, if the `currency` is USD, then it's the amount + in dollars. + entry_type: + allOf: + - $ref: '#/components/schemas/EntryType' + description: The direction of the flow of the money from the perspective + of the account holder. `outgoing` to represent money leaving the account, + such as purchases or fees, while `incoming` represents money entering + the account, such as income or refunds. + currency: + allOf: + - $ref: '#/components/schemas/Currency' + description: The currency of the transaction in ISO 4217 format + account_holder_id: + type: string + title: Account Holder Id + description: The unique ID of the account holder. Unsetting it will disable + [categorization](./docs/v3/enrichment/entities). + location: + $ref: '#/components/schemas/LocationInput' + additionalProperties: false + type: object + required: + - id + - description + - date + - amount + - entry_type + - currency + - account_holder_id + title: TransactionInput + example: + id: xbx8YP14g565Xk + description: SQ* STARBUCKS NW 43RD + date: '2024-03-30' + amount: 10.0 + entry_type: outgoing + currency: USD + account_holder_id: 35b927b6-6fda-40aa-93b8-95b47c2b2cad + location: + country: US + ValidationError: + properties: + loc: + items: + anyOf: + - type: string + - type: integer + type: array + title: Location + msg: + type: string + title: Message + type: + type: string + title: Error Type + type: object + required: + - loc + - msg + - type + title: ValidationError + Webhook: + properties: + url: + type: string + maxLength: 1024 + minLength: 1 + format: uri + title: Url + description: The URL of the webhook + events: + items: + type: string + enum: + - reports.resolved + - reports.rejected + - reports.pending + - bank_statements.completed + - bank_statements.error + - batches.completed + - batches.error + type: array + title: Events + description: A list of events that this webhook subscribes to + token: + type: string + maxLength: 128 + title: Token + description: A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending requests + to the webhook + id: + type: string + title: Id + description: A generated unique identifier for the webhook + created_at: + type: string + format: date-time + title: Created At + description: The date and time when the webhook was created. + enabled: + type: boolean + title: Enabled + description: Whether the webhook is enabled or not. + type: object + required: + - url + - events + - id + - created_at + - enabled + title: Webhook + example: + url: https://example.com:5689 + events: + - batches.completed + - batches.error + token: hunter2 + id: e94a150d-40af-4e96-8aa7-2948a6b4d8d3 + created_at: '2024-10-03T02:53:30.167953' + enabled: true + WebhookBase: + properties: + url: + type: string + maxLength: 1024 + minLength: 1 + format: uri + title: Url + description: The URL of the webhook + events: + items: + type: string + enum: + - reports.resolved + - reports.rejected + - reports.pending + - bank_statements.completed + - bank_statements.error + - batches.completed + - batches.error + type: array + title: Events + description: A list of events that this webhook subscribes to + token: + type: string + maxLength: 128 + title: Token + description: A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending requests + to the webhook + type: object + required: + - url + - events + title: WebhookBase + WebhookPatch: + properties: + url: + type: string + maxLength: 1024 + minLength: 1 + format: uri + title: Url + description: The URL of the webhook + events: + items: + type: string + enum: + - reports.resolved + - reports.rejected + - reports.pending + - bank_statements.completed + - bank_statements.error + - batches.completed + - batches.error + type: array + title: Events + description: A list of events that this webhook subscribes to + token: + type: string + maxLength: 128 + title: Token + description: A secret string used to authenticate the webhook. This value + will be included in the `X-Ntropy-Token` header when sending requests + to the webhook + enabled: + type: boolean + title: Enabled + description: Whether the webhook is enabled or not. + type: object + title: WebhookPatch + securitySchemes: + APIKeyHeader: + type: apiKey + in: header + name: X-Api-Key +tags: +- name: Enrichment + description: "\nThe Enrichment API allows you to submit multiple transactions for\ + \ enrichment in a single request. It supports both \nsynchronous and asynchronous\ + \ submission of transactions.\n\nTransactions enriched by these endpoints are\ + \ accessible via the [Transactions API](#tag/Transactions) \nand only accessible\ + \ by the API key that has submitted them. Each transaction is identified by an\ + \ id, if you submit two\ntransactions the same id, the most recent will replace\ + \ the previous one. Transactions also accept an account holder.\nNot supplying\ + \ one will disable both categorization and recurrence.\n\nFor more information\ + \ on account holder attributes, please refer to \n[this](../../../account-holders/#optional-account-holder-fields)\ + \ guide.\n\nComplete guide: [Transaction Enrichment](../../../enrichment/introduction).\n" + section_url: '#tag/Enrichment' + docs_url: ../../../enrichment/introduction +- name: Transactions + description: "\nThe Transaction API allows you to manage, retrieve and search through\ + \ enriched transactions. A transaction contains\nboth the enrichment fields and\ + \ the original input fields. They are made available after being \n[enriched](#tag/Enrichment).\n" + section_url: '#tag/Transactions' +- name: Account Holders + description: "\nThe Account Holder API allows you to retrieve, create and modify\ + \ account holders. An account holder represents an\nentity that holds an account\ + \ associated with transactions. An account holder can either be a business or\ + \ an individual\nperson - consumer.\n\nThe fields chosen for an account holder\ + \ are used by our enrichment process and can dramatically improve the accuracy\n\ + of the results. \n\nComplete guide: [Account Holders](../../../account-holders).\n" + section_url: '#tag/Account-Holders' + docs_url: ../../../account-holders +- name: Recurrence + description: "\nThe Recurrence API allows you to identify and categorize recurring\ + \ patterns found in the transactions of an \n[account holder](#tag/Account-Holders),\ + \ such as periodic payments or subscriptions and group them \ninto recurrence\ + \ groups. Each recurrence group contains detailed information about the pattern,\ + \ \nsuch as periodicity, amount and counterparty.\n\nTransactions can be added\ + \ to an account holder via the [Enrichment API](#tag/Enrichment). \nIt is crucial\ + \ that transactions are submitted with the [correct](../../../account-holders)\ + \ \naccount holder information as the recurrence calculation relies heavily on\ + \ it.\n\nComplete guide: [Recurrence](../../../enrichment/recurrence).\n" + section_url: '#tag/Recurrence' + docs_url: ../../../enrichment/recurrence +- name: Bank statements + description: ' + + The Bank Statements API allows you to manage and extract information from bank + statements. We support extraction of + + account holder information, account information and transaction records. Files + should be uploaded in PDF format. + + + During the extraction process, the bank statements undergo several status changes: + + | Status | Description | + + |----------|------------------------------------------------------------------------| + + |processing|The upload was successful. Extraction is in progress. | + + |completed |The extraction was successful. Results are available. | + + |error |An error occurred during extraction. Check `error` for more information.| + + + + A list of error codes for the `error` status can be found below: + + | Code | Description | + + |----------------------|-------------------------------------------| + + |invalid_bank_statement|Failed to process file as a bank statement.| + + |internal_error |Internal error. Please contact support. | + + + + Complete guide: [Bank Statements](../../../bank-statements). + + ' + section_url: '#tag/Bank-statements' + docs_url: ../../../bank-statements +- name: Webhooks + description: "\nThe Webhooks API allows you to receive notifications when certain\ + \ events occur,\nsuch as when a batch or bank statement finishes processing. \n\ + \nWhen an event occurs, Ntropy will make a POST request to the `url` of the\n\ + webhook. If you specified a `token` when creating the webhook, this string will\n\ + be included in the `X-Ntropy-Token` header. The webhook call has a timeout limit\ + \ of 10 \nseconds, so any processing of the event \n" + section_url: '#tag/Webhooks' + docs_url: ../../../webhooks +- name: Personalization + description: ' + + The Personalization API allows you to customize the output of enrichment by + + uploading a set of rules. For more information, see our documentation on + + [Personalization](None). + + ' + section_url: '#tag/Personalization' +- name: Reports + description: ' + + The Reports API allows you to flag transactions with incorrect fields. You can + also track the progress of each + + report either through the API or using [webhooks](#tag/Webhooks). + + ' + section_url: '#tag/Reports' diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/personalization.json b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/personalization.json new file mode 100644 index 00000000000..5b395c33923 --- /dev/null +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/fixtures/ntropy/personalization.json @@ -0,0 +1,568 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "title": "Filter", + "examples": [ + [ + { + "if": { + "is_substring": [ + { + "get": "website" + }, + "ntropy" + ] + }, + "then": [ + { + "set": "logo", + "to": "http://example.com/favicon.ico" + } + ], + "else": [ + { + "remove_label": "example label" + } + ] + } + ] + ], + "type": "array", + "items": { + "$ref": "#/definitions/Action" + }, + "definitions": { + "Action": { + "title": "action", + "anyOf": [ + { + "$ref": "#/definitions/If" + }, + { + "$ref": "#/definitions/ModifyLabels" + }, + { + "$ref": "#/definitions/Setter" + } + ] + }, + "If": { + "title": "if", + "type": "object", + "required": [ + "if" + ], + "properties": { + "if": { + "$ref": "#/definitions/Expr" + }, + "then": { + "type": "array", + "items": { + "$ref": "#/definitions/Action" + } + }, + "else": { + "type": "array", + "items": { + "$ref": "#/definitions/Action" + } + } + } + }, + "Expr": { + "title": "expression", + "anyOf": [ + { + "title": "boolean", + "type": "boolean" + }, + { + "title": "string", + "type": "string" + }, + { + "title": "number", + "type": "number", + "format": "double" + }, + { + "title": "function", + "$ref": "#/definitions/FnCall" + } + ] + }, + "FnCall": { + "oneOf": [ + { + "title": "&&", + "type": "object", + "required": [ + "&&" + ], + "properties": { + "&&": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "||", + "type": "object", + "required": [ + "||" + ], + "properties": { + "||": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "==", + "type": "object", + "required": [ + "==" + ], + "properties": { + "==": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "+", + "type": "object", + "required": [ + "+" + ], + "properties": { + "+": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "-", + "type": "object", + "required": [ + "-" + ], + "properties": { + "-": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "*", + "type": "object", + "required": [ + "*" + ], + "properties": { + "*": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "/", + "type": "object", + "required": [ + "/" + ], + "properties": { + "/": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "//", + "type": "object", + "required": [ + "//" + ], + "properties": { + "//": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "<", + "type": "object", + "required": [ + "<" + ], + "properties": { + "<": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": "<=", + "type": "object", + "required": [ + "<=" + ], + "properties": { + "<=": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": ">", + "type": "object", + "required": [ + ">" + ], + "properties": { + ">": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": ">=", + "type": "object", + "required": [ + ">=" + ], + "properties": { + ">=": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": "!", + "type": "object", + "required": [ + "!" + ], + "properties": { + "!": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "is_substring", + "type": "object", + "required": [ + "is_substring" + ], + "properties": { + "is_substring": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": "starts_with", + "type": "object", + "required": [ + "starts_with" + ], + "properties": { + "starts_with": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": "ends_with", + "type": "object", + "required": [ + "ends_with" + ], + "properties": { + "ends_with": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + }, + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + }, + { + "title": "to_lower", + "type": "object", + "required": [ + "to_lower" + ], + "properties": { + "to_lower": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "to_upper", + "type": "object", + "required": [ + "to_upper" + ], + "properties": { + "to_upper": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "has_label", + "type": "object", + "required": [ + "has_label" + ], + "properties": { + "has_label": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "has_mcc", + "type": "object", + "required": [ + "has_mcc" + ], + "properties": { + "has_mcc": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "get property", + "type": "object", + "required": [ + "get" + ], + "properties": { + "get": { + "$ref": "#/definitions/TxProp" + } + }, + "additionalProperties": false + } + ] + }, + "TxProp": { + "title": "properties", + "type": "string", + "enum": [ + "logo", + "website", + "merchant", + "description", + "merchant_id", + "location", + "person", + "transaction_type", + "amount", + "entry_type", + "account_holder_type", + "account_holder_id", + "account_holder_name" + ] + }, + "ModifyLabels": { + "title": "modify labels", + "oneOf": [ + { + "title": "add_label", + "type": "object", + "required": [ + "add_label" + ], + "properties": { + "add_label": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "remove_label", + "type": "object", + "required": [ + "remove_label" + ], + "properties": { + "remove_label": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "set_labels", + "type": "object", + "required": [ + "set_labels" + ], + "properties": { + "set_labels": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + }, + { + "title": "add_mcc", + "type": "object", + "required": [ + "add_mcc" + ], + "properties": { + "add_mcc": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "remove_mcc", + "type": "object", + "required": [ + "remove_mcc" + ], + "properties": { + "remove_mcc": { + "$ref": "#/definitions/Expr" + } + }, + "additionalProperties": false + }, + { + "title": "set_mcc", + "type": "object", + "required": [ + "set_mcc" + ], + "properties": { + "set_mcc": { + "type": "array", + "items": { + "$ref": "#/definitions/Expr" + } + } + }, + "additionalProperties": false + } + ] + }, + "Setter": { + "title": "set", + "type": "object", + "required": [ + "set", + "to" + ], + "properties": { + "set": { + "$ref": "#/definitions/EditableTxProp" + }, + "to": { + "$ref": "#/definitions/Expr" + } + } + }, + "EditableTxProp": { + "title": "editable properties", + "type": "string", + "enum": [ + "logo", + "website", + "merchant", + "merchant_id", + "location", + "person", + "transaction_type" + ] + } + } + } \ No newline at end of file diff --git a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/openapiDocs.test.ts b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/openapiDocs.test.ts index 2284ac9d559..f6d70ce1ecb 100644 --- a/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/openapiDocs.test.ts +++ b/packages/cli/api-importers/openapi/openapi-ir-to-fern-tests/src/__test__/openapiDocs.test.ts @@ -30,7 +30,7 @@ describe("openapi-ir-to-fern docs", async () => { } const definition = await workspace.workspace.getDefinition( { context }, - { enableUniqueErrorsPerEndpoint: true } + { enableUniqueErrorsPerEndpoint: true, preserveSchemaIds: true } ); // eslint-disable-next-line jest/no-standalone-expect expect(definition).toMatchFileSnapshot(`./__snapshots__/openapi-docs/${fixture.name}.json`); diff --git a/packages/cli/cli/package.json b/packages/cli/cli/package.json index 1938feb761b..327ca6c19ab 100644 --- a/packages/cli/cli/package.json +++ b/packages/cli/cli/package.json @@ -47,7 +47,6 @@ "@fern-api/core-utils": "workspace:*", "@fern-api/docs-preview": "workspace:*", "@fern-api/docs-validator": "workspace:*", - "@fern-api/dynamic-snippets": "workspace:*", "@fern-api/fern-definition-formatter": "workspace:*", "@fern-api/fern-definition-schema": "workspace:*", "@fern-api/fern-definition-validator": "workspace:*", diff --git a/packages/cli/cli/src/cli.ts b/packages/cli/cli/src/cli.ts index 86461189e47..cf73175b2fb 100644 --- a/packages/cli/cli/src/cli.ts +++ b/packages/cli/cli/src/cli.ts @@ -929,8 +929,13 @@ function addWriteDefinitionCommand(cli: Argv, cliContext: CliC .option("language", { choices: Object.values(generatorsYml.GenerationLanguage), description: "Write the definition for a particular SDK language" + }) + .option("preserve-schemas", { + string: true, + description: "Preserve potentially unsafe schema Ids in the generated fern definition" }), async (argv) => { + const preserveSchemaIds = argv.preserveSchemas != null; await cliContext.instrumentPostHogEvent({ command: "fern write-definition" }); @@ -938,10 +943,12 @@ function addWriteDefinitionCommand(cli: Argv, cliContext: CliC project: await loadProjectAndRegisterWorkspacesWithContext(cliContext, { commandLineApiWorkspace: argv.api, defaultToAllApiWorkspaces: true, - sdkLanguage: argv.language + sdkLanguage: argv.language, + preserveSchemaIds }), cliContext, - sdkLanguage: argv.language + sdkLanguage: argv.language, + preserveSchemaIds }); } ); diff --git a/packages/cli/cli/src/commands/docs-dev/devDocsWorkspace.ts b/packages/cli/cli/src/commands/docs-dev/devDocsWorkspace.ts index 8c7d20f3984..82bd33ed42d 100644 --- a/packages/cli/cli/src/commands/docs-dev/devDocsWorkspace.ts +++ b/packages/cli/cli/src/commands/docs-dev/devDocsWorkspace.ts @@ -47,7 +47,7 @@ export async function previewDocsWorkspace({ for (const apiWorkspace of project.apiWorkspaces) { await cliContext.runTaskForWorkspace(apiWorkspace, async (apiWorkspaceContext) => { await validateAPIWorkspaceWithoutExiting({ - workspace: await apiWorkspace.toFernWorkspace({ context }), + workspace: await apiWorkspace.toFernWorkspace({ context }, { preserveSchemaIds: true }), context: apiWorkspaceContext, logWarnings: false, logSummary: false diff --git a/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts b/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts index f4bfa36b9c1..e3f3037546f 100644 --- a/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts +++ b/packages/cli/cli/src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts @@ -4,7 +4,6 @@ import { Project } from "@fern-api/project-loader"; import path from "path"; import { CliContext } from "../../cli-context/CliContext"; import { generateIrForFernWorkspace } from "../generate-ir/generateIrForFernWorkspace"; -import { convertIrToDynamicSnippetsIr } from "@fern-api/dynamic-snippets"; export async function generateDynamicIrForWorkspaces({ project, @@ -42,12 +41,12 @@ export async function generateDynamicIrForWorkspaces({ readme: undefined }); - const dynamicIntermediateRepresentation = await convertIrToDynamicSnippetsIr( - intermediateRepresentation - ); + if (intermediateRepresentation.dynamic == null) { + throw new Error("Internal error; dynamic IR was not generated"); + } const irOutputFilePath = path.resolve(irFilepath); - await streamObjectToFile(AbsoluteFilePath.of(irOutputFilePath), dynamicIntermediateRepresentation); + await streamObjectToFile(AbsoluteFilePath.of(irOutputFilePath), intermediateRepresentation.dynamic); context.logger.info(`Wrote IR to ${irOutputFilePath}`); }); }) diff --git a/packages/cli/cli/src/commands/generate/generateDocsWorkspace.ts b/packages/cli/cli/src/commands/generate/generateDocsWorkspace.ts index e7a66447d1b..1bc187b20e8 100644 --- a/packages/cli/cli/src/commands/generate/generateDocsWorkspace.ts +++ b/packages/cli/cli/src/commands/generate/generateDocsWorkspace.ts @@ -52,7 +52,7 @@ export async function generateDocsWorkspace({ project.apiWorkspaces.map(async (workspace) => { return workspace.toFernWorkspace( { context }, - { enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false } + { enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false, preserveSchemaIds: true } ); }) ); diff --git a/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts b/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts index ed4896af2e4..90a584a93f5 100644 --- a/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts +++ b/packages/cli/cli/src/commands/write-definition/writeDefinitionForWorkspaces.ts @@ -13,11 +13,13 @@ import { CliContext } from "../../cli-context/CliContext"; export async function writeDefinitionForWorkspaces({ project, cliContext, - sdkLanguage + sdkLanguage, + preserveSchemaIds }: { project: Project; cliContext: CliContext; sdkLanguage: generatorsYml.GenerationLanguage | undefined; + preserveSchemaIds: boolean; }): Promise { await Promise.all( project.apiWorkspaces.map(async (workspace) => { @@ -26,7 +28,7 @@ export async function writeDefinitionForWorkspaces({ await writeDefinitionForFernWorkspace({ workspace, context }); } else { await writeDefinitionForNonFernWorkspace({ - workspace: await workspace.toFernWorkspace({ context }), + workspace: await workspace.toFernWorkspace({ context }, { preserveSchemaIds }), context }); } diff --git a/packages/cli/cli/tsconfig.json b/packages/cli/cli/tsconfig.json index 8e332edbf8d..5c255cce9ef 100644 --- a/packages/cli/cli/tsconfig.json +++ b/packages/cli/cli/tsconfig.json @@ -11,7 +11,6 @@ { "path": "../auth" }, { "path": "../configuration" }, { "path": "../docs-preview" }, - { "path": "../dynamic-snippets" }, { "path": "../generation/ir-generator" }, { "path": "../generation/ir-migrations" }, { "path": "../generation/local-generation/local-workspace-runner" }, diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index 0cf25f2d321..8b5560f35c1 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,3 +1,18 @@ +- changelogEntry: + - summary: | + Several improvements to docs, conjure importer, and the cli. + type: internal + irVersion: 53 + version: 0.45.0 + + +- changelogEntry: + - summary: | + Docs generation now preserves original model schema names. + type: internal + irVersion: 53 + version: 0.45.0-rc55 + - changelogEntry: - summary: | Removes errant minimum and maximums for 'float' types for docs. diff --git a/packages/cli/docs-preview/src/previewDocs.ts b/packages/cli/docs-preview/src/previewDocs.ts index d06d0173c40..26fb2132da9 100644 --- a/packages/cli/docs-preview/src/previewDocs.ts +++ b/packages/cli/docs-preview/src/previewDocs.ts @@ -39,7 +39,7 @@ export async function getPreviewDocsDefinition({ async (workspace) => await workspace.toFernWorkspace( { context }, - { enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false } + { enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false, preserveSchemaIds: true } ) ) ); diff --git a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts index 2eaae53ba25..b746fb5f25c 100644 --- a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts +++ b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts @@ -488,37 +488,38 @@ export class DocsDefinitionResolver { const children = await Promise.all(items.map((item) => this.toNavigationChild(id, item, parentSlug))); - const sidebarRootChildren: FernNavigation.V1.SidebarRootChild[] = []; + const grouped: FernNavigation.V1.SidebarRootChild[] = []; children.forEach((child) => { - switch (child.type) { - case "apiReference": - case "section": - sidebarRootChildren.push(child); - return; - case "changelog": - case "link": - case "page": { - let last = sidebarRootChildren[sidebarRootChildren.length - 1]; - if (last?.type !== "sidebarGroup") { - last = { - id: this.#idgen.get(`${id}/group`), - type: "sidebarGroup", - children: [] - }; - sidebarRootChildren.push(last); - } - last.children.push(child); - return; - } - default: - assertNever(child); + if (child.type === "apiReference") { + grouped.push(child); + return; + } + + if (child.type === "section" && !child.collapsed) { + grouped.push(child); + return; } + + const lastChild = grouped.length > 0 ? grouped[grouped.length - 1] : undefined; + let sidebarGroup: FernNavigation.V1.SidebarGroupNode; + if (lastChild?.type === "sidebarGroup") { + sidebarGroup = lastChild; + } else { + sidebarGroup = { + id: this.#idgen.get(`${id}/group`), + type: "sidebarGroup", + children: [] + }; + grouped.push(sidebarGroup); + } + + sidebarGroup.children.push(child); }); return { type: "sidebarRoot", id, - children: sidebarRootChildren + children: grouped }; } diff --git a/packages/cli/dynamic-snippets/.depcheckrc.json b/packages/cli/dynamic-snippets/.depcheckrc.json deleted file mode 100644 index a3a4f43188c..00000000000 --- a/packages/cli/dynamic-snippets/.depcheckrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ignores": [ - "@types/jest", - "globals", - "@types/node" - ], - "ignore-patterns": [ - "lib" - ] -} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/.prettierrc.cjs b/packages/cli/dynamic-snippets/.prettierrc.cjs deleted file mode 100644 index 39cf0d0b8c9..00000000000 --- a/packages/cli/dynamic-snippets/.prettierrc.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("../../../.prettierrc.json"); diff --git a/packages/cli/dynamic-snippets/package.json b/packages/cli/dynamic-snippets/package.json deleted file mode 100644 index c6828ff337d..00000000000 --- a/packages/cli/dynamic-snippets/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@fern-api/dynamic-snippets", - "version": "0.0.0", - "repository": { - "type": "git", - "url": "https://github.com/fern-api/fern.git", - "directory": "packages/cli/dynamic-snippets" - }, - "private": true, - "files": [ - "lib" - ], - "type": "module", - "source": "src/index.ts", - "main": "lib/index.js", - "types": "lib/index.d.ts", - "sideEffects": false, - "scripts": { - "clean": "rm -rf ./lib && tsc --build --clean", - "compile": "tsc --build", - "test": "vitest --run", - "test:update": "vitest --run -u", - "lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore", - "lint:eslint:fix": "yarn lint:eslint --fix", - "format": "prettier --write --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", - "format:check": "prettier --check --ignore-unknown --ignore-path ../../../shared/.prettierignore \"**\"", - "organize-imports": "organize-imports-cli tsconfig.json", - "depcheck": "depcheck" - }, - "dependencies": { - "@fern-api/configuration": "workspace:*", - "@fern-api/core-utils": "workspace:*", - "@fern-api/fs-utils": "workspace:*", - "@fern-api/ir-generator": "workspace:*", - "@fern-api/ir-sdk": "workspace:*", - "@fern-api/project-loader": "workspace:*", - "@fern-api/task-context": "workspace:*", - "@fern-api/workspace-loader": "workspace:*", - "@fern-fern/ir-sdk": "^53.21.0", - "@fern-fern/generator-exec-sdk": "^0.0.898", - "url-join": "^5.0.0" - }, - "devDependencies": { - "@types/node": "18.7.18", - "depcheck": "^1.4.6", - "eslint": "^8.56.0", - "organize-imports-cli": "^0.10.0", - "typescript": "4.6.4", - "vitest": "^2.0.5" - } -} \ No newline at end of file diff --git a/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGenerator.ts b/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGenerator.ts deleted file mode 100644 index a938c1b26c0..00000000000 --- a/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGenerator.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { dynamic as DynamicSnippets } from "@fern-api/ir-sdk"; -import { AbstractDynamicSnippetsGeneratorContext } from "./AbstractDynamicSnippetsGeneratorContext"; - -export abstract class AbstractDynamicSnippetsGenerator { - public constructor(public readonly context: Context) {} - - /** - * Generates code for the specified request. - * @param request - */ - public abstract generate( - request: DynamicSnippets.EndpointSnippetRequest - ): Promise; -} diff --git a/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGeneratorContext.ts b/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGeneratorContext.ts deleted file mode 100644 index 4c57aa030b3..00000000000 --- a/packages/cli/dynamic-snippets/src/AbstractDynamicSnippetsGeneratorContext.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { FernGeneratorExec } from "@fern-fern/generator-exec-sdk"; -import { dynamic as DynamicSnippets } from "@fern-fern/ir-sdk/api"; - -export abstract class AbstractDynamicSnippetsGeneratorContext { - public constructor( - public readonly ir: DynamicSnippets.DynamicIntermediateRepresentation, - public readonly config: FernGeneratorExec.GeneratorConfig - ) {} -} diff --git a/packages/cli/dynamic-snippets/src/index.ts b/packages/cli/dynamic-snippets/src/index.ts deleted file mode 100644 index 9f6d4cfe75c..00000000000 --- a/packages/cli/dynamic-snippets/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { convertIrToDynamicSnippetsIr } from "./convertIrToDynamicSnippetsIr"; -export { generateDynamicSnippetsTestSuite } from "./test-utils/generateDynamicSnippetsTestSuite"; -export { type DynamicSnippetsTestSuite } from "./test-utils/DynamicSnippetsTestSuite"; -export { AbstractDynamicSnippetsGenerator } from "./AbstractDynamicSnippetsGenerator"; -export { AbstractDynamicSnippetsGeneratorContext } from "./AbstractDynamicSnippetsGeneratorContext"; diff --git a/packages/cli/dynamic-snippets/tsconfig.json b/packages/cli/dynamic-snippets/tsconfig.json deleted file mode 100644 index ab3ee2aa150..00000000000 --- a/packages/cli/dynamic-snippets/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "../../../shared/tsconfig.shared.json", - "compilerOptions": { "composite": true, "outDir": "lib", "rootDir": "src" }, - "include": ["./src/**/*"], - "references": [ - { "path": "../../cli/generation/ir-generator" }, - { "path": "../../commons/core-utils" }, - { "path": "../../commons/fs-utils" }, - { "path": "../../ir-sdk" }, - { "path": "../logger" }, - { "path": "../project-loader" }, - { "path": "../task-context" }, - { "path": "../workspace-loader" } - ] -} diff --git a/packages/cli/dynamic-snippets/vitest.config.ts b/packages/cli/dynamic-snippets/vitest.config.ts deleted file mode 100644 index fecc099c58a..00000000000 --- a/packages/cli/dynamic-snippets/vitest.config.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "../../../shared/vitest.config"; diff --git a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap index f4f21c918f7..299cf2507ae 100644 --- a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap @@ -1,5 +1,5 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`dependencies > correctly incorporates dependencies 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"dependent","camelCase":{"unsafeName":"dependent","safeName":"dependent"},"snakeCase":{"unsafeName":"dependent","safeName":"dependent"},"screamingSnakeCase":{"unsafeName":"DEPENDENT","safeName":"DEPENDENT"},"pascalCase":{"unsafeName":"Dependent","safeName":"Dependent"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_imported:RootString":{"inline":false,"name":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null},"typeId":"type_imported:RootString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_y:IntegerAlias":{"inline":false,"name":{"name":{"originalName":"IntegerAlias","camelCase":{"unsafeName":"integerAlias","safeName":"integerAlias"},"snakeCase":{"unsafeName":"integer_alias","safeName":"integer_alias"},"screamingSnakeCase":{"unsafeName":"INTEGER_ALIAS","safeName":"INTEGER_ALIAS"},"pascalCase":{"unsafeName":"IntegerAlias","safeName":"IntegerAlias"}},"fernFilepath":{"allParts":[{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}],"packagePath":[],"file":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}},"typeId":"type_y:IntegerAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imported/x:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"typeId":"type_imported/x:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_imported":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imported.rootEndpoint","name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_imported:RootString","type_y:IntegerAlias","type_imported/x:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_imported":{"name":{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null},"service":"service_imported","types":["type_imported:RootString"],"errors":[],"subpackages":["subpackage_imported/x"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_y":{"name":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}},"fernFilepath":{"allParts":[{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}],"packagePath":[],"file":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}},"service":null,"types":["type_y:IntegerAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imported/x":{"name":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"service":null,"types":["type_imported/x:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_imported","subpackage_y"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`dependencies > correctly incorporates dependencies 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"dependent","camelCase":{"unsafeName":"dependent","safeName":"dependent"},"snakeCase":{"unsafeName":"dependent","safeName":"dependent"},"screamingSnakeCase":{"unsafeName":"DEPENDENT","safeName":"DEPENDENT"},"pascalCase":{"unsafeName":"Dependent","safeName":"Dependent"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_imported:RootString":{"inline":false,"name":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null},"typeId":"type_imported:RootString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_y:IntegerAlias":{"inline":false,"name":{"name":{"originalName":"IntegerAlias","camelCase":{"unsafeName":"integerAlias","safeName":"integerAlias"},"snakeCase":{"unsafeName":"integer_alias","safeName":"integer_alias"},"screamingSnakeCase":{"unsafeName":"INTEGER_ALIAS","safeName":"INTEGER_ALIAS"},"pascalCase":{"unsafeName":"IntegerAlias","safeName":"IntegerAlias"}},"fernFilepath":{"allParts":[{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}],"packagePath":[],"file":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}},"typeId":"type_y:IntegerAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imported/x:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"typeId":"type_imported/x:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_imported":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imported.rootEndpoint","name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_imported:RootString","type_y:IntegerAlias","type_imported/x:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_imported:RootString":{"type":"alias","declaration":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_y:IntegerAlias":{"type":"alias","declaration":{"name":{"originalName":"IntegerAlias","camelCase":{"unsafeName":"integerAlias","safeName":"integerAlias"},"snakeCase":{"unsafeName":"integer_alias","safeName":"integer_alias"},"screamingSnakeCase":{"unsafeName":"INTEGER_ALIAS","safeName":"INTEGER_ALIAS"},"pascalCase":{"unsafeName":"IntegerAlias","safeName":"IntegerAlias"}},"fernFilepath":{"allParts":[{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}],"packagePath":[],"file":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}}},"typeReference":{"_type":"primitive","value":"INTEGER"}},"type_imported/x:StringAlias":{"type":"alias","declaration":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}}},"typeReference":{"_type":"primitive","value":"STRING"}}},"headers":[],"endpoints":{"endpoint_imported.rootEndpoint":{"auth":null,"declaration":{"name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null}},"location":{"method":"GET","path":"/"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_imported":{"name":{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":null},"service":"service_imported","types":["type_imported:RootString"],"errors":[],"subpackages":["subpackage_imported/x"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_y":{"name":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}},"fernFilepath":{"allParts":[{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}],"packagePath":[],"file":{"originalName":"y","camelCase":{"unsafeName":"y","safeName":"y"},"snakeCase":{"unsafeName":"y","safeName":"y"},"screamingSnakeCase":{"unsafeName":"Y","safeName":"Y"},"pascalCase":{"unsafeName":"Y","safeName":"Y"}}},"service":null,"types":["type_y:IntegerAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imported/x":{"name":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}},"fernFilepath":{"allParts":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"imported","camelCase":{"unsafeName":"imported","safeName":"imported"},"snakeCase":{"unsafeName":"imported","safeName":"imported"},"screamingSnakeCase":{"unsafeName":"IMPORTED","safeName":"IMPORTED"},"pascalCase":{"unsafeName":"Imported","safeName":"Imported"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"service":null,"types":["type_imported/x:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_imported","subpackage_y"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`dependencies > file dependencies 1`] = `560076`; +exports[`dependencies > file dependencies 1`] = `705214`; diff --git a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap index 2faaa3ec166..e950beef2b8 100644 --- a/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/ir/__snapshots__/ir.test.ts.snap @@ -1,31 +1,31 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`ir > {"name":"auth-header-prefix"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"header","name":{"name":{"originalName":"ApiKey","camelCase":{"unsafeName":"apiKey","safeName":"apiKey"},"snakeCase":{"unsafeName":"api_key","safeName":"api_key"},"screamingSnakeCase":{"unsafeName":"API_KEY","safeName":"API_KEY"},"pascalCase":{"unsafeName":"ApiKey","safeName":"ApiKey"}},"wireValue":"Authorization"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"prefix":"ApiKey","headerEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":[],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"auth-header-prefix"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"header","name":{"name":{"originalName":"ApiKey","camelCase":{"unsafeName":"apiKey","safeName":"apiKey"},"snakeCase":{"unsafeName":"api_key","safeName":"api_key"},"screamingSnakeCase":{"unsafeName":"API_KEY","safeName":"API_KEY"},"pascalCase":{"unsafeName":"ApiKey","safeName":"ApiKey"}},"wireValue":"Authorization"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"prefix":"ApiKey","headerEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{}},"subpackages":{},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":[],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"extended-examples"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":"API","apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"bearer","token":{"originalName":"token","camelCase":{"unsafeName":"token","safeName":"token"},"snakeCase":{"unsafeName":"token","safeName":"token"},"screamingSnakeCase":{"unsafeName":"TOKEN","safeName":"TOKEN"},"pascalCase":{"unsafeName":"Token","safeName":"Token"}},"tokenEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_app:GetAppResponse":{"inline":false,"name":{"name":{"originalName":"GetAppResponse","camelCase":{"unsafeName":"getAppResponse","safeName":"getAppResponse"},"snakeCase":{"unsafeName":"get_app_response","safeName":"get_app_response"},"screamingSnakeCase":{"unsafeName":"GET_APP_RESPONSE","safeName":"GET_APP_RESPONSE"},"pascalCase":{"unsafeName":"GetAppResponse","safeName":"GetAppResponse"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"typeId":"type_app:GetAppResponse"},"shape":{"_type":"object","extends":[{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"}],"properties":[{"name":{"name":{"originalName":"property","camelCase":{"unsafeName":"property","safeName":"property"},"snakeCase":{"unsafeName":"property","safeName":"property"},"screamingSnakeCase":{"unsafeName":"PROPERTY","safeName":"PROPERTY"},"pascalCase":{"unsafeName":"Property","safeName":"Property"}},"wireValue":"property"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"valueType":{"_type":"named","name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId","default":null,"inline":null},"availability":null,"docs":null}]},"referencedTypes":["type_commons:Deployment","type_commons:AppId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_commons:AppId","fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"your-app-id"}}},"jsonExample":"your-app-id"}}},"jsonExample":"your-app-id"},"originalTypeDeclaration":{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"}},{"name":{"name":{"originalName":"property","camelCase":{"unsafeName":"property","safeName":"property"},"snakeCase":{"unsafeName":"property","safeName":"property"},"screamingSnakeCase":{"unsafeName":"PROPERTY","safeName":"PROPERTY"},"pascalCase":{"unsafeName":"Property","safeName":"Property"}},"wireValue":"property"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"app-secret"}}},"jsonExample":"app-secret"},"originalTypeDeclaration":{"name":{"originalName":"GetAppResponse","camelCase":{"unsafeName":"getAppResponse","safeName":"getAppResponse"},"snakeCase":{"unsafeName":"get_app_response","safeName":"get_app_response"},"screamingSnakeCase":{"unsafeName":"GET_APP_RESPONSE","safeName":"GET_APP_RESPONSE"},"pascalCase":{"unsafeName":"GetAppResponse","safeName":"GetAppResponse"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"typeId":"type_app:GetAppResponse"}}]},"jsonExample":{"appId":"your-app-id","property":"app-secret"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:AppId":{"inline":false,"name":{"name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"your-app-id"}}},"jsonExample":"your-app-id"}},"jsonExample":"your-app-id","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Deployment":{"inline":false,"name":{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"valueType":{"_type":"named","name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_commons:AppId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_app:GetAppResponse","type_commons:AppId","type_commons:Deployment"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_app":{"name":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"service":null,"types":["type_app:GetAppResponse"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:AppId","type_commons:Deployment"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_app","subpackage_commons"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"extended-examples"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":"API","apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"bearer","token":{"originalName":"token","camelCase":{"unsafeName":"token","safeName":"token"},"snakeCase":{"unsafeName":"token","safeName":"token"},"screamingSnakeCase":{"unsafeName":"TOKEN","safeName":"TOKEN"},"pascalCase":{"unsafeName":"Token","safeName":"Token"}},"tokenEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_app:GetAppResponse":{"inline":false,"name":{"name":{"originalName":"GetAppResponse","camelCase":{"unsafeName":"getAppResponse","safeName":"getAppResponse"},"snakeCase":{"unsafeName":"get_app_response","safeName":"get_app_response"},"screamingSnakeCase":{"unsafeName":"GET_APP_RESPONSE","safeName":"GET_APP_RESPONSE"},"pascalCase":{"unsafeName":"GetAppResponse","safeName":"GetAppResponse"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"typeId":"type_app:GetAppResponse"},"shape":{"_type":"object","extends":[{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"}],"properties":[{"name":{"name":{"originalName":"property","camelCase":{"unsafeName":"property","safeName":"property"},"snakeCase":{"unsafeName":"property","safeName":"property"},"screamingSnakeCase":{"unsafeName":"PROPERTY","safeName":"PROPERTY"},"pascalCase":{"unsafeName":"Property","safeName":"Property"}},"wireValue":"property"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"valueType":{"_type":"named","name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId","default":null,"inline":null},"availability":null,"docs":null}]},"referencedTypes":["type_commons:Deployment","type_commons:AppId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_commons:AppId","fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"your-app-id"}}},"jsonExample":"your-app-id"}}},"jsonExample":"your-app-id"},"originalTypeDeclaration":{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"}},{"name":{"name":{"originalName":"property","camelCase":{"unsafeName":"property","safeName":"property"},"snakeCase":{"unsafeName":"property","safeName":"property"},"screamingSnakeCase":{"unsafeName":"PROPERTY","safeName":"PROPERTY"},"pascalCase":{"unsafeName":"Property","safeName":"Property"}},"wireValue":"property"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"app-secret"}}},"jsonExample":"app-secret"},"originalTypeDeclaration":{"name":{"originalName":"GetAppResponse","camelCase":{"unsafeName":"getAppResponse","safeName":"getAppResponse"},"snakeCase":{"unsafeName":"get_app_response","safeName":"get_app_response"},"screamingSnakeCase":{"unsafeName":"GET_APP_RESPONSE","safeName":"GET_APP_RESPONSE"},"pascalCase":{"unsafeName":"GetAppResponse","safeName":"GetAppResponse"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"typeId":"type_app:GetAppResponse"}}]},"jsonExample":{"appId":"your-app-id","property":"app-secret"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:AppId":{"inline":false,"name":{"name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"your-app-id"}}},"jsonExample":"your-app-id"}},"jsonExample":"your-app-id","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Deployment":{"inline":false,"name":{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Deployment"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"valueType":{"_type":"named","name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:AppId","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_commons:AppId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_app:GetAppResponse","type_commons:AppId","type_commons:Deployment"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_app:GetAppResponse":{"type":"object","declaration":{"name":{"originalName":"GetAppResponse","camelCase":{"unsafeName":"getAppResponse","safeName":"getAppResponse"},"snakeCase":{"unsafeName":"get_app_response","safeName":"get_app_response"},"screamingSnakeCase":{"unsafeName":"GET_APP_RESPONSE","safeName":"GET_APP_RESPONSE"},"pascalCase":{"unsafeName":"GetAppResponse","safeName":"GetAppResponse"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}}},"properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"typeReference":{"_type":"named","value":"type_commons:AppId"}},{"name":{"name":{"originalName":"property","camelCase":{"unsafeName":"property","safeName":"property"},"snakeCase":{"unsafeName":"property","safeName":"property"},"screamingSnakeCase":{"unsafeName":"PROPERTY","safeName":"PROPERTY"},"pascalCase":{"unsafeName":"Property","safeName":"Property"}},"wireValue":"property"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_commons:AppId":{"type":"alias","declaration":{"name":{"originalName":"AppId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_commons:Deployment":{"type":"object","declaration":{"name":{"originalName":"Deployment","camelCase":{"unsafeName":"deployment","safeName":"deployment"},"snakeCase":{"unsafeName":"deployment","safeName":"deployment"},"screamingSnakeCase":{"unsafeName":"DEPLOYMENT","safeName":"DEPLOYMENT"},"pascalCase":{"unsafeName":"Deployment","safeName":"Deployment"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"properties":[{"name":{"name":{"originalName":"appId","camelCase":{"unsafeName":"appId","safeName":"appId"},"snakeCase":{"unsafeName":"app_id","safeName":"app_id"},"screamingSnakeCase":{"unsafeName":"APP_ID","safeName":"APP_ID"},"pascalCase":{"unsafeName":"AppId","safeName":"AppId"}},"wireValue":"appId"},"typeReference":{"_type":"named","value":"type_commons:AppId"}}]}},"headers":[],"endpoints":{}},"subpackages":{"subpackage_app":{"name":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}},"fernFilepath":{"allParts":[{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}],"packagePath":[],"file":{"originalName":"app","camelCase":{"unsafeName":"app","safeName":"app"},"snakeCase":{"unsafeName":"app","safeName":"app"},"screamingSnakeCase":{"unsafeName":"APP","safeName":"APP"},"pascalCase":{"unsafeName":"App","safeName":"App"}}},"service":null,"types":["type_app:GetAppResponse"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:AppId","type_commons:Deployment"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_app","subpackage_commons"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"file-upload"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_file-upload":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_file-upload.fileUpload","name":{"originalName":"fileUpload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/movies","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"fileUpload","name":{"originalName":"FileUploadRequest","camelCase":{"unsafeName":"fileUploadRequest","safeName":"fileUploadRequest"},"snakeCase":{"unsafeName":"file_upload_request","safeName":"file_upload_request"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD_REQUEST","safeName":"FILE_UPLOAD_REQUEST"},"pascalCase":{"unsafeName":"FileUploadRequest","safeName":"FileUploadRequest"}},"properties":[{"type":"bodyProperty","contentType":null,"name":{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"wireValue":"foo"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"type":"file","value":{"type":"file","key":{"name":{"originalName":"file","camelCase":{"unsafeName":"file","safeName":"file"},"snakeCase":{"unsafeName":"file","safeName":"file"},"screamingSnakeCase":{"unsafeName":"FILE","safeName":"FILE"},"pascalCase":{"unsafeName":"File","safeName":"File"}},"wireValue":"file"},"isOptional":false,"contentType":null}},{"type":"file","value":{"type":"file","key":{"name":{"originalName":"optionalFile","camelCase":{"unsafeName":"optionalFile","safeName":"optionalFile"},"snakeCase":{"unsafeName":"optional_file","safeName":"optional_file"},"screamingSnakeCase":{"unsafeName":"OPTIONAL_FILE","safeName":"OPTIONAL_FILE"},"pascalCase":{"unsafeName":"OptionalFile","safeName":"OptionalFile"}},"wireValue":"optionalFile"},"isOptional":true,"contentType":null}},{"type":"bodyProperty","contentType":null,"name":{"name":{"originalName":"bar","camelCase":{"unsafeName":"bar","safeName":"bar"},"snakeCase":{"unsafeName":"bar","safeName":"bar"},"screamingSnakeCase":{"unsafeName":"BAR","safeName":"BAR"},"pascalCase":{"unsafeName":"Bar","safeName":"Bar"}},"wireValue":"bar"},"valueType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"availability":null,"docs":null}],"docs":null},"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"FileUploadRequest","camelCase":{"unsafeName":"fileUploadRequest","safeName":"fileUploadRequest"},"snakeCase":{"unsafeName":"file_upload_request","safeName":"file_upload_request"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD_REQUEST","safeName":"FILE_UPLOAD_REQUEST"},"pascalCase":{"unsafeName":"FileUploadRequest","safeName":"FileUploadRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_file-upload":{"name":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}},"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}},"service":"service_file-upload","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_file-upload"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"file-upload"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_file-upload":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_file-upload.fileUpload","name":{"originalName":"fileUpload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/movies","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"fileUpload","name":{"originalName":"FileUploadRequest","camelCase":{"unsafeName":"fileUploadRequest","safeName":"fileUploadRequest"},"snakeCase":{"unsafeName":"file_upload_request","safeName":"file_upload_request"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD_REQUEST","safeName":"FILE_UPLOAD_REQUEST"},"pascalCase":{"unsafeName":"FileUploadRequest","safeName":"FileUploadRequest"}},"properties":[{"type":"bodyProperty","contentType":null,"name":{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"wireValue":"foo"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"type":"file","value":{"type":"file","key":{"name":{"originalName":"file","camelCase":{"unsafeName":"file","safeName":"file"},"snakeCase":{"unsafeName":"file","safeName":"file"},"screamingSnakeCase":{"unsafeName":"FILE","safeName":"FILE"},"pascalCase":{"unsafeName":"File","safeName":"File"}},"wireValue":"file"},"isOptional":false,"contentType":null}},{"type":"file","value":{"type":"file","key":{"name":{"originalName":"optionalFile","camelCase":{"unsafeName":"optionalFile","safeName":"optionalFile"},"snakeCase":{"unsafeName":"optional_file","safeName":"optional_file"},"screamingSnakeCase":{"unsafeName":"OPTIONAL_FILE","safeName":"OPTIONAL_FILE"},"pascalCase":{"unsafeName":"OptionalFile","safeName":"OptionalFile"}},"wireValue":"optionalFile"},"isOptional":true,"contentType":null}},{"type":"bodyProperty","contentType":null,"name":{"name":{"originalName":"bar","camelCase":{"unsafeName":"bar","safeName":"bar"},"snakeCase":{"unsafeName":"bar","safeName":"bar"},"screamingSnakeCase":{"unsafeName":"BAR","safeName":"BAR"},"pascalCase":{"unsafeName":"Bar","safeName":"Bar"}},"wireValue":"bar"},"valueType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"availability":null,"docs":null}],"docs":null},"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"FileUploadRequest","camelCase":{"unsafeName":"fileUploadRequest","safeName":"fileUploadRequest"},"snakeCase":{"unsafeName":"file_upload_request","safeName":"file_upload_request"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD_REQUEST","safeName":"FILE_UPLOAD_REQUEST"},"pascalCase":{"unsafeName":"FileUploadRequest","safeName":"FileUploadRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{"endpoint_file-upload.fileUpload":{"auth":null,"declaration":{"name":{"originalName":"fileUpload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}},"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}}},"location":{"method":"POST","path":"/movies"},"request":{"type":"inlined","declaration":{"name":{"originalName":"FileUploadRequest","camelCase":{"unsafeName":"fileUploadRequest","safeName":"fileUploadRequest"},"snakeCase":{"unsafeName":"file_upload_request","safeName":"file_upload_request"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD_REQUEST","safeName":"FILE_UPLOAD_REQUEST"},"pascalCase":{"unsafeName":"FileUploadRequest","safeName":"FileUploadRequest"}},"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}}},"pathParameters":[],"queryParameters":[],"headers":[],"body":{"type":"fileUpload","properties":[{"type":"bodyProperty","name":{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"wireValue":"foo"},"typeReference":{"_type":"primitive","value":"STRING"}},{"type":"file","name":{"originalName":"file","camelCase":{"unsafeName":"file","safeName":"file"},"snakeCase":{"unsafeName":"file","safeName":"file"},"screamingSnakeCase":{"unsafeName":"FILE","safeName":"FILE"},"pascalCase":{"unsafeName":"File","safeName":"File"}},"wireValue":"file"},{"type":"file","name":{"originalName":"optionalFile","camelCase":{"unsafeName":"optionalFile","safeName":"optionalFile"},"snakeCase":{"unsafeName":"optional_file","safeName":"optional_file"},"screamingSnakeCase":{"unsafeName":"OPTIONAL_FILE","safeName":"OPTIONAL_FILE"},"pascalCase":{"unsafeName":"OptionalFile","safeName":"OptionalFile"}},"wireValue":"optionalFile"},{"type":"bodyProperty","name":{"name":{"originalName":"bar","camelCase":{"unsafeName":"bar","safeName":"bar"},"snakeCase":{"unsafeName":"bar","safeName":"bar"},"screamingSnakeCase":{"unsafeName":"BAR","safeName":"BAR"},"pascalCase":{"unsafeName":"Bar","safeName":"Bar"}},"wireValue":"bar"},"typeReference":{"_type":"primitive","value":"INTEGER"}}]},"metadata":{"includePathParameters":false,"onlyPathParameters":false}},"response":{"type":"json"}}}},"subpackages":{"subpackage_file-upload":{"name":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}},"fernFilepath":{"allParts":[{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}],"packagePath":[],"file":{"originalName":"file-upload","camelCase":{"unsafeName":"fileUpload","safeName":"fileUpload"},"snakeCase":{"unsafeName":"file_upload","safeName":"file_upload"},"screamingSnakeCase":{"unsafeName":"FILE_UPLOAD","safeName":"FILE_UPLOAD"},"pascalCase":{"unsafeName":"FileUpload","safeName":"FileUpload"}}},"service":"service_file-upload","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_file-upload"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; exports[`ir > {"name":"migration","version":"v1"} 1`] = `"{"apiName":"my-api","auth":{"requirement":"ALL","schemes":[]},"headers":[{"name":{"originalValue":"apiVersion","camelCase":"apiVersion","pascalCase":"ApiVersion","snakeCase":"api_version","screamingSnakeCase":"API_VERSION","wireValue":"X-API-VERSION"},"nameV2":{"wireValue":"X-API-VERSION","name":{"safeName":{"originalValue":"apiVersion","camelCase":"apiVersion","pascalCase":"ApiVersion","snakeCase":"api_version","screamingSnakeCase":"API_VERSION"},"unsafeName":{"originalValue":"apiVersion","camelCase":"apiVersion","pascalCase":"ApiVersion","snakeCase":"api_version","screamingSnakeCase":"API_VERSION"}}},"valueType":{"container":{"optional":{"primitive":"STRING","_type":"primitive"},"_type":"optional"},"_type":"container"},"availability":{"status":"GENERAL_AVAILABILITY"}}],"types":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},"shape":{"extends":[],"properties":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"name","camelCase":"name","pascalCase":"Name","snakeCase":"name","screamingSnakeCase":"NAME","wireValue":"name"},"nameV2":{"wireValue":"name","name":{"safeName":{"originalValue":"name","camelCase":"name","pascalCase":"Name","snakeCase":"name","screamingSnakeCase":"NAME"},"unsafeName":{"originalValue":"name","camelCase":"name","pascalCase":"Name","snakeCase":"name","screamingSnakeCase":"NAME"}}},"valueType":{"primitive":"STRING","_type":"primitive"}},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE","wireValue":"age"},"nameV2":{"wireValue":"age","name":{"safeName":{"originalValue":"age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},"valueType":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}},"_type":"named"}}],"_type":"object"},"examples":[{"properties":[{"wireKey":"name","value":{"primitive":{"string":"George the Director","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}},{"wireKey":"age","value":{"typeName":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},"shape":{"value":{"primitive":{"integer":20,"type":"integer"},"type":"primitive"},"type":"alias"},"type":"named"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}}],"type":"object"}],"referencedTypes":[{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}}]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},"shape":{"aliasOf":{"primitive":"INTEGER","_type":"primitive"},"resolvedType":{"primitive":"INTEGER","_type":"primitive"},"_type":"alias"},"examples":[{"value":{"primitive":{"integer":20,"type":"integer"},"type":"primitive"},"type":"alias"}],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"LiteralString","nameV2":{"originalValue":"LiteralString","camelCase":"literalString","pascalCase":"LiteralString","snakeCase":"literal_string","screamingSnakeCase":"LITERAL_STRING"},"nameV3":{"safeName":{"originalValue":"LiteralString","camelCase":"literalString","pascalCase":"LiteralString","snakeCase":"literal_string","screamingSnakeCase":"LITERAL_STRING"},"unsafeName":{"originalValue":"LiteralString","camelCase":"literalString","pascalCase":"LiteralString","snakeCase":"literal_string","screamingSnakeCase":"LITERAL_STRING"}}},"shape":{"aliasOf":{"container":{"literal":{"string":"hello","type":"string"},"_type":"literal"},"_type":"container"},"resolvedType":{"container":{"literal":{"string":"hello","type":"string"},"_type":"literal"},"_type":"container"},"_type":"alias"},"examples":[],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CurrencyAmount","nameV2":{"originalValue":"CurrencyAmount","camelCase":"currencyAmount","pascalCase":"CurrencyAmount","snakeCase":"currency_amount","screamingSnakeCase":"CURRENCY_AMOUNT"},"nameV3":{"safeName":{"originalValue":"CurrencyAmount","camelCase":"currencyAmount","pascalCase":"CurrencyAmount","snakeCase":"currency_amount","screamingSnakeCase":"CURRENCY_AMOUNT"},"unsafeName":{"originalValue":"CurrencyAmount","camelCase":"currencyAmount","pascalCase":"CurrencyAmount","snakeCase":"currency_amount","screamingSnakeCase":"CURRENCY_AMOUNT"}}},"shape":{"aliasOf":{"primitive":"STRING","_type":"primitive"},"resolvedType":{"primitive":"STRING","_type":"primitive"},"_type":"alias"},"examples":[{"value":{"primitive":{"string":"$4.50","type":"string"},"type":"primitive"},"type":"alias"}],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}}},"shape":{"aliasOf":{"primitive":"STRING","_type":"primitive"},"resolvedType":{"primitive":"STRING","_type":"primitive"},"_type":"alias"},"examples":[{"value":{"primitive":{"string":"id1","type":"string"},"type":"primitive"},"type":"alias"},{"value":{"primitive":{"string":"id2","type":"string"},"type":"primitive"},"type":"alias"}],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"ActorId","nameV2":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"nameV3":{"safeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"unsafeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"}}},"shape":{"aliasOf":{"primitive":"STRING","_type":"primitive"},"resolvedType":{"primitive":"STRING","_type":"primitive"},"_type":"alias"},"examples":[],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}}},"shape":{"extends":[],"properties":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"id","camelCase":"id","pascalCase":"Id","snakeCase":"id","screamingSnakeCase":"ID","wireValue":"id"},"nameV2":{"wireValue":"id","name":{"safeName":{"originalValue":"id","camelCase":"id","pascalCase":"Id","snakeCase":"id","screamingSnakeCase":"ID"},"unsafeName":{"originalValue":"id","camelCase":"id","pascalCase":"Id","snakeCase":"id","screamingSnakeCase":"ID"}}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"_type":"named"}},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE","wireValue":"title"},"nameV2":{"wireValue":"title","name":{"safeName":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE"},"unsafeName":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE"}}},"valueType":{"primitive":"STRING","_type":"primitive"}},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"rating","camelCase":"rating","pascalCase":"Rating","snakeCase":"rating","screamingSnakeCase":"RATING","wireValue":"rating"},"nameV2":{"wireValue":"rating","name":{"safeName":{"originalValue":"rating","camelCase":"rating","pascalCase":"Rating","snakeCase":"rating","screamingSnakeCase":"RATING"},"unsafeName":{"originalValue":"rating","camelCase":"rating","pascalCase":"Rating","snakeCase":"rating","screamingSnakeCase":"RATING"}}},"valueType":{"primitive":"DOUBLE","_type":"primitive"}}],"_type":"object"},"examples":[{"properties":[{"wireKey":"id","value":{"typeName":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}}},"shape":{"value":{"primitive":{"string":"my-movie-id","type":"string"},"type":"primitive"},"type":"alias"},"type":"named"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}}}},{"wireKey":"title","value":{"primitive":{"string":"Goodwill Hunting","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}}}},{"wireKey":"rating","value":{"primitive":{"double":14.5,"type":"double"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}}}}],"type":"object"}],"referencedTypes":[{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}}}]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}},"shape":{"extends":[],"properties":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE","wireValue":"title"},"nameV2":{"wireValue":"title","name":{"safeName":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE"},"unsafeName":{"originalValue":"title","camelCase":"title","pascalCase":"Title","snakeCase":"title","screamingSnakeCase":"TITLE"}}},"valueType":{"primitive":"STRING","_type":"primitive"}},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"ratings","camelCase":"ratings","pascalCase":"Ratings","snakeCase":"ratings","screamingSnakeCase":"RATINGS","wireValue":"ratings"},"nameV2":{"wireValue":"ratings","name":{"safeName":{"originalValue":"ratings","camelCase":"ratings","pascalCase":"Ratings","snakeCase":"ratings","screamingSnakeCase":"RATINGS"},"unsafeName":{"originalValue":"ratings","camelCase":"ratings","pascalCase":"Ratings","snakeCase":"ratings","screamingSnakeCase":"RATINGS"}}},"valueType":{"container":{"list":{"primitive":"DOUBLE","_type":"primitive"},"_type":"list"},"_type":"container"}}],"_type":"object"},"examples":[{"properties":[{"wireKey":"title","value":{"primitive":{"string":"Winnie the Pooh","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"ratings","value":{"container":{"list":[{"primitive":{"double":1,"type":"double"},"type":"primitive"},{"primitive":{"double":2,"type":"double"},"type":"primitive"},{"primitive":{"double":3,"type":"double"},"type":"primitive"}],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}}],"type":"object"}],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"DirectorWrapper","nameV2":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"},"nameV3":{"safeName":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"},"unsafeName":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"}}},"shape":{"extends":[],"properties":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR","wireValue":"director"},"nameV2":{"wireValue":"director","name":{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},"valueType":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}},"_type":"named"}}],"_type":"object"},"examples":[{"properties":[{"wireKey":"director","value":{"typeName":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},"shape":{"properties":[{"wireKey":"name","value":{"primitive":{"string":"George the Director","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}},{"wireKey":"age","value":{"typeName":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},"shape":{"value":{"primitive":{"integer":20,"type":"integer"},"type":"primitive"},"type":"alias"},"type":"named"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}}],"type":"object"},"type":"named"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"DirectorWrapper","nameV2":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"},"nameV3":{"safeName":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"},"unsafeName":{"originalValue":"DirectorWrapper","camelCase":"directorWrapper","pascalCase":"DirectorWrapper","snakeCase":"director_wrapper","screamingSnakeCase":"DIRECTOR_WRAPPER"}}}}],"type":"object"}],"referencedTypes":[{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}}]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}}},"shape":{"extends":[],"properties":[],"_type":"object"},"examples":[],"referencedTypes":[]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Person","nameV2":{"originalValue":"Person","camelCase":"person","pascalCase":"Person","snakeCase":"person","screamingSnakeCase":"PERSON"},"nameV3":{"safeName":{"originalValue":"Person","camelCase":"person","pascalCase":"Person","snakeCase":"person","screamingSnakeCase":"PERSON"},"unsafeName":{"originalValue":"Person","camelCase":"person","pascalCase":"Person","snakeCase":"person","screamingSnakeCase":"PERSON"}}},"shape":{"discriminant":"type","discriminantV2":{"originalValue":"type","camelCase":"type","pascalCase":"Type","snakeCase":"type","screamingSnakeCase":"TYPE","wireValue":"type"},"discriminantV3":{"wireValue":"type","name":{"safeName":{"originalValue":"type","camelCase":"type","pascalCase":"Type","snakeCase":"type","screamingSnakeCase":"TYPE"},"unsafeName":{"originalValue":"type","camelCase":"type","pascalCase":"Type","snakeCase":"type","screamingSnakeCase":"TYPE"}}},"types":[{"discriminantValue":{"originalValue":"actor","camelCase":"actor","pascalCase":"Actor","snakeCase":"actor","screamingSnakeCase":"ACTOR","wireValue":"actor"},"discriminantValueV2":{"wireValue":"actor","name":{"safeName":{"originalValue":"actor","camelCase":"actor","pascalCase":"Actor","snakeCase":"actor","screamingSnakeCase":"ACTOR"},"unsafeName":{"originalValue":"actor","camelCase":"actor","pascalCase":"Actor","snakeCase":"actor","screamingSnakeCase":"ACTOR"}}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"ActorId","nameV2":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"nameV3":{"safeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"unsafeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"}},"_type":"named"},"shape":{"name":{"originalValue":"value","camelCase":"value","pascalCase":"Value","snakeCase":"value","screamingSnakeCase":"VALUE","wireValue":"value"},"nameV2":{"wireValue":"value","name":{"safeName":{"originalValue":"value","camelCase":"value","pascalCase":"Value","snakeCase":"value","screamingSnakeCase":"VALUE"},"unsafeName":{"originalValue":"value","camelCase":"value","pascalCase":"Value","snakeCase":"value","screamingSnakeCase":"VALUE"}}},"type":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"ActorId","nameV2":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"nameV3":{"safeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"unsafeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"}},"_type":"named"},"_type":"singleProperty"}},{"discriminantValue":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR","wireValue":"director"},"discriminantValueV2":{"wireValue":"director","name":{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},"valueType":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}},"_type":"named"},"shape":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}},"_type":"samePropertiesAsObject"}},{"discriminantValue":{"originalValue":"producer","camelCase":"producer","pascalCase":"Producer","snakeCase":"producer","screamingSnakeCase":"PRODUCER","wireValue":"producer"},"discriminantValueV2":{"wireValue":"producer","name":{"safeName":{"originalValue":"producer","camelCase":"producer","pascalCase":"Producer","snakeCase":"producer","screamingSnakeCase":"PRODUCER"},"unsafeName":{"originalValue":"producer","camelCase":"producer","pascalCase":"Producer","snakeCase":"producer","screamingSnakeCase":"PRODUCER"}}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}},"_type":"named"},"shape":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}},"_type":"samePropertiesAsObject"}},{"docs":"i am docs","discriminantValue":{"originalValue":"cinematographer","camelCase":"cinematographer","pascalCase":"Cinematographer","snakeCase":"cinematographer","screamingSnakeCase":"CINEMATOGRAPHER","wireValue":"cinematographer"},"discriminantValueV2":{"wireValue":"cinematographer","name":{"safeName":{"originalValue":"cinematographer","camelCase":"cinematographer","pascalCase":"Cinematographer","snakeCase":"cinematographer","screamingSnakeCase":"CINEMATOGRAPHER"},"unsafeName":{"originalValue":"cinematographer","camelCase":"cinematographer","pascalCase":"Cinematographer","snakeCase":"cinematographer","screamingSnakeCase":"CINEMATOGRAPHER"}}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}},"_type":"named"},"shape":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}},"_type":"samePropertiesAsObject"}}],"_type":"union"},"examples":[{"wireDiscriminantValue":"actor","properties":{"singleProperty":{"typeName":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"ActorId","nameV2":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"nameV3":{"safeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"unsafeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"}}},"shape":{"value":{"primitive":{"string":"Matt Damon","type":"string"},"type":"primitive"},"type":"alias"},"type":"named"},"type":"singleProperty"},"type":"union"},{"wireDiscriminantValue":"director","properties":{"typeName":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},"shape":{"properties":[{"wireKey":"name","value":{"primitive":{"string":"George the Directory","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}},{"wireKey":"age","value":{"typeName":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},"shape":{"value":{"primitive":{"integer":100,"type":"integer"},"type":"primitive"},"type":"alias"},"type":"named"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}}}],"type":"object"},"type":"samePropertiesAsObject"},"type":"union"},{"wireDiscriminantValue":"producer","properties":{"typeName":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}}},"shape":{"properties":[],"type":"object"},"type":"samePropertiesAsObject"},"type":"union"}],"referencedTypes":[{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"ActorId","nameV2":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"nameV3":{"safeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"},"unsafeName":{"originalValue":"ActorId","camelCase":"actorId","pascalCase":"ActorId","snakeCase":"actor_id","screamingSnakeCase":"ACTOR_ID"}}},{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Director","nameV2":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"nameV3":{"safeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"Director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}},{"fernFilepath":[{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}],"fernFilepathV2":[{"safeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"},"unsafeName":{"originalValue":"director","camelCase":"director","pascalCase":"Director","snakeCase":"director","screamingSnakeCase":"DIRECTOR"}}],"name":"Age","nameV2":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"nameV3":{"safeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"},"unsafeName":{"originalValue":"Age","camelCase":"age","pascalCase":"Age","snakeCase":"age","screamingSnakeCase":"AGE"}}},{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"EmptyObject","nameV2":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"nameV3":{"safeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"},"unsafeName":{"originalValue":"EmptyObject","camelCase":"emptyObject","pascalCase":"EmptyObject","snakeCase":"empty_object","screamingSnakeCase":"EMPTY_OBJECT"}}}]},{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}},"shape":{"extends":[{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}],"properties":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"selfReferencing","camelCase":"selfReferencing","pascalCase":"SelfReferencing","snakeCase":"self_referencing","screamingSnakeCase":"SELF_REFERENCING","wireValue":"selfReferencing"},"nameV2":{"wireValue":"selfReferencing","name":{"safeName":{"originalValue":"selfReferencing","camelCase":"selfReferencing","pascalCase":"SelfReferencing","snakeCase":"self_referencing","screamingSnakeCase":"SELF_REFERENCING"},"unsafeName":{"originalValue":"selfReferencing","camelCase":"selfReferencing","pascalCase":"SelfReferencing","snakeCase":"self_referencing","screamingSnakeCase":"SELF_REFERENCING"}}},"valueType":{"container":{"list":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}},"_type":"named"},"_type":"list"},"_type":"container"}}],"_type":"object"},"examples":[{"properties":[{"wireKey":"title","value":{"primitive":{"string":"The Godfather","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"ratings","value":{"container":{"list":[{"primitive":{"double":10,"type":"double"},"type":"primitive"},{"primitive":{"double":5,"type":"double"},"type":"primitive"},{"primitive":{"double":9,"type":"double"},"type":"primitive"}],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"selfReferencing","value":{"container":{"list":[{"typeName":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}},"shape":{"properties":[{"wireKey":"title","value":{"primitive":{"string":"The Godfather II","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"ratings","value":{"container":{"list":[{"primitive":{"double":10,"type":"double"},"type":"primitive"},{"primitive":{"double":11,"type":"double"},"type":"primitive"}],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"selfReferencing","value":{"container":{"list":[],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}}}],"type":"object"},"type":"named"},{"typeName":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}},"shape":{"properties":[{"wireKey":"title","value":{"primitive":{"string":"The Godfather III","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"ratings","value":{"container":{"list":[],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"selfReferencing","value":{"container":{"list":[],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}}}],"type":"object"},"type":"named"}],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}}}],"type":"object"},{"properties":[{"wireKey":"title","value":{"primitive":{"string":"Goodfellas","type":"string"},"type":"primitive"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"ratings","value":{"container":{"list":[{"primitive":{"double":1,"type":"double"},"type":"primitive"},{"primitive":{"double":2,"type":"double"},"type":"primitive"},{"primitive":{"double":3,"type":"double"},"type":"primitive"}],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}}},{"wireKey":"selfReferencing","value":{"container":{"list":[],"type":"list"},"type":"container"},"originalTypeDeclaration":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}}}],"type":"object"}],"referencedTypes":[{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}}},{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"RecursiveType","nameV2":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"nameV3":{"safeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"},"unsafeName":{"originalValue":"RecursiveType","camelCase":"recursiveType","pascalCase":"RecursiveType","snakeCase":"recursive_type","screamingSnakeCase":"RECURSIVE_TYPE"}}}]}],"services":{"websocket":[],"http":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"name":"ImdbService","fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}]},"basePath":"/movies","basePathV2":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"endpoints":[{"availability":{"status":"GENERAL_AVAILABILITY"},"id":"createMovie","name":{"originalValue":"createMovie","camelCase":"createMovie","pascalCase":"CreateMovie","snakeCase":"create_movie","screamingSnakeCase":"CREATE_MOVIE"},"nameV2":{"safeName":{"originalValue":"createMovie","camelCase":"createMovie","pascalCase":"CreateMovie","snakeCase":"create_movie","screamingSnakeCase":"CREATE_MOVIE"},"unsafeName":{"originalValue":"createMovie","camelCase":"createMovie","pascalCase":"CreateMovie","snakeCase":"create_movie","screamingSnakeCase":"CREATE_MOVIE"}},"method":"POST","headers":[],"path":{"head":"","parts":[]},"pathParameters":[],"queryParameters":[],"request":{"type":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}},"_type":"named"},"typeV2":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"CreateMovieRequest","nameV2":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"nameV3":{"safeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"},"unsafeName":{"originalValue":"CreateMovieRequest","camelCase":"createMovieRequest","pascalCase":"CreateMovieRequest","snakeCase":"create_movie_request","screamingSnakeCase":"CREATE_MOVIE_REQUEST"}},"_type":"named"}},"response":{"type":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"_type":"named"},"typeV2":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"_type":"named"}},"errors":[{"error":{"name":"BadRequestError","nameV2":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"nameV3":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}},"fernFilepath":[{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}],"fernFilepathV2":[{"safeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"},"unsafeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}}]}}],"errorsV2":{"discriminant":{"originalValue":"errorName","camelCase":"errorName","snakeCase":"error_name","pascalCase":"ErrorName","screamingSnakeCase":"ERROR_NAME","wireValue":"errorName"},"types":[{"discriminantValue":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR","wireValue":"BadRequestError"},"shape":{"type":"noProperties"}}]},"auth":false},{"availability":{"status":"GENERAL_AVAILABILITY"},"id":"getMovie","name":{"originalValue":"getMovie","camelCase":"getMovie","pascalCase":"GetMovie","snakeCase":"get_movie","screamingSnakeCase":"GET_MOVIE"},"nameV2":{"safeName":{"originalValue":"getMovie","camelCase":"getMovie","pascalCase":"GetMovie","snakeCase":"get_movie","screamingSnakeCase":"GET_MOVIE"},"unsafeName":{"originalValue":"getMovie","camelCase":"getMovie","pascalCase":"GetMovie","snakeCase":"get_movie","screamingSnakeCase":"GET_MOVIE"}},"method":"GET","headers":[],"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV2":{"safeName":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"_type":"named"}}],"queryParameters":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"movieName","camelCase":"movieName","pascalCase":"MovieName","snakeCase":"movie_name","screamingSnakeCase":"MOVIE_NAME","wireValue":"movieName"},"nameV2":{"wireValue":"movieName","name":{"safeName":{"originalValue":"movieName","camelCase":"movieName","pascalCase":"MovieName","snakeCase":"movie_name","screamingSnakeCase":"MOVIE_NAME"},"unsafeName":{"originalValue":"movieName","camelCase":"movieName","pascalCase":"MovieName","snakeCase":"movie_name","screamingSnakeCase":"MOVIE_NAME"}}},"valueType":{"primitive":"STRING","_type":"primitive"},"allowMultiple":true}],"request":{"type":{"_type":"void"}},"response":{"type":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}},"_type":"named"},"typeV2":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"Movie","nameV2":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"nameV3":{"safeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"},"unsafeName":{"originalValue":"Movie","camelCase":"movie","pascalCase":"Movie","snakeCase":"movie","screamingSnakeCase":"MOVIE"}},"_type":"named"}},"errors":[{"error":{"name":"NotFoundError","nameV2":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"nameV3":{"safeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"unsafeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"}},"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}]}},{"error":{"name":"BadRequestError","nameV2":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"nameV3":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}},"fernFilepath":[{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}],"fernFilepathV2":[{"safeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"},"unsafeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}}]}}],"errorsV2":{"discriminant":{"originalValue":"errorName","camelCase":"errorName","snakeCase":"error_name","pascalCase":"ErrorName","screamingSnakeCase":"ERROR_NAME","wireValue":"errorName"},"types":[{"discriminantValue":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR","wireValue":"NotFoundError"},"shape":{"name":{"originalValue":"content","camelCase":"content","snakeCase":"content","pascalCase":"Content","screamingSnakeCase":"CONTENT","wireValue":"content"},"error":{"name":"NotFoundError","nameV2":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"nameV3":{"safeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"unsafeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"}},"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}]},"type":"singleProperty"}},{"discriminantValue":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR","wireValue":"BadRequestError"},"shape":{"type":"noProperties"}}]},"auth":false},{"availability":{"status":"GENERAL_AVAILABILITY"},"id":"delete","name":{"originalValue":"delete","camelCase":"delete","pascalCase":"Delete","snakeCase":"delete","screamingSnakeCase":"DELETE"},"nameV2":{"safeName":{"originalValue":"delete","camelCase":"delete","pascalCase":"Delete","snakeCase":"delete","screamingSnakeCase":"DELETE"},"unsafeName":{"originalValue":"delete","camelCase":"delete","pascalCase":"Delete","snakeCase":"delete","screamingSnakeCase":"DELETE"}},"method":"DELETE","headers":[],"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"availability":{"status":"GENERAL_AVAILABILITY"},"name":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV2":{"safeName":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"movieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"valueType":{"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}],"name":"MovieId","nameV2":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"nameV3":{"safeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"},"unsafeName":{"originalValue":"MovieId","camelCase":"movieId","pascalCase":"MovieId","snakeCase":"movie_id","screamingSnakeCase":"MOVIE_ID"}},"_type":"named"}}],"queryParameters":[],"request":{"type":{"_type":"void"}},"response":{"type":{"_type":"void"}},"errors":[{"error":{"name":"BadRequestError","nameV2":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"nameV3":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}},"fernFilepath":[{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}],"fernFilepathV2":[{"safeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"},"unsafeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}}]}}],"errorsV2":{"discriminant":{"originalValue":"errorName","camelCase":"errorName","snakeCase":"error_name","pascalCase":"ErrorName","screamingSnakeCase":"ERROR_NAME","wireValue":"errorName"},"types":[{"discriminantValue":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR","wireValue":"BadRequestError"},"shape":{"type":"noProperties"}}]},"auth":false}]}]},"constants":{"errorDiscriminant":"_error","errorInstanceIdKey":"_errorInstanceId","unknownErrorDiscriminantValue":"_unknown"},"constantsV2":{"errors":{"errorInstanceIdKey":{"originalValue":"errorInstanceId","camelCase":"errorInstanceId","pascalCase":"ErrorInstanceId","snakeCase":"error_instance_id","screamingSnakeCase":"ERROR_INSTANCE_ID","wireValue":"errorInstanceId"},"errorDiscriminant":{"originalValue":"error","camelCase":"error","snakeCase":"error","pascalCase":"Error","screamingSnakeCase":"ERROR","wireValue":"error"},"errorContentKey":{"originalValue":"content","camelCase":"content","snakeCase":"content","pascalCase":"Content","screamingSnakeCase":"CONTENT","wireValue":"content"}},"errorsV2":{"errorInstanceIdKey":{"wireValue":"errorInstanceId","name":{"safeName":{"originalValue":"errorInstanceId","camelCase":"errorInstanceId","pascalCase":"ErrorInstanceId","snakeCase":"error_instance_id","screamingSnakeCase":"ERROR_INSTANCE_ID"},"unsafeName":{"originalValue":"errorInstanceId","camelCase":"errorInstanceId","pascalCase":"ErrorInstanceId","snakeCase":"error_instance_id","screamingSnakeCase":"ERROR_INSTANCE_ID"}}},"errorDiscriminant":{"name":{"unsafeName":{"originalValue":"error","camelCase":"error","snakeCase":"error","pascalCase":"Error","screamingSnakeCase":"ERROR"},"safeName":{"originalValue":"error","camelCase":"error","snakeCase":"error","pascalCase":"Error","screamingSnakeCase":"ERROR"}},"wireValue":"error"},"errorContentKey":{"name":{"unsafeName":{"originalValue":"content","camelCase":"content","snakeCase":"content","pascalCase":"Content","screamingSnakeCase":"CONTENT"},"safeName":{"originalValue":"content","camelCase":"content","snakeCase":"content","pascalCase":"Content","screamingSnakeCase":"CONTENT"}},"wireValue":"content"}}},"environments":[],"errorDiscriminant":{"safeName":{"originalValue":"error","camelCase":"error","pascalCase":"Error","snakeCase":"error","screamingSnakeCase":"ERROR"},"unsafeName":{"originalValue":"error","camelCase":"error","pascalCase":"Error","snakeCase":"error","screamingSnakeCase":"ERROR"}},"errorDiscriminationStrategy":{"discriminant":{"wireValue":"error","name":{"safeName":{"originalValue":"error","camelCase":"error","pascalCase":"Error","snakeCase":"error","screamingSnakeCase":"ERROR"},"unsafeName":{"originalValue":"error","camelCase":"error","pascalCase":"Error","snakeCase":"error","screamingSnakeCase":"ERROR"}}},"contentProperty":{"wireValue":"content","name":{"safeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"},"unsafeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"}}},"type":"property"},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version"}},"errors":[{"name":{"name":"BadRequestError","nameV2":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"nameV3":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}},"fernFilepath":[{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}],"fernFilepathV2":[{"safeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"},"unsafeName":{"originalValue":"commons","camelCase":"commons","pascalCase":"Commons","snakeCase":"commons","screamingSnakeCase":"COMMONS"}}]},"discriminantValue":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR","wireValue":"BadRequestError"},"discriminantValueV2":{"wireValue":"BadRequestError","name":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}}},"discriminantValueV3":{"wireValue":"content","name":{"safeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"},"unsafeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"}},"type":"property"},"discriminantValueV4":{"wireValue":"BadRequestError","name":{"safeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"},"unsafeName":{"originalValue":"BadRequestError","camelCase":"badRequestError","pascalCase":"BadRequestError","snakeCase":"bad_request_error","screamingSnakeCase":"BAD_REQUEST_ERROR"}}},"type":{"aliasOf":{"_type":"void"},"resolvedType":{"_type":"void"},"_type":"alias"},"http":{"statusCode":400},"statusCode":400},{"name":{"name":"NotFoundError","nameV2":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"nameV3":{"safeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"unsafeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"}},"fernFilepath":[{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}],"fernFilepathV2":[{"safeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"},"unsafeName":{"originalValue":"imdb","camelCase":"imdb","pascalCase":"Imdb","snakeCase":"imdb","screamingSnakeCase":"IMDB"}}]},"discriminantValue":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR","wireValue":"NotFoundError"},"discriminantValueV2":{"wireValue":"NotFoundError","name":{"safeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"unsafeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"}}},"discriminantValueV3":{"wireValue":"content","name":{"safeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"},"unsafeName":{"originalValue":"content","camelCase":"content","pascalCase":"Content","snakeCase":"content","screamingSnakeCase":"CONTENT"}},"type":"property"},"discriminantValueV4":{"wireValue":"NotFoundError","name":{"safeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"},"unsafeName":{"originalValue":"NotFoundError","camelCase":"notFoundError","pascalCase":"NotFoundError","snakeCase":"not_found_error","screamingSnakeCase":"NOT_FOUND_ERROR"}}},"type":{"aliasOf":{"primitive":"STRING","_type":"primitive"},"resolvedType":{"primitive":"STRING","_type":"primitive"},"_type":"alias"},"typeV2":{"aliasOf":{"primitive":"STRING","_type":"primitive"},"resolvedType":{"primitive":"STRING","_type":"primitive"},"_type":"alias"},"typeV3":{"primitive":"STRING","_type":"primitive"},"http":{"statusCode":404},"statusCode":404}]}"`; -exports[`ir > {"name":"multiple-environment-urls"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_endpoint-urls":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_endpoint-urls.test1","name":{"originalName":"test1","camelCase":{"unsafeName":"test1","safeName":"test1"},"snakeCase":{"unsafeName":"test_1","safeName":"test_1"},"screamingSnakeCase":{"unsafeName":"TEST_1","safeName":"TEST_1"},"pascalCase":{"unsafeName":"Test1","safeName":"Test1"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerA","method":"GET","basePath":null,"path":{"head":"/a","parts":[]},"fullPath":{"head":"/a","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"/a","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_endpoint-urls.test2","name":{"originalName":"test2","camelCase":{"unsafeName":"test2","safeName":"test2"},"snakeCase":{"unsafeName":"test_2","safeName":"test_2"},"screamingSnakeCase":{"unsafeName":"TEST_2","safeName":"TEST_2"},"pascalCase":{"unsafeName":"Test2","safeName":"Test2"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerB","method":"POST","basePath":null,"path":{"head":"/b","parts":[]},"fullPath":{"head":"/b","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"/b","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]},"service_service-url":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}],"packagePath":[],"file":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service-url.test","name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerA","method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":{"defaultEnvironment":"Production","environments":{"type":"multipleBaseUrls","baseUrls":[{"id":"ServerA","name":{"originalName":"ServerA","camelCase":{"unsafeName":"serverA","safeName":"serverA"},"snakeCase":{"unsafeName":"server_a","safeName":"server_a"},"screamingSnakeCase":{"unsafeName":"SERVER_A","safeName":"SERVER_A"},"pascalCase":{"unsafeName":"ServerA","safeName":"ServerA"}}},{"id":"ServerB","name":{"originalName":"ServerB","camelCase":{"unsafeName":"serverB","safeName":"serverB"},"snakeCase":{"unsafeName":"server_b","safeName":"server_b"},"screamingSnakeCase":{"unsafeName":"SERVER_B","safeName":"SERVER_B"},"pascalCase":{"unsafeName":"ServerB","safeName":"ServerB"}}}],"environments":[{"id":"Production","name":{"originalName":"Production","camelCase":{"unsafeName":"production","safeName":"production"},"snakeCase":{"unsafeName":"production","safeName":"production"},"screamingSnakeCase":{"unsafeName":"PRODUCTION","safeName":"PRODUCTION"},"pascalCase":{"unsafeName":"Production","safeName":"Production"}},"urls":{"ServerA":"a.prod.com","ServerB":"b.prod.com"},"docs":null},{"id":"Staging","name":{"originalName":"Staging","camelCase":{"unsafeName":"staging","safeName":"staging"},"snakeCase":{"unsafeName":"staging","safeName":"staging"},"screamingSnakeCase":{"unsafeName":"STAGING","safeName":"STAGING"},"pascalCase":{"unsafeName":"Staging","safeName":"Staging"}},"urls":{"ServerA":"a.staging.com","ServerB":"b.staging.com"},"docs":null}]}},"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_endpoint-urls":{"name":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}},"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}},"service":"service_endpoint-urls","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_service-url":{"name":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}},"fernFilepath":{"allParts":[{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}],"packagePath":[],"file":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}},"service":"service_service-url","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_endpoint-urls","subpackage_service-url"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"multiple-environment-urls"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_endpoint-urls":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_endpoint-urls.test1","name":{"originalName":"test1","camelCase":{"unsafeName":"test1","safeName":"test1"},"snakeCase":{"unsafeName":"test_1","safeName":"test_1"},"screamingSnakeCase":{"unsafeName":"TEST_1","safeName":"TEST_1"},"pascalCase":{"unsafeName":"Test1","safeName":"Test1"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerA","method":"GET","basePath":null,"path":{"head":"/a","parts":[]},"fullPath":{"head":"/a","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"/a","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_endpoint-urls.test2","name":{"originalName":"test2","camelCase":{"unsafeName":"test2","safeName":"test2"},"snakeCase":{"unsafeName":"test_2","safeName":"test_2"},"screamingSnakeCase":{"unsafeName":"TEST_2","safeName":"TEST_2"},"pascalCase":{"unsafeName":"Test2","safeName":"Test2"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerB","method":"POST","basePath":null,"path":{"head":"/b","parts":[]},"fullPath":{"head":"/b","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"/b","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]},"service_service-url":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}],"packagePath":[],"file":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service-url.test","name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":"ServerA","method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":{"defaultEnvironment":"Production","environments":{"type":"multipleBaseUrls","baseUrls":[{"id":"ServerA","name":{"originalName":"ServerA","camelCase":{"unsafeName":"serverA","safeName":"serverA"},"snakeCase":{"unsafeName":"server_a","safeName":"server_a"},"screamingSnakeCase":{"unsafeName":"SERVER_A","safeName":"SERVER_A"},"pascalCase":{"unsafeName":"ServerA","safeName":"ServerA"}}},{"id":"ServerB","name":{"originalName":"ServerB","camelCase":{"unsafeName":"serverB","safeName":"serverB"},"snakeCase":{"unsafeName":"server_b","safeName":"server_b"},"screamingSnakeCase":{"unsafeName":"SERVER_B","safeName":"SERVER_B"},"pascalCase":{"unsafeName":"ServerB","safeName":"ServerB"}}}],"environments":[{"id":"Production","name":{"originalName":"Production","camelCase":{"unsafeName":"production","safeName":"production"},"snakeCase":{"unsafeName":"production","safeName":"production"},"screamingSnakeCase":{"unsafeName":"PRODUCTION","safeName":"PRODUCTION"},"pascalCase":{"unsafeName":"Production","safeName":"Production"}},"urls":{"ServerA":"a.prod.com","ServerB":"b.prod.com"},"docs":null},{"id":"Staging","name":{"originalName":"Staging","camelCase":{"unsafeName":"staging","safeName":"staging"},"snakeCase":{"unsafeName":"staging","safeName":"staging"},"screamingSnakeCase":{"unsafeName":"STAGING","safeName":"STAGING"},"pascalCase":{"unsafeName":"Staging","safeName":"Staging"}},"urls":{"ServerA":"a.staging.com","ServerB":"b.staging.com"},"docs":null}]}},"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{"endpoint_endpoint-urls.test1":{"auth":null,"declaration":{"name":{"originalName":"test1","camelCase":{"unsafeName":"test1","safeName":"test1"},"snakeCase":{"unsafeName":"test_1","safeName":"test_1"},"screamingSnakeCase":{"unsafeName":"TEST_1","safeName":"TEST_1"},"pascalCase":{"unsafeName":"Test1","safeName":"Test1"}},"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}}},"location":{"method":"GET","path":"/a"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}},"endpoint_endpoint-urls.test2":{"auth":null,"declaration":{"name":{"originalName":"test2","camelCase":{"unsafeName":"test2","safeName":"test2"},"snakeCase":{"unsafeName":"test_2","safeName":"test_2"},"screamingSnakeCase":{"unsafeName":"TEST_2","safeName":"TEST_2"},"pascalCase":{"unsafeName":"Test2","safeName":"Test2"}},"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}}},"location":{"method":"POST","path":"/b"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}},"endpoint_service-url.test":{"auth":null,"declaration":{"name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"fernFilepath":{"allParts":[{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}],"packagePath":[],"file":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}}},"location":{"method":"GET","path":"/"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_endpoint-urls":{"name":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}},"fernFilepath":{"allParts":[{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}],"packagePath":[],"file":{"originalName":"endpoint-urls","camelCase":{"unsafeName":"endpointUrls","safeName":"endpointUrls"},"snakeCase":{"unsafeName":"endpoint_urls","safeName":"endpoint_urls"},"screamingSnakeCase":{"unsafeName":"ENDPOINT_URLS","safeName":"ENDPOINT_URLS"},"pascalCase":{"unsafeName":"EndpointUrls","safeName":"EndpointUrls"}}},"service":"service_endpoint-urls","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_service-url":{"name":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}},"fernFilepath":{"allParts":[{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}],"packagePath":[],"file":{"originalName":"service-url","camelCase":{"unsafeName":"serviceUrl","safeName":"serviceUrl"},"snakeCase":{"unsafeName":"service_url","safeName":"service_url"},"screamingSnakeCase":{"unsafeName":"SERVICE_URL","safeName":"SERVICE_URL"},"pascalCase":{"unsafeName":"ServiceUrl","safeName":"ServiceUrl"}}},"service":"service_service-url","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_endpoint-urls","subpackage_service-url"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"navigation-points-to"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_subpackage":{"name":{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":null},"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage/x"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_subpackage/x":{"name":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage"],"webhooks":null,"navigationConfig":{"pointsTo":"subpackage_subpackage"},"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"navigation-points-to"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{}},"subpackages":{"subpackage_subpackage":{"name":{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":null},"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage/x"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_subpackage/x":{"name":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}},"fernFilepath":{"allParts":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}},{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}],"packagePath":[{"originalName":"subpackage","camelCase":{"unsafeName":"subpackage","safeName":"subpackage"},"snakeCase":{"unsafeName":"subpackage","safeName":"subpackage"},"screamingSnakeCase":{"unsafeName":"SUBPACKAGE","safeName":"SUBPACKAGE"},"pascalCase":{"unsafeName":"Subpackage","safeName":"Subpackage"}}],"file":{"originalName":"x","camelCase":{"unsafeName":"x","safeName":"x"},"snakeCase":{"unsafeName":"x","safeName":"x"},"screamingSnakeCase":{"unsafeName":"X","safeName":"X"},"pascalCase":{"unsafeName":"X","safeName":"X"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_subpackage"],"webhooks":null,"navigationConfig":{"pointsTo":"subpackage_subpackage"},"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"nested-example-reference"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"basic","username":{"originalName":"clientId","camelCase":{"unsafeName":"clientId","safeName":"clientId"},"snakeCase":{"unsafeName":"client_id","safeName":"client_id"},"screamingSnakeCase":{"unsafeName":"CLIENT_ID","safeName":"CLIENT_ID"},"pascalCase":{"unsafeName":"ClientId","safeName":"ClientId"}},"usernameEnvVar":null,"password":{"originalName":"clientSecret","camelCase":{"unsafeName":"clientSecret","safeName":"clientSecret"},"snakeCase":{"unsafeName":"client_secret","safeName":"client_secret"},"screamingSnakeCase":{"unsafeName":"CLIENT_SECRET","safeName":"CLIENT_SECRET"},"pascalCase":{"unsafeName":"ClientSecret","safeName":"ClientSecret"}},"passwordEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_nested:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_nested:Product"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:Product":{"inline":false,"name":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"unknown"}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"}},"jsonExample":"hello","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_nested":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"displayName":null,"basePath":{"head":"/nested","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_nested.calculate","name":{"originalName":"calculate","camelCase":{"unsafeName":"calculate","safeName":"calculate"},"snakeCase":{"unsafeName":"calculate","safeName":"calculate"},"screamingSnakeCase":{"unsafeName":"CALCULATE","safeName":"CALCULATE"},"pascalCase":{"unsafeName":"Calculate","safeName":"Calculate"}},"displayName":null,"auth":true,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/nested","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[{"example":{"id":"5a6f08f1a5b7c467c617c891b9b6e1f85c3cdaa17c9bc1a56012234eeb809937","name":null,"url":"/nested","rootPathParameters":[],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"b"}}},"jsonExample":"b"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"d":{"e":"$11","f":"hello"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"valueType":{"_type":"unknown"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"originalTypeDeclaration":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}}}]}},"jsonExample":{"c":{"d":{"e":"$11","f":"hello"}}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"originalTypeDeclaration":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}}}]}},"jsonExample":{"a":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}}}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"e91f0ffaa82ef1376271047c051f6c2a66368ac4","url":"/nested","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"a"}}},"jsonExample":"a"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"originalTypeDeclaration":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}},"valueType":{"_type":"unknown"}}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"}},"jsonExample":{"c":{"key":"value"}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"a":{"c":{"key":"value"}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"a":{"c":{"key":"value"}}}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"}},"jsonExample":{"a":{"a":{"c":{"key":"value"}}}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_nested":["type_nested:Response","type_nested:Product"]},"sharedTypes":["type_nested:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_nested":{"name":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"service":"service_nested","types":["type_nested:Response","type_nested:Product","type_nested:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_nested"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"nested-example-reference"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"api","camelCase":{"unsafeName":"api","safeName":"api"},"snakeCase":{"unsafeName":"api","safeName":"api"},"screamingSnakeCase":{"unsafeName":"API","safeName":"API"},"pascalCase":{"unsafeName":"Api","safeName":"Api"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[{"_type":"basic","username":{"originalName":"clientId","camelCase":{"unsafeName":"clientId","safeName":"clientId"},"snakeCase":{"unsafeName":"client_id","safeName":"client_id"},"screamingSnakeCase":{"unsafeName":"CLIENT_ID","safeName":"CLIENT_ID"},"pascalCase":{"unsafeName":"ClientId","safeName":"ClientId"}},"usernameEnvVar":null,"password":{"originalName":"clientSecret","camelCase":{"unsafeName":"clientSecret","safeName":"clientSecret"},"snakeCase":{"unsafeName":"client_secret","safeName":"client_secret"},"screamingSnakeCase":{"unsafeName":"CLIENT_SECRET","safeName":"CLIENT_SECRET"},"pascalCase":{"unsafeName":"ClientSecret","safeName":"ClientSecret"}},"passwordEnvVar":null,"docs":null}],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_nested:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_nested:Product"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:Product":{"inline":false,"name":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"unknown"}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_nested:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example","camelCase":{"unsafeName":"example","safeName":"example"},"snakeCase":{"unsafeName":"example","safeName":"example"},"screamingSnakeCase":{"unsafeName":"EXAMPLE","safeName":"EXAMPLE"},"pascalCase":{"unsafeName":"Example","safeName":"Example"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"}},"jsonExample":"hello","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_nested":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"displayName":null,"basePath":{"head":"/nested","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_nested.calculate","name":{"originalName":"calculate","camelCase":{"unsafeName":"calculate","safeName":"calculate"},"snakeCase":{"unsafeName":"calculate","safeName":"calculate"},"screamingSnakeCase":{"unsafeName":"CALCULATE","safeName":"CALCULATE"},"pascalCase":{"unsafeName":"Calculate","safeName":"Calculate"}},"displayName":null,"auth":true,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/nested","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[{"example":{"id":"5a6f08f1a5b7c467c617c891b9b6e1f85c3cdaa17c9bc1a56012234eeb809937","name":null,"url":"/nested","rootPathParameters":[],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"b"}}},"jsonExample":"b"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"d":{"e":"$11","f":"hello"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"valueType":{"_type":"unknown"}}},"jsonExample":{"d":{"e":"$11","f":"hello"}}},"originalTypeDeclaration":{"typeId":"type_nested:Product","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}}}}]}},"jsonExample":{"c":{"d":{"e":"$11","f":"hello"}}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}},"originalTypeDeclaration":{"typeId":"type_nested:Response","fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}}}}]}},"jsonExample":{"a":{"b":{"c":{"d":{"e":"$11","f":"hello"}}}}}}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"e91f0ffaa82ef1376271047c051f6c2a66368ac4","url":"/nested","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"container","container":{"type":"map","map":[{"key":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"a"}}},"jsonExample":"a"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"originalTypeDeclaration":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"},"value":{"shape":{"type":"container","container":{"type":"optional","optional":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}},"valueType":{"_type":"unknown"}}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product"}},"jsonExample":{"c":{"key":"value"}}}}],"keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}},"jsonExample":{"a":{"c":{"key":"value"}}}},"valueType":{"_type":"container","container":{"_type":"map","keyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"valueType":{"_type":"named","name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Product","default":null,"inline":null}}}}},"jsonExample":{"a":{"c":{"key":"value"}}}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"typeId":"type_nested:Response"}},"jsonExample":{"a":{"a":{"c":{"key":"value"}}}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_nested":["type_nested:Response","type_nested:Product"]},"sharedTypes":["type_nested:StringAlias"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_nested:Response":{"type":"object","declaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"properties":[{"name":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"wireValue":"a"},"typeReference":{"_type":"optional","value":{"_type":"map","key":{"_type":"primitive","value":"STRING"},"value":{"_type":"named","value":"type_nested:Product"}}}}]},"type_nested:Product":{"type":"object","declaration":{"name":{"originalName":"Product","camelCase":{"unsafeName":"product","safeName":"product"},"snakeCase":{"unsafeName":"product","safeName":"product"},"screamingSnakeCase":{"unsafeName":"PRODUCT","safeName":"PRODUCT"},"pascalCase":{"unsafeName":"Product","safeName":"Product"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"properties":[{"name":{"name":{"originalName":"c","camelCase":{"unsafeName":"c","safeName":"c"},"snakeCase":{"unsafeName":"c","safeName":"c"},"screamingSnakeCase":{"unsafeName":"C","safeName":"C"},"pascalCase":{"unsafeName":"C","safeName":"C"}},"wireValue":"c"},"typeReference":{"_type":"optional","value":{"_type":"unknown"}}}]},"type_nested:StringAlias":{"type":"alias","declaration":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"typeReference":{"_type":"primitive","value":"STRING"}}},"headers":[],"endpoints":{"endpoint_nested.calculate":{"auth":{"type":"basic","username":{"originalName":"clientId","camelCase":{"unsafeName":"clientId","safeName":"clientId"},"snakeCase":{"unsafeName":"client_id","safeName":"client_id"},"screamingSnakeCase":{"unsafeName":"CLIENT_ID","safeName":"CLIENT_ID"},"pascalCase":{"unsafeName":"ClientId","safeName":"ClientId"}},"password":{"originalName":"clientSecret","camelCase":{"unsafeName":"clientSecret","safeName":"clientSecret"},"snakeCase":{"unsafeName":"client_secret","safeName":"client_secret"},"screamingSnakeCase":{"unsafeName":"CLIENT_SECRET","safeName":"CLIENT_SECRET"},"pascalCase":{"unsafeName":"ClientSecret","safeName":"ClientSecret"}}},"declaration":{"name":{"originalName":"calculate","camelCase":{"unsafeName":"calculate","safeName":"calculate"},"snakeCase":{"unsafeName":"calculate","safeName":"calculate"},"screamingSnakeCase":{"unsafeName":"CALCULATE","safeName":"CALCULATE"},"pascalCase":{"unsafeName":"Calculate","safeName":"Calculate"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}}},"location":{"method":"POST","path":"/nested"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_nested":{"name":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}},"fernFilepath":{"allParts":[{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}],"packagePath":[],"file":{"originalName":"nested","camelCase":{"unsafeName":"nested","safeName":"nested"},"snakeCase":{"unsafeName":"nested","safeName":"nested"},"screamingSnakeCase":{"unsafeName":"NESTED","safeName":"NESTED"},"pascalCase":{"unsafeName":"Nested","safeName":"Nested"}}},"service":"service_nested","types":["type_nested:Response","type_nested:Product","type_nested:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_nested"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":true,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"packages"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"packages","camelCase":{"unsafeName":"packages","safeName":"packages"},"snakeCase":{"unsafeName":"packages","safeName":"packages"},"screamingSnakeCase":{"unsafeName":"PACKAGES","safeName":"PACKAGES"},"pascalCase":{"unsafeName":"Packages","safeName":"Packages"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_:RootString":{"inline":false,"name":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package:PackageString":{"inline":false,"name":{"name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_importer:Foo":{"inline":false,"name":{"name":{"originalName":"Foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"typeId":"type_importer:Foo"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"wireValue":"root"},"valueType":{"_type":"named","name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"wireValue":"package"},"valueType":{"_type":"named","name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_:RootString","type_package:PackageString"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package/a:A":{"inline":false,"name":{"name":{"originalName":"A","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"typeId":"type_package/a:A"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_":{"availability":null,"name":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_.rootEndpoint","name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]},"service_package":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_:RootString","type_package:PackageString","type_importer:Foo","type_package/a:A"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_package":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"service":"service_package","types":["type_package:PackageString"],"errors":[],"subpackages":["subpackage_package/b","subpackage_package/a"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_importer":{"name":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"service":null,"types":["type_importer:Foo"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":"I'm an importer!"},"subpackage_package/a":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"service":null,"types":["type_package/a:A"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_package/b":{"name":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":"service_","types":["type_:RootString"],"errors":[],"subpackages":["subpackage_package","subpackage_importer"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"packages"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"packages","camelCase":{"unsafeName":"packages","safeName":"packages"},"snakeCase":{"unsafeName":"packages","safeName":"packages"},"screamingSnakeCase":{"unsafeName":"PACKAGES","safeName":"PACKAGES"},"pascalCase":{"unsafeName":"Packages","safeName":"Packages"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_:RootString":{"inline":false,"name":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package:PackageString":{"inline":false,"name":{"name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_importer:Foo":{"inline":false,"name":{"name":{"originalName":"Foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"typeId":"type_importer:Foo"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"wireValue":"root"},"valueType":{"_type":"named","name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"typeId":"type_:RootString","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"wireValue":"package"},"valueType":{"_type":"named","name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"typeId":"type_package:PackageString","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_:RootString","type_package:PackageString"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_package/a:A":{"inline":false,"name":{"name":{"originalName":"A","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"typeId":"type_package/a:A"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_":{"availability":null,"name":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_.rootEndpoint","name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"0151c4f21dcb59ded0264beca4e001f6c9a6203a","url":"","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]},"service_package":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null}},"displayName":null,"basePath":{"head":"/","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":["type_:RootString","type_package:PackageString","type_importer:Foo","type_package/a:A"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_:RootString":{"type":"alias","declaration":{"name":{"originalName":"RootString","camelCase":{"unsafeName":"rootString","safeName":"rootString"},"snakeCase":{"unsafeName":"root_string","safeName":"root_string"},"screamingSnakeCase":{"unsafeName":"ROOT_STRING","safeName":"ROOT_STRING"},"pascalCase":{"unsafeName":"RootString","safeName":"RootString"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_package:PackageString":{"type":"alias","declaration":{"name":{"originalName":"PackageString","camelCase":{"unsafeName":"packageString","safeName":"packageString"},"snakeCase":{"unsafeName":"package_string","safeName":"package_string"},"screamingSnakeCase":{"unsafeName":"PACKAGE_STRING","safeName":"PACKAGE_STRING"},"pascalCase":{"unsafeName":"PackageString","safeName":"PackageString"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_importer:Foo":{"type":"object","declaration":{"name":{"originalName":"Foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}}},"properties":[{"name":{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"wireValue":"root"},"typeReference":{"_type":"named","value":"type_:RootString"}},{"name":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"wireValue":"package"},"typeReference":{"_type":"named","value":"type_package:PackageString"}}]},"type_package/a:A":{"type":"alias","declaration":{"name":{"originalName":"A","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}}},"typeReference":{"_type":"primitive","value":"STRING"}}},"headers":[],"endpoints":{"endpoint_.rootEndpoint":{"auth":null,"declaration":{"name":{"originalName":"rootEndpoint","camelCase":{"unsafeName":"rootEndpoint","safeName":"rootEndpoint"},"snakeCase":{"unsafeName":"root_endpoint","safeName":"root_endpoint"},"screamingSnakeCase":{"unsafeName":"ROOT_ENDPOINT","safeName":"ROOT_ENDPOINT"},"pascalCase":{"unsafeName":"RootEndpoint","safeName":"RootEndpoint"}},"fernFilepath":{"allParts":[],"packagePath":[],"file":null}},"location":{"method":"GET","path":"/"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_package":{"name":{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":null},"service":"service_package","types":["type_package:PackageString"],"errors":[],"subpackages":["subpackage_package/b","subpackage_package/a"],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null},"subpackage_importer":{"name":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}},"fernFilepath":{"allParts":[{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}],"packagePath":[],"file":{"originalName":"importer","camelCase":{"unsafeName":"importer","safeName":"importer"},"snakeCase":{"unsafeName":"importer","safeName":"importer"},"screamingSnakeCase":{"unsafeName":"IMPORTER","safeName":"IMPORTER"},"pascalCase":{"unsafeName":"Importer","safeName":"Importer"}}},"service":null,"types":["type_importer:Foo"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":"I'm an importer!"},"subpackage_package/a":{"name":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"a","camelCase":{"unsafeName":"a","safeName":"a"},"snakeCase":{"unsafeName":"a","safeName":"a"},"screamingSnakeCase":{"unsafeName":"A","safeName":"A"},"pascalCase":{"unsafeName":"A","safeName":"A"}}},"service":null,"types":["type_package/a:A"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_package/b":{"name":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}},"fernFilepath":{"allParts":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}},{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}],"packagePath":[{"originalName":"package","camelCase":{"unsafeName":"package","safeName":"package"},"snakeCase":{"unsafeName":"package","safeName":"package"},"screamingSnakeCase":{"unsafeName":"PACKAGE","safeName":"PACKAGE"},"pascalCase":{"unsafeName":"Package","safeName":"Package"}}],"file":{"originalName":"b","camelCase":{"unsafeName":"b","safeName":"b"},"snakeCase":{"unsafeName":"b","safeName":"b"},"screamingSnakeCase":{"unsafeName":"B","safeName":"B"},"pascalCase":{"unsafeName":"B","safeName":"B"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":"service_","types":["type_:RootString"],"errors":[],"subpackages":["subpackage_package","subpackage_importer"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"response-property"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"response-property","camelCase":{"unsafeName":"responseProperty","safeName":"responseProperty"},"snakeCase":{"unsafeName":"response_property","safeName":"response_property"},"screamingSnakeCase":{"unsafeName":"RESPONSE_PROPERTY","safeName":"RESPONSE_PROPERTY"},"pascalCase":{"unsafeName":"ResponseProperty","safeName":"ResponseProperty"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_service:WithDocs":{"inline":false,"name":{"name":{"originalName":"WithDocs","camelCase":{"unsafeName":"withDocs","safeName":"withDocs"},"snakeCase":{"unsafeName":"with_docs","safeName":"with_docs"},"screamingSnakeCase":{"unsafeName":"WITH_DOCS","safeName":"WITH_DOCS"},"pascalCase":{"unsafeName":"WithDocs","safeName":"WithDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:WithDocs"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_service:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_service:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"shape":{"_type":"object","extends":[{"name":{"originalName":"WithDocs","camelCase":{"unsafeName":"withDocs","safeName":"withDocs"},"snakeCase":{"unsafeName":"with_docs","safeName":"with_docs"},"screamingSnakeCase":{"unsafeName":"WITH_DOCS","safeName":"WITH_DOCS"},"pascalCase":{"unsafeName":"WithDocs","safeName":"WithDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:WithDocs"}],"properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"valueType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}]},"referencedTypes":["type_service:WithDocs","type_service:Movie"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_service":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"displayName":null,"basePath":{"head":"","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/movie","parts":[]},"fullPath":{"head":"movie","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"nestedPropertyAsResponse","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response","default":null,"inline":null},"responseProperty":{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"valueType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie","default":null,"inline":null},"availability":null,"docs":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"51ecfe336a3cafcb2aee1fe0fb691ea2f698c246","url":"/movie","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":{"type":"reference","shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"}},"jsonExample":{"id":"id"}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"}},"jsonExample":{"data":{"id":"id"}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_service.getMovieDocs","name":{"originalName":"getMovieDocs","camelCase":{"unsafeName":"getMovieDocs","safeName":"getMovieDocs"},"snakeCase":{"unsafeName":"get_movie_docs","safeName":"get_movie_docs"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_DOCS","safeName":"GET_MOVIE_DOCS"},"pascalCase":{"unsafeName":"GetMovieDocs","safeName":"GetMovieDocs"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/movie","parts":[]},"fullPath":{"head":"movie","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"nestedPropertyAsResponse","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response","default":null,"inline":null},"responseProperty":{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"51ecfe336a3cafcb2aee1fe0fb691ea2f698c246","url":"/movie","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":{"type":"reference","shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"}},"jsonExample":{"id":"id"}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"}},"jsonExample":{"data":{"id":"id"}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_service":["type_service:WithDocs","type_service:Movie","type_service:Response"]},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_service":{"name":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"service":"service_service","types":["type_service:WithDocs","type_service:Movie","type_service:Response"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_service"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"response-property"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"response-property","camelCase":{"unsafeName":"responseProperty","safeName":"responseProperty"},"snakeCase":{"unsafeName":"response_property","safeName":"response_property"},"screamingSnakeCase":{"unsafeName":"RESPONSE_PROPERTY","safeName":"RESPONSE_PROPERTY"},"pascalCase":{"unsafeName":"ResponseProperty","safeName":"ResponseProperty"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_service:WithDocs":{"inline":false,"name":{"name":{"originalName":"WithDocs","camelCase":{"unsafeName":"withDocs","safeName":"withDocs"},"snakeCase":{"unsafeName":"with_docs","safeName":"with_docs"},"screamingSnakeCase":{"unsafeName":"WITH_DOCS","safeName":"WITH_DOCS"},"pascalCase":{"unsafeName":"WithDocs","safeName":"WithDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:WithDocs"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_service:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_service:Response":{"inline":false,"name":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"shape":{"_type":"object","extends":[{"name":{"originalName":"WithDocs","camelCase":{"unsafeName":"withDocs","safeName":"withDocs"},"snakeCase":{"unsafeName":"with_docs","safeName":"with_docs"},"screamingSnakeCase":{"unsafeName":"WITH_DOCS","safeName":"WITH_DOCS"},"pascalCase":{"unsafeName":"WithDocs","safeName":"WithDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:WithDocs"}],"properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"valueType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}]},"referencedTypes":["type_service:WithDocs","type_service:Movie"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_service":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"displayName":null,"basePath":{"head":"","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/movie","parts":[]},"fullPath":{"head":"movie","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"nestedPropertyAsResponse","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response","default":null,"inline":null},"responseProperty":{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"valueType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie","default":null,"inline":null},"availability":null,"docs":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"51ecfe336a3cafcb2aee1fe0fb691ea2f698c246","url":"/movie","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":{"type":"reference","shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"}},"jsonExample":{"id":"id"}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"}},"jsonExample":{"data":{"id":"id"}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_service.getMovieDocs","name":{"originalName":"getMovieDocs","camelCase":{"unsafeName":"getMovieDocs","safeName":"getMovieDocs"},"snakeCase":{"unsafeName":"get_movie_docs","safeName":"get_movie_docs"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_DOCS","safeName":"GET_MOVIE_DOCS"},"pascalCase":{"unsafeName":"GetMovieDocs","safeName":"GetMovieDocs"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/movie","parts":[]},"fullPath":{"head":"movie","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"nestedPropertyAsResponse","responseBodyType":{"_type":"named","name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response","default":null,"inline":null},"responseProperty":{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"51ecfe336a3cafcb2aee1fe0fb691ea2f698c246","url":"/movie","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[],"request":{"type":"reference","shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"originalTypeDeclaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"},"value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Movie"}},"jsonExample":{"id":"id"}}}]},"typeName":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"typeId":"type_service:Response"}},"jsonExample":{"data":{"id":"id"}}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_service":["type_service:WithDocs","type_service:Movie","type_service:Response"]},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_service:WithDocs":{"type":"object","declaration":{"name":{"originalName":"WithDocs","camelCase":{"unsafeName":"withDocs","safeName":"withDocs"},"snakeCase":{"unsafeName":"with_docs","safeName":"with_docs"},"screamingSnakeCase":{"unsafeName":"WITH_DOCS","safeName":"WITH_DOCS"},"pascalCase":{"unsafeName":"WithDocs","safeName":"WithDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"properties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_service:Movie":{"type":"object","declaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_service:Response":{"type":"object","declaration":{"name":{"originalName":"Response","camelCase":{"unsafeName":"response","safeName":"response"},"snakeCase":{"unsafeName":"response","safeName":"response"},"screamingSnakeCase":{"unsafeName":"RESPONSE","safeName":"RESPONSE"},"pascalCase":{"unsafeName":"Response","safeName":"Response"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"properties":[{"name":{"name":{"originalName":"docs","camelCase":{"unsafeName":"docs","safeName":"docs"},"snakeCase":{"unsafeName":"docs","safeName":"docs"},"screamingSnakeCase":{"unsafeName":"DOCS","safeName":"DOCS"},"pascalCase":{"unsafeName":"Docs","safeName":"Docs"}},"wireValue":"docs"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"data","camelCase":{"unsafeName":"data","safeName":"data"},"snakeCase":{"unsafeName":"data","safeName":"data"},"screamingSnakeCase":{"unsafeName":"DATA","safeName":"DATA"},"pascalCase":{"unsafeName":"Data","safeName":"Data"}},"wireValue":"data"},"typeReference":{"_type":"named","value":"type_service:Movie"}}]}},"headers":[],"endpoints":{"endpoint_service.getMovie":{"auth":null,"declaration":{"name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"location":{"method":"POST","path":"/movie"},"request":{"type":"body","pathParameters":[],"body":{"type":"typeReference","value":{"_type":"primitive","value":"STRING"}}},"response":{"type":"json"}},"endpoint_service.getMovieDocs":{"auth":null,"declaration":{"name":{"originalName":"getMovieDocs","camelCase":{"unsafeName":"getMovieDocs","safeName":"getMovieDocs"},"snakeCase":{"unsafeName":"get_movie_docs","safeName":"get_movie_docs"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_DOCS","safeName":"GET_MOVIE_DOCS"},"pascalCase":{"unsafeName":"GetMovieDocs","safeName":"GetMovieDocs"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"location":{"method":"POST","path":"/movie"},"request":{"type":"body","pathParameters":[],"body":{"type":"typeReference","value":{"_type":"primitive","value":"STRING"}}},"response":{"type":"json"}}}},"subpackages":{"subpackage_service":{"name":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"service":"service_service","types":["type_service:WithDocs","type_service:Movie","type_service:Response"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_service"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"simple","audiences":["internal"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Internal"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:UnknownRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:UnknownRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"simple","audiences":["internal"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Internal"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:UnknownRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_commons:Internal":{"type":"object","declaration":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_imdb:UnknownRequest":{"type":"object","declaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"typeReference":{"_type":"unknown"}}]}},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"typeReference":{"_type":"optional","value":{"_type":"primitive","value":"STRING"}}}],"endpoints":{"endpoint_imdb.internalEndpoint":{"auth":null,"declaration":{"name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}}],"body":{"type":"typeReference","value":{"_type":"named","value":"type_imdb:UnknownRequest"}}},"response":{"type":"json"}}}},"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:UnknownRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"simple","audiences":["test"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Type"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:CreateMovieRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Type"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:MovieId","type_imdb:CreateMovieRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"simple","audiences":["test"]} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"sharedTypes":["type_commons:Type"],"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:CreateMovieRequest"]}},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_commons:Type":{"type":"object","declaration":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_imdb:MovieId":{"type":"alias","declaration":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_imdb:CreateMovieRequest":{"type":"object","declaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"_type":"list","value":{"_type":"primitive","value":"DOUBLE"}}}]}},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"typeReference":{"_type":"optional","value":{"_type":"primitive","value":"STRING"}}}],"endpoints":{"endpoint_imdb.createMovie":{"auth":null,"declaration":{"name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}}],"body":{"type":"typeReference","value":{"_type":"named","value":"type_imdb:CreateMovieRequest"}}},"response":{"type":"json"}}}},"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Type"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:MovieId","type_imdb:CreateMovieRequest"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"simple"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:UndiscriminatedUnion":{"inline":false,"name":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:UndiscriminatedUnion"},"shape":{"_type":"undiscriminatedUnion","members":[{"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"docs":null},{"type":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}}}}},"docs":null}]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Director":{"inline":false,"name":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"valueType":{"_type":"named","name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"GeorgeExample","camelCase":{"unsafeName":"georgeExample","safeName":"georgeExample"},"snakeCase":{"unsafeName":"george_example","safeName":"george_example"},"screamingSnakeCase":{"unsafeName":"GEORGE_EXAMPLE","safeName":"GEORGE_EXAMPLE"},"pascalCase":{"unsafeName":"GeorgeExample","safeName":"GeorgeExample"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}}]},"jsonExample":{"name":"George the Director","age":20},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Age":{"inline":false,"name":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}},"jsonExample":20,"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralBoolean":{"inline":false,"name":{"name":{"originalName":"LiteralBoolean","camelCase":{"unsafeName":"literalBoolean","safeName":"literalBoolean"},"snakeCase":{"unsafeName":"literal_boolean","safeName":"literal_boolean"},"screamingSnakeCase":{"unsafeName":"LITERAL_BOOLEAN","safeName":"LITERAL_BOOLEAN"},"pascalCase":{"unsafeName":"LiteralBoolean","safeName":"LiteralBoolean"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralBoolean"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralString":{"inline":false,"name":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralString"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CurrencyAmount":{"inline":false,"name":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CurrencyAmount"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"$4.50"}}},"jsonExample":"$4.50"}},"jsonExample":"$4.50","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:ActorId":{"inline":false,"name":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"valueType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_imdb:MovieId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"my-movie-id"}}},"jsonExample":"my-movie-id"}}},"jsonExample":"my-movie-id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodwill Hunting"}}},"jsonExample":"Goodwill Hunting"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":14.5}},"jsonExample":14.5},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}}]},"jsonExample":{"id":"my-movie-id","title":"Goodwill Hunting","rating":14.5},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:DirectorWrapper":{"inline":false,"name":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"valueType":{"_type":"named","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Director","type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}},"jsonExample":{"name":"George the Director","age":20}},"originalTypeDeclaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"}}]},"jsonExample":{"director":{"name":"George the Director","age":20}},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:EmptyObject":{"inline":false,"name":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"shape":{"_type":"object","extends":[],"properties":[],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Person":{"inline":false,"name":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Person"},"shape":{"_type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"extends":[],"baseProperties":[],"types":[{"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"_type":"singleProperty","name":{"name":{"originalName":"value","camelCase":{"unsafeName":"value","safeName":"value"},"snakeCase":{"unsafeName":"value","safeName":"value"},"screamingSnakeCase":{"unsafeName":"VALUE","safeName":"VALUE"},"pascalCase":{"unsafeName":"Value","safeName":"Value"}},"wireValue":"value"},"type":{"_type":"named","name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId","default":null,"inline":null}},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":"i am docs"}]},"referencedTypes":["type_imdb:ActorId","type_director:Director","type_director:Age","type_imdb:EmptyObject"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"PersonExample1","camelCase":{"unsafeName":"personExample1","safeName":"personExample1"},"snakeCase":{"unsafeName":"person_example_1","safeName":"person_example_1"},"screamingSnakeCase":{"unsafeName":"PERSON_EXAMPLE_1","safeName":"PERSON_EXAMPLE_1"},"pascalCase":{"unsafeName":"PersonExample1","safeName":"PersonExample1"}},"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"type":"singleProperty","shape":{"type":"named","typeName":{"typeId":"type_imdb:ActorId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":{"type":"actor","value":"Matt Damon"},"docs":"this is a person example"},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"type":"samePropertiesAsObject","typeId":"type_director:Director","object":{"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Directory"}}},"jsonExample":"George the Directory"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":100}},"jsonExample":100}}},"jsonExample":100},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}}}},"jsonExample":{"type":"director","name":"George the Directory","age":100},"docs":null},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","object":{"properties":[]}}}},"jsonExample":{"type":"producer"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:RecursiveType":{"inline":false,"name":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"},"shape":{"_type":"object","extends":[{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}],"properties":[{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}]},"referencedTypes":["type_imdb:CreateMovieRequest","type_imdb:RecursiveType"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather"}}},"jsonExample":"The Godfather"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":5}},"jsonExample":5},{"shape":{"type":"primitive","primitive":{"type":"double","double":9}},"jsonExample":9}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,5,9]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather II"}}},"jsonExample":"The Godfather II"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":11}},"jsonExample":11}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,11]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]}},{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather III"}}},"jsonExample":"The Godfather III"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather III","ratings":[],"selfReferencing":[]}}],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"The Godfather","ratings":[10,5,9],"selfReferencing":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"docs":null},{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodfellas"}}},"jsonExample":"Goodfellas"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"Goodfellas","ratings":[1,2,3],"selfReferencing":[]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null},"error_imdb:NotFoundError":{"name":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"discriminantValue":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"wireValue":"NotFoundError"},"statusCode":404,"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":"Get Movie by Id","auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"allowMultiple":true,"availability":null,"docs":null}],"headers":[],"requestBody":null,"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"docs":null},{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"b631e6a0d36395e53918c8b8aa048cf1bfe8180757f41402426ec3c109737ddd","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}}]}},"jsonExample":{"id":"id-123","title":"Shrek","rating":10}}}},"docs":null},"codeSamples":null},{"example":{"id":"e0f04d26bcd1b030581f6d67cbd9d4be232fc0bc43bad08ffb1adb038ecbce8f","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"error","error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"body":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3285e2d8c07bd6f2c3100d3de09fb7039f7d4df8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"shape":{"type":"exploded"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieName"}}},"jsonExample":"movieName"}}],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"id"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},"jsonExample":{"id":"id","title":"title","rating":1.1}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.delete","name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"DELETE","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"b45fd34c7d591a65682197d8d7b5b726c7e5a1f8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:UnknownRequest"]},"sharedTypes":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion","type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString","type_imdb:CurrencyAmount","type_imdb:ActorId","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:RecursiveType"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_director":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"service":null,"types":["type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:CurrencyAmount","type_imdb:MovieId","type_imdb:ActorId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:UnknownRequest","type_imdb:RecursiveType"],"errors":["error_imdb:NotFoundError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_director","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"simple"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":"foo bar baz","auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"valueType":{"_type":"container","container":{"_type":"optional","optional":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"env":null,"availability":null,"docs":null}],"idempotencyHeaders":[],"types":{"type_commons:Internal":{"inline":false,"name":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Internal"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:Type":{"inline":false,"name":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:Type"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_commons:UndiscriminatedUnion":{"inline":false,"name":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:UndiscriminatedUnion"},"shape":{"_type":"undiscriminatedUnion","members":[{"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}}},"docs":null},{"type":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"docs":null},{"type":{"_type":"container","container":{"_type":"list","list":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}}}}},"docs":null}]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Director":{"inline":false,"name":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"valueType":{"_type":"named","name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"GeorgeExample","camelCase":{"unsafeName":"georgeExample","safeName":"georgeExample"},"snakeCase":{"unsafeName":"george_example","safeName":"george_example"},"screamingSnakeCase":{"unsafeName":"GEORGE_EXAMPLE","safeName":"GEORGE_EXAMPLE"},"pascalCase":{"unsafeName":"GeorgeExample","safeName":"GeorgeExample"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"}}]},"jsonExample":{"name":"George the Director","age":20},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:Age":{"inline":false,"name":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Age"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"INTEGER","v2":{"type":"integer","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}},"jsonExample":20,"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralBoolean":{"inline":false,"name":{"name":{"originalName":"LiteralBoolean","camelCase":{"unsafeName":"literalBoolean","safeName":"literalBoolean"},"snakeCase":{"unsafeName":"literal_boolean","safeName":"literal_boolean"},"screamingSnakeCase":{"unsafeName":"LITERAL_BOOLEAN","safeName":"LITERAL_BOOLEAN"},"pascalCase":{"unsafeName":"LiteralBoolean","safeName":"LiteralBoolean"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralBoolean"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"boolean","boolean":true}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_director:LiteralString":{"inline":false,"name":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:LiteralString"},"shape":{"_type":"alias","aliasOf":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}},"resolvedType":{"_type":"container","container":{"_type":"literal","literal":{"type":"string","string":"hello"}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CurrencyAmount":{"inline":false,"name":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CurrencyAmount"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"$4.50"}}},"jsonExample":"$4.50"}},"jsonExample":"$4.50","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:MovieId":{"inline":false,"name":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id1"}}},"jsonExample":"id1"}},"jsonExample":"id1","docs":null},{"name":null,"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id2"}}},"jsonExample":"id2"}},"jsonExample":"id2","docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:ActorId":{"inline":false,"name":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Movie":{"inline":false,"name":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"availability":null,"docs":null},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"valueType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_imdb:MovieId"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"my-movie-id"}}},"jsonExample":"my-movie-id"}}},"jsonExample":"my-movie-id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodwill Hunting"}}},"jsonExample":"Goodwill Hunting"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":14.5}},"jsonExample":14.5},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}}]},"jsonExample":{"id":"my-movie-id","title":"Goodwill Hunting","rating":14.5},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:CreateMovieRequest":{"inline":false,"name":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"Example1","camelCase":{"unsafeName":"example1","safeName":"example1"},"snakeCase":{"unsafeName":"example_1","safeName":"example_1"},"screamingSnakeCase":{"unsafeName":"EXAMPLE_1","safeName":"EXAMPLE_1"},"pascalCase":{"unsafeName":"Example1","safeName":"Example1"}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}}]},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:DirectorWrapper":{"inline":false,"name":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"valueType":{"_type":"named","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director","default":null,"inline":null},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":["type_director:Director","type_director:Age"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Director"}}},"jsonExample":"George the Director"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":20}},"jsonExample":20}}},"jsonExample":20},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}},"jsonExample":{"name":"George the Director","age":20}},"originalTypeDeclaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:DirectorWrapper"}}]},"jsonExample":{"director":{"name":"George the Director","age":20}},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:EmptyObject":{"inline":false,"name":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"shape":{"_type":"object","extends":[],"properties":[],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:Person":{"inline":false,"name":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Person"},"shape":{"_type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"extends":[],"baseProperties":[],"types":[{"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"_type":"singleProperty","name":{"name":{"originalName":"value","camelCase":{"unsafeName":"value","safeName":"value"},"snakeCase":{"unsafeName":"value","safeName":"value"},"screamingSnakeCase":{"unsafeName":"VALUE","safeName":"VALUE"},"pascalCase":{"unsafeName":"Value","safeName":"Value"}},"wireValue":"value"},"type":{"_type":"named","name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:ActorId","default":null,"inline":null}},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"typeId":"type_director:Director"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":null},{"discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"shape":{"_type":"samePropertiesAsObject","name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:EmptyObject"},"displayName":null,"availability":null,"docs":"i am docs"}]},"referencedTypes":["type_imdb:ActorId","type_director:Director","type_director:Age","type_imdb:EmptyObject"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":{"originalName":"PersonExample1","camelCase":{"unsafeName":"personExample1","safeName":"personExample1"},"snakeCase":{"unsafeName":"person_example_1","safeName":"person_example_1"},"screamingSnakeCase":{"unsafeName":"PERSON_EXAMPLE_1","safeName":"PERSON_EXAMPLE_1"},"pascalCase":{"unsafeName":"PersonExample1","safeName":"PersonExample1"}},"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"shape":{"type":"singleProperty","shape":{"type":"named","typeName":{"typeId":"type_imdb:ActorId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":"Matt Damon"}}},"jsonExample":{"type":"actor","value":"Matt Damon"},"docs":"this is a person example"},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"shape":{"type":"samePropertiesAsObject","typeId":"type_director:Director","object":{"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"George the Directory"}}},"jsonExample":"George the Directory"},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_director:Age","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"integer","integer":100}},"jsonExample":100}}},"jsonExample":100},"originalTypeDeclaration":{"typeId":"type_director:Director","fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}}]}}}},"jsonExample":{"type":"director","name":"George the Directory","age":100},"docs":null},{"name":null,"shape":{"type":"union","discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"singleUnionType":{"wireDiscriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"shape":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","object":{"properties":[]}}}},"jsonExample":{"type":"producer"},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:UnknownRequest":{"inline":false,"name":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"shape":{"_type":"object","extends":[],"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"valueType":{"_type":"unknown"},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[]},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null},"type_imdb:RecursiveType":{"inline":false,"name":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"},"shape":{"_type":"object","extends":[{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}],"properties":[{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"valueType":{"_type":"container","container":{"_type":"list","list":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"availability":null,"docs":null}]},"referencedTypes":["type_imdb:CreateMovieRequest","type_imdb:RecursiveType"],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather"}}},"jsonExample":"The Godfather"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":5}},"jsonExample":5},{"shape":{"type":"primitive","primitive":{"type":"double","double":9}},"jsonExample":9}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,5,9]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather II"}}},"jsonExample":"The Godfather II"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":11}},"jsonExample":11}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,11]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]}},{"shape":{"type":"named","typeName":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"The Godfather III"}}},"jsonExample":"The Godfather III"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"typeId":"type_imdb:RecursiveType","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}}}}]}},"jsonExample":{"title":"The Godfather III","ratings":[],"selfReferencing":[]}}],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"The Godfather","ratings":[10,5,9],"selfReferencing":[{"title":"The Godfather II","ratings":[10,11],"selfReferencing":[]},{"title":"The Godfather III","ratings":[],"selfReferencing":[]}]},"docs":null},{"name":null,"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Goodfellas"}}},"jsonExample":"Goodfellas"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"value":{"shape":{"type":"container","container":{"type":"list","list":[],"itemType":{"_type":"named","name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType","default":null,"inline":null}}},"jsonExample":[]},"originalTypeDeclaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:RecursiveType"}}]},"jsonExample":{"title":"Goodfellas","ratings":[1,2,3],"selfReferencing":[]},"docs":null}],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{"error_commons:BadRequestError":{"name":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"discriminantValue":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"wireValue":"BadRequestError"},"statusCode":400,"type":null,"examples":[],"docs":null},"error_imdb:NotFoundError":{"name":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"discriminantValue":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"wireValue":"NotFoundError"},"statusCode":404,"type":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"examples":[],"docs":null}},"services":{"service_imdb":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_imdb.internalEndpoint","name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"6ddea0588fd84ef0a9732ab58c4e1d50078da707","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"originalTypeDeclaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"},"value":{"shape":{"type":"unknown","unknown":{"key":"value"}},"jsonExample":{"key":"value"}}}]},"typeName":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:UnknownRequest"}},"jsonExample":{"unknown":{"key":"value"}}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.createMovie","name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"","parts":[]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies"}]},"pathParameters":[],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":{"type":"reference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null},"sdkRequest":{"shape":{"type":"justRequestBody","value":{"type":"typeReference","requestBodyType":{"_type":"named","name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest","default":null,"inline":null},"contentType":null,"docs":null}},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"0ec9625807680a71388bf490199238a7c22569a5bf7092901fcb77bdd393e496","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[10,10,10,10]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Shrek","ratings":[10,10,10,10]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null},{"example":{"id":"624277beb517e6d1281e37e2781b35851d2d5de808ab821d6bad4c0917b014a5","name":null,"url":"/test/root/movies","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[],"request":{"type":"reference","shape":{"type":"named","typeName":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Winnie the Pooh"}}},"jsonExample":"Winnie the Pooh"},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1}},"jsonExample":1},{"shape":{"type":"primitive","primitive":{"type":"double","double":2}},"jsonExample":2},{"shape":{"type":"primitive","primitive":{"type":"double","double":3}},"jsonExample":3}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1,2,3]},"originalTypeDeclaration":{"typeId":"type_imdb:CreateMovieRequest","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}}}}]}},"jsonExample":{"title":"Winnie the Pooh","ratings":[1,2,3]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"shrek-123"}}},"jsonExample":"shrek-123"}}},"jsonExample":"shrek-123"}}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3435f6402495ee7805cf225e15f28f07a6f16235","url":"/test/rootPathParam/movies","name":null,"endpointHeaders":[],"endpointPathParameters":[],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":{"type":"reference","shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"originalTypeDeclaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"},"value":{"shape":{"type":"container","container":{"type":"list","list":[{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1},{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}],"itemType":{"_type":"primitive","primitive":{"v1":"DOUBLE","v2":{"type":"double","default":null,"validation":null}}}}},"jsonExample":[1.1,1.1]}}]},"typeName":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:CreateMovieRequest"}},"jsonExample":{"title":"title","ratings":[1.1,1.1]}},"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"string"}}},"jsonExample":"string"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"string"}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.getMovie","name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"displayName":"Get Movie by Id","auth":false,"idempotent":false,"baseUrl":null,"method":"GET","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"allowMultiple":true,"availability":null,"docs":null}],"headers":[],"requestBody":null,"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"json","value":{"type":"response","responseBodyType":{"_type":"named","name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie","default":null,"inline":null},"docs":null}},"status-code":null},"errors":[{"error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"docs":null},{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[{"example":{"id":"b631e6a0d36395e53918c8b8aa048cf1bfe8180757f41402426ec3c109737ddd","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}},"shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"Shrek"}}},"jsonExample":"Shrek"},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":10}},"jsonExample":10},"originalTypeDeclaration":{"typeId":"type_imdb:Movie","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}}}}]}},"jsonExample":{"id":"id-123","title":"Shrek","rating":10}}}},"docs":null},"codeSamples":null},{"example":{"id":"e0f04d26bcd1b030581f6d67cbd9d4be232fc0bc43bad08ffb1adb038ecbce8f","name":null,"url":"/test/root/movies/id-123","rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}}],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","typeName":{"typeId":"type_imdb:MovieId","fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}}},"shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}}},"jsonExample":"id-123"}}],"servicePathParameters":[],"endpointHeaders":[],"serviceHeaders":[],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"hello"}}},"jsonExample":"hello"},"shape":{"type":"exploded"}}],"request":null,"response":{"type":"error","error":{"name":{"originalName":"NotFoundError","camelCase":{"unsafeName":"notFoundError","safeName":"notFoundError"},"snakeCase":{"unsafeName":"not_found_error","safeName":"not_found_error"},"screamingSnakeCase":{"unsafeName":"NOT_FOUND_ERROR","safeName":"NOT_FOUND_ERROR"},"pascalCase":{"unsafeName":"NotFoundError","safeName":"NotFoundError"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"errorId":"error_imdb:NotFoundError"},"body":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id-123"}}},"jsonExample":"id-123"}},"docs":null},"codeSamples":null}],"autogeneratedExamples":[{"example":{"id":"3285e2d8c07bd6f2c3100d3de09fb7039f7d4df8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"shape":{"type":"exploded"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieName"}}},"jsonExample":"movieName"}}],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":{"shape":{"type":"named","shape":{"type":"object","properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"id"}}},"jsonExample":"id"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"id"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"title"}}},"jsonExample":"title"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"originalTypeDeclaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"},"value":{"shape":{"type":"primitive","primitive":{"type":"double","double":1.1}},"jsonExample":1.1}}]},"typeName":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:Movie"}},"jsonExample":{"id":"id","title":"title","rating":1.1}}}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_imdb.delete","name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"DELETE","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"movieId","tail":""}]},"fullPath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":"/movies/"},{"pathParameter":"movieId","tail":""}]},"pathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"allPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null},{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"valueType":{"_type":"named","name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId","default":null,"inline":null},"location":"ENDPOINT","variable":null,"docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[{"error":{"name":{"originalName":"BadRequestError","camelCase":{"unsafeName":"badRequestError","safeName":"badRequestError"},"snakeCase":{"unsafeName":"bad_request_error","safeName":"bad_request_error"},"screamingSnakeCase":{"unsafeName":"BAD_REQUEST_ERROR","safeName":"BAD_REQUEST_ERROR"},"pascalCase":{"unsafeName":"BadRequestError","safeName":"BadRequestError"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"errorId":"error_commons:BadRequestError"},"docs":null}],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"b45fd34c7d591a65682197d8d7b5b726c7e5a1f8","url":"/test/rootPathParam/movies/movieId","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"movieId"}}},"jsonExample":"movieId"}},"typeName":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"typeId":"type_imdb:MovieId"}},"jsonExample":"movieId"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"rootPathParam"}}},"jsonExample":"rootPathParam"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"property","discriminant":{"name":{"originalName":"error","camelCase":{"unsafeName":"error","safeName":"error"},"snakeCase":{"unsafeName":"error","safeName":"error"},"screamingSnakeCase":{"unsafeName":"ERROR","safeName":"ERROR"},"pascalCase":{"unsafeName":"Error","safeName":"Error"}},"wireValue":"error"},"contentProperty":{"name":{"originalName":"content","camelCase":{"unsafeName":"content","safeName":"content"},"snakeCase":{"unsafeName":"content","safeName":"content"},"screamingSnakeCase":{"unsafeName":"CONTENT","safeName":"CONTENT"},"pascalCase":{"unsafeName":"Content","safeName":"Content"}},"wireValue":"content"}},"basePath":{"head":"/test/","parts":[{"pathParameter":"rootPathParam","tail":""}]},"pathParameters":[{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"location":"ROOT","variable":null,"docs":null}],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_imdb":["type_imdb:MovieId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:UnknownRequest"]},"sharedTypes":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion","type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString","type_imdb:CurrencyAmount","type_imdb:ActorId","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:RecursiveType"]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_commons:Internal":{"type":"object","declaration":{"name":{"originalName":"Internal","camelCase":{"unsafeName":"internal","safeName":"internal"},"snakeCase":{"unsafeName":"internal","safeName":"internal"},"screamingSnakeCase":{"unsafeName":"INTERNAL","safeName":"INTERNAL"},"pascalCase":{"unsafeName":"Internal","safeName":"Internal"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_commons:Type":{"type":"object","declaration":{"name":{"originalName":"Type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"_type":"primitive","value":"STRING"}}]},"type_commons:UndiscriminatedUnion":{"type":"undiscriminatedUnion","declaration":{"name":{"originalName":"UndiscriminatedUnion","camelCase":{"unsafeName":"undiscriminatedUnion","safeName":"undiscriminatedUnion"},"snakeCase":{"unsafeName":"undiscriminated_union","safeName":"undiscriminated_union"},"screamingSnakeCase":{"unsafeName":"UNDISCRIMINATED_UNION","safeName":"UNDISCRIMINATED_UNION"},"pascalCase":{"unsafeName":"UndiscriminatedUnion","safeName":"UndiscriminatedUnion"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"types":[{"_type":"primitive","value":"STRING"},{"_type":"list","value":{"_type":"primitive","value":"STRING"}},{"_type":"primitive","value":"INTEGER"},{"_type":"list","value":{"_type":"list","value":{"_type":"primitive","value":"INTEGER"}}}]},"type_director:Director":{"type":"object","declaration":{"name":{"originalName":"Director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"wireValue":"age"},"typeReference":{"_type":"named","value":"type_director:Age"}}]},"type_director:Age":{"type":"alias","declaration":{"name":{"originalName":"Age","camelCase":{"unsafeName":"age","safeName":"age"},"snakeCase":{"unsafeName":"age","safeName":"age"},"screamingSnakeCase":{"unsafeName":"AGE","safeName":"AGE"},"pascalCase":{"unsafeName":"Age","safeName":"Age"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"_type":"primitive","value":"INTEGER"}},"type_director:LiteralBoolean":{"type":"alias","declaration":{"name":{"originalName":"LiteralBoolean","camelCase":{"unsafeName":"literalBoolean","safeName":"literalBoolean"},"snakeCase":{"unsafeName":"literal_boolean","safeName":"literal_boolean"},"screamingSnakeCase":{"unsafeName":"LITERAL_BOOLEAN","safeName":"LITERAL_BOOLEAN"},"pascalCase":{"unsafeName":"LiteralBoolean","safeName":"LiteralBoolean"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"_type":"literal","value":{"type":"boolean","value":true}}},"type_director:LiteralString":{"type":"alias","declaration":{"name":{"originalName":"LiteralString","camelCase":{"unsafeName":"literalString","safeName":"literalString"},"snakeCase":{"unsafeName":"literal_string","safeName":"literal_string"},"screamingSnakeCase":{"unsafeName":"LITERAL_STRING","safeName":"LITERAL_STRING"},"pascalCase":{"unsafeName":"LiteralString","safeName":"LiteralString"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}}},"typeReference":{"_type":"literal","value":{"type":"string","value":"hello"}}},"type_imdb:CurrencyAmount":{"type":"alias","declaration":{"name":{"originalName":"CurrencyAmount","camelCase":{"unsafeName":"currencyAmount","safeName":"currencyAmount"},"snakeCase":{"unsafeName":"currency_amount","safeName":"currency_amount"},"screamingSnakeCase":{"unsafeName":"CURRENCY_AMOUNT","safeName":"CURRENCY_AMOUNT"},"pascalCase":{"unsafeName":"CurrencyAmount","safeName":"CurrencyAmount"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_imdb:MovieId":{"type":"alias","declaration":{"name":{"originalName":"MovieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_imdb:ActorId":{"type":"alias","declaration":{"name":{"originalName":"ActorId","camelCase":{"unsafeName":"actorId","safeName":"actorId"},"snakeCase":{"unsafeName":"actor_id","safeName":"actor_id"},"screamingSnakeCase":{"unsafeName":"ACTOR_ID","safeName":"ACTOR_ID"},"pascalCase":{"unsafeName":"ActorId","safeName":"ActorId"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"typeReference":{"_type":"primitive","value":"STRING"}},"type_imdb:Movie":{"type":"object","declaration":{"name":{"originalName":"Movie","camelCase":{"unsafeName":"movie","safeName":"movie"},"snakeCase":{"unsafeName":"movie","safeName":"movie"},"screamingSnakeCase":{"unsafeName":"MOVIE","safeName":"MOVIE"},"pascalCase":{"unsafeName":"Movie","safeName":"Movie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"id","camelCase":{"unsafeName":"id","safeName":"id"},"snakeCase":{"unsafeName":"id","safeName":"id"},"screamingSnakeCase":{"unsafeName":"ID","safeName":"ID"},"pascalCase":{"unsafeName":"Id","safeName":"Id"}},"wireValue":"id"},"typeReference":{"_type":"named","value":"type_imdb:MovieId"}},{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"rating","camelCase":{"unsafeName":"rating","safeName":"rating"},"snakeCase":{"unsafeName":"rating","safeName":"rating"},"screamingSnakeCase":{"unsafeName":"RATING","safeName":"RATING"},"pascalCase":{"unsafeName":"Rating","safeName":"Rating"}},"wireValue":"rating"},"typeReference":{"_type":"primitive","value":"DOUBLE"}}]},"type_imdb:CreateMovieRequest":{"type":"object","declaration":{"name":{"originalName":"CreateMovieRequest","camelCase":{"unsafeName":"createMovieRequest","safeName":"createMovieRequest"},"snakeCase":{"unsafeName":"create_movie_request","safeName":"create_movie_request"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE_REQUEST","safeName":"CREATE_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"CreateMovieRequest","safeName":"CreateMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"_type":"list","value":{"_type":"primitive","value":"DOUBLE"}}}]},"type_imdb:DirectorWrapper":{"type":"object","declaration":{"name":{"originalName":"DirectorWrapper","camelCase":{"unsafeName":"directorWrapper","safeName":"directorWrapper"},"snakeCase":{"unsafeName":"director_wrapper","safeName":"director_wrapper"},"screamingSnakeCase":{"unsafeName":"DIRECTOR_WRAPPER","safeName":"DIRECTOR_WRAPPER"},"pascalCase":{"unsafeName":"DirectorWrapper","safeName":"DirectorWrapper"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"typeReference":{"_type":"named","value":"type_director:Director"}}]},"type_imdb:EmptyObject":{"type":"object","declaration":{"name":{"originalName":"EmptyObject","camelCase":{"unsafeName":"emptyObject","safeName":"emptyObject"},"snakeCase":{"unsafeName":"empty_object","safeName":"empty_object"},"screamingSnakeCase":{"unsafeName":"EMPTY_OBJECT","safeName":"EMPTY_OBJECT"},"pascalCase":{"unsafeName":"EmptyObject","safeName":"EmptyObject"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[]},"type_imdb:Person":{"type":"discriminatedUnion","declaration":{"name":{"originalName":"Person","camelCase":{"unsafeName":"person","safeName":"person"},"snakeCase":{"unsafeName":"person","safeName":"person"},"screamingSnakeCase":{"unsafeName":"PERSON","safeName":"PERSON"},"pascalCase":{"unsafeName":"Person","safeName":"Person"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"discriminant":{"name":{"originalName":"type","camelCase":{"unsafeName":"type","safeName":"type"},"snakeCase":{"unsafeName":"type","safeName":"type"},"screamingSnakeCase":{"unsafeName":"TYPE","safeName":"TYPE"},"pascalCase":{"unsafeName":"Type","safeName":"Type"}},"wireValue":"type"},"types":{"actor":{"type":"singleProperty","typeReference":{"_type":"named","value":"type_imdb:ActorId"},"discriminantValue":{"name":{"originalName":"actor","camelCase":{"unsafeName":"actor","safeName":"actor"},"snakeCase":{"unsafeName":"actor","safeName":"actor"},"screamingSnakeCase":{"unsafeName":"ACTOR","safeName":"ACTOR"},"pascalCase":{"unsafeName":"Actor","safeName":"Actor"}},"wireValue":"actor"},"properties":null},"director":{"type":"samePropertiesAsObject","typeId":"type_director:Director","discriminantValue":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"wireValue":"director"},"properties":[]},"producer":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"producer","camelCase":{"unsafeName":"producer","safeName":"producer"},"snakeCase":{"unsafeName":"producer","safeName":"producer"},"screamingSnakeCase":{"unsafeName":"PRODUCER","safeName":"PRODUCER"},"pascalCase":{"unsafeName":"Producer","safeName":"Producer"}},"wireValue":"producer"},"properties":[]},"cinematographer":{"type":"samePropertiesAsObject","typeId":"type_imdb:EmptyObject","discriminantValue":{"name":{"originalName":"cinematographer","camelCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"snakeCase":{"unsafeName":"cinematographer","safeName":"cinematographer"},"screamingSnakeCase":{"unsafeName":"CINEMATOGRAPHER","safeName":"CINEMATOGRAPHER"},"pascalCase":{"unsafeName":"Cinematographer","safeName":"Cinematographer"}},"wireValue":"cinematographer"},"properties":[]}}},"type_imdb:UnknownRequest":{"type":"object","declaration":{"name":{"originalName":"UnknownRequest","camelCase":{"unsafeName":"unknownRequest","safeName":"unknownRequest"},"snakeCase":{"unsafeName":"unknown_request","safeName":"unknown_request"},"screamingSnakeCase":{"unsafeName":"UNKNOWN_REQUEST","safeName":"UNKNOWN_REQUEST"},"pascalCase":{"unsafeName":"UnknownRequest","safeName":"UnknownRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"unknown","camelCase":{"unsafeName":"unknown","safeName":"unknown"},"snakeCase":{"unsafeName":"unknown","safeName":"unknown"},"screamingSnakeCase":{"unsafeName":"UNKNOWN","safeName":"UNKNOWN"},"pascalCase":{"unsafeName":"Unknown","safeName":"Unknown"}},"wireValue":"unknown"},"typeReference":{"_type":"unknown"}}]},"type_imdb:RecursiveType":{"type":"object","declaration":{"name":{"originalName":"RecursiveType","camelCase":{"unsafeName":"recursiveType","safeName":"recursiveType"},"snakeCase":{"unsafeName":"recursive_type","safeName":"recursive_type"},"screamingSnakeCase":{"unsafeName":"RECURSIVE_TYPE","safeName":"RECURSIVE_TYPE"},"pascalCase":{"unsafeName":"RecursiveType","safeName":"RecursiveType"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"properties":[{"name":{"name":{"originalName":"title","camelCase":{"unsafeName":"title","safeName":"title"},"snakeCase":{"unsafeName":"title","safeName":"title"},"screamingSnakeCase":{"unsafeName":"TITLE","safeName":"TITLE"},"pascalCase":{"unsafeName":"Title","safeName":"Title"}},"wireValue":"title"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"ratings","camelCase":{"unsafeName":"ratings","safeName":"ratings"},"snakeCase":{"unsafeName":"ratings","safeName":"ratings"},"screamingSnakeCase":{"unsafeName":"RATINGS","safeName":"RATINGS"},"pascalCase":{"unsafeName":"Ratings","safeName":"Ratings"}},"wireValue":"ratings"},"typeReference":{"_type":"list","value":{"_type":"primitive","value":"DOUBLE"}}},{"name":{"name":{"originalName":"selfReferencing","camelCase":{"unsafeName":"selfReferencing","safeName":"selfReferencing"},"snakeCase":{"unsafeName":"self_referencing","safeName":"self_referencing"},"screamingSnakeCase":{"unsafeName":"SELF_REFERENCING","safeName":"SELF_REFERENCING"},"pascalCase":{"unsafeName":"SelfReferencing","safeName":"SelfReferencing"}},"wireValue":"selfReferencing"},"typeReference":{"_type":"list","value":{"_type":"named","value":"type_imdb:RecursiveType"}}}]}},"headers":[{"name":{"name":{"originalName":"apiVersion","camelCase":{"unsafeName":"apiVersion","safeName":"apiVersion"},"snakeCase":{"unsafeName":"api_version","safeName":"api_version"},"screamingSnakeCase":{"unsafeName":"API_VERSION","safeName":"API_VERSION"},"pascalCase":{"unsafeName":"ApiVersion","safeName":"ApiVersion"}},"wireValue":"X-API-VERSION"},"typeReference":{"_type":"optional","value":{"_type":"primitive","value":"STRING"}}}],"endpoints":{"endpoint_imdb.internalEndpoint":{"auth":null,"declaration":{"name":{"originalName":"internalEndpoint","camelCase":{"unsafeName":"internalEndpoint","safeName":"internalEndpoint"},"snakeCase":{"unsafeName":"internal_endpoint","safeName":"internal_endpoint"},"screamingSnakeCase":{"unsafeName":"INTERNAL_ENDPOINT","safeName":"INTERNAL_ENDPOINT"},"pascalCase":{"unsafeName":"InternalEndpoint","safeName":"InternalEndpoint"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}}],"body":{"type":"typeReference","value":{"_type":"named","value":"type_imdb:UnknownRequest"}}},"response":{"type":"json"}},"endpoint_imdb.createMovie":{"auth":null,"declaration":{"name":{"originalName":"createMovie","camelCase":{"unsafeName":"createMovie","safeName":"createMovie"},"snakeCase":{"unsafeName":"create_movie","safeName":"create_movie"},"screamingSnakeCase":{"unsafeName":"CREATE_MOVIE","safeName":"CREATE_MOVIE"},"pascalCase":{"unsafeName":"CreateMovie","safeName":"CreateMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"POST","path":"/test/{rootPathParam}/movies"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}}],"body":{"type":"typeReference","value":{"_type":"named","value":"type_imdb:CreateMovieRequest"}}},"response":{"type":"json"}},"endpoint_imdb.getMovie":{"auth":null,"declaration":{"name":{"originalName":"getMovie","camelCase":{"unsafeName":"getMovie","safeName":"getMovie"},"snakeCase":{"unsafeName":"get_movie","safeName":"get_movie"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE","safeName":"GET_MOVIE"},"pascalCase":{"unsafeName":"GetMovie","safeName":"GetMovie"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"GET","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"type":"inlined","declaration":{"name":{"originalName":"GetMovieRequest","camelCase":{"unsafeName":"getMovieRequest","safeName":"getMovieRequest"},"snakeCase":{"unsafeName":"get_movie_request","safeName":"get_movie_request"},"screamingSnakeCase":{"unsafeName":"GET_MOVIE_REQUEST","safeName":"GET_MOVIE_REQUEST"},"pascalCase":{"unsafeName":"GetMovieRequest","safeName":"GetMovieRequest"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"_type":"named","value":"type_imdb:MovieId"}}],"queryParameters":[{"name":{"name":{"originalName":"movieName","camelCase":{"unsafeName":"movieName","safeName":"movieName"},"snakeCase":{"unsafeName":"movie_name","safeName":"movie_name"},"screamingSnakeCase":{"unsafeName":"MOVIE_NAME","safeName":"MOVIE_NAME"},"pascalCase":{"unsafeName":"MovieName","safeName":"MovieName"}},"wireValue":"movieName"},"typeReference":{"_type":"list","value":{"_type":"primitive","value":"STRING"}}}],"headers":[],"body":null,"metadata":{"includePathParameters":false,"onlyPathParameters":false}},"response":{"type":"json"}},"endpoint_imdb.delete":{"auth":null,"declaration":{"name":{"originalName":"delete","camelCase":{"unsafeName":"delete","safeName":"delete"},"snakeCase":{"unsafeName":"delete","safeName":"delete"},"screamingSnakeCase":{"unsafeName":"DELETE","safeName":"DELETE"},"pascalCase":{"unsafeName":"Delete","safeName":"Delete"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}}},"location":{"method":"DELETE","path":"/test/{rootPathParam}/movies/{movieId}"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"rootPathParam","camelCase":{"unsafeName":"rootPathParam","safeName":"rootPathParam"},"snakeCase":{"unsafeName":"root_path_param","safeName":"root_path_param"},"screamingSnakeCase":{"unsafeName":"ROOT_PATH_PARAM","safeName":"ROOT_PATH_PARAM"},"pascalCase":{"unsafeName":"RootPathParam","safeName":"RootPathParam"}},"wireValue":"rootPathParam"},"typeReference":{"_type":"primitive","value":"STRING"}},{"name":{"name":{"originalName":"movieId","camelCase":{"unsafeName":"movieId","safeName":"movieId"},"snakeCase":{"unsafeName":"movie_id","safeName":"movie_id"},"screamingSnakeCase":{"unsafeName":"MOVIE_ID","safeName":"MOVIE_ID"},"pascalCase":{"unsafeName":"MovieId","safeName":"MovieId"}},"wireValue":"movieId"},"typeReference":{"_type":"named","value":"type_imdb:MovieId"}}],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:Internal","type_commons:Type","type_commons:UndiscriminatedUnion"],"errors":["error_commons:BadRequestError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_director":{"name":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}},"fernFilepath":{"allParts":[{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}],"packagePath":[],"file":{"originalName":"director","camelCase":{"unsafeName":"director","safeName":"director"},"snakeCase":{"unsafeName":"director","safeName":"director"},"screamingSnakeCase":{"unsafeName":"DIRECTOR","safeName":"DIRECTOR"},"pascalCase":{"unsafeName":"Director","safeName":"Director"}}},"service":null,"types":["type_director:Director","type_director:Age","type_director:LiteralBoolean","type_director:LiteralString"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_imdb":{"name":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}},"fernFilepath":{"allParts":[{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}],"packagePath":[],"file":{"originalName":"imdb","camelCase":{"unsafeName":"imdb","safeName":"imdb"},"snakeCase":{"unsafeName":"imdb","safeName":"imdb"},"screamingSnakeCase":{"unsafeName":"IMDB","safeName":"IMDB"},"pascalCase":{"unsafeName":"Imdb","safeName":"Imdb"}}},"service":"service_imdb","types":["type_imdb:CurrencyAmount","type_imdb:MovieId","type_imdb:ActorId","type_imdb:Movie","type_imdb:CreateMovieRequest","type_imdb:DirectorWrapper","type_imdb:EmptyObject","type_imdb:Person","type_imdb:UnknownRequest","type_imdb:RecursiveType"],"errors":["error_imdb:NotFoundError"],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_director","subpackage_imdb"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"streaming"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_streaming":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_streaming.streaming","name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/streaming","parts":[]},"fullPath":{"head":"/movies/streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":null,"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_streaming.maybeStreaming","name":{"originalName":"maybeStreaming","camelCase":{"unsafeName":"maybeStreaming","safeName":"maybeStreaming"},"snakeCase":{"unsafeName":"maybe_streaming","safeName":"maybe_streaming"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING","safeName":"MAYBE_STREAMING"},"pascalCase":{"unsafeName":"MaybeStreaming","safeName":"MaybeStreaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/maybe-streaming","parts":[]},"fullPath":{"head":"/movies/maybe-streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"inlinedRequestBody","name":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"extends":[],"contentType":null,"properties":[{"name":{"name":{"originalName":"stream","camelCase":{"unsafeName":"stream","safeName":"stream"},"snakeCase":{"unsafeName":"stream","safeName":"stream"},"screamingSnakeCase":{"unsafeName":"STREAM","safeName":"STREAM"},"pascalCase":{"unsafeName":"Stream","safeName":"Stream"}},"wireValue":"stream"},"valueType":{"_type":"primitive","primitive":{"v1":"BOOLEAN","v2":null}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[],"docs":null},"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":"[DONE]","docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_streaming":{"name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}},"service":"service_streaming","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_streaming"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":true,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"streaming"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{"service_streaming":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_streaming.streaming","name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/streaming","parts":[]},"fullPath":{"head":"/movies/streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":null,"docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null},{"id":"endpoint_streaming.maybeStreaming","name":{"originalName":"maybeStreaming","camelCase":{"unsafeName":"maybeStreaming","safeName":"maybeStreaming"},"snakeCase":{"unsafeName":"maybe_streaming","safeName":"maybe_streaming"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING","safeName":"MAYBE_STREAMING"},"pascalCase":{"unsafeName":"MaybeStreaming","safeName":"MaybeStreaming"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/maybe-streaming","parts":[]},"fullPath":{"head":"/movies/maybe-streaming","parts":[]},"pathParameters":[],"allPathParameters":[],"queryParameters":[],"headers":[],"requestBody":{"type":"inlinedRequestBody","name":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"extends":[],"contentType":null,"properties":[{"name":{"name":{"originalName":"stream","camelCase":{"unsafeName":"stream","safeName":"stream"},"snakeCase":{"unsafeName":"stream","safeName":"stream"},"screamingSnakeCase":{"unsafeName":"STREAM","safeName":"STREAM"},"pascalCase":{"unsafeName":"Stream","safeName":"Stream"}},"wireValue":"stream"},"valueType":{"_type":"primitive","primitive":{"v1":"BOOLEAN","v2":null}},"availability":null,"docs":null}],"extra-properties":false,"extendedProperties":[],"docs":null},"sdkRequest":{"shape":{"type":"wrapper","wrapperName":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"bodyKey":{"originalName":"body","camelCase":{"unsafeName":"body","safeName":"body"},"snakeCase":{"unsafeName":"body","safeName":"body"},"screamingSnakeCase":{"unsafeName":"BODY","safeName":"BODY"},"pascalCase":{"unsafeName":"Body","safeName":"Body"}},"includePathParameters":false,"onlyPathParameters":false},"requestParameterName":{"originalName":"request","camelCase":{"unsafeName":"request","safeName":"request"},"snakeCase":{"unsafeName":"request","safeName":"request"},"screamingSnakeCase":{"unsafeName":"REQUEST","safeName":"REQUEST"},"pascalCase":{"unsafeName":"Request","safeName":"Request"}},"streamParameter":null},"response":{"body":{"type":"streaming","value":{"type":"json","payload":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"terminator":"[DONE]","docs":null}},"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{"endpoint_streaming.streaming":{"auth":null,"declaration":{"name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"location":{"method":"POST","path":"/movies/streaming"},"request":{"type":"body","pathParameters":[],"body":null},"response":{"type":"json"}},"endpoint_streaming.maybeStreaming":{"auth":null,"declaration":{"name":{"originalName":"maybeStreaming","camelCase":{"unsafeName":"maybeStreaming","safeName":"maybeStreaming"},"snakeCase":{"unsafeName":"maybe_streaming","safeName":"maybe_streaming"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING","safeName":"MAYBE_STREAMING"},"pascalCase":{"unsafeName":"MaybeStreaming","safeName":"MaybeStreaming"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"location":{"method":"POST","path":"/movies/maybe-streaming"},"request":{"type":"inlined","declaration":{"name":{"originalName":"maybeStreamingRequest","camelCase":{"unsafeName":"maybeStreamingRequest","safeName":"maybeStreamingRequest"},"snakeCase":{"unsafeName":"maybe_streaming_request","safeName":"maybe_streaming_request"},"screamingSnakeCase":{"unsafeName":"MAYBE_STREAMING_REQUEST","safeName":"MAYBE_STREAMING_REQUEST"},"pascalCase":{"unsafeName":"MaybeStreamingRequest","safeName":"MaybeStreamingRequest"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}}},"pathParameters":[],"queryParameters":[],"headers":[],"body":{"type":"properties","value":[{"name":{"name":{"originalName":"stream","camelCase":{"unsafeName":"stream","safeName":"stream"},"snakeCase":{"unsafeName":"stream","safeName":"stream"},"screamingSnakeCase":{"unsafeName":"STREAM","safeName":"STREAM"},"pascalCase":{"unsafeName":"Stream","safeName":"Stream"}},"wireValue":"stream"},"typeReference":{"_type":"primitive","value":"BOOLEAN"}}]},"metadata":{"includePathParameters":false,"onlyPathParameters":false}},"response":{"type":"json"}}}},"subpackages":{"subpackage_streaming":{"name":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}},"fernFilepath":{"allParts":[{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}],"packagePath":[],"file":{"originalName":"streaming","camelCase":{"unsafeName":"streaming","safeName":"streaming"},"snakeCase":{"unsafeName":"streaming","safeName":"streaming"},"screamingSnakeCase":{"unsafeName":"STREAMING","safeName":"STREAMING"},"pascalCase":{"unsafeName":"Streaming","safeName":"Streaming"}}},"service":"service_streaming","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_streaming"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":true,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"variables"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_commons:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_service":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service.test","name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"foo","tail":""}]},"fullPath":{"head":"/","parts":[{"pathParameter":"root","tail":"/movies/"},{"pathParameter":"foo","tail":""}]},"pathParameters":[{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ENDPOINT","variable":"my-variable","docs":null}],"allPathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ROOT","variable":"my-variable","docs":null},{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ENDPOINT","variable":"my-variable","docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"568b0fbafed694545ab88d89d14b21c8c748220a","url":"/root/movies/foo","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"foo"}}},"jsonExample":"foo"}},"typeName":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"}},"jsonExample":"foo"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}},"typeName":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"}},"jsonExample":"root"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":{"head":"/","parts":[{"pathParameter":"root","tail":""}]},"pathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ROOT","variable":"my-variable","docs":null}],"variables":[{"id":"my-variable","name":{"originalName":"my-variable","camelCase":{"unsafeName":"myVariable","safeName":"myVariable"},"snakeCase":{"unsafeName":"my_variable","safeName":"my_variable"},"screamingSnakeCase":{"unsafeName":"MY_VARIABLE","safeName":"MY_VARIABLE"},"pascalCase":{"unsafeName":"MyVariable","safeName":"MyVariable"}},"type":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"docs":"I am a variable"}],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_service":["type_commons:StringAlias"]},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_service":{"name":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"service":"service_service","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_service"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"variables"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{"type_commons:StringAlias":{"inline":false,"name":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"},"shape":{"_type":"alias","aliasOf":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"resolvedType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}}},"referencedTypes":[],"encoding":{"json":{},"proto":null},"source":null,"userProvidedExamples":[],"autogeneratedExamples":[],"availability":null,"docs":null}},"errors":{},"services":{"service_service":{"availability":null,"name":{"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"displayName":null,"basePath":{"head":"/movies","parts":[]},"headers":[],"pathParameters":[],"encoding":{"json":{},"proto":null},"transport":{"type":"http"},"endpoints":[{"id":"endpoint_service.test","name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"displayName":null,"auth":false,"idempotent":false,"baseUrl":null,"method":"POST","basePath":null,"path":{"head":"/","parts":[{"pathParameter":"foo","tail":""}]},"fullPath":{"head":"/","parts":[{"pathParameter":"root","tail":"/movies/"},{"pathParameter":"foo","tail":""}]},"pathParameters":[{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ENDPOINT","variable":"my-variable","docs":null}],"allPathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ROOT","variable":"my-variable","docs":null},{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ENDPOINT","variable":"my-variable","docs":null}],"queryParameters":[],"headers":[],"requestBody":null,"sdkRequest":null,"response":{"body":null,"status-code":null},"errors":[],"userSpecifiedExamples":[],"autogeneratedExamples":[{"example":{"id":"568b0fbafed694545ab88d89d14b21c8c748220a","url":"/root/movies/foo","name":null,"endpointHeaders":[],"endpointPathParameters":[{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"foo"}}},"jsonExample":"foo"}},"typeName":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"}},"jsonExample":"foo"}}],"queryParameters":[],"servicePathParameters":[],"serviceHeaders":[],"rootPathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"value":{"shape":{"type":"named","shape":{"type":"alias","value":{"shape":{"type":"primitive","primitive":{"type":"string","string":{"original":"root"}}},"jsonExample":"root"}},"typeName":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias"}},"jsonExample":"root"}}],"request":null,"response":{"type":"ok","value":{"type":"body","value":null}},"docs":null}}],"pagination":null,"transport":null,"availability":null,"docs":null}]}},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":{"head":"/","parts":[{"pathParameter":"root","tail":""}]},"pathParameters":[{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"valueType":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"location":"ROOT","variable":"my-variable","docs":null}],"variables":[{"id":"my-variable","name":{"originalName":"my-variable","camelCase":{"unsafeName":"myVariable","safeName":"myVariable"},"snakeCase":{"unsafeName":"my_variable","safeName":"my_variable"},"screamingSnakeCase":{"unsafeName":"MY_VARIABLE","safeName":"MY_VARIABLE"},"pascalCase":{"unsafeName":"MyVariable","safeName":"MyVariable"}},"type":{"_type":"named","name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"typeId":"type_commons:StringAlias","default":null,"inline":null},"docs":"I am a variable"}],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{"service_service":["type_commons:StringAlias"]},"sharedTypes":[]},"webhookGroups":{},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{"type_commons:StringAlias":{"type":"alias","declaration":{"name":{"originalName":"StringAlias","camelCase":{"unsafeName":"stringAlias","safeName":"stringAlias"},"snakeCase":{"unsafeName":"string_alias","safeName":"string_alias"},"screamingSnakeCase":{"unsafeName":"STRING_ALIAS","safeName":"STRING_ALIAS"},"pascalCase":{"unsafeName":"StringAlias","safeName":"StringAlias"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}}},"typeReference":{"_type":"primitive","value":"STRING"}}},"headers":[],"endpoints":{"endpoint_service.test":{"auth":null,"declaration":{"name":{"originalName":"test","camelCase":{"unsafeName":"test","safeName":"test"},"snakeCase":{"unsafeName":"test","safeName":"test"},"screamingSnakeCase":{"unsafeName":"TEST","safeName":"TEST"},"pascalCase":{"unsafeName":"Test","safeName":"Test"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}}},"location":{"method":"POST","path":"/{root}/movies/{foo}"},"request":{"type":"body","pathParameters":[{"name":{"name":{"originalName":"root","camelCase":{"unsafeName":"root","safeName":"root"},"snakeCase":{"unsafeName":"root","safeName":"root"},"screamingSnakeCase":{"unsafeName":"ROOT","safeName":"ROOT"},"pascalCase":{"unsafeName":"Root","safeName":"Root"}},"wireValue":"root"},"typeReference":{"_type":"named","value":"type_commons:StringAlias"}},{"name":{"name":{"originalName":"foo","camelCase":{"unsafeName":"foo","safeName":"foo"},"snakeCase":{"unsafeName":"foo","safeName":"foo"},"screamingSnakeCase":{"unsafeName":"FOO","safeName":"FOO"},"pascalCase":{"unsafeName":"Foo","safeName":"Foo"}},"wireValue":"foo"},"typeReference":{"_type":"named","value":"type_commons:StringAlias"}}],"body":null},"response":{"type":"json"}}}},"subpackages":{"subpackage_commons":{"name":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}},"fernFilepath":{"allParts":[{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}],"packagePath":[],"file":{"originalName":"commons","camelCase":{"unsafeName":"commons","safeName":"commons"},"snakeCase":{"unsafeName":"commons","safeName":"commons"},"screamingSnakeCase":{"unsafeName":"COMMONS","safeName":"COMMONS"},"pascalCase":{"unsafeName":"Commons","safeName":"Commons"}}},"service":null,"types":["type_commons:StringAlias"],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":false,"docs":null},"subpackage_service":{"name":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}},"fernFilepath":{"allParts":[{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}],"packagePath":[],"file":{"originalName":"service","camelCase":{"unsafeName":"service","safeName":"service"},"snakeCase":{"unsafeName":"service","safeName":"service"},"screamingSnakeCase":{"unsafeName":"SERVICE","safeName":"SERVICE"},"pascalCase":{"unsafeName":"Service","safeName":"Service"}}},"service":"service_service","types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":null,"websocket":null,"hasEndpointsInTree":true,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_commons","subpackage_service"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":true,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; -exports[`ir > {"name":"webhooks"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{"webhooks_webhooks":[{"id":"webhooks_webhooks.sendNotification","displayName":null,"method":"POST","name":{"originalName":"sendNotification","camelCase":{"unsafeName":"sendNotification","safeName":"sendNotification"},"snakeCase":{"unsafeName":"send_notification","safeName":"send_notification"},"screamingSnakeCase":{"unsafeName":"SEND_NOTIFICATION","safeName":"SEND_NOTIFICATION"},"pascalCase":{"unsafeName":"SendNotification","safeName":"SendNotification"}},"headers":[],"payload":{"type":"inlinedPayload","name":{"originalName":"NotificationPayload","camelCase":{"unsafeName":"notificationPayload","safeName":"notificationPayload"},"snakeCase":{"unsafeName":"notification_payload","safeName":"notification_payload"},"screamingSnakeCase":{"unsafeName":"NOTIFICATION_PAYLOAD","safeName":"NOTIFICATION_PAYLOAD"},"pascalCase":{"unsafeName":"NotificationPayload","safeName":"NotificationPayload"}},"extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"urgent","camelCase":{"unsafeName":"urgent","safeName":"urgent"},"snakeCase":{"unsafeName":"urgent","safeName":"urgent"},"screamingSnakeCase":{"unsafeName":"URGENT","safeName":"URGENT"},"pascalCase":{"unsafeName":"Urgent","safeName":"Urgent"}},"wireValue":"urgent"},"valueType":{"_type":"primitive","primitive":{"v1":"BOOLEAN","v2":null}},"availability":null,"docs":"Some docs about urgency"}]},"examples":null,"availability":null,"docs":"This is a webhook to receive notifications."}]},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"subpackages":{"subpackage_webhooks":{"name":{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}},"fernFilepath":{"allParts":[{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}}],"packagePath":[],"file":{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":"webhooks_webhooks","websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_webhooks"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; +exports[`ir > {"name":"webhooks"} 1`] = `"{"fdrApiDefinitionId":null,"apiVersion":null,"apiName":{"originalName":"my-api","camelCase":{"unsafeName":"myApi","safeName":"myApi"},"snakeCase":{"unsafeName":"my_api","safeName":"my_api"},"screamingSnakeCase":{"unsafeName":"MY_API","safeName":"MY_API"},"pascalCase":{"unsafeName":"MyApi","safeName":"MyApi"}},"apiDisplayName":null,"apiDocs":null,"auth":{"requirement":"ALL","schemes":[],"docs":null},"headers":[],"idempotencyHeaders":[],"types":{},"errors":{},"services":{},"constants":{"errorInstanceIdKey":{"name":{"originalName":"errorInstanceId","camelCase":{"unsafeName":"errorInstanceId","safeName":"errorInstanceId"},"snakeCase":{"unsafeName":"error_instance_id","safeName":"error_instance_id"},"screamingSnakeCase":{"unsafeName":"ERROR_INSTANCE_ID","safeName":"ERROR_INSTANCE_ID"},"pascalCase":{"unsafeName":"ErrorInstanceId","safeName":"ErrorInstanceId"}},"wireValue":"errorInstanceId"}},"environments":null,"errorDiscriminationStrategy":{"type":"statusCode"},"basePath":null,"pathParameters":[],"variables":[],"serviceTypeReferenceInfo":{"typesReferencedOnlyByService":{},"sharedTypes":[]},"webhookGroups":{"webhooks_webhooks":[{"id":"webhooks_webhooks.sendNotification","displayName":null,"method":"POST","name":{"originalName":"sendNotification","camelCase":{"unsafeName":"sendNotification","safeName":"sendNotification"},"snakeCase":{"unsafeName":"send_notification","safeName":"send_notification"},"screamingSnakeCase":{"unsafeName":"SEND_NOTIFICATION","safeName":"SEND_NOTIFICATION"},"pascalCase":{"unsafeName":"SendNotification","safeName":"SendNotification"}},"headers":[],"payload":{"type":"inlinedPayload","name":{"originalName":"NotificationPayload","camelCase":{"unsafeName":"notificationPayload","safeName":"notificationPayload"},"snakeCase":{"unsafeName":"notification_payload","safeName":"notification_payload"},"screamingSnakeCase":{"unsafeName":"NOTIFICATION_PAYLOAD","safeName":"NOTIFICATION_PAYLOAD"},"pascalCase":{"unsafeName":"NotificationPayload","safeName":"NotificationPayload"}},"extends":[],"properties":[{"name":{"name":{"originalName":"name","camelCase":{"unsafeName":"name","safeName":"name"},"snakeCase":{"unsafeName":"name","safeName":"name"},"screamingSnakeCase":{"unsafeName":"NAME","safeName":"NAME"},"pascalCase":{"unsafeName":"Name","safeName":"Name"}},"wireValue":"name"},"valueType":{"_type":"primitive","primitive":{"v1":"STRING","v2":{"type":"string","default":null,"validation":null}}},"availability":null,"docs":null},{"name":{"name":{"originalName":"urgent","camelCase":{"unsafeName":"urgent","safeName":"urgent"},"snakeCase":{"unsafeName":"urgent","safeName":"urgent"},"screamingSnakeCase":{"unsafeName":"URGENT","safeName":"URGENT"},"pascalCase":{"unsafeName":"Urgent","safeName":"Urgent"}},"wireValue":"urgent"},"valueType":{"_type":"primitive","primitive":{"v1":"BOOLEAN","v2":null}},"availability":null,"docs":"Some docs about urgency"}]},"examples":null,"availability":null,"docs":"This is a webhook to receive notifications."}]},"websocketChannels":{},"readmeConfig":null,"sourceConfig":null,"publishConfig":null,"dynamic":{"version":"1.0.0","types":{},"headers":[],"endpoints":{}},"subpackages":{"subpackage_webhooks":{"name":{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}},"fernFilepath":{"allParts":[{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}}],"packagePath":[],"file":{"originalName":"webhooks","camelCase":{"unsafeName":"webhooks","safeName":"webhooks"},"snakeCase":{"unsafeName":"webhooks","safeName":"webhooks"},"screamingSnakeCase":{"unsafeName":"WEBHOOKS","safeName":"WEBHOOKS"},"pascalCase":{"unsafeName":"Webhooks","safeName":"Webhooks"}}},"service":null,"types":[],"errors":[],"subpackages":[],"navigationConfig":null,"webhooks":"webhooks_webhooks","websocket":null,"hasEndpointsInTree":false,"docs":null}},"rootPackage":{"fernFilepath":{"allParts":[],"packagePath":[],"file":null},"websocket":null,"service":null,"types":[],"errors":[],"subpackages":["subpackage_webhooks"],"webhooks":null,"navigationConfig":null,"hasEndpointsInTree":false,"docs":null},"sdkConfig":{"isAuthMandatory":false,"hasStreamingEndpoints":false,"hasPaginatedEndpoints":false,"hasFileDownloadEndpoints":false,"platformHeaders":{"language":"X-Fern-Language","sdkName":"X-Fern-SDK-Name","sdkVersion":"X-Fern-SDK-Version","userAgent":null}}}"`; diff --git a/packages/cli/ete-tests/src/tests/update-api-v2/__snapshots__/update-api.test.ts.snap b/packages/cli/ete-tests/src/tests/update-api-v2/__snapshots__/update-api.test.ts.snap index 54efb2022c6..77f13391778 100644 --- a/packages/cli/ete-tests/src/tests/update-api-v2/__snapshots__/update-api.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/update-api-v2/__snapshots__/update-api.test.ts.snap @@ -30,7 +30,7 @@ exports[`fern api update unioned > fern api update unioned 1`] = ` "x-internal": false }, { - "url": "https://mocks.example.com/rest", + "url": "https://try.microcks.io/rest/Train+Travel+API/1.0.0", "description": "Mock Server", "x-internal": false } diff --git a/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap b/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap index 848c8df9895..3a46ef87bb5 100644 --- a/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/update-api/__snapshots__/update-api.test.ts.snap @@ -30,7 +30,7 @@ exports[`fern api update > fern api update 1`] = ` "x-internal": false }, { - "url": "https://mocks.example.com/rest", + "url": "https://try.microcks.io/rest/Train+Travel+API/1.0.0", "description": "Mock Server", "x-internal": false } diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json index d85c8661f03..f7a3dc2e6ff 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/audiences.json @@ -1348,6 +1348,392 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_webhooks:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + ], + "packagePath": [], + "file": { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/availability.json b/packages/cli/generation/ir-generator/src/__test__/irs/availability.json index 89e7b3e6c70..54c70dccc51 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/availability.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/availability.json @@ -546,6 +546,292 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_service:Object": { + "type": "object", + "declaration": { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.test-availability": { + "auth": null, + "declaration": { + "name": { + "originalName": "test-availability", + "camelCase": { + "unsafeName": "testAvailability", + "safeName": "testAvailability" + }, + "snakeCase": { + "unsafeName": "test_availability", + "safeName": "test_availability" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_AVAILABILITY", + "safeName": "TEST_AVAILABILITY" + }, + "pascalCase": { + "unsafeName": "TestAvailability", + "safeName": "TestAvailability" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test-availability" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RequestObject", + "camelCase": { + "unsafeName": "requestObject", + "safeName": "requestObject" + }, + "snakeCase": { + "unsafeName": "request_object", + "safeName": "request_object" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST_OBJECT", + "safeName": "REQUEST_OBJECT" + }, + "pascalCase": { + "unsafeName": "RequestObject", + "safeName": "RequestObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "random", + "camelCase": { + "unsafeName": "random", + "safeName": "random" + }, + "snakeCase": { + "unsafeName": "random", + "safeName": "random" + }, + "screamingSnakeCase": { + "unsafeName": "RANDOM", + "safeName": "RANDOM" + }, + "pascalCase": { + "unsafeName": "Random", + "safeName": "Random" + } + }, + "wireValue": "random" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/docs.json b/packages/cli/generation/ir-generator/src/__test__/irs/docs.json index 931ac399a99..30a802bcf26 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/docs.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/docs.json @@ -766,6 +766,292 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_service:Object": { + "type": "object", + "declaration": { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.test-availability": { + "auth": null, + "declaration": { + "name": { + "originalName": "test-availability", + "camelCase": { + "unsafeName": "testAvailability", + "safeName": "testAvailability" + }, + "snakeCase": { + "unsafeName": "test_availability", + "safeName": "test_availability" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_AVAILABILITY", + "safeName": "TEST_AVAILABILITY" + }, + "pascalCase": { + "unsafeName": "TestAvailability", + "safeName": "TestAvailability" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test-description" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RequestObject", + "camelCase": { + "unsafeName": "requestObject", + "safeName": "requestObject" + }, + "snakeCase": { + "unsafeName": "request_object", + "safeName": "request_object" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST_OBJECT", + "safeName": "REQUEST_OBJECT" + }, + "pascalCase": { + "unsafeName": "RequestObject", + "safeName": "RequestObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "random", + "camelCase": { + "unsafeName": "random", + "safeName": "random" + }, + "snakeCase": { + "unsafeName": "random", + "safeName": "random" + }, + "screamingSnakeCase": { + "unsafeName": "RANDOM", + "safeName": "RANDOM" + }, + "pascalCase": { + "unsafeName": "Random", + "safeName": "Random" + } + }, + "wireValue": "random" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json index 7f302004d53..9535c34cf54 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiences.json @@ -4635,6 +4635,956 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "wireValue": "cast" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_imdb:Cast" + } + } + } + ] + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_imdb:Cast": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "actor": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "actor", + "camelCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "snakeCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR", + "safeName": "ACTOR" + }, + "pascalCase": { + "unsafeName": "Actor", + "safeName": "Actor" + } + }, + "wireValue": "actor" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Name" + } + } + ] + }, + "actress": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "actress", + "camelCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "snakeCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "screamingSnakeCase": { + "unsafeName": "ACTRESS", + "safeName": "ACTRESS" + }, + "pascalCase": { + "unsafeName": "Actress", + "safeName": "Actress" + } + }, + "wireValue": "actress" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Name" + } + } + ] + } + } + }, + "type_imdb:Name": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_webhooks:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + ], + "packagePath": [], + "file": { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.getMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json index f4d84a01c45..eed7da0551e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesAllHack.json @@ -3731,6 +3731,653 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_webhooks:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + ], + "packagePath": [], + "file": { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.getMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesSelectHack.json b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesSelectHack.json index e6c87b97a2e..86d173fd024 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesSelectHack.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/environmentAudiencesSelectHack.json @@ -1372,6 +1372,392 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_webhooks:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + ], + "packagePath": [], + "file": { + "originalName": "webhooks", + "camelCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "snakeCase": { + "unsafeName": "webhooks", + "safeName": "webhooks" + }, + "screamingSnakeCase": { + "unsafeName": "WEBHOOKS", + "safeName": "WEBHOOKS" + }, + "pascalCase": { + "unsafeName": "Webhooks", + "safeName": "Webhooks" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/irs/generics.json b/packages/cli/generation/ir-generator/src/__test__/irs/generics.json index 3eec9c60d0e..5e45d1d7d6c 100644 --- a/packages/cli/generation/ir-generator/src/__test__/irs/generics.json +++ b/packages/cli/generation/ir-generator/src/__test__/irs/generics.json @@ -1909,6 +1909,1040 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "wireValue": "cast" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_imdb:Cast" + } + } + } + ] + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_imdb:Cast": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "actor": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "actor", + "camelCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "snakeCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR", + "safeName": "ACTOR" + }, + "pascalCase": { + "unsafeName": "Actor", + "safeName": "Actor" + } + }, + "wireValue": "actor" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Name" + } + } + ] + }, + "actress": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "actress", + "camelCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "snakeCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "screamingSnakeCase": { + "unsafeName": "ACTRESS", + "safeName": "ACTRESS" + }, + "pascalCase": { + "unsafeName": "Actress", + "safeName": "Actress" + } + }, + "wireValue": "actress" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Name" + } + } + ] + } + } + }, + "type_imdb:Name": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:GenericApplication": { + "type": "object", + "declaration": { + "name": { + "originalName": "GenericApplication", + "camelCase": { + "unsafeName": "genericApplication", + "safeName": "genericApplication" + }, + "snakeCase": { + "unsafeName": "generic_application", + "safeName": "generic_application" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_APPLICATION", + "safeName": "GENERIC_APPLICATION" + }, + "pascalCase": { + "unsafeName": "GenericApplication", + "safeName": "GenericApplication" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + }, + { + "name": { + "name": { + "originalName": "other-value", + "camelCase": { + "unsafeName": "otherValue", + "safeName": "otherValue" + }, + "snakeCase": { + "unsafeName": "other_value", + "safeName": "other_value" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER_VALUE", + "safeName": "OTHER_VALUE" + }, + "pascalCase": { + "unsafeName": "OtherValue", + "safeName": "OtherValue" + } + }, + "wireValue": "other-value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Movie" + } + } + ] + }, + "type_imdb:Sample": { + "type": "object", + "declaration": { + "name": { + "originalName": "Sample", + "camelCase": { + "unsafeName": "sample", + "safeName": "sample" + }, + "snakeCase": { + "unsafeName": "sample", + "safeName": "sample" + }, + "screamingSnakeCase": { + "unsafeName": "SAMPLE", + "safeName": "SAMPLE" + }, + "pascalCase": { + "unsafeName": "Sample", + "safeName": "Sample" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Movie" + } + }, + { + "name": { + "name": { + "originalName": "other-value", + "camelCase": { + "unsafeName": "otherValue", + "safeName": "otherValue" + }, + "snakeCase": { + "unsafeName": "other_value", + "safeName": "other_value" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER_VALUE", + "safeName": "OTHER_VALUE" + }, + "pascalCase": { + "unsafeName": "OtherValue", + "safeName": "OtherValue" + } + }, + "wireValue": "other-value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Movie" + } + } + ] + }, + "type_imdb:VanillaAlias": { + "type": "object", + "declaration": { + "name": { + "originalName": "VanillaAlias", + "camelCase": { + "unsafeName": "vanillaAlias", + "safeName": "vanillaAlias" + }, + "snakeCase": { + "unsafeName": "vanilla_alias", + "safeName": "vanilla_alias" + }, + "screamingSnakeCase": { + "unsafeName": "VANILLA_ALIAS", + "safeName": "VANILLA_ALIAS" + }, + "pascalCase": { + "unsafeName": "VanillaAlias", + "safeName": "VanillaAlias" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "vanilla-value", + "camelCase": { + "unsafeName": "vanillaValue", + "safeName": "vanillaValue" + }, + "snakeCase": { + "unsafeName": "vanilla_value", + "safeName": "vanilla_value" + }, + "screamingSnakeCase": { + "unsafeName": "VANILLA_VALUE", + "safeName": "VANILLA_VALUE" + }, + "pascalCase": { + "unsafeName": "VanillaValue", + "safeName": "VanillaValue" + } + }, + "wireValue": "vanilla-value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + }, + { + "name": { + "name": { + "originalName": "vanilla-other-value", + "camelCase": { + "unsafeName": "vanillaOtherValue", + "safeName": "vanillaOtherValue" + }, + "snakeCase": { + "unsafeName": "vanilla_other_value", + "safeName": "vanilla_other_value" + }, + "screamingSnakeCase": { + "unsafeName": "VANILLA_OTHER_VALUE", + "safeName": "VANILLA_OTHER_VALUE" + }, + "pascalCase": { + "unsafeName": "VanillaOtherValue", + "safeName": "VanillaOtherValue" + } + }, + "wireValue": "vanilla-other-value" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:Movie" + } + } + ] + } + }, + "headers": [], + "endpoints": {} + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json index 55ef21e9745..642c493e777 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/code-samples-open-api.json @@ -1896,6 +1896,388 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:TelemetryResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TelemetryResponse", + "camelCase": { + "unsafeName": "telemetryResponse", + "safeName": "telemetryResponse" + }, + "snakeCase": { + "unsafeName": "telemetry_response", + "safeName": "telemetry_response" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_RESPONSE", + "safeName": "TELEMETRY_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TelemetryResponse", + "safeName": "TelemetryResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "time", + "camelCase": { + "unsafeName": "time", + "safeName": "time" + }, + "snakeCase": { + "unsafeName": "time", + "safeName": "time" + }, + "screamingSnakeCase": { + "unsafeName": "TIME", + "safeName": "TIME" + }, + "pascalCase": { + "unsafeName": "Time", + "safeName": "Time" + } + }, + "wireValue": "time" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:TelemetryData" + } + } + } + ] + }, + "type_:TelemetryData": { + "type": "object", + "declaration": { + "name": { + "originalName": "TelemetryData", + "camelCase": { + "unsafeName": "telemetryData", + "safeName": "telemetryData" + }, + "snakeCase": { + "unsafeName": "telemetry_data", + "safeName": "telemetry_data" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_DATA", + "safeName": "TELEMETRY_DATA" + }, + "pascalCase": { + "unsafeName": "TelemetryData", + "safeName": "TelemetryData" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cpu", + "camelCase": { + "unsafeName": "cpu", + "safeName": "cpu" + }, + "snakeCase": { + "unsafeName": "cpu", + "safeName": "cpu" + }, + "screamingSnakeCase": { + "unsafeName": "CPU", + "safeName": "CPU" + }, + "pascalCase": { + "unsafeName": "CPU", + "safeName": "CPU" + } + }, + "wireValue": "cpu" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "memory", + "camelCase": { + "unsafeName": "memory", + "safeName": "memory" + }, + "snakeCase": { + "unsafeName": "memory", + "safeName": "memory" + }, + "screamingSnakeCase": { + "unsafeName": "MEMORY", + "safeName": "MEMORY" + }, + "pascalCase": { + "unsafeName": "Memory", + "safeName": "Memory" + } + }, + "wireValue": "memory" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "network", + "camelCase": { + "unsafeName": "network", + "safeName": "network" + }, + "snakeCase": { + "unsafeName": "network", + "safeName": "network" + }, + "screamingSnakeCase": { + "unsafeName": "NETWORK", + "safeName": "NETWORK" + }, + "pascalCase": { + "unsafeName": "Network", + "safeName": "Network" + } + }, + "wireValue": "network" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.telemetry": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/telemetry" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "TelemetryRequest", + "camelCase": { + "unsafeName": "telemetryRequest", + "safeName": "telemetryRequest" + }, + "snakeCase": { + "unsafeName": "telemetry_request", + "safeName": "telemetry_request" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_REQUEST", + "safeName": "TELEMETRY_REQUEST" + }, + "pascalCase": { + "unsafeName": "TelemetryRequest", + "safeName": "TelemetryRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "anonymize", + "camelCase": { + "unsafeName": "anonymize", + "safeName": "anonymize" + }, + "snakeCase": { + "unsafeName": "anonymize", + "safeName": "anonymize" + }, + "screamingSnakeCase": { + "unsafeName": "ANONYMIZE", + "safeName": "ANONYMIZE" + }, + "pascalCase": { + "unsafeName": "Anonymize", + "safeName": "Anonymize" + } + }, + "wireValue": "anonymize" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json index abfe261141f..939d432ca32 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/enum-casing.json @@ -1504,6 +1504,336 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:ExampleResponseStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ExampleResponseStatus", + "camelCase": { + "unsafeName": "exampleResponseStatus", + "safeName": "exampleResponseStatus" + }, + "snakeCase": { + "unsafeName": "example_response_status", + "safeName": "example_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "EXAMPLE_RESPONSE_STATUS", + "safeName": "EXAMPLE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "ExampleResponseStatus", + "safeName": "ExampleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "success", + "camelCase": { + "unsafeName": "success", + "safeName": "success" + }, + "snakeCase": { + "unsafeName": "success", + "safeName": "success" + }, + "screamingSnakeCase": { + "unsafeName": "SUCCESS", + "safeName": "SUCCESS" + }, + "pascalCase": { + "unsafeName": "Success", + "safeName": "Success" + } + }, + "wireValue": "success" + }, + { + "name": { + "originalName": "failure", + "camelCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "snakeCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "screamingSnakeCase": { + "unsafeName": "FAILURE", + "safeName": "FAILURE" + }, + "pascalCase": { + "unsafeName": "Failure", + "safeName": "Failure" + } + }, + "wireValue": "failure" + } + ] + }, + "type_:ExampleResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExampleResponse", + "camelCase": { + "unsafeName": "exampleResponse", + "safeName": "exampleResponse" + }, + "snakeCase": { + "unsafeName": "example_response", + "safeName": "example_response" + }, + "screamingSnakeCase": { + "unsafeName": "EXAMPLE_RESPONSE", + "safeName": "EXAMPLE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ExampleResponse", + "safeName": "ExampleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ExampleResponseStatus" + } + } + }, + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "custom_fields", + "camelCase": { + "unsafeName": "customFields", + "safeName": "customFields" + }, + "snakeCase": { + "unsafeName": "custom_fields", + "safeName": "custom_fields" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FIELDS", + "safeName": "CUSTOM_FIELDS" + }, + "pascalCase": { + "unsafeName": "CustomFields", + "safeName": "CustomFields" + } + }, + "wireValue": "custom_fields" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ] + }, + "type_:GrantTypeEnum": { + "type": "enum", + "declaration": { + "name": { + "originalName": "GrantTypeEnum", + "camelCase": { + "unsafeName": "grantTypeEnum", + "safeName": "grantTypeEnum" + }, + "snakeCase": { + "unsafeName": "grant_type_enum", + "safeName": "grant_type_enum" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE_ENUM", + "safeName": "GRANT_TYPE_ENUM" + }, + "pascalCase": { + "unsafeName": "GrantTypeEnum", + "safeName": "GrantTypeEnum" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "UrnDevrevParamsOauthGrantTypeTokenIssue", + "camelCase": { + "unsafeName": "urnDevrevParamsOauthGrantTypeTokenIssue", + "safeName": "urnDevrevParamsOauthGrantTypeTokenIssue" + }, + "snakeCase": { + "unsafeName": "urn_devrev_params_oauth_grant_type_token_issue", + "safeName": "urn_devrev_params_oauth_grant_type_token_issue" + }, + "screamingSnakeCase": { + "unsafeName": "URN_DEVREV_PARAMS_OAUTH_GRANT_TYPE_TOKEN_ISSUE", + "safeName": "URN_DEVREV_PARAMS_OAUTH_GRANT_TYPE_TOKEN_ISSUE" + }, + "pascalCase": { + "unsafeName": "UrnDevrevParamsOauthGrantTypeTokenIssue", + "safeName": "UrnDevrevParamsOauthGrantTypeTokenIssue" + } + }, + "wireValue": "urn:devrev:params:oauth:grant-type:token-issue" + }, + { + "name": { + "originalName": "UrnIetfParamsOauthGrantTypeTokenExchange", + "camelCase": { + "unsafeName": "urnIetfParamsOauthGrantTypeTokenExchange", + "safeName": "urnIetfParamsOauthGrantTypeTokenExchange" + }, + "snakeCase": { + "unsafeName": "urn_ietf_params_oauth_grant_type_token_exchange", + "safeName": "urn_ietf_params_oauth_grant_type_token_exchange" + }, + "screamingSnakeCase": { + "unsafeName": "URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE", + "safeName": "URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE" + }, + "pascalCase": { + "unsafeName": "UrnIetfParamsOauthGrantTypeTokenExchange", + "safeName": "UrnIetfParamsOauthGrantTypeTokenExchange" + } + }, + "wireValue": "urn:ietf:params:oauth:grant-type:token-exchange" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.getExample": { + "auth": null, + "declaration": { + "name": { + "originalName": "getExample", + "camelCase": { + "unsafeName": "getExample", + "safeName": "getExample" + }, + "snakeCase": { + "unsafeName": "get_example", + "safeName": "get_example" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXAMPLE", + "safeName": "GET_EXAMPLE" + }, + "pascalCase": { + "unsafeName": "GetExample", + "safeName": "GetExample" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/example" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json index 3254563bda2..70a841cb7a5 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/inline-schema-reference.json @@ -1072,6 +1072,346 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:NotFound": { + "type": "object", + "declaration": { + "name": { + "originalName": "NotFound", + "camelCase": { + "unsafeName": "notFound", + "safeName": "notFound" + }, + "snakeCase": { + "unsafeName": "not_found", + "safeName": "not_found" + }, + "screamingSnakeCase": { + "unsafeName": "NOT_FOUND", + "safeName": "NOT_FOUND" + }, + "pascalCase": { + "unsafeName": "NotFound", + "safeName": "NotFound" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:GetExampleResponse": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "GetExampleResponse", + "camelCase": { + "unsafeName": "getExampleResponse", + "safeName": "getExampleResponse" + }, + "snakeCase": { + "unsafeName": "get_example_response", + "safeName": "get_example_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXAMPLE_RESPONSE", + "safeName": "GET_EXAMPLE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetExampleResponse", + "safeName": "GetExampleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:NotFound" + }, + { + "_type": "named", + "value": "type_:Schema1" + }, + { + "_type": "named", + "value": "type_:Schema2" + } + ] + }, + "type_:Schema1": { + "type": "object", + "declaration": { + "name": { + "originalName": "Schema1", + "camelCase": { + "unsafeName": "schema1", + "safeName": "schema1" + }, + "snakeCase": { + "unsafeName": "schema1", + "safeName": "schema1" + }, + "screamingSnakeCase": { + "unsafeName": "SCHEMA1", + "safeName": "SCHEMA1" + }, + "pascalCase": { + "unsafeName": "Schema1", + "safeName": "Schema1" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:Schema2": { + "type": "object", + "declaration": { + "name": { + "originalName": "Schema2", + "camelCase": { + "unsafeName": "schema2", + "safeName": "schema2" + }, + "snakeCase": { + "unsafeName": "schema2", + "safeName": "schema2" + }, + "screamingSnakeCase": { + "unsafeName": "SCHEMA2", + "safeName": "SCHEMA2" + }, + "pascalCase": { + "unsafeName": "Schema2", + "safeName": "Schema2" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + }, + "wireValue": "email" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.getExample": { + "auth": null, + "declaration": { + "name": { + "originalName": "getExample", + "camelCase": { + "unsafeName": "getExample", + "safeName": "getExample" + }, + "snakeCase": { + "unsafeName": "get_example", + "safeName": "get_example" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXAMPLE", + "safeName": "GET_EXAMPLE" + }, + "pascalCase": { + "unsafeName": "GetExample", + "safeName": "GetExample" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/example" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json index 4d67e1a129e..8d035134f06 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions-openapi/names.json @@ -3216,6 +3216,579 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_telemetry:TelemetryGetTelemetryDataResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TelemetryGetTelemetryDataResponse", + "camelCase": { + "unsafeName": "telemetryGetTelemetryDataResponse", + "safeName": "telemetryGetTelemetryDataResponse" + }, + "snakeCase": { + "unsafeName": "telemetry_get_telemetry_data_response", + "safeName": "telemetry_get_telemetry_data_response" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_GET_TELEMETRY_DATA_RESPONSE", + "safeName": "TELEMETRY_GET_TELEMETRY_DATA_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TelemetryGetTelemetryDataResponse", + "safeName": "TelemetryGetTelemetryDataResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + ], + "packagePath": [], + "file": { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "time", + "camelCase": { + "unsafeName": "time", + "safeName": "time" + }, + "snakeCase": { + "unsafeName": "time", + "safeName": "time" + }, + "screamingSnakeCase": { + "unsafeName": "TIME", + "safeName": "TIME" + }, + "pascalCase": { + "unsafeName": "Time", + "safeName": "Time" + } + }, + "wireValue": "time" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_infra/telemetry:TelemetryData" + } + } + } + ] + }, + "type_infra/telemetry:TelemetryData": { + "type": "object", + "declaration": { + "name": { + "originalName": "TelemetryData", + "camelCase": { + "unsafeName": "telemetryData", + "safeName": "telemetryData" + }, + "snakeCase": { + "unsafeName": "telemetry_data", + "safeName": "telemetry_data" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_DATA", + "safeName": "TELEMETRY_DATA" + }, + "pascalCase": { + "unsafeName": "TelemetryData", + "safeName": "TelemetryData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "infra", + "camelCase": { + "unsafeName": "infra", + "safeName": "infra" + }, + "snakeCase": { + "unsafeName": "infra", + "safeName": "infra" + }, + "screamingSnakeCase": { + "unsafeName": "INFRA", + "safeName": "INFRA" + }, + "pascalCase": { + "unsafeName": "Infra", + "safeName": "Infra" + } + }, + { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + ], + "packagePath": [ + { + "originalName": "infra", + "camelCase": { + "unsafeName": "infra", + "safeName": "infra" + }, + "snakeCase": { + "unsafeName": "infra", + "safeName": "infra" + }, + "screamingSnakeCase": { + "unsafeName": "INFRA", + "safeName": "INFRA" + }, + "pascalCase": { + "unsafeName": "Infra", + "safeName": "Infra" + } + } + ], + "file": { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cpu", + "camelCase": { + "unsafeName": "cpu", + "safeName": "cpu" + }, + "snakeCase": { + "unsafeName": "cpu", + "safeName": "cpu" + }, + "screamingSnakeCase": { + "unsafeName": "CPU", + "safeName": "CPU" + }, + "pascalCase": { + "unsafeName": "CPU", + "safeName": "CPU" + } + }, + "wireValue": "cpu" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "memory", + "camelCase": { + "unsafeName": "memory", + "safeName": "memory" + }, + "snakeCase": { + "unsafeName": "memory", + "safeName": "memory" + }, + "screamingSnakeCase": { + "unsafeName": "MEMORY", + "safeName": "MEMORY" + }, + "pascalCase": { + "unsafeName": "Memory", + "safeName": "Memory" + } + }, + "wireValue": "memory" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "network", + "camelCase": { + "unsafeName": "network", + "safeName": "network" + }, + "snakeCase": { + "unsafeName": "network", + "safeName": "network" + }, + "screamingSnakeCase": { + "unsafeName": "NETWORK", + "safeName": "NETWORK" + }, + "pascalCase": { + "unsafeName": "Network", + "safeName": "Network" + } + }, + "wireValue": "network" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_telemetry.getTelemetryData": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getTelemetryData", + "camelCase": { + "unsafeName": "getTelemetryData", + "safeName": "getTelemetryData" + }, + "snakeCase": { + "unsafeName": "get_telemetry_data", + "safeName": "get_telemetry_data" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TELEMETRY_DATA", + "safeName": "GET_TELEMETRY_DATA" + }, + "pascalCase": { + "unsafeName": "GetTelemetryData", + "safeName": "GetTelemetryData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + ], + "packagePath": [], + "file": { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + } + }, + "location": { + "method": "GET", + "path": "/telemetry" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "TelemetryGetTelemetryDataRequest", + "camelCase": { + "unsafeName": "telemetryGetTelemetryDataRequest", + "safeName": "telemetryGetTelemetryDataRequest" + }, + "snakeCase": { + "unsafeName": "telemetry_get_telemetry_data_request", + "safeName": "telemetry_get_telemetry_data_request" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY_GET_TELEMETRY_DATA_REQUEST", + "safeName": "TELEMETRY_GET_TELEMETRY_DATA_REQUEST" + }, + "pascalCase": { + "unsafeName": "TelemetryGetTelemetryDataRequest", + "safeName": "TelemetryGetTelemetryDataRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + ], + "packagePath": [], + "file": { + "originalName": "telemetry", + "camelCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "snakeCase": { + "unsafeName": "telemetry", + "safeName": "telemetry" + }, + "screamingSnakeCase": { + "unsafeName": "TELEMETRY", + "safeName": "TELEMETRY" + }, + "pascalCase": { + "unsafeName": "Telemetry", + "safeName": "Telemetry" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "anonymize", + "camelCase": { + "unsafeName": "anonymize", + "safeName": "anonymize" + }, + "snakeCase": { + "unsafeName": "anonymize", + "safeName": "anonymize" + }, + "screamingSnakeCase": { + "unsafeName": "ANONYMIZE", + "safeName": "ANONYMIZE" + }, + "pascalCase": { + "unsafeName": "Anonymize", + "safeName": "Anonymize" + } + }, + "wireValue": "anonymize" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_telemetry": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json index 13f8e4de719..6a72470de91 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias-extends.json @@ -1150,6 +1150,326 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:AliasType": { + "type": "alias", + "declaration": { + "name": { + "originalName": "AliasType", + "camelCase": { + "unsafeName": "aliasType", + "safeName": "aliasType" + }, + "snakeCase": { + "unsafeName": "alias_type", + "safeName": "alias_type" + }, + "screamingSnakeCase": { + "unsafeName": "ALIAS_TYPE", + "safeName": "ALIAS_TYPE" + }, + "pascalCase": { + "unsafeName": "AliasType", + "safeName": "AliasType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "named", + "value": "type_:Parent" + } + }, + "type_:Parent": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Child": { + "type": "object", + "declaration": { + "name": { + "originalName": "Child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "wireValue": "child" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.extendedInlineRequestBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "extendedInlineRequestBody", + "camelCase": { + "unsafeName": "extendedInlineRequestBody", + "safeName": "extendedInlineRequestBody" + }, + "snakeCase": { + "unsafeName": "extended_inline_request_body", + "safeName": "extended_inline_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_INLINE_REQUEST_BODY", + "safeName": "EXTENDED_INLINE_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "ExtendedInlineRequestBody", + "safeName": "ExtendedInlineRequestBody" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/extends/extended-inline-request-body" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "InlinedChildRequest", + "camelCase": { + "unsafeName": "inlinedChildRequest", + "safeName": "inlinedChildRequest" + }, + "snakeCase": { + "unsafeName": "inlined_child_request", + "safeName": "inlined_child_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_CHILD_REQUEST", + "safeName": "INLINED_CHILD_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedChildRequest", + "safeName": "InlinedChildRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "parent", + "camelCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "snakeCase": { + "unsafeName": "parent", + "safeName": "parent" + }, + "screamingSnakeCase": { + "unsafeName": "PARENT", + "safeName": "PARENT" + }, + "pascalCase": { + "unsafeName": "Parent", + "safeName": "Parent" + } + }, + "wireValue": "parent" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "child", + "camelCase": { + "unsafeName": "child", + "safeName": "child" + }, + "snakeCase": { + "unsafeName": "child", + "safeName": "child" + }, + "screamingSnakeCase": { + "unsafeName": "CHILD", + "safeName": "CHILD" + }, + "pascalCase": { + "unsafeName": "Child", + "safeName": "Child" + } + }, + "wireValue": "child" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json index 48483ecd64c..6825a31adbd 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/alias.json @@ -1154,6 +1154,237 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:TypeId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TypeId", + "camelCase": { + "unsafeName": "typeID", + "safeName": "typeID" + }, + "snakeCase": { + "unsafeName": "type_id", + "safeName": "type_id" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_ID", + "safeName": "TYPE_ID" + }, + "pascalCase": { + "unsafeName": "TypeID", + "safeName": "TypeID" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:TypeId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Object": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + } + }, + "headers": [], + "endpoints": { + "endpoint_.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/{typeId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "typeId", + "camelCase": { + "unsafeName": "typeID", + "safeName": "typeID" + }, + "snakeCase": { + "unsafeName": "type_id", + "safeName": "type_id" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_ID", + "safeName": "TYPE_ID" + }, + "pascalCase": { + "unsafeName": "TypeID", + "safeName": "TypeID" + } + }, + "wireValue": "typeId" + }, + "typeReference": { + "_type": "named", + "value": "type_:TypeId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/any-auth.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/any-auth.json index 8378aefc78e..14e2d074123 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/any-auth.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/any-auth.json @@ -2669,6 +2669,718 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.get": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json index 58d8f4e9b24..3a5728a7701 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/api-wide-base-path.json @@ -669,6 +669,205 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test/{pathParam}/{serviceParam}/{endpointParam}/{resourceParam}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "pathParam", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + }, + "wireValue": "pathParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "resourceParam", + "camelCase": { + "unsafeName": "resourceParam", + "safeName": "resourceParam" + }, + "snakeCase": { + "unsafeName": "resource_param", + "safeName": "resource_param" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_PARAM", + "safeName": "RESOURCE_PARAM" + }, + "pascalCase": { + "unsafeName": "ResourceParam", + "safeName": "ResourceParam" + } + }, + "wireValue": "resourceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "endpointParam", + "camelCase": { + "unsafeName": "endpointParam", + "safeName": "endpointParam" + }, + "snakeCase": { + "unsafeName": "endpoint_param", + "safeName": "endpoint_param" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_PARAM", + "safeName": "ENDPOINT_PARAM" + }, + "pascalCase": { + "unsafeName": "EndpointParam", + "safeName": "EndpointParam" + } + }, + "wireValue": "endpointParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json index c2611a82f2e..f50326b5bcb 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/audiences.json @@ -4227,6 +4227,1414 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_commons:Imported": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_folder-a/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_folder-b/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-c/common:FolderCFoo" + } + } + } + ] + }, + "type_folder-c/common:FolderCFoo": { + "type": "object", + "declaration": { + "name": { + "originalName": "FolderCFoo", + "camelCase": { + "unsafeName": "folderCFoo", + "safeName": "folderCFoo" + }, + "snakeCase": { + "unsafeName": "folder_c_foo", + "safeName": "folder_c_foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C_FOO", + "safeName": "FOLDER_C_FOO" + }, + "pascalCase": { + "unsafeName": "FolderCFoo", + "safeName": "FolderCFoo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "bar_property", + "camelCase": { + "unsafeName": "barProperty", + "safeName": "barProperty" + }, + "snakeCase": { + "unsafeName": "bar_property", + "safeName": "bar_property" + }, + "screamingSnakeCase": { + "unsafeName": "BAR_PROPERTY", + "safeName": "BAR_PROPERTY" + }, + "pascalCase": { + "unsafeName": "BarProperty", + "safeName": "BarProperty" + } + }, + "wireValue": "bar_property" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + } + ] + }, + "type_folder-d/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_foo:ImportingType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingType", + "camelCase": { + "unsafeName": "importingType", + "safeName": "importingType" + }, + "snakeCase": { + "unsafeName": "importing_type", + "safeName": "importing_type" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_TYPE", + "safeName": "IMPORTING_TYPE" + }, + "pascalCase": { + "unsafeName": "ImportingType", + "safeName": "ImportingType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "wireValue": "imported" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Imported" + } + } + ] + }, + "type_foo:OptionalString": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_foo:FilteredType": { + "type": "object", + "declaration": { + "name": { + "originalName": "FilteredType", + "camelCase": { + "unsafeName": "filteredType", + "safeName": "filteredType" + }, + "snakeCase": { + "unsafeName": "filtered_type", + "safeName": "filtered_type" + }, + "screamingSnakeCase": { + "unsafeName": "FILTERED_TYPE", + "safeName": "FILTERED_TYPE" + }, + "pascalCase": { + "unsafeName": "FilteredType", + "safeName": "FilteredType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "public_property", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "public_property" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "private_property", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "private_property" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_folder-a/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder-d/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/partner-path" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_foo.find": { + "auth": null, + "declaration": { + "name": { + "originalName": "find", + "camelCase": { + "unsafeName": "find", + "safeName": "find" + }, + "snakeCase": { + "unsafeName": "find", + "safeName": "find" + }, + "screamingSnakeCase": { + "unsafeName": "FIND", + "safeName": "FIND" + }, + "pascalCase": { + "unsafeName": "Find", + "safeName": "Find" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FindRequest", + "camelCase": { + "unsafeName": "findRequest", + "safeName": "findRequest" + }, + "snakeCase": { + "unsafeName": "find_request", + "safeName": "find_request" + }, + "screamingSnakeCase": { + "unsafeName": "FIND_REQUEST", + "safeName": "FIND_REQUEST" + }, + "pascalCase": { + "unsafeName": "FindRequest", + "safeName": "FindRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "named", + "value": "type_foo:OptionalString" + } + } + ], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "publicProperty", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "publicProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "privateProperty", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "privateProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_commons": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json index ca6498cf6fc..f16ec8d4076 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/auth-environment-variables.json @@ -601,6 +601,390 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [ + { + "name": { + "name": { + "originalName": "X-Another-Header", + "camelCase": { + "unsafeName": "xAnotherHeader", + "safeName": "xAnotherHeader" + }, + "snakeCase": { + "unsafeName": "x_another_header", + "safeName": "x_another_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_ANOTHER_HEADER", + "safeName": "X_ANOTHER_HEADER" + }, + "pascalCase": { + "unsafeName": "XAnotherHeader", + "safeName": "XAnotherHeader" + } + }, + "wireValue": "X-Another-Header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "X-API-Version", + "camelCase": { + "unsafeName": "xAPIVersion", + "safeName": "xAPIVersion" + }, + "snakeCase": { + "unsafeName": "x_api_version", + "safeName": "x_api_version" + }, + "screamingSnakeCase": { + "unsafeName": "X_API_VERSION", + "safeName": "X_API_VERSION" + }, + "pascalCase": { + "unsafeName": "XAPIVersion", + "safeName": "XAPIVersion" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "01-01-2000" + } + } + } + ], + "endpoints": { + "endpoint_service.getWithApiKey": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "APIKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + }, + "wireValue": "X-FERN-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithApiKey", + "camelCase": { + "unsafeName": "getWithAPIKey", + "safeName": "getWithAPIKey" + }, + "snakeCase": { + "unsafeName": "get_with_api_key", + "safeName": "get_with_api_key" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_API_KEY", + "safeName": "GET_WITH_API_KEY" + }, + "pascalCase": { + "unsafeName": "GetWithAPIKey", + "safeName": "GetWithAPIKey" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKey" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getWithHeader": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "APIKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + }, + "wireValue": "X-FERN-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithHeader", + "camelCase": { + "unsafeName": "getWithHeader", + "safeName": "getWithHeader" + }, + "snakeCase": { + "unsafeName": "get_with_header", + "safeName": "get_with_header" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_HEADER", + "safeName": "GET_WITH_HEADER" + }, + "pascalCase": { + "unsafeName": "GetWithHeader", + "safeName": "GetWithHeader" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKeyInHeader" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "HeaderAuthRequest", + "camelCase": { + "unsafeName": "headerAuthRequest", + "safeName": "headerAuthRequest" + }, + "snakeCase": { + "unsafeName": "header_auth_request", + "safeName": "header_auth_request" + }, + "screamingSnakeCase": { + "unsafeName": "HEADER_AUTH_REQUEST", + "safeName": "HEADER_AUTH_REQUEST" + }, + "pascalCase": { + "unsafeName": "HeaderAuthRequest", + "safeName": "HeaderAuthRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "X-Endpoint-Header", + "camelCase": { + "unsafeName": "xEndpointHeader", + "safeName": "xEndpointHeader" + }, + "snakeCase": { + "unsafeName": "x_endpoint_header", + "safeName": "x_endpoint_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_ENDPOINT_HEADER", + "safeName": "X_ENDPOINT_HEADER" + }, + "pascalCase": { + "unsafeName": "XEndpointHeader", + "safeName": "XEndpointHeader" + } + }, + "wireValue": "X-Endpoint-Header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json index 570bdd060bb..66f389523b4 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth-environment-variables.json @@ -1014,6 +1014,354 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_basic-auth.getWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBasicAuth", + "camelCase": { + "unsafeName": "getWithBasicAuth", + "safeName": "getWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "get_with_basic_auth", + "safeName": "get_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BASIC_AUTH", + "safeName": "GET_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithBasicAuth", + "safeName": "GetWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_basic-auth.postWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithBasicAuth", + "camelCase": { + "unsafeName": "postWithBasicAuth", + "safeName": "postWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "post_with_basic_auth", + "safeName": "post_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_BASIC_AUTH", + "safeName": "POST_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithBasicAuth", + "safeName": "PostWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_basic-auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json index ef80033174c..4ef6230dab3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/basic-auth.json @@ -1014,6 +1014,354 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_basic-auth.getWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBasicAuth", + "camelCase": { + "unsafeName": "getWithBasicAuth", + "safeName": "getWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "get_with_basic_auth", + "safeName": "get_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BASIC_AUTH", + "safeName": "GET_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithBasicAuth", + "safeName": "GetWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_basic-auth.postWithBasicAuth": { + "auth": { + "type": "basic", + "username": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "password": { + "originalName": "password", + "camelCase": { + "unsafeName": "password", + "safeName": "password" + }, + "snakeCase": { + "unsafeName": "password", + "safeName": "password" + }, + "screamingSnakeCase": { + "unsafeName": "PASSWORD", + "safeName": "PASSWORD" + }, + "pascalCase": { + "unsafeName": "Password", + "safeName": "Password" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithBasicAuth", + "camelCase": { + "unsafeName": "postWithBasicAuth", + "safeName": "postWithBasicAuth" + }, + "snakeCase": { + "unsafeName": "post_with_basic_auth", + "safeName": "post_with_basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_BASIC_AUTH", + "safeName": "POST_WITH_BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithBasicAuth", + "safeName": "PostWithBasicAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "basic-auth", + "camelCase": { + "unsafeName": "basicAuth", + "safeName": "basicAuth" + }, + "snakeCase": { + "unsafeName": "basic_auth", + "safeName": "basic_auth" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_AUTH", + "safeName": "BASIC_AUTH" + }, + "pascalCase": { + "unsafeName": "BasicAuth", + "safeName": "BasicAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/basic-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_basic-auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json index 12002d1961a..8471946636f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bearer-token-environment-variable.json @@ -266,6 +266,113 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.getWithBearerToken": { + "auth": { + "type": "bearer", + "token": { + "originalName": "apiKey", + "camelCase": { + "unsafeName": "apiKey", + "safeName": "apiKey" + }, + "snakeCase": { + "unsafeName": "api_key", + "safeName": "api_key" + }, + "screamingSnakeCase": { + "unsafeName": "API_KEY", + "safeName": "API_KEY" + }, + "pascalCase": { + "unsafeName": "APIKey", + "safeName": "APIKey" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithBearerToken", + "camelCase": { + "unsafeName": "getWithBearerToken", + "safeName": "getWithBearerToken" + }, + "snakeCase": { + "unsafeName": "get_with_bearer_token", + "safeName": "get_with_bearer_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_BEARER_TOKEN", + "safeName": "GET_WITH_BEARER_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetWithBearerToken", + "safeName": "GetWithBearerToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/apiKey" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json index 0639314b991..b458c8e0ec4 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/bytes.json @@ -225,6 +225,94 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.upload": { + "auth": null, + "declaration": { + "name": { + "originalName": "upload", + "camelCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "snakeCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD", + "safeName": "UPLOAD" + }, + "pascalCase": { + "unsafeName": "Upload", + "safeName": "Upload" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/upload-content" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "bytes" + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json index f77032dd2e6..4033c78dbb3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references-advanced.json @@ -1885,6 +1885,943 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:ImportingA": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingA", + "camelCase": { + "unsafeName": "importingA", + "safeName": "importingA" + }, + "snakeCase": { + "unsafeName": "importing_a", + "safeName": "importing_a" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_A", + "safeName": "IMPORTING_A" + }, + "pascalCase": { + "unsafeName": "ImportingA", + "safeName": "ImportingA" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_a:A" + } + } + } + ] + }, + "type_:RootType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RootType", + "camelCase": { + "unsafeName": "rootType", + "safeName": "rootType" + }, + "snakeCase": { + "unsafeName": "root_type", + "safeName": "root_type" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT_TYPE", + "safeName": "ROOT_TYPE" + }, + "pascalCase": { + "unsafeName": "RootType", + "safeName": "RootType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_a:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + ], + "packagePath": [], + "file": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_ast:ContainerValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ContainerValue", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "list": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "properties": null + }, + "optional": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + }, + "wireValue": "optional" + }, + "properties": null + } + } + }, + "type_ast:PrimitiveValue": { + "type": "enum", + "declaration": { + "name": { + "originalName": "PrimitiveValue", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "STRING", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "STRING" + }, + { + "name": { + "originalName": "NUMBER", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "NUMBER" + } + ] + }, + "type_ast:ObjectValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectValue", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [] + }, + "type_ast:FieldName": { + "type": "alias", + "declaration": { + "name": { + "originalName": "FieldName", + "camelCase": { + "unsafeName": "fieldName", + "safeName": "fieldName" + }, + "snakeCase": { + "unsafeName": "field_name", + "safeName": "field_name" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_NAME", + "safeName": "FIELD_NAME" + }, + "pascalCase": { + "unsafeName": "FieldName", + "safeName": "FieldName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_ast:FieldValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FieldValue", + "camelCase": { + "unsafeName": "fieldValue", + "safeName": "fieldValue" + }, + "snakeCase": { + "unsafeName": "field_value", + "safeName": "field_value" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_VALUE", + "safeName": "FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "FieldValue", + "safeName": "FieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "primitive_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:PrimitiveValue" + }, + "discriminantValue": { + "name": { + "originalName": "primitive_value", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "wireValue": "primitive_value" + }, + "properties": null + }, + "object_value": { + "type": "samePropertiesAsObject", + "typeId": "type_ast:ObjectValue", + "discriminantValue": { + "name": { + "originalName": "object_value", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "wireValue": "object_value" + }, + "properties": [] + }, + "container_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:ContainerValue" + }, + "discriminantValue": { + "name": { + "originalName": "container_value", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "wireValue": "container_value" + }, + "properties": null + } + } + }, + "type_ast:ObjectFieldValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectFieldValue", + "camelCase": { + "unsafeName": "objectFieldValue", + "safeName": "objectFieldValue" + }, + "snakeCase": { + "unsafeName": "object_field_value", + "safeName": "object_field_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_FIELD_VALUE", + "safeName": "OBJECT_FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectFieldValue", + "safeName": "ObjectFieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "named", + "value": "type_ast:FieldName" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_ast:FieldValue" + } + } + ] + } + }, + "headers": [], + "endpoints": {} + }, "subpackages": { "subpackage_a": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json index 01b01b17cd0..f6f4edb360f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/circular-references.json @@ -1789,6 +1789,846 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:ImportingA": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingA", + "camelCase": { + "unsafeName": "importingA", + "safeName": "importingA" + }, + "snakeCase": { + "unsafeName": "importing_a", + "safeName": "importing_a" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_A", + "safeName": "IMPORTING_A" + }, + "pascalCase": { + "unsafeName": "ImportingA", + "safeName": "ImportingA" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_a:A" + } + } + } + ] + }, + "type_:RootType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RootType", + "camelCase": { + "unsafeName": "rootType", + "safeName": "rootType" + }, + "snakeCase": { + "unsafeName": "root_type", + "safeName": "root_type" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT_TYPE", + "safeName": "ROOT_TYPE" + }, + "pascalCase": { + "unsafeName": "RootType", + "safeName": "RootType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_a:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + ], + "packagePath": [], + "file": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "s", + "camelCase": { + "unsafeName": "s", + "safeName": "s" + }, + "snakeCase": { + "unsafeName": "s", + "safeName": "s" + }, + "screamingSnakeCase": { + "unsafeName": "S", + "safeName": "S" + }, + "pascalCase": { + "unsafeName": "S", + "safeName": "S" + } + }, + "wireValue": "s" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_ast:FieldValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FieldValue", + "camelCase": { + "unsafeName": "fieldValue", + "safeName": "fieldValue" + }, + "snakeCase": { + "unsafeName": "field_value", + "safeName": "field_value" + }, + "screamingSnakeCase": { + "unsafeName": "FIELD_VALUE", + "safeName": "FIELD_VALUE" + }, + "pascalCase": { + "unsafeName": "FieldValue", + "safeName": "FieldValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "primitive_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:PrimitiveValue" + }, + "discriminantValue": { + "name": { + "originalName": "primitive_value", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "wireValue": "primitive_value" + }, + "properties": null + }, + "object_value": { + "type": "samePropertiesAsObject", + "typeId": "type_ast:ObjectValue", + "discriminantValue": { + "name": { + "originalName": "object_value", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "wireValue": "object_value" + }, + "properties": [] + }, + "container_value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_ast:ContainerValue" + }, + "discriminantValue": { + "name": { + "originalName": "container_value", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "wireValue": "container_value" + }, + "properties": null + } + } + }, + "type_ast:ContainerValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ContainerValue", + "camelCase": { + "unsafeName": "containerValue", + "safeName": "containerValue" + }, + "snakeCase": { + "unsafeName": "container_value", + "safeName": "container_value" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_VALUE", + "safeName": "CONTAINER_VALUE" + }, + "pascalCase": { + "unsafeName": "ContainerValue", + "safeName": "ContainerValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "list": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "properties": null + }, + "optional": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_ast:FieldValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + }, + "wireValue": "optional" + }, + "properties": null + } + } + }, + "type_ast:PrimitiveValue": { + "type": "enum", + "declaration": { + "name": { + "originalName": "PrimitiveValue", + "camelCase": { + "unsafeName": "primitiveValue", + "safeName": "primitiveValue" + }, + "snakeCase": { + "unsafeName": "primitive_value", + "safeName": "primitive_value" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE_VALUE", + "safeName": "PRIMITIVE_VALUE" + }, + "pascalCase": { + "unsafeName": "PrimitiveValue", + "safeName": "PrimitiveValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "STRING", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "STRING" + }, + { + "name": { + "originalName": "NUMBER", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "NUMBER" + } + ] + }, + "type_ast:ObjectValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectValue", + "camelCase": { + "unsafeName": "objectValue", + "safeName": "objectValue" + }, + "snakeCase": { + "unsafeName": "object_value", + "safeName": "object_value" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_VALUE", + "safeName": "OBJECT_VALUE" + }, + "pascalCase": { + "unsafeName": "ObjectValue", + "safeName": "ObjectValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "properties": [] + }, + "type_ast:JsonLike": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "JsonLike", + "camelCase": { + "unsafeName": "jsonLike", + "safeName": "jsonLike" + }, + "snakeCase": { + "unsafeName": "json_like", + "safeName": "json_like" + }, + "screamingSnakeCase": { + "unsafeName": "JSON_LIKE", + "safeName": "JSON_LIKE" + }, + "pascalCase": { + "unsafeName": "JSONLike", + "safeName": "JSONLike" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ast", + "camelCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "snakeCase": { + "unsafeName": "ast", + "safeName": "ast" + }, + "screamingSnakeCase": { + "unsafeName": "AST", + "safeName": "AST" + }, + "pascalCase": { + "unsafeName": "Ast", + "safeName": "Ast" + } + } + } + }, + "types": [ + { + "_type": "list", + "value": { + "_type": "named", + "value": "type_ast:JsonLike" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_ast:JsonLike" + } + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "INTEGER" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": {} + }, "subpackages": { "subpackage_a": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/cross-package-type-names.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/cross-package-type-names.json index daec01c8930..bf8ebc905e8 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/cross-package-type-names.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/cross-package-type-names.json @@ -4842,6 +4842,1289 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_commons:Imported": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_folder-a/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_folder-b/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-b", + "camelCase": { + "unsafeName": "folderB", + "safeName": "folderB" + }, + "snakeCase": { + "unsafeName": "folder_b", + "safeName": "folder_b" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_B", + "safeName": "FOLDER_B" + }, + "pascalCase": { + "unsafeName": "FolderB", + "safeName": "FolderB" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-c/common:Foo" + } + } + } + ] + }, + "type_folder-c/common:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + }, + { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + ], + "packagePath": [ + { + "originalName": "folder-c", + "camelCase": { + "unsafeName": "folderC", + "safeName": "folderC" + }, + "snakeCase": { + "unsafeName": "folder_c", + "safeName": "folder_c" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_C", + "safeName": "FOLDER_C" + }, + "pascalCase": { + "unsafeName": "FolderC", + "safeName": "FolderC" + } + } + ], + "file": { + "originalName": "common", + "camelCase": { + "unsafeName": "common", + "safeName": "common" + }, + "snakeCase": { + "unsafeName": "common", + "safeName": "common" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON", + "safeName": "COMMON" + }, + "pascalCase": { + "unsafeName": "Common", + "safeName": "Common" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "bar_property", + "camelCase": { + "unsafeName": "barProperty", + "safeName": "barProperty" + }, + "snakeCase": { + "unsafeName": "bar_property", + "safeName": "bar_property" + }, + "screamingSnakeCase": { + "unsafeName": "BAR_PROPERTY", + "safeName": "BAR_PROPERTY" + }, + "pascalCase": { + "unsafeName": "BarProperty", + "safeName": "BarProperty" + } + }, + "wireValue": "bar_property" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + } + ] + }, + "type_folder-d/service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_folder-b/common:Foo" + } + } + } + ] + }, + "type_foo:ImportingType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ImportingType", + "camelCase": { + "unsafeName": "importingType", + "safeName": "importingType" + }, + "snakeCase": { + "unsafeName": "importing_type", + "safeName": "importing_type" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTING_TYPE", + "safeName": "IMPORTING_TYPE" + }, + "pascalCase": { + "unsafeName": "ImportingType", + "safeName": "ImportingType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "imported", + "camelCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "snakeCase": { + "unsafeName": "imported", + "safeName": "imported" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTED", + "safeName": "IMPORTED" + }, + "pascalCase": { + "unsafeName": "Imported", + "safeName": "Imported" + } + }, + "wireValue": "imported" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Imported" + } + } + ] + }, + "type_foo:OptionalString": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "headers": [], + "endpoints": { + "endpoint_folder-a/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-a", + "camelCase": { + "unsafeName": "folderA", + "safeName": "folderA" + }, + "snakeCase": { + "unsafeName": "folder_a", + "safeName": "folder_a" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_A", + "safeName": "FOLDER_A" + }, + "pascalCase": { + "unsafeName": "FolderA", + "safeName": "FolderA" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder-d/service.getDirectThread": { + "auth": null, + "declaration": { + "name": { + "originalName": "getDirectThread", + "camelCase": { + "unsafeName": "getDirectThread", + "safeName": "getDirectThread" + }, + "snakeCase": { + "unsafeName": "get_direct_thread", + "safeName": "get_direct_thread" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DIRECT_THREAD", + "safeName": "GET_DIRECT_THREAD" + }, + "pascalCase": { + "unsafeName": "GetDirectThread", + "safeName": "GetDirectThread" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder-d", + "camelCase": { + "unsafeName": "folderD", + "safeName": "folderD" + }, + "snakeCase": { + "unsafeName": "folder_d", + "safeName": "folder_d" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER_D", + "safeName": "FOLDER_D" + }, + "pascalCase": { + "unsafeName": "FolderD", + "safeName": "FolderD" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_foo.find": { + "auth": null, + "declaration": { + "name": { + "originalName": "find", + "camelCase": { + "unsafeName": "find", + "safeName": "find" + }, + "snakeCase": { + "unsafeName": "find", + "safeName": "find" + }, + "screamingSnakeCase": { + "unsafeName": "FIND", + "safeName": "FIND" + }, + "pascalCase": { + "unsafeName": "Find", + "safeName": "Find" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FindRequest", + "camelCase": { + "unsafeName": "findRequest", + "safeName": "findRequest" + }, + "snakeCase": { + "unsafeName": "find_request", + "safeName": "find_request" + }, + "screamingSnakeCase": { + "unsafeName": "FIND_REQUEST", + "safeName": "FIND_REQUEST" + }, + "pascalCase": { + "unsafeName": "FindRequest", + "safeName": "FindRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + ], + "packagePath": [], + "file": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "named", + "value": "type_foo:OptionalString" + } + } + ], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "publicProperty", + "camelCase": { + "unsafeName": "publicProperty", + "safeName": "publicProperty" + }, + "snakeCase": { + "unsafeName": "public_property", + "safeName": "public_property" + }, + "screamingSnakeCase": { + "unsafeName": "PUBLIC_PROPERTY", + "safeName": "PUBLIC_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PublicProperty", + "safeName": "PublicProperty" + } + }, + "wireValue": "publicProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "privateProperty", + "camelCase": { + "unsafeName": "privateProperty", + "safeName": "privateProperty" + }, + "snakeCase": { + "unsafeName": "private_property", + "safeName": "private_property" + }, + "screamingSnakeCase": { + "unsafeName": "PRIVATE_PROPERTY", + "safeName": "PRIVATE_PROPERTY" + }, + "pascalCase": { + "unsafeName": "PrivateProperty", + "safeName": "PrivateProperty" + } + }, + "wireValue": "privateProperty" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_commons": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json index 58eb267d4d4..10c071de540 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json @@ -23771,6 +23771,3794 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Column": { + "type": "object", + "declaration": { + "name": { + "originalName": "Column", + "camelCase": { + "unsafeName": "column", + "safeName": "column" + }, + "snakeCase": { + "unsafeName": "column", + "safeName": "column" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMN", + "safeName": "COLUMN" + }, + "pascalCase": { + "unsafeName": "Column", + "safeName": "Column" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:DeleteResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeleteResponse", + "camelCase": { + "unsafeName": "deleteResponse", + "safeName": "deleteResponse" + }, + "snakeCase": { + "unsafeName": "delete_response", + "safeName": "delete_response" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_RESPONSE", + "safeName": "DELETE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "DeleteResponse", + "safeName": "DeleteResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [] + }, + "type_:DescribeResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "DescribeResponse", + "camelCase": { + "unsafeName": "describeResponse", + "safeName": "describeResponse" + }, + "snakeCase": { + "unsafeName": "describe_response", + "safeName": "describe_response" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE_RESPONSE", + "safeName": "DESCRIBE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "DescribeResponse", + "safeName": "DescribeResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "namespaces", + "camelCase": { + "unsafeName": "namespaces", + "safeName": "namespaces" + }, + "snakeCase": { + "unsafeName": "namespaces", + "safeName": "namespaces" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACES", + "safeName": "NAMESPACES" + }, + "pascalCase": { + "unsafeName": "Namespaces", + "safeName": "Namespaces" + } + }, + "wireValue": "namespaces" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:NamespaceSummary" + } + } + } + }, + { + "name": { + "name": { + "originalName": "dimension", + "camelCase": { + "unsafeName": "dimension", + "safeName": "dimension" + }, + "snakeCase": { + "unsafeName": "dimension", + "safeName": "dimension" + }, + "screamingSnakeCase": { + "unsafeName": "DIMENSION", + "safeName": "DIMENSION" + }, + "pascalCase": { + "unsafeName": "Dimension", + "safeName": "Dimension" + } + }, + "wireValue": "dimension" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "fullness", + "camelCase": { + "unsafeName": "fullness", + "safeName": "fullness" + }, + "snakeCase": { + "unsafeName": "fullness", + "safeName": "fullness" + }, + "screamingSnakeCase": { + "unsafeName": "FULLNESS", + "safeName": "FULLNESS" + }, + "pascalCase": { + "unsafeName": "Fullness", + "safeName": "Fullness" + } + }, + "wireValue": "fullness" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "totalCount", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "totalCount" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:FetchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "FetchResponse", + "camelCase": { + "unsafeName": "fetchResponse", + "safeName": "fetchResponse" + }, + "snakeCase": { + "unsafeName": "fetch_response", + "safeName": "fetch_response" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH_RESPONSE", + "safeName": "FETCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "FetchResponse", + "safeName": "FetchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:Column" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:IndexedData": { + "type": "object", + "declaration": { + "name": { + "originalName": "IndexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "indices", + "camelCase": { + "unsafeName": "indices", + "safeName": "indices" + }, + "snakeCase": { + "unsafeName": "indices", + "safeName": "indices" + }, + "screamingSnakeCase": { + "unsafeName": "INDICES", + "safeName": "INDICES" + }, + "pascalCase": { + "unsafeName": "Indices", + "safeName": "Indices" + } + }, + "wireValue": "indices" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + ] + }, + "type_:ListElement": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListElement", + "camelCase": { + "unsafeName": "listElement", + "safeName": "listElement" + }, + "snakeCase": { + "unsafeName": "list_element", + "safeName": "list_element" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_ELEMENT", + "safeName": "LIST_ELEMENT" + }, + "pascalCase": { + "unsafeName": "ListElement", + "safeName": "ListElement" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:ListResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListResponse", + "camelCase": { + "unsafeName": "listResponse", + "safeName": "listResponse" + }, + "snakeCase": { + "unsafeName": "list_response", + "safeName": "list_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESPONSE", + "safeName": "LIST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListResponse", + "safeName": "ListResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ListElement" + } + } + } + }, + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Pagination" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:NamespaceSummary": { + "type": "object", + "declaration": { + "name": { + "originalName": "NamespaceSummary", + "camelCase": { + "unsafeName": "namespaceSummary", + "safeName": "namespaceSummary" + }, + "snakeCase": { + "unsafeName": "namespace_summary", + "safeName": "namespace_summary" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE_SUMMARY", + "safeName": "NAMESPACE_SUMMARY" + }, + "pascalCase": { + "unsafeName": "NamespaceSummary", + "safeName": "NamespaceSummary" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "count", + "camelCase": { + "unsafeName": "count", + "safeName": "count" + }, + "snakeCase": { + "unsafeName": "count", + "safeName": "count" + }, + "screamingSnakeCase": { + "unsafeName": "COUNT", + "safeName": "COUNT" + }, + "pascalCase": { + "unsafeName": "Count", + "safeName": "Count" + } + }, + "wireValue": "count" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Pagination": { + "type": "object", + "declaration": { + "name": { + "originalName": "Pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:QueryColumn": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryColumn", + "camelCase": { + "unsafeName": "queryColumn", + "safeName": "queryColumn" + }, + "snakeCase": { + "unsafeName": "query_column", + "safeName": "query_column" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_COLUMN", + "safeName": "QUERY_COLUMN" + }, + "pascalCase": { + "unsafeName": "QueryColumn", + "safeName": "QueryColumn" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "topK", + "camelCase": { + "unsafeName": "topK", + "safeName": "topK" + }, + "snakeCase": { + "unsafeName": "top_k", + "safeName": "top_k" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_K", + "safeName": "TOP_K" + }, + "pascalCase": { + "unsafeName": "TopK", + "safeName": "TopK" + } + }, + "wireValue": "topK" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:QueryResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryResponse", + "camelCase": { + "unsafeName": "queryResponse", + "safeName": "queryResponse" + }, + "snakeCase": { + "unsafeName": "query_response", + "safeName": "query_response" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_RESPONSE", + "safeName": "QUERY_RESPONSE" + }, + "pascalCase": { + "unsafeName": "QueryResponse", + "safeName": "QueryResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + }, + "wireValue": "results" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:QueryResult" + } + } + } + }, + { + "name": { + "name": { + "originalName": "matches", + "camelCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "snakeCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "screamingSnakeCase": { + "unsafeName": "MATCHES", + "safeName": "MATCHES" + }, + "pascalCase": { + "unsafeName": "Matches", + "safeName": "Matches" + } + }, + "wireValue": "matches" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ScoredColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "wireValue": "usage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Usage" + } + } + } + ] + }, + "type_:QueryResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "QueryResult", + "camelCase": { + "unsafeName": "queryResult", + "safeName": "queryResult" + }, + "snakeCase": { + "unsafeName": "query_result", + "safeName": "query_result" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_RESULT", + "safeName": "QUERY_RESULT" + }, + "pascalCase": { + "unsafeName": "QueryResult", + "safeName": "QueryResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "matches", + "camelCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "snakeCase": { + "unsafeName": "matches", + "safeName": "matches" + }, + "screamingSnakeCase": { + "unsafeName": "MATCHES", + "safeName": "MATCHES" + }, + "pascalCase": { + "unsafeName": "Matches", + "safeName": "Matches" + } + }, + "wireValue": "matches" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ScoredColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_:ScoredColumn": { + "type": "object", + "declaration": { + "name": { + "originalName": "ScoredColumn", + "camelCase": { + "unsafeName": "scoredColumn", + "safeName": "scoredColumn" + }, + "snakeCase": { + "unsafeName": "scored_column", + "safeName": "scored_column" + }, + "screamingSnakeCase": { + "unsafeName": "SCORED_COLUMN", + "safeName": "SCORED_COLUMN" + }, + "pascalCase": { + "unsafeName": "ScoredColumn", + "safeName": "ScoredColumn" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "score", + "camelCase": { + "unsafeName": "score", + "safeName": "score" + }, + "snakeCase": { + "unsafeName": "score", + "safeName": "score" + }, + "screamingSnakeCase": { + "unsafeName": "SCORE", + "safeName": "SCORE" + }, + "pascalCase": { + "unsafeName": "Score", + "safeName": "Score" + } + }, + "wireValue": "score" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "type_:UpdateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdateResponse", + "camelCase": { + "unsafeName": "updateResponse", + "safeName": "updateResponse" + }, + "snakeCase": { + "unsafeName": "update_response", + "safeName": "update_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_RESPONSE", + "safeName": "UPDATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UpdateResponse", + "safeName": "UpdateResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [] + }, + "type_:UploadResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UploadResponse", + "camelCase": { + "unsafeName": "uploadResponse", + "safeName": "uploadResponse" + }, + "snakeCase": { + "unsafeName": "upload_response", + "safeName": "upload_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD_RESPONSE", + "safeName": "UPLOAD_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UploadResponse", + "safeName": "UploadResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "count", + "camelCase": { + "unsafeName": "count", + "safeName": "count" + }, + "snakeCase": { + "unsafeName": "count", + "safeName": "count" + }, + "screamingSnakeCase": { + "unsafeName": "COUNT", + "safeName": "COUNT" + }, + "pascalCase": { + "unsafeName": "Count", + "safeName": "Count" + } + }, + "wireValue": "count" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Usage": { + "type": "object", + "declaration": { + "name": { + "originalName": "Usage", + "camelCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "snakeCase": { + "unsafeName": "usage", + "safeName": "usage" + }, + "screamingSnakeCase": { + "unsafeName": "USAGE", + "safeName": "USAGE" + }, + "pascalCase": { + "unsafeName": "Usage", + "safeName": "Usage" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "units", + "camelCase": { + "unsafeName": "units", + "safeName": "units" + }, + "snakeCase": { + "unsafeName": "units", + "safeName": "units" + }, + "screamingSnakeCase": { + "unsafeName": "UNITS", + "safeName": "UNITS" + }, + "pascalCase": { + "unsafeName": "Units", + "safeName": "Units" + } + }, + "wireValue": "units" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + } + ] + }, + "type_:Metadata": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:MetadataValue" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + ] + }, + "type_:MetadataValue": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MetadataValue", + "camelCase": { + "unsafeName": "metadataValue", + "safeName": "metadataValue" + }, + "snakeCase": { + "unsafeName": "metadata_value", + "safeName": "metadata_value" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_VALUE", + "safeName": "METADATA_VALUE" + }, + "pascalCase": { + "unsafeName": "MetadataValue", + "safeName": "MetadataValue" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "primitive", + "value": "DOUBLE" + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dataservice.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/foo" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.upload": { + "auth": null, + "declaration": { + "name": { + "originalName": "upload", + "camelCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "snakeCase": { + "unsafeName": "upload", + "safeName": "upload" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD", + "safeName": "UPLOAD" + }, + "pascalCase": { + "unsafeName": "Upload", + "safeName": "Upload" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "UploadRequest", + "camelCase": { + "unsafeName": "uploadRequest", + "safeName": "uploadRequest" + }, + "snakeCase": { + "unsafeName": "upload_request", + "safeName": "upload_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPLOAD_REQUEST", + "safeName": "UPLOAD_REQUEST" + }, + "pascalCase": { + "unsafeName": "UploadRequest", + "safeName": "UploadRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "columns", + "camelCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "snakeCase": { + "unsafeName": "columns", + "safeName": "columns" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMNS", + "safeName": "COLUMNS" + }, + "pascalCase": { + "unsafeName": "Columns", + "safeName": "Columns" + } + }, + "wireValue": "columns" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Column" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.delete": { + "auth": null, + "declaration": { + "name": { + "originalName": "delete", + "camelCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "snakeCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE", + "safeName": "DELETE" + }, + "pascalCase": { + "unsafeName": "Delete", + "safeName": "Delete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/delete" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "DeleteRequest", + "camelCase": { + "unsafeName": "deleteRequest", + "safeName": "deleteRequest" + }, + "snakeCase": { + "unsafeName": "delete_request", + "safeName": "delete_request" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_REQUEST", + "safeName": "DELETE_REQUEST" + }, + "pascalCase": { + "unsafeName": "DeleteRequest", + "safeName": "DeleteRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "ids", + "camelCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "snakeCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "screamingSnakeCase": { + "unsafeName": "IDS", + "safeName": "IDS" + }, + "pascalCase": { + "unsafeName": "IDs", + "safeName": "IDs" + } + }, + "wireValue": "ids" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "deleteAll", + "camelCase": { + "unsafeName": "deleteAll", + "safeName": "deleteAll" + }, + "snakeCase": { + "unsafeName": "delete_all", + "safeName": "delete_all" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_ALL", + "safeName": "DELETE_ALL" + }, + "pascalCase": { + "unsafeName": "DeleteAll", + "safeName": "DeleteAll" + } + }, + "wireValue": "deleteAll" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.describe": { + "auth": null, + "declaration": { + "name": { + "originalName": "describe", + "camelCase": { + "unsafeName": "describe", + "safeName": "describe" + }, + "snakeCase": { + "unsafeName": "describe", + "safeName": "describe" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE", + "safeName": "DESCRIBE" + }, + "pascalCase": { + "unsafeName": "Describe", + "safeName": "Describe" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/describe" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "DescribeRequest", + "camelCase": { + "unsafeName": "describeRequest", + "safeName": "describeRequest" + }, + "snakeCase": { + "unsafeName": "describe_request", + "safeName": "describe_request" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBE_REQUEST", + "safeName": "DESCRIBE_REQUEST" + }, + "pascalCase": { + "unsafeName": "DescribeRequest", + "safeName": "DescribeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.fetch": { + "auth": null, + "declaration": { + "name": { + "originalName": "fetch", + "camelCase": { + "unsafeName": "fetch", + "safeName": "fetch" + }, + "snakeCase": { + "unsafeName": "fetch", + "safeName": "fetch" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH", + "safeName": "FETCH" + }, + "pascalCase": { + "unsafeName": "Fetch", + "safeName": "Fetch" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "GET", + "path": "/data/fetch" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "FetchRequest", + "camelCase": { + "unsafeName": "fetchRequest", + "safeName": "fetchRequest" + }, + "snakeCase": { + "unsafeName": "fetch_request", + "safeName": "fetch_request" + }, + "screamingSnakeCase": { + "unsafeName": "FETCH_REQUEST", + "safeName": "FETCH_REQUEST" + }, + "pascalCase": { + "unsafeName": "FetchRequest", + "safeName": "FetchRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "ids", + "camelCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "snakeCase": { + "unsafeName": "ids", + "safeName": "ids" + }, + "screamingSnakeCase": { + "unsafeName": "IDS", + "safeName": "IDS" + }, + "pascalCase": { + "unsafeName": "IDs", + "safeName": "IDs" + } + }, + "wireValue": "ids" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.list": { + "auth": null, + "declaration": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "GET", + "path": "/data/list" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListRequest", + "camelCase": { + "unsafeName": "listRequest", + "safeName": "listRequest" + }, + "snakeCase": { + "unsafeName": "list_request", + "safeName": "list_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_REQUEST", + "safeName": "LIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListRequest", + "safeName": "ListRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "prefix", + "camelCase": { + "unsafeName": "prefix", + "safeName": "prefix" + }, + "snakeCase": { + "unsafeName": "prefix", + "safeName": "prefix" + }, + "screamingSnakeCase": { + "unsafeName": "PREFIX", + "safeName": "PREFIX" + }, + "pascalCase": { + "unsafeName": "Prefix", + "safeName": "Prefix" + } + }, + "wireValue": "prefix" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "paginationToken", + "camelCase": { + "unsafeName": "paginationToken", + "safeName": "paginationToken" + }, + "snakeCase": { + "unsafeName": "pagination_token", + "safeName": "pagination_token" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION_TOKEN", + "safeName": "PAGINATION_TOKEN" + }, + "pascalCase": { + "unsafeName": "PaginationToken", + "safeName": "PaginationToken" + } + }, + "wireValue": "paginationToken" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.query": { + "auth": null, + "declaration": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "QueryRequest", + "camelCase": { + "unsafeName": "queryRequest", + "safeName": "queryRequest" + }, + "snakeCase": { + "unsafeName": "query_request", + "safeName": "query_request" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_REQUEST", + "safeName": "QUERY_REQUEST" + }, + "pascalCase": { + "unsafeName": "QueryRequest", + "safeName": "QueryRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "topK", + "camelCase": { + "unsafeName": "topK", + "safeName": "topK" + }, + "snakeCase": { + "unsafeName": "top_k", + "safeName": "top_k" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_K", + "safeName": "TOP_K" + }, + "pascalCase": { + "unsafeName": "TopK", + "safeName": "TopK" + } + }, + "wireValue": "topK" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT" + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "includeValues", + "camelCase": { + "unsafeName": "includeValues", + "safeName": "includeValues" + }, + "snakeCase": { + "unsafeName": "include_values", + "safeName": "include_values" + }, + "screamingSnakeCase": { + "unsafeName": "INCLUDE_VALUES", + "safeName": "INCLUDE_VALUES" + }, + "pascalCase": { + "unsafeName": "IncludeValues", + "safeName": "IncludeValues" + } + }, + "wireValue": "includeValues" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "includeMetadata", + "camelCase": { + "unsafeName": "includeMetadata", + "safeName": "includeMetadata" + }, + "snakeCase": { + "unsafeName": "include_metadata", + "safeName": "include_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "INCLUDE_METADATA", + "safeName": "INCLUDE_METADATA" + }, + "pascalCase": { + "unsafeName": "IncludeMetadata", + "safeName": "IncludeMetadata" + } + }, + "wireValue": "includeMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "queries", + "camelCase": { + "unsafeName": "queries", + "safeName": "queries" + }, + "snakeCase": { + "unsafeName": "queries", + "safeName": "queries" + }, + "screamingSnakeCase": { + "unsafeName": "QUERIES", + "safeName": "QUERIES" + }, + "pascalCase": { + "unsafeName": "Queries", + "safeName": "Queries" + } + }, + "wireValue": "queries" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:QueryColumn" + } + } + } + }, + { + "name": { + "name": { + "originalName": "column", + "camelCase": { + "unsafeName": "column", + "safeName": "column" + }, + "snakeCase": { + "unsafeName": "column", + "safeName": "column" + }, + "screamingSnakeCase": { + "unsafeName": "COLUMN", + "safeName": "COLUMN" + }, + "pascalCase": { + "unsafeName": "Column", + "safeName": "Column" + } + }, + "wireValue": "column" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dataservice.update": { + "auth": null, + "declaration": { + "name": { + "originalName": "update", + "camelCase": { + "unsafeName": "update", + "safeName": "update" + }, + "snakeCase": { + "unsafeName": "update", + "safeName": "update" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE", + "safeName": "UPDATE" + }, + "pascalCase": { + "unsafeName": "Update", + "safeName": "Update" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/data/update" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "UpdateRequest", + "camelCase": { + "unsafeName": "updateRequest", + "safeName": "updateRequest" + }, + "snakeCase": { + "unsafeName": "update_request", + "safeName": "update_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_REQUEST", + "safeName": "UPDATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "UpdateRequest", + "safeName": "UpdateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dataservice", + "camelCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "snakeCase": { + "unsafeName": "dataservice", + "safeName": "dataservice" + }, + "screamingSnakeCase": { + "unsafeName": "DATASERVICE", + "safeName": "DATASERVICE" + }, + "pascalCase": { + "unsafeName": "Dataservice", + "safeName": "Dataservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "values", + "camelCase": { + "unsafeName": "values", + "safeName": "values" + }, + "snakeCase": { + "unsafeName": "values", + "safeName": "values" + }, + "screamingSnakeCase": { + "unsafeName": "VALUES", + "safeName": "VALUES" + }, + "pascalCase": { + "unsafeName": "Values", + "safeName": "Values" + } + }, + "wireValue": "values" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + } + }, + { + "name": { + "name": { + "originalName": "setMetadata", + "camelCase": { + "unsafeName": "setMetadata", + "safeName": "setMetadata" + }, + "snakeCase": { + "unsafeName": "set_metadata", + "safeName": "set_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "SET_METADATA", + "safeName": "SET_METADATA" + }, + "pascalCase": { + "unsafeName": "SetMetadata", + "safeName": "SetMetadata" + } + }, + "wireValue": "setMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "namespace", + "camelCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "snakeCase": { + "unsafeName": "namespace", + "safeName": "namespace" + }, + "screamingSnakeCase": { + "unsafeName": "NAMESPACE", + "safeName": "NAMESPACE" + }, + "pascalCase": { + "unsafeName": "Namespace", + "safeName": "Namespace" + } + }, + "wireValue": "namespace" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "indexedData", + "camelCase": { + "unsafeName": "indexedData", + "safeName": "indexedData" + }, + "snakeCase": { + "unsafeName": "indexed_data", + "safeName": "indexed_data" + }, + "screamingSnakeCase": { + "unsafeName": "INDEXED_DATA", + "safeName": "INDEXED_DATA" + }, + "pascalCase": { + "unsafeName": "IndexedData", + "safeName": "IndexedData" + } + }, + "wireValue": "indexedData" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:IndexedData" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dataservice": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto.json index 8e164e2b2a7..bca94419a0b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-grpc-proto.json @@ -3064,6 +3064,665 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:CreateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateResponse", + "camelCase": { + "unsafeName": "createResponse", + "safeName": "createResponse" + }, + "snakeCase": { + "unsafeName": "create_response", + "safeName": "create_response" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RESPONSE", + "safeName": "CREATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "CreateResponse", + "safeName": "CreateResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:UserModel" + } + } + } + ] + }, + "type_:UserModel": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserModel", + "camelCase": { + "unsafeName": "userModel", + "safeName": "userModel" + }, + "snakeCase": { + "unsafeName": "user_model", + "safeName": "user_model" + }, + "screamingSnakeCase": { + "unsafeName": "USER_MODEL", + "safeName": "USER_MODEL" + }, + "pascalCase": { + "unsafeName": "UserModel", + "safeName": "UserModel" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "wireValue": "username" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + }, + "wireValue": "email" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "weight", + "camelCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "snakeCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "screamingSnakeCase": { + "unsafeName": "WEIGHT", + "safeName": "WEIGHT" + }, + "pascalCase": { + "unsafeName": "Weight", + "safeName": "Weight" + } + }, + "wireValue": "weight" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + }, + "type_:Metadata": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_:MetadataValue" + } + }, + { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + ] + }, + "type_:MetadataValue": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MetadataValue", + "camelCase": { + "unsafeName": "metadataValue", + "safeName": "metadataValue" + }, + "snakeCase": { + "unsafeName": "metadata_value", + "safeName": "metadata_value" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_VALUE", + "safeName": "METADATA_VALUE" + }, + "pascalCase": { + "unsafeName": "MetadataValue", + "safeName": "MetadataValue" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "primitive", + "value": "DOUBLE" + }, + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "primitive", + "value": "BOOLEAN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_userservice.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateRequest", + "camelCase": { + "unsafeName": "createRequest", + "safeName": "createRequest" + }, + "snakeCase": { + "unsafeName": "create_request", + "safeName": "create_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_REQUEST", + "safeName": "CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateRequest", + "safeName": "CreateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + ], + "packagePath": [], + "file": { + "originalName": "userservice", + "camelCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "snakeCase": { + "unsafeName": "userservice", + "safeName": "userservice" + }, + "screamingSnakeCase": { + "unsafeName": "USERSERVICE", + "safeName": "USERSERVICE" + }, + "pascalCase": { + "unsafeName": "Userservice", + "safeName": "Userservice" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "username", + "camelCase": { + "unsafeName": "username", + "safeName": "username" + }, + "snakeCase": { + "unsafeName": "username", + "safeName": "username" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME", + "safeName": "USERNAME" + }, + "pascalCase": { + "unsafeName": "Username", + "safeName": "Username" + } + }, + "wireValue": "username" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + }, + "wireValue": "email" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UINT" + } + } + }, + { + "name": { + "name": { + "originalName": "weight", + "camelCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "snakeCase": { + "unsafeName": "weight", + "safeName": "weight" + }, + "screamingSnakeCase": { + "unsafeName": "WEIGHT", + "safeName": "WEIGHT" + }, + "pascalCase": { + "unsafeName": "Weight", + "safeName": "Weight" + } + }, + "wireValue": "weight" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "FLOAT" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Metadata" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_userservice": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-namespace-conflict.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-namespace-conflict.json index e085ee0bcd1..1d88767c190 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-namespace-conflict.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/csharp-namespace-conflict.json @@ -1349,6 +1349,698 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_a/aa:A": { + "type": "object", + "declaration": { + "name": { + "originalName": "A", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [] + }, + "type_a/aa:B": { + "type": "object", + "declaration": { + "name": { + "originalName": "B", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [] + }, + "type_a/aa:SubTestType": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubTestType", + "camelCase": { + "unsafeName": "subTestType", + "safeName": "subTestType" + }, + "snakeCase": { + "unsafeName": "sub_test_type", + "safeName": "sub_test_type" + }, + "screamingSnakeCase": { + "unsafeName": "SUB_TEST_TYPE", + "safeName": "SUB_TEST_TYPE" + }, + "pascalCase": { + "unsafeName": "SubTestType", + "safeName": "SubTestType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "aa", + "camelCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "snakeCase": { + "unsafeName": "aa", + "safeName": "aa" + }, + "screamingSnakeCase": { + "unsafeName": "AA", + "safeName": "AA" + }, + "pascalCase": { + "unsafeName": "Aa", + "safeName": "Aa" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:A" + } + }, + { + "name": { + "name": { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "wireValue": "b" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:B" + } + } + ] + }, + "type_b:TestType": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestType", + "camelCase": { + "unsafeName": "testType", + "safeName": "testType" + }, + "snakeCase": { + "unsafeName": "test_type", + "safeName": "test_type" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_TYPE", + "safeName": "TEST_TYPE" + }, + "pascalCase": { + "unsafeName": "TestType", + "safeName": "TestType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "packagePath": [ + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + "wireValue": "a" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:A" + } + }, + { + "name": { + "name": { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + }, + "wireValue": "b" + }, + "typeReference": { + "_type": "named", + "value": "type_a/aa:B" + } + } + ] + }, + "type_tasktest:Task": { + "type": "object", + "declaration": { + "name": { + "originalName": "Task", + "camelCase": { + "unsafeName": "task", + "safeName": "task" + }, + "snakeCase": { + "unsafeName": "task", + "safeName": "task" + }, + "screamingSnakeCase": { + "unsafeName": "TASK", + "safeName": "TASK" + }, + "pascalCase": { + "unsafeName": "Task", + "safeName": "Task" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_tasktest.hello": { + "auth": null, + "declaration": { + "name": { + "originalName": "hello", + "camelCase": { + "unsafeName": "hello", + "safeName": "hello" + }, + "snakeCase": { + "unsafeName": "hello", + "safeName": "hello" + }, + "screamingSnakeCase": { + "unsafeName": "HELLO", + "safeName": "HELLO" + }, + "pascalCase": { + "unsafeName": "Hello", + "safeName": "Hello" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "tasktest", + "camelCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "snakeCase": { + "unsafeName": "tasktest", + "safeName": "tasktest" + }, + "screamingSnakeCase": { + "unsafeName": "TASKTEST", + "safeName": "TASKTEST" + }, + "pascalCase": { + "unsafeName": "Tasktest", + "safeName": "Tasktest" + } + } + } + }, + "location": { + "method": "GET", + "path": "/hello" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_a": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json index bfa84c4c355..d2968375152 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/custom-auth.json @@ -1009,6 +1009,334 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_errors:UnauthorizedRequestErrorBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnauthorizedRequestErrorBody", + "camelCase": { + "unsafeName": "unauthorizedRequestErrorBody", + "safeName": "unauthorizedRequestErrorBody" + }, + "snakeCase": { + "unsafeName": "unauthorized_request_error_body", + "safeName": "unauthorized_request_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "UNAUTHORIZED_REQUEST_ERROR_BODY", + "safeName": "UNAUTHORIZED_REQUEST_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "UnauthorizedRequestErrorBody", + "safeName": "UnauthorizedRequestErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_custom-auth.getWithCustomAuth": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "CustomAuthScheme", + "camelCase": { + "unsafeName": "customAuthScheme", + "safeName": "customAuthScheme" + }, + "snakeCase": { + "unsafeName": "custom_auth_scheme", + "safeName": "custom_auth_scheme" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH_SCHEME", + "safeName": "CUSTOM_AUTH_SCHEME" + }, + "pascalCase": { + "unsafeName": "CustomAuthScheme", + "safeName": "CustomAuthScheme" + } + }, + "wireValue": "X-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithCustomAuth", + "camelCase": { + "unsafeName": "getWithCustomAuth", + "safeName": "getWithCustomAuth" + }, + "snakeCase": { + "unsafeName": "get_with_custom_auth", + "safeName": "get_with_custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_CUSTOM_AUTH", + "safeName": "GET_WITH_CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "GetWithCustomAuth", + "safeName": "GetWithCustomAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + } + }, + "location": { + "method": "GET", + "path": "/custom-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_custom-auth.postWithCustomAuth": { + "auth": { + "type": "header", + "header": { + "name": { + "name": { + "originalName": "CustomAuthScheme", + "camelCase": { + "unsafeName": "customAuthScheme", + "safeName": "customAuthScheme" + }, + "snakeCase": { + "unsafeName": "custom_auth_scheme", + "safeName": "custom_auth_scheme" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH_SCHEME", + "safeName": "CUSTOM_AUTH_SCHEME" + }, + "pascalCase": { + "unsafeName": "CustomAuthScheme", + "safeName": "CustomAuthScheme" + } + }, + "wireValue": "X-API-KEY" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithCustomAuth", + "camelCase": { + "unsafeName": "postWithCustomAuth", + "safeName": "postWithCustomAuth" + }, + "snakeCase": { + "unsafeName": "post_with_custom_auth", + "safeName": "post_with_custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_CUSTOM_AUTH", + "safeName": "POST_WITH_CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithCustomAuth", + "safeName": "PostWithCustomAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "custom-auth", + "camelCase": { + "unsafeName": "customAuth", + "safeName": "customAuth" + }, + "snakeCase": { + "unsafeName": "custom_auth", + "safeName": "custom_auth" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_AUTH", + "safeName": "CUSTOM_AUTH" + }, + "pascalCase": { + "unsafeName": "CustomAuth", + "safeName": "CustomAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/custom-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_custom-auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json index 81d34605877..4916da181fd 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/enum.json @@ -3954,6 +3954,1180 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Operand": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "GREATER_THAN", + "camelCase": { + "unsafeName": "greaterThan", + "safeName": "greaterThan" + }, + "snakeCase": { + "unsafeName": "greater_than", + "safeName": "greater_than" + }, + "screamingSnakeCase": { + "unsafeName": "GREATER_THAN", + "safeName": "GREATER_THAN" + }, + "pascalCase": { + "unsafeName": "GreaterThan", + "safeName": "GreaterThan" + } + }, + "wireValue": ">" + }, + { + "name": { + "originalName": "EQUAL_TO", + "camelCase": { + "unsafeName": "equalTo", + "safeName": "equalTo" + }, + "snakeCase": { + "unsafeName": "equal_to", + "safeName": "equal_to" + }, + "screamingSnakeCase": { + "unsafeName": "EQUAL_TO", + "safeName": "EQUAL_TO" + }, + "pascalCase": { + "unsafeName": "EqualTo", + "safeName": "EqualTo" + } + }, + "wireValue": "=" + }, + { + "name": { + "originalName": "less_than", + "camelCase": { + "unsafeName": "lessThan", + "safeName": "lessThan" + }, + "snakeCase": { + "unsafeName": "less_than", + "safeName": "less_than" + }, + "screamingSnakeCase": { + "unsafeName": "LESS_THAN", + "safeName": "LESS_THAN" + }, + "pascalCase": { + "unsafeName": "LessThan", + "safeName": "LessThan" + } + }, + "wireValue": "less_than" + } + ] + }, + "type_:Color": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Color", + "camelCase": { + "unsafeName": "color", + "safeName": "color" + }, + "snakeCase": { + "unsafeName": "color", + "safeName": "color" + }, + "screamingSnakeCase": { + "unsafeName": "COLOR", + "safeName": "COLOR" + }, + "pascalCase": { + "unsafeName": "Color", + "safeName": "Color" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "RED", + "camelCase": { + "unsafeName": "red", + "safeName": "red" + }, + "snakeCase": { + "unsafeName": "red", + "safeName": "red" + }, + "screamingSnakeCase": { + "unsafeName": "RED", + "safeName": "RED" + }, + "pascalCase": { + "unsafeName": "Red", + "safeName": "Red" + } + }, + "wireValue": "red" + }, + { + "name": { + "originalName": "BLUE", + "camelCase": { + "unsafeName": "blue", + "safeName": "blue" + }, + "snakeCase": { + "unsafeName": "blue", + "safeName": "blue" + }, + "screamingSnakeCase": { + "unsafeName": "BLUE", + "safeName": "BLUE" + }, + "pascalCase": { + "unsafeName": "Blue", + "safeName": "Blue" + } + }, + "wireValue": "blue" + } + ] + }, + "type_:ColorOrOperand": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "ColorOrOperand", + "camelCase": { + "unsafeName": "colorOrOperand", + "safeName": "colorOrOperand" + }, + "snakeCase": { + "unsafeName": "color_or_operand", + "safeName": "color_or_operand" + }, + "screamingSnakeCase": { + "unsafeName": "COLOR_OR_OPERAND", + "safeName": "COLOR_OR_OPERAND" + }, + "pascalCase": { + "unsafeName": "ColorOrOperand", + "safeName": "ColorOrOperand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:Color" + }, + { + "_type": "named", + "value": "type_:Operand" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_inlined-request.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + } + }, + "location": { + "method": "POST", + "path": "/inlined" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumInlinedRequest", + "camelCase": { + "unsafeName": "sendEnumInlinedRequest", + "safeName": "sendEnumInlinedRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_inlined_request", + "safeName": "send_enum_inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_INLINED_REQUEST", + "safeName": "SEND_ENUM_INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumInlinedRequest", + "safeName": "SendEnumInlinedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-request", + "camelCase": { + "unsafeName": "inlinedRequest", + "safeName": "inlinedRequest" + }, + "snakeCase": { + "unsafeName": "inlined_request", + "safeName": "inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUEST", + "safeName": "INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "InlinedRequest", + "safeName": "InlinedRequest" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_path-param.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "path-param", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "path-param", + "camelCase": { + "unsafeName": "pathParam", + "safeName": "pathParam" + }, + "snakeCase": { + "unsafeName": "path_param", + "safeName": "path_param" + }, + "screamingSnakeCase": { + "unsafeName": "PATH_PARAM", + "safeName": "PATH_PARAM" + }, + "pascalCase": { + "unsafeName": "PathParam", + "safeName": "PathParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/path/{operand}/{operandOrColor}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_query-param.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumAsQueryParamRequest", + "camelCase": { + "unsafeName": "sendEnumAsQueryParamRequest", + "safeName": "sendEnumAsQueryParamRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_as_query_param_request", + "safeName": "send_enum_as_query_param_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_AS_QUERY_PARAM_REQUEST", + "safeName": "SEND_ENUM_AS_QUERY_PARAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumAsQueryParamRequest", + "safeName": "SendEnumAsQueryParamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "named", + "value": "type_:Operand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_query-param.sendList": { + "auth": null, + "declaration": { + "name": { + "originalName": "sendList", + "camelCase": { + "unsafeName": "sendList", + "safeName": "sendList" + }, + "snakeCase": { + "unsafeName": "send_list", + "safeName": "send_list" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LIST", + "safeName": "SEND_LIST" + }, + "pascalCase": { + "unsafeName": "SendList", + "safeName": "SendList" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query-list" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendEnumListAsQueryParamRequest", + "camelCase": { + "unsafeName": "sendEnumListAsQueryParamRequest", + "safeName": "sendEnumListAsQueryParamRequest" + }, + "snakeCase": { + "unsafeName": "send_enum_list_as_query_param_request", + "safeName": "send_enum_list_as_query_param_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_ENUM_LIST_AS_QUERY_PARAM_REQUEST", + "safeName": "SEND_ENUM_LIST_AS_QUERY_PARAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendEnumListAsQueryParamRequest", + "safeName": "SendEnumListAsQueryParamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query-param", + "camelCase": { + "unsafeName": "queryParam", + "safeName": "queryParam" + }, + "snakeCase": { + "unsafeName": "query_param", + "safeName": "query_param" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY_PARAM", + "safeName": "QUERY_PARAM" + }, + "pascalCase": { + "unsafeName": "QueryParam", + "safeName": "QueryParam" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "wireValue": "operand" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + }, + { + "name": { + "name": { + "originalName": "maybeOperand", + "camelCase": { + "unsafeName": "maybeOperand", + "safeName": "maybeOperand" + }, + "snakeCase": { + "unsafeName": "maybe_operand", + "safeName": "maybe_operand" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND", + "safeName": "MAYBE_OPERAND" + }, + "pascalCase": { + "unsafeName": "MaybeOperand", + "safeName": "MaybeOperand" + } + }, + "wireValue": "maybeOperand" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Operand" + } + } + } + }, + { + "name": { + "name": { + "originalName": "operandOrColor", + "camelCase": { + "unsafeName": "operandOrColor", + "safeName": "operandOrColor" + }, + "snakeCase": { + "unsafeName": "operand_or_color", + "safeName": "operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND_OR_COLOR", + "safeName": "OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "OperandOrColor", + "safeName": "OperandOrColor" + } + }, + "wireValue": "operandOrColor" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + }, + { + "name": { + "name": { + "originalName": "maybeOperandOrColor", + "camelCase": { + "unsafeName": "maybeOperandOrColor", + "safeName": "maybeOperandOrColor" + }, + "snakeCase": { + "unsafeName": "maybe_operand_or_color", + "safeName": "maybe_operand_or_color" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_OPERAND_OR_COLOR", + "safeName": "MAYBE_OPERAND_OR_COLOR" + }, + "pascalCase": { + "unsafeName": "MaybeOperandOrColor", + "safeName": "MaybeOperandOrColor" + } + }, + "wireValue": "maybeOperandOrColor" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:ColorOrOperand" + } + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_inlined-request": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json index eafbb96d9b6..4356fdecc08 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/error-property.json @@ -641,6 +641,190 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_errors:PropertyBasedErrorTestBody": { + "type": "object", + "declaration": { + "name": { + "originalName": "PropertyBasedErrorTestBody", + "camelCase": { + "unsafeName": "propertyBasedErrorTestBody", + "safeName": "propertyBasedErrorTestBody" + }, + "snakeCase": { + "unsafeName": "property_based_error_test_body", + "safeName": "property_based_error_test_body" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR_TEST_BODY", + "safeName": "PROPERTY_BASED_ERROR_TEST_BODY" + }, + "pascalCase": { + "unsafeName": "PropertyBasedErrorTestBody", + "safeName": "PropertyBasedErrorTestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "errors", + "camelCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "snakeCase": { + "unsafeName": "errors", + "safeName": "errors" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORS", + "safeName": "ERRORS" + }, + "pascalCase": { + "unsafeName": "Errors", + "safeName": "Errors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_property-based-error.ThrowError": { + "auth": null, + "declaration": { + "name": { + "originalName": "ThrowError", + "camelCase": { + "unsafeName": "throwError", + "safeName": "throwError" + }, + "snakeCase": { + "unsafeName": "throw_error", + "safeName": "throw_error" + }, + "screamingSnakeCase": { + "unsafeName": "THROW_ERROR", + "safeName": "THROW_ERROR" + }, + "pascalCase": { + "unsafeName": "ThrowError", + "safeName": "ThrowError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "property-based-error", + "camelCase": { + "unsafeName": "propertyBasedError", + "safeName": "propertyBasedError" + }, + "snakeCase": { + "unsafeName": "property_based_error", + "safeName": "property_based_error" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR", + "safeName": "PROPERTY_BASED_ERROR" + }, + "pascalCase": { + "unsafeName": "PropertyBasedError", + "safeName": "PropertyBasedError" + } + } + ], + "packagePath": [], + "file": { + "originalName": "property-based-error", + "camelCase": { + "unsafeName": "propertyBasedError", + "safeName": "propertyBasedError" + }, + "snakeCase": { + "unsafeName": "property_based_error", + "safeName": "property_based_error" + }, + "screamingSnakeCase": { + "unsafeName": "PROPERTY_BASED_ERROR", + "safeName": "PROPERTY_BASED_ERROR" + }, + "pascalCase": { + "unsafeName": "PropertyBasedError", + "safeName": "PropertyBasedError" + } + } + } + }, + "location": { + "method": "GET", + "path": "/property-based-error" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_errors": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json index ace70ceea6c..725401050e7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/examples.json @@ -37230,6 +37230,6610 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Type": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:BasicType" + }, + { + "_type": "named", + "value": "type_:ComplexType" + } + ] + }, + "type_:Identifier": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifier", + "camelCase": { + "unsafeName": "identifier", + "safeName": "identifier" + }, + "snakeCase": { + "unsafeName": "identifier", + "safeName": "identifier" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIER", + "safeName": "IDENTIFIER" + }, + "pascalCase": { + "unsafeName": "Identifier", + "safeName": "Identifier" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "label", + "camelCase": { + "unsafeName": "label", + "safeName": "label" + }, + "snakeCase": { + "unsafeName": "label", + "safeName": "label" + }, + "screamingSnakeCase": { + "unsafeName": "LABEL", + "safeName": "LABEL" + }, + "pascalCase": { + "unsafeName": "Label", + "safeName": "Label" + } + }, + "wireValue": "label" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:BasicType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "BasicType", + "camelCase": { + "unsafeName": "basicType", + "safeName": "basicType" + }, + "snakeCase": { + "unsafeName": "basic_type", + "safeName": "basic_type" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TYPE", + "safeName": "BASIC_TYPE" + }, + "pascalCase": { + "unsafeName": "BasicType", + "safeName": "BasicType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "Primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + }, + "wireValue": "primitive" + }, + { + "name": { + "originalName": "Literal", + "camelCase": { + "unsafeName": "literal", + "safeName": "literal" + }, + "snakeCase": { + "unsafeName": "literal", + "safeName": "literal" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL", + "safeName": "LITERAL" + }, + "pascalCase": { + "unsafeName": "Literal", + "safeName": "Literal" + } + }, + "wireValue": "literal" + } + ] + }, + "type_:ComplexType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ComplexType", + "camelCase": { + "unsafeName": "complexType", + "safeName": "complexType" + }, + "snakeCase": { + "unsafeName": "complex_type", + "safeName": "complex_type" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLEX_TYPE", + "safeName": "COMPLEX_TYPE" + }, + "pascalCase": { + "unsafeName": "ComplexType", + "safeName": "ComplexType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "Object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + }, + "wireValue": "object" + }, + { + "name": { + "originalName": "Union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + }, + "wireValue": "union" + }, + { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + } + ] + }, + "type_commons/types:Tag": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons/types:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "jsonString", + "camelCase": { + "unsafeName": "jsonString", + "safeName": "jsonString" + }, + "snakeCase": { + "unsafeName": "json_string", + "safeName": "json_string" + }, + "screamingSnakeCase": { + "unsafeName": "JSON_STRING", + "safeName": "JSON_STRING" + }, + "pascalCase": { + "unsafeName": "JSONString", + "safeName": "JSONString" + } + }, + "wireValue": "jsonString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_commons/types:EventInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "EventInfo", + "camelCase": { + "unsafeName": "eventInfo", + "safeName": "eventInfo" + }, + "snakeCase": { + "unsafeName": "event_info", + "safeName": "event_info" + }, + "screamingSnakeCase": { + "unsafeName": "EVENT_INFO", + "safeName": "EVENT_INFO" + }, + "pascalCase": { + "unsafeName": "EventInfo", + "safeName": "EventInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "metadata": { + "type": "samePropertiesAsObject", + "typeId": "type_commons/types:Metadata", + "discriminantValue": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "properties": [] + }, + "tag": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + }, + "discriminantValue": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "properties": null + } + } + }, + "type_commons/types:Data": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": null + }, + "base64": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + }, + "discriminantValue": { + "name": { + "originalName": "base64", + "camelCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "snakeCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "screamingSnakeCase": { + "unsafeName": "BASE64", + "safeName": "BASE64" + }, + "pascalCase": { + "unsafeName": "Base64", + "safeName": "Base64" + } + }, + "wireValue": "base64" + }, + "properties": null + } + } + }, + "type_file/service:Filename": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_types:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_types:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "prequel", + "camelCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "snakeCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "screamingSnakeCase": { + "unsafeName": "PREQUEL", + "safeName": "PREQUEL" + }, + "pascalCase": { + "unsafeName": "Prequel", + "safeName": "Prequel" + } + }, + "wireValue": "prequel" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:MovieId" + } + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "from", + "camelCase": { + "unsafeName": "from", + "safeName": "from" + }, + "snakeCase": { + "unsafeName": "from", + "safeName": "from" + }, + "screamingSnakeCase": { + "unsafeName": "FROM", + "safeName": "FROM" + }, + "pascalCase": { + "unsafeName": "From", + "safeName": "From" + } + }, + "wireValue": "from" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "movie" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + } + }, + { + "name": { + "name": { + "originalName": "book", + "camelCase": { + "unsafeName": "book", + "safeName": "book" + }, + "snakeCase": { + "unsafeName": "book", + "safeName": "book" + }, + "screamingSnakeCase": { + "unsafeName": "BOOK", + "safeName": "BOOK" + }, + "pascalCase": { + "unsafeName": "Book", + "safeName": "Book" + } + }, + "wireValue": "book" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + }, + { + "name": { + "name": { + "originalName": "revenue", + "camelCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "snakeCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "screamingSnakeCase": { + "unsafeName": "REVENUE", + "safeName": "REVENUE" + }, + "pascalCase": { + "unsafeName": "Revenue", + "safeName": "Revenue" + } + }, + "wireValue": "revenue" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + } + ] + }, + "type_types:CastMember": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "CastMember", + "camelCase": { + "unsafeName": "castMember", + "safeName": "castMember" + }, + "snakeCase": { + "unsafeName": "cast_member", + "safeName": "cast_member" + }, + "screamingSnakeCase": { + "unsafeName": "CAST_MEMBER", + "safeName": "CAST_MEMBER" + }, + "pascalCase": { + "unsafeName": "CastMember", + "safeName": "CastMember" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "types": [ + { + "_type": "named", + "value": "type_types:Actor" + }, + { + "_type": "named", + "value": "type_types:Actress" + }, + { + "_type": "named", + "value": "type_types:StuntDouble" + } + ] + }, + "type_types:Actor": { + "type": "object", + "declaration": { + "name": { + "originalName": "Actor", + "camelCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "snakeCase": { + "unsafeName": "actor", + "safeName": "actor" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR", + "safeName": "ACTOR" + }, + "pascalCase": { + "unsafeName": "Actor", + "safeName": "Actor" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Actress": { + "type": "object", + "declaration": { + "name": { + "originalName": "Actress", + "camelCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "snakeCase": { + "unsafeName": "actress", + "safeName": "actress" + }, + "screamingSnakeCase": { + "unsafeName": "ACTRESS", + "safeName": "ACTRESS" + }, + "pascalCase": { + "unsafeName": "Actress", + "safeName": "Actress" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:StuntDouble": { + "type": "object", + "declaration": { + "name": { + "originalName": "StuntDouble", + "camelCase": { + "unsafeName": "stuntDouble", + "safeName": "stuntDouble" + }, + "snakeCase": { + "unsafeName": "stunt_double", + "safeName": "stunt_double" + }, + "screamingSnakeCase": { + "unsafeName": "STUNT_DOUBLE", + "safeName": "STUNT_DOUBLE" + }, + "pascalCase": { + "unsafeName": "StuntDouble", + "safeName": "StuntDouble" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "actorOrActressId", + "camelCase": { + "unsafeName": "actorOrActressID", + "safeName": "actorOrActressID" + }, + "snakeCase": { + "unsafeName": "actor_or_actress_id", + "safeName": "actor_or_actress_id" + }, + "screamingSnakeCase": { + "unsafeName": "ACTOR_OR_ACTRESS_ID", + "safeName": "ACTOR_OR_ACTRESS_ID" + }, + "pascalCase": { + "unsafeName": "ActorOrActressID", + "safeName": "ActorOrActressID" + } + }, + "wireValue": "actorOrActressId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:ExtendedMovie": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExtendedMovie", + "camelCase": { + "unsafeName": "extendedMovie", + "safeName": "extendedMovie" + }, + "snakeCase": { + "unsafeName": "extended_movie", + "safeName": "extended_movie" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_MOVIE", + "safeName": "EXTENDED_MOVIE" + }, + "pascalCase": { + "unsafeName": "ExtendedMovie", + "safeName": "ExtendedMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "prequel", + "camelCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "snakeCase": { + "unsafeName": "prequel", + "safeName": "prequel" + }, + "screamingSnakeCase": { + "unsafeName": "PREQUEL", + "safeName": "PREQUEL" + }, + "pascalCase": { + "unsafeName": "Prequel", + "safeName": "Prequel" + } + }, + "wireValue": "prequel" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:MovieId" + } + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "from", + "camelCase": { + "unsafeName": "from", + "safeName": "from" + }, + "snakeCase": { + "unsafeName": "from", + "safeName": "from" + }, + "screamingSnakeCase": { + "unsafeName": "FROM", + "safeName": "FROM" + }, + "pascalCase": { + "unsafeName": "From", + "safeName": "From" + } + }, + "wireValue": "from" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "movie" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "named", + "value": "type_commons/types:Tag" + } + }, + { + "name": { + "name": { + "originalName": "book", + "camelCase": { + "unsafeName": "book", + "safeName": "book" + }, + "snakeCase": { + "unsafeName": "book", + "safeName": "book" + }, + "screamingSnakeCase": { + "unsafeName": "BOOK", + "safeName": "BOOK" + }, + "pascalCase": { + "unsafeName": "Book", + "safeName": "Book" + } + }, + "wireValue": "book" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + }, + { + "name": { + "name": { + "originalName": "revenue", + "camelCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "snakeCase": { + "unsafeName": "revenue", + "safeName": "revenue" + }, + "screamingSnakeCase": { + "unsafeName": "REVENUE", + "safeName": "REVENUE" + }, + "pascalCase": { + "unsafeName": "Revenue", + "safeName": "Revenue" + } + }, + "wireValue": "revenue" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + }, + { + "name": { + "name": { + "originalName": "cast", + "camelCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "snakeCase": { + "unsafeName": "cast", + "safeName": "cast" + }, + "screamingSnakeCase": { + "unsafeName": "CAST", + "safeName": "CAST" + }, + "pascalCase": { + "unsafeName": "Cast", + "safeName": "Cast" + } + }, + "wireValue": "cast" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_types:Moment": { + "type": "object", + "declaration": { + "name": { + "originalName": "Moment", + "camelCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "snakeCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "screamingSnakeCase": { + "unsafeName": "MOMENT", + "safeName": "MOMENT" + }, + "pascalCase": { + "unsafeName": "Moment", + "safeName": "Moment" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + ] + }, + "type_types:File": { + "type": "object", + "declaration": { + "name": { + "originalName": "File", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Directory": { + "type": "object", + "declaration": { + "name": { + "originalName": "Directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:File" + } + } + } + }, + { + "name": { + "name": { + "originalName": "directories", + "camelCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "snakeCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORIES", + "safeName": "DIRECTORIES" + }, + "pascalCase": { + "unsafeName": "Directories", + "safeName": "Directories" + } + }, + "wireValue": "directories" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Directory" + } + } + } + } + ] + }, + "type_types:Node": { + "type": "object", + "declaration": { + "name": { + "originalName": "Node", + "camelCase": { + "unsafeName": "node", + "safeName": "node" + }, + "snakeCase": { + "unsafeName": "node", + "safeName": "node" + }, + "screamingSnakeCase": { + "unsafeName": "NODE", + "safeName": "NODE" + }, + "pascalCase": { + "unsafeName": "Node", + "safeName": "Node" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Node" + } + } + } + }, + { + "name": { + "name": { + "originalName": "trees", + "camelCase": { + "unsafeName": "trees", + "safeName": "trees" + }, + "snakeCase": { + "unsafeName": "trees", + "safeName": "trees" + }, + "screamingSnakeCase": { + "unsafeName": "TREES", + "safeName": "TREES" + }, + "pascalCase": { + "unsafeName": "Trees", + "safeName": "Trees" + } + }, + "wireValue": "trees" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Tree" + } + } + } + } + ] + }, + "type_types:Tree": { + "type": "object", + "declaration": { + "name": { + "originalName": "Tree", + "camelCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "snakeCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "screamingSnakeCase": { + "unsafeName": "TREE", + "safeName": "TREE" + }, + "pascalCase": { + "unsafeName": "Tree", + "safeName": "Tree" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types:Node" + } + } + } + } + ] + }, + "type_types:Metadata": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "extra", + "camelCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "snakeCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA", + "safeName": "EXTRA" + }, + "pascalCase": { + "unsafeName": "Extra", + "safeName": "Extra" + } + }, + "wireValue": "extra" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "markdown": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "markdown", + "camelCase": { + "unsafeName": "markdown", + "safeName": "markdown" + }, + "snakeCase": { + "unsafeName": "markdown", + "safeName": "markdown" + }, + "screamingSnakeCase": { + "unsafeName": "MARKDOWN", + "safeName": "MARKDOWN" + }, + "pascalCase": { + "unsafeName": "Markdown", + "safeName": "Markdown" + } + }, + "wireValue": "markdown" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "extra", + "camelCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "snakeCase": { + "unsafeName": "extra", + "safeName": "extra" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA", + "safeName": "EXTRA" + }, + "pascalCase": { + "unsafeName": "Extra", + "safeName": "Extra" + } + }, + "wireValue": "extra" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + } + }, + "type_types:Exception": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_types:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [] + }, + "timeout": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "timeout", + "camelCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "snakeCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "screamingSnakeCase": { + "unsafeName": "TIMEOUT", + "safeName": "TIMEOUT" + }, + "pascalCase": { + "unsafeName": "Timeout", + "safeName": "Timeout" + } + }, + "wireValue": "timeout" + }, + "properties": null + } + } + }, + "type_types:ExceptionInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:MigrationStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "MigrationStatus", + "camelCase": { + "unsafeName": "migrationStatus", + "safeName": "migrationStatus" + }, + "snakeCase": { + "unsafeName": "migration_status", + "safeName": "migration_status" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION_STATUS", + "safeName": "MIGRATION_STATUS" + }, + "pascalCase": { + "unsafeName": "MigrationStatus", + "safeName": "MigrationStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "RUNNING", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "RUNNING" + }, + { + "name": { + "originalName": "FAILED", + "camelCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "snakeCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED", + "safeName": "FAILED" + }, + "pascalCase": { + "unsafeName": "Failed", + "safeName": "Failed" + } + }, + "wireValue": "FAILED" + }, + { + "name": { + "originalName": "FINISHED", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "FINISHED" + } + ] + }, + "type_types:Migration": { + "type": "object", + "declaration": { + "name": { + "originalName": "Migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MigrationStatus" + } + } + ] + }, + "type_types:Request": { + "type": "object", + "declaration": { + "name": { + "originalName": "Request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_types:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "wireValue": "response" + }, + "typeReference": { + "_type": "unknown" + } + }, + { + "name": { + "name": { + "originalName": "identifiers", + "camelCase": { + "unsafeName": "identifiers", + "safeName": "identifiers" + }, + "snakeCase": { + "unsafeName": "identifiers", + "safeName": "identifiers" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIERS", + "safeName": "IDENTIFIERS" + }, + "pascalCase": { + "unsafeName": "Identifiers", + "safeName": "Identifiers" + } + }, + "wireValue": "identifiers" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Identifier" + } + } + } + ] + }, + "type_types:ResponseType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ResponseType", + "camelCase": { + "unsafeName": "responseType", + "safeName": "responseType" + }, + "snakeCase": { + "unsafeName": "response_type", + "safeName": "response_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE_TYPE", + "safeName": "RESPONSE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResponseType", + "safeName": "ResponseType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + } + ] + }, + "type_types:Test": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "and": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "and", + "camelCase": { + "unsafeName": "and", + "safeName": "and" + }, + "snakeCase": { + "unsafeName": "and", + "safeName": "and" + }, + "screamingSnakeCase": { + "unsafeName": "AND", + "safeName": "AND" + }, + "pascalCase": { + "unsafeName": "And", + "safeName": "And" + } + }, + "wireValue": "and" + }, + "properties": null + }, + "or": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "or", + "camelCase": { + "unsafeName": "or", + "safeName": "or" + }, + "snakeCase": { + "unsafeName": "or", + "safeName": "or" + }, + "screamingSnakeCase": { + "unsafeName": "OR", + "safeName": "OR" + }, + "pascalCase": { + "unsafeName": "Or", + "safeName": "Or" + } + }, + "wireValue": "or" + }, + "properties": null + } + } + }, + "type_types:Entity": { + "type": "object", + "declaration": { + "name": { + "originalName": "Entity", + "camelCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "snakeCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "screamingSnakeCase": { + "unsafeName": "ENTITY", + "safeName": "ENTITY" + }, + "pascalCase": { + "unsafeName": "Entity", + "safeName": "Entity" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "named", + "value": "type_:Type" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:BigEntity": { + "type": "object", + "declaration": { + "name": { + "originalName": "BigEntity", + "camelCase": { + "unsafeName": "bigEntity", + "safeName": "bigEntity" + }, + "snakeCase": { + "unsafeName": "big_entity", + "safeName": "big_entity" + }, + "screamingSnakeCase": { + "unsafeName": "BIG_ENTITY", + "safeName": "BIG_ENTITY" + }, + "pascalCase": { + "unsafeName": "BigEntity", + "safeName": "BigEntity" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "castMember", + "camelCase": { + "unsafeName": "castMember", + "safeName": "castMember" + }, + "snakeCase": { + "unsafeName": "cast_member", + "safeName": "cast_member" + }, + "screamingSnakeCase": { + "unsafeName": "CAST_MEMBER", + "safeName": "CAST_MEMBER" + }, + "pascalCase": { + "unsafeName": "CastMember", + "safeName": "CastMember" + } + }, + "wireValue": "castMember" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:CastMember" + } + } + }, + { + "name": { + "name": { + "originalName": "extendedMovie", + "camelCase": { + "unsafeName": "extendedMovie", + "safeName": "extendedMovie" + }, + "snakeCase": { + "unsafeName": "extended_movie", + "safeName": "extended_movie" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_MOVIE", + "safeName": "EXTENDED_MOVIE" + }, + "pascalCase": { + "unsafeName": "ExtendedMovie", + "safeName": "ExtendedMovie" + } + }, + "wireValue": "extendedMovie" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:ExtendedMovie" + } + } + }, + { + "name": { + "name": { + "originalName": "entity", + "camelCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "snakeCase": { + "unsafeName": "entity", + "safeName": "entity" + }, + "screamingSnakeCase": { + "unsafeName": "ENTITY", + "safeName": "ENTITY" + }, + "pascalCase": { + "unsafeName": "Entity", + "safeName": "Entity" + } + }, + "wireValue": "entity" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Entity" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "commonMetadata", + "camelCase": { + "unsafeName": "commonMetadata", + "safeName": "commonMetadata" + }, + "snakeCase": { + "unsafeName": "common_metadata", + "safeName": "common_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "COMMON_METADATA", + "safeName": "COMMON_METADATA" + }, + "pascalCase": { + "unsafeName": "CommonMetadata", + "safeName": "CommonMetadata" + } + }, + "wireValue": "commonMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons/types:Metadata" + } + } + }, + { + "name": { + "name": { + "originalName": "eventInfo", + "camelCase": { + "unsafeName": "eventInfo", + "safeName": "eventInfo" + }, + "snakeCase": { + "unsafeName": "event_info", + "safeName": "event_info" + }, + "screamingSnakeCase": { + "unsafeName": "EVENT_INFO", + "safeName": "EVENT_INFO" + }, + "pascalCase": { + "unsafeName": "EventInfo", + "safeName": "EventInfo" + } + }, + "wireValue": "eventInfo" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons/types:EventInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons/types:Data" + } + } + }, + { + "name": { + "name": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + }, + "wireValue": "migration" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Migration" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Exception" + } + } + }, + { + "name": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "test" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Test" + } + } + }, + { + "name": { + "name": { + "originalName": "node", + "camelCase": { + "unsafeName": "node", + "safeName": "node" + }, + "snakeCase": { + "unsafeName": "node", + "safeName": "node" + }, + "screamingSnakeCase": { + "unsafeName": "NODE", + "safeName": "NODE" + }, + "pascalCase": { + "unsafeName": "Node", + "safeName": "Node" + } + }, + "wireValue": "node" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Node" + } + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Directory" + } + } + }, + { + "name": { + "name": { + "originalName": "moment", + "camelCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "snakeCase": { + "unsafeName": "moment", + "safeName": "moment" + }, + "screamingSnakeCase": { + "unsafeName": "MOMENT", + "safeName": "MOMENT" + }, + "pascalCase": { + "unsafeName": "Moment", + "safeName": "Moment" + } + }, + "wireValue": "moment" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types:Moment" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.echo": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "echo", + "camelCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "snakeCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO", + "safeName": "ECHO" + }, + "pascalCase": { + "unsafeName": "Echo", + "safeName": "Echo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_.createType": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createType", + "camelCase": { + "unsafeName": "createType", + "safeName": "createType" + }, + "snakeCase": { + "unsafeName": "create_type", + "safeName": "create_type" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_TYPE", + "safeName": "CREATE_TYPE" + }, + "pascalCase": { + "unsafeName": "CreateType", + "safeName": "CreateType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_:Type" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_file/notification/service.getException": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getException", + "camelCase": { + "unsafeName": "getException", + "safeName": "getException" + }, + "snakeCase": { + "unsafeName": "get_exception", + "safeName": "get_exception" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXCEPTION", + "safeName": "GET_EXCEPTION" + }, + "pascalCase": { + "unsafeName": "GetException", + "safeName": "GetException" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "notification", + "camelCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "snakeCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION", + "safeName": "NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "Notification", + "safeName": "Notification" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "notification", + "camelCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "snakeCase": { + "unsafeName": "notification", + "safeName": "notification" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION", + "safeName": "NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "Notification", + "safeName": "Notification" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/file/notification/{notificationId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "notificationId", + "camelCase": { + "unsafeName": "notificationID", + "safeName": "notificationID" + }, + "snakeCase": { + "unsafeName": "notification_id", + "safeName": "notification_id" + }, + "screamingSnakeCase": { + "unsafeName": "NOTIFICATION_ID", + "safeName": "NOTIFICATION_ID" + }, + "pascalCase": { + "unsafeName": "NotificationID", + "safeName": "NotificationID" + } + }, + "wireValue": "notificationId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_file/service.getFile": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getFile", + "camelCase": { + "unsafeName": "getFile", + "safeName": "getFile" + }, + "snakeCase": { + "unsafeName": "get_file", + "safeName": "get_file" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FILE", + "safeName": "GET_FILE" + }, + "pascalCase": { + "unsafeName": "GetFile", + "safeName": "GetFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/file/{filename}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetFileRequest", + "camelCase": { + "unsafeName": "getFileRequest", + "safeName": "getFileRequest" + }, + "snakeCase": { + "unsafeName": "get_file_request", + "safeName": "get_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FILE_REQUEST", + "safeName": "GET_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFileRequest", + "safeName": "GetFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "X-File-API-Version", + "camelCase": { + "unsafeName": "xFileAPIVersion", + "safeName": "xFileAPIVersion" + }, + "snakeCase": { + "unsafeName": "x_file_api_version", + "safeName": "x_file_api_version" + }, + "screamingSnakeCase": { + "unsafeName": "X_FILE_API_VERSION", + "safeName": "X_FILE_API_VERSION" + }, + "pascalCase": { + "unsafeName": "XFileAPIVersion", + "safeName": "XFileAPIVersion" + } + }, + "wireValue": "X-File-API-Version" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_health/service.check": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "check", + "camelCase": { + "unsafeName": "check", + "safeName": "check" + }, + "snakeCase": { + "unsafeName": "check", + "safeName": "check" + }, + "screamingSnakeCase": { + "unsafeName": "CHECK", + "safeName": "CHECK" + }, + "pascalCase": { + "unsafeName": "Check", + "safeName": "Check" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/check/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_health/service.ping": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "ping", + "camelCase": { + "unsafeName": "ping", + "safeName": "ping" + }, + "snakeCase": { + "unsafeName": "ping", + "safeName": "ping" + }, + "screamingSnakeCase": { + "unsafeName": "PING", + "safeName": "PING" + }, + "pascalCase": { + "unsafeName": "Ping", + "safeName": "Ping" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "health", + "camelCase": { + "unsafeName": "health", + "safeName": "health" + }, + "snakeCase": { + "unsafeName": "health", + "safeName": "health" + }, + "screamingSnakeCase": { + "unsafeName": "HEALTH", + "safeName": "HEALTH" + }, + "pascalCase": { + "unsafeName": "Health", + "safeName": "Health" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/ping" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movie/{movieId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movieId" + }, + "typeReference": { + "_type": "named", + "value": "type_types:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types:Movie" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMetadata": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/metadata" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetMetadataRequest", + "camelCase": { + "unsafeName": "getMetadataRequest", + "safeName": "getMetadataRequest" + }, + "snakeCase": { + "unsafeName": "get_metadata_request", + "safeName": "get_metadata_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA_REQUEST", + "safeName": "GET_METADATA_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetMetadataRequest", + "safeName": "GetMetadataRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "shallow", + "camelCase": { + "unsafeName": "shallow", + "safeName": "shallow" + }, + "snakeCase": { + "unsafeName": "shallow", + "safeName": "shallow" + }, + "screamingSnakeCase": { + "unsafeName": "SHALLOW", + "safeName": "SHALLOW" + }, + "pascalCase": { + "unsafeName": "Shallow", + "safeName": "Shallow" + } + }, + "wireValue": "shallow" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "tag", + "camelCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "snakeCase": { + "unsafeName": "tag", + "safeName": "tag" + }, + "screamingSnakeCase": { + "unsafeName": "TAG", + "safeName": "TAG" + }, + "pascalCase": { + "unsafeName": "Tag", + "safeName": "Tag" + } + }, + "wireValue": "tag" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ], + "headers": [ + { + "name": { + "name": { + "originalName": "X-API-Version", + "camelCase": { + "unsafeName": "xAPIVersion", + "safeName": "xAPIVersion" + }, + "snakeCase": { + "unsafeName": "x_api_version", + "safeName": "x_api_version" + }, + "screamingSnakeCase": { + "unsafeName": "X_API_VERSION", + "safeName": "X_API_VERSION" + }, + "pascalCase": { + "unsafeName": "XAPIVersion", + "safeName": "XAPIVersion" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.createBigEntity": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createBigEntity", + "camelCase": { + "unsafeName": "createBigEntity", + "safeName": "createBigEntity" + }, + "snakeCase": { + "unsafeName": "create_big_entity", + "safeName": "create_big_entity" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_BIG_ENTITY", + "safeName": "CREATE_BIG_ENTITY" + }, + "pascalCase": { + "unsafeName": "CreateBigEntity", + "safeName": "CreateBigEntity" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/big-entity" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types:BigEntity" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_commons": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json index 0c28797566f..67aae6ca367 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/exhaustive.json @@ -65869,6 +65869,8957 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_general-errors:BadObjectRequestInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "BadObjectRequestInfo", + "camelCase": { + "unsafeName": "badObjectRequestInfo", + "safeName": "badObjectRequestInfo" + }, + "snakeCase": { + "unsafeName": "bad_object_request_info", + "safeName": "bad_object_request_info" + }, + "screamingSnakeCase": { + "unsafeName": "BAD_OBJECT_REQUEST_INFO", + "safeName": "BAD_OBJECT_REQUEST_INFO" + }, + "pascalCase": { + "unsafeName": "BadObjectRequestInfo", + "safeName": "BadObjectRequestInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "general-errors", + "camelCase": { + "unsafeName": "generalErrors", + "safeName": "generalErrors" + }, + "snakeCase": { + "unsafeName": "general_errors", + "safeName": "general_errors" + }, + "screamingSnakeCase": { + "unsafeName": "GENERAL_ERRORS", + "safeName": "GENERAL_ERRORS" + }, + "pascalCase": { + "unsafeName": "GeneralErrors", + "safeName": "GeneralErrors" + } + } + ], + "packagePath": [], + "file": { + "originalName": "general-errors", + "camelCase": { + "unsafeName": "generalErrors", + "safeName": "generalErrors" + }, + "snakeCase": { + "unsafeName": "general_errors", + "safeName": "general_errors" + }, + "screamingSnakeCase": { + "unsafeName": "GENERAL_ERRORS", + "safeName": "GENERAL_ERRORS" + }, + "pascalCase": { + "unsafeName": "GeneralErrors", + "safeName": "GeneralErrors" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types/enum:WeatherReport": { + "type": "enum", + "declaration": { + "name": { + "originalName": "WeatherReport", + "camelCase": { + "unsafeName": "weatherReport", + "safeName": "weatherReport" + }, + "snakeCase": { + "unsafeName": "weather_report", + "safeName": "weather_report" + }, + "screamingSnakeCase": { + "unsafeName": "WEATHER_REPORT", + "safeName": "WEATHER_REPORT" + }, + "pascalCase": { + "unsafeName": "WeatherReport", + "safeName": "WeatherReport" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "SUNNY", + "camelCase": { + "unsafeName": "sunny", + "safeName": "sunny" + }, + "snakeCase": { + "unsafeName": "sunny", + "safeName": "sunny" + }, + "screamingSnakeCase": { + "unsafeName": "SUNNY", + "safeName": "SUNNY" + }, + "pascalCase": { + "unsafeName": "Sunny", + "safeName": "Sunny" + } + }, + "wireValue": "SUNNY" + }, + { + "name": { + "originalName": "CLOUDY", + "camelCase": { + "unsafeName": "cloudy", + "safeName": "cloudy" + }, + "snakeCase": { + "unsafeName": "cloudy", + "safeName": "cloudy" + }, + "screamingSnakeCase": { + "unsafeName": "CLOUDY", + "safeName": "CLOUDY" + }, + "pascalCase": { + "unsafeName": "Cloudy", + "safeName": "Cloudy" + } + }, + "wireValue": "CLOUDY" + }, + { + "name": { + "originalName": "RAINING", + "camelCase": { + "unsafeName": "raining", + "safeName": "raining" + }, + "snakeCase": { + "unsafeName": "raining", + "safeName": "raining" + }, + "screamingSnakeCase": { + "unsafeName": "RAINING", + "safeName": "RAINING" + }, + "pascalCase": { + "unsafeName": "Raining", + "safeName": "Raining" + } + }, + "wireValue": "RAINING" + }, + { + "name": { + "originalName": "SNOWING", + "camelCase": { + "unsafeName": "snowing", + "safeName": "snowing" + }, + "snakeCase": { + "unsafeName": "snowing", + "safeName": "snowing" + }, + "screamingSnakeCase": { + "unsafeName": "SNOWING", + "safeName": "SNOWING" + }, + "pascalCase": { + "unsafeName": "Snowing", + "safeName": "Snowing" + } + }, + "wireValue": "SNOWING" + } + ] + }, + "type_types/object:ObjectWithOptionalField": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithOptionalField", + "camelCase": { + "unsafeName": "objectWithOptionalField", + "safeName": "objectWithOptionalField" + }, + "snakeCase": { + "unsafeName": "object_with_optional_field", + "safeName": "object_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_OPTIONAL_FIELD", + "safeName": "OBJECT_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "ObjectWithOptionalField", + "safeName": "ObjectWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "long", + "camelCase": { + "unsafeName": "long", + "safeName": "long" + }, + "snakeCase": { + "unsafeName": "long", + "safeName": "long" + }, + "screamingSnakeCase": { + "unsafeName": "LONG", + "safeName": "LONG" + }, + "pascalCase": { + "unsafeName": "Long", + "safeName": "Long" + } + }, + "wireValue": "long" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + { + "name": { + "name": { + "originalName": "double", + "camelCase": { + "unsafeName": "double", + "safeName": "double" + }, + "snakeCase": { + "unsafeName": "double", + "safeName": "double" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE", + "safeName": "DOUBLE" + }, + "pascalCase": { + "unsafeName": "Double", + "safeName": "Double" + } + }, + "wireValue": "double" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "bool", + "camelCase": { + "unsafeName": "bool", + "safeName": "bool" + }, + "snakeCase": { + "unsafeName": "bool", + "safeName": "bool" + }, + "screamingSnakeCase": { + "unsafeName": "BOOL", + "safeName": "BOOL" + }, + "pascalCase": { + "unsafeName": "Bool", + "safeName": "Bool" + } + }, + "wireValue": "bool" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE" + } + } + }, + { + "name": { + "name": { + "originalName": "uuid", + "camelCase": { + "unsafeName": "uuid", + "safeName": "uuid" + }, + "snakeCase": { + "unsafeName": "uuid", + "safeName": "uuid" + }, + "screamingSnakeCase": { + "unsafeName": "UUID", + "safeName": "UUID" + }, + "pascalCase": { + "unsafeName": "UUID", + "safeName": "UUID" + } + }, + "wireValue": "uuid" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "base64", + "camelCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "snakeCase": { + "unsafeName": "base64", + "safeName": "base64" + }, + "screamingSnakeCase": { + "unsafeName": "BASE64", + "safeName": "BASE64" + }, + "pascalCase": { + "unsafeName": "Base64", + "safeName": "Base64" + } + }, + "wireValue": "base64" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BASE_64" + } + } + }, + { + "name": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "wireValue": "list" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "set", + "camelCase": { + "unsafeName": "set", + "safeName": "set" + }, + "snakeCase": { + "unsafeName": "set", + "safeName": "set" + }, + "screamingSnakeCase": { + "unsafeName": "SET", + "safeName": "SET" + }, + "pascalCase": { + "unsafeName": "Set", + "safeName": "Set" + } + }, + "wireValue": "set" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "map", + "camelCase": { + "unsafeName": "map", + "safeName": "map" + }, + "snakeCase": { + "unsafeName": "map", + "safeName": "map" + }, + "screamingSnakeCase": { + "unsafeName": "MAP", + "safeName": "MAP" + }, + "pascalCase": { + "unsafeName": "Map", + "safeName": "Map" + } + }, + "wireValue": "map" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "INTEGER" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "bigint", + "camelCase": { + "unsafeName": "bigint", + "safeName": "bigint" + }, + "snakeCase": { + "unsafeName": "bigint", + "safeName": "bigint" + }, + "screamingSnakeCase": { + "unsafeName": "BIGINT", + "safeName": "BIGINT" + }, + "pascalCase": { + "unsafeName": "Bigint", + "safeName": "Bigint" + } + }, + "wireValue": "bigint" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BIG_INTEGER" + } + } + } + ] + }, + "type_types/object:ObjectWithRequiredField": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithRequiredField", + "camelCase": { + "unsafeName": "objectWithRequiredField", + "safeName": "objectWithRequiredField" + }, + "snakeCase": { + "unsafeName": "object_with_required_field", + "safeName": "object_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_REQUIRED_FIELD", + "safeName": "OBJECT_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "ObjectWithRequiredField", + "safeName": "ObjectWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types/object:ObjectWithMapOfMap": { + "type": "object", + "declaration": { + "name": { + "originalName": "ObjectWithMapOfMap", + "camelCase": { + "unsafeName": "objectWithMapOfMap", + "safeName": "objectWithMapOfMap" + }, + "snakeCase": { + "unsafeName": "object_with_map_of_map", + "safeName": "object_with_map_of_map" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_MAP_OF_MAP", + "safeName": "OBJECT_WITH_MAP_OF_MAP" + }, + "pascalCase": { + "unsafeName": "ObjectWithMapOfMap", + "safeName": "ObjectWithMapOfMap" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "map", + "camelCase": { + "unsafeName": "map", + "safeName": "map" + }, + "snakeCase": { + "unsafeName": "map", + "safeName": "map" + }, + "screamingSnakeCase": { + "unsafeName": "MAP", + "safeName": "MAP" + }, + "pascalCase": { + "unsafeName": "Map", + "safeName": "Map" + } + }, + "wireValue": "map" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ] + }, + "type_types/object:NestedObjectWithOptionalField": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithOptionalField", + "camelCase": { + "unsafeName": "nestedObjectWithOptionalField", + "safeName": "nestedObjectWithOptionalField" + }, + "snakeCase": { + "unsafeName": "nested_object_with_optional_field", + "safeName": "nested_object_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD", + "safeName": "NESTED_OBJECT_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithOptionalField", + "safeName": "NestedObjectWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + } + ] + }, + "type_types/object:NestedObjectWithRequiredField": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithRequiredField", + "camelCase": { + "unsafeName": "nestedObjectWithRequiredField", + "safeName": "nestedObjectWithRequiredField" + }, + "snakeCase": { + "unsafeName": "nested_object_with_required_field", + "safeName": "nested_object_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD", + "safeName": "NESTED_OBJECT_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithRequiredField", + "safeName": "NestedObjectWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + ] + }, + "type_types/object:DoubleOptional": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoubleOptional", + "camelCase": { + "unsafeName": "doubleOptional", + "safeName": "doubleOptional" + }, + "snakeCase": { + "unsafeName": "double_optional", + "safeName": "double_optional" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_OPTIONAL", + "safeName": "DOUBLE_OPTIONAL" + }, + "pascalCase": { + "unsafeName": "DoubleOptional", + "safeName": "DoubleOptional" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "optionalAlias", + "camelCase": { + "unsafeName": "optionalAlias", + "safeName": "optionalAlias" + }, + "snakeCase": { + "unsafeName": "optional_alias", + "safeName": "optional_alias" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ALIAS", + "safeName": "OPTIONAL_ALIAS" + }, + "pascalCase": { + "unsafeName": "OptionalAlias", + "safeName": "OptionalAlias" + } + }, + "wireValue": "optionalAlias" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:OptionalAlias" + } + } + } + ] + }, + "type_types/object:OptionalAlias": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalAlias", + "camelCase": { + "unsafeName": "optionalAlias", + "safeName": "optionalAlias" + }, + "snakeCase": { + "unsafeName": "optional_alias", + "safeName": "optional_alias" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ALIAS", + "safeName": "OPTIONAL_ALIAS" + }, + "pascalCase": { + "unsafeName": "OptionalAlias", + "safeName": "OptionalAlias" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_types/union:Animal": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Animal", + "camelCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "snakeCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "screamingSnakeCase": { + "unsafeName": "ANIMAL", + "safeName": "ANIMAL" + }, + "pascalCase": { + "unsafeName": "Animal", + "safeName": "Animal" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "animal", + "camelCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "snakeCase": { + "unsafeName": "animal", + "safeName": "animal" + }, + "screamingSnakeCase": { + "unsafeName": "ANIMAL", + "safeName": "ANIMAL" + }, + "pascalCase": { + "unsafeName": "Animal", + "safeName": "Animal" + } + }, + "wireValue": "animal" + }, + "types": { + "dog": { + "type": "samePropertiesAsObject", + "typeId": "type_types/union:Dog", + "discriminantValue": { + "name": { + "originalName": "dog", + "camelCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "snakeCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "screamingSnakeCase": { + "unsafeName": "DOG", + "safeName": "DOG" + }, + "pascalCase": { + "unsafeName": "Dog", + "safeName": "Dog" + } + }, + "wireValue": "dog" + }, + "properties": [] + }, + "cat": { + "type": "samePropertiesAsObject", + "typeId": "type_types/union:Cat", + "discriminantValue": { + "name": { + "originalName": "cat", + "camelCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "snakeCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "screamingSnakeCase": { + "unsafeName": "CAT", + "safeName": "CAT" + }, + "pascalCase": { + "unsafeName": "Cat", + "safeName": "Cat" + } + }, + "wireValue": "cat" + }, + "properties": [] + } + } + }, + "type_types/union:Dog": { + "type": "object", + "declaration": { + "name": { + "originalName": "Dog", + "camelCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "snakeCase": { + "unsafeName": "dog", + "safeName": "dog" + }, + "screamingSnakeCase": { + "unsafeName": "DOG", + "safeName": "DOG" + }, + "pascalCase": { + "unsafeName": "Dog", + "safeName": "Dog" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToWoof", + "camelCase": { + "unsafeName": "likesToWoof", + "safeName": "likesToWoof" + }, + "snakeCase": { + "unsafeName": "likes_to_woof", + "safeName": "likes_to_woof" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_WOOF", + "safeName": "LIKES_TO_WOOF" + }, + "pascalCase": { + "unsafeName": "LikesToWoof", + "safeName": "LikesToWoof" + } + }, + "wireValue": "likesToWoof" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_types/union:Cat": { + "type": "object", + "declaration": { + "name": { + "originalName": "Cat", + "camelCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "snakeCase": { + "unsafeName": "cat", + "safeName": "cat" + }, + "screamingSnakeCase": { + "unsafeName": "CAT", + "safeName": "CAT" + }, + "pascalCase": { + "unsafeName": "Cat", + "safeName": "Cat" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "likesToMeow", + "camelCase": { + "unsafeName": "likesToMeow", + "safeName": "likesToMeow" + }, + "snakeCase": { + "unsafeName": "likes_to_meow", + "safeName": "likes_to_meow" + }, + "screamingSnakeCase": { + "unsafeName": "LIKES_TO_MEOW", + "safeName": "LIKES_TO_MEOW" + }, + "pascalCase": { + "unsafeName": "LikesToMeow", + "safeName": "LikesToMeow" + } + }, + "wireValue": "likesToMeow" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_endpoints/container.getAndReturnListOfPrimitives": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnListOfPrimitives", + "camelCase": { + "unsafeName": "getAndReturnListOfPrimitives", + "safeName": "getAndReturnListOfPrimitives" + }, + "snakeCase": { + "unsafeName": "get_and_return_list_of_primitives", + "safeName": "get_and_return_list_of_primitives" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES", + "safeName": "GET_AND_RETURN_LIST_OF_PRIMITIVES" + }, + "pascalCase": { + "unsafeName": "GetAndReturnListOfPrimitives", + "safeName": "GetAndReturnListOfPrimitives" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/list-of-primitives" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnListOfObjects": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnListOfObjects", + "camelCase": { + "unsafeName": "getAndReturnListOfObjects", + "safeName": "getAndReturnListOfObjects" + }, + "snakeCase": { + "unsafeName": "get_and_return_list_of_objects", + "safeName": "get_and_return_list_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LIST_OF_OBJECTS", + "safeName": "GET_AND_RETURN_LIST_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "GetAndReturnListOfObjects", + "safeName": "GetAndReturnListOfObjects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/list-of-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnSetOfPrimitives": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnSetOfPrimitives", + "camelCase": { + "unsafeName": "getAndReturnSetOfPrimitives", + "safeName": "getAndReturnSetOfPrimitives" + }, + "snakeCase": { + "unsafeName": "get_and_return_set_of_primitives", + "safeName": "get_and_return_set_of_primitives" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_SET_OF_PRIMITIVES", + "safeName": "GET_AND_RETURN_SET_OF_PRIMITIVES" + }, + "pascalCase": { + "unsafeName": "GetAndReturnSetOfPrimitives", + "safeName": "GetAndReturnSetOfPrimitives" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/set-of-primitives" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnSetOfObjects": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnSetOfObjects", + "camelCase": { + "unsafeName": "getAndReturnSetOfObjects", + "safeName": "getAndReturnSetOfObjects" + }, + "snakeCase": { + "unsafeName": "get_and_return_set_of_objects", + "safeName": "get_and_return_set_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_SET_OF_OBJECTS", + "safeName": "GET_AND_RETURN_SET_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "GetAndReturnSetOfObjects", + "safeName": "GetAndReturnSetOfObjects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/set-of-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnMapPrimToPrim": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnMapPrimToPrim", + "camelCase": { + "unsafeName": "getAndReturnMapPrimToPrim", + "safeName": "getAndReturnMapPrimToPrim" + }, + "snakeCase": { + "unsafeName": "get_and_return_map_prim_to_prim", + "safeName": "get_and_return_map_prim_to_prim" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM", + "safeName": "GET_AND_RETURN_MAP_PRIM_TO_PRIM" + }, + "pascalCase": { + "unsafeName": "GetAndReturnMapPrimToPrim", + "safeName": "GetAndReturnMapPrimToPrim" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/map-prim-to-prim" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnMapOfPrimToObject": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnMapOfPrimToObject", + "camelCase": { + "unsafeName": "getAndReturnMapOfPrimToObject", + "safeName": "getAndReturnMapOfPrimToObject" + }, + "snakeCase": { + "unsafeName": "get_and_return_map_of_prim_to_object", + "safeName": "get_and_return_map_of_prim_to_object" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT", + "safeName": "GET_AND_RETURN_MAP_OF_PRIM_TO_OBJECT" + }, + "pascalCase": { + "unsafeName": "GetAndReturnMapOfPrimToObject", + "safeName": "GetAndReturnMapOfPrimToObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/map-prim-to-object" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/container.getAndReturnOptional": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnOptional", + "camelCase": { + "unsafeName": "getAndReturnOptional", + "safeName": "getAndReturnOptional" + }, + "snakeCase": { + "unsafeName": "get_and_return_optional", + "safeName": "get_and_return_optional" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_OPTIONAL", + "safeName": "GET_AND_RETURN_OPTIONAL" + }, + "pascalCase": { + "unsafeName": "GetAndReturnOptional", + "safeName": "GetAndReturnOptional" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "container", + "camelCase": { + "unsafeName": "container", + "safeName": "container" + }, + "snakeCase": { + "unsafeName": "container", + "safeName": "container" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER", + "safeName": "CONTAINER" + }, + "pascalCase": { + "unsafeName": "Container", + "safeName": "Container" + } + } + } + }, + "location": { + "method": "POST", + "path": "/container/opt-objects" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/content-type.postJsonPatchContentType": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postJsonPatchContentType", + "camelCase": { + "unsafeName": "postJSONPatchContentType", + "safeName": "postJSONPatchContentType" + }, + "snakeCase": { + "unsafeName": "post_json_patch_content_type", + "safeName": "post_json_patch_content_type" + }, + "screamingSnakeCase": { + "unsafeName": "POST_JSON_PATCH_CONTENT_TYPE", + "safeName": "POST_JSON_PATCH_CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "PostJSONPatchContentType", + "safeName": "PostJSONPatchContentType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "content-type", + "camelCase": { + "unsafeName": "contentType", + "safeName": "contentType" + }, + "snakeCase": { + "unsafeName": "content_type", + "safeName": "content_type" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENT_TYPE", + "safeName": "CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "ContentType", + "safeName": "ContentType" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "content-type", + "camelCase": { + "unsafeName": "contentType", + "safeName": "contentType" + }, + "snakeCase": { + "unsafeName": "content_type", + "safeName": "content_type" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENT_TYPE", + "safeName": "CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "ContentType", + "safeName": "ContentType" + } + } + } + }, + "location": { + "method": "POST", + "path": "/foo/bar" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/content-type.postJsonPatchContentWithCharsetType": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postJsonPatchContentWithCharsetType", + "camelCase": { + "unsafeName": "postJSONPatchContentWithCharsetType", + "safeName": "postJSONPatchContentWithCharsetType" + }, + "snakeCase": { + "unsafeName": "post_json_patch_content_with_charset_type", + "safeName": "post_json_patch_content_with_charset_type" + }, + "screamingSnakeCase": { + "unsafeName": "POST_JSON_PATCH_CONTENT_WITH_CHARSET_TYPE", + "safeName": "POST_JSON_PATCH_CONTENT_WITH_CHARSET_TYPE" + }, + "pascalCase": { + "unsafeName": "PostJSONPatchContentWithCharsetType", + "safeName": "PostJSONPatchContentWithCharsetType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "content-type", + "camelCase": { + "unsafeName": "contentType", + "safeName": "contentType" + }, + "snakeCase": { + "unsafeName": "content_type", + "safeName": "content_type" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENT_TYPE", + "safeName": "CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "ContentType", + "safeName": "ContentType" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "content-type", + "camelCase": { + "unsafeName": "contentType", + "safeName": "contentType" + }, + "snakeCase": { + "unsafeName": "content_type", + "safeName": "content_type" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENT_TYPE", + "safeName": "CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "ContentType", + "safeName": "ContentType" + } + } + } + }, + "location": { + "method": "POST", + "path": "/foo/baz" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/enum.getAndReturnEnum": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnEnum", + "camelCase": { + "unsafeName": "getAndReturnEnum", + "safeName": "getAndReturnEnum" + }, + "snakeCase": { + "unsafeName": "get_and_return_enum", + "safeName": "get_and_return_enum" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_ENUM", + "safeName": "GET_AND_RETURN_ENUM" + }, + "pascalCase": { + "unsafeName": "GetAndReturnEnum", + "safeName": "GetAndReturnEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "enum", + "camelCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "snakeCase": { + "unsafeName": "enum", + "safeName": "enum" + }, + "screamingSnakeCase": { + "unsafeName": "ENUM", + "safeName": "ENUM" + }, + "pascalCase": { + "unsafeName": "Enum", + "safeName": "Enum" + } + } + } + }, + "location": { + "method": "POST", + "path": "/enum" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/enum:WeatherReport" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testGet": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testGet", + "camelCase": { + "unsafeName": "testGet", + "safeName": "testGet" + }, + "snakeCase": { + "unsafeName": "test_get", + "safeName": "test_get" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_GET", + "safeName": "TEST_GET" + }, + "pascalCase": { + "unsafeName": "TestGet", + "safeName": "TestGet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "GET", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPost": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPost", + "camelCase": { + "unsafeName": "testPost", + "safeName": "testPost" + }, + "snakeCase": { + "unsafeName": "test_post", + "safeName": "test_post" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_POST", + "safeName": "TEST_POST" + }, + "pascalCase": { + "unsafeName": "TestPost", + "safeName": "TestPost" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "POST", + "path": "/http-methods" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPut": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPut", + "camelCase": { + "unsafeName": "testPut", + "safeName": "testPut" + }, + "snakeCase": { + "unsafeName": "test_put", + "safeName": "test_put" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_PUT", + "safeName": "TEST_PUT" + }, + "pascalCase": { + "unsafeName": "TestPut", + "safeName": "TestPut" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testPatch": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testPatch", + "camelCase": { + "unsafeName": "testPatch", + "safeName": "testPatch" + }, + "snakeCase": { + "unsafeName": "test_patch", + "safeName": "test_patch" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_PATCH", + "safeName": "TEST_PATCH" + }, + "pascalCase": { + "unsafeName": "TestPatch", + "safeName": "TestPatch" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "PATCH", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/http-methods.testDelete": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "testDelete", + "camelCase": { + "unsafeName": "testDelete", + "safeName": "testDelete" + }, + "snakeCase": { + "unsafeName": "test_delete", + "safeName": "test_delete" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_DELETE", + "safeName": "TEST_DELETE" + }, + "pascalCase": { + "unsafeName": "TestDelete", + "safeName": "TestDelete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "http-methods", + "camelCase": { + "unsafeName": "httpMethods", + "safeName": "httpMethods" + }, + "snakeCase": { + "unsafeName": "http_methods", + "safeName": "http_methods" + }, + "screamingSnakeCase": { + "unsafeName": "HTTP_METHODS", + "safeName": "HTTP_METHODS" + }, + "pascalCase": { + "unsafeName": "HTTPMethods", + "safeName": "HTTPMethods" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/http-methods/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithOptionalField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithOptionalField", + "camelCase": { + "unsafeName": "getAndReturnWithOptionalField", + "safeName": "getAndReturnWithOptionalField" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_optional_field", + "safeName": "get_and_return_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD", + "safeName": "GET_AND_RETURN_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithOptionalField", + "safeName": "GetAndReturnWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-optional-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithRequiredField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithRequiredField", + "camelCase": { + "unsafeName": "getAndReturnWithRequiredField", + "safeName": "getAndReturnWithRequiredField" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_required_field", + "safeName": "get_and_return_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD", + "safeName": "GET_AND_RETURN_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithRequiredField", + "safeName": "GetAndReturnWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-required-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnWithMapOfMap": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnWithMapOfMap", + "camelCase": { + "unsafeName": "getAndReturnWithMapOfMap", + "safeName": "getAndReturnWithMapOfMap" + }, + "snakeCase": { + "unsafeName": "get_and_return_with_map_of_map", + "safeName": "get_and_return_with_map_of_map" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_WITH_MAP_OF_MAP", + "safeName": "GET_AND_RETURN_WITH_MAP_OF_MAP" + }, + "pascalCase": { + "unsafeName": "GetAndReturnWithMapOfMap", + "safeName": "GetAndReturnWithMapOfMap" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-with-map-of-map" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:ObjectWithMapOfMap" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithOptionalField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithOptionalField", + "camelCase": { + "unsafeName": "getAndReturnNestedWithOptionalField", + "safeName": "getAndReturnNestedWithOptionalField" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_optional_field", + "safeName": "get_and_return_nested_with_optional_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD", + "safeName": "GET_AND_RETURN_NESTED_WITH_OPTIONAL_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithOptionalField", + "safeName": "GetAndReturnNestedWithOptionalField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-optional-field" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithOptionalField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithRequiredField": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithRequiredField", + "camelCase": { + "unsafeName": "getAndReturnNestedWithRequiredField", + "safeName": "getAndReturnNestedWithRequiredField" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_required_field", + "safeName": "get_and_return_nested_with_required_field" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD", + "safeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithRequiredField", + "safeName": "GetAndReturnNestedWithRequiredField" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-required-field/{string}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithRequiredField" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/object.getAndReturnNestedWithRequiredFieldAsList": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnNestedWithRequiredFieldAsList", + "camelCase": { + "unsafeName": "getAndReturnNestedWithRequiredFieldAsList", + "safeName": "getAndReturnNestedWithRequiredFieldAsList" + }, + "snakeCase": { + "unsafeName": "get_and_return_nested_with_required_field_as_list", + "safeName": "get_and_return_nested_with_required_field_as_list" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD_AS_LIST", + "safeName": "GET_AND_RETURN_NESTED_WITH_REQUIRED_FIELD_AS_LIST" + }, + "pascalCase": { + "unsafeName": "GetAndReturnNestedWithRequiredFieldAsList", + "safeName": "GetAndReturnNestedWithRequiredFieldAsList" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "object", + "camelCase": { + "unsafeName": "object", + "safeName": "object" + }, + "snakeCase": { + "unsafeName": "object", + "safeName": "object" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT", + "safeName": "OBJECT" + }, + "pascalCase": { + "unsafeName": "Object", + "safeName": "Object" + } + } + } + }, + "location": { + "method": "POST", + "path": "/object/get-and-return-nested-with-required-field-list" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_types/object:NestedObjectWithRequiredField" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithPath": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithPath", + "camelCase": { + "unsafeName": "getWithPath", + "safeName": "getWithPath" + }, + "snakeCase": { + "unsafeName": "get_with_path", + "safeName": "get_with_path" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH", + "safeName": "GET_WITH_PATH" + }, + "pascalCase": { + "unsafeName": "GetWithPath", + "safeName": "GetWithPath" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params/path/{param}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithQuery", + "camelCase": { + "unsafeName": "getWithQuery", + "safeName": "getWithQuery" + }, + "snakeCase": { + "unsafeName": "get_with_query", + "safeName": "get_with_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_QUERY", + "safeName": "GET_WITH_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithQuery", + "safeName": "GetWithQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithQuery", + "camelCase": { + "unsafeName": "getWithQuery", + "safeName": "getWithQuery" + }, + "snakeCase": { + "unsafeName": "get_with_query", + "safeName": "get_with_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_QUERY", + "safeName": "GET_WITH_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithQuery", + "safeName": "GetWithQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "number", + "camelCase": { + "unsafeName": "number", + "safeName": "number" + }, + "snakeCase": { + "unsafeName": "number", + "safeName": "number" + }, + "screamingSnakeCase": { + "unsafeName": "NUMBER", + "safeName": "NUMBER" + }, + "pascalCase": { + "unsafeName": "Number", + "safeName": "Number" + } + }, + "wireValue": "number" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithAllowMultipleQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithAllowMultipleQuery", + "camelCase": { + "unsafeName": "getWithAllowMultipleQuery", + "safeName": "getWithAllowMultipleQuery" + }, + "snakeCase": { + "unsafeName": "get_with_allow_multiple_query", + "safeName": "get_with_allow_multiple_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_ALLOW_MULTIPLE_QUERY", + "safeName": "GET_WITH_ALLOW_MULTIPLE_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithAllowMultipleQuery", + "safeName": "GetWithAllowMultipleQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithMultipleQuery", + "camelCase": { + "unsafeName": "getWithMultipleQuery", + "safeName": "getWithMultipleQuery" + }, + "snakeCase": { + "unsafeName": "get_with_multiple_query", + "safeName": "get_with_multiple_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_MULTIPLE_QUERY", + "safeName": "GET_WITH_MULTIPLE_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithMultipleQuery", + "safeName": "GetWithMultipleQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "numer", + "camelCase": { + "unsafeName": "numer", + "safeName": "numer" + }, + "snakeCase": { + "unsafeName": "numer", + "safeName": "numer" + }, + "screamingSnakeCase": { + "unsafeName": "NUMER", + "safeName": "NUMER" + }, + "pascalCase": { + "unsafeName": "Numer", + "safeName": "Numer" + } + }, + "wireValue": "numer" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.getWithPathAndQuery": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithPathAndQuery", + "camelCase": { + "unsafeName": "getWithPathAndQuery", + "safeName": "getWithPathAndQuery" + }, + "snakeCase": { + "unsafeName": "get_with_path_and_query", + "safeName": "get_with_path_and_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH_AND_QUERY", + "safeName": "GET_WITH_PATH_AND_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithPathAndQuery", + "safeName": "GetWithPathAndQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "GET", + "path": "/params/path-query/{param}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetWithPathAndQuery", + "camelCase": { + "unsafeName": "getWithPathAndQuery", + "safeName": "getWithPathAndQuery" + }, + "snakeCase": { + "unsafeName": "get_with_path_and_query", + "safeName": "get_with_path_and_query" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_PATH_AND_QUERY", + "safeName": "GET_WITH_PATH_AND_QUERY" + }, + "pascalCase": { + "unsafeName": "GetWithPathAndQuery", + "safeName": "GetWithPathAndQuery" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/params.modifyWithPath": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "modifyWithPath", + "camelCase": { + "unsafeName": "modifyWithPath", + "safeName": "modifyWithPath" + }, + "snakeCase": { + "unsafeName": "modify_with_path", + "safeName": "modify_with_path" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFY_WITH_PATH", + "safeName": "MODIFY_WITH_PATH" + }, + "pascalCase": { + "unsafeName": "ModifyWithPath", + "safeName": "ModifyWithPath" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/params/path/{param}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "param", + "camelCase": { + "unsafeName": "param", + "safeName": "param" + }, + "snakeCase": { + "unsafeName": "param", + "safeName": "param" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM", + "safeName": "PARAM" + }, + "pascalCase": { + "unsafeName": "Param", + "safeName": "Param" + } + }, + "wireValue": "param" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnString": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnString", + "camelCase": { + "unsafeName": "getAndReturnString", + "safeName": "getAndReturnString" + }, + "snakeCase": { + "unsafeName": "get_and_return_string", + "safeName": "get_and_return_string" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_STRING", + "safeName": "GET_AND_RETURN_STRING" + }, + "pascalCase": { + "unsafeName": "GetAndReturnString", + "safeName": "GetAndReturnString" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/string" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnInt": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnInt", + "camelCase": { + "unsafeName": "getAndReturnInt", + "safeName": "getAndReturnInt" + }, + "snakeCase": { + "unsafeName": "get_and_return_int", + "safeName": "get_and_return_int" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_INT", + "safeName": "GET_AND_RETURN_INT" + }, + "pascalCase": { + "unsafeName": "GetAndReturnInt", + "safeName": "GetAndReturnInt" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/integer" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnLong": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnLong", + "camelCase": { + "unsafeName": "getAndReturnLong", + "safeName": "getAndReturnLong" + }, + "snakeCase": { + "unsafeName": "get_and_return_long", + "safeName": "get_and_return_long" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_LONG", + "safeName": "GET_AND_RETURN_LONG" + }, + "pascalCase": { + "unsafeName": "GetAndReturnLong", + "safeName": "GetAndReturnLong" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/long" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDouble": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDouble", + "camelCase": { + "unsafeName": "getAndReturnDouble", + "safeName": "getAndReturnDouble" + }, + "snakeCase": { + "unsafeName": "get_and_return_double", + "safeName": "get_and_return_double" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DOUBLE", + "safeName": "GET_AND_RETURN_DOUBLE" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDouble", + "safeName": "GetAndReturnDouble" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/double" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnBool": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnBool", + "camelCase": { + "unsafeName": "getAndReturnBool", + "safeName": "getAndReturnBool" + }, + "snakeCase": { + "unsafeName": "get_and_return_bool", + "safeName": "get_and_return_bool" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_BOOL", + "safeName": "GET_AND_RETURN_BOOL" + }, + "pascalCase": { + "unsafeName": "GetAndReturnBool", + "safeName": "GetAndReturnBool" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/boolean" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDatetime": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDatetime", + "camelCase": { + "unsafeName": "getAndReturnDatetime", + "safeName": "getAndReturnDatetime" + }, + "snakeCase": { + "unsafeName": "get_and_return_datetime", + "safeName": "get_and_return_datetime" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DATETIME", + "safeName": "GET_AND_RETURN_DATETIME" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDatetime", + "safeName": "GetAndReturnDatetime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/datetime" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnDate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnDate", + "camelCase": { + "unsafeName": "getAndReturnDate", + "safeName": "getAndReturnDate" + }, + "snakeCase": { + "unsafeName": "get_and_return_date", + "safeName": "get_and_return_date" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_DATE", + "safeName": "GET_AND_RETURN_DATE" + }, + "pascalCase": { + "unsafeName": "GetAndReturnDate", + "safeName": "GetAndReturnDate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/date" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "DATE" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnUUID": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnUUID", + "camelCase": { + "unsafeName": "getAndReturnUUID", + "safeName": "getAndReturnUUID" + }, + "snakeCase": { + "unsafeName": "get_and_return_uuid", + "safeName": "get_and_return_uuid" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_UUID", + "safeName": "GET_AND_RETURN_UUID" + }, + "pascalCase": { + "unsafeName": "GetAndReturnUUID", + "safeName": "GetAndReturnUUID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/uuid" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/primitive.getAndReturnBase64": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnBase64", + "camelCase": { + "unsafeName": "getAndReturnBase64", + "safeName": "getAndReturnBase64" + }, + "snakeCase": { + "unsafeName": "get_and_return_base64", + "safeName": "get_and_return_base64" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_BASE64", + "safeName": "GET_AND_RETURN_BASE64" + }, + "pascalCase": { + "unsafeName": "GetAndReturnBase64", + "safeName": "GetAndReturnBase64" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "primitive", + "camelCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "snakeCase": { + "unsafeName": "primitive", + "safeName": "primitive" + }, + "screamingSnakeCase": { + "unsafeName": "PRIMITIVE", + "safeName": "PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "Primitive", + "safeName": "Primitive" + } + } + } + }, + "location": { + "method": "POST", + "path": "/primitive/base64" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "BASE_64" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_endpoints/union.getAndReturnUnion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAndReturnUnion", + "camelCase": { + "unsafeName": "getAndReturnUnion", + "safeName": "getAndReturnUnion" + }, + "snakeCase": { + "unsafeName": "get_and_return_union", + "safeName": "get_and_return_union" + }, + "screamingSnakeCase": { + "unsafeName": "GET_AND_RETURN_UNION", + "safeName": "GET_AND_RETURN_UNION" + }, + "pascalCase": { + "unsafeName": "GetAndReturnUnion", + "safeName": "GetAndReturnUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + }, + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [ + { + "originalName": "endpoints", + "camelCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "snakeCase": { + "unsafeName": "endpoints", + "safeName": "endpoints" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINTS", + "safeName": "ENDPOINTS" + }, + "pascalCase": { + "unsafeName": "Endpoints", + "safeName": "Endpoints" + } + } + ], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "POST", + "path": "/union" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_types/union:Animal" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_inlined-requests.postWithObjectBodyandResponse": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithObjectBodyandResponse", + "camelCase": { + "unsafeName": "postWithObjectBodyandResponse", + "safeName": "postWithObjectBodyandResponse" + }, + "snakeCase": { + "unsafeName": "post_with_object_bodyand_response", + "safeName": "post_with_object_bodyand_response" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_OBJECT_BODYAND_RESPONSE", + "safeName": "POST_WITH_OBJECT_BODYAND_RESPONSE" + }, + "pascalCase": { + "unsafeName": "PostWithObjectBodyandResponse", + "safeName": "PostWithObjectBodyandResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + } + }, + "location": { + "method": "POST", + "path": "/req-bodies/object" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "PostWithObjectBody", + "camelCase": { + "unsafeName": "postWithObjectBody", + "safeName": "postWithObjectBody" + }, + "snakeCase": { + "unsafeName": "post_with_object_body", + "safeName": "post_with_object_body" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_OBJECT_BODY", + "safeName": "POST_WITH_OBJECT_BODY" + }, + "pascalCase": { + "unsafeName": "PostWithObjectBody", + "safeName": "PostWithObjectBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined-requests", + "camelCase": { + "unsafeName": "inlinedRequests", + "safeName": "inlinedRequests" + }, + "snakeCase": { + "unsafeName": "inlined_requests", + "safeName": "inlined_requests" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED_REQUESTS", + "safeName": "INLINED_REQUESTS" + }, + "pascalCase": { + "unsafeName": "InlinedRequests", + "safeName": "InlinedRequests" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "NestedObject", + "camelCase": { + "unsafeName": "nestedObject", + "safeName": "nestedObject" + }, + "snakeCase": { + "unsafeName": "nested_object", + "safeName": "nested_object" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT", + "safeName": "NESTED_OBJECT" + }, + "pascalCase": { + "unsafeName": "NestedObject", + "safeName": "NestedObject" + } + }, + "wireValue": "NestedObject" + }, + "typeReference": { + "_type": "named", + "value": "type_types/object:ObjectWithOptionalField" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_no-auth.postWithNoAuth": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithNoAuth", + "camelCase": { + "unsafeName": "postWithNoAuth", + "safeName": "postWithNoAuth" + }, + "snakeCase": { + "unsafeName": "post_with_no_auth", + "safeName": "post_with_no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_NO_AUTH", + "safeName": "POST_WITH_NO_AUTH" + }, + "pascalCase": { + "unsafeName": "PostWithNoAuth", + "safeName": "PostWithNoAuth" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-auth", + "camelCase": { + "unsafeName": "noAuth", + "safeName": "noAuth" + }, + "snakeCase": { + "unsafeName": "no_auth", + "safeName": "no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "NO_AUTH", + "safeName": "NO_AUTH" + }, + "pascalCase": { + "unsafeName": "NoAuth", + "safeName": "NoAuth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-auth", + "camelCase": { + "unsafeName": "noAuth", + "safeName": "noAuth" + }, + "snakeCase": { + "unsafeName": "no_auth", + "safeName": "no_auth" + }, + "screamingSnakeCase": { + "unsafeName": "NO_AUTH", + "safeName": "NO_AUTH" + }, + "pascalCase": { + "unsafeName": "NoAuth", + "safeName": "NoAuth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/no-auth" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_no-req-body.getWithNoRequestBody": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithNoRequestBody", + "camelCase": { + "unsafeName": "getWithNoRequestBody", + "safeName": "getWithNoRequestBody" + }, + "snakeCase": { + "unsafeName": "get_with_no_request_body", + "safeName": "get_with_no_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_NO_REQUEST_BODY", + "safeName": "GET_WITH_NO_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "GetWithNoRequestBody", + "safeName": "GetWithNoRequestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + } + }, + "location": { + "method": "GET", + "path": "/no-req-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_no-req-body.postWithNoRequestBody": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "postWithNoRequestBody", + "camelCase": { + "unsafeName": "postWithNoRequestBody", + "safeName": "postWithNoRequestBody" + }, + "snakeCase": { + "unsafeName": "post_with_no_request_body", + "safeName": "post_with_no_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "POST_WITH_NO_REQUEST_BODY", + "safeName": "POST_WITH_NO_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "PostWithNoRequestBody", + "safeName": "PostWithNoRequestBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + ], + "packagePath": [], + "file": { + "originalName": "no-req-body", + "camelCase": { + "unsafeName": "noReqBody", + "safeName": "noReqBody" + }, + "snakeCase": { + "unsafeName": "no_req_body", + "safeName": "no_req_body" + }, + "screamingSnakeCase": { + "unsafeName": "NO_REQ_BODY", + "safeName": "NO_REQ_BODY" + }, + "pascalCase": { + "unsafeName": "NoReqBody", + "safeName": "NoReqBody" + } + } + } + }, + "location": { + "method": "POST", + "path": "/no-req-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_req-with-headers.getWithCustomHeader": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getWithCustomHeader", + "camelCase": { + "unsafeName": "getWithCustomHeader", + "safeName": "getWithCustomHeader" + }, + "snakeCase": { + "unsafeName": "get_with_custom_header", + "safeName": "get_with_custom_header" + }, + "screamingSnakeCase": { + "unsafeName": "GET_WITH_CUSTOM_HEADER", + "safeName": "GET_WITH_CUSTOM_HEADER" + }, + "pascalCase": { + "unsafeName": "GetWithCustomHeader", + "safeName": "GetWithCustomHeader" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + ], + "packagePath": [], + "file": { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + } + }, + "location": { + "method": "POST", + "path": "/test-headers/custom-header" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ReqWithHeaders", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + ], + "packagePath": [], + "file": { + "originalName": "req-with-headers", + "camelCase": { + "unsafeName": "reqWithHeaders", + "safeName": "reqWithHeaders" + }, + "snakeCase": { + "unsafeName": "req_with_headers", + "safeName": "req_with_headers" + }, + "screamingSnakeCase": { + "unsafeName": "REQ_WITH_HEADERS", + "safeName": "REQ_WITH_HEADERS" + }, + "pascalCase": { + "unsafeName": "ReqWithHeaders", + "safeName": "ReqWithHeaders" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "X-TEST-SERVICE-HEADER", + "camelCase": { + "unsafeName": "xTestServiceHeader", + "safeName": "xTestServiceHeader" + }, + "snakeCase": { + "unsafeName": "x_test_service_header", + "safeName": "x_test_service_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_TEST_SERVICE_HEADER", + "safeName": "X_TEST_SERVICE_HEADER" + }, + "pascalCase": { + "unsafeName": "XTestServiceHeader", + "safeName": "XTestServiceHeader" + } + }, + "wireValue": "X-TEST-SERVICE-HEADER" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "X-TEST-ENDPOINT-HEADER", + "camelCase": { + "unsafeName": "xTestEndpointHeader", + "safeName": "xTestEndpointHeader" + }, + "snakeCase": { + "unsafeName": "x_test_endpoint_header", + "safeName": "x_test_endpoint_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_TEST_ENDPOINT_HEADER", + "safeName": "X_TEST_ENDPOINT_HEADER" + }, + "pascalCase": { + "unsafeName": "XTestEndpointHeader", + "safeName": "XTestEndpointHeader" + } + }, + "wireValue": "X-TEST-ENDPOINT-HEADER" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "referenced", + "bodyKey": { + "originalName": "body", + "camelCase": { + "unsafeName": "body", + "safeName": "body" + }, + "snakeCase": { + "unsafeName": "body", + "safeName": "body" + }, + "screamingSnakeCase": { + "unsafeName": "BODY", + "safeName": "BODY" + }, + "pascalCase": { + "unsafeName": "Body", + "safeName": "Body" + } + }, + "bodyType": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_endpoints": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json index f2e07320462..9ed08aa8208 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extends.json @@ -1674,6 +1674,523 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:ExampleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExampleType", + "camelCase": { + "unsafeName": "exampleType", + "safeName": "exampleType" + }, + "snakeCase": { + "unsafeName": "example_type", + "safeName": "example_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXAMPLE_TYPE", + "safeName": "EXAMPLE_TYPE" + }, + "pascalCase": { + "unsafeName": "ExampleType", + "safeName": "ExampleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:NestedType": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedType", + "camelCase": { + "unsafeName": "nestedType", + "safeName": "nestedType" + }, + "snakeCase": { + "unsafeName": "nested_type", + "safeName": "nested_type" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_TYPE", + "safeName": "NESTED_TYPE" + }, + "pascalCase": { + "unsafeName": "NestedType", + "safeName": "NestedType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "raw", + "camelCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "snakeCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "screamingSnakeCase": { + "unsafeName": "RAW", + "safeName": "RAW" + }, + "pascalCase": { + "unsafeName": "Raw", + "safeName": "Raw" + } + }, + "wireValue": "raw" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Docs": { + "type": "object", + "declaration": { + "name": { + "originalName": "Docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:JSON": { + "type": "object", + "declaration": { + "name": { + "originalName": "JSON", + "camelCase": { + "unsafeName": "json", + "safeName": "json" + }, + "snakeCase": { + "unsafeName": "json", + "safeName": "json" + }, + "screamingSnakeCase": { + "unsafeName": "JSON", + "safeName": "JSON" + }, + "pascalCase": { + "unsafeName": "JSON", + "safeName": "JSON" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "raw", + "camelCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "snakeCase": { + "unsafeName": "raw", + "safeName": "raw" + }, + "screamingSnakeCase": { + "unsafeName": "RAW", + "safeName": "RAW" + }, + "pascalCase": { + "unsafeName": "Raw", + "safeName": "Raw" + } + }, + "wireValue": "raw" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.extendedInlineRequestBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "extendedInlineRequestBody", + "camelCase": { + "unsafeName": "extendedInlineRequestBody", + "safeName": "extendedInlineRequestBody" + }, + "snakeCase": { + "unsafeName": "extended_inline_request_body", + "safeName": "extended_inline_request_body" + }, + "screamingSnakeCase": { + "unsafeName": "EXTENDED_INLINE_REQUEST_BODY", + "safeName": "EXTENDED_INLINE_REQUEST_BODY" + }, + "pascalCase": { + "unsafeName": "ExtendedInlineRequestBody", + "safeName": "ExtendedInlineRequestBody" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/extends/extended-inline-request-body" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "Inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "unique", + "camelCase": { + "unsafeName": "unique", + "safeName": "unique" + }, + "snakeCase": { + "unsafeName": "unique", + "safeName": "unique" + }, + "screamingSnakeCase": { + "unsafeName": "UNIQUE", + "safeName": "UNIQUE" + }, + "pascalCase": { + "unsafeName": "Unique", + "safeName": "Unique" + } + }, + "wireValue": "unique" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json index a90f3d08d9f..33b7a218680 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/extra-properties.json @@ -1006,6 +1006,416 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Failure": { + "type": "object", + "declaration": { + "name": { + "originalName": "Failure", + "camelCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "snakeCase": { + "unsafeName": "failure", + "safeName": "failure" + }, + "screamingSnakeCase": { + "unsafeName": "FAILURE", + "safeName": "FAILURE" + }, + "pascalCase": { + "unsafeName": "Failure", + "safeName": "Failure" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "failure" + } + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.createUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "createUser", + "camelCase": { + "unsafeName": "createUser", + "safeName": "createUser" + }, + "snakeCase": { + "unsafeName": "create_user", + "safeName": "create_user" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER", + "safeName": "CREATE_USER" + }, + "pascalCase": { + "unsafeName": "CreateUser", + "safeName": "CreateUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/user" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateUserRequest", + "camelCase": { + "unsafeName": "createUserRequest", + "safeName": "createUserRequest" + }, + "snakeCase": { + "unsafeName": "create_user_request", + "safeName": "create_user_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER_REQUEST", + "safeName": "CREATE_USER_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateUserRequest", + "safeName": "CreateUserRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "_type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "CreateUserRequest" + } + } + }, + { + "name": { + "name": { + "originalName": "_version", + "camelCase": { + "unsafeName": "version", + "safeName": "version" + }, + "snakeCase": { + "unsafeName": "version", + "safeName": "version" + }, + "screamingSnakeCase": { + "unsafeName": "VERSION", + "safeName": "VERSION" + }, + "pascalCase": { + "unsafeName": "Version", + "safeName": "Version" + } + }, + "wireValue": "_version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "v1" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json index 969f09b08c0..dffbf196e3d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-download.json @@ -193,6 +193,92 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.downloadFile": { + "auth": null, + "declaration": { + "name": { + "originalName": "downloadFile", + "camelCase": { + "unsafeName": "downloadFile", + "safeName": "downloadFile" + }, + "snakeCase": { + "unsafeName": "download_file", + "safeName": "download_file" + }, + "screamingSnakeCase": { + "unsafeName": "DOWNLOAD_FILE", + "safeName": "DOWNLOAD_FILE" + }, + "pascalCase": { + "unsafeName": "DownloadFile", + "safeName": "DownloadFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json index 92bef297fac..0b92cb3d5d7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/file-upload.json @@ -2249,6 +2249,1569 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_service:Id": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_service:MyObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "MyObject", + "camelCase": { + "unsafeName": "myObject", + "safeName": "myObject" + }, + "snakeCase": { + "unsafeName": "my_object", + "safeName": "my_object" + }, + "screamingSnakeCase": { + "unsafeName": "MY_OBJECT", + "safeName": "MY_OBJECT" + }, + "pascalCase": { + "unsafeName": "MyObject", + "safeName": "MyObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:ObjectType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ObjectType", + "camelCase": { + "unsafeName": "objectType", + "safeName": "objectType" + }, + "snakeCase": { + "unsafeName": "object_type", + "safeName": "object_type" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_TYPE", + "safeName": "OBJECT_TYPE" + }, + "pascalCase": { + "unsafeName": "ObjectType", + "safeName": "ObjectType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "FOO", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "FOO" + }, + { + "name": { + "originalName": "BAR", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "BAR" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "MyRequest", + "camelCase": { + "unsafeName": "myRequest", + "safeName": "myRequest" + }, + "snakeCase": { + "unsafeName": "my_request", + "safeName": "my_request" + }, + "screamingSnakeCase": { + "unsafeName": "MY_REQUEST", + "safeName": "MY_REQUEST" + }, + "pascalCase": { + "unsafeName": "MyRequest", + "safeName": "MyRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "maybeString", + "camelCase": { + "unsafeName": "maybeString", + "safeName": "maybeString" + }, + "snakeCase": { + "unsafeName": "maybe_string", + "safeName": "maybe_string" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_STRING", + "safeName": "MAYBE_STRING" + }, + "pascalCase": { + "unsafeName": "MaybeString", + "safeName": "MaybeString" + } + }, + "wireValue": "maybeString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + { + "type": "fileArray", + "name": { + "originalName": "fileList", + "camelCase": { + "unsafeName": "fileList", + "safeName": "fileList" + }, + "snakeCase": { + "unsafeName": "file_list", + "safeName": "file_list" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_LIST", + "safeName": "FILE_LIST" + }, + "pascalCase": { + "unsafeName": "FileList", + "safeName": "FileList" + } + }, + "wireValue": "fileList" + }, + { + "type": "file", + "name": { + "originalName": "maybeFile", + "camelCase": { + "unsafeName": "maybeFile", + "safeName": "maybeFile" + }, + "snakeCase": { + "unsafeName": "maybe_file", + "safeName": "maybe_file" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_FILE", + "safeName": "MAYBE_FILE" + }, + "pascalCase": { + "unsafeName": "MaybeFile", + "safeName": "MaybeFile" + } + }, + "wireValue": "maybeFile" + }, + { + "type": "fileArray", + "name": { + "originalName": "maybeFileList", + "camelCase": { + "unsafeName": "maybeFileList", + "safeName": "maybeFileList" + }, + "snakeCase": { + "unsafeName": "maybe_file_list", + "safeName": "maybe_file_list" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_FILE_LIST", + "safeName": "MAYBE_FILE_LIST" + }, + "pascalCase": { + "unsafeName": "MaybeFileList", + "safeName": "MaybeFileList" + } + }, + "wireValue": "maybeFileList" + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "maybeInteger", + "camelCase": { + "unsafeName": "maybeInteger", + "safeName": "maybeInteger" + }, + "snakeCase": { + "unsafeName": "maybe_integer", + "safeName": "maybe_integer" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_INTEGER", + "safeName": "MAYBE_INTEGER" + }, + "pascalCase": { + "unsafeName": "MaybeInteger", + "safeName": "MaybeInteger" + } + }, + "wireValue": "maybeInteger" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalListOfStrings", + "camelCase": { + "unsafeName": "optionalListOfStrings", + "safeName": "optionalListOfStrings" + }, + "snakeCase": { + "unsafeName": "optional_list_of_strings", + "safeName": "optional_list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_LIST_OF_STRINGS", + "safeName": "OPTIONAL_LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "OptionalListOfStrings", + "safeName": "OptionalListOfStrings" + } + }, + "wireValue": "optionalListOfStrings" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "listOfObjects", + "camelCase": { + "unsafeName": "listOfObjects", + "safeName": "listOfObjects" + }, + "snakeCase": { + "unsafeName": "list_of_objects", + "safeName": "list_of_objects" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_OF_OBJECTS", + "safeName": "LIST_OF_OBJECTS" + }, + "pascalCase": { + "unsafeName": "ListOfObjects", + "safeName": "ListOfObjects" + } + }, + "wireValue": "listOfObjects" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_service:MyObject" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalMetadata", + "camelCase": { + "unsafeName": "optionalMetadata", + "safeName": "optionalMetadata" + }, + "snakeCase": { + "unsafeName": "optional_metadata", + "safeName": "optional_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_METADATA", + "safeName": "OPTIONAL_METADATA" + }, + "pascalCase": { + "unsafeName": "OptionalMetadata", + "safeName": "OptionalMetadata" + } + }, + "wireValue": "optionalMetadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "unknown" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalObjectType", + "camelCase": { + "unsafeName": "optionalObjectType", + "safeName": "optionalObjectType" + }, + "snakeCase": { + "unsafeName": "optional_object_type", + "safeName": "optional_object_type" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_OBJECT_TYPE", + "safeName": "OPTIONAL_OBJECT_TYPE" + }, + "pascalCase": { + "unsafeName": "OptionalObjectType", + "safeName": "OptionalObjectType" + } + }, + "wireValue": "optionalObjectType" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:ObjectType" + } + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "optionalId", + "camelCase": { + "unsafeName": "optionalID", + "safeName": "optionalID" + }, + "snakeCase": { + "unsafeName": "optional_id", + "safeName": "optional_id" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_ID", + "safeName": "OPTIONAL_ID" + }, + "pascalCase": { + "unsafeName": "OptionalID", + "safeName": "OptionalID" + } + }, + "wireValue": "optionalId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:Id" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.justFile": { + "auth": null, + "declaration": { + "name": { + "originalName": "justFile", + "camelCase": { + "unsafeName": "justFile", + "safeName": "justFile" + }, + "snakeCase": { + "unsafeName": "just_file", + "safeName": "just_file" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE", + "safeName": "JUST_FILE" + }, + "pascalCase": { + "unsafeName": "JustFile", + "safeName": "JustFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/just-file" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "JustFileRequet", + "camelCase": { + "unsafeName": "justFileRequet", + "safeName": "justFileRequet" + }, + "snakeCase": { + "unsafeName": "just_file_requet", + "safeName": "just_file_requet" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_REQUET", + "safeName": "JUST_FILE_REQUET" + }, + "pascalCase": { + "unsafeName": "JustFileRequet", + "safeName": "JustFileRequet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.justFileWithQueryParams": { + "auth": null, + "declaration": { + "name": { + "originalName": "justFileWithQueryParams", + "camelCase": { + "unsafeName": "justFileWithQueryParams", + "safeName": "justFileWithQueryParams" + }, + "snakeCase": { + "unsafeName": "just_file_with_query_params", + "safeName": "just_file_with_query_params" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS" + }, + "pascalCase": { + "unsafeName": "JustFileWithQueryParams", + "safeName": "JustFileWithQueryParams" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/just-file-with-query-params" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "JustFileWithQueryParamsRequet", + "camelCase": { + "unsafeName": "justFileWithQueryParamsRequet", + "safeName": "justFileWithQueryParamsRequet" + }, + "snakeCase": { + "unsafeName": "just_file_with_query_params_requet", + "safeName": "just_file_with_query_params_requet" + }, + "screamingSnakeCase": { + "unsafeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET", + "safeName": "JUST_FILE_WITH_QUERY_PARAMS_REQUET" + }, + "pascalCase": { + "unsafeName": "JustFileWithQueryParamsRequet", + "safeName": "JustFileWithQueryParamsRequet" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "maybeString", + "camelCase": { + "unsafeName": "maybeString", + "safeName": "maybeString" + }, + "snakeCase": { + "unsafeName": "maybe_string", + "safeName": "maybe_string" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_STRING", + "safeName": "MAYBE_STRING" + }, + "pascalCase": { + "unsafeName": "MaybeString", + "safeName": "MaybeString" + } + }, + "wireValue": "maybeString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "maybeInteger", + "camelCase": { + "unsafeName": "maybeInteger", + "safeName": "maybeInteger" + }, + "snakeCase": { + "unsafeName": "maybe_integer", + "safeName": "maybe_integer" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_INTEGER", + "safeName": "MAYBE_INTEGER" + }, + "pascalCase": { + "unsafeName": "MaybeInteger", + "safeName": "MaybeInteger" + } + }, + "wireValue": "maybeInteger" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "listOfStrings", + "camelCase": { + "unsafeName": "listOfStrings", + "safeName": "listOfStrings" + }, + "snakeCase": { + "unsafeName": "list_of_strings", + "safeName": "list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_OF_STRINGS", + "safeName": "LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "ListOfStrings", + "safeName": "ListOfStrings" + } + }, + "wireValue": "listOfStrings" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "optionalListOfStrings", + "camelCase": { + "unsafeName": "optionalListOfStrings", + "safeName": "optionalListOfStrings" + }, + "snakeCase": { + "unsafeName": "optional_list_of_strings", + "safeName": "optional_list_of_strings" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_LIST_OF_STRINGS", + "safeName": "OPTIONAL_LIST_OF_STRINGS" + }, + "pascalCase": { + "unsafeName": "OptionalListOfStrings", + "safeName": "OptionalListOfStrings" + } + }, + "wireValue": "optionalListOfStrings" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.withContentType": { + "auth": null, + "declaration": { + "name": { + "originalName": "withContentType", + "camelCase": { + "unsafeName": "withContentType", + "safeName": "withContentType" + }, + "snakeCase": { + "unsafeName": "with_content_type", + "safeName": "with_content_type" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CONTENT_TYPE", + "safeName": "WITH_CONTENT_TYPE" + }, + "pascalCase": { + "unsafeName": "WithContentType", + "safeName": "WithContentType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/with-content-type" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "WithContentTypeRequest", + "camelCase": { + "unsafeName": "withContentTypeRequest", + "safeName": "withContentTypeRequest" + }, + "snakeCase": { + "unsafeName": "with_content_type_request", + "safeName": "with_content_type_request" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CONTENT_TYPE_REQUEST", + "safeName": "WITH_CONTENT_TYPE_REQUEST" + }, + "pascalCase": { + "unsafeName": "WithContentTypeRequest", + "safeName": "WithContentTypeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "fileUpload", + "properties": [ + { + "type": "file", + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "typeReference": { + "_type": "named", + "value": "type_service:MyObject" + } + }, + { + "type": "bodyProperty", + "name": { + "name": { + "originalName": "foobar", + "camelCase": { + "unsafeName": "foobar", + "safeName": "foobar" + }, + "snakeCase": { + "unsafeName": "foobar", + "safeName": "foobar" + }, + "screamingSnakeCase": { + "unsafeName": "FOOBAR", + "safeName": "FOOBAR" + }, + "pascalCase": { + "unsafeName": "Foobar", + "safeName": "Foobar" + } + }, + "wireValue": "foobar" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:MyObject" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json index 0656efadc78..4e2a50b407f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/folders.json @@ -1416,6 +1416,763 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_a/d/types:Foo": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "d", + "camelCase": { + "unsafeName": "d", + "safeName": "d" + }, + "snakeCase": { + "unsafeName": "d", + "safeName": "d" + }, + "screamingSnakeCase": { + "unsafeName": "D", + "safeName": "D" + }, + "pascalCase": { + "unsafeName": "D", + "safeName": "D" + } + }, + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "d", + "camelCase": { + "unsafeName": "d", + "safeName": "d" + }, + "snakeCase": { + "unsafeName": "d", + "safeName": "d" + }, + "screamingSnakeCase": { + "unsafeName": "D", + "safeName": "D" + }, + "pascalCase": { + "unsafeName": "D", + "safeName": "D" + } + } + ], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "headers": [], + "endpoints": { + "endpoint_.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_a/b.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "b", + "camelCase": { + "unsafeName": "b", + "safeName": "b" + }, + "snakeCase": { + "unsafeName": "b", + "safeName": "b" + }, + "screamingSnakeCase": { + "unsafeName": "B", + "safeName": "B" + }, + "pascalCase": { + "unsafeName": "B", + "safeName": "B" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_a/c.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "c", + "camelCase": { + "unsafeName": "c", + "safeName": "c" + }, + "snakeCase": { + "unsafeName": "c", + "safeName": "c" + }, + "screamingSnakeCase": { + "unsafeName": "C", + "safeName": "C" + }, + "pascalCase": { + "unsafeName": "C", + "safeName": "C" + } + } + ], + "packagePath": [ + { + "originalName": "a", + "camelCase": { + "unsafeName": "a", + "safeName": "a" + }, + "snakeCase": { + "unsafeName": "a", + "safeName": "a" + }, + "screamingSnakeCase": { + "unsafeName": "A", + "safeName": "A" + }, + "pascalCase": { + "unsafeName": "A", + "safeName": "A" + } + }, + { + "originalName": "c", + "camelCase": { + "unsafeName": "c", + "safeName": "c" + }, + "snakeCase": { + "unsafeName": "c", + "safeName": "c" + }, + "screamingSnakeCase": { + "unsafeName": "C", + "safeName": "C" + }, + "pascalCase": { + "unsafeName": "C", + "safeName": "C" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder.foo": { + "auth": null, + "declaration": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder/service.endpoint": { + "auth": null, + "declaration": { + "name": { + "originalName": "endpoint", + "camelCase": { + "unsafeName": "endpoint", + "safeName": "endpoint" + }, + "snakeCase": { + "unsafeName": "endpoint", + "safeName": "endpoint" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT", + "safeName": "ENDPOINT" + }, + "pascalCase": { + "unsafeName": "Endpoint", + "safeName": "Endpoint" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/service" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_folder/service.unknownRequest": { + "auth": null, + "declaration": { + "name": { + "originalName": "unknownRequest", + "camelCase": { + "unsafeName": "unknownRequest", + "safeName": "unknownRequest" + }, + "snakeCase": { + "unsafeName": "unknown_request", + "safeName": "unknown_request" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN_REQUEST", + "safeName": "UNKNOWN_REQUEST" + }, + "pascalCase": { + "unsafeName": "UnknownRequest", + "safeName": "UnknownRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + }, + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [ + { + "originalName": "folder", + "camelCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "snakeCase": { + "unsafeName": "folder", + "safeName": "folder" + }, + "screamingSnakeCase": { + "unsafeName": "FOLDER", + "safeName": "FOLDER" + }, + "pascalCase": { + "unsafeName": "Folder", + "safeName": "Folder" + } + } + ], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/service" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_a": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/go-content-type.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/go-content-type.json index 25db020c21a..1a3a23f1e69 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/go-content-type.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/go-content-type.json @@ -879,6 +879,245 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json index 7460c9a763e..4af0ff377c8 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/idempotency-headers.json @@ -1057,6 +1057,486 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_payment:Currency": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Currency", + "camelCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "snakeCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "screamingSnakeCase": { + "unsafeName": "CURRENCY", + "safeName": "CURRENCY" + }, + "pascalCase": { + "unsafeName": "Currency", + "safeName": "Currency" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "USD", + "camelCase": { + "unsafeName": "usd", + "safeName": "usd" + }, + "snakeCase": { + "unsafeName": "usd", + "safeName": "usd" + }, + "screamingSnakeCase": { + "unsafeName": "USD", + "safeName": "USD" + }, + "pascalCase": { + "unsafeName": "Usd", + "safeName": "Usd" + } + }, + "wireValue": "USD" + }, + { + "name": { + "originalName": "YEN", + "camelCase": { + "unsafeName": "yen", + "safeName": "yen" + }, + "snakeCase": { + "unsafeName": "yen", + "safeName": "yen" + }, + "screamingSnakeCase": { + "unsafeName": "YEN", + "safeName": "YEN" + }, + "pascalCase": { + "unsafeName": "Yen", + "safeName": "Yen" + } + }, + "wireValue": "YEN" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_payment.create": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "location": { + "method": "POST", + "path": "/payment" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreatePaymentRequest", + "camelCase": { + "unsafeName": "createPaymentRequest", + "safeName": "createPaymentRequest" + }, + "snakeCase": { + "unsafeName": "create_payment_request", + "safeName": "create_payment_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PAYMENT_REQUEST", + "safeName": "CREATE_PAYMENT_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreatePaymentRequest", + "safeName": "CreatePaymentRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "amount", + "camelCase": { + "unsafeName": "amount", + "safeName": "amount" + }, + "snakeCase": { + "unsafeName": "amount", + "safeName": "amount" + }, + "screamingSnakeCase": { + "unsafeName": "AMOUNT", + "safeName": "AMOUNT" + }, + "pascalCase": { + "unsafeName": "Amount", + "safeName": "Amount" + } + }, + "wireValue": "amount" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "currency", + "camelCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "snakeCase": { + "unsafeName": "currency", + "safeName": "currency" + }, + "screamingSnakeCase": { + "unsafeName": "CURRENCY", + "safeName": "CURRENCY" + }, + "pascalCase": { + "unsafeName": "Currency", + "safeName": "Currency" + } + }, + "wireValue": "currency" + }, + "typeReference": { + "_type": "named", + "value": "type_payment:Currency" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_payment.delete": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "delete", + "camelCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "snakeCase": { + "unsafeName": "delete", + "safeName": "delete" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE", + "safeName": "DELETE" + }, + "pascalCase": { + "unsafeName": "Delete", + "safeName": "Delete" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + ], + "packagePath": [], + "file": { + "originalName": "payment", + "camelCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "snakeCase": { + "unsafeName": "payment", + "safeName": "payment" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT", + "safeName": "PAYMENT" + }, + "pascalCase": { + "unsafeName": "Payment", + "safeName": "Payment" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/payment/{paymentId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "paymentId", + "camelCase": { + "unsafeName": "paymentID", + "safeName": "paymentID" + }, + "snakeCase": { + "unsafeName": "payment_id", + "safeName": "payment_id" + }, + "screamingSnakeCase": { + "unsafeName": "PAYMENT_ID", + "safeName": "PAYMENT_ID" + }, + "pascalCase": { + "unsafeName": "PaymentID", + "safeName": "PaymentID" + } + }, + "wireValue": "paymentId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_payment": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json index 2117ee8e278..4e8797731df 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/imdb.json @@ -2509,6 +2509,598 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_imdb:CreateMovieRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.createMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createMovie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_imdb:CreateMovieRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.getMovie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{movieId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movieId" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/license.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/license.json index abde404ca97..ba60ed96c7e 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/license.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/license.json @@ -263,6 +263,114 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json index 4cc3dee3f35..0ccff03596a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/literal.json @@ -11682,6 +11682,2120 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:SendResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "SendResponse", + "camelCase": { + "unsafeName": "sendResponse", + "safeName": "sendResponse" + }, + "snakeCase": { + "unsafeName": "send_response", + "safeName": "send_response" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_RESPONSE", + "safeName": "SEND_RESPONSE" + }, + "pascalCase": { + "unsafeName": "SendResponse", + "safeName": "SendResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "success", + "camelCase": { + "unsafeName": "success", + "safeName": "success" + }, + "snakeCase": { + "unsafeName": "success", + "safeName": "success" + }, + "screamingSnakeCase": { + "unsafeName": "SUCCESS", + "safeName": "SUCCESS" + }, + "pascalCase": { + "unsafeName": "Success", + "safeName": "Success" + } + }, + "wireValue": "success" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ] + }, + "type_inlined:SomeAliasedLiteral": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SomeAliasedLiteral", + "camelCase": { + "unsafeName": "someAliasedLiteral", + "safeName": "someAliasedLiteral" + }, + "snakeCase": { + "unsafeName": "some_aliased_literal", + "safeName": "some_aliased_literal" + }, + "screamingSnakeCase": { + "unsafeName": "SOME_ALIASED_LITERAL", + "safeName": "SOME_ALIASED_LITERAL" + }, + "pascalCase": { + "unsafeName": "SomeAliasedLiteral", + "safeName": "SomeAliasedLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + }, + "type_inlined:ATopLevelLiteral": { + "type": "object", + "declaration": { + "name": { + "originalName": "ATopLevelLiteral", + "camelCase": { + "unsafeName": "aTopLevelLiteral", + "safeName": "aTopLevelLiteral" + }, + "snakeCase": { + "unsafeName": "a_top_level_literal", + "safeName": "a_top_level_literal" + }, + "screamingSnakeCase": { + "unsafeName": "A_TOP_LEVEL_LITERAL", + "safeName": "A_TOP_LEVEL_LITERAL" + }, + "pascalCase": { + "unsafeName": "ATopLevelLiteral", + "safeName": "ATopLevelLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nestedLiteral", + "camelCase": { + "unsafeName": "nestedLiteral", + "safeName": "nestedLiteral" + }, + "snakeCase": { + "unsafeName": "nested_literal", + "safeName": "nested_literal" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_LITERAL", + "safeName": "NESTED_LITERAL" + }, + "pascalCase": { + "unsafeName": "NestedLiteral", + "safeName": "NestedLiteral" + } + }, + "wireValue": "nestedLiteral" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:ANestedLiteral" + } + } + ] + }, + "type_inlined:ANestedLiteral": { + "type": "object", + "declaration": { + "name": { + "originalName": "ANestedLiteral", + "camelCase": { + "unsafeName": "aNestedLiteral", + "safeName": "aNestedLiteral" + }, + "snakeCase": { + "unsafeName": "a_nested_literal", + "safeName": "a_nested_literal" + }, + "screamingSnakeCase": { + "unsafeName": "A_NESTED_LITERAL", + "safeName": "A_NESTED_LITERAL" + }, + "pascalCase": { + "unsafeName": "ANestedLiteral", + "safeName": "ANestedLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "myLiteral", + "camelCase": { + "unsafeName": "myLiteral", + "safeName": "myLiteral" + }, + "snakeCase": { + "unsafeName": "my_literal", + "safeName": "my_literal" + }, + "screamingSnakeCase": { + "unsafeName": "MY_LITERAL", + "safeName": "MY_LITERAL" + }, + "pascalCase": { + "unsafeName": "MyLiteral", + "safeName": "MyLiteral" + } + }, + "wireValue": "myLiteral" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "How super cool" + } + } + } + ] + }, + "type_reference:SendRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "SendRequest", + "camelCase": { + "unsafeName": "sendRequest", + "safeName": "sendRequest" + }, + "snakeCase": { + "unsafeName": "send_request", + "safeName": "send_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_REQUEST", + "safeName": "SEND_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendRequest", + "safeName": "SendRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "context", + "camelCase": { + "unsafeName": "context", + "safeName": "context" + }, + "snakeCase": { + "unsafeName": "context", + "safeName": "context" + }, + "screamingSnakeCase": { + "unsafeName": "CONTEXT", + "safeName": "CONTEXT" + }, + "pascalCase": { + "unsafeName": "Context", + "safeName": "Context" + } + }, + "wireValue": "context" + }, + "typeReference": { + "_type": "named", + "value": "type_reference:SomeLiteral" + } + }, + { + "name": { + "name": { + "originalName": "maybeContext", + "camelCase": { + "unsafeName": "maybeContext", + "safeName": "maybeContext" + }, + "snakeCase": { + "unsafeName": "maybe_context", + "safeName": "maybe_context" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_CONTEXT", + "safeName": "MAYBE_CONTEXT" + }, + "pascalCase": { + "unsafeName": "MaybeContext", + "safeName": "MaybeContext" + } + }, + "wireValue": "maybeContext" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_reference:SomeLiteral" + } + } + }, + { + "name": { + "name": { + "originalName": "containerObject", + "camelCase": { + "unsafeName": "containerObject", + "safeName": "containerObject" + }, + "snakeCase": { + "unsafeName": "container_object", + "safeName": "container_object" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_OBJECT", + "safeName": "CONTAINER_OBJECT" + }, + "pascalCase": { + "unsafeName": "ContainerObject", + "safeName": "ContainerObject" + } + }, + "wireValue": "containerObject" + }, + "typeReference": { + "_type": "named", + "value": "type_reference:ContainerObject" + } + } + ] + }, + "type_reference:ContainerObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "ContainerObject", + "camelCase": { + "unsafeName": "containerObject", + "safeName": "containerObject" + }, + "snakeCase": { + "unsafeName": "container_object", + "safeName": "container_object" + }, + "screamingSnakeCase": { + "unsafeName": "CONTAINER_OBJECT", + "safeName": "CONTAINER_OBJECT" + }, + "pascalCase": { + "unsafeName": "ContainerObject", + "safeName": "ContainerObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nestedObjects", + "camelCase": { + "unsafeName": "nestedObjects", + "safeName": "nestedObjects" + }, + "snakeCase": { + "unsafeName": "nested_objects", + "safeName": "nested_objects" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECTS", + "safeName": "NESTED_OBJECTS" + }, + "pascalCase": { + "unsafeName": "NestedObjects", + "safeName": "NestedObjects" + } + }, + "wireValue": "nestedObjects" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_reference:NestedObjectWithLiterals" + } + } + } + ] + }, + "type_reference:NestedObjectWithLiterals": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedObjectWithLiterals", + "camelCase": { + "unsafeName": "nestedObjectWithLiterals", + "safeName": "nestedObjectWithLiterals" + }, + "snakeCase": { + "unsafeName": "nested_object_with_literals", + "safeName": "nested_object_with_literals" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_OBJECT_WITH_LITERALS", + "safeName": "NESTED_OBJECT_WITH_LITERALS" + }, + "pascalCase": { + "unsafeName": "NestedObjectWithLiterals", + "safeName": "NestedObjectWithLiterals" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "literal1", + "camelCase": { + "unsafeName": "literal1", + "safeName": "literal1" + }, + "snakeCase": { + "unsafeName": "literal1", + "safeName": "literal1" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL1", + "safeName": "LITERAL1" + }, + "pascalCase": { + "unsafeName": "Literal1", + "safeName": "Literal1" + } + }, + "wireValue": "literal1" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "literal1" + } + } + }, + { + "name": { + "name": { + "originalName": "literal2", + "camelCase": { + "unsafeName": "literal2", + "safeName": "literal2" + }, + "snakeCase": { + "unsafeName": "literal2", + "safeName": "literal2" + }, + "screamingSnakeCase": { + "unsafeName": "LITERAL2", + "safeName": "LITERAL2" + }, + "pascalCase": { + "unsafeName": "Literal2", + "safeName": "Literal2" + } + }, + "wireValue": "literal2" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "literal2" + } + } + }, + { + "name": { + "name": { + "originalName": "strProp", + "camelCase": { + "unsafeName": "strProp", + "safeName": "strProp" + }, + "snakeCase": { + "unsafeName": "str_prop", + "safeName": "str_prop" + }, + "screamingSnakeCase": { + "unsafeName": "STR_PROP", + "safeName": "STR_PROP" + }, + "pascalCase": { + "unsafeName": "StrProp", + "safeName": "StrProp" + } + }, + "wireValue": "strProp" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_reference:SomeLiteral": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SomeLiteral", + "camelCase": { + "unsafeName": "someLiteral", + "safeName": "someLiteral" + }, + "snakeCase": { + "unsafeName": "some_literal", + "safeName": "some_literal" + }, + "screamingSnakeCase": { + "unsafeName": "SOME_LITERAL", + "safeName": "SOME_LITERAL" + }, + "pascalCase": { + "unsafeName": "SomeLiteral", + "safeName": "SomeLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + } + }, + "headers": [ + { + "name": { + "name": { + "originalName": "version", + "camelCase": { + "unsafeName": "version", + "safeName": "version" + }, + "snakeCase": { + "unsafeName": "version", + "safeName": "version" + }, + "screamingSnakeCase": { + "unsafeName": "VERSION", + "safeName": "VERSION" + }, + "pascalCase": { + "unsafeName": "Version", + "safeName": "Version" + } + }, + "wireValue": "X-API-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "02-02-2024" + } + } + }, + { + "name": { + "name": { + "originalName": "audit_logging", + "camelCase": { + "unsafeName": "auditLogging", + "safeName": "auditLogging" + }, + "snakeCase": { + "unsafeName": "audit_logging", + "safeName": "audit_logging" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_LOGGING", + "safeName": "AUDIT_LOGGING" + }, + "pascalCase": { + "unsafeName": "AuditLogging", + "safeName": "AuditLogging" + } + }, + "wireValue": "X-API-Enable-Audit-Logging" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ], + "endpoints": { + "endpoint_headers.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + ], + "packagePath": [], + "file": { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + } + }, + "location": { + "method": "POST", + "path": "/headers" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInHeadersRequest", + "camelCase": { + "unsafeName": "sendLiteralsInHeadersRequest", + "safeName": "sendLiteralsInHeadersRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_in_headers_request", + "safeName": "send_literals_in_headers_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_IN_HEADERS_REQUEST", + "safeName": "SEND_LITERALS_IN_HEADERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInHeadersRequest", + "safeName": "SendLiteralsInHeadersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + ], + "packagePath": [], + "file": { + "originalName": "headers", + "camelCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "snakeCase": { + "unsafeName": "headers", + "safeName": "headers" + }, + "screamingSnakeCase": { + "unsafeName": "HEADERS", + "safeName": "HEADERS" + }, + "pascalCase": { + "unsafeName": "Headers", + "safeName": "Headers" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "endpointVersion", + "camelCase": { + "unsafeName": "endpointVersion", + "safeName": "endpointVersion" + }, + "snakeCase": { + "unsafeName": "endpoint_version", + "safeName": "endpoint_version" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_VERSION", + "safeName": "ENDPOINT_VERSION" + }, + "pascalCase": { + "unsafeName": "EndpointVersion", + "safeName": "EndpointVersion" + } + }, + "wireValue": "X-Endpoint-Version" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "02-12-2024" + } + } + }, + { + "name": { + "name": { + "originalName": "async", + "camelCase": { + "unsafeName": "async", + "safeName": "async" + }, + "snakeCase": { + "unsafeName": "async", + "safeName": "async" + }, + "screamingSnakeCase": { + "unsafeName": "ASYNC", + "safeName": "ASYNC" + }, + "pascalCase": { + "unsafeName": "Async", + "safeName": "Async" + } + }, + "wireValue": "X-Async" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + } + ], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_inlined.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "location": { + "method": "POST", + "path": "/inlined" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInlinedRequest", + "camelCase": { + "unsafeName": "sendLiteralsInlinedRequest", + "safeName": "sendLiteralsInlinedRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_inlined_request", + "safeName": "send_literals_inlined_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_INLINED_REQUEST", + "safeName": "SEND_LITERALS_INLINED_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInlinedRequest", + "safeName": "SendLiteralsInlinedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + ], + "packagePath": [], + "file": { + "originalName": "inlined", + "camelCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "snakeCase": { + "unsafeName": "inlined", + "safeName": "inlined" + }, + "screamingSnakeCase": { + "unsafeName": "INLINED", + "safeName": "INLINED" + }, + "pascalCase": { + "unsafeName": "Inlined", + "safeName": "Inlined" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "context", + "camelCase": { + "unsafeName": "context", + "safeName": "context" + }, + "snakeCase": { + "unsafeName": "context", + "safeName": "context" + }, + "screamingSnakeCase": { + "unsafeName": "CONTEXT", + "safeName": "CONTEXT" + }, + "pascalCase": { + "unsafeName": "Context", + "safeName": "Context" + } + }, + "wireValue": "context" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "literal", + "value": { + "type": "string", + "value": "You're super wise" + } + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "temperature", + "camelCase": { + "unsafeName": "temperature", + "safeName": "temperature" + }, + "snakeCase": { + "unsafeName": "temperature", + "safeName": "temperature" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPERATURE", + "safeName": "TEMPERATURE" + }, + "pascalCase": { + "unsafeName": "Temperature", + "safeName": "Temperature" + } + }, + "wireValue": "temperature" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "aliasedContext", + "camelCase": { + "unsafeName": "aliasedContext", + "safeName": "aliasedContext" + }, + "snakeCase": { + "unsafeName": "aliased_context", + "safeName": "aliased_context" + }, + "screamingSnakeCase": { + "unsafeName": "ALIASED_CONTEXT", + "safeName": "ALIASED_CONTEXT" + }, + "pascalCase": { + "unsafeName": "AliasedContext", + "safeName": "AliasedContext" + } + }, + "wireValue": "aliasedContext" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:SomeAliasedLiteral" + } + }, + { + "name": { + "name": { + "originalName": "maybeContext", + "camelCase": { + "unsafeName": "maybeContext", + "safeName": "maybeContext" + }, + "snakeCase": { + "unsafeName": "maybe_context", + "safeName": "maybe_context" + }, + "screamingSnakeCase": { + "unsafeName": "MAYBE_CONTEXT", + "safeName": "MAYBE_CONTEXT" + }, + "pascalCase": { + "unsafeName": "MaybeContext", + "safeName": "MaybeContext" + } + }, + "wireValue": "maybeContext" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_inlined:SomeAliasedLiteral" + } + } + }, + { + "name": { + "name": { + "originalName": "objectWithLiteral", + "camelCase": { + "unsafeName": "objectWithLiteral", + "safeName": "objectWithLiteral" + }, + "snakeCase": { + "unsafeName": "object_with_literal", + "safeName": "object_with_literal" + }, + "screamingSnakeCase": { + "unsafeName": "OBJECT_WITH_LITERAL", + "safeName": "OBJECT_WITH_LITERAL" + }, + "pascalCase": { + "unsafeName": "ObjectWithLiteral", + "safeName": "ObjectWithLiteral" + } + }, + "wireValue": "objectWithLiteral" + }, + "typeReference": { + "_type": "named", + "value": "type_inlined:ATopLevelLiteral" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_path.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "path", + "camelCase": { + "unsafeName": "path", + "safeName": "path" + }, + "snakeCase": { + "unsafeName": "path", + "safeName": "path" + }, + "screamingSnakeCase": { + "unsafeName": "PATH", + "safeName": "PATH" + }, + "pascalCase": { + "unsafeName": "Path", + "safeName": "Path" + } + } + ], + "packagePath": [], + "file": { + "originalName": "path", + "camelCase": { + "unsafeName": "path", + "safeName": "path" + }, + "snakeCase": { + "unsafeName": "path", + "safeName": "path" + }, + "screamingSnakeCase": { + "unsafeName": "PATH", + "safeName": "PATH" + }, + "pascalCase": { + "unsafeName": "Path", + "safeName": "Path" + } + } + } + }, + "location": { + "method": "POST", + "path": "/path/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "123" + } + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_query.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + } + }, + "location": { + "method": "POST", + "path": "/query" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SendLiteralsInQueryRequest", + "camelCase": { + "unsafeName": "sendLiteralsInQueryRequest", + "safeName": "sendLiteralsInQueryRequest" + }, + "snakeCase": { + "unsafeName": "send_literals_in_query_request", + "safeName": "send_literals_in_query_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_LITERALS_IN_QUERY_REQUEST", + "safeName": "SEND_LITERALS_IN_QUERY_REQUEST" + }, + "pascalCase": { + "unsafeName": "SendLiteralsInQueryRequest", + "safeName": "SendLiteralsInQueryRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + ], + "packagePath": [], + "file": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "prompt", + "camelCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "snakeCase": { + "unsafeName": "prompt", + "safeName": "prompt" + }, + "screamingSnakeCase": { + "unsafeName": "PROMPT", + "safeName": "PROMPT" + }, + "pascalCase": { + "unsafeName": "Prompt", + "safeName": "Prompt" + } + }, + "wireValue": "prompt" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "You are a helpful assistant" + } + } + }, + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_reference.send": { + "auth": null, + "declaration": { + "name": { + "originalName": "send", + "camelCase": { + "unsafeName": "send", + "safeName": "send" + }, + "snakeCase": { + "unsafeName": "send", + "safeName": "send" + }, + "screamingSnakeCase": { + "unsafeName": "SEND", + "safeName": "SEND" + }, + "pascalCase": { + "unsafeName": "Send", + "safeName": "Send" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + ], + "packagePath": [], + "file": { + "originalName": "reference", + "camelCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "snakeCase": { + "unsafeName": "reference", + "safeName": "reference" + }, + "screamingSnakeCase": { + "unsafeName": "REFERENCE", + "safeName": "REFERENCE" + }, + "pascalCase": { + "unsafeName": "Reference", + "safeName": "Reference" + } + } + } + }, + "location": { + "method": "POST", + "path": "/reference" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_reference:SendRequest" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_headers": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json index 5059184d07f..6002e3d0c61 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-case.json @@ -6742,6 +6742,1029 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_service:Organization": { + "type": "object", + "declaration": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "userName", + "camelCase": { + "unsafeName": "userName", + "safeName": "userName" + }, + "snakeCase": { + "unsafeName": "user_name", + "safeName": "user_name" + }, + "screamingSnakeCase": { + "unsafeName": "USER_NAME", + "safeName": "USER_NAME" + }, + "pascalCase": { + "unsafeName": "UserName", + "safeName": "UserName" + } + }, + "wireValue": "userName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "metadata_tags", + "camelCase": { + "unsafeName": "metadataTags", + "safeName": "metadataTags" + }, + "snakeCase": { + "unsafeName": "metadata_tags", + "safeName": "metadata_tags" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA_TAGS", + "safeName": "METADATA_TAGS" + }, + "pascalCase": { + "unsafeName": "MetadataTags", + "safeName": "MetadataTags" + } + }, + "wireValue": "metadata_tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "EXTRA_PROPERTIES", + "camelCase": { + "unsafeName": "extraProperties", + "safeName": "extraProperties" + }, + "snakeCase": { + "unsafeName": "extra_properties", + "safeName": "extra_properties" + }, + "screamingSnakeCase": { + "unsafeName": "EXTRA_PROPERTIES", + "safeName": "EXTRA_PROPERTIES" + }, + "pascalCase": { + "unsafeName": "ExtraProperties", + "safeName": "ExtraProperties" + } + }, + "wireValue": "EXTRA_PROPERTIES" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_service:NestedUser": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "Name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "wireValue": "NestedUser" + }, + "typeReference": { + "_type": "named", + "value": "type_service:User" + } + } + ] + }, + "type_service:ResourceStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ResourceStatus", + "camelCase": { + "unsafeName": "resourceStatus", + "safeName": "resourceStatus" + }, + "snakeCase": { + "unsafeName": "resource_status", + "safeName": "resource_status" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_STATUS", + "safeName": "RESOURCE_STATUS" + }, + "pascalCase": { + "unsafeName": "ResourceStatus", + "safeName": "ResourceStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "ACTIVE", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + }, + "wireValue": "ACTIVE" + }, + { + "name": { + "originalName": "INACTIVE", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + }, + "wireValue": "INACTIVE" + } + ] + }, + "type_service:Resource": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Resource", + "camelCase": { + "unsafeName": "resource", + "safeName": "resource" + }, + "snakeCase": { + "unsafeName": "resource", + "safeName": "resource" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE", + "safeName": "RESOURCE" + }, + "pascalCase": { + "unsafeName": "Resource", + "safeName": "Resource" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "resourceType", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "types": { + "user": { + "type": "samePropertiesAsObject", + "typeId": "type_service:User", + "discriminantValue": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_service:ResourceStatus" + } + } + ] + }, + "Organization": { + "type": "samePropertiesAsObject", + "typeId": "type_service:Organization", + "discriminantValue": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "wireValue": "Organization" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_service:ResourceStatus" + } + } + ] + } + } + } + }, + "headers": [], + "endpoints": { + "endpoint_service.getResource": { + "auth": null, + "declaration": { + "name": { + "originalName": "getResource", + "camelCase": { + "unsafeName": "getResource", + "safeName": "getResource" + }, + "snakeCase": { + "unsafeName": "get_resource", + "safeName": "get_resource" + }, + "screamingSnakeCase": { + "unsafeName": "GET_RESOURCE", + "safeName": "GET_RESOURCE" + }, + "pascalCase": { + "unsafeName": "GetResource", + "safeName": "GetResource" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/resource/{ResourceID}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "ResourceID", + "camelCase": { + "unsafeName": "resourceID", + "safeName": "resourceID" + }, + "snakeCase": { + "unsafeName": "resource_id", + "safeName": "resource_id" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_ID", + "safeName": "RESOURCE_ID" + }, + "pascalCase": { + "unsafeName": "ResourceID", + "safeName": "ResourceID" + } + }, + "wireValue": "ResourceID" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_service.listResources": { + "auth": null, + "declaration": { + "name": { + "originalName": "listResources", + "camelCase": { + "unsafeName": "listResources", + "safeName": "listResources" + }, + "snakeCase": { + "unsafeName": "list_resources", + "safeName": "list_resources" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESOURCES", + "safeName": "LIST_RESOURCES" + }, + "pascalCase": { + "unsafeName": "ListResources", + "safeName": "ListResources" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/resource" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListResourcesRequest", + "camelCase": { + "unsafeName": "listResourcesRequest", + "safeName": "listResourcesRequest" + }, + "snakeCase": { + "unsafeName": "list_resources_request", + "safeName": "list_resources_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_RESOURCES_REQUEST", + "safeName": "LIST_RESOURCES_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListResourcesRequest", + "safeName": "ListResourcesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page_limit", + "camelCase": { + "unsafeName": "pageLimit", + "safeName": "pageLimit" + }, + "snakeCase": { + "unsafeName": "page_limit", + "safeName": "page_limit" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE_LIMIT", + "safeName": "PAGE_LIMIT" + }, + "pascalCase": { + "unsafeName": "PageLimit", + "safeName": "PageLimit" + } + }, + "wireValue": "page_limit" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "beforeDate", + "camelCase": { + "unsafeName": "beforeDate", + "safeName": "beforeDate" + }, + "snakeCase": { + "unsafeName": "before_date", + "safeName": "before_date" + }, + "screamingSnakeCase": { + "unsafeName": "BEFORE_DATE", + "safeName": "BEFORE_DATE" + }, + "pascalCase": { + "unsafeName": "BeforeDate", + "safeName": "BeforeDate" + } + }, + "wireValue": "beforeDate" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-file-directory.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-file-directory.json index ac81fe4fe67..c109710d66b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-file-directory.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/mixed-file-directory.json @@ -6916,6 +6916,1675 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Id": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_organization:Organization": { + "type": "object", + "declaration": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + } + ] + }, + "type_organization:CreateOrganizationRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateOrganizationRequest", + "camelCase": { + "unsafeName": "createOrganizationRequest", + "safeName": "createOrganizationRequest" + }, + "snakeCase": { + "unsafeName": "create_organization_request", + "safeName": "create_organization_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_ORGANIZATION_REQUEST", + "safeName": "CREATE_ORGANIZATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateOrganizationRequest", + "safeName": "CreateOrganizationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_user/events:Event": { + "type": "object", + "declaration": { + "name": { + "originalName": "Event", + "camelCase": { + "unsafeName": "event", + "safeName": "event" + }, + "snakeCase": { + "unsafeName": "event", + "safeName": "event" + }, + "screamingSnakeCase": { + "unsafeName": "EVENT", + "safeName": "EVENT" + }, + "pascalCase": { + "unsafeName": "Event", + "safeName": "Event" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_user/events/metadata:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_organization.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + ], + "packagePath": [], + "file": { + "originalName": "organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + } + } + }, + "location": { + "method": "POST", + "path": "/organizations/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_organization:CreateOrganizationRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.list": { + "auth": null, + "declaration": { + "name": { + "originalName": "list", + "camelCase": { + "unsafeName": "list", + "safeName": "list" + }, + "snakeCase": { + "unsafeName": "list", + "safeName": "list" + }, + "screamingSnakeCase": { + "unsafeName": "LIST", + "safeName": "LIST" + }, + "pascalCase": { + "unsafeName": "List", + "safeName": "List" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersRequest", + "camelCase": { + "unsafeName": "listUsersRequest", + "safeName": "listUsersRequest" + }, + "snakeCase": { + "unsafeName": "list_users_request", + "safeName": "list_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_REQUEST", + "safeName": "LIST_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersRequest", + "safeName": "ListUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user/events.listEvents": { + "auth": null, + "declaration": { + "name": { + "originalName": "listEvents", + "camelCase": { + "unsafeName": "listEvents", + "safeName": "listEvents" + }, + "snakeCase": { + "unsafeName": "list_events", + "safeName": "list_events" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_EVENTS", + "safeName": "LIST_EVENTS" + }, + "pascalCase": { + "unsafeName": "ListEvents", + "safeName": "ListEvents" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/events/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUserEventsRequest", + "camelCase": { + "unsafeName": "listUserEventsRequest", + "safeName": "listUserEventsRequest" + }, + "snakeCase": { + "unsafeName": "list_user_events_request", + "safeName": "list_user_events_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USER_EVENTS_REQUEST", + "safeName": "LIST_USER_EVENTS_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUserEventsRequest", + "safeName": "ListUserEventsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "file": { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user/events/metadata.getMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/events/metadata/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetEventMetadataRequest", + "camelCase": { + "unsafeName": "getEventMetadataRequest", + "safeName": "getEventMetadataRequest" + }, + "snakeCase": { + "unsafeName": "get_event_metadata_request", + "safeName": "get_event_metadata_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EVENT_METADATA_REQUEST", + "safeName": "GET_EVENT_METADATA_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetEventMetadataRequest", + "safeName": "GetEventMetadataRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + { + "originalName": "events", + "camelCase": { + "unsafeName": "events", + "safeName": "events" + }, + "snakeCase": { + "unsafeName": "events", + "safeName": "events" + }, + "screamingSnakeCase": { + "unsafeName": "EVENTS", + "safeName": "EVENTS" + }, + "pascalCase": { + "unsafeName": "Events", + "safeName": "Events" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_:Id" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_organization": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json index bec6292e2e8..7e8be7b4a2f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-line-docs.json @@ -1571,6 +1571,587 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Operand": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Operand", + "camelCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "snakeCase": { + "unsafeName": "operand", + "safeName": "operand" + }, + "screamingSnakeCase": { + "unsafeName": "OPERAND", + "safeName": "OPERAND" + }, + "pascalCase": { + "unsafeName": "Operand", + "safeName": "Operand" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "GREATER_THAN", + "camelCase": { + "unsafeName": "greaterThan", + "safeName": "greaterThan" + }, + "snakeCase": { + "unsafeName": "greater_than", + "safeName": "greater_than" + }, + "screamingSnakeCase": { + "unsafeName": "GREATER_THAN", + "safeName": "GREATER_THAN" + }, + "pascalCase": { + "unsafeName": "GreaterThan", + "safeName": "GreaterThan" + } + }, + "wireValue": ">" + }, + { + "name": { + "originalName": "EQUAL_TO", + "camelCase": { + "unsafeName": "equalTo", + "safeName": "equalTo" + }, + "snakeCase": { + "unsafeName": "equal_to", + "safeName": "equal_to" + }, + "screamingSnakeCase": { + "unsafeName": "EQUAL_TO", + "safeName": "EQUAL_TO" + }, + "pascalCase": { + "unsafeName": "EqualTo", + "safeName": "EqualTo" + } + }, + "wireValue": "=" + }, + { + "name": { + "originalName": "less_than", + "camelCase": { + "unsafeName": "lessThan", + "safeName": "lessThan" + }, + "snakeCase": { + "unsafeName": "less_than", + "safeName": "less_than" + }, + "screamingSnakeCase": { + "unsafeName": "LESS_THAN", + "safeName": "LESS_THAN" + }, + "pascalCase": { + "unsafeName": "LessThan", + "safeName": "LessThan" + } + }, + "wireValue": "less_than" + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_user.createUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "createUser", + "camelCase": { + "unsafeName": "createUser", + "safeName": "createUser" + }, + "snakeCase": { + "unsafeName": "create_user", + "safeName": "create_user" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER", + "safeName": "CREATE_USER" + }, + "pascalCase": { + "unsafeName": "CreateUser", + "safeName": "CreateUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateUserRequest", + "camelCase": { + "unsafeName": "createUserRequest", + "safeName": "createUserRequest" + }, + "snakeCase": { + "unsafeName": "create_user_request", + "safeName": "create_user_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_USER_REQUEST", + "safeName": "CREATE_USER_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateUserRequest", + "safeName": "CreateUserRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "age", + "camelCase": { + "unsafeName": "age", + "safeName": "age" + }, + "snakeCase": { + "unsafeName": "age", + "safeName": "age" + }, + "screamingSnakeCase": { + "unsafeName": "AGE", + "safeName": "AGE" + }, + "pascalCase": { + "unsafeName": "Age", + "safeName": "Age" + } + }, + "wireValue": "age" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json index 20782e9b75d..1aea703d67c 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment-no-default.json @@ -859,6 +859,417 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_ec2.bootInstance": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "bootInstance", + "camelCase": { + "unsafeName": "bootInstance", + "safeName": "bootInstance" + }, + "snakeCase": { + "unsafeName": "boot_instance", + "safeName": "boot_instance" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE", + "safeName": "BOOT_INSTANCE" + }, + "pascalCase": { + "unsafeName": "BootInstance", + "safeName": "BootInstance" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "location": { + "method": "POST", + "path": "/ec2/boot" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "BootInstanceRequest", + "camelCase": { + "unsafeName": "bootInstanceRequest", + "safeName": "bootInstanceRequest" + }, + "snakeCase": { + "unsafeName": "boot_instance_request", + "safeName": "boot_instance_request" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE_REQUEST", + "safeName": "BOOT_INSTANCE_REQUEST" + }, + "pascalCase": { + "unsafeName": "BootInstanceRequest", + "safeName": "BootInstanceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_s3.getPresignedUrl": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPresignedUrl", + "camelCase": { + "unsafeName": "getPresignedURL", + "safeName": "getPresignedURL" + }, + "snakeCase": { + "unsafeName": "get_presigned_url", + "safeName": "get_presigned_url" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL", + "safeName": "GET_PRESIGNED_URL" + }, + "pascalCase": { + "unsafeName": "GetPresignedURL", + "safeName": "GetPresignedURL" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "location": { + "method": "POST", + "path": "/s3/presigned-url" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPresignedUrlRequest", + "camelCase": { + "unsafeName": "getPresignedURLRequest", + "safeName": "getPresignedURLRequest" + }, + "snakeCase": { + "unsafeName": "get_presigned_url_request", + "safeName": "get_presigned_url_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL_REQUEST", + "safeName": "GET_PRESIGNED_URL_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPresignedURLRequest", + "safeName": "GetPresignedURLRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "s3Key", + "camelCase": { + "unsafeName": "s3Key", + "safeName": "s3Key" + }, + "snakeCase": { + "unsafeName": "s3key", + "safeName": "s3key" + }, + "screamingSnakeCase": { + "unsafeName": "S3KEY", + "safeName": "S3KEY" + }, + "pascalCase": { + "unsafeName": "S3Key", + "safeName": "S3Key" + } + }, + "wireValue": "s3Key" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_ec2": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json index 87c7cd51cc7..0bbff643274 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/multi-url-environment.json @@ -859,6 +859,417 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_ec2.bootInstance": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "bootInstance", + "camelCase": { + "unsafeName": "bootInstance", + "safeName": "bootInstance" + }, + "snakeCase": { + "unsafeName": "boot_instance", + "safeName": "boot_instance" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE", + "safeName": "BOOT_INSTANCE" + }, + "pascalCase": { + "unsafeName": "BootInstance", + "safeName": "BootInstance" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "location": { + "method": "POST", + "path": "/ec2/boot" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "BootInstanceRequest", + "camelCase": { + "unsafeName": "bootInstanceRequest", + "safeName": "bootInstanceRequest" + }, + "snakeCase": { + "unsafeName": "boot_instance_request", + "safeName": "boot_instance_request" + }, + "screamingSnakeCase": { + "unsafeName": "BOOT_INSTANCE_REQUEST", + "safeName": "BOOT_INSTANCE_REQUEST" + }, + "pascalCase": { + "unsafeName": "BootInstanceRequest", + "safeName": "BootInstanceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + ], + "packagePath": [], + "file": { + "originalName": "ec2", + "camelCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "snakeCase": { + "unsafeName": "ec2", + "safeName": "ec2" + }, + "screamingSnakeCase": { + "unsafeName": "EC2", + "safeName": "EC2" + }, + "pascalCase": { + "unsafeName": "Ec2", + "safeName": "Ec2" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_s3.getPresignedUrl": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPresignedUrl", + "camelCase": { + "unsafeName": "getPresignedURL", + "safeName": "getPresignedURL" + }, + "snakeCase": { + "unsafeName": "get_presigned_url", + "safeName": "get_presigned_url" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL", + "safeName": "GET_PRESIGNED_URL" + }, + "pascalCase": { + "unsafeName": "GetPresignedURL", + "safeName": "GetPresignedURL" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "location": { + "method": "POST", + "path": "/s3/presigned-url" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPresignedUrlRequest", + "camelCase": { + "unsafeName": "getPresignedURLRequest", + "safeName": "getPresignedURLRequest" + }, + "snakeCase": { + "unsafeName": "get_presigned_url_request", + "safeName": "get_presigned_url_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PRESIGNED_URL_REQUEST", + "safeName": "GET_PRESIGNED_URL_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPresignedURLRequest", + "safeName": "GetPresignedURLRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + ], + "packagePath": [], + "file": { + "originalName": "s3", + "camelCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "snakeCase": { + "unsafeName": "s3", + "safeName": "s3" + }, + "screamingSnakeCase": { + "unsafeName": "S3", + "safeName": "S3" + }, + "pascalCase": { + "unsafeName": "S3", + "safeName": "S3" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "s3Key", + "camelCase": { + "unsafeName": "s3Key", + "safeName": "s3Key" + }, + "snakeCase": { + "unsafeName": "s3key", + "safeName": "s3key" + }, + "screamingSnakeCase": { + "unsafeName": "S3KEY", + "safeName": "S3KEY" + }, + "pascalCase": { + "unsafeName": "S3Key", + "safeName": "S3Key" + } + }, + "wireValue": "s3Key" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_ec2": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json index 662b45ff995..f0193ec6e60 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/no-environment.json @@ -266,6 +266,113 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dummy": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json index b27722ec738..77f75831d67 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-default.json @@ -1205,6 +1205,379 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json index 94dca27149e..d2d9969616b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json @@ -2689,6 +2689,802 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getTokenWithClientCredentials": { + "auth": null, + "declaration": { + "name": { + "originalName": "getTokenWithClientCredentials", + "camelCase": { + "unsafeName": "getTokenWithClientCredentials", + "safeName": "getTokenWithClientCredentials" + }, + "snakeCase": { + "unsafeName": "get_token_with_client_credentials", + "safeName": "get_token_with_client_credentials" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS", + "safeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS" + }, + "pascalCase": { + "unsafeName": "GetTokenWithClientCredentials", + "safeName": "GetTokenWithClientCredentials" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_auth.refreshToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "refreshToken", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RefreshTokenRequest", + "camelCase": { + "unsafeName": "refreshTokenRequest", + "safeName": "refreshTokenRequest" + }, + "snakeCase": { + "unsafeName": "refresh_token_request", + "safeName": "refresh_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN_REQUEST", + "safeName": "REFRESH_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "RefreshTokenRequest", + "safeName": "RefreshTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "refresh_token" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json index cc6c3248e07..ea4ac62aef5 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials-nested-root.json @@ -1588,6 +1588,478 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "getToken", + "camelCase": { + "unsafeName": "getToken", + "safeName": "getToken" + }, + "snakeCase": { + "unsafeName": "get_token", + "safeName": "get_token" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN", + "safeName": "GET_TOKEN" + }, + "pascalCase": { + "unsafeName": "GetToken", + "safeName": "GetToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json index c716ab3c61b..11f7d8a8485 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/oauth-client-credentials.json @@ -2689,6 +2689,802 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_auth:TokenResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TokenResponse", + "camelCase": { + "unsafeName": "tokenResponse", + "safeName": "tokenResponse" + }, + "snakeCase": { + "unsafeName": "token_response", + "safeName": "token_response" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN_RESPONSE", + "safeName": "TOKEN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TokenResponse", + "safeName": "TokenResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "access_token", + "camelCase": { + "unsafeName": "accessToken", + "safeName": "accessToken" + }, + "snakeCase": { + "unsafeName": "access_token", + "safeName": "access_token" + }, + "screamingSnakeCase": { + "unsafeName": "ACCESS_TOKEN", + "safeName": "ACCESS_TOKEN" + }, + "pascalCase": { + "unsafeName": "AccessToken", + "safeName": "AccessToken" + } + }, + "wireValue": "access_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "expires_in", + "camelCase": { + "unsafeName": "expiresIn", + "safeName": "expiresIn" + }, + "snakeCase": { + "unsafeName": "expires_in", + "safeName": "expires_in" + }, + "screamingSnakeCase": { + "unsafeName": "EXPIRES_IN", + "safeName": "EXPIRES_IN" + }, + "pascalCase": { + "unsafeName": "ExpiresIn", + "safeName": "ExpiresIn" + } + }, + "wireValue": "expires_in" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_auth.getTokenWithClientCredentials": { + "auth": null, + "declaration": { + "name": { + "originalName": "getTokenWithClientCredentials", + "camelCase": { + "unsafeName": "getTokenWithClientCredentials", + "safeName": "getTokenWithClientCredentials" + }, + "snakeCase": { + "unsafeName": "get_token_with_client_credentials", + "safeName": "get_token_with_client_credentials" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS", + "safeName": "GET_TOKEN_WITH_CLIENT_CREDENTIALS" + }, + "pascalCase": { + "unsafeName": "GetTokenWithClientCredentials", + "safeName": "GetTokenWithClientCredentials" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetTokenRequest", + "camelCase": { + "unsafeName": "getTokenRequest", + "safeName": "getTokenRequest" + }, + "snakeCase": { + "unsafeName": "get_token_request", + "safeName": "get_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TOKEN_REQUEST", + "safeName": "GET_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTokenRequest", + "safeName": "GetTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "client_credentials" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_auth.refreshToken": { + "auth": null, + "declaration": { + "name": { + "originalName": "refreshToken", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "location": { + "method": "POST", + "path": "/token" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RefreshTokenRequest", + "camelCase": { + "unsafeName": "refreshTokenRequest", + "safeName": "refreshTokenRequest" + }, + "snakeCase": { + "unsafeName": "refresh_token_request", + "safeName": "refresh_token_request" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN_REQUEST", + "safeName": "REFRESH_TOKEN_REQUEST" + }, + "pascalCase": { + "unsafeName": "RefreshTokenRequest", + "safeName": "RefreshTokenRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + ], + "packagePath": [], + "file": { + "originalName": "auth", + "camelCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "snakeCase": { + "unsafeName": "auth", + "safeName": "auth" + }, + "screamingSnakeCase": { + "unsafeName": "AUTH", + "safeName": "AUTH" + }, + "pascalCase": { + "unsafeName": "Auth", + "safeName": "Auth" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "client_id", + "camelCase": { + "unsafeName": "clientID", + "safeName": "clientID" + }, + "snakeCase": { + "unsafeName": "client_id", + "safeName": "client_id" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_ID", + "safeName": "CLIENT_ID" + }, + "pascalCase": { + "unsafeName": "ClientID", + "safeName": "ClientID" + } + }, + "wireValue": "client_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "client_secret", + "camelCase": { + "unsafeName": "clientSecret", + "safeName": "clientSecret" + }, + "snakeCase": { + "unsafeName": "client_secret", + "safeName": "client_secret" + }, + "screamingSnakeCase": { + "unsafeName": "CLIENT_SECRET", + "safeName": "CLIENT_SECRET" + }, + "pascalCase": { + "unsafeName": "ClientSecret", + "safeName": "ClientSecret" + } + }, + "wireValue": "client_secret" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "refresh_token", + "camelCase": { + "unsafeName": "refreshToken", + "safeName": "refreshToken" + }, + "snakeCase": { + "unsafeName": "refresh_token", + "safeName": "refresh_token" + }, + "screamingSnakeCase": { + "unsafeName": "REFRESH_TOKEN", + "safeName": "REFRESH_TOKEN" + }, + "pascalCase": { + "unsafeName": "RefreshToken", + "safeName": "RefreshToken" + } + }, + "wireValue": "refresh_token" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "audience", + "camelCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "snakeCase": { + "unsafeName": "audience", + "safeName": "audience" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIENCE", + "safeName": "AUDIENCE" + }, + "pascalCase": { + "unsafeName": "Audience", + "safeName": "Audience" + } + }, + "wireValue": "audience" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "https://api.example.com" + } + } + }, + { + "name": { + "name": { + "originalName": "grant_type", + "camelCase": { + "unsafeName": "grantType", + "safeName": "grantType" + }, + "snakeCase": { + "unsafeName": "grant_type", + "safeName": "grant_type" + }, + "screamingSnakeCase": { + "unsafeName": "GRANT_TYPE", + "safeName": "GRANT_TYPE" + }, + "pascalCase": { + "unsafeName": "GrantType", + "safeName": "GrantType" + } + }, + "wireValue": "grant_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "refresh_token" + } + } + }, + { + "name": { + "name": { + "originalName": "scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "wireValue": "scope" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_auth": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json index b1e1c167c32..6f248429f41 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/object.json @@ -3396,6 +3396,815 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "one", + "camelCase": { + "unsafeName": "one", + "safeName": "one" + }, + "snakeCase": { + "unsafeName": "one", + "safeName": "one" + }, + "screamingSnakeCase": { + "unsafeName": "ONE", + "safeName": "ONE" + }, + "pascalCase": { + "unsafeName": "One", + "safeName": "One" + } + }, + "wireValue": "one" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "two", + "camelCase": { + "unsafeName": "two", + "safeName": "two" + }, + "snakeCase": { + "unsafeName": "two", + "safeName": "two" + }, + "screamingSnakeCase": { + "unsafeName": "TWO", + "safeName": "TWO" + }, + "pascalCase": { + "unsafeName": "Two", + "safeName": "Two" + } + }, + "wireValue": "two" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "three", + "camelCase": { + "unsafeName": "three", + "safeName": "three" + }, + "snakeCase": { + "unsafeName": "three", + "safeName": "three" + }, + "screamingSnakeCase": { + "unsafeName": "THREE", + "safeName": "THREE" + }, + "pascalCase": { + "unsafeName": "Three", + "safeName": "Three" + } + }, + "wireValue": "three" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "four", + "camelCase": { + "unsafeName": "four", + "safeName": "four" + }, + "snakeCase": { + "unsafeName": "four", + "safeName": "four" + }, + "screamingSnakeCase": { + "unsafeName": "FOUR", + "safeName": "FOUR" + }, + "pascalCase": { + "unsafeName": "Four", + "safeName": "Four" + } + }, + "wireValue": "four" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "five", + "camelCase": { + "unsafeName": "five", + "safeName": "five" + }, + "snakeCase": { + "unsafeName": "five", + "safeName": "five" + }, + "screamingSnakeCase": { + "unsafeName": "FIVE", + "safeName": "FIVE" + }, + "pascalCase": { + "unsafeName": "Five", + "safeName": "Five" + } + }, + "wireValue": "five" + }, + "typeReference": { + "_type": "primitive", + "value": "LONG" + } + }, + { + "name": { + "name": { + "originalName": "six", + "camelCase": { + "unsafeName": "six", + "safeName": "six" + }, + "snakeCase": { + "unsafeName": "six", + "safeName": "six" + }, + "screamingSnakeCase": { + "unsafeName": "SIX", + "safeName": "SIX" + }, + "pascalCase": { + "unsafeName": "Six", + "safeName": "Six" + } + }, + "wireValue": "six" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "seven", + "camelCase": { + "unsafeName": "seven", + "safeName": "seven" + }, + "snakeCase": { + "unsafeName": "seven", + "safeName": "seven" + }, + "screamingSnakeCase": { + "unsafeName": "SEVEN", + "safeName": "SEVEN" + }, + "pascalCase": { + "unsafeName": "Seven", + "safeName": "Seven" + } + }, + "wireValue": "seven" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "eight", + "camelCase": { + "unsafeName": "eight", + "safeName": "eight" + }, + "snakeCase": { + "unsafeName": "eight", + "safeName": "eight" + }, + "screamingSnakeCase": { + "unsafeName": "EIGHT", + "safeName": "EIGHT" + }, + "pascalCase": { + "unsafeName": "Eight", + "safeName": "Eight" + } + }, + "wireValue": "eight" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "nine", + "camelCase": { + "unsafeName": "nine", + "safeName": "nine" + }, + "snakeCase": { + "unsafeName": "nine", + "safeName": "nine" + }, + "screamingSnakeCase": { + "unsafeName": "NINE", + "safeName": "NINE" + }, + "pascalCase": { + "unsafeName": "Nine", + "safeName": "Nine" + } + }, + "wireValue": "nine" + }, + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + } + }, + { + "name": { + "name": { + "originalName": "ten", + "camelCase": { + "unsafeName": "ten", + "safeName": "ten" + }, + "snakeCase": { + "unsafeName": "ten", + "safeName": "ten" + }, + "screamingSnakeCase": { + "unsafeName": "TEN", + "safeName": "TEN" + }, + "pascalCase": { + "unsafeName": "Ten", + "safeName": "Ten" + } + }, + "wireValue": "ten" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "eleven", + "camelCase": { + "unsafeName": "eleven", + "safeName": "eleven" + }, + "snakeCase": { + "unsafeName": "eleven", + "safeName": "eleven" + }, + "screamingSnakeCase": { + "unsafeName": "ELEVEN", + "safeName": "ELEVEN" + }, + "pascalCase": { + "unsafeName": "Eleven", + "safeName": "Eleven" + } + }, + "wireValue": "eleven" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "primitive", + "value": "DOUBLE" + } + } + }, + { + "name": { + "name": { + "originalName": "twelve", + "camelCase": { + "unsafeName": "twelve", + "safeName": "twelve" + }, + "snakeCase": { + "unsafeName": "twelve", + "safeName": "twelve" + }, + "screamingSnakeCase": { + "unsafeName": "TWELVE", + "safeName": "TWELVE" + }, + "pascalCase": { + "unsafeName": "Twelve", + "safeName": "Twelve" + } + }, + "wireValue": "twelve" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "thirteen", + "camelCase": { + "unsafeName": "thirteen", + "safeName": "thirteen" + }, + "snakeCase": { + "unsafeName": "thirteen", + "safeName": "thirteen" + }, + "screamingSnakeCase": { + "unsafeName": "THIRTEEN", + "safeName": "THIRTEEN" + }, + "pascalCase": { + "unsafeName": "Thirteen", + "safeName": "Thirteen" + } + }, + "wireValue": "thirteen" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "LONG" + } + } + }, + { + "name": { + "name": { + "originalName": "fourteen", + "camelCase": { + "unsafeName": "fourteen", + "safeName": "fourteen" + }, + "snakeCase": { + "unsafeName": "fourteen", + "safeName": "fourteen" + }, + "screamingSnakeCase": { + "unsafeName": "FOURTEEN", + "safeName": "FOURTEEN" + }, + "pascalCase": { + "unsafeName": "Fourteen", + "safeName": "Fourteen" + } + }, + "wireValue": "fourteen" + }, + "typeReference": { + "_type": "unknown" + } + }, + { + "name": { + "name": { + "originalName": "fifteen", + "camelCase": { + "unsafeName": "fifteen", + "safeName": "fifteen" + }, + "snakeCase": { + "unsafeName": "fifteen", + "safeName": "fifteen" + }, + "screamingSnakeCase": { + "unsafeName": "FIFTEEN", + "safeName": "FIFTEEN" + }, + "pascalCase": { + "unsafeName": "Fifteen", + "safeName": "Fifteen" + } + }, + "wireValue": "fifteen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + }, + { + "name": { + "name": { + "originalName": "sixteen", + "camelCase": { + "unsafeName": "sixteen", + "safeName": "sixteen" + }, + "snakeCase": { + "unsafeName": "sixteen", + "safeName": "sixteen" + }, + "screamingSnakeCase": { + "unsafeName": "SIXTEEN", + "safeName": "SIXTEEN" + }, + "pascalCase": { + "unsafeName": "Sixteen", + "safeName": "Sixteen" + } + }, + "wireValue": "sixteen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + }, + { + "name": { + "name": { + "originalName": "seventeen", + "camelCase": { + "unsafeName": "seventeen", + "safeName": "seventeen" + }, + "snakeCase": { + "unsafeName": "seventeen", + "safeName": "seventeen" + }, + "screamingSnakeCase": { + "unsafeName": "SEVENTEEN", + "safeName": "SEVENTEEN" + }, + "pascalCase": { + "unsafeName": "Seventeen", + "safeName": "Seventeen" + } + }, + "wireValue": "seventeen" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + }, + { + "name": { + "name": { + "originalName": "eighteen", + "camelCase": { + "unsafeName": "eighteen", + "safeName": "eighteen" + }, + "snakeCase": { + "unsafeName": "eighteen", + "safeName": "eighteen" + }, + "screamingSnakeCase": { + "unsafeName": "EIGHTEEN", + "safeName": "EIGHTEEN" + }, + "pascalCase": { + "unsafeName": "Eighteen", + "safeName": "Eighteen" + } + }, + "wireValue": "eighteen" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "eighteen" + } + } + }, + { + "name": { + "name": { + "originalName": "nineteen", + "camelCase": { + "unsafeName": "nineteen", + "safeName": "nineteen" + }, + "snakeCase": { + "unsafeName": "nineteen", + "safeName": "nineteen" + }, + "screamingSnakeCase": { + "unsafeName": "NINETEEN", + "safeName": "NINETEEN" + }, + "pascalCase": { + "unsafeName": "Nineteen", + "safeName": "Nineteen" + } + }, + "wireValue": "nineteen" + }, + "typeReference": { + "_type": "named", + "value": "type_:Name" + } + }, + { + "name": { + "name": { + "originalName": "twenty", + "camelCase": { + "unsafeName": "twenty", + "safeName": "twenty" + }, + "snakeCase": { + "unsafeName": "twenty", + "safeName": "twenty" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTY", + "safeName": "TWENTY" + }, + "pascalCase": { + "unsafeName": "Twenty", + "safeName": "Twenty" + } + }, + "wireValue": "twenty" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT" + } + }, + { + "name": { + "name": { + "originalName": "twentyone", + "camelCase": { + "unsafeName": "twentyone", + "safeName": "twentyone" + }, + "snakeCase": { + "unsafeName": "twentyone", + "safeName": "twentyone" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYONE", + "safeName": "TWENTYONE" + }, + "pascalCase": { + "unsafeName": "Twentyone", + "safeName": "Twentyone" + } + }, + "wireValue": "twentyone" + }, + "typeReference": { + "_type": "primitive", + "value": "UINT_64" + } + }, + { + "name": { + "name": { + "originalName": "twentytwo", + "camelCase": { + "unsafeName": "twentytwo", + "safeName": "twentytwo" + }, + "snakeCase": { + "unsafeName": "twentytwo", + "safeName": "twentytwo" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYTWO", + "safeName": "TWENTYTWO" + }, + "pascalCase": { + "unsafeName": "Twentytwo", + "safeName": "Twentytwo" + } + }, + "wireValue": "twentytwo" + }, + "typeReference": { + "_type": "primitive", + "value": "FLOAT" + } + }, + { + "name": { + "name": { + "originalName": "twentythree", + "camelCase": { + "unsafeName": "twentythree", + "safeName": "twentythree" + }, + "snakeCase": { + "unsafeName": "twentythree", + "safeName": "twentythree" + }, + "screamingSnakeCase": { + "unsafeName": "TWENTYTHREE", + "safeName": "TWENTYTHREE" + }, + "pascalCase": { + "unsafeName": "Twentythree", + "safeName": "Twentythree" + } + }, + "wireValue": "twentythree" + }, + "typeReference": { + "_type": "primitive", + "value": "BIG_INTEGER" + } + } + ] + }, + "type_:Name": { + "type": "object", + "declaration": { + "name": { + "originalName": "Name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": {} + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json index 06710735e89..aec7b34959d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/objects-with-imports.json @@ -9002,6 +9002,843 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Node": { + "type": "object", + "declaration": { + "name": { + "originalName": "Node", + "camelCase": { + "unsafeName": "node", + "safeName": "node" + }, + "snakeCase": { + "unsafeName": "node", + "safeName": "node" + }, + "screamingSnakeCase": { + "unsafeName": "NODE", + "safeName": "NODE" + }, + "pascalCase": { + "unsafeName": "Node", + "safeName": "Node" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "label", + "camelCase": { + "unsafeName": "label", + "safeName": "label" + }, + "snakeCase": { + "unsafeName": "label", + "safeName": "label" + }, + "screamingSnakeCase": { + "unsafeName": "LABEL", + "safeName": "LABEL" + }, + "pascalCase": { + "unsafeName": "Label", + "safeName": "Label" + } + }, + "wireValue": "label" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons/metadata:Metadata" + } + } + } + ] + }, + "type_:Tree": { + "type": "object", + "declaration": { + "name": { + "originalName": "Tree", + "camelCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "snakeCase": { + "unsafeName": "tree", + "safeName": "tree" + }, + "screamingSnakeCase": { + "unsafeName": "TREE", + "safeName": "TREE" + }, + "pascalCase": { + "unsafeName": "Tree", + "safeName": "Tree" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Node" + } + } + } + } + ] + }, + "type_commons/metadata:Metadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + }, + { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + ], + "packagePath": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "file": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + } + ] + }, + "type_file:File": { + "type": "object", + "declaration": { + "name": { + "originalName": "File", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "packagePath": [], + "file": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "info", + "camelCase": { + "unsafeName": "info", + "safeName": "info" + }, + "snakeCase": { + "unsafeName": "info", + "safeName": "info" + }, + "screamingSnakeCase": { + "unsafeName": "INFO", + "safeName": "INFO" + }, + "pascalCase": { + "unsafeName": "Info", + "safeName": "Info" + } + }, + "wireValue": "info" + }, + "typeReference": { + "_type": "named", + "value": "type_file:FileInfo" + } + } + ] + }, + "type_file:FileInfo": { + "type": "enum", + "declaration": { + "name": { + "originalName": "FileInfo", + "camelCase": { + "unsafeName": "fileInfo", + "safeName": "fileInfo" + }, + "snakeCase": { + "unsafeName": "file_info", + "safeName": "file_info" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO", + "safeName": "FILE_INFO" + }, + "pascalCase": { + "unsafeName": "FileInfo", + "safeName": "FileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "packagePath": [], + "file": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "REGULAR", + "camelCase": { + "unsafeName": "regular", + "safeName": "regular" + }, + "snakeCase": { + "unsafeName": "regular", + "safeName": "regular" + }, + "screamingSnakeCase": { + "unsafeName": "REGULAR", + "safeName": "REGULAR" + }, + "pascalCase": { + "unsafeName": "Regular", + "safeName": "Regular" + } + }, + "wireValue": "REGULAR" + }, + { + "name": { + "originalName": "DIRECTORY", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "DIRECTORY" + } + ] + }, + "type_file/directory:Directory": { + "type": "object", + "declaration": { + "name": { + "originalName": "Directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + } + ], + "packagePath": [ + { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + } + ], + "file": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_file:File" + } + } + } + }, + { + "name": { + "name": { + "originalName": "directories", + "camelCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "snakeCase": { + "unsafeName": "directories", + "safeName": "directories" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORIES", + "safeName": "DIRECTORIES" + }, + "pascalCase": { + "unsafeName": "Directories", + "safeName": "Directories" + } + }, + "wireValue": "directories" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_file/directory:Directory" + } + } + } + } + ] + } + }, + "headers": [], + "endpoints": {} + }, "subpackages": { "subpackage_commons": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json index ebf1bc92ab6..cbd1b7dfd23 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/optional.json @@ -355,6 +355,107 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_optional.sendOptionalBody": { + "auth": null, + "declaration": { + "name": { + "originalName": "sendOptionalBody", + "camelCase": { + "unsafeName": "sendOptionalBody", + "safeName": "sendOptionalBody" + }, + "snakeCase": { + "unsafeName": "send_optional_body", + "safeName": "send_optional_body" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_OPTIONAL_BODY", + "safeName": "SEND_OPTIONAL_BODY" + }, + "pascalCase": { + "unsafeName": "SendOptionalBody", + "safeName": "SendOptionalBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + } + ], + "packagePath": [], + "file": { + "originalName": "optional", + "camelCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "snakeCase": { + "unsafeName": "optional", + "safeName": "optional" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL", + "safeName": "OPTIONAL" + }, + "pascalCase": { + "unsafeName": "Optional", + "safeName": "Optional" + } + } + } + }, + "location": { + "method": "POST", + "path": "/send-optional-body" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "unknown" + } + } + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_optional": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json index 0a73f51b09b..0d96034641f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/package-yml.json @@ -1362,6 +1362,313 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:EchoRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "EchoRequest", + "camelCase": { + "unsafeName": "echoRequest", + "safeName": "echoRequest" + }, + "snakeCase": { + "unsafeName": "echo_request", + "safeName": "echo_request" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO_REQUEST", + "safeName": "ECHO_REQUEST" + }, + "pascalCase": { + "unsafeName": "EchoRequest", + "safeName": "EchoRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "size", + "camelCase": { + "unsafeName": "size", + "safeName": "size" + }, + "snakeCase": { + "unsafeName": "size", + "safeName": "size" + }, + "screamingSnakeCase": { + "unsafeName": "SIZE", + "safeName": "SIZE" + }, + "pascalCase": { + "unsafeName": "Size", + "safeName": "Size" + } + }, + "wireValue": "size" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.echo": { + "auth": null, + "declaration": { + "name": { + "originalName": "echo", + "camelCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "snakeCase": { + "unsafeName": "echo", + "safeName": "echo" + }, + "screamingSnakeCase": { + "unsafeName": "ECHO", + "safeName": "ECHO" + }, + "pascalCase": { + "unsafeName": "Echo", + "safeName": "Echo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/{id}/" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_:EchoRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.nop": { + "auth": null, + "declaration": { + "name": { + "originalName": "nop", + "camelCase": { + "unsafeName": "nop", + "safeName": "nop" + }, + "snakeCase": { + "unsafeName": "nop", + "safeName": "nop" + }, + "screamingSnakeCase": { + "unsafeName": "NOP", + "safeName": "NOP" + }, + "pascalCase": { + "unsafeName": "Nop", + "safeName": "Nop" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "GET", + "path": "/{id}/{nestedId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "nestedId", + "camelCase": { + "unsafeName": "nestedID", + "safeName": "nestedID" + }, + "snakeCase": { + "unsafeName": "nested_id", + "safeName": "nested_id" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_ID", + "safeName": "NESTED_ID" + }, + "pascalCase": { + "unsafeName": "NestedID", + "safeName": "NestedID" + } + }, + "wireValue": "nestedId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json index 6a80a675499..51b059d6b03 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/pagination.json @@ -22154,6 +22154,4310 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:UsernameCursor": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernameCursor", + "camelCase": { + "unsafeName": "usernameCursor", + "safeName": "usernameCursor" + }, + "snakeCase": { + "unsafeName": "username_cursor", + "safeName": "username_cursor" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_CURSOR", + "safeName": "USERNAME_CURSOR" + }, + "pascalCase": { + "unsafeName": "UsernameCursor", + "safeName": "UsernameCursor" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "named", + "value": "type_:UsernamePage" + } + } + ] + }, + "type_:UsernamePage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernamePage", + "camelCase": { + "unsafeName": "usernamePage", + "safeName": "usernamePage" + }, + "snakeCase": { + "unsafeName": "username_page", + "safeName": "username_page" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_PAGE", + "safeName": "USERNAME_PAGE" + }, + "pascalCase": { + "unsafeName": "UsernamePage", + "safeName": "UsernamePage" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "after", + "camelCase": { + "unsafeName": "after", + "safeName": "after" + }, + "snakeCase": { + "unsafeName": "after", + "safeName": "after" + }, + "screamingSnakeCase": { + "unsafeName": "AFTER", + "safeName": "AFTER" + }, + "pascalCase": { + "unsafeName": "After", + "safeName": "After" + } + }, + "wireValue": "after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:Order": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "asc", + "camelCase": { + "unsafeName": "asc", + "safeName": "asc" + }, + "snakeCase": { + "unsafeName": "asc", + "safeName": "asc" + }, + "screamingSnakeCase": { + "unsafeName": "ASC", + "safeName": "ASC" + }, + "pascalCase": { + "unsafeName": "Asc", + "safeName": "Asc" + } + }, + "wireValue": "asc" + }, + { + "name": { + "originalName": "desc", + "camelCase": { + "unsafeName": "desc", + "safeName": "desc" + }, + "snakeCase": { + "unsafeName": "desc", + "safeName": "desc" + }, + "screamingSnakeCase": { + "unsafeName": "DESC", + "safeName": "DESC" + }, + "pascalCase": { + "unsafeName": "Desc", + "safeName": "Desc" + } + }, + "wireValue": "desc" + } + ] + }, + "type_users:WithPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithPage", + "camelCase": { + "unsafeName": "withPage", + "safeName": "withPage" + }, + "snakeCase": { + "unsafeName": "with_page", + "safeName": "with_page" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_PAGE", + "safeName": "WITH_PAGE" + }, + "pascalCase": { + "unsafeName": "WithPage", + "safeName": "WithPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_users:WithCursor": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithCursor", + "camelCase": { + "unsafeName": "withCursor", + "safeName": "withCursor" + }, + "snakeCase": { + "unsafeName": "with_cursor", + "safeName": "with_cursor" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_CURSOR", + "safeName": "WITH_CURSOR" + }, + "pascalCase": { + "unsafeName": "WithCursor", + "safeName": "WithCursor" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:UserListContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserListContainer", + "camelCase": { + "unsafeName": "userListContainer", + "safeName": "userListContainer" + }, + "snakeCase": { + "unsafeName": "user_list_container", + "safeName": "user_list_container" + }, + "screamingSnakeCase": { + "unsafeName": "USER_LIST_CONTAINER", + "safeName": "USER_LIST_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UserListContainer", + "safeName": "UserListContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + ] + }, + "type_users:UserPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserPage", + "camelCase": { + "unsafeName": "userPage", + "safeName": "userPage" + }, + "snakeCase": { + "unsafeName": "user_page", + "safeName": "user_page" + }, + "screamingSnakeCase": { + "unsafeName": "USER_PAGE", + "safeName": "USER_PAGE" + }, + "pascalCase": { + "unsafeName": "UserPage", + "safeName": "UserPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ] + }, + "type_users:UserOptionalListContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserOptionalListContainer", + "camelCase": { + "unsafeName": "userOptionalListContainer", + "safeName": "userOptionalListContainer" + }, + "snakeCase": { + "unsafeName": "user_optional_list_container", + "safeName": "user_optional_list_container" + }, + "screamingSnakeCase": { + "unsafeName": "USER_OPTIONAL_LIST_CONTAINER", + "safeName": "USER_OPTIONAL_LIST_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UserOptionalListContainer", + "safeName": "UserOptionalListContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + }, + "wireValue": "users" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + } + ] + }, + "type_users:UserOptionalListPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserOptionalListPage", + "camelCase": { + "unsafeName": "userOptionalListPage", + "safeName": "userOptionalListPage" + }, + "snakeCase": { + "unsafeName": "user_optional_list_page", + "safeName": "user_optional_list_page" + }, + "screamingSnakeCase": { + "unsafeName": "USER_OPTIONAL_LIST_PAGE", + "safeName": "USER_OPTIONAL_LIST_PAGE" + }, + "pascalCase": { + "unsafeName": "UserOptionalListPage", + "safeName": "UserOptionalListPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserOptionalListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ] + }, + "type_users:UsernameContainer": { + "type": "object", + "declaration": { + "name": { + "originalName": "UsernameContainer", + "camelCase": { + "unsafeName": "usernameContainer", + "safeName": "usernameContainer" + }, + "snakeCase": { + "unsafeName": "username_container", + "safeName": "username_container" + }, + "screamingSnakeCase": { + "unsafeName": "USERNAME_CONTAINER", + "safeName": "USERNAME_CONTAINER" + }, + "pascalCase": { + "unsafeName": "UsernameContainer", + "safeName": "UsernameContainer" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + }, + "wireValue": "results" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_users:ListUsersExtendedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersExtendedResponse", + "camelCase": { + "unsafeName": "listUsersExtendedResponse", + "safeName": "listUsersExtendedResponse" + }, + "snakeCase": { + "unsafeName": "list_users_extended_response", + "safeName": "list_users_extended_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_RESPONSE", + "safeName": "LIST_USERS_EXTENDED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedResponse", + "safeName": "ListUsersExtendedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:ListUsersExtendedOptionalListResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersExtendedOptionalListResponse", + "camelCase": { + "unsafeName": "listUsersExtendedOptionalListResponse", + "safeName": "listUsersExtendedOptionalListResponse" + }, + "snakeCase": { + "unsafeName": "list_users_extended_optional_list_response", + "safeName": "list_users_extended_optional_list_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_OPTIONAL_LIST_RESPONSE", + "safeName": "LIST_USERS_EXTENDED_OPTIONAL_LIST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedOptionalListResponse", + "safeName": "ListUsersExtendedOptionalListResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_users:UserOptionalListContainer" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:ListUsersPaginationResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListUsersPaginationResponse", + "camelCase": { + "unsafeName": "listUsersPaginationResponse", + "safeName": "listUsersPaginationResponse" + }, + "snakeCase": { + "unsafeName": "list_users_pagination_response", + "safeName": "list_users_pagination_response" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_PAGINATION_RESPONSE", + "safeName": "LIST_USERS_PAGINATION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ListUsersPaginationResponse", + "safeName": "ListUsersPaginationResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "hasNextPage", + "camelCase": { + "unsafeName": "hasNextPage", + "safeName": "hasNextPage" + }, + "snakeCase": { + "unsafeName": "has_next_page", + "safeName": "has_next_page" + }, + "screamingSnakeCase": { + "unsafeName": "HAS_NEXT_PAGE", + "safeName": "HAS_NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "HasNextPage", + "safeName": "HasNextPage" + } + }, + "wireValue": "hasNextPage" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + }, + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Page" + } + } + }, + { + "name": { + "name": { + "originalName": "total_count", + "camelCase": { + "unsafeName": "totalCount", + "safeName": "totalCount" + }, + "snakeCase": { + "unsafeName": "total_count", + "safeName": "total_count" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_COUNT", + "safeName": "TOTAL_COUNT" + }, + "pascalCase": { + "unsafeName": "TotalCount", + "safeName": "TotalCount" + } + }, + "wireValue": "total_count" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_users:User" + } + } + } + ] + }, + "type_users:Page": { + "type": "object", + "declaration": { + "name": { + "originalName": "Page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:NextPage" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "total_page", + "camelCase": { + "unsafeName": "totalPage", + "safeName": "totalPage" + }, + "snakeCase": { + "unsafeName": "total_page", + "safeName": "total_page" + }, + "screamingSnakeCase": { + "unsafeName": "TOTAL_PAGE", + "safeName": "TOTAL_PAGE" + }, + "pascalCase": { + "unsafeName": "TotalPage", + "safeName": "TotalPage" + } + }, + "wireValue": "total_page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_users:NextPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "NextPage", + "camelCase": { + "unsafeName": "nextPage", + "safeName": "nextPage" + }, + "snakeCase": { + "unsafeName": "next_page", + "safeName": "next_page" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT_PAGE", + "safeName": "NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "NextPage", + "safeName": "NextPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_users:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_users.listWithCursorPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithCursorPagination", + "camelCase": { + "unsafeName": "listWithCursorPagination", + "safeName": "listWithCursorPagination" + }, + "snakeCase": { + "unsafeName": "list_with_cursor_pagination", + "safeName": "list_with_cursor_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_CURSOR_PAGINATION", + "safeName": "LIST_WITH_CURSOR_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithCursorPagination", + "safeName": "ListWithCursorPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersCursorPaginationRequest", + "camelCase": { + "unsafeName": "listUsersCursorPaginationRequest", + "safeName": "listUsersCursorPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_cursor_pagination_request", + "safeName": "list_users_cursor_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_CURSOR_PAGINATION_REQUEST", + "safeName": "LIST_USERS_CURSOR_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersCursorPaginationRequest", + "safeName": "ListUsersCursorPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithBodyCursorPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithBodyCursorPagination", + "camelCase": { + "unsafeName": "listWithBodyCursorPagination", + "safeName": "listWithBodyCursorPagination" + }, + "snakeCase": { + "unsafeName": "list_with_body_cursor_pagination", + "safeName": "list_with_body_cursor_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_BODY_CURSOR_PAGINATION", + "safeName": "LIST_WITH_BODY_CURSOR_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithBodyCursorPagination", + "safeName": "ListWithBodyCursorPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersBodyCursorPaginationRequest", + "camelCase": { + "unsafeName": "listUsersBodyCursorPaginationRequest", + "safeName": "listUsersBodyCursorPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_body_cursor_pagination_request", + "safeName": "list_users_body_cursor_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_BODY_CURSOR_PAGINATION_REQUEST", + "safeName": "LIST_USERS_BODY_CURSOR_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersBodyCursorPaginationRequest", + "safeName": "ListUsersBodyCursorPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:WithCursor" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetPagination", + "camelCase": { + "unsafeName": "listWithOffsetPagination", + "safeName": "listWithOffsetPagination" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination", + "safeName": "list_with_offset_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION", + "safeName": "LIST_WITH_OFFSET_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPagination", + "safeName": "ListWithOffsetPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersOffsetPaginationRequest", + "camelCase": { + "unsafeName": "listUsersOffsetPaginationRequest", + "safeName": "listUsersOffsetPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_offset_pagination_request", + "safeName": "list_users_offset_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_OFFSET_PAGINATION_REQUEST", + "safeName": "LIST_USERS_OFFSET_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersOffsetPaginationRequest", + "safeName": "ListUsersOffsetPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "per_page", + "camelCase": { + "unsafeName": "perPage", + "safeName": "perPage" + }, + "snakeCase": { + "unsafeName": "per_page", + "safeName": "per_page" + }, + "screamingSnakeCase": { + "unsafeName": "PER_PAGE", + "safeName": "PER_PAGE" + }, + "pascalCase": { + "unsafeName": "PerPage", + "safeName": "PerPage" + } + }, + "wireValue": "per_page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + }, + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithBodyOffsetPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithBodyOffsetPagination", + "camelCase": { + "unsafeName": "listWithBodyOffsetPagination", + "safeName": "listWithBodyOffsetPagination" + }, + "snakeCase": { + "unsafeName": "list_with_body_offset_pagination", + "safeName": "list_with_body_offset_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_BODY_OFFSET_PAGINATION", + "safeName": "LIST_WITH_BODY_OFFSET_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithBodyOffsetPagination", + "safeName": "ListWithBodyOffsetPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "POST", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersBodyOffsetPaginationRequest", + "camelCase": { + "unsafeName": "listUsersBodyOffsetPaginationRequest", + "safeName": "listUsersBodyOffsetPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_body_offset_pagination_request", + "safeName": "list_users_body_offset_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_BODY_OFFSET_PAGINATION_REQUEST", + "safeName": "LIST_USERS_BODY_OFFSET_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersBodyOffsetPaginationRequest", + "safeName": "ListUsersBodyOffsetPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "pagination", + "camelCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "snakeCase": { + "unsafeName": "pagination", + "safeName": "pagination" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATION", + "safeName": "PAGINATION" + }, + "pascalCase": { + "unsafeName": "Pagination", + "safeName": "Pagination" + } + }, + "wireValue": "pagination" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:WithPage" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetStepPagination": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetStepPagination", + "camelCase": { + "unsafeName": "listWithOffsetStepPagination", + "safeName": "listWithOffsetStepPagination" + }, + "snakeCase": { + "unsafeName": "list_with_offset_step_pagination", + "safeName": "list_with_offset_step_pagination" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_STEP_PAGINATION", + "safeName": "LIST_WITH_OFFSET_STEP_PAGINATION" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetStepPagination", + "safeName": "ListWithOffsetStepPagination" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersOffsetStepPaginationRequest", + "camelCase": { + "unsafeName": "listUsersOffsetStepPaginationRequest", + "safeName": "listUsersOffsetStepPaginationRequest" + }, + "snakeCase": { + "unsafeName": "list_users_offset_step_pagination_request", + "safeName": "list_users_offset_step_pagination_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_OFFSET_STEP_PAGINATION_REQUEST", + "safeName": "LIST_USERS_OFFSET_STEP_PAGINATION_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersOffsetStepPaginationRequest", + "safeName": "ListUsersOffsetStepPaginationRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithOffsetPaginationHasNextPage": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithOffsetPaginationHasNextPage", + "camelCase": { + "unsafeName": "listWithOffsetPaginationHasNextPage", + "safeName": "listWithOffsetPaginationHasNextPage" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination_has_next_page", + "safeName": "list_with_offset_pagination_has_next_page" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE", + "safeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPaginationHasNextPage", + "safeName": "ListWithOffsetPaginationHasNextPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListWithOffsetPaginationHasNextPageRequest", + "camelCase": { + "unsafeName": "listWithOffsetPaginationHasNextPageRequest", + "safeName": "listWithOffsetPaginationHasNextPageRequest" + }, + "snakeCase": { + "unsafeName": "list_with_offset_pagination_has_next_page_request", + "safeName": "list_with_offset_pagination_has_next_page_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE_REQUEST", + "safeName": "LIST_WITH_OFFSET_PAGINATION_HAS_NEXT_PAGE_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListWithOffsetPaginationHasNextPageRequest", + "safeName": "ListWithOffsetPaginationHasNextPageRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "page", + "camelCase": { + "unsafeName": "page", + "safeName": "page" + }, + "snakeCase": { + "unsafeName": "page", + "safeName": "page" + }, + "screamingSnakeCase": { + "unsafeName": "PAGE", + "safeName": "PAGE" + }, + "pascalCase": { + "unsafeName": "Page", + "safeName": "Page" + } + }, + "wireValue": "page" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "order", + "camelCase": { + "unsafeName": "order", + "safeName": "order" + }, + "snakeCase": { + "unsafeName": "order", + "safeName": "order" + }, + "screamingSnakeCase": { + "unsafeName": "ORDER", + "safeName": "ORDER" + }, + "pascalCase": { + "unsafeName": "Order", + "safeName": "Order" + } + }, + "wireValue": "order" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_users:Order" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithExtendedResults": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithExtendedResults", + "camelCase": { + "unsafeName": "listWithExtendedResults", + "safeName": "listWithExtendedResults" + }, + "snakeCase": { + "unsafeName": "list_with_extended_results", + "safeName": "list_with_extended_results" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_EXTENDED_RESULTS", + "safeName": "LIST_WITH_EXTENDED_RESULTS" + }, + "pascalCase": { + "unsafeName": "ListWithExtendedResults", + "safeName": "ListWithExtendedResults" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersExtendedRequest", + "camelCase": { + "unsafeName": "listUsersExtendedRequest", + "safeName": "listUsersExtendedRequest" + }, + "snakeCase": { + "unsafeName": "list_users_extended_request", + "safeName": "list_users_extended_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_REQUEST", + "safeName": "LIST_USERS_EXTENDED_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedRequest", + "safeName": "ListUsersExtendedRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithExtendedResultsAndOptionalData": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithExtendedResultsAndOptionalData", + "camelCase": { + "unsafeName": "listWithExtendedResultsAndOptionalData", + "safeName": "listWithExtendedResultsAndOptionalData" + }, + "snakeCase": { + "unsafeName": "list_with_extended_results_and_optional_data", + "safeName": "list_with_extended_results_and_optional_data" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_EXTENDED_RESULTS_AND_OPTIONAL_DATA", + "safeName": "LIST_WITH_EXTENDED_RESULTS_AND_OPTIONAL_DATA" + }, + "pascalCase": { + "unsafeName": "ListWithExtendedResultsAndOptionalData", + "safeName": "ListWithExtendedResultsAndOptionalData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsersExtendedRequestForOptionalData", + "camelCase": { + "unsafeName": "listUsersExtendedRequestForOptionalData", + "safeName": "listUsersExtendedRequestForOptionalData" + }, + "snakeCase": { + "unsafeName": "list_users_extended_request_for_optional_data", + "safeName": "list_users_extended_request_for_optional_data" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS_EXTENDED_REQUEST_FOR_OPTIONAL_DATA", + "safeName": "LIST_USERS_EXTENDED_REQUEST_FOR_OPTIONAL_DATA" + }, + "pascalCase": { + "unsafeName": "ListUsersExtendedRequestForOptionalData", + "safeName": "ListUsersExtendedRequestForOptionalData" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "cursor", + "camelCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "snakeCase": { + "unsafeName": "cursor", + "safeName": "cursor" + }, + "screamingSnakeCase": { + "unsafeName": "CURSOR", + "safeName": "CURSOR" + }, + "pascalCase": { + "unsafeName": "Cursor", + "safeName": "Cursor" + } + }, + "wireValue": "cursor" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "UUID" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listUsernames": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listUsernames", + "camelCase": { + "unsafeName": "listUsernames", + "safeName": "listUsernames" + }, + "snakeCase": { + "unsafeName": "list_usernames", + "safeName": "list_usernames" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERNAMES", + "safeName": "LIST_USERNAMES" + }, + "pascalCase": { + "unsafeName": "ListUsernames", + "safeName": "ListUsernames" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListUsernamesRequest", + "camelCase": { + "unsafeName": "listUsernamesRequest", + "safeName": "listUsernamesRequest" + }, + "snakeCase": { + "unsafeName": "list_usernames_request", + "safeName": "list_usernames_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERNAMES_REQUEST", + "safeName": "LIST_USERNAMES_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListUsernamesRequest", + "safeName": "ListUsernamesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "starting_after", + "camelCase": { + "unsafeName": "startingAfter", + "safeName": "startingAfter" + }, + "snakeCase": { + "unsafeName": "starting_after", + "safeName": "starting_after" + }, + "screamingSnakeCase": { + "unsafeName": "STARTING_AFTER", + "safeName": "STARTING_AFTER" + }, + "pascalCase": { + "unsafeName": "StartingAfter", + "safeName": "StartingAfter" + } + }, + "wireValue": "starting_after" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_users.listWithGlobalConfig": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "listWithGlobalConfig", + "camelCase": { + "unsafeName": "listWithGlobalConfig", + "safeName": "listWithGlobalConfig" + }, + "snakeCase": { + "unsafeName": "list_with_global_config", + "safeName": "list_with_global_config" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_GLOBAL_CONFIG", + "safeName": "LIST_WITH_GLOBAL_CONFIG" + }, + "pascalCase": { + "unsafeName": "ListWithGlobalConfig", + "safeName": "ListWithGlobalConfig" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "ListWithGlobalConfigRequest", + "camelCase": { + "unsafeName": "listWithGlobalConfigRequest", + "safeName": "listWithGlobalConfigRequest" + }, + "snakeCase": { + "unsafeName": "list_with_global_config_request", + "safeName": "list_with_global_config_request" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_WITH_GLOBAL_CONFIG_REQUEST", + "safeName": "LIST_WITH_GLOBAL_CONFIG_REQUEST" + }, + "pascalCase": { + "unsafeName": "ListWithGlobalConfigRequest", + "safeName": "ListWithGlobalConfigRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + ], + "packagePath": [], + "file": { + "originalName": "users", + "camelCase": { + "unsafeName": "users", + "safeName": "users" + }, + "snakeCase": { + "unsafeName": "users", + "safeName": "users" + }, + "screamingSnakeCase": { + "unsafeName": "USERS", + "safeName": "USERS" + }, + "pascalCase": { + "unsafeName": "Users", + "safeName": "Users" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_users": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/path-parameters.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/path-parameters.json index 7b18432a8eb..148d64a849b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/path-parameters.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/path-parameters.json @@ -4704,6 +4704,1182 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_user:Organization": { + "type": "object", + "declaration": { + "name": { + "originalName": "Organization", + "camelCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "snakeCase": { + "unsafeName": "organization", + "safeName": "organization" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION", + "safeName": "ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "Organization", + "safeName": "Organization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getOrganization": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOrganization", + "camelCase": { + "unsafeName": "getOrganization", + "safeName": "getOrganization" + }, + "snakeCase": { + "unsafeName": "get_organization", + "safeName": "get_organization" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ORGANIZATION", + "safeName": "GET_ORGANIZATION" + }, + "pascalCase": { + "unsafeName": "GetOrganization", + "safeName": "GetOrganization" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user/organizations/{organizationId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "organizationId", + "camelCase": { + "unsafeName": "organizationID", + "safeName": "organizationID" + }, + "snakeCase": { + "unsafeName": "organization_id", + "safeName": "organization_id" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION_ID", + "safeName": "ORGANIZATION_ID" + }, + "pascalCase": { + "unsafeName": "OrganizationID", + "safeName": "OrganizationID" + } + }, + "wireValue": "organizationId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user/users/{userId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetUsersRequest", + "camelCase": { + "unsafeName": "getUsersRequest", + "safeName": "getUsersRequest" + }, + "snakeCase": { + "unsafeName": "get_users_request", + "safeName": "get_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USERS_REQUEST", + "safeName": "GET_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetUsersRequest", + "safeName": "GetUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": true, + "onlyPathParameters": true + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.getOrganizationUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOrganizationUser", + "camelCase": { + "unsafeName": "getOrganizationUser", + "safeName": "getOrganizationUser" + }, + "snakeCase": { + "unsafeName": "get_organization_user", + "safeName": "get_organization_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ORGANIZATION_USER", + "safeName": "GET_ORGANIZATION_USER" + }, + "pascalCase": { + "unsafeName": "GetOrganizationUser", + "safeName": "GetOrganizationUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user/organizations/{organizationId}/users/{userId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetOrganizationUserRequest", + "camelCase": { + "unsafeName": "getOrganizationUserRequest", + "safeName": "getOrganizationUserRequest" + }, + "snakeCase": { + "unsafeName": "get_organization_user_request", + "safeName": "get_organization_user_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ORGANIZATION_USER_REQUEST", + "safeName": "GET_ORGANIZATION_USER_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetOrganizationUserRequest", + "safeName": "GetOrganizationUserRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "organizationId", + "camelCase": { + "unsafeName": "organizationID", + "safeName": "organizationID" + }, + "snakeCase": { + "unsafeName": "organization_id", + "safeName": "organization_id" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION_ID", + "safeName": "ORGANIZATION_ID" + }, + "pascalCase": { + "unsafeName": "OrganizationID", + "safeName": "OrganizationID" + } + }, + "wireValue": "organizationId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": true, + "onlyPathParameters": true + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.searchUsers": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchUsers", + "camelCase": { + "unsafeName": "searchUsers", + "safeName": "searchUsers" + }, + "snakeCase": { + "unsafeName": "search_users", + "safeName": "search_users" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_USERS", + "safeName": "SEARCH_USERS" + }, + "pascalCase": { + "unsafeName": "SearchUsers", + "safeName": "SearchUsers" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user/users/{userId}/search" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchUsersRequest", + "camelCase": { + "unsafeName": "searchUsersRequest", + "safeName": "searchUsersRequest" + }, + "snakeCase": { + "unsafeName": "search_users_request", + "safeName": "search_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_USERS_REQUEST", + "safeName": "SEARCH_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchUsersRequest", + "safeName": "SearchUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": true, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_user.searchOrganizations": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchOrganizations", + "camelCase": { + "unsafeName": "searchOrganizations", + "safeName": "searchOrganizations" + }, + "snakeCase": { + "unsafeName": "search_organizations", + "safeName": "search_organizations" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_ORGANIZATIONS", + "safeName": "SEARCH_ORGANIZATIONS" + }, + "pascalCase": { + "unsafeName": "SearchOrganizations", + "safeName": "SearchOrganizations" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user/organizations/{organizationId}/search" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchOrganizationsRequest", + "camelCase": { + "unsafeName": "searchOrganizationsRequest", + "safeName": "searchOrganizationsRequest" + }, + "snakeCase": { + "unsafeName": "search_organizations_request", + "safeName": "search_organizations_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_ORGANIZATIONS_REQUEST", + "safeName": "SEARCH_ORGANIZATIONS_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchOrganizationsRequest", + "safeName": "SearchOrganizationsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "organizationId", + "camelCase": { + "unsafeName": "organizationID", + "safeName": "organizationID" + }, + "snakeCase": { + "unsafeName": "organization_id", + "safeName": "organization_id" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION_ID", + "safeName": "ORGANIZATION_ID" + }, + "pascalCase": { + "unsafeName": "OrganizationID", + "safeName": "OrganizationID" + } + }, + "wireValue": "organizationId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json index 19274748a5a..1160565f3ab 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/plain-text.json @@ -193,6 +193,92 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.getText": { + "auth": null, + "declaration": { + "name": { + "originalName": "getText", + "camelCase": { + "unsafeName": "getText", + "safeName": "getText" + }, + "snakeCase": { + "unsafeName": "get_text", + "safeName": "get_text" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TEXT", + "safeName": "GET_TEXT" + }, + "pascalCase": { + "unsafeName": "GetText", + "safeName": "GetText" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/text" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json index 3b6fdb8a339..10035e75167 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/query-parameters.json @@ -1558,6 +1558,834 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tags", + "camelCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "snakeCase": { + "unsafeName": "tags", + "safeName": "tags" + }, + "screamingSnakeCase": { + "unsafeName": "TAGS", + "safeName": "TAGS" + }, + "pascalCase": { + "unsafeName": "Tags", + "safeName": "Tags" + } + }, + "wireValue": "tags" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_user:NestedUser": { + "type": "object", + "declaration": { + "name": { + "originalName": "NestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "named", + "value": "type_user:User" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUsername": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUsername", + "camelCase": { + "unsafeName": "getUsername", + "safeName": "getUsername" + }, + "snakeCase": { + "unsafeName": "get_username", + "safeName": "get_username" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USERNAME", + "safeName": "GET_USERNAME" + }, + "pascalCase": { + "unsafeName": "GetUsername", + "safeName": "GetUsername" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/user" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetUsersRequest", + "camelCase": { + "unsafeName": "getUsersRequest", + "safeName": "getUsersRequest" + }, + "snakeCase": { + "unsafeName": "get_users_request", + "safeName": "get_users_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USERS_REQUEST", + "safeName": "GET_USERS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetUsersRequest", + "safeName": "GetUsersRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + { + "name": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE" + } + }, + { + "name": { + "name": { + "originalName": "deadline", + "camelCase": { + "unsafeName": "deadline", + "safeName": "deadline" + }, + "snakeCase": { + "unsafeName": "deadline", + "safeName": "deadline" + }, + "screamingSnakeCase": { + "unsafeName": "DEADLINE", + "safeName": "DEADLINE" + }, + "pascalCase": { + "unsafeName": "Deadline", + "safeName": "Deadline" + } + }, + "wireValue": "deadline" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "bytes", + "camelCase": { + "unsafeName": "bytes", + "safeName": "bytes" + }, + "snakeCase": { + "unsafeName": "bytes", + "safeName": "bytes" + }, + "screamingSnakeCase": { + "unsafeName": "BYTES", + "safeName": "BYTES" + }, + "pascalCase": { + "unsafeName": "Bytes", + "safeName": "Bytes" + } + }, + "wireValue": "bytes" + }, + "typeReference": { + "_type": "primitive", + "value": "BASE_64" + } + }, + { + "name": { + "name": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "wireValue": "user" + }, + "typeReference": { + "_type": "named", + "value": "type_user:User" + } + }, + { + "name": { + "name": { + "originalName": "userList", + "camelCase": { + "unsafeName": "userList", + "safeName": "userList" + }, + "snakeCase": { + "unsafeName": "user_list", + "safeName": "user_list" + }, + "screamingSnakeCase": { + "unsafeName": "USER_LIST", + "safeName": "USER_LIST" + }, + "pascalCase": { + "unsafeName": "UserList", + "safeName": "UserList" + } + }, + "wireValue": "userList" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + }, + { + "name": { + "name": { + "originalName": "optionalDeadline", + "camelCase": { + "unsafeName": "optionalDeadline", + "safeName": "optionalDeadline" + }, + "snakeCase": { + "unsafeName": "optional_deadline", + "safeName": "optional_deadline" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_DEADLINE", + "safeName": "OPTIONAL_DEADLINE" + }, + "pascalCase": { + "unsafeName": "OptionalDeadline", + "safeName": "OptionalDeadline" + } + }, + "wireValue": "optionalDeadline" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "keyValue", + "camelCase": { + "unsafeName": "keyValue", + "safeName": "keyValue" + }, + "snakeCase": { + "unsafeName": "key_value", + "safeName": "key_value" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE", + "safeName": "KEY_VALUE" + }, + "pascalCase": { + "unsafeName": "KeyValue", + "safeName": "KeyValue" + } + }, + "wireValue": "keyValue" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "optionalString", + "camelCase": { + "unsafeName": "optionalString", + "safeName": "optionalString" + }, + "snakeCase": { + "unsafeName": "optional_string", + "safeName": "optional_string" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING", + "safeName": "OPTIONAL_STRING" + }, + "pascalCase": { + "unsafeName": "OptionalString", + "safeName": "OptionalString" + } + }, + "wireValue": "optionalString" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "nestedUser", + "camelCase": { + "unsafeName": "nestedUser", + "safeName": "nestedUser" + }, + "snakeCase": { + "unsafeName": "nested_user", + "safeName": "nested_user" + }, + "screamingSnakeCase": { + "unsafeName": "NESTED_USER", + "safeName": "NESTED_USER" + }, + "pascalCase": { + "unsafeName": "NestedUser", + "safeName": "NestedUser" + } + }, + "wireValue": "nestedUser" + }, + "typeReference": { + "_type": "named", + "value": "type_user:NestedUser" + } + }, + { + "name": { + "name": { + "originalName": "optionalUser", + "camelCase": { + "unsafeName": "optionalUser", + "safeName": "optionalUser" + }, + "snakeCase": { + "unsafeName": "optional_user", + "safeName": "optional_user" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_USER", + "safeName": "OPTIONAL_USER" + }, + "pascalCase": { + "unsafeName": "OptionalUser", + "safeName": "OptionalUser" + } + }, + "wireValue": "optionalUser" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + }, + { + "name": { + "name": { + "originalName": "excludeUser", + "camelCase": { + "unsafeName": "excludeUser", + "safeName": "excludeUser" + }, + "snakeCase": { + "unsafeName": "exclude_user", + "safeName": "exclude_user" + }, + "screamingSnakeCase": { + "unsafeName": "EXCLUDE_USER", + "safeName": "EXCLUDE_USER" + }, + "pascalCase": { + "unsafeName": "ExcludeUser", + "safeName": "ExcludeUser" + } + }, + "wireValue": "excludeUser" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_user:User" + } + } + }, + { + "name": { + "name": { + "originalName": "filter", + "camelCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "snakeCase": { + "unsafeName": "filter", + "safeName": "filter" + }, + "screamingSnakeCase": { + "unsafeName": "FILTER", + "safeName": "FILTER" + }, + "pascalCase": { + "unsafeName": "Filter", + "safeName": "Filter" + } + }, + "wireValue": "filter" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json index 1de47df5873..00c41a8ad84 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/reserved-keywords.json @@ -704,6 +704,421 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_package:Package": { + "type": "object", + "declaration": { + "name": { + "originalName": "Package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_package:Record": { + "type": "object", + "declaration": { + "name": { + "originalName": "Record", + "camelCase": { + "unsafeName": "record", + "safeName": "record" + }, + "snakeCase": { + "unsafeName": "record", + "safeName": "record" + }, + "screamingSnakeCase": { + "unsafeName": "RECORD", + "safeName": "RECORD" + }, + "pascalCase": { + "unsafeName": "Record", + "safeName": "Record" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "3d", + "camelCase": { + "unsafeName": "3D", + "safeName": "3D" + }, + "snakeCase": { + "unsafeName": "3d", + "safeName": "3d" + }, + "screamingSnakeCase": { + "unsafeName": "3D", + "safeName": "3D" + }, + "pascalCase": { + "unsafeName": "3D", + "safeName": "3D" + } + }, + "wireValue": "3d" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_package.test": { + "auth": null, + "declaration": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "TestRequest", + "camelCase": { + "unsafeName": "testRequest", + "safeName": "testRequest" + }, + "snakeCase": { + "unsafeName": "test_request", + "safeName": "test_request" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_REQUEST", + "safeName": "TEST_REQUEST" + }, + "pascalCase": { + "unsafeName": "TestRequest", + "safeName": "TestRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + ], + "packagePath": [], + "file": { + "originalName": "package", + "camelCase": { + "unsafeName": "package", + "safeName": "package" + }, + "snakeCase": { + "unsafeName": "package", + "safeName": "package" + }, + "screamingSnakeCase": { + "unsafeName": "PACKAGE", + "safeName": "PACKAGE" + }, + "pascalCase": { + "unsafeName": "Package", + "safeName": "Package" + } + } + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "for", + "camelCase": { + "unsafeName": "for", + "safeName": "for" + }, + "snakeCase": { + "unsafeName": "for", + "safeName": "for" + }, + "screamingSnakeCase": { + "unsafeName": "FOR", + "safeName": "FOR" + }, + "pascalCase": { + "unsafeName": "For", + "safeName": "For" + } + }, + "wireValue": "for" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_package": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json index c07685cc6a0..4503b91d81a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/response-property.json @@ -5672,6 +5672,1226 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:StringResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StringResponse", + "camelCase": { + "unsafeName": "stringResponse", + "safeName": "stringResponse" + }, + "snakeCase": { + "unsafeName": "string_response", + "safeName": "string_response" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_RESPONSE", + "safeName": "STRING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StringResponse", + "safeName": "StringResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:OptionalStringResponse": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalStringResponse", + "camelCase": { + "unsafeName": "optionalStringResponse", + "safeName": "optionalStringResponse" + }, + "snakeCase": { + "unsafeName": "optional_string_response", + "safeName": "optional_string_response" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_STRING_RESPONSE", + "safeName": "OPTIONAL_STRING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "OptionalStringResponse", + "safeName": "OptionalStringResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:StringResponse" + } + } + }, + "type_:WithMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithMetadata", + "camelCase": { + "unsafeName": "withMetadata", + "safeName": "withMetadata" + }, + "snakeCase": { + "unsafeName": "with_metadata", + "safeName": "with_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_METADATA", + "safeName": "WITH_METADATA" + }, + "pascalCase": { + "unsafeName": "WithMetadata", + "safeName": "WithMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_service:WithDocs": { + "type": "object", + "declaration": { + "name": { + "originalName": "WithDocs", + "camelCase": { + "unsafeName": "withDocs", + "safeName": "withDocs" + }, + "snakeCase": { + "unsafeName": "with_docs", + "safeName": "with_docs" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_DOCS", + "safeName": "WITH_DOCS" + }, + "pascalCase": { + "unsafeName": "WithDocs", + "safeName": "WithDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:OptionalWithDocs": { + "type": "alias", + "declaration": { + "name": { + "originalName": "OptionalWithDocs", + "camelCase": { + "unsafeName": "optionalWithDocs", + "safeName": "optionalWithDocs" + }, + "snakeCase": { + "unsafeName": "optional_with_docs", + "safeName": "optional_with_docs" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_WITH_DOCS", + "safeName": "OPTIONAL_WITH_DOCS" + }, + "pascalCase": { + "unsafeName": "OptionalWithDocs", + "safeName": "OptionalWithDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_service:WithDocs" + } + } + }, + "type_service:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_service:Response": { + "type": "object", + "declaration": { + "name": { + "originalName": "Response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "docs", + "camelCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "snakeCase": { + "unsafeName": "docs", + "safeName": "docs" + }, + "screamingSnakeCase": { + "unsafeName": "DOCS", + "safeName": "DOCS" + }, + "pascalCase": { + "unsafeName": "Docs", + "safeName": "Docs" + } + }, + "wireValue": "docs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "data", + "camelCase": { + "unsafeName": "data", + "safeName": "data" + }, + "snakeCase": { + "unsafeName": "data", + "safeName": "data" + }, + "screamingSnakeCase": { + "unsafeName": "DATA", + "safeName": "DATA" + }, + "pascalCase": { + "unsafeName": "Data", + "safeName": "Data" + } + }, + "wireValue": "data" + }, + "typeReference": { + "_type": "named", + "value": "type_service:Movie" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_service.getMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieDocs": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieDocs", + "camelCase": { + "unsafeName": "getMovieDocs", + "safeName": "getMovieDocs" + }, + "snakeCase": { + "unsafeName": "get_movie_docs", + "safeName": "get_movie_docs" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_DOCS", + "safeName": "GET_MOVIE_DOCS" + }, + "pascalCase": { + "unsafeName": "GetMovieDocs", + "safeName": "GetMovieDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieName": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieName", + "camelCase": { + "unsafeName": "getMovieName", + "safeName": "getMovieName" + }, + "snakeCase": { + "unsafeName": "get_movie_name", + "safeName": "get_movie_name" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_NAME", + "safeName": "GET_MOVIE_NAME" + }, + "pascalCase": { + "unsafeName": "GetMovieName", + "safeName": "GetMovieName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getMovieMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMovieMetadata", + "camelCase": { + "unsafeName": "getMovieMetadata", + "safeName": "getMovieMetadata" + }, + "snakeCase": { + "unsafeName": "get_movie_metadata", + "safeName": "get_movie_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE_METADATA", + "safeName": "GET_MOVIE_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMovieMetadata", + "safeName": "GetMovieMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovie": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovie", + "camelCase": { + "unsafeName": "getOptionalMovie", + "safeName": "getOptionalMovie" + }, + "snakeCase": { + "unsafeName": "get_optional_movie", + "safeName": "get_optional_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE", + "safeName": "GET_OPTIONAL_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovie", + "safeName": "GetOptionalMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovieDocs": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovieDocs", + "camelCase": { + "unsafeName": "getOptionalMovieDocs", + "safeName": "getOptionalMovieDocs" + }, + "snakeCase": { + "unsafeName": "get_optional_movie_docs", + "safeName": "get_optional_movie_docs" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE_DOCS", + "safeName": "GET_OPTIONAL_MOVIE_DOCS" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovieDocs", + "safeName": "GetOptionalMovieDocs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_service.getOptionalMovieName": { + "auth": null, + "declaration": { + "name": { + "originalName": "getOptionalMovieName", + "camelCase": { + "unsafeName": "getOptionalMovieName", + "safeName": "getOptionalMovieName" + }, + "snakeCase": { + "unsafeName": "get_optional_movie_name", + "safeName": "get_optional_movie_name" + }, + "screamingSnakeCase": { + "unsafeName": "GET_OPTIONAL_MOVIE_NAME", + "safeName": "GET_OPTIONAL_MOVIE_NAME" + }, + "pascalCase": { + "unsafeName": "GetOptionalMovieName", + "safeName": "GetOptionalMovieName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movie" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json index af8140cacf7..8d7650b9db4 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-event-examples.json @@ -1256,6 +1256,323 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_completions:StreamedCompletion": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamedCompletion", + "camelCase": { + "unsafeName": "streamedCompletion", + "safeName": "streamedCompletion" + }, + "snakeCase": { + "unsafeName": "streamed_completion", + "safeName": "streamed_completion" + }, + "screamingSnakeCase": { + "unsafeName": "STREAMED_COMPLETION", + "safeName": "STREAMED_COMPLETION" + }, + "pascalCase": { + "unsafeName": "StreamedCompletion", + "safeName": "StreamedCompletion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "delta", + "camelCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "snakeCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "screamingSnakeCase": { + "unsafeName": "DELTA", + "safeName": "DELTA" + }, + "pascalCase": { + "unsafeName": "Delta", + "safeName": "Delta" + } + }, + "wireValue": "delta" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tokens", + "camelCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "snakeCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "screamingSnakeCase": { + "unsafeName": "TOKENS", + "safeName": "TOKENS" + }, + "pascalCase": { + "unsafeName": "Tokens", + "safeName": "Tokens" + } + }, + "wireValue": "tokens" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_completions.stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "location": { + "method": "POST", + "path": "/stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StreamCompletionRequest", + "camelCase": { + "unsafeName": "streamCompletionRequest", + "safeName": "streamCompletionRequest" + }, + "snakeCase": { + "unsafeName": "stream_completion_request", + "safeName": "stream_completion_request" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_COMPLETION_REQUEST", + "safeName": "STREAM_COMPLETION_REQUEST" + }, + "pascalCase": { + "unsafeName": "StreamCompletionRequest", + "safeName": "StreamCompletionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_completions": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json index 32fc30b9966..a90f876fd54 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/server-sent-events.json @@ -565,6 +565,323 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_completions:StreamedCompletion": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamedCompletion", + "camelCase": { + "unsafeName": "streamedCompletion", + "safeName": "streamedCompletion" + }, + "snakeCase": { + "unsafeName": "streamed_completion", + "safeName": "streamed_completion" + }, + "screamingSnakeCase": { + "unsafeName": "STREAMED_COMPLETION", + "safeName": "STREAMED_COMPLETION" + }, + "pascalCase": { + "unsafeName": "StreamedCompletion", + "safeName": "StreamedCompletion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "delta", + "camelCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "snakeCase": { + "unsafeName": "delta", + "safeName": "delta" + }, + "screamingSnakeCase": { + "unsafeName": "DELTA", + "safeName": "DELTA" + }, + "pascalCase": { + "unsafeName": "Delta", + "safeName": "Delta" + } + }, + "wireValue": "delta" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "tokens", + "camelCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "snakeCase": { + "unsafeName": "tokens", + "safeName": "tokens" + }, + "screamingSnakeCase": { + "unsafeName": "TOKENS", + "safeName": "TOKENS" + }, + "pascalCase": { + "unsafeName": "Tokens", + "safeName": "Tokens" + } + }, + "wireValue": "tokens" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_completions.stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "location": { + "method": "POST", + "path": "/stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StreamCompletionRequest", + "camelCase": { + "unsafeName": "streamCompletionRequest", + "safeName": "streamCompletionRequest" + }, + "snakeCase": { + "unsafeName": "stream_completion_request", + "safeName": "stream_completion_request" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_COMPLETION_REQUEST", + "safeName": "STREAM_COMPLETION_REQUEST" + }, + "pascalCase": { + "unsafeName": "StreamCompletionRequest", + "safeName": "StreamCompletionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + ], + "packagePath": [], + "file": { + "originalName": "completions", + "camelCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "snakeCase": { + "unsafeName": "completions", + "safeName": "completions" + }, + "screamingSnakeCase": { + "unsafeName": "COMPLETIONS", + "safeName": "COMPLETIONS" + }, + "pascalCase": { + "unsafeName": "Completions", + "safeName": "Completions" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + }, + "wireValue": "query" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_completions": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/simple-fhir.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/simple-fhir.json index ae45706a7b9..2fd2d4dbd6a 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/simple-fhir.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/simple-fhir.json @@ -3501,6 +3501,1140 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:Memo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "account", + "camelCase": { + "unsafeName": "account", + "safeName": "account" + }, + "snakeCase": { + "unsafeName": "account", + "safeName": "account" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT", + "safeName": "ACCOUNT" + }, + "pascalCase": { + "unsafeName": "Account", + "safeName": "Account" + } + }, + "wireValue": "account" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Account" + } + } + } + ] + }, + "type_:BaseResource": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseResource", + "camelCase": { + "unsafeName": "baseResource", + "safeName": "baseResource" + }, + "snakeCase": { + "unsafeName": "base_resource", + "safeName": "base_resource" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_RESOURCE", + "safeName": "BASE_RESOURCE" + }, + "pascalCase": { + "unsafeName": "BaseResource", + "safeName": "BaseResource" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + } + ] + }, + "type_:ResourceList": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "ResourceList", + "camelCase": { + "unsafeName": "resourceList", + "safeName": "resourceList" + }, + "snakeCase": { + "unsafeName": "resource_list", + "safeName": "resource_list" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_LIST", + "safeName": "RESOURCE_LIST" + }, + "pascalCase": { + "unsafeName": "ResourceList", + "safeName": "ResourceList" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "types": [ + { + "_type": "named", + "value": "type_:Account" + }, + { + "_type": "named", + "value": "type_:Patient" + }, + { + "_type": "named", + "value": "type_:Practitioner" + }, + { + "_type": "named", + "value": "type_:Script" + } + ] + }, + "type_:Account": { + "type": "object", + "declaration": { + "name": { + "originalName": "Account", + "camelCase": { + "unsafeName": "account", + "safeName": "account" + }, + "snakeCase": { + "unsafeName": "account", + "safeName": "account" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT", + "safeName": "ACCOUNT" + }, + "pascalCase": { + "unsafeName": "Account", + "safeName": "Account" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Account" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "patient", + "camelCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "snakeCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "screamingSnakeCase": { + "unsafeName": "PATIENT", + "safeName": "PATIENT" + }, + "pascalCase": { + "unsafeName": "Patient", + "safeName": "Patient" + } + }, + "wireValue": "patient" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Patient" + } + } + }, + { + "name": { + "name": { + "originalName": "practitioner", + "camelCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "snakeCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "screamingSnakeCase": { + "unsafeName": "PRACTITIONER", + "safeName": "PRACTITIONER" + }, + "pascalCase": { + "unsafeName": "Practitioner", + "safeName": "Practitioner" + } + }, + "wireValue": "practitioner" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_:Practitioner" + } + } + } + ] + }, + "type_:Patient": { + "type": "object", + "declaration": { + "name": { + "originalName": "Patient", + "camelCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "snakeCase": { + "unsafeName": "patient", + "safeName": "patient" + }, + "screamingSnakeCase": { + "unsafeName": "PATIENT", + "safeName": "PATIENT" + }, + "pascalCase": { + "unsafeName": "Patient", + "safeName": "Patient" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Patient" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "scripts", + "camelCase": { + "unsafeName": "scripts", + "safeName": "scripts" + }, + "snakeCase": { + "unsafeName": "scripts", + "safeName": "scripts" + }, + "screamingSnakeCase": { + "unsafeName": "SCRIPTS", + "safeName": "SCRIPTS" + }, + "pascalCase": { + "unsafeName": "Scripts", + "safeName": "Scripts" + } + }, + "wireValue": "scripts" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:Script" + } + } + } + ] + }, + "type_:Practitioner": { + "type": "object", + "declaration": { + "name": { + "originalName": "Practitioner", + "camelCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "snakeCase": { + "unsafeName": "practitioner", + "safeName": "practitioner" + }, + "screamingSnakeCase": { + "unsafeName": "PRACTITIONER", + "safeName": "PRACTITIONER" + }, + "pascalCase": { + "unsafeName": "Practitioner", + "safeName": "Practitioner" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Practitioner" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_:Script": { + "type": "object", + "declaration": { + "name": { + "originalName": "Script", + "camelCase": { + "unsafeName": "script", + "safeName": "script" + }, + "snakeCase": { + "unsafeName": "script", + "safeName": "script" + }, + "screamingSnakeCase": { + "unsafeName": "SCRIPT", + "safeName": "SCRIPT" + }, + "pascalCase": { + "unsafeName": "Script", + "safeName": "Script" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "related_resources", + "camelCase": { + "unsafeName": "relatedResources", + "safeName": "relatedResources" + }, + "snakeCase": { + "unsafeName": "related_resources", + "safeName": "related_resources" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_RESOURCES", + "safeName": "RELATED_RESOURCES" + }, + "pascalCase": { + "unsafeName": "RelatedResources", + "safeName": "RelatedResources" + } + }, + "wireValue": "related_resources" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_:ResourceList" + } + } + }, + { + "name": { + "name": { + "originalName": "memo", + "camelCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "snakeCase": { + "unsafeName": "memo", + "safeName": "memo" + }, + "screamingSnakeCase": { + "unsafeName": "MEMO", + "safeName": "MEMO" + }, + "pascalCase": { + "unsafeName": "Memo", + "safeName": "Memo" + } + }, + "wireValue": "memo" + }, + "typeReference": { + "_type": "named", + "value": "type_:Memo" + } + }, + { + "name": { + "name": { + "originalName": "resource_type", + "camelCase": { + "unsafeName": "resourceType", + "safeName": "resourceType" + }, + "snakeCase": { + "unsafeName": "resource_type", + "safeName": "resource_type" + }, + "screamingSnakeCase": { + "unsafeName": "RESOURCE_TYPE", + "safeName": "RESOURCE_TYPE" + }, + "pascalCase": { + "unsafeName": "ResourceType", + "safeName": "ResourceType" + } + }, + "wireValue": "resource_type" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "Script" + } + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.getAccount": { + "auth": null, + "declaration": { + "name": { + "originalName": "getAccount", + "camelCase": { + "unsafeName": "getAccount", + "safeName": "getAccount" + }, + "snakeCase": { + "unsafeName": "get_account", + "safeName": "get_account" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACCOUNT", + "safeName": "GET_ACCOUNT" + }, + "pascalCase": { + "unsafeName": "GetAccount", + "safeName": "GetAccount" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/account/{account_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "account_id", + "camelCase": { + "unsafeName": "accountID", + "safeName": "accountID" + }, + "snakeCase": { + "unsafeName": "account_id", + "safeName": "account_id" + }, + "screamingSnakeCase": { + "unsafeName": "ACCOUNT_ID", + "safeName": "ACCOUNT_ID" + }, + "pascalCase": { + "unsafeName": "AccountID", + "safeName": "AccountID" + } + }, + "wireValue": "account_id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json index 6c741aaa9e4..9e60acb94d7 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-default.json @@ -321,6 +321,113 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dummy": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json index c95e03eb4ba..6c1c47c29b1 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/single-url-environment-no-default.json @@ -321,6 +321,113 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_dummy.getDummy": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDummy", + "camelCase": { + "unsafeName": "getDummy", + "safeName": "getDummy" + }, + "snakeCase": { + "unsafeName": "get_dummy", + "safeName": "get_dummy" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DUMMY", + "safeName": "GET_DUMMY" + }, + "pascalCase": { + "unsafeName": "GetDummy", + "safeName": "GetDummy" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "GET", + "path": "/dummy" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dummy": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json index 66942037c04..10633d5389d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming-parameter.json @@ -1296,6 +1296,479 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_dummy:RegularResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RegularResponse", + "camelCase": { + "unsafeName": "regularResponse", + "safeName": "regularResponse" + }, + "snakeCase": { + "unsafeName": "regular_response", + "safeName": "regular_response" + }, + "screamingSnakeCase": { + "unsafeName": "REGULAR_RESPONSE", + "safeName": "REGULAR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RegularResponse", + "safeName": "RegularResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_dummy:StreamResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamResponse", + "camelCase": { + "unsafeName": "streamResponse", + "safeName": "streamResponse" + }, + "snakeCase": { + "unsafeName": "stream_response", + "safeName": "stream_response" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_RESPONSE", + "safeName": "STREAM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StreamResponse", + "safeName": "StreamResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dummy.generate": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate", + "camelCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "snakeCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE", + "safeName": "GENERATE" + }, + "pascalCase": { + "unsafeName": "Generate", + "safeName": "Generate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GenerateRequest", + "camelCase": { + "unsafeName": "generateRequest", + "safeName": "generateRequest" + }, + "snakeCase": { + "unsafeName": "generate_request", + "safeName": "generate_request" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_REQUEST", + "safeName": "GENERATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GenerateRequest", + "safeName": "GenerateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dummy": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json index 94eaf87af08..7cf13e41bc6 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/streaming.json @@ -1720,6 +1720,566 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_dummy:StreamResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StreamResponse", + "camelCase": { + "unsafeName": "streamResponse", + "safeName": "streamResponse" + }, + "snakeCase": { + "unsafeName": "stream_response", + "safeName": "stream_response" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM_RESPONSE", + "safeName": "STREAM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StreamResponse", + "safeName": "StreamResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_dummy.generate-stream": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate-stream", + "camelCase": { + "unsafeName": "generateStream", + "safeName": "generateStream" + }, + "snakeCase": { + "unsafeName": "generate_stream", + "safeName": "generate_stream" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_STREAM", + "safeName": "GENERATE_STREAM" + }, + "pascalCase": { + "unsafeName": "GenerateStream", + "safeName": "GenerateStream" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate-stream" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GenerateStreamRequest", + "camelCase": { + "unsafeName": "generateStreamRequest", + "safeName": "generateStreamRequest" + }, + "snakeCase": { + "unsafeName": "generate_stream_request", + "safeName": "generate_stream_request" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE_STREAM_REQUEST", + "safeName": "GENERATE_STREAM_REQUEST" + }, + "pascalCase": { + "unsafeName": "GenerateStreamRequest", + "safeName": "GenerateStreamRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": true + } + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_dummy.generate": { + "auth": null, + "declaration": { + "name": { + "originalName": "generate", + "camelCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "snakeCase": { + "unsafeName": "generate", + "safeName": "generate" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATE", + "safeName": "GENERATE" + }, + "pascalCase": { + "unsafeName": "Generate", + "safeName": "Generate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "location": { + "method": "POST", + "path": "/generate" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "Generateequest", + "camelCase": { + "unsafeName": "generateequest", + "safeName": "generateequest" + }, + "snakeCase": { + "unsafeName": "generateequest", + "safeName": "generateequest" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATEEQUEST", + "safeName": "GENERATEEQUEST" + }, + "pascalCase": { + "unsafeName": "Generateequest", + "safeName": "Generateequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + ], + "packagePath": [], + "file": { + "originalName": "dummy", + "camelCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "snakeCase": { + "unsafeName": "dummy", + "safeName": "dummy" + }, + "screamingSnakeCase": { + "unsafeName": "DUMMY", + "safeName": "DUMMY" + }, + "pascalCase": { + "unsafeName": "Dummy", + "safeName": "Dummy" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "stream", + "camelCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "snakeCase": { + "unsafeName": "stream", + "safeName": "stream" + }, + "screamingSnakeCase": { + "unsafeName": "STREAM", + "safeName": "STREAM" + }, + "pascalCase": { + "unsafeName": "Stream", + "safeName": "Stream" + } + }, + "wireValue": "stream" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "boolean", + "value": false + } + } + }, + { + "name": { + "name": { + "originalName": "num_events", + "camelCase": { + "unsafeName": "numEvents", + "safeName": "numEvents" + }, + "snakeCase": { + "unsafeName": "num_events", + "safeName": "num_events" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_EVENTS", + "safeName": "NUM_EVENTS" + }, + "pascalCase": { + "unsafeName": "NumEvents", + "safeName": "NumEvents" + } + }, + "wireValue": "num_events" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_dummy": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json index 44bba248efc..b3bf477fe1d 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/trace.json @@ -438674,6 +438674,41292 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_admin:Test": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "and": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "and", + "camelCase": { + "unsafeName": "and", + "safeName": "and" + }, + "snakeCase": { + "unsafeName": "and", + "safeName": "and" + }, + "screamingSnakeCase": { + "unsafeName": "AND", + "safeName": "AND" + }, + "pascalCase": { + "unsafeName": "And", + "safeName": "And" + } + }, + "wireValue": "and" + }, + "properties": null + }, + "or": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "or", + "camelCase": { + "unsafeName": "or", + "safeName": "or" + }, + "snakeCase": { + "unsafeName": "or", + "safeName": "or" + }, + "screamingSnakeCase": { + "unsafeName": "OR", + "safeName": "OR" + }, + "pascalCase": { + "unsafeName": "Or", + "safeName": "Or" + } + }, + "wireValue": "or" + }, + "properties": null + } + } + }, + "type_commons:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:ProblemId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ProblemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:NodeId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "NodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_commons:VariableType": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "VariableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "integerType", + "camelCase": { + "unsafeName": "integerType", + "safeName": "integerType" + }, + "snakeCase": { + "unsafeName": "integer_type", + "safeName": "integer_type" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_TYPE", + "safeName": "INTEGER_TYPE" + }, + "pascalCase": { + "unsafeName": "IntegerType", + "safeName": "IntegerType" + } + }, + "wireValue": "integerType" + }, + "properties": null + }, + "doubleType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "doubleType", + "camelCase": { + "unsafeName": "doubleType", + "safeName": "doubleType" + }, + "snakeCase": { + "unsafeName": "double_type", + "safeName": "double_type" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_TYPE", + "safeName": "DOUBLE_TYPE" + }, + "pascalCase": { + "unsafeName": "DoubleType", + "safeName": "DoubleType" + } + }, + "wireValue": "doubleType" + }, + "properties": null + }, + "booleanType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "booleanType", + "camelCase": { + "unsafeName": "booleanType", + "safeName": "booleanType" + }, + "snakeCase": { + "unsafeName": "boolean_type", + "safeName": "boolean_type" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_TYPE", + "safeName": "BOOLEAN_TYPE" + }, + "pascalCase": { + "unsafeName": "BooleanType", + "safeName": "BooleanType" + } + }, + "wireValue": "booleanType" + }, + "properties": null + }, + "stringType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stringType", + "camelCase": { + "unsafeName": "stringType", + "safeName": "stringType" + }, + "snakeCase": { + "unsafeName": "string_type", + "safeName": "string_type" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_TYPE", + "safeName": "STRING_TYPE" + }, + "pascalCase": { + "unsafeName": "StringType", + "safeName": "StringType" + } + }, + "wireValue": "stringType" + }, + "properties": null + }, + "charType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "charType", + "camelCase": { + "unsafeName": "charType", + "safeName": "charType" + }, + "snakeCase": { + "unsafeName": "char_type", + "safeName": "char_type" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_TYPE", + "safeName": "CHAR_TYPE" + }, + "pascalCase": { + "unsafeName": "CharType", + "safeName": "CharType" + } + }, + "wireValue": "charType" + }, + "properties": null + }, + "listType": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:ListType", + "discriminantValue": { + "name": { + "originalName": "listType", + "camelCase": { + "unsafeName": "listType", + "safeName": "listType" + }, + "snakeCase": { + "unsafeName": "list_type", + "safeName": "list_type" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_TYPE", + "safeName": "LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "ListType", + "safeName": "ListType" + } + }, + "wireValue": "listType" + }, + "properties": [] + }, + "mapType": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:MapType", + "discriminantValue": { + "name": { + "originalName": "mapType", + "camelCase": { + "unsafeName": "mapType", + "safeName": "mapType" + }, + "snakeCase": { + "unsafeName": "map_type", + "safeName": "map_type" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_TYPE", + "safeName": "MAP_TYPE" + }, + "pascalCase": { + "unsafeName": "MapType", + "safeName": "MapType" + } + }, + "wireValue": "mapType" + }, + "properties": [] + }, + "binaryTreeType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "binaryTreeType", + "camelCase": { + "unsafeName": "binaryTreeType", + "safeName": "binaryTreeType" + }, + "snakeCase": { + "unsafeName": "binary_tree_type", + "safeName": "binary_tree_type" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_TYPE", + "safeName": "BINARY_TREE_TYPE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeType", + "safeName": "BinaryTreeType" + } + }, + "wireValue": "binaryTreeType" + }, + "properties": null + }, + "singlyLinkedListType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListType", + "camelCase": { + "unsafeName": "singlyLinkedListType", + "safeName": "singlyLinkedListType" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_type", + "safeName": "singly_linked_list_type" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_TYPE", + "safeName": "SINGLY_LINKED_LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListType", + "safeName": "SinglyLinkedListType" + } + }, + "wireValue": "singlyLinkedListType" + }, + "properties": null + }, + "doublyLinkedListType": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListType", + "camelCase": { + "unsafeName": "doublyLinkedListType", + "safeName": "doublyLinkedListType" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_type", + "safeName": "doubly_linked_list_type" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_TYPE", + "safeName": "DOUBLY_LINKED_LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListType", + "safeName": "DoublyLinkedListType" + } + }, + "wireValue": "doublyLinkedListType" + }, + "properties": null + } + } + }, + "type_commons:ListType": { + "type": "object", + "declaration": { + "name": { + "originalName": "ListType", + "camelCase": { + "unsafeName": "listType", + "safeName": "listType" + }, + "snakeCase": { + "unsafeName": "list_type", + "safeName": "list_type" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_TYPE", + "safeName": "LIST_TYPE" + }, + "pascalCase": { + "unsafeName": "ListType", + "safeName": "ListType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "isFixedLength", + "camelCase": { + "unsafeName": "isFixedLength", + "safeName": "isFixedLength" + }, + "snakeCase": { + "unsafeName": "is_fixed_length", + "safeName": "is_fixed_length" + }, + "screamingSnakeCase": { + "unsafeName": "IS_FIXED_LENGTH", + "safeName": "IS_FIXED_LENGTH" + }, + "pascalCase": { + "unsafeName": "IsFixedLength", + "safeName": "IsFixedLength" + } + }, + "wireValue": "isFixedLength" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + } + ] + }, + "type_commons:MapType": { + "type": "object", + "declaration": { + "name": { + "originalName": "MapType", + "camelCase": { + "unsafeName": "mapType", + "safeName": "mapType" + }, + "snakeCase": { + "unsafeName": "map_type", + "safeName": "map_type" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_TYPE", + "safeName": "MAP_TYPE" + }, + "pascalCase": { + "unsafeName": "MapType", + "safeName": "MapType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyType", + "camelCase": { + "unsafeName": "keyType", + "safeName": "keyType" + }, + "snakeCase": { + "unsafeName": "key_type", + "safeName": "key_type" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_TYPE", + "safeName": "KEY_TYPE" + }, + "pascalCase": { + "unsafeName": "KeyType", + "safeName": "KeyType" + } + }, + "wireValue": "keyType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "valueType", + "camelCase": { + "unsafeName": "valueType", + "safeName": "valueType" + }, + "snakeCase": { + "unsafeName": "value_type", + "safeName": "value_type" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE_TYPE", + "safeName": "VALUE_TYPE" + }, + "pascalCase": { + "unsafeName": "ValueType", + "safeName": "ValueType" + } + }, + "wireValue": "valueType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_commons:VariableValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "VariableValue", + "camelCase": { + "unsafeName": "variableValue", + "safeName": "variableValue" + }, + "snakeCase": { + "unsafeName": "variable_value", + "safeName": "variable_value" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_VALUE", + "safeName": "VARIABLE_VALUE" + }, + "pascalCase": { + "unsafeName": "VariableValue", + "safeName": "VariableValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integerValue", + "camelCase": { + "unsafeName": "integerValue", + "safeName": "integerValue" + }, + "snakeCase": { + "unsafeName": "integer_value", + "safeName": "integer_value" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_VALUE", + "safeName": "INTEGER_VALUE" + }, + "pascalCase": { + "unsafeName": "IntegerValue", + "safeName": "IntegerValue" + } + }, + "wireValue": "integerValue" + }, + "properties": null + }, + "booleanValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "booleanValue", + "camelCase": { + "unsafeName": "booleanValue", + "safeName": "booleanValue" + }, + "snakeCase": { + "unsafeName": "boolean_value", + "safeName": "boolean_value" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_VALUE", + "safeName": "BOOLEAN_VALUE" + }, + "pascalCase": { + "unsafeName": "BooleanValue", + "safeName": "BooleanValue" + } + }, + "wireValue": "booleanValue" + }, + "properties": null + }, + "doubleValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + }, + "discriminantValue": { + "name": { + "originalName": "doubleValue", + "camelCase": { + "unsafeName": "doubleValue", + "safeName": "doubleValue" + }, + "snakeCase": { + "unsafeName": "double_value", + "safeName": "double_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_VALUE", + "safeName": "DOUBLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoubleValue", + "safeName": "DoubleValue" + } + }, + "wireValue": "doubleValue" + }, + "properties": null + }, + "stringValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "stringValue", + "camelCase": { + "unsafeName": "stringValue", + "safeName": "stringValue" + }, + "snakeCase": { + "unsafeName": "string_value", + "safeName": "string_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_VALUE", + "safeName": "STRING_VALUE" + }, + "pascalCase": { + "unsafeName": "StringValue", + "safeName": "StringValue" + } + }, + "wireValue": "stringValue" + }, + "properties": null + }, + "charValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "charValue", + "camelCase": { + "unsafeName": "charValue", + "safeName": "charValue" + }, + "snakeCase": { + "unsafeName": "char_value", + "safeName": "char_value" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_VALUE", + "safeName": "CHAR_VALUE" + }, + "pascalCase": { + "unsafeName": "CharValue", + "safeName": "CharValue" + } + }, + "wireValue": "charValue" + }, + "properties": null + }, + "mapValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:MapValue", + "discriminantValue": { + "name": { + "originalName": "mapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "wireValue": "mapValue" + }, + "properties": [] + }, + "listValue": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "listValue", + "camelCase": { + "unsafeName": "listValue", + "safeName": "listValue" + }, + "snakeCase": { + "unsafeName": "list_value", + "safeName": "list_value" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_VALUE", + "safeName": "LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "ListValue", + "safeName": "ListValue" + } + }, + "wireValue": "listValue" + }, + "properties": null + }, + "binaryTreeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:BinaryTreeValue", + "discriminantValue": { + "name": { + "originalName": "binaryTreeValue", + "camelCase": { + "unsafeName": "binaryTreeValue", + "safeName": "binaryTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_value", + "safeName": "binary_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_VALUE", + "safeName": "BINARY_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeValue", + "safeName": "BinaryTreeValue" + } + }, + "wireValue": "binaryTreeValue" + }, + "properties": [] + }, + "singlyLinkedListValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:SinglyLinkedListValue", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListValue", + "camelCase": { + "unsafeName": "singlyLinkedListValue", + "safeName": "singlyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_value", + "safeName": "singly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListValue", + "safeName": "SinglyLinkedListValue" + } + }, + "wireValue": "singlyLinkedListValue" + }, + "properties": [] + }, + "doublyLinkedListValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DoublyLinkedListValue", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListValue", + "camelCase": { + "unsafeName": "doublyLinkedListValue", + "safeName": "doublyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_value", + "safeName": "doubly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListValue", + "safeName": "DoublyLinkedListValue" + } + }, + "wireValue": "doublyLinkedListValue" + }, + "properties": [] + }, + "nullValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "nullValue", + "camelCase": { + "unsafeName": "nullValue", + "safeName": "nullValue" + }, + "snakeCase": { + "unsafeName": "null_value", + "safeName": "null_value" + }, + "screamingSnakeCase": { + "unsafeName": "NULL_VALUE", + "safeName": "NULL_VALUE" + }, + "pascalCase": { + "unsafeName": "NullValue", + "safeName": "NullValue" + } + }, + "wireValue": "nullValue" + }, + "properties": null + } + } + }, + "type_commons:DebugVariableValue": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "DebugVariableValue", + "camelCase": { + "unsafeName": "debugVariableValue", + "safeName": "debugVariableValue" + }, + "snakeCase": { + "unsafeName": "debug_variable_value", + "safeName": "debug_variable_value" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_VARIABLE_VALUE", + "safeName": "DEBUG_VARIABLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DebugVariableValue", + "safeName": "DebugVariableValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integerValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integerValue", + "camelCase": { + "unsafeName": "integerValue", + "safeName": "integerValue" + }, + "snakeCase": { + "unsafeName": "integer_value", + "safeName": "integer_value" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER_VALUE", + "safeName": "INTEGER_VALUE" + }, + "pascalCase": { + "unsafeName": "IntegerValue", + "safeName": "IntegerValue" + } + }, + "wireValue": "integerValue" + }, + "properties": null + }, + "booleanValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + }, + "discriminantValue": { + "name": { + "originalName": "booleanValue", + "camelCase": { + "unsafeName": "booleanValue", + "safeName": "booleanValue" + }, + "snakeCase": { + "unsafeName": "boolean_value", + "safeName": "boolean_value" + }, + "screamingSnakeCase": { + "unsafeName": "BOOLEAN_VALUE", + "safeName": "BOOLEAN_VALUE" + }, + "pascalCase": { + "unsafeName": "BooleanValue", + "safeName": "BooleanValue" + } + }, + "wireValue": "booleanValue" + }, + "properties": null + }, + "doubleValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + }, + "discriminantValue": { + "name": { + "originalName": "doubleValue", + "camelCase": { + "unsafeName": "doubleValue", + "safeName": "doubleValue" + }, + "snakeCase": { + "unsafeName": "double_value", + "safeName": "double_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE_VALUE", + "safeName": "DOUBLE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoubleValue", + "safeName": "DoubleValue" + } + }, + "wireValue": "doubleValue" + }, + "properties": null + }, + "stringValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "stringValue", + "camelCase": { + "unsafeName": "stringValue", + "safeName": "stringValue" + }, + "snakeCase": { + "unsafeName": "string_value", + "safeName": "string_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRING_VALUE", + "safeName": "STRING_VALUE" + }, + "pascalCase": { + "unsafeName": "StringValue", + "safeName": "StringValue" + } + }, + "wireValue": "stringValue" + }, + "properties": null + }, + "charValue": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "charValue", + "camelCase": { + "unsafeName": "charValue", + "safeName": "charValue" + }, + "snakeCase": { + "unsafeName": "char_value", + "safeName": "char_value" + }, + "screamingSnakeCase": { + "unsafeName": "CHAR_VALUE", + "safeName": "CHAR_VALUE" + }, + "pascalCase": { + "unsafeName": "CharValue", + "safeName": "CharValue" + } + }, + "wireValue": "charValue" + }, + "properties": null + }, + "mapValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DebugMapValue", + "discriminantValue": { + "name": { + "originalName": "mapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "wireValue": "mapValue" + }, + "properties": [] + }, + "listValue": { + "type": "singleProperty", + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + }, + "discriminantValue": { + "name": { + "originalName": "listValue", + "camelCase": { + "unsafeName": "listValue", + "safeName": "listValue" + }, + "snakeCase": { + "unsafeName": "list_value", + "safeName": "list_value" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_VALUE", + "safeName": "LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "ListValue", + "safeName": "ListValue" + } + }, + "wireValue": "listValue" + }, + "properties": null + }, + "binaryTreeNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:BinaryTreeNodeAndTreeValue", + "discriminantValue": { + "name": { + "originalName": "binaryTreeNodeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeValue", + "safeName": "binaryTreeNodeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_value", + "safeName": "binary_tree_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_VALUE", + "safeName": "BINARY_TREE_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeValue", + "safeName": "BinaryTreeNodeValue" + } + }, + "wireValue": "binaryTreeNodeValue" + }, + "properties": [] + }, + "singlyLinkedListNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:SinglyLinkedListNodeAndListValue", + "discriminantValue": { + "name": { + "originalName": "singlyLinkedListNodeValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeValue", + "safeName": "singlyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_value", + "safeName": "singly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeValue", + "safeName": "SinglyLinkedListNodeValue" + } + }, + "wireValue": "singlyLinkedListNodeValue" + }, + "properties": [] + }, + "doublyLinkedListNodeValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:DoublyLinkedListNodeAndListValue", + "discriminantValue": { + "name": { + "originalName": "doublyLinkedListNodeValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeValue", + "safeName": "doublyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_value", + "safeName": "doubly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeValue", + "safeName": "DoublyLinkedListNodeValue" + } + }, + "wireValue": "doublyLinkedListNodeValue" + }, + "properties": [] + }, + "undefinedValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "undefinedValue", + "camelCase": { + "unsafeName": "undefinedValue", + "safeName": "undefinedValue" + }, + "snakeCase": { + "unsafeName": "undefined_value", + "safeName": "undefined_value" + }, + "screamingSnakeCase": { + "unsafeName": "UNDEFINED_VALUE", + "safeName": "UNDEFINED_VALUE" + }, + "pascalCase": { + "unsafeName": "UndefinedValue", + "safeName": "UndefinedValue" + } + }, + "wireValue": "undefinedValue" + }, + "properties": null + }, + "nullValue": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "nullValue", + "camelCase": { + "unsafeName": "nullValue", + "safeName": "nullValue" + }, + "snakeCase": { + "unsafeName": "null_value", + "safeName": "null_value" + }, + "screamingSnakeCase": { + "unsafeName": "NULL_VALUE", + "safeName": "NULL_VALUE" + }, + "pascalCase": { + "unsafeName": "NullValue", + "safeName": "NullValue" + } + }, + "wireValue": "nullValue" + }, + "properties": null + }, + "genericValue": { + "type": "samePropertiesAsObject", + "typeId": "type_commons:GenericValue", + "discriminantValue": { + "name": { + "originalName": "genericValue", + "camelCase": { + "unsafeName": "genericValue", + "safeName": "genericValue" + }, + "snakeCase": { + "unsafeName": "generic_value", + "safeName": "generic_value" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_VALUE", + "safeName": "GENERIC_VALUE" + }, + "pascalCase": { + "unsafeName": "GenericValue", + "safeName": "GenericValue" + } + }, + "wireValue": "genericValue" + }, + "properties": [] + } + } + }, + "type_commons:GenericValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "GenericValue", + "camelCase": { + "unsafeName": "genericValue", + "safeName": "genericValue" + }, + "snakeCase": { + "unsafeName": "generic_value", + "safeName": "generic_value" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_VALUE", + "safeName": "GENERIC_VALUE" + }, + "pascalCase": { + "unsafeName": "GenericValue", + "safeName": "GenericValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "stringifiedType", + "camelCase": { + "unsafeName": "stringifiedType", + "safeName": "stringifiedType" + }, + "snakeCase": { + "unsafeName": "stringified_type", + "safeName": "stringified_type" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_TYPE", + "safeName": "STRINGIFIED_TYPE" + }, + "pascalCase": { + "unsafeName": "StringifiedType", + "safeName": "StringifiedType" + } + }, + "wireValue": "stringifiedType" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "stringifiedValue", + "camelCase": { + "unsafeName": "stringifiedValue", + "safeName": "stringifiedValue" + }, + "snakeCase": { + "unsafeName": "stringified_value", + "safeName": "stringified_value" + }, + "screamingSnakeCase": { + "unsafeName": "STRINGIFIED_VALUE", + "safeName": "STRINGIFIED_VALUE" + }, + "pascalCase": { + "unsafeName": "StringifiedValue", + "safeName": "StringifiedValue" + } + }, + "wireValue": "stringifiedValue" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_commons:MapValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "MapValue", + "camelCase": { + "unsafeName": "mapValue", + "safeName": "mapValue" + }, + "snakeCase": { + "unsafeName": "map_value", + "safeName": "map_value" + }, + "screamingSnakeCase": { + "unsafeName": "MAP_VALUE", + "safeName": "MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "MapValue", + "safeName": "MapValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:KeyValuePair" + } + } + } + ] + }, + "type_commons:KeyValuePair": { + "type": "object", + "declaration": { + "name": { + "originalName": "KeyValuePair", + "camelCase": { + "unsafeName": "keyValuePair", + "safeName": "keyValuePair" + }, + "snakeCase": { + "unsafeName": "key_value_pair", + "safeName": "key_value_pair" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIR", + "safeName": "KEY_VALUE_PAIR" + }, + "pascalCase": { + "unsafeName": "KeyValuePair", + "safeName": "KeyValuePair" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "wireValue": "key" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + ] + }, + "type_commons:BinaryTreeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeValue", + "camelCase": { + "unsafeName": "binaryTreeValue", + "safeName": "binaryTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_value", + "safeName": "binary_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_VALUE", + "safeName": "BINARY_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeValue", + "safeName": "BinaryTreeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "root", + "camelCase": { + "unsafeName": "root", + "safeName": "root" + }, + "snakeCase": { + "unsafeName": "root", + "safeName": "root" + }, + "screamingSnakeCase": { + "unsafeName": "ROOT", + "safeName": "ROOT" + }, + "pascalCase": { + "unsafeName": "Root", + "safeName": "Root" + } + }, + "wireValue": "root" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:BinaryTreeNodeValue" + } + } + } + ] + }, + "type_commons:BinaryTreeNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeNodeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeValue", + "safeName": "binaryTreeNodeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_value", + "safeName": "binary_tree_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_VALUE", + "safeName": "BINARY_TREE_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeValue", + "safeName": "BinaryTreeNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "right", + "camelCase": { + "unsafeName": "right", + "safeName": "right" + }, + "snakeCase": { + "unsafeName": "right", + "safeName": "right" + }, + "screamingSnakeCase": { + "unsafeName": "RIGHT", + "safeName": "RIGHT" + }, + "pascalCase": { + "unsafeName": "Right", + "safeName": "Right" + } + }, + "wireValue": "right" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "left", + "camelCase": { + "unsafeName": "left", + "safeName": "left" + }, + "snakeCase": { + "unsafeName": "left", + "safeName": "left" + }, + "screamingSnakeCase": { + "unsafeName": "LEFT", + "safeName": "LEFT" + }, + "pascalCase": { + "unsafeName": "Left", + "safeName": "Left" + } + }, + "wireValue": "left" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:BinaryTreeNodeAndTreeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "BinaryTreeNodeAndTreeValue", + "camelCase": { + "unsafeName": "binaryTreeNodeAndTreeValue", + "safeName": "binaryTreeNodeAndTreeValue" + }, + "snakeCase": { + "unsafeName": "binary_tree_node_and_tree_value", + "safeName": "binary_tree_node_and_tree_value" + }, + "screamingSnakeCase": { + "unsafeName": "BINARY_TREE_NODE_AND_TREE_VALUE", + "safeName": "BINARY_TREE_NODE_AND_TREE_VALUE" + }, + "pascalCase": { + "unsafeName": "BinaryTreeNodeAndTreeValue", + "safeName": "BinaryTreeNodeAndTreeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullTree", + "camelCase": { + "unsafeName": "fullTree", + "safeName": "fullTree" + }, + "snakeCase": { + "unsafeName": "full_tree", + "safeName": "full_tree" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_TREE", + "safeName": "FULL_TREE" + }, + "pascalCase": { + "unsafeName": "FullTree", + "safeName": "FullTree" + } + }, + "wireValue": "fullTree" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:BinaryTreeValue" + } + } + ] + }, + "type_commons:SinglyLinkedListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListValue", + "camelCase": { + "unsafeName": "singlyLinkedListValue", + "safeName": "singlyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_value", + "safeName": "singly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListValue", + "safeName": "SinglyLinkedListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:SinglyLinkedListNodeValue" + } + } + } + ] + }, + "type_commons:SinglyLinkedListNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListNodeValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeValue", + "safeName": "singlyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_value", + "safeName": "singly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeValue", + "safeName": "SinglyLinkedListNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:SinglyLinkedListNodeAndListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "SinglyLinkedListNodeAndListValue", + "camelCase": { + "unsafeName": "singlyLinkedListNodeAndListValue", + "safeName": "singlyLinkedListNodeAndListValue" + }, + "snakeCase": { + "unsafeName": "singly_linked_list_node_and_list_value", + "safeName": "singly_linked_list_node_and_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "SINGLY_LINKED_LIST_NODE_AND_LIST_VALUE", + "safeName": "SINGLY_LINKED_LIST_NODE_AND_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "SinglyLinkedListNodeAndListValue", + "safeName": "SinglyLinkedListNodeAndListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:SinglyLinkedListValue" + } + } + ] + }, + "type_commons:DoublyLinkedListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListValue", + "camelCase": { + "unsafeName": "doublyLinkedListValue", + "safeName": "doublyLinkedListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_value", + "safeName": "doubly_linked_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListValue", + "safeName": "DoublyLinkedListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "head", + "camelCase": { + "unsafeName": "head", + "safeName": "head" + }, + "snakeCase": { + "unsafeName": "head", + "safeName": "head" + }, + "screamingSnakeCase": { + "unsafeName": "HEAD", + "safeName": "HEAD" + }, + "pascalCase": { + "unsafeName": "Head", + "safeName": "Head" + } + }, + "wireValue": "head" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "nodes", + "camelCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "snakeCase": { + "unsafeName": "nodes", + "safeName": "nodes" + }, + "screamingSnakeCase": { + "unsafeName": "NODES", + "safeName": "NODES" + }, + "pascalCase": { + "unsafeName": "Nodes", + "safeName": "Nodes" + } + }, + "wireValue": "nodes" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:NodeId" + }, + "value": { + "_type": "named", + "value": "type_commons:DoublyLinkedListNodeValue" + } + } + } + ] + }, + "type_commons:DoublyLinkedListNodeValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListNodeValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeValue", + "safeName": "doublyLinkedListNodeValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_value", + "safeName": "doubly_linked_list_node_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeValue", + "safeName": "DoublyLinkedListNodeValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "val", + "camelCase": { + "unsafeName": "val", + "safeName": "val" + }, + "snakeCase": { + "unsafeName": "val", + "safeName": "val" + }, + "screamingSnakeCase": { + "unsafeName": "VAL", + "safeName": "VAL" + }, + "pascalCase": { + "unsafeName": "Val", + "safeName": "Val" + } + }, + "wireValue": "val" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + }, + "wireValue": "next" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + }, + { + "name": { + "name": { + "originalName": "prev", + "camelCase": { + "unsafeName": "prev", + "safeName": "prev" + }, + "snakeCase": { + "unsafeName": "prev", + "safeName": "prev" + }, + "screamingSnakeCase": { + "unsafeName": "PREV", + "safeName": "PREV" + }, + "pascalCase": { + "unsafeName": "Prev", + "safeName": "Prev" + } + }, + "wireValue": "prev" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:NodeId" + } + } + } + ] + }, + "type_commons:DoublyLinkedListNodeAndListValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DoublyLinkedListNodeAndListValue", + "camelCase": { + "unsafeName": "doublyLinkedListNodeAndListValue", + "safeName": "doublyLinkedListNodeAndListValue" + }, + "snakeCase": { + "unsafeName": "doubly_linked_list_node_and_list_value", + "safeName": "doubly_linked_list_node_and_list_value" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLY_LINKED_LIST_NODE_AND_LIST_VALUE", + "safeName": "DOUBLY_LINKED_LIST_NODE_AND_LIST_VALUE" + }, + "pascalCase": { + "unsafeName": "DoublyLinkedListNodeAndListValue", + "safeName": "DoublyLinkedListNodeAndListValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "nodeId", + "camelCase": { + "unsafeName": "nodeID", + "safeName": "nodeID" + }, + "snakeCase": { + "unsafeName": "node_id", + "safeName": "node_id" + }, + "screamingSnakeCase": { + "unsafeName": "NODE_ID", + "safeName": "NODE_ID" + }, + "pascalCase": { + "unsafeName": "NodeID", + "safeName": "NodeID" + } + }, + "wireValue": "nodeId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:NodeId" + } + }, + { + "name": { + "name": { + "originalName": "fullList", + "camelCase": { + "unsafeName": "fullList", + "safeName": "fullList" + }, + "snakeCase": { + "unsafeName": "full_list", + "safeName": "full_list" + }, + "screamingSnakeCase": { + "unsafeName": "FULL_LIST", + "safeName": "FULL_LIST" + }, + "pascalCase": { + "unsafeName": "FullList", + "safeName": "FullList" + } + }, + "wireValue": "fullList" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DoublyLinkedListValue" + } + } + ] + }, + "type_commons:DebugMapValue": { + "type": "object", + "declaration": { + "name": { + "originalName": "DebugMapValue", + "camelCase": { + "unsafeName": "debugMapValue", + "safeName": "debugMapValue" + }, + "snakeCase": { + "unsafeName": "debug_map_value", + "safeName": "debug_map_value" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_MAP_VALUE", + "safeName": "DEBUG_MAP_VALUE" + }, + "pascalCase": { + "unsafeName": "DebugMapValue", + "safeName": "DebugMapValue" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "keyValuePairs", + "camelCase": { + "unsafeName": "keyValuePairs", + "safeName": "keyValuePairs" + }, + "snakeCase": { + "unsafeName": "key_value_pairs", + "safeName": "key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_VALUE_PAIRS", + "safeName": "KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "KeyValuePairs", + "safeName": "KeyValuePairs" + } + }, + "wireValue": "keyValuePairs" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:DebugKeyValuePairs" + } + } + } + ] + }, + "type_commons:DebugKeyValuePairs": { + "type": "object", + "declaration": { + "name": { + "originalName": "DebugKeyValuePairs", + "camelCase": { + "unsafeName": "debugKeyValuePairs", + "safeName": "debugKeyValuePairs" + }, + "snakeCase": { + "unsafeName": "debug_key_value_pairs", + "safeName": "debug_key_value_pairs" + }, + "screamingSnakeCase": { + "unsafeName": "DEBUG_KEY_VALUE_PAIRS", + "safeName": "DEBUG_KEY_VALUE_PAIRS" + }, + "pascalCase": { + "unsafeName": "DebugKeyValuePairs", + "safeName": "DebugKeyValuePairs" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "wireValue": "key" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + }, + { + "name": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + ] + }, + "type_commons:TestCase": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "params", + "camelCase": { + "unsafeName": "params", + "safeName": "params" + }, + "snakeCase": { + "unsafeName": "params", + "safeName": "params" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMS", + "safeName": "PARAMS" + }, + "pascalCase": { + "unsafeName": "Params", + "safeName": "Params" + } + }, + "wireValue": "params" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + } + ] + }, + "type_commons:TestCaseWithExpectedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithExpectedResult", + "camelCase": { + "unsafeName": "testCaseWithExpectedResult", + "safeName": "testCaseWithExpectedResult" + }, + "snakeCase": { + "unsafeName": "test_case_with_expected_result", + "safeName": "test_case_with_expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_EXPECTED_RESULT", + "safeName": "TEST_CASE_WITH_EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "TestCaseWithExpectedResult", + "safeName": "TestCaseWithExpectedResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:TestCase" + } + }, + { + "name": { + "name": { + "originalName": "expectedResult", + "camelCase": { + "unsafeName": "expectedResult", + "safeName": "expectedResult" + }, + "snakeCase": { + "unsafeName": "expected_result", + "safeName": "expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_RESULT", + "safeName": "EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "ExpectedResult", + "safeName": "ExpectedResult" + } + }, + "wireValue": "expectedResult" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + ] + }, + "type_commons:FileInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfo", + "camelCase": { + "unsafeName": "fileInfo", + "safeName": "fileInfo" + }, + "snakeCase": { + "unsafeName": "file_info", + "safeName": "file_info" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO", + "safeName": "FILE_INFO" + }, + "pascalCase": { + "unsafeName": "FileInfo", + "safeName": "FileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_commons:Language": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + ], + "packagePath": [], + "file": { + "originalName": "commons", + "camelCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "snakeCase": { + "unsafeName": "commons", + "safeName": "commons" + }, + "screamingSnakeCase": { + "unsafeName": "COMMONS", + "safeName": "COMMONS" + }, + "pascalCase": { + "unsafeName": "Commons", + "safeName": "Commons" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "JAVA", + "camelCase": { + "unsafeName": "java", + "safeName": "java" + }, + "snakeCase": { + "unsafeName": "java", + "safeName": "java" + }, + "screamingSnakeCase": { + "unsafeName": "JAVA", + "safeName": "JAVA" + }, + "pascalCase": { + "unsafeName": "Java", + "safeName": "Java" + } + }, + "wireValue": "JAVA" + }, + { + "name": { + "originalName": "JAVASCRIPT", + "camelCase": { + "unsafeName": "javascript", + "safeName": "javascript" + }, + "snakeCase": { + "unsafeName": "javascript", + "safeName": "javascript" + }, + "screamingSnakeCase": { + "unsafeName": "JAVASCRIPT", + "safeName": "JAVASCRIPT" + }, + "pascalCase": { + "unsafeName": "Javascript", + "safeName": "Javascript" + } + }, + "wireValue": "JAVASCRIPT" + }, + { + "name": { + "originalName": "PYTHON", + "camelCase": { + "unsafeName": "python", + "safeName": "python" + }, + "snakeCase": { + "unsafeName": "python", + "safeName": "python" + }, + "screamingSnakeCase": { + "unsafeName": "PYTHON", + "safeName": "PYTHON" + }, + "pascalCase": { + "unsafeName": "Python", + "safeName": "Python" + } + }, + "wireValue": "PYTHON" + } + ] + }, + "type_lang-server:LangServerRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "LangServerRequest", + "camelCase": { + "unsafeName": "langServerRequest", + "safeName": "langServerRequest" + }, + "snakeCase": { + "unsafeName": "lang_server_request", + "safeName": "lang_server_request" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER_REQUEST", + "safeName": "LANG_SERVER_REQUEST" + }, + "pascalCase": { + "unsafeName": "LangServerRequest", + "safeName": "LangServerRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + ], + "packagePath": [], + "file": { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_lang-server:LangServerResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "LangServerResponse", + "camelCase": { + "unsafeName": "langServerResponse", + "safeName": "langServerResponse" + }, + "snakeCase": { + "unsafeName": "lang_server_response", + "safeName": "lang_server_response" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER_RESPONSE", + "safeName": "LANG_SERVER_RESPONSE" + }, + "pascalCase": { + "unsafeName": "LangServerResponse", + "safeName": "LangServerResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + ], + "packagePath": [], + "file": { + "originalName": "lang-server", + "camelCase": { + "unsafeName": "langServer", + "safeName": "langServer" + }, + "snakeCase": { + "unsafeName": "lang_server", + "safeName": "lang_server" + }, + "screamingSnakeCase": { + "unsafeName": "LANG_SERVER", + "safeName": "LANG_SERVER" + }, + "pascalCase": { + "unsafeName": "LangServer", + "safeName": "LangServer" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "response", + "camelCase": { + "unsafeName": "response", + "safeName": "response" + }, + "snakeCase": { + "unsafeName": "response", + "safeName": "response" + }, + "screamingSnakeCase": { + "unsafeName": "RESPONSE", + "safeName": "RESPONSE" + }, + "pascalCase": { + "unsafeName": "Response", + "safeName": "Response" + } + }, + "wireValue": "response" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + }, + "type_migration:MigrationStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "MigrationStatus", + "camelCase": { + "unsafeName": "migrationStatus", + "safeName": "migrationStatus" + }, + "snakeCase": { + "unsafeName": "migration_status", + "safeName": "migration_status" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION_STATUS", + "safeName": "MIGRATION_STATUS" + }, + "pascalCase": { + "unsafeName": "MigrationStatus", + "safeName": "MigrationStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "RUNNING", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "RUNNING" + }, + { + "name": { + "originalName": "FAILED", + "camelCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "snakeCase": { + "unsafeName": "failed", + "safeName": "failed" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED", + "safeName": "FAILED" + }, + "pascalCase": { + "unsafeName": "Failed", + "safeName": "Failed" + } + }, + "wireValue": "FAILED" + }, + { + "name": { + "originalName": "FINISHED", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "FINISHED" + } + ] + }, + "type_migration:Migration": { + "type": "object", + "declaration": { + "name": { + "originalName": "Migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_migration:MigrationStatus" + } + } + ] + }, + "type_playlist:PlaylistId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "PlaylistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_playlist:Playlist": { + "type": "object", + "declaration": { + "name": { + "originalName": "Playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + }, + { + "name": { + "name": { + "originalName": "playlist_id", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlist_id" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + }, + { + "name": { + "name": { + "originalName": "owner-id", + "camelCase": { + "unsafeName": "ownerID", + "safeName": "ownerID" + }, + "snakeCase": { + "unsafeName": "owner_id", + "safeName": "owner_id" + }, + "screamingSnakeCase": { + "unsafeName": "OWNER_ID", + "safeName": "OWNER_ID" + }, + "pascalCase": { + "unsafeName": "OwnerID", + "safeName": "OwnerID" + } + }, + "wireValue": "owner-id" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:UserId" + } + } + ] + }, + "type_playlist:PlaylistCreateRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "PlaylistCreateRequest", + "camelCase": { + "unsafeName": "playlistCreateRequest", + "safeName": "playlistCreateRequest" + }, + "snakeCase": { + "unsafeName": "playlist_create_request", + "safeName": "playlist_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_CREATE_REQUEST", + "safeName": "PLAYLIST_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "PlaylistCreateRequest", + "safeName": "PlaylistCreateRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + ] + }, + "type_playlist:UpdatePlaylistRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdatePlaylistRequest", + "camelCase": { + "unsafeName": "updatePlaylistRequest", + "safeName": "updatePlaylistRequest" + }, + "snakeCase": { + "unsafeName": "update_playlist_request", + "safeName": "update_playlist_request" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PLAYLIST_REQUEST", + "safeName": "UPDATE_PLAYLIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "UpdatePlaylistRequest", + "safeName": "UpdatePlaylistRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problems", + "camelCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "snakeCase": { + "unsafeName": "problems", + "safeName": "problems" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEMS", + "safeName": "PROBLEMS" + }, + "pascalCase": { + "unsafeName": "Problems", + "safeName": "Problems" + } + }, + "wireValue": "problems" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + ] + }, + "type_playlist:PlaylistIdNotFoundErrorBody": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "PlaylistIdNotFoundErrorBody", + "camelCase": { + "unsafeName": "playlistIDNotFoundErrorBody", + "safeName": "playlistIDNotFoundErrorBody" + }, + "snakeCase": { + "unsafeName": "playlist_id_not_found_error_body", + "safeName": "playlist_id_not_found_error_body" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID_NOT_FOUND_ERROR_BODY", + "safeName": "PLAYLIST_ID_NOT_FOUND_ERROR_BODY" + }, + "pascalCase": { + "unsafeName": "PlaylistIDNotFoundErrorBody", + "safeName": "PlaylistIDNotFoundErrorBody" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "playlistId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + }, + "discriminantValue": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "properties": null + } + } + }, + "type_playlist:ReservedKeywordEnum": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ReservedKeywordEnum", + "camelCase": { + "unsafeName": "reservedKeywordEnum", + "safeName": "reservedKeywordEnum" + }, + "snakeCase": { + "unsafeName": "reserved_keyword_enum", + "safeName": "reserved_keyword_enum" + }, + "screamingSnakeCase": { + "unsafeName": "RESERVED_KEYWORD_ENUM", + "safeName": "RESERVED_KEYWORD_ENUM" + }, + "pascalCase": { + "unsafeName": "ReservedKeywordEnum", + "safeName": "ReservedKeywordEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "is", + "camelCase": { + "unsafeName": "is", + "safeName": "is" + }, + "snakeCase": { + "unsafeName": "is", + "safeName": "is" + }, + "screamingSnakeCase": { + "unsafeName": "IS", + "safeName": "IS" + }, + "pascalCase": { + "unsafeName": "Is", + "safeName": "Is" + } + }, + "wireValue": "is" + }, + { + "name": { + "originalName": "as", + "camelCase": { + "unsafeName": "as", + "safeName": "as" + }, + "snakeCase": { + "unsafeName": "as", + "safeName": "as" + }, + "screamingSnakeCase": { + "unsafeName": "AS", + "safeName": "AS" + }, + "pascalCase": { + "unsafeName": "As", + "safeName": "As" + } + }, + "wireValue": "as" + } + ] + }, + "type_problem:ProblemInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfo", + "camelCase": { + "unsafeName": "problemInfo", + "safeName": "problemInfo" + }, + "snakeCase": { + "unsafeName": "problem_info", + "safeName": "problem_info" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO", + "safeName": "PROBLEM_INFO" + }, + "pascalCase": { + "unsafeName": "ProblemInfo", + "safeName": "ProblemInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + }, + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCaseWithExpectedResult" + } + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "supportsCustomTestCases", + "camelCase": { + "unsafeName": "supportsCustomTestCases", + "safeName": "supportsCustomTestCases" + }, + "snakeCase": { + "unsafeName": "supports_custom_test_cases", + "safeName": "supports_custom_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTS_CUSTOM_TEST_CASES", + "safeName": "SUPPORTS_CUSTOM_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "SupportsCustomTestCases", + "safeName": "SupportsCustomTestCases" + } + }, + "wireValue": "supportsCustomTestCases" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_problem:ProblemDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:ProblemDescriptionBoard" + } + } + } + ] + }, + "type_problem:ProblemDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ProblemDescriptionBoard", + "camelCase": { + "unsafeName": "problemDescriptionBoard", + "safeName": "problemDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "problem_description_board", + "safeName": "problem_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION_BOARD", + "safeName": "PROBLEM_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "ProblemDescriptionBoard", + "safeName": "ProblemDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "variable": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + }, + "discriminantValue": { + "name": { + "originalName": "variable", + "camelCase": { + "unsafeName": "variable", + "safeName": "variable" + }, + "snakeCase": { + "unsafeName": "variable", + "safeName": "variable" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE", + "safeName": "VARIABLE" + }, + "pascalCase": { + "unsafeName": "Variable", + "safeName": "Variable" + } + }, + "wireValue": "variable" + }, + "properties": null + }, + "testCaseId": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "properties": null + } + } + }, + "type_problem:ProblemFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemFiles", + "camelCase": { + "unsafeName": "problemFiles", + "safeName": "problemFiles" + }, + "snakeCase": { + "unsafeName": "problem_files", + "safeName": "problem_files" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_FILES", + "safeName": "PROBLEM_FILES" + }, + "pascalCase": { + "unsafeName": "ProblemFiles", + "safeName": "ProblemFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFile", + "camelCase": { + "unsafeName": "solutionFile", + "safeName": "solutionFile" + }, + "snakeCase": { + "unsafeName": "solution_file", + "safeName": "solution_file" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE", + "safeName": "SOLUTION_FILE" + }, + "pascalCase": { + "unsafeName": "SolutionFile", + "safeName": "SolutionFile" + } + }, + "wireValue": "solutionFile" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:FileInfo" + } + }, + { + "name": { + "name": { + "originalName": "readOnlyFiles", + "camelCase": { + "unsafeName": "readOnlyFiles", + "safeName": "readOnlyFiles" + }, + "snakeCase": { + "unsafeName": "read_only_files", + "safeName": "read_only_files" + }, + "screamingSnakeCase": { + "unsafeName": "READ_ONLY_FILES", + "safeName": "READ_ONLY_FILES" + }, + "pascalCase": { + "unsafeName": "ReadOnlyFiles", + "safeName": "ReadOnlyFiles" + } + }, + "wireValue": "readOnlyFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:FileInfo" + } + } + } + ] + }, + "type_problem:VariableTypeAndName": { + "type": "object", + "declaration": { + "name": { + "originalName": "VariableTypeAndName", + "camelCase": { + "unsafeName": "variableTypeAndName", + "safeName": "variableTypeAndName" + }, + "snakeCase": { + "unsafeName": "variable_type_and_name", + "safeName": "variable_type_and_name" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE_AND_NAME", + "safeName": "VARIABLE_TYPE_AND_NAME" + }, + "pascalCase": { + "unsafeName": "VariableTypeAndName", + "safeName": "VariableTypeAndName" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:CreateProblemRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequest", + "camelCase": { + "unsafeName": "createProblemRequest", + "safeName": "createProblemRequest" + }, + "snakeCase": { + "unsafeName": "create_problem_request", + "safeName": "create_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST", + "safeName": "CREATE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequest", + "safeName": "CreateProblemRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + }, + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCaseWithExpectedResult" + } + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:CreateProblemResponse": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CreateProblemResponse", + "camelCase": { + "unsafeName": "createProblemResponse", + "safeName": "createProblemResponse" + }, + "snakeCase": { + "unsafeName": "create_problem_response", + "safeName": "create_problem_response" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_RESPONSE", + "safeName": "CREATE_PROBLEM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "CreateProblemResponse", + "safeName": "CreateProblemResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "success": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + }, + "discriminantValue": { + "name": { + "originalName": "success", + "camelCase": { + "unsafeName": "success", + "safeName": "success" + }, + "snakeCase": { + "unsafeName": "success", + "safeName": "success" + }, + "screamingSnakeCase": { + "unsafeName": "SUCCESS", + "safeName": "SUCCESS" + }, + "pascalCase": { + "unsafeName": "Success", + "safeName": "Success" + } + }, + "wireValue": "success" + }, + "properties": null + }, + "error": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_problem:CreateProblemError" + }, + "discriminantValue": { + "name": { + "originalName": "error", + "camelCase": { + "unsafeName": "error", + "safeName": "error" + }, + "snakeCase": { + "unsafeName": "error", + "safeName": "error" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR", + "safeName": "ERROR" + }, + "pascalCase": { + "unsafeName": "Error", + "safeName": "Error" + } + }, + "wireValue": "error" + }, + "properties": null + } + } + }, + "type_problem:UpdateProblemResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UpdateProblemResponse", + "camelCase": { + "unsafeName": "updateProblemResponse", + "safeName": "updateProblemResponse" + }, + "snakeCase": { + "unsafeName": "update_problem_response", + "safeName": "update_problem_response" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PROBLEM_RESPONSE", + "safeName": "UPDATE_PROBLEM_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UpdateProblemResponse", + "safeName": "UpdateProblemResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_problem:CreateProblemError": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CreateProblemError", + "camelCase": { + "unsafeName": "createProblemError", + "safeName": "createProblemError" + }, + "snakeCase": { + "unsafeName": "create_problem_error", + "safeName": "create_problem_error" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_ERROR", + "safeName": "CREATE_PROBLEM_ERROR" + }, + "pascalCase": { + "unsafeName": "CreateProblemError", + "safeName": "CreateProblemError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "errorType", + "camelCase": { + "unsafeName": "errorType", + "safeName": "errorType" + }, + "snakeCase": { + "unsafeName": "error_type", + "safeName": "error_type" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_TYPE", + "safeName": "ERROR_TYPE" + }, + "pascalCase": { + "unsafeName": "ErrorType", + "safeName": "ErrorType" + } + }, + "wireValue": "_type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_problem:GenericCreateProblemError", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [] + } + } + }, + "type_problem:GenericCreateProblemError": { + "type": "object", + "declaration": { + "name": { + "originalName": "GenericCreateProblemError", + "camelCase": { + "unsafeName": "genericCreateProblemError", + "safeName": "genericCreateProblemError" + }, + "snakeCase": { + "unsafeName": "generic_create_problem_error", + "safeName": "generic_create_problem_error" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC_CREATE_PROBLEM_ERROR", + "safeName": "GENERIC_CREATE_PROBLEM_ERROR" + }, + "pascalCase": { + "unsafeName": "GenericCreateProblemError", + "safeName": "GenericCreateProblemError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "stacktrace", + "camelCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "snakeCase": { + "unsafeName": "stacktrace", + "safeName": "stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "STACKTRACE", + "safeName": "STACKTRACE" + }, + "pascalCase": { + "unsafeName": "Stacktrace", + "safeName": "Stacktrace" + } + }, + "wireValue": "stacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_problem:GetDefaultStarterFilesResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetDefaultStarterFilesResponse", + "camelCase": { + "unsafeName": "getDefaultStarterFilesResponse", + "safeName": "getDefaultStarterFilesResponse" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files_response", + "safeName": "get_default_starter_files_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES_RESPONSE", + "safeName": "GET_DEFAULT_STARTER_FILES_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFilesResponse", + "safeName": "GetDefaultStarterFilesResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_problem:ProblemFiles" + } + } + } + ] + }, + "type_submission:SubmissionId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SubmissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "UUID" + } + }, + "type_submission:ShareId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ShareId", + "camelCase": { + "unsafeName": "shareID", + "safeName": "shareID" + }, + "snakeCase": { + "unsafeName": "share_id", + "safeName": "share_id" + }, + "screamingSnakeCase": { + "unsafeName": "SHARE_ID", + "safeName": "SHARE_ID" + }, + "pascalCase": { + "unsafeName": "ShareID", + "safeName": "ShareID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_submission:SubmissionRequest": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionRequest", + "camelCase": { + "unsafeName": "submissionRequest", + "safeName": "submissionRequest" + }, + "snakeCase": { + "unsafeName": "submission_request", + "safeName": "submission_request" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_REQUEST", + "safeName": "SUBMISSION_REQUEST" + }, + "pascalCase": { + "unsafeName": "SubmissionRequest", + "safeName": "SubmissionRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "initializeProblemRequest": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InitializeProblemRequest", + "discriminantValue": { + "name": { + "originalName": "initializeProblemRequest", + "camelCase": { + "unsafeName": "initializeProblemRequest", + "safeName": "initializeProblemRequest" + }, + "snakeCase": { + "unsafeName": "initialize_problem_request", + "safeName": "initialize_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_PROBLEM_REQUEST", + "safeName": "INITIALIZE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeProblemRequest", + "safeName": "InitializeProblemRequest" + } + }, + "wireValue": "initializeProblemRequest" + }, + "properties": [] + }, + "initializeWorkspaceRequest": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "initializeWorkspaceRequest", + "camelCase": { + "unsafeName": "initializeWorkspaceRequest", + "safeName": "initializeWorkspaceRequest" + }, + "snakeCase": { + "unsafeName": "initialize_workspace_request", + "safeName": "initialize_workspace_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_WORKSPACE_REQUEST", + "safeName": "INITIALIZE_WORKSPACE_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeWorkspaceRequest", + "safeName": "InitializeWorkspaceRequest" + } + }, + "wireValue": "initializeWorkspaceRequest" + }, + "properties": null + }, + "submitV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:SubmitRequestV2", + "discriminantValue": { + "name": { + "originalName": "submitV2", + "camelCase": { + "unsafeName": "submitV2", + "safeName": "submitV2" + }, + "snakeCase": { + "unsafeName": "submit_v2", + "safeName": "submit_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMIT_V2", + "safeName": "SUBMIT_V2" + }, + "pascalCase": { + "unsafeName": "SubmitV2", + "safeName": "SubmitV2" + } + }, + "wireValue": "submitV2" + }, + "properties": [] + }, + "workspaceSubmit": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmitRequest", + "discriminantValue": { + "name": { + "originalName": "workspaceSubmit", + "camelCase": { + "unsafeName": "workspaceSubmit", + "safeName": "workspaceSubmit" + }, + "snakeCase": { + "unsafeName": "workspace_submit", + "safeName": "workspace_submit" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMIT", + "safeName": "WORKSPACE_SUBMIT" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmit", + "safeName": "WorkspaceSubmit" + } + }, + "wireValue": "workspaceSubmit" + }, + "properties": [] + }, + "stop": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:StopRequest", + "discriminantValue": { + "name": { + "originalName": "stop", + "camelCase": { + "unsafeName": "stop", + "safeName": "stop" + }, + "snakeCase": { + "unsafeName": "stop", + "safeName": "stop" + }, + "screamingSnakeCase": { + "unsafeName": "STOP", + "safeName": "STOP" + }, + "pascalCase": { + "unsafeName": "Stop", + "safeName": "Stop" + } + }, + "wireValue": "stop" + }, + "properties": [] + } + } + }, + "type_submission:InitializeProblemRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "InitializeProblemRequest", + "camelCase": { + "unsafeName": "initializeProblemRequest", + "safeName": "initializeProblemRequest" + }, + "snakeCase": { + "unsafeName": "initialize_problem_request", + "safeName": "initialize_problem_request" + }, + "screamingSnakeCase": { + "unsafeName": "INITIALIZE_PROBLEM_REQUEST", + "safeName": "INITIALIZE_PROBLEM_REQUEST" + }, + "pascalCase": { + "unsafeName": "InitializeProblemRequest", + "safeName": "InitializeProblemRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_submission:SubmitRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmitRequestV2", + "camelCase": { + "unsafeName": "submitRequestV2", + "safeName": "submitRequestV2" + }, + "snakeCase": { + "unsafeName": "submit_request_v2", + "safeName": "submit_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMIT_REQUEST_V2", + "safeName": "SUBMIT_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "SubmitRequestV2", + "safeName": "SubmitRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:WorkspaceSubmitRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmitRequest", + "camelCase": { + "unsafeName": "workspaceSubmitRequest", + "safeName": "workspaceSubmitRequest" + }, + "snakeCase": { + "unsafeName": "workspace_submit_request", + "safeName": "workspace_submit_request" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMIT_REQUEST", + "safeName": "WORKSPACE_SUBMIT_REQUEST" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmitRequest", + "safeName": "WorkspaceSubmitRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionFiles", + "camelCase": { + "unsafeName": "submissionFiles", + "safeName": "submissionFiles" + }, + "snakeCase": { + "unsafeName": "submission_files", + "safeName": "submission_files" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILES", + "safeName": "SUBMISSION_FILES" + }, + "pascalCase": { + "unsafeName": "SubmissionFiles", + "safeName": "SubmissionFiles" + } + }, + "wireValue": "submissionFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:SubmissionFileInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:SubmissionFileInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmissionFileInfo", + "camelCase": { + "unsafeName": "submissionFileInfo", + "safeName": "submissionFileInfo" + }, + "snakeCase": { + "unsafeName": "submission_file_info", + "safeName": "submission_file_info" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_FILE_INFO", + "safeName": "SUBMISSION_FILE_INFO" + }, + "pascalCase": { + "unsafeName": "SubmissionFileInfo", + "safeName": "SubmissionFileInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:SubmissionTypeEnum": { + "type": "enum", + "declaration": { + "name": { + "originalName": "SubmissionTypeEnum", + "camelCase": { + "unsafeName": "submissionTypeEnum", + "safeName": "submissionTypeEnum" + }, + "snakeCase": { + "unsafeName": "submission_type_enum", + "safeName": "submission_type_enum" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_ENUM", + "safeName": "SUBMISSION_TYPE_ENUM" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeEnum", + "safeName": "SubmissionTypeEnum" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "TEST", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "TEST" + } + ] + }, + "type_submission:StopRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "StopRequest", + "camelCase": { + "unsafeName": "stopRequest", + "safeName": "stopRequest" + }, + "snakeCase": { + "unsafeName": "stop_request", + "safeName": "stop_request" + }, + "screamingSnakeCase": { + "unsafeName": "STOP_REQUEST", + "safeName": "STOP_REQUEST" + }, + "pascalCase": { + "unsafeName": "StopRequest", + "safeName": "StopRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:SubmissionResponse": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionResponse", + "camelCase": { + "unsafeName": "submissionResponse", + "safeName": "submissionResponse" + }, + "snakeCase": { + "unsafeName": "submission_response", + "safeName": "submission_response" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_RESPONSE", + "safeName": "SUBMISSION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "SubmissionResponse", + "safeName": "SubmissionResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "serverInitialized": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "serverInitialized", + "camelCase": { + "unsafeName": "serverInitialized", + "safeName": "serverInitialized" + }, + "snakeCase": { + "unsafeName": "server_initialized", + "safeName": "server_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "SERVER_INITIALIZED", + "safeName": "SERVER_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "ServerInitialized", + "safeName": "ServerInitialized" + } + }, + "wireValue": "serverInitialized" + }, + "properties": null + }, + "problemInitialized": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + }, + "discriminantValue": { + "name": { + "originalName": "problemInitialized", + "camelCase": { + "unsafeName": "problemInitialized", + "safeName": "problemInitialized" + }, + "snakeCase": { + "unsafeName": "problem_initialized", + "safeName": "problem_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INITIALIZED", + "safeName": "PROBLEM_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "ProblemInitialized", + "safeName": "ProblemInitialized" + } + }, + "wireValue": "problemInitialized" + }, + "properties": null + }, + "workspaceInitialized": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "workspaceInitialized", + "camelCase": { + "unsafeName": "workspaceInitialized", + "safeName": "workspaceInitialized" + }, + "snakeCase": { + "unsafeName": "workspace_initialized", + "safeName": "workspace_initialized" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_INITIALIZED", + "safeName": "WORKSPACE_INITIALIZED" + }, + "pascalCase": { + "unsafeName": "WorkspaceInitialized", + "safeName": "WorkspaceInitialized" + } + }, + "wireValue": "workspaceInitialized" + }, + "properties": null + }, + "serverErrored": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "serverErrored", + "camelCase": { + "unsafeName": "serverErrored", + "safeName": "serverErrored" + }, + "snakeCase": { + "unsafeName": "server_errored", + "safeName": "server_errored" + }, + "screamingSnakeCase": { + "unsafeName": "SERVER_ERRORED", + "safeName": "SERVER_ERRORED" + }, + "pascalCase": { + "unsafeName": "ServerErrored", + "safeName": "ServerErrored" + } + }, + "wireValue": "serverErrored" + }, + "properties": [] + }, + "codeExecutionUpdate": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:CodeExecutionUpdate" + }, + "discriminantValue": { + "name": { + "originalName": "codeExecutionUpdate", + "camelCase": { + "unsafeName": "codeExecutionUpdate", + "safeName": "codeExecutionUpdate" + }, + "snakeCase": { + "unsafeName": "code_execution_update", + "safeName": "code_execution_update" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_EXECUTION_UPDATE", + "safeName": "CODE_EXECUTION_UPDATE" + }, + "pascalCase": { + "unsafeName": "CodeExecutionUpdate", + "safeName": "CodeExecutionUpdate" + } + }, + "wireValue": "codeExecutionUpdate" + }, + "properties": null + }, + "terminated": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TerminatedResponse", + "discriminantValue": { + "name": { + "originalName": "terminated", + "camelCase": { + "unsafeName": "terminated", + "safeName": "terminated" + }, + "snakeCase": { + "unsafeName": "terminated", + "safeName": "terminated" + }, + "screamingSnakeCase": { + "unsafeName": "TERMINATED", + "safeName": "TERMINATED" + }, + "pascalCase": { + "unsafeName": "Terminated", + "safeName": "Terminated" + } + }, + "wireValue": "terminated" + }, + "properties": [] + } + } + }, + "type_submission:CodeExecutionUpdate": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CodeExecutionUpdate", + "camelCase": { + "unsafeName": "codeExecutionUpdate", + "safeName": "codeExecutionUpdate" + }, + "snakeCase": { + "unsafeName": "code_execution_update", + "safeName": "code_execution_update" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_EXECUTION_UPDATE", + "safeName": "CODE_EXECUTION_UPDATE" + }, + "pascalCase": { + "unsafeName": "CodeExecutionUpdate", + "safeName": "CodeExecutionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "buildingExecutor": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:BuildingExecutorResponse", + "discriminantValue": { + "name": { + "originalName": "buildingExecutor", + "camelCase": { + "unsafeName": "buildingExecutor", + "safeName": "buildingExecutor" + }, + "snakeCase": { + "unsafeName": "building_executor", + "safeName": "building_executor" + }, + "screamingSnakeCase": { + "unsafeName": "BUILDING_EXECUTOR", + "safeName": "BUILDING_EXECUTOR" + }, + "pascalCase": { + "unsafeName": "BuildingExecutor", + "safeName": "BuildingExecutor" + } + }, + "wireValue": "buildingExecutor" + }, + "properties": [] + }, + "running": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RunningResponse", + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": [] + }, + "errored": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ErroredResponse", + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": [] + }, + "stopped": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:StoppedResponse", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": [] + }, + "graded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedResponse", + "discriminantValue": { + "name": { + "originalName": "graded", + "camelCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "snakeCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED", + "safeName": "GRADED" + }, + "pascalCase": { + "unsafeName": "Graded", + "safeName": "Graded" + } + }, + "wireValue": "graded" + }, + "properties": [] + }, + "gradedV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedResponseV2", + "discriminantValue": { + "name": { + "originalName": "gradedV2", + "camelCase": { + "unsafeName": "gradedV2", + "safeName": "gradedV2" + }, + "snakeCase": { + "unsafeName": "graded_v2", + "safeName": "graded_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_V2", + "safeName": "GRADED_V2" + }, + "pascalCase": { + "unsafeName": "GradedV2", + "safeName": "GradedV2" + } + }, + "wireValue": "gradedV2" + }, + "properties": [] + }, + "workspaceRan": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRanResponse", + "discriminantValue": { + "name": { + "originalName": "workspaceRan", + "camelCase": { + "unsafeName": "workspaceRan", + "safeName": "workspaceRan" + }, + "snakeCase": { + "unsafeName": "workspace_ran", + "safeName": "workspace_ran" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RAN", + "safeName": "WORKSPACE_RAN" + }, + "pascalCase": { + "unsafeName": "WorkspaceRan", + "safeName": "WorkspaceRan" + } + }, + "wireValue": "workspaceRan" + }, + "properties": [] + }, + "recording": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordingResponseNotification", + "discriminantValue": { + "name": { + "originalName": "recording", + "camelCase": { + "unsafeName": "recording", + "safeName": "recording" + }, + "snakeCase": { + "unsafeName": "recording", + "safeName": "recording" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDING", + "safeName": "RECORDING" + }, + "pascalCase": { + "unsafeName": "Recording", + "safeName": "Recording" + } + }, + "wireValue": "recording" + }, + "properties": [] + }, + "recorded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordedResponseNotification", + "discriminantValue": { + "name": { + "originalName": "recorded", + "camelCase": { + "unsafeName": "recorded", + "safeName": "recorded" + }, + "snakeCase": { + "unsafeName": "recorded", + "safeName": "recorded" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED", + "safeName": "RECORDED" + }, + "pascalCase": { + "unsafeName": "Recorded", + "safeName": "Recorded" + } + }, + "wireValue": "recorded" + }, + "properties": [] + }, + "invalidRequest": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InvalidRequestResponse", + "discriminantValue": { + "name": { + "originalName": "invalidRequest", + "camelCase": { + "unsafeName": "invalidRequest", + "safeName": "invalidRequest" + }, + "snakeCase": { + "unsafeName": "invalid_request", + "safeName": "invalid_request" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST", + "safeName": "INVALID_REQUEST" + }, + "pascalCase": { + "unsafeName": "InvalidRequest", + "safeName": "InvalidRequest" + } + }, + "wireValue": "invalidRequest" + }, + "properties": [] + }, + "finished": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:FinishedResponse", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": [] + } + } + }, + "type_submission:BuildingExecutorResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "BuildingExecutorResponse", + "camelCase": { + "unsafeName": "buildingExecutorResponse", + "safeName": "buildingExecutorResponse" + }, + "snakeCase": { + "unsafeName": "building_executor_response", + "safeName": "building_executor_response" + }, + "screamingSnakeCase": { + "unsafeName": "BUILDING_EXECUTOR_RESPONSE", + "safeName": "BUILDING_EXECUTOR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "BuildingExecutorResponse", + "safeName": "BuildingExecutorResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:RunningResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RunningResponse", + "camelCase": { + "unsafeName": "runningResponse", + "safeName": "runningResponse" + }, + "snakeCase": { + "unsafeName": "running_response", + "safeName": "running_response" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_RESPONSE", + "safeName": "RUNNING_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RunningResponse", + "safeName": "RunningResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "state", + "camelCase": { + "unsafeName": "state", + "safeName": "state" + }, + "snakeCase": { + "unsafeName": "state", + "safeName": "state" + }, + "screamingSnakeCase": { + "unsafeName": "STATE", + "safeName": "STATE" + }, + "pascalCase": { + "unsafeName": "State", + "safeName": "State" + } + }, + "wireValue": "state" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + } + } + ] + }, + "type_submission:RunningSubmissionState": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RunningSubmissionState", + "camelCase": { + "unsafeName": "runningSubmissionState", + "safeName": "runningSubmissionState" + }, + "snakeCase": { + "unsafeName": "running_submission_state", + "safeName": "running_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_SUBMISSION_STATE", + "safeName": "RUNNING_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "RunningSubmissionState", + "safeName": "RunningSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "QUEUEING_SUBMISSION", + "camelCase": { + "unsafeName": "queueingSubmission", + "safeName": "queueingSubmission" + }, + "snakeCase": { + "unsafeName": "queueing_submission", + "safeName": "queueing_submission" + }, + "screamingSnakeCase": { + "unsafeName": "QUEUEING_SUBMISSION", + "safeName": "QUEUEING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "QueueingSubmission", + "safeName": "QueueingSubmission" + } + }, + "wireValue": "QUEUEING_SUBMISSION" + }, + { + "name": { + "originalName": "KILLING_HISTORICAL_SUBMISSIONS", + "camelCase": { + "unsafeName": "killingHistoricalSubmissions", + "safeName": "killingHistoricalSubmissions" + }, + "snakeCase": { + "unsafeName": "killing_historical_submissions", + "safeName": "killing_historical_submissions" + }, + "screamingSnakeCase": { + "unsafeName": "KILLING_HISTORICAL_SUBMISSIONS", + "safeName": "KILLING_HISTORICAL_SUBMISSIONS" + }, + "pascalCase": { + "unsafeName": "KillingHistoricalSubmissions", + "safeName": "KillingHistoricalSubmissions" + } + }, + "wireValue": "KILLING_HISTORICAL_SUBMISSIONS" + }, + { + "name": { + "originalName": "WRITING_SUBMISSION_TO_FILE", + "camelCase": { + "unsafeName": "writingSubmissionToFile", + "safeName": "writingSubmissionToFile" + }, + "snakeCase": { + "unsafeName": "writing_submission_to_file", + "safeName": "writing_submission_to_file" + }, + "screamingSnakeCase": { + "unsafeName": "WRITING_SUBMISSION_TO_FILE", + "safeName": "WRITING_SUBMISSION_TO_FILE" + }, + "pascalCase": { + "unsafeName": "WritingSubmissionToFile", + "safeName": "WritingSubmissionToFile" + } + }, + "wireValue": "WRITING_SUBMISSION_TO_FILE" + }, + { + "name": { + "originalName": "COMPILING_SUBMISSION", + "camelCase": { + "unsafeName": "compilingSubmission", + "safeName": "compilingSubmission" + }, + "snakeCase": { + "unsafeName": "compiling_submission", + "safeName": "compiling_submission" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILING_SUBMISSION", + "safeName": "COMPILING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "CompilingSubmission", + "safeName": "CompilingSubmission" + } + }, + "wireValue": "COMPILING_SUBMISSION" + }, + { + "name": { + "originalName": "RUNNING_SUBMISSION", + "camelCase": { + "unsafeName": "runningSubmission", + "safeName": "runningSubmission" + }, + "snakeCase": { + "unsafeName": "running_submission", + "safeName": "running_submission" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_SUBMISSION", + "safeName": "RUNNING_SUBMISSION" + }, + "pascalCase": { + "unsafeName": "RunningSubmission", + "safeName": "RunningSubmission" + } + }, + "wireValue": "RUNNING_SUBMISSION" + } + ] + }, + "type_submission:ErroredResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ErroredResponse", + "camelCase": { + "unsafeName": "erroredResponse", + "safeName": "erroredResponse" + }, + "snakeCase": { + "unsafeName": "errored_response", + "safeName": "errored_response" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED_RESPONSE", + "safeName": "ERRORED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ErroredResponse", + "safeName": "ErroredResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "errorInfo", + "camelCase": { + "unsafeName": "errorInfo", + "safeName": "errorInfo" + }, + "snakeCase": { + "unsafeName": "error_info", + "safeName": "error_info" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_INFO", + "safeName": "ERROR_INFO" + }, + "pascalCase": { + "unsafeName": "ErrorInfo", + "safeName": "ErrorInfo" + } + }, + "wireValue": "errorInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + } + } + ] + }, + "type_submission:ErrorInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ErrorInfo", + "camelCase": { + "unsafeName": "errorInfo", + "safeName": "errorInfo" + }, + "snakeCase": { + "unsafeName": "error_info", + "safeName": "error_info" + }, + "screamingSnakeCase": { + "unsafeName": "ERROR_INFO", + "safeName": "ERROR_INFO" + }, + "pascalCase": { + "unsafeName": "ErrorInfo", + "safeName": "ErrorInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "compileError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:CompileError", + "discriminantValue": { + "name": { + "originalName": "compileError", + "camelCase": { + "unsafeName": "compileError", + "safeName": "compileError" + }, + "snakeCase": { + "unsafeName": "compile_error", + "safeName": "compile_error" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILE_ERROR", + "safeName": "COMPILE_ERROR" + }, + "pascalCase": { + "unsafeName": "CompileError", + "safeName": "CompileError" + } + }, + "wireValue": "compileError" + }, + "properties": [] + }, + "runtimeError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RuntimeError", + "discriminantValue": { + "name": { + "originalName": "runtimeError", + "camelCase": { + "unsafeName": "runtimeError", + "safeName": "runtimeError" + }, + "snakeCase": { + "unsafeName": "runtime_error", + "safeName": "runtime_error" + }, + "screamingSnakeCase": { + "unsafeName": "RUNTIME_ERROR", + "safeName": "RUNTIME_ERROR" + }, + "pascalCase": { + "unsafeName": "RuntimeError", + "safeName": "RuntimeError" + } + }, + "wireValue": "runtimeError" + }, + "properties": [] + }, + "internalError": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:InternalError", + "discriminantValue": { + "name": { + "originalName": "internalError", + "camelCase": { + "unsafeName": "internalError", + "safeName": "internalError" + }, + "snakeCase": { + "unsafeName": "internal_error", + "safeName": "internal_error" + }, + "screamingSnakeCase": { + "unsafeName": "INTERNAL_ERROR", + "safeName": "INTERNAL_ERROR" + }, + "pascalCase": { + "unsafeName": "InternalError", + "safeName": "InternalError" + } + }, + "wireValue": "internalError" + }, + "properties": [] + } + } + }, + "type_submission:CompileError": { + "type": "object", + "declaration": { + "name": { + "originalName": "CompileError", + "camelCase": { + "unsafeName": "compileError", + "safeName": "compileError" + }, + "snakeCase": { + "unsafeName": "compile_error", + "safeName": "compile_error" + }, + "screamingSnakeCase": { + "unsafeName": "COMPILE_ERROR", + "safeName": "COMPILE_ERROR" + }, + "pascalCase": { + "unsafeName": "CompileError", + "safeName": "CompileError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:RuntimeError": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuntimeError", + "camelCase": { + "unsafeName": "runtimeError", + "safeName": "runtimeError" + }, + "snakeCase": { + "unsafeName": "runtime_error", + "safeName": "runtime_error" + }, + "screamingSnakeCase": { + "unsafeName": "RUNTIME_ERROR", + "safeName": "RUNTIME_ERROR" + }, + "pascalCase": { + "unsafeName": "RuntimeError", + "safeName": "RuntimeError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "message", + "camelCase": { + "unsafeName": "message", + "safeName": "message" + }, + "snakeCase": { + "unsafeName": "message", + "safeName": "message" + }, + "screamingSnakeCase": { + "unsafeName": "MESSAGE", + "safeName": "MESSAGE" + }, + "pascalCase": { + "unsafeName": "Message", + "safeName": "Message" + } + }, + "wireValue": "message" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:InternalError": { + "type": "object", + "declaration": { + "name": { + "originalName": "InternalError", + "camelCase": { + "unsafeName": "internalError", + "safeName": "internalError" + }, + "snakeCase": { + "unsafeName": "internal_error", + "safeName": "internal_error" + }, + "screamingSnakeCase": { + "unsafeName": "INTERNAL_ERROR", + "safeName": "INTERNAL_ERROR" + }, + "pascalCase": { + "unsafeName": "InternalError", + "safeName": "InternalError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "wireValue": "exceptionInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + ] + }, + "type_submission:StoppedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StoppedResponse", + "camelCase": { + "unsafeName": "stoppedResponse", + "safeName": "stoppedResponse" + }, + "snakeCase": { + "unsafeName": "stopped_response", + "safeName": "stopped_response" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED_RESPONSE", + "safeName": "STOPPED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StoppedResponse", + "safeName": "StoppedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:WorkspaceRanResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceRanResponse", + "camelCase": { + "unsafeName": "workspaceRanResponse", + "safeName": "workspaceRanResponse" + }, + "snakeCase": { + "unsafeName": "workspace_ran_response", + "safeName": "workspace_ran_response" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RAN_RESPONSE", + "safeName": "WORKSPACE_RAN_RESPONSE" + }, + "pascalCase": { + "unsafeName": "WorkspaceRanResponse", + "safeName": "WorkspaceRanResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "runDetails", + "camelCase": { + "unsafeName": "runDetails", + "safeName": "runDetails" + }, + "snakeCase": { + "unsafeName": "run_details", + "safeName": "run_details" + }, + "screamingSnakeCase": { + "unsafeName": "RUN_DETAILS", + "safeName": "RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "RunDetails", + "safeName": "RunDetails" + } + }, + "wireValue": "runDetails" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceRunDetails" + } + } + ] + }, + "type_submission:WorkspaceRunDetails": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceRunDetails", + "camelCase": { + "unsafeName": "workspaceRunDetails", + "safeName": "workspaceRunDetails" + }, + "snakeCase": { + "unsafeName": "workspace_run_details", + "safeName": "workspace_run_details" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RUN_DETAILS", + "safeName": "WORKSPACE_RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "WorkspaceRunDetails", + "safeName": "WorkspaceRunDetails" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionInfo" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:GradedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedResponse", + "camelCase": { + "unsafeName": "gradedResponse", + "safeName": "gradedResponse" + }, + "snakeCase": { + "unsafeName": "graded_response", + "safeName": "graded_response" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_RESPONSE", + "safeName": "GRADED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GradedResponse", + "safeName": "GradedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + } + } + ] + }, + "type_submission:GradedResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedResponseV2", + "camelCase": { + "unsafeName": "gradedResponseV2", + "safeName": "gradedResponseV2" + }, + "snakeCase": { + "unsafeName": "graded_response_v2", + "safeName": "graded_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_RESPONSE_V2", + "safeName": "GRADED_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "GradedResponseV2", + "safeName": "GradedResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCases", + "camelCase": { + "unsafeName": "testCases", + "safeName": "testCases" + }, + "snakeCase": { + "unsafeName": "test_cases", + "safeName": "test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASES", + "safeName": "TEST_CASES" + }, + "pascalCase": { + "unsafeName": "TestCases", + "safeName": "TestCases" + } + }, + "wireValue": "testCases" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + }, + "value": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + } + ] + }, + "type_submission:TestCaseGrade": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseGrade", + "camelCase": { + "unsafeName": "testCaseGrade", + "safeName": "testCaseGrade" + }, + "snakeCase": { + "unsafeName": "test_case_grade", + "safeName": "test_case_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_GRADE", + "safeName": "TEST_CASE_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseGrade", + "safeName": "TestCaseGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "hidden": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseHiddenGrade", + "discriminantValue": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "properties": [] + }, + "nonHidden": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseNonHiddenGrade", + "discriminantValue": { + "name": { + "originalName": "nonHidden", + "camelCase": { + "unsafeName": "nonHidden", + "safeName": "nonHidden" + }, + "snakeCase": { + "unsafeName": "non_hidden", + "safeName": "non_hidden" + }, + "screamingSnakeCase": { + "unsafeName": "NON_HIDDEN", + "safeName": "NON_HIDDEN" + }, + "pascalCase": { + "unsafeName": "NonHidden", + "safeName": "NonHidden" + } + }, + "wireValue": "nonHidden" + }, + "properties": [] + } + } + }, + "type_submission:TestCaseHiddenGrade": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseHiddenGrade", + "camelCase": { + "unsafeName": "testCaseHiddenGrade", + "safeName": "testCaseHiddenGrade" + }, + "snakeCase": { + "unsafeName": "test_case_hidden_grade", + "safeName": "test_case_hidden_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_HIDDEN_GRADE", + "safeName": "TEST_CASE_HIDDEN_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseHiddenGrade", + "safeName": "TestCaseHiddenGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_submission:TestCaseNonHiddenGrade": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseNonHiddenGrade", + "camelCase": { + "unsafeName": "testCaseNonHiddenGrade", + "safeName": "testCaseNonHiddenGrade" + }, + "snakeCase": { + "unsafeName": "test_case_non_hidden_grade", + "safeName": "test_case_non_hidden_grade" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_NON_HIDDEN_GRADE", + "safeName": "TEST_CASE_NON_HIDDEN_GRADE" + }, + "pascalCase": { + "unsafeName": "TestCaseNonHiddenGrade", + "safeName": "TestCaseNonHiddenGrade" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "actualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "wireValue": "actualResult" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExceptionV2" + } + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:RecordedResponseNotification": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordedResponseNotification", + "camelCase": { + "unsafeName": "recordedResponseNotification", + "safeName": "recordedResponseNotification" + }, + "snakeCase": { + "unsafeName": "recorded_response_notification", + "safeName": "recorded_response_notification" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_RESPONSE_NOTIFICATION", + "safeName": "RECORDED_RESPONSE_NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "RecordedResponseNotification", + "safeName": "RecordedResponseNotification" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:RecordingResponseNotification": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordingResponseNotification", + "camelCase": { + "unsafeName": "recordingResponseNotification", + "safeName": "recordingResponseNotification" + }, + "snakeCase": { + "unsafeName": "recording_response_notification", + "safeName": "recording_response_notification" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDING_RESPONSE_NOTIFICATION", + "safeName": "RECORDING_RESPONSE_NOTIFICATION" + }, + "pascalCase": { + "unsafeName": "RecordingResponseNotification", + "safeName": "RecordingResponseNotification" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "lightweightStackInfo", + "camelCase": { + "unsafeName": "lightweightStackInfo", + "safeName": "lightweightStackInfo" + }, + "snakeCase": { + "unsafeName": "lightweight_stack_info", + "safeName": "lightweight_stack_info" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_STACK_INFO", + "safeName": "LIGHTWEIGHT_STACK_INFO" + }, + "pascalCase": { + "unsafeName": "LightweightStackInfo", + "safeName": "LightweightStackInfo" + } + }, + "wireValue": "lightweightStackInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:LightweightStackframeInformation" + } + }, + { + "name": { + "name": { + "originalName": "tracedFile", + "camelCase": { + "unsafeName": "tracedFile", + "safeName": "tracedFile" + }, + "snakeCase": { + "unsafeName": "traced_file", + "safeName": "traced_file" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_FILE", + "safeName": "TRACED_FILE" + }, + "pascalCase": { + "unsafeName": "TracedFile", + "safeName": "TracedFile" + } + }, + "wireValue": "tracedFile" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:TracedFile" + } + } + } + ] + }, + "type_submission:LightweightStackframeInformation": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightStackframeInformation", + "camelCase": { + "unsafeName": "lightweightStackframeInformation", + "safeName": "lightweightStackframeInformation" + }, + "snakeCase": { + "unsafeName": "lightweight_stackframe_information", + "safeName": "lightweight_stackframe_information" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_STACKFRAME_INFORMATION", + "safeName": "LIGHTWEIGHT_STACKFRAME_INFORMATION" + }, + "pascalCase": { + "unsafeName": "LightweightStackframeInformation", + "safeName": "LightweightStackframeInformation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "numStackFrames", + "camelCase": { + "unsafeName": "numStackFrames", + "safeName": "numStackFrames" + }, + "snakeCase": { + "unsafeName": "num_stack_frames", + "safeName": "num_stack_frames" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_STACK_FRAMES", + "safeName": "NUM_STACK_FRAMES" + }, + "pascalCase": { + "unsafeName": "NumStackFrames", + "safeName": "NumStackFrames" + } + }, + "wireValue": "numStackFrames" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "topStackFrameMethodName", + "camelCase": { + "unsafeName": "topStackFrameMethodName", + "safeName": "topStackFrameMethodName" + }, + "snakeCase": { + "unsafeName": "top_stack_frame_method_name", + "safeName": "top_stack_frame_method_name" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_STACK_FRAME_METHOD_NAME", + "safeName": "TOP_STACK_FRAME_METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "TopStackFrameMethodName", + "safeName": "TopStackFrameMethodName" + } + }, + "wireValue": "topStackFrameMethodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TestCaseResultWithStdout": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseResultWithStdout", + "camelCase": { + "unsafeName": "testCaseResultWithStdout", + "safeName": "testCaseResultWithStdout" + }, + "snakeCase": { + "unsafeName": "test_case_result_with_stdout", + "safeName": "test_case_result_with_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_RESULT_WITH_STDOUT", + "safeName": "TEST_CASE_RESULT_WITH_STDOUT" + }, + "pascalCase": { + "unsafeName": "TestCaseResultWithStdout", + "safeName": "TestCaseResultWithStdout" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResult" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TestCaseResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseResult", + "camelCase": { + "unsafeName": "testCaseResult", + "safeName": "testCaseResult" + }, + "snakeCase": { + "unsafeName": "test_case_result", + "safeName": "test_case_result" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_RESULT", + "safeName": "TEST_CASE_RESULT" + }, + "pascalCase": { + "unsafeName": "TestCaseResult", + "safeName": "TestCaseResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedResult", + "camelCase": { + "unsafeName": "expectedResult", + "safeName": "expectedResult" + }, + "snakeCase": { + "unsafeName": "expected_result", + "safeName": "expected_result" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_RESULT", + "safeName": "EXPECTED_RESULT" + }, + "pascalCase": { + "unsafeName": "ExpectedResult", + "safeName": "ExpectedResult" + } + }, + "wireValue": "expectedResult" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + } + }, + { + "name": { + "name": { + "originalName": "actualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "wireValue": "actualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ActualResult" + } + }, + { + "name": { + "name": { + "originalName": "passed", + "camelCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "snakeCase": { + "unsafeName": "passed", + "safeName": "passed" + }, + "screamingSnakeCase": { + "unsafeName": "PASSED", + "safeName": "PASSED" + }, + "pascalCase": { + "unsafeName": "Passed", + "safeName": "Passed" + } + }, + "wireValue": "passed" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_submission:ActualResult": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ActualResult", + "camelCase": { + "unsafeName": "actualResult", + "safeName": "actualResult" + }, + "snakeCase": { + "unsafeName": "actual_result", + "safeName": "actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT", + "safeName": "ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "ActualResult", + "safeName": "ActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "value": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_commons:VariableValue" + }, + "discriminantValue": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "properties": null + }, + "exception": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "exception", + "camelCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "snakeCase": { + "unsafeName": "exception", + "safeName": "exception" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION", + "safeName": "EXCEPTION" + }, + "pascalCase": { + "unsafeName": "Exception", + "safeName": "Exception" + } + }, + "wireValue": "exception" + }, + "properties": [] + }, + "exceptionV2": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ExceptionV2" + }, + "discriminantValue": { + "name": { + "originalName": "exceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "wireValue": "exceptionV2" + }, + "properties": null + } + } + }, + "type_submission:ExceptionV2": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "ExceptionV2", + "camelCase": { + "unsafeName": "exceptionV2", + "safeName": "exceptionV2" + }, + "snakeCase": { + "unsafeName": "exception_v2", + "safeName": "exception_v2" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_V2", + "safeName": "EXCEPTION_V2" + }, + "pascalCase": { + "unsafeName": "ExceptionV2", + "safeName": "ExceptionV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "generic": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:ExceptionInfo", + "discriminantValue": { + "name": { + "originalName": "generic", + "camelCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "snakeCase": { + "unsafeName": "generic", + "safeName": "generic" + }, + "screamingSnakeCase": { + "unsafeName": "GENERIC", + "safeName": "GENERIC" + }, + "pascalCase": { + "unsafeName": "Generic", + "safeName": "Generic" + } + }, + "wireValue": "generic" + }, + "properties": [] + }, + "timeout": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "timeout", + "camelCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "snakeCase": { + "unsafeName": "timeout", + "safeName": "timeout" + }, + "screamingSnakeCase": { + "unsafeName": "TIMEOUT", + "safeName": "TIMEOUT" + }, + "pascalCase": { + "unsafeName": "Timeout", + "safeName": "Timeout" + } + }, + "wireValue": "timeout" + }, + "properties": null + } + } + }, + "type_submission:ExceptionInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExceptionInfo", + "camelCase": { + "unsafeName": "exceptionInfo", + "safeName": "exceptionInfo" + }, + "snakeCase": { + "unsafeName": "exception_info", + "safeName": "exception_info" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_INFO", + "safeName": "EXCEPTION_INFO" + }, + "pascalCase": { + "unsafeName": "ExceptionInfo", + "safeName": "ExceptionInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "exceptionType", + "camelCase": { + "unsafeName": "exceptionType", + "safeName": "exceptionType" + }, + "snakeCase": { + "unsafeName": "exception_type", + "safeName": "exception_type" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_TYPE", + "safeName": "EXCEPTION_TYPE" + }, + "pascalCase": { + "unsafeName": "ExceptionType", + "safeName": "ExceptionType" + } + }, + "wireValue": "exceptionType" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionMessage", + "camelCase": { + "unsafeName": "exceptionMessage", + "safeName": "exceptionMessage" + }, + "snakeCase": { + "unsafeName": "exception_message", + "safeName": "exception_message" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_MESSAGE", + "safeName": "EXCEPTION_MESSAGE" + }, + "pascalCase": { + "unsafeName": "ExceptionMessage", + "safeName": "ExceptionMessage" + } + }, + "wireValue": "exceptionMessage" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "exceptionStacktrace", + "camelCase": { + "unsafeName": "exceptionStacktrace", + "safeName": "exceptionStacktrace" + }, + "snakeCase": { + "unsafeName": "exception_stacktrace", + "safeName": "exception_stacktrace" + }, + "screamingSnakeCase": { + "unsafeName": "EXCEPTION_STACKTRACE", + "safeName": "EXCEPTION_STACKTRACE" + }, + "pascalCase": { + "unsafeName": "ExceptionStacktrace", + "safeName": "ExceptionStacktrace" + } + }, + "wireValue": "exceptionStacktrace" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:InvalidRequestResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "InvalidRequestResponse", + "camelCase": { + "unsafeName": "invalidRequestResponse", + "safeName": "invalidRequestResponse" + }, + "snakeCase": { + "unsafeName": "invalid_request_response", + "safeName": "invalid_request_response" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST_RESPONSE", + "safeName": "INVALID_REQUEST_RESPONSE" + }, + "pascalCase": { + "unsafeName": "InvalidRequestResponse", + "safeName": "InvalidRequestResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "request", + "camelCase": { + "unsafeName": "request", + "safeName": "request" + }, + "snakeCase": { + "unsafeName": "request", + "safeName": "request" + }, + "screamingSnakeCase": { + "unsafeName": "REQUEST", + "safeName": "REQUEST" + }, + "pascalCase": { + "unsafeName": "Request", + "safeName": "Request" + } + }, + "wireValue": "request" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionRequest" + } + }, + { + "name": { + "name": { + "originalName": "cause", + "camelCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "snakeCase": { + "unsafeName": "cause", + "safeName": "cause" + }, + "screamingSnakeCase": { + "unsafeName": "CAUSE", + "safeName": "CAUSE" + }, + "pascalCase": { + "unsafeName": "Cause", + "safeName": "Cause" + } + }, + "wireValue": "cause" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:InvalidRequestCause" + } + } + ] + }, + "type_submission:InvalidRequestCause": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "InvalidRequestCause", + "camelCase": { + "unsafeName": "invalidRequestCause", + "safeName": "invalidRequestCause" + }, + "snakeCase": { + "unsafeName": "invalid_request_cause", + "safeName": "invalid_request_cause" + }, + "screamingSnakeCase": { + "unsafeName": "INVALID_REQUEST_CAUSE", + "safeName": "INVALID_REQUEST_CAUSE" + }, + "pascalCase": { + "unsafeName": "InvalidRequestCause", + "safeName": "InvalidRequestCause" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "submissionIdNotFound": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:SubmissionIdNotFound", + "discriminantValue": { + "name": { + "originalName": "submissionIdNotFound", + "camelCase": { + "unsafeName": "submissionIDNotFound", + "safeName": "submissionIDNotFound" + }, + "snakeCase": { + "unsafeName": "submission_id_not_found", + "safeName": "submission_id_not_found" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID_NOT_FOUND", + "safeName": "SUBMISSION_ID_NOT_FOUND" + }, + "pascalCase": { + "unsafeName": "SubmissionIDNotFound", + "safeName": "SubmissionIDNotFound" + } + }, + "wireValue": "submissionIdNotFound" + }, + "properties": [] + }, + "customTestCasesUnsupported": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:CustomTestCasesUnsupported", + "discriminantValue": { + "name": { + "originalName": "customTestCasesUnsupported", + "camelCase": { + "unsafeName": "customTestCasesUnsupported", + "safeName": "customTestCasesUnsupported" + }, + "snakeCase": { + "unsafeName": "custom_test_cases_unsupported", + "safeName": "custom_test_cases_unsupported" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES_UNSUPPORTED", + "safeName": "CUSTOM_TEST_CASES_UNSUPPORTED" + }, + "pascalCase": { + "unsafeName": "CustomTestCasesUnsupported", + "safeName": "CustomTestCasesUnsupported" + } + }, + "wireValue": "customTestCasesUnsupported" + }, + "properties": [] + }, + "unexpectedLanguage": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:UnexpectedLanguageError", + "discriminantValue": { + "name": { + "originalName": "unexpectedLanguage", + "camelCase": { + "unsafeName": "unexpectedLanguage", + "safeName": "unexpectedLanguage" + }, + "snakeCase": { + "unsafeName": "unexpected_language", + "safeName": "unexpected_language" + }, + "screamingSnakeCase": { + "unsafeName": "UNEXPECTED_LANGUAGE", + "safeName": "UNEXPECTED_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "UnexpectedLanguage", + "safeName": "UnexpectedLanguage" + } + }, + "wireValue": "unexpectedLanguage" + }, + "properties": [] + } + } + }, + "type_submission:ExistingSubmissionExecuting": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExistingSubmissionExecuting", + "camelCase": { + "unsafeName": "existingSubmissionExecuting", + "safeName": "existingSubmissionExecuting" + }, + "snakeCase": { + "unsafeName": "existing_submission_executing", + "safeName": "existing_submission_executing" + }, + "screamingSnakeCase": { + "unsafeName": "EXISTING_SUBMISSION_EXECUTING", + "safeName": "EXISTING_SUBMISSION_EXECUTING" + }, + "pascalCase": { + "unsafeName": "ExistingSubmissionExecuting", + "safeName": "ExistingSubmissionExecuting" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:SubmissionIdNotFound": { + "type": "object", + "declaration": { + "name": { + "originalName": "SubmissionIdNotFound", + "camelCase": { + "unsafeName": "submissionIDNotFound", + "safeName": "submissionIDNotFound" + }, + "snakeCase": { + "unsafeName": "submission_id_not_found", + "safeName": "submission_id_not_found" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID_NOT_FOUND", + "safeName": "SUBMISSION_ID_NOT_FOUND" + }, + "pascalCase": { + "unsafeName": "SubmissionIDNotFound", + "safeName": "SubmissionIDNotFound" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "missingSubmissionId", + "camelCase": { + "unsafeName": "missingSubmissionID", + "safeName": "missingSubmissionID" + }, + "snakeCase": { + "unsafeName": "missing_submission_id", + "safeName": "missing_submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "MISSING_SUBMISSION_ID", + "safeName": "MISSING_SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "MissingSubmissionID", + "safeName": "MissingSubmissionID" + } + }, + "wireValue": "missingSubmissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:CustomTestCasesUnsupported": { + "type": "object", + "declaration": { + "name": { + "originalName": "CustomTestCasesUnsupported", + "camelCase": { + "unsafeName": "customTestCasesUnsupported", + "safeName": "customTestCasesUnsupported" + }, + "snakeCase": { + "unsafeName": "custom_test_cases_unsupported", + "safeName": "custom_test_cases_unsupported" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES_UNSUPPORTED", + "safeName": "CUSTOM_TEST_CASES_UNSUPPORTED" + }, + "pascalCase": { + "unsafeName": "CustomTestCasesUnsupported", + "safeName": "CustomTestCasesUnsupported" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:UnexpectedLanguageError": { + "type": "object", + "declaration": { + "name": { + "originalName": "UnexpectedLanguageError", + "camelCase": { + "unsafeName": "unexpectedLanguageError", + "safeName": "unexpectedLanguageError" + }, + "snakeCase": { + "unsafeName": "unexpected_language_error", + "safeName": "unexpected_language_error" + }, + "screamingSnakeCase": { + "unsafeName": "UNEXPECTED_LANGUAGE_ERROR", + "safeName": "UNEXPECTED_LANGUAGE_ERROR" + }, + "pascalCase": { + "unsafeName": "UnexpectedLanguageError", + "safeName": "UnexpectedLanguageError" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedLanguage", + "camelCase": { + "unsafeName": "expectedLanguage", + "safeName": "expectedLanguage" + }, + "snakeCase": { + "unsafeName": "expected_language", + "safeName": "expected_language" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_LANGUAGE", + "safeName": "EXPECTED_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ExpectedLanguage", + "safeName": "ExpectedLanguage" + } + }, + "wireValue": "expectedLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "actualLanguage", + "camelCase": { + "unsafeName": "actualLanguage", + "safeName": "actualLanguage" + }, + "snakeCase": { + "unsafeName": "actual_language", + "safeName": "actual_language" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_LANGUAGE", + "safeName": "ACTUAL_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "ActualLanguage", + "safeName": "ActualLanguage" + } + }, + "wireValue": "actualLanguage" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + } + ] + }, + "type_submission:TerminatedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TerminatedResponse", + "camelCase": { + "unsafeName": "terminatedResponse", + "safeName": "terminatedResponse" + }, + "snakeCase": { + "unsafeName": "terminated_response", + "safeName": "terminated_response" + }, + "screamingSnakeCase": { + "unsafeName": "TERMINATED_RESPONSE", + "safeName": "TERMINATED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TerminatedResponse", + "safeName": "TerminatedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [] + }, + "type_submission:FinishedResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "FinishedResponse", + "camelCase": { + "unsafeName": "finishedResponse", + "safeName": "finishedResponse" + }, + "snakeCase": { + "unsafeName": "finished_response", + "safeName": "finished_response" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED_RESPONSE", + "safeName": "FINISHED_RESPONSE" + }, + "pascalCase": { + "unsafeName": "FinishedResponse", + "safeName": "FinishedResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ] + }, + "type_submission:StdoutResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StdoutResponse", + "camelCase": { + "unsafeName": "stdoutResponse", + "safeName": "stdoutResponse" + }, + "snakeCase": { + "unsafeName": "stdout_response", + "safeName": "stdout_response" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT_RESPONSE", + "safeName": "STDOUT_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StdoutResponse", + "safeName": "StdoutResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:StderrResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "StderrResponse", + "camelCase": { + "unsafeName": "stderrResponse", + "safeName": "stderrResponse" + }, + "snakeCase": { + "unsafeName": "stderr_response", + "safeName": "stderr_response" + }, + "screamingSnakeCase": { + "unsafeName": "STDERR_RESPONSE", + "safeName": "STDERR_RESPONSE" + }, + "pascalCase": { + "unsafeName": "StderrResponse", + "safeName": "StderrResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "stderr", + "camelCase": { + "unsafeName": "stderr", + "safeName": "stderr" + }, + "snakeCase": { + "unsafeName": "stderr", + "safeName": "stderr" + }, + "screamingSnakeCase": { + "unsafeName": "STDERR", + "safeName": "STDERR" + }, + "pascalCase": { + "unsafeName": "Stderr", + "safeName": "Stderr" + } + }, + "wireValue": "stderr" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:TraceResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponse", + "camelCase": { + "unsafeName": "traceResponse", + "safeName": "traceResponse" + }, + "snakeCase": { + "unsafeName": "trace_response", + "safeName": "trace_response" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSE", + "safeName": "TRACE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "TraceResponse", + "safeName": "TraceResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "returnValue", + "camelCase": { + "unsafeName": "returnValue", + "safeName": "returnValue" + }, + "snakeCase": { + "unsafeName": "return_value", + "safeName": "return_value" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_VALUE", + "safeName": "RETURN_VALUE" + }, + "pascalCase": { + "unsafeName": "ReturnValue", + "safeName": "ReturnValue" + } + }, + "wireValue": "returnValue" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "wireValue": "expressionLocation" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExpressionLocation" + } + } + }, + { + "name": { + "name": { + "originalName": "stack", + "camelCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "snakeCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "screamingSnakeCase": { + "unsafeName": "STACK", + "safeName": "STACK" + }, + "pascalCase": { + "unsafeName": "Stack", + "safeName": "Stack" + } + }, + "wireValue": "stack" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:StackInformation" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:TraceResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponseV2", + "camelCase": { + "unsafeName": "traceResponseV2", + "safeName": "traceResponseV2" + }, + "snakeCase": { + "unsafeName": "trace_response_v2", + "safeName": "trace_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSE_V2", + "safeName": "TRACE_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "TraceResponseV2", + "safeName": "TraceResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TracedFile" + } + }, + { + "name": { + "name": { + "originalName": "returnValue", + "camelCase": { + "unsafeName": "returnValue", + "safeName": "returnValue" + }, + "snakeCase": { + "unsafeName": "return_value", + "safeName": "return_value" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_VALUE", + "safeName": "RETURN_VALUE" + }, + "pascalCase": { + "unsafeName": "ReturnValue", + "safeName": "ReturnValue" + } + }, + "wireValue": "returnValue" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "wireValue": "expressionLocation" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:ExpressionLocation" + } + } + }, + { + "name": { + "name": { + "originalName": "stack", + "camelCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "snakeCase": { + "unsafeName": "stack", + "safeName": "stack" + }, + "screamingSnakeCase": { + "unsafeName": "STACK", + "safeName": "STACK" + }, + "pascalCase": { + "unsafeName": "Stack", + "safeName": "Stack" + } + }, + "wireValue": "stack" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:StackInformation" + } + }, + { + "name": { + "name": { + "originalName": "stdout", + "camelCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "snakeCase": { + "unsafeName": "stdout", + "safeName": "stdout" + }, + "screamingSnakeCase": { + "unsafeName": "STDOUT", + "safeName": "STDOUT" + }, + "pascalCase": { + "unsafeName": "Stdout", + "safeName": "Stdout" + } + }, + "wireValue": "stdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:TracedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "TracedFile", + "camelCase": { + "unsafeName": "tracedFile", + "safeName": "tracedFile" + }, + "snakeCase": { + "unsafeName": "traced_file", + "safeName": "traced_file" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_FILE", + "safeName": "TRACED_FILE" + }, + "pascalCase": { + "unsafeName": "TracedFile", + "safeName": "TracedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_submission:ExpressionLocation": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExpressionLocation", + "camelCase": { + "unsafeName": "expressionLocation", + "safeName": "expressionLocation" + }, + "snakeCase": { + "unsafeName": "expression_location", + "safeName": "expression_location" + }, + "screamingSnakeCase": { + "unsafeName": "EXPRESSION_LOCATION", + "safeName": "EXPRESSION_LOCATION" + }, + "pascalCase": { + "unsafeName": "ExpressionLocation", + "safeName": "ExpressionLocation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "start", + "camelCase": { + "unsafeName": "start", + "safeName": "start" + }, + "snakeCase": { + "unsafeName": "start", + "safeName": "start" + }, + "screamingSnakeCase": { + "unsafeName": "START", + "safeName": "START" + }, + "pascalCase": { + "unsafeName": "Start", + "safeName": "Start" + } + }, + "wireValue": "start" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:StackInformation": { + "type": "object", + "declaration": { + "name": { + "originalName": "StackInformation", + "camelCase": { + "unsafeName": "stackInformation", + "safeName": "stackInformation" + }, + "snakeCase": { + "unsafeName": "stack_information", + "safeName": "stack_information" + }, + "screamingSnakeCase": { + "unsafeName": "STACK_INFORMATION", + "safeName": "STACK_INFORMATION" + }, + "pascalCase": { + "unsafeName": "StackInformation", + "safeName": "StackInformation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "numStackFrames", + "camelCase": { + "unsafeName": "numStackFrames", + "safeName": "numStackFrames" + }, + "snakeCase": { + "unsafeName": "num_stack_frames", + "safeName": "num_stack_frames" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_STACK_FRAMES", + "safeName": "NUM_STACK_FRAMES" + }, + "pascalCase": { + "unsafeName": "NumStackFrames", + "safeName": "NumStackFrames" + } + }, + "wireValue": "numStackFrames" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "topStackFrame", + "camelCase": { + "unsafeName": "topStackFrame", + "safeName": "topStackFrame" + }, + "snakeCase": { + "unsafeName": "top_stack_frame", + "safeName": "top_stack_frame" + }, + "screamingSnakeCase": { + "unsafeName": "TOP_STACK_FRAME", + "safeName": "TOP_STACK_FRAME" + }, + "pascalCase": { + "unsafeName": "TopStackFrame", + "safeName": "TopStackFrame" + } + }, + "wireValue": "topStackFrame" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_submission:StackFrame" + } + } + } + ] + }, + "type_submission:StackFrame": { + "type": "object", + "declaration": { + "name": { + "originalName": "StackFrame", + "camelCase": { + "unsafeName": "stackFrame", + "safeName": "stackFrame" + }, + "snakeCase": { + "unsafeName": "stack_frame", + "safeName": "stack_frame" + }, + "screamingSnakeCase": { + "unsafeName": "STACK_FRAME", + "safeName": "STACK_FRAME" + }, + "pascalCase": { + "unsafeName": "StackFrame", + "safeName": "StackFrame" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "lineNumber", + "camelCase": { + "unsafeName": "lineNumber", + "safeName": "lineNumber" + }, + "snakeCase": { + "unsafeName": "line_number", + "safeName": "line_number" + }, + "screamingSnakeCase": { + "unsafeName": "LINE_NUMBER", + "safeName": "LINE_NUMBER" + }, + "pascalCase": { + "unsafeName": "LineNumber", + "safeName": "LineNumber" + } + }, + "wireValue": "lineNumber" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "scopes", + "camelCase": { + "unsafeName": "scopes", + "safeName": "scopes" + }, + "snakeCase": { + "unsafeName": "scopes", + "safeName": "scopes" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPES", + "safeName": "SCOPES" + }, + "pascalCase": { + "unsafeName": "Scopes", + "safeName": "Scopes" + } + }, + "wireValue": "scopes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:Scope" + } + } + } + ] + }, + "type_submission:Scope": { + "type": "object", + "declaration": { + "name": { + "originalName": "Scope", + "camelCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "snakeCase": { + "unsafeName": "scope", + "safeName": "scope" + }, + "screamingSnakeCase": { + "unsafeName": "SCOPE", + "safeName": "SCOPE" + }, + "pascalCase": { + "unsafeName": "Scope", + "safeName": "Scope" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "variables", + "camelCase": { + "unsafeName": "variables", + "safeName": "variables" + }, + "snakeCase": { + "unsafeName": "variables", + "safeName": "variables" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLES", + "safeName": "VARIABLES" + }, + "pascalCase": { + "unsafeName": "Variables", + "safeName": "Variables" + } + }, + "wireValue": "variables" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_commons:DebugVariableValue" + } + } + } + ] + }, + "type_submission:ExecutionSessionResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExecutionSessionResponse", + "camelCase": { + "unsafeName": "executionSessionResponse", + "safeName": "executionSessionResponse" + }, + "snakeCase": { + "unsafeName": "execution_session_response", + "safeName": "execution_session_response" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_RESPONSE", + "safeName": "EXECUTION_SESSION_RESPONSE" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionResponse", + "safeName": "ExecutionSessionResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "executionSessionUrl", + "camelCase": { + "unsafeName": "executionSessionURL", + "safeName": "executionSessionURL" + }, + "snakeCase": { + "unsafeName": "execution_session_url", + "safeName": "execution_session_url" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_URL", + "safeName": "EXECUTION_SESSION_URL" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionURL", + "safeName": "ExecutionSessionURL" + } + }, + "wireValue": "executionSessionUrl" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:ExecutionSessionStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "ExecutionSessionStatus", + "camelCase": { + "unsafeName": "executionSessionStatus", + "safeName": "executionSessionStatus" + }, + "snakeCase": { + "unsafeName": "execution_session_status", + "safeName": "execution_session_status" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_STATUS", + "safeName": "EXECUTION_SESSION_STATUS" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionStatus", + "safeName": "ExecutionSessionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "CREATING_CONTAINER", + "camelCase": { + "unsafeName": "creatingContainer", + "safeName": "creatingContainer" + }, + "snakeCase": { + "unsafeName": "creating_container", + "safeName": "creating_container" + }, + "screamingSnakeCase": { + "unsafeName": "CREATING_CONTAINER", + "safeName": "CREATING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "CreatingContainer", + "safeName": "CreatingContainer" + } + }, + "wireValue": "CREATING_CONTAINER" + }, + { + "name": { + "originalName": "PROVISIONING_CONTAINER", + "camelCase": { + "unsafeName": "provisioningContainer", + "safeName": "provisioningContainer" + }, + "snakeCase": { + "unsafeName": "provisioning_container", + "safeName": "provisioning_container" + }, + "screamingSnakeCase": { + "unsafeName": "PROVISIONING_CONTAINER", + "safeName": "PROVISIONING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "ProvisioningContainer", + "safeName": "ProvisioningContainer" + } + }, + "wireValue": "PROVISIONING_CONTAINER" + }, + { + "name": { + "originalName": "PENDING_CONTAINER", + "camelCase": { + "unsafeName": "pendingContainer", + "safeName": "pendingContainer" + }, + "snakeCase": { + "unsafeName": "pending_container", + "safeName": "pending_container" + }, + "screamingSnakeCase": { + "unsafeName": "PENDING_CONTAINER", + "safeName": "PENDING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "PendingContainer", + "safeName": "PendingContainer" + } + }, + "wireValue": "PENDING_CONTAINER" + }, + { + "name": { + "originalName": "RUNNING_CONTAINER", + "camelCase": { + "unsafeName": "runningContainer", + "safeName": "runningContainer" + }, + "snakeCase": { + "unsafeName": "running_container", + "safeName": "running_container" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING_CONTAINER", + "safeName": "RUNNING_CONTAINER" + }, + "pascalCase": { + "unsafeName": "RunningContainer", + "safeName": "RunningContainer" + } + }, + "wireValue": "RUNNING_CONTAINER" + }, + { + "name": { + "originalName": "LIVE_CONTAINER", + "camelCase": { + "unsafeName": "liveContainer", + "safeName": "liveContainer" + }, + "snakeCase": { + "unsafeName": "live_container", + "safeName": "live_container" + }, + "screamingSnakeCase": { + "unsafeName": "LIVE_CONTAINER", + "safeName": "LIVE_CONTAINER" + }, + "pascalCase": { + "unsafeName": "LiveContainer", + "safeName": "LiveContainer" + } + }, + "wireValue": "LIVE_CONTAINER" + }, + { + "name": { + "originalName": "FAILED_TO_LAUNCH", + "camelCase": { + "unsafeName": "failedToLaunch", + "safeName": "failedToLaunch" + }, + "snakeCase": { + "unsafeName": "failed_to_launch", + "safeName": "failed_to_launch" + }, + "screamingSnakeCase": { + "unsafeName": "FAILED_TO_LAUNCH", + "safeName": "FAILED_TO_LAUNCH" + }, + "pascalCase": { + "unsafeName": "FailedToLaunch", + "safeName": "FailedToLaunch" + } + }, + "wireValue": "FAILED_TO_LAUNCH" + } + ] + }, + "type_submission:SubmissionStatusV2": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionStatusV2", + "camelCase": { + "unsafeName": "submissionStatusV2", + "safeName": "submissionStatusV2" + }, + "snakeCase": { + "unsafeName": "submission_status_v2", + "safeName": "submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_STATUS_V2", + "safeName": "SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "SubmissionStatusV2", + "safeName": "SubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "test": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestSubmissionStatusV2", + "discriminantValue": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "test" + }, + "properties": [] + }, + "workspace": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmissionStatusV2", + "discriminantValue": { + "name": { + "originalName": "workspace", + "camelCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "snakeCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE", + "safeName": "WORKSPACE" + }, + "pascalCase": { + "unsafeName": "Workspace", + "safeName": "Workspace" + } + }, + "wireValue": "workspace" + }, + "properties": [] + } + } + }, + "type_submission:TestSubmissionStatusV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionStatusV2", + "camelCase": { + "unsafeName": "testSubmissionStatusV2", + "safeName": "testSubmissionStatusV2" + }, + "snakeCase": { + "unsafeName": "test_submission_status_v2", + "safeName": "test_submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATUS_V2", + "safeName": "TEST_SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "TestSubmissionStatusV2", + "safeName": "TestSubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdate" + } + } + }, + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "problemInfo", + "camelCase": { + "unsafeName": "problemInfo", + "safeName": "problemInfo" + }, + "snakeCase": { + "unsafeName": "problem_info", + "safeName": "problem_info" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO", + "safeName": "PROBLEM_INFO" + }, + "pascalCase": { + "unsafeName": "ProblemInfo", + "safeName": "ProblemInfo" + } + }, + "wireValue": "problemInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ProblemInfoV2" + } + } + ] + }, + "type_submission:WorkspaceSubmissionStatusV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionStatusV2", + "camelCase": { + "unsafeName": "workspaceSubmissionStatusV2", + "safeName": "workspaceSubmissionStatusV2" + }, + "snakeCase": { + "unsafeName": "workspace_submission_status_v2", + "safeName": "workspace_submission_status_v2" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATUS_V2", + "safeName": "WORKSPACE_SUBMISSION_STATUS_V2" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionStatusV2", + "safeName": "WorkspaceSubmissionStatusV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updates", + "camelCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "snakeCase": { + "unsafeName": "updates", + "safeName": "updates" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATES", + "safeName": "UPDATES" + }, + "pascalCase": { + "unsafeName": "Updates", + "safeName": "Updates" + } + }, + "wireValue": "updates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdate" + } + } + } + ] + }, + "type_submission:TestSubmissionUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionUpdate", + "camelCase": { + "unsafeName": "testSubmissionUpdate", + "safeName": "testSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "test_submission_update", + "safeName": "test_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_UPDATE", + "safeName": "TEST_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "TestSubmissionUpdate", + "safeName": "TestSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updateTime", + "camelCase": { + "unsafeName": "updateTime", + "safeName": "updateTime" + }, + "snakeCase": { + "unsafeName": "update_time", + "safeName": "update_time" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TIME", + "safeName": "UPDATE_TIME" + }, + "pascalCase": { + "unsafeName": "UpdateTime", + "safeName": "UpdateTime" + } + }, + "wireValue": "updateTime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "updateInfo", + "camelCase": { + "unsafeName": "updateInfo", + "safeName": "updateInfo" + }, + "snakeCase": { + "unsafeName": "update_info", + "safeName": "update_info" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_INFO", + "safeName": "UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "UpdateInfo", + "safeName": "UpdateInfo" + } + }, + "wireValue": "updateInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdateInfo" + } + } + ] + }, + "type_submission:TestSubmissionUpdateInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestSubmissionUpdateInfo", + "camelCase": { + "unsafeName": "testSubmissionUpdateInfo", + "safeName": "testSubmissionUpdateInfo" + }, + "snakeCase": { + "unsafeName": "test_submission_update_info", + "safeName": "test_submission_update_info" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_UPDATE_INFO", + "safeName": "TEST_SUBMISSION_UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "TestSubmissionUpdateInfo", + "safeName": "TestSubmissionUpdateInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "gradedTestCase": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:GradedTestCaseUpdate", + "discriminantValue": { + "name": { + "originalName": "gradedTestCase", + "camelCase": { + "unsafeName": "gradedTestCase", + "safeName": "gradedTestCase" + }, + "snakeCase": { + "unsafeName": "graded_test_case", + "safeName": "graded_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_TEST_CASE", + "safeName": "GRADED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "GradedTestCase", + "safeName": "GradedTestCase" + } + }, + "wireValue": "gradedTestCase" + }, + "properties": [] + }, + "recordedTestCase": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:RecordedTestCaseUpdate", + "discriminantValue": { + "name": { + "originalName": "recordedTestCase", + "camelCase": { + "unsafeName": "recordedTestCase", + "safeName": "recordedTestCase" + }, + "snakeCase": { + "unsafeName": "recorded_test_case", + "safeName": "recorded_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_TEST_CASE", + "safeName": "RECORDED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "RecordedTestCase", + "safeName": "RecordedTestCase" + } + }, + "wireValue": "recordedTestCase" + }, + "properties": [] + }, + "finished": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": null + } + } + }, + "type_submission:WorkspaceSubmissionUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionUpdate", + "camelCase": { + "unsafeName": "workspaceSubmissionUpdate", + "safeName": "workspaceSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "workspace_submission_update", + "safeName": "workspace_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_UPDATE", + "safeName": "WORKSPACE_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionUpdate", + "safeName": "WorkspaceSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "updateTime", + "camelCase": { + "unsafeName": "updateTime", + "safeName": "updateTime" + }, + "snakeCase": { + "unsafeName": "update_time", + "safeName": "update_time" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TIME", + "safeName": "UPDATE_TIME" + }, + "pascalCase": { + "unsafeName": "UpdateTime", + "safeName": "UpdateTime" + } + }, + "wireValue": "updateTime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "updateInfo", + "camelCase": { + "unsafeName": "updateInfo", + "safeName": "updateInfo" + }, + "snakeCase": { + "unsafeName": "update_info", + "safeName": "update_info" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_INFO", + "safeName": "UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "UpdateInfo", + "safeName": "UpdateInfo" + } + }, + "wireValue": "updateInfo" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdateInfo" + } + } + ] + }, + "type_submission:WorkspaceSubmissionUpdateInfo": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionUpdateInfo", + "camelCase": { + "unsafeName": "workspaceSubmissionUpdateInfo", + "safeName": "workspaceSubmissionUpdateInfo" + }, + "snakeCase": { + "unsafeName": "workspace_submission_update_info", + "safeName": "workspace_submission_update_info" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_UPDATE_INFO", + "safeName": "WORKSPACE_SUBMISSION_UPDATE_INFO" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionUpdateInfo", + "safeName": "WorkspaceSubmissionUpdateInfo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "ran": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "ran", + "camelCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "snakeCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "screamingSnakeCase": { + "unsafeName": "RAN", + "safeName": "RAN" + }, + "pascalCase": { + "unsafeName": "Ran", + "safeName": "Ran" + } + }, + "wireValue": "ran" + }, + "properties": [] + }, + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "traced": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": null + }, + "tracedV2": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceTracedUpdate", + "discriminantValue": { + "name": { + "originalName": "tracedV2", + "camelCase": { + "unsafeName": "tracedV2", + "safeName": "tracedV2" + }, + "snakeCase": { + "unsafeName": "traced_v2", + "safeName": "traced_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_V2", + "safeName": "TRACED_V2" + }, + "pascalCase": { + "unsafeName": "TracedV2", + "safeName": "TracedV2" + } + }, + "wireValue": "tracedV2" + }, + "properties": [] + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "finished": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "finished", + "camelCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "snakeCase": { + "unsafeName": "finished", + "safeName": "finished" + }, + "screamingSnakeCase": { + "unsafeName": "FINISHED", + "safeName": "FINISHED" + }, + "pascalCase": { + "unsafeName": "Finished", + "safeName": "Finished" + } + }, + "wireValue": "finished" + }, + "properties": null + } + } + }, + "type_submission:GradedTestCaseUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "GradedTestCaseUpdate", + "camelCase": { + "unsafeName": "gradedTestCaseUpdate", + "safeName": "gradedTestCaseUpdate" + }, + "snakeCase": { + "unsafeName": "graded_test_case_update", + "safeName": "graded_test_case_update" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_TEST_CASE_UPDATE", + "safeName": "GRADED_TEST_CASE_UPDATE" + }, + "pascalCase": { + "unsafeName": "GradedTestCaseUpdate", + "safeName": "GradedTestCaseUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "grade", + "camelCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "snakeCase": { + "unsafeName": "grade", + "safeName": "grade" + }, + "screamingSnakeCase": { + "unsafeName": "GRADE", + "safeName": "GRADE" + }, + "pascalCase": { + "unsafeName": "Grade", + "safeName": "Grade" + } + }, + "wireValue": "grade" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + } + } + ] + }, + "type_submission:RecordedTestCaseUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "RecordedTestCaseUpdate", + "camelCase": { + "unsafeName": "recordedTestCaseUpdate", + "safeName": "recordedTestCaseUpdate" + }, + "snakeCase": { + "unsafeName": "recorded_test_case_update", + "safeName": "recorded_test_case_update" + }, + "screamingSnakeCase": { + "unsafeName": "RECORDED_TEST_CASE_UPDATE", + "safeName": "RECORDED_TEST_CASE_UPDATE" + }, + "pascalCase": { + "unsafeName": "RecordedTestCaseUpdate", + "safeName": "RecordedTestCaseUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:WorkspaceTracedUpdate": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceTracedUpdate", + "camelCase": { + "unsafeName": "workspaceTracedUpdate", + "safeName": "workspaceTracedUpdate" + }, + "snakeCase": { + "unsafeName": "workspace_traced_update", + "safeName": "workspace_traced_update" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_TRACED_UPDATE", + "safeName": "WORKSPACE_TRACED_UPDATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceTracedUpdate", + "safeName": "WorkspaceTracedUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:SubmissionTypeState": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionTypeState", + "camelCase": { + "unsafeName": "submissionTypeState", + "safeName": "submissionTypeState" + }, + "snakeCase": { + "unsafeName": "submission_type_state", + "safeName": "submission_type_state" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_STATE", + "safeName": "SUBMISSION_TYPE_STATE" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeState", + "safeName": "SubmissionTypeState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "test": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestSubmissionState", + "discriminantValue": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "wireValue": "test" + }, + "properties": [] + }, + "workspace": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceSubmissionState", + "discriminantValue": { + "name": { + "originalName": "workspace", + "camelCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "snakeCase": { + "unsafeName": "workspace", + "safeName": "workspace" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE", + "safeName": "WORKSPACE" + }, + "pascalCase": { + "unsafeName": "Workspace", + "safeName": "Workspace" + } + }, + "wireValue": "workspace" + }, + "properties": [] + } + } + }, + "type_submission:WorkspaceSubmissionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionState", + "camelCase": { + "unsafeName": "workspaceSubmissionState", + "safeName": "workspaceSubmissionState" + }, + "snakeCase": { + "unsafeName": "workspace_submission_state", + "safeName": "workspace_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATE", + "safeName": "WORKSPACE_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionState", + "safeName": "WorkspaceSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionStatus" + } + } + ] + }, + "type_submission:WorkspaceSubmissionStatus": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "WorkspaceSubmissionStatus", + "camelCase": { + "unsafeName": "workspaceSubmissionStatus", + "safeName": "workspaceSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "workspace_submission_status", + "safeName": "workspace_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_SUBMISSION_STATUS", + "safeName": "WORKSPACE_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "WorkspaceSubmissionStatus", + "safeName": "WorkspaceSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "ran": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "ran", + "camelCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "snakeCase": { + "unsafeName": "ran", + "safeName": "ran" + }, + "screamingSnakeCase": { + "unsafeName": "RAN", + "safeName": "RAN" + }, + "pascalCase": { + "unsafeName": "Ran", + "safeName": "Ran" + } + }, + "wireValue": "ran" + }, + "properties": [] + }, + "traced": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:WorkspaceRunDetails", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": [] + } + } + }, + "type_submission:TestSubmissionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestSubmissionState", + "camelCase": { + "unsafeName": "testSubmissionState", + "safeName": "testSubmissionState" + }, + "snakeCase": { + "unsafeName": "test_submission_state", + "safeName": "test_submission_state" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATE", + "safeName": "TEST_SUBMISSION_STATE" + }, + "pascalCase": { + "unsafeName": "TestSubmissionState", + "safeName": "TestSubmissionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "defaultTestCases", + "camelCase": { + "unsafeName": "defaultTestCases", + "safeName": "defaultTestCases" + }, + "snakeCase": { + "unsafeName": "default_test_cases", + "safeName": "default_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_TEST_CASES", + "safeName": "DEFAULT_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "DefaultTestCases", + "safeName": "DefaultTestCases" + } + }, + "wireValue": "defaultTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "customTestCases", + "camelCase": { + "unsafeName": "customTestCases", + "safeName": "customTestCases" + }, + "snakeCase": { + "unsafeName": "custom_test_cases", + "safeName": "custom_test_cases" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASES", + "safeName": "CUSTOM_TEST_CASES" + }, + "pascalCase": { + "unsafeName": "CustomTestCases", + "safeName": "CustomTestCases" + } + }, + "wireValue": "customTestCases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:TestCase" + } + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestSubmissionStatus" + } + } + ] + }, + "type_submission:TestSubmissionStatus": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestSubmissionStatus", + "camelCase": { + "unsafeName": "testSubmissionStatus", + "safeName": "testSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "test_submission_status", + "safeName": "test_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_SUBMISSION_STATUS", + "safeName": "TEST_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "TestSubmissionStatus", + "safeName": "TestSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "stopped": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "stopped", + "camelCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "snakeCase": { + "unsafeName": "stopped", + "safeName": "stopped" + }, + "screamingSnakeCase": { + "unsafeName": "STOPPED", + "safeName": "STOPPED" + }, + "pascalCase": { + "unsafeName": "Stopped", + "safeName": "Stopped" + } + }, + "wireValue": "stopped" + }, + "properties": null + }, + "errored": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:ErrorInfo" + }, + "discriminantValue": { + "name": { + "originalName": "errored", + "camelCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "snakeCase": { + "unsafeName": "errored", + "safeName": "errored" + }, + "screamingSnakeCase": { + "unsafeName": "ERRORED", + "safeName": "ERRORED" + }, + "pascalCase": { + "unsafeName": "Errored", + "safeName": "Errored" + } + }, + "wireValue": "errored" + }, + "properties": null + }, + "running": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:RunningSubmissionState" + }, + "discriminantValue": { + "name": { + "originalName": "running", + "camelCase": { + "unsafeName": "running", + "safeName": "running" + }, + "snakeCase": { + "unsafeName": "running", + "safeName": "running" + }, + "screamingSnakeCase": { + "unsafeName": "RUNNING", + "safeName": "RUNNING" + }, + "pascalCase": { + "unsafeName": "Running", + "safeName": "Running" + } + }, + "wireValue": "running" + }, + "properties": null + }, + "testCaseIdToState": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:SubmissionStatusForTestCase" + } + }, + "discriminantValue": { + "name": { + "originalName": "testCaseIdToState", + "camelCase": { + "unsafeName": "testCaseIDToState", + "safeName": "testCaseIDToState" + }, + "snakeCase": { + "unsafeName": "test_case_id_to_state", + "safeName": "test_case_id_to_state" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID_TO_STATE", + "safeName": "TEST_CASE_ID_TO_STATE" + }, + "pascalCase": { + "unsafeName": "TestCaseIDToState", + "safeName": "TestCaseIDToState" + } + }, + "wireValue": "testCaseIdToState" + }, + "properties": null + } + } + }, + "type_submission:SubmissionStatusForTestCase": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "SubmissionStatusForTestCase", + "camelCase": { + "unsafeName": "submissionStatusForTestCase", + "safeName": "submissionStatusForTestCase" + }, + "snakeCase": { + "unsafeName": "submission_status_for_test_case", + "safeName": "submission_status_for_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_STATUS_FOR_TEST_CASE", + "safeName": "SUBMISSION_STATUS_FOR_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "SubmissionStatusForTestCase", + "safeName": "SubmissionStatusForTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "graded": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TestCaseResultWithStdout", + "discriminantValue": { + "name": { + "originalName": "graded", + "camelCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "snakeCase": { + "unsafeName": "graded", + "safeName": "graded" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED", + "safeName": "GRADED" + }, + "pascalCase": { + "unsafeName": "Graded", + "safeName": "Graded" + } + }, + "wireValue": "graded" + }, + "properties": [] + }, + "gradedV2": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseGrade" + }, + "discriminantValue": { + "name": { + "originalName": "gradedV2", + "camelCase": { + "unsafeName": "gradedV2", + "safeName": "gradedV2" + }, + "snakeCase": { + "unsafeName": "graded_v2", + "safeName": "graded_v2" + }, + "screamingSnakeCase": { + "unsafeName": "GRADED_V2", + "safeName": "GRADED_V2" + }, + "pascalCase": { + "unsafeName": "GradedV2", + "safeName": "GradedV2" + } + }, + "wireValue": "gradedV2" + }, + "properties": null + }, + "traced": { + "type": "samePropertiesAsObject", + "typeId": "type_submission:TracedTestCase", + "discriminantValue": { + "name": { + "originalName": "traced", + "camelCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "snakeCase": { + "unsafeName": "traced", + "safeName": "traced" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED", + "safeName": "TRACED" + }, + "pascalCase": { + "unsafeName": "Traced", + "safeName": "Traced" + } + }, + "wireValue": "traced" + }, + "properties": [] + } + } + }, + "type_submission:TracedTestCase": { + "type": "object", + "declaration": { + "name": { + "originalName": "TracedTestCase", + "camelCase": { + "unsafeName": "tracedTestCase", + "safeName": "tracedTestCase" + }, + "snakeCase": { + "unsafeName": "traced_test_case", + "safeName": "traced_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TRACED_TEST_CASE", + "safeName": "TRACED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TracedTestCase", + "safeName": "TracedTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + }, + { + "name": { + "name": { + "originalName": "traceResponsesSize", + "camelCase": { + "unsafeName": "traceResponsesSize", + "safeName": "traceResponsesSize" + }, + "snakeCase": { + "unsafeName": "trace_responses_size", + "safeName": "trace_responses_size" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_SIZE", + "safeName": "TRACE_RESPONSES_SIZE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesSize", + "safeName": "TraceResponsesSize" + } + }, + "wireValue": "traceResponsesSize" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ] + }, + "type_submission:TraceResponsesPage": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponsesPage", + "camelCase": { + "unsafeName": "traceResponsesPage", + "safeName": "traceResponsesPage" + }, + "snakeCase": { + "unsafeName": "trace_responses_page", + "safeName": "trace_responses_page" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_PAGE", + "safeName": "TRACE_RESPONSES_PAGE" + }, + "pascalCase": { + "unsafeName": "TraceResponsesPage", + "safeName": "TraceResponsesPage" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + }, + "type_submission:TraceResponsesPageV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TraceResponsesPageV2", + "camelCase": { + "unsafeName": "traceResponsesPageV2", + "safeName": "traceResponsesPageV2" + }, + "snakeCase": { + "unsafeName": "trace_responses_page_v2", + "safeName": "trace_responses_page_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES_PAGE_V2", + "safeName": "TRACE_RESPONSES_PAGE_V2" + }, + "pascalCase": { + "unsafeName": "TraceResponsesPageV2", + "safeName": "TraceResponsesPageV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + ] + }, + "type_submission:GetTraceResponsesPageRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetTraceResponsesPageRequest", + "camelCase": { + "unsafeName": "getTraceResponsesPageRequest", + "safeName": "getTraceResponsesPageRequest" + }, + "snakeCase": { + "unsafeName": "get_trace_responses_page_request", + "safeName": "get_trace_responses_page_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_TRACE_RESPONSES_PAGE_REQUEST", + "safeName": "GET_TRACE_RESPONSES_PAGE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetTraceResponsesPageRequest", + "safeName": "GetTraceResponsesPageRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "offset", + "camelCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "snakeCase": { + "unsafeName": "offset", + "safeName": "offset" + }, + "screamingSnakeCase": { + "unsafeName": "OFFSET", + "safeName": "OFFSET" + }, + "pascalCase": { + "unsafeName": "Offset", + "safeName": "Offset" + } + }, + "wireValue": "offset" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + } + ] + }, + "type_submission:WorkspaceStarterFilesResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceStarterFilesResponse", + "camelCase": { + "unsafeName": "workspaceStarterFilesResponse", + "safeName": "workspaceStarterFilesResponse" + }, + "snakeCase": { + "unsafeName": "workspace_starter_files_response", + "safeName": "workspace_starter_files_response" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_STARTER_FILES_RESPONSE", + "safeName": "WORKSPACE_STARTER_FILES_RESPONSE" + }, + "pascalCase": { + "unsafeName": "WorkspaceStarterFilesResponse", + "safeName": "WorkspaceStarterFilesResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_submission:WorkspaceFiles" + } + } + } + ] + }, + "type_submission:WorkspaceStarterFilesResponseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceStarterFilesResponseV2", + "camelCase": { + "unsafeName": "workspaceStarterFilesResponseV2", + "safeName": "workspaceStarterFilesResponseV2" + }, + "snakeCase": { + "unsafeName": "workspace_starter_files_response_v2", + "safeName": "workspace_starter_files_response_v2" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_STARTER_FILES_RESPONSE_V2", + "safeName": "WORKSPACE_STARTER_FILES_RESPONSE_V2" + }, + "pascalCase": { + "unsafeName": "WorkspaceStarterFilesResponseV2", + "safeName": "WorkspaceStarterFilesResponseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filesByLanguage", + "camelCase": { + "unsafeName": "filesByLanguage", + "safeName": "filesByLanguage" + }, + "snakeCase": { + "unsafeName": "files_by_language", + "safeName": "files_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FILES_BY_LANGUAGE", + "safeName": "FILES_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FilesByLanguage", + "safeName": "FilesByLanguage" + } + }, + "wireValue": "filesByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + } + ] + }, + "type_submission:WorkspaceFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "WorkspaceFiles", + "camelCase": { + "unsafeName": "workspaceFiles", + "safeName": "workspaceFiles" + }, + "snakeCase": { + "unsafeName": "workspace_files", + "safeName": "workspace_files" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_FILES", + "safeName": "WORKSPACE_FILES" + }, + "pascalCase": { + "unsafeName": "WorkspaceFiles", + "safeName": "WorkspaceFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "mainFile", + "camelCase": { + "unsafeName": "mainFile", + "safeName": "mainFile" + }, + "snakeCase": { + "unsafeName": "main_file", + "safeName": "main_file" + }, + "screamingSnakeCase": { + "unsafeName": "MAIN_FILE", + "safeName": "MAIN_FILE" + }, + "pascalCase": { + "unsafeName": "MainFile", + "safeName": "MainFile" + } + }, + "wireValue": "mainFile" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:FileInfo" + } + }, + { + "name": { + "name": { + "originalName": "readOnlyFiles", + "camelCase": { + "unsafeName": "readOnlyFiles", + "safeName": "readOnlyFiles" + }, + "snakeCase": { + "unsafeName": "read_only_files", + "safeName": "read_only_files" + }, + "screamingSnakeCase": { + "unsafeName": "READ_ONLY_FILES", + "safeName": "READ_ONLY_FILES" + }, + "pascalCase": { + "unsafeName": "ReadOnlyFiles", + "safeName": "ReadOnlyFiles" + } + }, + "wireValue": "readOnlyFiles" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:FileInfo" + } + } + } + ] + }, + "type_submission:ExecutionSessionState": { + "type": "object", + "declaration": { + "name": { + "originalName": "ExecutionSessionState", + "camelCase": { + "unsafeName": "executionSessionState", + "safeName": "executionSessionState" + }, + "snakeCase": { + "unsafeName": "execution_session_state", + "safeName": "execution_session_state" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_SESSION_STATE", + "safeName": "EXECUTION_SESSION_STATE" + }, + "pascalCase": { + "unsafeName": "ExecutionSessionState", + "safeName": "ExecutionSessionState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "lastTimeContacted", + "camelCase": { + "unsafeName": "lastTimeContacted", + "safeName": "lastTimeContacted" + }, + "snakeCase": { + "unsafeName": "last_time_contacted", + "safeName": "last_time_contacted" + }, + "screamingSnakeCase": { + "unsafeName": "LAST_TIME_CONTACTED", + "safeName": "LAST_TIME_CONTACTED" + }, + "pascalCase": { + "unsafeName": "LastTimeContacted", + "safeName": "LastTimeContacted" + } + }, + "wireValue": "lastTimeContacted" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "isWarmInstance", + "camelCase": { + "unsafeName": "isWarmInstance", + "safeName": "isWarmInstance" + }, + "snakeCase": { + "unsafeName": "is_warm_instance", + "safeName": "is_warm_instance" + }, + "screamingSnakeCase": { + "unsafeName": "IS_WARM_INSTANCE", + "safeName": "IS_WARM_INSTANCE" + }, + "pascalCase": { + "unsafeName": "IsWarmInstance", + "safeName": "IsWarmInstance" + } + }, + "wireValue": "isWarmInstance" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + }, + { + "name": { + "name": { + "originalName": "awsTaskId", + "camelCase": { + "unsafeName": "awsTaskID", + "safeName": "awsTaskID" + }, + "snakeCase": { + "unsafeName": "aws_task_id", + "safeName": "aws_task_id" + }, + "screamingSnakeCase": { + "unsafeName": "AWS_TASK_ID", + "safeName": "AWS_TASK_ID" + }, + "pascalCase": { + "unsafeName": "AwsTaskID", + "safeName": "AwsTaskID" + } + }, + "wireValue": "awsTaskId" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + }, + "wireValue": "status" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:ExecutionSessionStatus" + } + } + ] + }, + "type_submission:GetExecutionSessionStateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetExecutionSessionStateResponse", + "camelCase": { + "unsafeName": "getExecutionSessionStateResponse", + "safeName": "getExecutionSessionStateResponse" + }, + "snakeCase": { + "unsafeName": "get_execution_session_state_response", + "safeName": "get_execution_session_state_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSION_STATE_RESPONSE", + "safeName": "GET_EXECUTION_SESSION_STATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetExecutionSessionStateResponse", + "safeName": "GetExecutionSessionStateResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "states", + "camelCase": { + "unsafeName": "states", + "safeName": "states" + }, + "snakeCase": { + "unsafeName": "states", + "safeName": "states" + }, + "screamingSnakeCase": { + "unsafeName": "STATES", + "safeName": "STATES" + }, + "pascalCase": { + "unsafeName": "States", + "safeName": "States" + } + }, + "wireValue": "states" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "primitive", + "value": "STRING" + }, + "value": { + "_type": "named", + "value": "type_submission:ExecutionSessionState" + } + } + }, + { + "name": { + "name": { + "originalName": "numWarmingInstances", + "camelCase": { + "unsafeName": "numWarmingInstances", + "safeName": "numWarmingInstances" + }, + "snakeCase": { + "unsafeName": "num_warming_instances", + "safeName": "num_warming_instances" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_WARMING_INSTANCES", + "safeName": "NUM_WARMING_INSTANCES" + }, + "pascalCase": { + "unsafeName": "NumWarmingInstances", + "safeName": "NumWarmingInstances" + } + }, + "wireValue": "numWarmingInstances" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "warmingSessionIds", + "camelCase": { + "unsafeName": "warmingSessionIDs", + "safeName": "warmingSessionIDs" + }, + "snakeCase": { + "unsafeName": "warming_session_ids", + "safeName": "warming_session_ids" + }, + "screamingSnakeCase": { + "unsafeName": "WARMING_SESSION_IDS", + "safeName": "WARMING_SESSION_IDS" + }, + "pascalCase": { + "unsafeName": "WarmingSessionIDs", + "safeName": "WarmingSessionIDs" + } + }, + "wireValue": "warmingSessionIds" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_submission:GetSubmissionStateResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetSubmissionStateResponse", + "camelCase": { + "unsafeName": "getSubmissionStateResponse", + "safeName": "getSubmissionStateResponse" + }, + "snakeCase": { + "unsafeName": "get_submission_state_response", + "safeName": "get_submission_state_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_SUBMISSION_STATE_RESPONSE", + "safeName": "GET_SUBMISSION_STATE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetSubmissionStateResponse", + "safeName": "GetSubmissionStateResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "timeSubmitted", + "camelCase": { + "unsafeName": "timeSubmitted", + "safeName": "timeSubmitted" + }, + "snakeCase": { + "unsafeName": "time_submitted", + "safeName": "time_submitted" + }, + "screamingSnakeCase": { + "unsafeName": "TIME_SUBMITTED", + "safeName": "TIME_SUBMITTED" + }, + "pascalCase": { + "unsafeName": "TimeSubmitted", + "safeName": "TimeSubmitted" + } + }, + "wireValue": "timeSubmitted" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + }, + { + "name": { + "name": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + }, + "wireValue": "submission" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "submissionTypeState", + "camelCase": { + "unsafeName": "submissionTypeState", + "safeName": "submissionTypeState" + }, + "snakeCase": { + "unsafeName": "submission_type_state", + "safeName": "submission_type_state" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_TYPE_STATE", + "safeName": "SUBMISSION_TYPE_STATE" + }, + "pascalCase": { + "unsafeName": "SubmissionTypeState", + "safeName": "SubmissionTypeState" + } + }, + "wireValue": "submissionTypeState" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionTypeState" + } + } + ] + }, + "type_v2/problem:TestCaseTemplateId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseTemplateId", + "camelCase": { + "unsafeName": "testCaseTemplateID", + "safeName": "testCaseTemplateID" + }, + "snakeCase": { + "unsafeName": "test_case_template_id", + "safeName": "test_case_template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE_ID", + "safeName": "TEST_CASE_TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplateID", + "safeName": "TestCaseTemplateID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:TestCaseId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:ParameterId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ParameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/problem:ProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfoV2", + "camelCase": { + "unsafeName": "problemInfoV2", + "safeName": "problemInfoV2" + }, + "snakeCase": { + "unsafeName": "problem_info_v2", + "safeName": "problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO_V2", + "safeName": "PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "ProblemInfoV2", + "safeName": "ProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "generatedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "wireValue": "generatedFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:GeneratedFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:LightweightProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightProblemInfoV2", + "camelCase": { + "unsafeName": "lightweightProblemInfoV2", + "safeName": "lightweightProblemInfoV2" + }, + "snakeCase": { + "unsafeName": "lightweight_problem_info_v2", + "safeName": "lightweight_problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_PROBLEM_INFO_V2", + "safeName": "LIGHTWEIGHT_PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "LightweightProblemInfoV2", + "safeName": "LightweightProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "variableTypes", + "camelCase": { + "unsafeName": "variableTypes", + "safeName": "variableTypes" + }, + "snakeCase": { + "unsafeName": "variable_types", + "safeName": "variable_types" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPES", + "safeName": "VARIABLE_TYPES" + }, + "pascalCase": { + "unsafeName": "VariableTypes", + "safeName": "VariableTypes" + } + }, + "wireValue": "variableTypes" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/problem:CreateProblemRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequestV2", + "camelCase": { + "unsafeName": "createProblemRequestV2", + "safeName": "createProblemRequestV2" + }, + "snakeCase": { + "unsafeName": "create_problem_request_v2", + "safeName": "create_problem_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST_V2", + "safeName": "CREATE_PROBLEM_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequestV2", + "safeName": "CreateProblemRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:TestCaseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseV2", + "camelCase": { + "unsafeName": "testCaseV2", + "safeName": "testCaseV2" + }, + "snakeCase": { + "unsafeName": "test_case_v2", + "safeName": "test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_V2", + "safeName": "TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "TestCaseV2", + "safeName": "TestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseMetadata" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationReference" + } + }, + { + "name": { + "name": { + "originalName": "arguments", + "camelCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "snakeCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "screamingSnakeCase": { + "unsafeName": "ARGUMENTS", + "safeName": "ARGUMENTS" + }, + "pascalCase": { + "unsafeName": "Arguments", + "safeName": "Arguments" + } + }, + "wireValue": "arguments" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + }, + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expects", + "camelCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "snakeCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTS", + "safeName": "EXPECTS" + }, + "pascalCase": { + "unsafeName": "Expects", + "safeName": "Expects" + } + }, + "wireValue": "expects" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseExpects" + } + } + } + ] + }, + "type_v2/problem:TestCaseExpects": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseExpects", + "camelCase": { + "unsafeName": "testCaseExpects", + "safeName": "testCaseExpects" + }, + "snakeCase": { + "unsafeName": "test_case_expects", + "safeName": "test_case_expects" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_EXPECTS", + "safeName": "TEST_CASE_EXPECTS" + }, + "pascalCase": { + "unsafeName": "TestCaseExpects", + "safeName": "TestCaseExpects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedStdout", + "camelCase": { + "unsafeName": "expectedStdout", + "safeName": "expectedStdout" + }, + "snakeCase": { + "unsafeName": "expected_stdout", + "safeName": "expected_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_STDOUT", + "safeName": "EXPECTED_STDOUT" + }, + "pascalCase": { + "unsafeName": "ExpectedStdout", + "safeName": "ExpectedStdout" + } + }, + "wireValue": "expectedStdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:TestCaseImplementationReference": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationReference", + "camelCase": { + "unsafeName": "testCaseImplementationReference", + "safeName": "testCaseImplementationReference" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_reference", + "safeName": "test_case_implementation_reference" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_REFERENCE", + "safeName": "TEST_CASE_IMPLEMENTATION_REFERENCE" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationReference", + "safeName": "TestCaseImplementationReference" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "templateId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + }, + "discriminantValue": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "properties": null + }, + "implementation": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:TestCaseImplementation", + "discriminantValue": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "properties": [] + } + } + }, + "type_v2/problem:BasicTestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + } + ] + }, + "type_v2/problem:TestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseTemplate", + "camelCase": { + "unsafeName": "testCaseTemplate", + "safeName": "testCaseTemplate" + }, + "snakeCase": { + "unsafeName": "test_case_template", + "safeName": "test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE", + "safeName": "TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplate", + "safeName": "TestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementation" + } + } + ] + }, + "type_v2/problem:TestCaseImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementation", + "camelCase": { + "unsafeName": "testCaseImplementation", + "safeName": "testCaseImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_implementation", + "safeName": "test_case_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION", + "safeName": "TEST_CASE_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementation", + "safeName": "TestCaseImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseFunction" + } + } + ] + }, + "type_v2/problem:TestCaseFunction": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseFunction", + "camelCase": { + "unsafeName": "testCaseFunction", + "safeName": "testCaseFunction" + }, + "snakeCase": { + "unsafeName": "test_case_function", + "safeName": "test_case_function" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_FUNCTION", + "safeName": "TEST_CASE_FUNCTION" + }, + "pascalCase": { + "unsafeName": "TestCaseFunction", + "safeName": "TestCaseFunction" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "withActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:TestCaseWithActualResultImplementation", + "discriminantValue": { + "name": { + "originalName": "withActualResult", + "camelCase": { + "unsafeName": "withActualResult", + "safeName": "withActualResult" + }, + "snakeCase": { + "unsafeName": "with_actual_result", + "safeName": "with_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_ACTUAL_RESULT", + "safeName": "WITH_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "WithActualResult", + "safeName": "WithActualResult" + } + }, + "wireValue": "withActualResult" + }, + "properties": [] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionDefinition", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [] + } + } + }, + "type_v2/problem:TestCaseWithActualResultImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithActualResultImplementation", + "camelCase": { + "unsafeName": "testCaseWithActualResultImplementation", + "safeName": "testCaseWithActualResultImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_with_actual_result_implementation", + "safeName": "test_case_with_actual_result_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION", + "safeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseWithActualResultImplementation", + "safeName": "TestCaseWithActualResultImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:AssertCorrectnessCheck" + } + } + ] + }, + "type_v2/problem:VoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinition", + "camelCase": { + "unsafeName": "voidFunctionDefinition", + "safeName": "voidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "void_function_definition", + "safeName": "void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION", + "safeName": "VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinition", + "safeName": "VoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:Parameter": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parameter", + "camelCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "snakeCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER", + "safeName": "PARAMETER" + }, + "pascalCase": { + "unsafeName": "Parameter", + "safeName": "Parameter" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "wireValue": "parameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:NonVoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionDefinition", + "camelCase": { + "unsafeName": "nonVoidFunctionDefinition", + "safeName": "nonVoidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "non_void_function_definition", + "safeName": "non_void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_DEFINITION", + "safeName": "NON_VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionDefinition", + "safeName": "NonVoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:VoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignature", + "camelCase": { + "unsafeName": "voidFunctionSignature", + "safeName": "voidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "void_function_signature", + "safeName": "void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE", + "safeName": "VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignature", + "safeName": "VoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + } + ] + }, + "type_v2/problem:NonVoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionSignature", + "camelCase": { + "unsafeName": "nonVoidFunctionSignature", + "safeName": "nonVoidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "non_void_function_signature", + "safeName": "non_void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_SIGNATURE", + "safeName": "NON_VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionSignature", + "safeName": "NonVoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:VoidFunctionSignatureThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignatureThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionSignatureThatTakesActualResult", + "safeName": "voidFunctionSignatureThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_signature_that_takes_actual_result", + "safeName": "void_function_signature_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignatureThatTakesActualResult", + "safeName": "VoidFunctionSignatureThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/problem:AssertCorrectnessCheck": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "AssertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "deepEquality": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:DeepEqualityCorrectnessCheck", + "discriminantValue": { + "name": { + "originalName": "deepEquality", + "camelCase": { + "unsafeName": "deepEquality", + "safeName": "deepEquality" + }, + "snakeCase": { + "unsafeName": "deep_equality", + "safeName": "deep_equality" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY", + "safeName": "DEEP_EQUALITY" + }, + "pascalCase": { + "unsafeName": "DeepEquality", + "safeName": "DeepEquality" + } + }, + "wireValue": "deepEquality" + }, + "properties": [] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionDefinitionThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [] + } + } + }, + "type_v2/problem:DeepEqualityCorrectnessCheck": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeepEqualityCorrectnessCheck", + "camelCase": { + "unsafeName": "deepEqualityCorrectnessCheck", + "safeName": "deepEqualityCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "deep_equality_correctness_check", + "safeName": "deep_equality_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY_CORRECTNESS_CHECK", + "safeName": "DEEP_EQUALITY_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "DeepEqualityCorrectnessCheck", + "safeName": "DeepEqualityCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + } + } + ] + }, + "type_v2/problem:VoidFunctionDefinitionThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinitionThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionDefinitionThatTakesActualResult", + "safeName": "voidFunctionDefinitionThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_definition_that_takes_actual_result", + "safeName": "void_function_definition_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinitionThatTakesActualResult", + "safeName": "VoidFunctionDefinitionThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/problem:TestCaseImplementationDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescription", + "camelCase": { + "unsafeName": "testCaseImplementationDescription", + "safeName": "testCaseImplementationDescription" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description", + "safeName": "test_case_implementation_description" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescription", + "safeName": "TestCaseImplementationDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseImplementationDescriptionBoard" + } + } + } + ] + }, + "type_v2/problem:TestCaseImplementationDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescriptionBoard", + "camelCase": { + "unsafeName": "testCaseImplementationDescriptionBoard", + "safeName": "testCaseImplementationDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description_board", + "safeName": "test_case_implementation_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescriptionBoard", + "safeName": "TestCaseImplementationDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "paramId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/problem:ParameterId" + }, + "discriminantValue": { + "name": { + "originalName": "paramId", + "camelCase": { + "unsafeName": "paramID", + "safeName": "paramID" + }, + "snakeCase": { + "unsafeName": "param_id", + "safeName": "param_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM_ID", + "safeName": "PARAM_ID" + }, + "pascalCase": { + "unsafeName": "ParamID", + "safeName": "ParamID" + } + }, + "wireValue": "paramId" + }, + "properties": null + } + } + }, + "type_v2/problem:TestCaseMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseMetadata", + "camelCase": { + "unsafeName": "testCaseMetadata", + "safeName": "testCaseMetadata" + }, + "snakeCase": { + "unsafeName": "test_case_metadata", + "safeName": "test_case_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_METADATA", + "safeName": "TEST_CASE_METADATA" + }, + "pascalCase": { + "unsafeName": "TestCaseMetadata", + "safeName": "TestCaseMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:FunctionImplementationForMultipleLanguages": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementationForMultipleLanguages", + "camelCase": { + "unsafeName": "functionImplementationForMultipleLanguages", + "safeName": "functionImplementationForMultipleLanguages" + }, + "snakeCase": { + "unsafeName": "function_implementation_for_multiple_languages", + "safeName": "function_implementation_for_multiple_languages" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES", + "safeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "FunctionImplementationForMultipleLanguages", + "safeName": "FunctionImplementationForMultipleLanguages" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "codeByLanguage", + "camelCase": { + "unsafeName": "codeByLanguage", + "safeName": "codeByLanguage" + }, + "snakeCase": { + "unsafeName": "code_by_language", + "safeName": "code_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_BY_LANGUAGE", + "safeName": "CODE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "CodeByLanguage", + "safeName": "CodeByLanguage" + } + }, + "wireValue": "codeByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:FunctionImplementation" + } + } + } + ] + }, + "type_v2/problem:FunctionImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementation", + "camelCase": { + "unsafeName": "functionImplementation", + "safeName": "functionImplementation" + }, + "snakeCase": { + "unsafeName": "function_implementation", + "safeName": "function_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION", + "safeName": "FUNCTION_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "FunctionImplementation", + "safeName": "FunctionImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "impl", + "camelCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "snakeCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "screamingSnakeCase": { + "unsafeName": "IMPL", + "safeName": "IMPL" + }, + "pascalCase": { + "unsafeName": "Impl", + "safeName": "Impl" + } + }, + "wireValue": "impl" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "imports", + "camelCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "snakeCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTS", + "safeName": "IMPORTS" + }, + "pascalCase": { + "unsafeName": "Imports", + "safeName": "Imports" + } + }, + "wireValue": "imports" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:GeneratedFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "GeneratedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "generatedTestCaseFiles", + "camelCase": { + "unsafeName": "generatedTestCaseFiles", + "safeName": "generatedTestCaseFiles" + }, + "snakeCase": { + "unsafeName": "generated_test_case_files", + "safeName": "generated_test_case_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEST_CASE_FILES", + "safeName": "GENERATED_TEST_CASE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTestCaseFiles", + "safeName": "GeneratedTestCaseFiles" + } + }, + "wireValue": "generatedTestCaseFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "generatedTemplateFiles", + "camelCase": { + "unsafeName": "generatedTemplateFiles", + "safeName": "generatedTemplateFiles" + }, + "snakeCase": { + "unsafeName": "generated_template_files", + "safeName": "generated_template_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEMPLATE_FILES", + "safeName": "GENERATED_TEMPLATE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTemplateFiles", + "safeName": "GeneratedTemplateFiles" + } + }, + "wireValue": "generatedTemplateFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "other", + "camelCase": { + "unsafeName": "other", + "safeName": "other" + }, + "snakeCase": { + "unsafeName": "other", + "safeName": "other" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER", + "safeName": "OTHER" + }, + "pascalCase": { + "unsafeName": "Other", + "safeName": "Other" + } + }, + "wireValue": "other" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + } + ] + }, + "type_v2/problem:CustomFiles": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CustomFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "basic": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:BasicCustomFiles", + "discriminantValue": { + "name": { + "originalName": "basic", + "camelCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "snakeCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC", + "safeName": "BASIC" + }, + "pascalCase": { + "unsafeName": "Basic", + "safeName": "Basic" + } + }, + "wireValue": "basic" + }, + "properties": [] + }, + "custom": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + }, + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": null + } + } + }, + "type_v2/problem:BasicCustomFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicCustomFiles", + "camelCase": { + "unsafeName": "basicCustomFiles", + "safeName": "basicCustomFiles" + }, + "snakeCase": { + "unsafeName": "basic_custom_files", + "safeName": "basic_custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_CUSTOM_FILES", + "safeName": "BASIC_CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "BasicCustomFiles", + "safeName": "BasicCustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:BasicTestCaseTemplate" + } + } + ] + }, + "type_v2/problem:Files": { + "type": "object", + "declaration": { + "name": { + "originalName": "Files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/problem:FileInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfoV2", + "camelCase": { + "unsafeName": "fileInfoV2", + "safeName": "fileInfoV2" + }, + "snakeCase": { + "unsafeName": "file_info_v2", + "safeName": "file_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO_V2", + "safeName": "FILE_INFO_V2" + }, + "pascalCase": { + "unsafeName": "FileInfoV2", + "safeName": "FileInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "editable", + "camelCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "snakeCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "screamingSnakeCase": { + "unsafeName": "EDITABLE", + "safeName": "EDITABLE" + }, + "pascalCase": { + "unsafeName": "Editable", + "safeName": "Editable" + } + }, + "wireValue": "editable" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/problem:DefaultProvidedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "DefaultProvidedFile", + "camelCase": { + "unsafeName": "defaultProvidedFile", + "safeName": "defaultProvidedFile" + }, + "snakeCase": { + "unsafeName": "default_provided_file", + "safeName": "default_provided_file" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_PROVIDED_FILE", + "safeName": "DEFAULT_PROVIDED_FILE" + }, + "pascalCase": { + "unsafeName": "DefaultProvidedFile", + "safeName": "DefaultProvidedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + }, + { + "name": { + "name": { + "originalName": "relatedTypes", + "camelCase": { + "unsafeName": "relatedTypes", + "safeName": "relatedTypes" + }, + "snakeCase": { + "unsafeName": "related_types", + "safeName": "related_types" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_TYPES", + "safeName": "RELATED_TYPES" + }, + "pascalCase": { + "unsafeName": "RelatedTypes", + "safeName": "RelatedTypes" + } + }, + "wireValue": "relatedTypes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/problem:FunctionSignature": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FunctionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "void": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "void", + "camelCase": { + "unsafeName": "void", + "safeName": "void" + }, + "snakeCase": { + "unsafeName": "void", + "safeName": "void" + }, + "screamingSnakeCase": { + "unsafeName": "VOID", + "safeName": "VOID" + }, + "pascalCase": { + "unsafeName": "Void", + "safeName": "Void" + } + }, + "wireValue": "void" + }, + "properties": [] + }, + "nonVoid": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:NonVoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "nonVoid", + "camelCase": { + "unsafeName": "nonVoid", + "safeName": "nonVoid" + }, + "snakeCase": { + "unsafeName": "non_void", + "safeName": "non_void" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID", + "safeName": "NON_VOID" + }, + "pascalCase": { + "unsafeName": "NonVoid", + "safeName": "NonVoid" + } + }, + "wireValue": "nonVoid" + }, + "properties": [] + }, + "voidThatTakesActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/problem:VoidFunctionSignatureThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "voidThatTakesActualResult", + "camelCase": { + "unsafeName": "voidThatTakesActualResult", + "safeName": "voidThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_that_takes_actual_result", + "safeName": "void_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidThatTakesActualResult", + "safeName": "VoidThatTakesActualResult" + } + }, + "wireValue": "voidThatTakesActualResult" + }, + "properties": [] + } + } + }, + "type_v2/problem:GetFunctionSignatureRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureRequest", + "camelCase": { + "unsafeName": "getFunctionSignatureRequest", + "safeName": "getFunctionSignatureRequest" + }, + "snakeCase": { + "unsafeName": "get_function_signature_request", + "safeName": "get_function_signature_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_REQUEST", + "safeName": "GET_FUNCTION_SIGNATURE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureRequest", + "safeName": "GetFunctionSignatureRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "wireValue": "functionSignature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:FunctionSignature" + } + } + ] + }, + "type_v2/problem:GetFunctionSignatureResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureResponse", + "camelCase": { + "unsafeName": "getFunctionSignatureResponse", + "safeName": "getFunctionSignatureResponse" + }, + "snakeCase": { + "unsafeName": "get_function_signature_response", + "safeName": "get_function_signature_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_RESPONSE", + "safeName": "GET_FUNCTION_SIGNATURE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureResponse", + "safeName": "GetFunctionSignatureResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionByLanguage", + "camelCase": { + "unsafeName": "functionByLanguage", + "safeName": "functionByLanguage" + }, + "snakeCase": { + "unsafeName": "function_by_language", + "safeName": "function_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_BY_LANGUAGE", + "safeName": "FUNCTION_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FunctionByLanguage", + "safeName": "FunctionByLanguage" + } + }, + "wireValue": "functionByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/problem:GetBasicSolutionFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileRequest", + "camelCase": { + "unsafeName": "getBasicSolutionFileRequest", + "safeName": "getBasicSolutionFileRequest" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_request", + "safeName": "get_basic_solution_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_REQUEST", + "safeName": "GET_BASIC_SOLUTION_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileRequest", + "safeName": "GetBasicSolutionFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:NonVoidFunctionSignature" + } + } + ] + }, + "type_v2/problem:GetBasicSolutionFileResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileResponse", + "camelCase": { + "unsafeName": "getBasicSolutionFileResponse", + "safeName": "getBasicSolutionFileResponse" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_response", + "safeName": "get_basic_solution_file_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_RESPONSE", + "safeName": "GET_BASIC_SOLUTION_FILE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileResponse", + "safeName": "GetBasicSolutionFileResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFileByLanguage", + "camelCase": { + "unsafeName": "solutionFileByLanguage", + "safeName": "solutionFileByLanguage" + }, + "snakeCase": { + "unsafeName": "solution_file_by_language", + "safeName": "solution_file_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE_BY_LANGUAGE", + "safeName": "SOLUTION_FILE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "SolutionFileByLanguage", + "safeName": "SolutionFileByLanguage" + } + }, + "wireValue": "solutionFileByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/problem:GetGeneratedTestCaseFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseFileRequest", + "safeName": "getGeneratedTestCaseFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_file_request", + "safeName": "get_generated_test_case_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseFileRequest", + "safeName": "GetGeneratedTestCaseFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseV2" + } + } + ] + }, + "type_v2/problem:GetGeneratedTestCaseTemplateFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseTemplateFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseTemplateFileRequest", + "safeName": "getGeneratedTestCaseTemplateFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_template_file_request", + "safeName": "get_generated_test_case_template_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseTemplateFileRequest", + "safeName": "GetGeneratedTestCaseTemplateFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseTemplate" + } + } + ] + }, + "type_v2/v3/problem:TestCaseTemplateId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseTemplateId", + "camelCase": { + "unsafeName": "testCaseTemplateID", + "safeName": "testCaseTemplateID" + }, + "snakeCase": { + "unsafeName": "test_case_template_id", + "safeName": "test_case_template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE_ID", + "safeName": "TEST_CASE_TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplateID", + "safeName": "TestCaseTemplateID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:TestCaseId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "TestCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:ParameterId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "ParameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_v2/v3/problem:ProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "ProblemInfoV2", + "camelCase": { + "unsafeName": "problemInfoV2", + "safeName": "problemInfoV2" + }, + "snakeCase": { + "unsafeName": "problem_info_v2", + "safeName": "problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_INFO_V2", + "safeName": "PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "ProblemInfoV2", + "safeName": "ProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "generatedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "wireValue": "generatedFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:GeneratedFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:LightweightProblemInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "LightweightProblemInfoV2", + "camelCase": { + "unsafeName": "lightweightProblemInfoV2", + "safeName": "lightweightProblemInfoV2" + }, + "snakeCase": { + "unsafeName": "lightweight_problem_info_v2", + "safeName": "lightweight_problem_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "LIGHTWEIGHT_PROBLEM_INFO_V2", + "safeName": "LIGHTWEIGHT_PROBLEM_INFO_V2" + }, + "pascalCase": { + "unsafeName": "LightweightProblemInfoV2", + "safeName": "LightweightProblemInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "variableTypes", + "camelCase": { + "unsafeName": "variableTypes", + "safeName": "variableTypes" + }, + "snakeCase": { + "unsafeName": "variable_types", + "safeName": "variable_types" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPES", + "safeName": "VARIABLE_TYPES" + }, + "pascalCase": { + "unsafeName": "VariableTypes", + "safeName": "VariableTypes" + } + }, + "wireValue": "variableTypes" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/v3/problem:CreateProblemRequestV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "CreateProblemRequestV2", + "camelCase": { + "unsafeName": "createProblemRequestV2", + "safeName": "createProblemRequestV2" + }, + "snakeCase": { + "unsafeName": "create_problem_request_v2", + "safeName": "create_problem_request_v2" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM_REQUEST_V2", + "safeName": "CREATE_PROBLEM_REQUEST_V2" + }, + "pascalCase": { + "unsafeName": "CreateProblemRequestV2", + "safeName": "CreateProblemRequestV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "problemName", + "camelCase": { + "unsafeName": "problemName", + "safeName": "problemName" + }, + "snakeCase": { + "unsafeName": "problem_name", + "safeName": "problem_name" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_NAME", + "safeName": "PROBLEM_NAME" + }, + "pascalCase": { + "unsafeName": "ProblemName", + "safeName": "ProblemName" + } + }, + "wireValue": "problemName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "problemDescription", + "camelCase": { + "unsafeName": "problemDescription", + "safeName": "problemDescription" + }, + "snakeCase": { + "unsafeName": "problem_description", + "safeName": "problem_description" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_DESCRIPTION", + "safeName": "PROBLEM_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "ProblemDescription", + "safeName": "ProblemDescription" + } + }, + "wireValue": "problemDescription" + }, + "typeReference": { + "_type": "named", + "value": "type_problem:ProblemDescription" + } + }, + { + "name": { + "name": { + "originalName": "customFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "wireValue": "customFiles" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:CustomFiles" + } + }, + { + "name": { + "name": { + "originalName": "customTestCaseTemplates", + "camelCase": { + "unsafeName": "customTestCaseTemplates", + "safeName": "customTestCaseTemplates" + }, + "snakeCase": { + "unsafeName": "custom_test_case_templates", + "safeName": "custom_test_case_templates" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_TEST_CASE_TEMPLATES", + "safeName": "CUSTOM_TEST_CASE_TEMPLATES" + }, + "pascalCase": { + "unsafeName": "CustomTestCaseTemplates", + "safeName": "CustomTestCaseTemplates" + } + }, + "wireValue": "customTestCaseTemplates" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testcases", + "camelCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "snakeCase": { + "unsafeName": "testcases", + "safeName": "testcases" + }, + "screamingSnakeCase": { + "unsafeName": "TESTCASES", + "safeName": "TESTCASES" + }, + "pascalCase": { + "unsafeName": "Testcases", + "safeName": "Testcases" + } + }, + "wireValue": "testcases" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + }, + { + "name": { + "name": { + "originalName": "supportedLanguages", + "camelCase": { + "unsafeName": "supportedLanguages", + "safeName": "supportedLanguages" + }, + "snakeCase": { + "unsafeName": "supported_languages", + "safeName": "supported_languages" + }, + "screamingSnakeCase": { + "unsafeName": "SUPPORTED_LANGUAGES", + "safeName": "SUPPORTED_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "SupportedLanguages", + "safeName": "SupportedLanguages" + } + }, + "wireValue": "supportedLanguages" + }, + "typeReference": { + "_type": "set", + "value": { + "_type": "named", + "value": "type_commons:Language" + } + } + }, + { + "name": { + "name": { + "originalName": "isPublic", + "camelCase": { + "unsafeName": "isPublic", + "safeName": "isPublic" + }, + "snakeCase": { + "unsafeName": "is_public", + "safeName": "is_public" + }, + "screamingSnakeCase": { + "unsafeName": "IS_PUBLIC", + "safeName": "IS_PUBLIC" + }, + "pascalCase": { + "unsafeName": "IsPublic", + "safeName": "IsPublic" + } + }, + "wireValue": "isPublic" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:TestCaseV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseV2", + "camelCase": { + "unsafeName": "testCaseV2", + "safeName": "testCaseV2" + }, + "snakeCase": { + "unsafeName": "test_case_v2", + "safeName": "test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_V2", + "safeName": "TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "TestCaseV2", + "safeName": "TestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "wireValue": "metadata" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseMetadata" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationReference" + } + }, + { + "name": { + "name": { + "originalName": "arguments", + "camelCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "snakeCase": { + "unsafeName": "arguments", + "safeName": "arguments" + }, + "screamingSnakeCase": { + "unsafeName": "ARGUMENTS", + "safeName": "ARGUMENTS" + }, + "pascalCase": { + "unsafeName": "Arguments", + "safeName": "Arguments" + } + }, + "wireValue": "arguments" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + }, + "value": { + "_type": "named", + "value": "type_commons:VariableValue" + } + } + }, + { + "name": { + "name": { + "originalName": "expects", + "camelCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "snakeCase": { + "unsafeName": "expects", + "safeName": "expects" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTS", + "safeName": "EXPECTS" + }, + "pascalCase": { + "unsafeName": "Expects", + "safeName": "Expects" + } + }, + "wireValue": "expects" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseExpects" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseExpects": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseExpects", + "camelCase": { + "unsafeName": "testCaseExpects", + "safeName": "testCaseExpects" + }, + "snakeCase": { + "unsafeName": "test_case_expects", + "safeName": "test_case_expects" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_EXPECTS", + "safeName": "TEST_CASE_EXPECTS" + }, + "pascalCase": { + "unsafeName": "TestCaseExpects", + "safeName": "TestCaseExpects" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedStdout", + "camelCase": { + "unsafeName": "expectedStdout", + "safeName": "expectedStdout" + }, + "snakeCase": { + "unsafeName": "expected_stdout", + "safeName": "expected_stdout" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_STDOUT", + "safeName": "EXPECTED_STDOUT" + }, + "pascalCase": { + "unsafeName": "ExpectedStdout", + "safeName": "ExpectedStdout" + } + }, + "wireValue": "expectedStdout" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationReference": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationReference", + "camelCase": { + "unsafeName": "testCaseImplementationReference", + "safeName": "testCaseImplementationReference" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_reference", + "safeName": "test_case_implementation_reference" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_REFERENCE", + "safeName": "TEST_CASE_IMPLEMENTATION_REFERENCE" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationReference", + "safeName": "TestCaseImplementationReference" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "templateId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + }, + "discriminantValue": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "properties": null + }, + "implementation": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:TestCaseImplementation", + "discriminantValue": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "properties": [] + } + } + }, + "type_v2/v3/problem:BasicTestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + } + ] + }, + "type_v2/v3/problem:TestCaseTemplate": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseTemplate", + "camelCase": { + "unsafeName": "testCaseTemplate", + "safeName": "testCaseTemplate" + }, + "snakeCase": { + "unsafeName": "test_case_template", + "safeName": "test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_TEMPLATE", + "safeName": "TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "TestCaseTemplate", + "safeName": "TestCaseTemplate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "templateId", + "camelCase": { + "unsafeName": "templateID", + "safeName": "templateID" + }, + "snakeCase": { + "unsafeName": "template_id", + "safeName": "template_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE_ID", + "safeName": "TEMPLATE_ID" + }, + "pascalCase": { + "unsafeName": "TemplateID", + "safeName": "TemplateID" + } + }, + "wireValue": "templateId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplateId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "implementation", + "camelCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "snakeCase": { + "unsafeName": "implementation", + "safeName": "implementation" + }, + "screamingSnakeCase": { + "unsafeName": "IMPLEMENTATION", + "safeName": "IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "Implementation", + "safeName": "Implementation" + } + }, + "wireValue": "implementation" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementation" + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementation", + "camelCase": { + "unsafeName": "testCaseImplementation", + "safeName": "testCaseImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_implementation", + "safeName": "test_case_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION", + "safeName": "TEST_CASE_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementation", + "safeName": "TestCaseImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + }, + "wireValue": "description" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescription" + } + }, + { + "name": { + "name": { + "originalName": "function", + "camelCase": { + "unsafeName": "function", + "safeName": "function" + }, + "snakeCase": { + "unsafeName": "function", + "safeName": "function" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION", + "safeName": "FUNCTION" + }, + "pascalCase": { + "unsafeName": "Function", + "safeName": "Function" + } + }, + "wireValue": "function" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseFunction" + } + } + ] + }, + "type_v2/v3/problem:TestCaseFunction": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseFunction", + "camelCase": { + "unsafeName": "testCaseFunction", + "safeName": "testCaseFunction" + }, + "snakeCase": { + "unsafeName": "test_case_function", + "safeName": "test_case_function" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_FUNCTION", + "safeName": "TEST_CASE_FUNCTION" + }, + "pascalCase": { + "unsafeName": "TestCaseFunction", + "safeName": "TestCaseFunction" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "withActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:TestCaseWithActualResultImplementation", + "discriminantValue": { + "name": { + "originalName": "withActualResult", + "camelCase": { + "unsafeName": "withActualResult", + "safeName": "withActualResult" + }, + "snakeCase": { + "unsafeName": "with_actual_result", + "safeName": "with_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "WITH_ACTUAL_RESULT", + "safeName": "WITH_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "WithActualResult", + "safeName": "WithActualResult" + } + }, + "wireValue": "withActualResult" + }, + "properties": [] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionDefinition", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [] + } + } + }, + "type_v2/v3/problem:TestCaseWithActualResultImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseWithActualResultImplementation", + "camelCase": { + "unsafeName": "testCaseWithActualResultImplementation", + "safeName": "testCaseWithActualResultImplementation" + }, + "snakeCase": { + "unsafeName": "test_case_with_actual_result_implementation", + "safeName": "test_case_with_actual_result_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION", + "safeName": "TEST_CASE_WITH_ACTUAL_RESULT_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "TestCaseWithActualResultImplementation", + "safeName": "TestCaseWithActualResultImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "getActualResult", + "camelCase": { + "unsafeName": "getActualResult", + "safeName": "getActualResult" + }, + "snakeCase": { + "unsafeName": "get_actual_result", + "safeName": "get_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ACTUAL_RESULT", + "safeName": "GET_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "GetActualResult", + "safeName": "GetActualResult" + } + }, + "wireValue": "getActualResult" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionDefinition" + } + }, + { + "name": { + "name": { + "originalName": "assertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "wireValue": "assertCorrectnessCheck" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:AssertCorrectnessCheck" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinition", + "camelCase": { + "unsafeName": "voidFunctionDefinition", + "safeName": "voidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "void_function_definition", + "safeName": "void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION", + "safeName": "VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinition", + "safeName": "VoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:Parameter": { + "type": "object", + "declaration": { + "name": { + "originalName": "Parameter", + "camelCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "snakeCase": { + "unsafeName": "parameter", + "safeName": "parameter" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER", + "safeName": "PARAMETER" + }, + "pascalCase": { + "unsafeName": "Parameter", + "safeName": "Parameter" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameterId", + "camelCase": { + "unsafeName": "parameterID", + "safeName": "parameterID" + }, + "snakeCase": { + "unsafeName": "parameter_id", + "safeName": "parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETER_ID", + "safeName": "PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ParameterID", + "safeName": "ParameterID" + } + }, + "wireValue": "parameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "variableType", + "camelCase": { + "unsafeName": "variableType", + "safeName": "variableType" + }, + "snakeCase": { + "unsafeName": "variable_type", + "safeName": "variable_type" + }, + "screamingSnakeCase": { + "unsafeName": "VARIABLE_TYPE", + "safeName": "VARIABLE_TYPE" + }, + "pascalCase": { + "unsafeName": "VariableType", + "safeName": "VariableType" + } + }, + "wireValue": "variableType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:NonVoidFunctionDefinition": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionDefinition", + "camelCase": { + "unsafeName": "nonVoidFunctionDefinition", + "safeName": "nonVoidFunctionDefinition" + }, + "snakeCase": { + "unsafeName": "non_void_function_definition", + "safeName": "non_void_function_definition" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_DEFINITION", + "safeName": "NON_VOID_FUNCTION_DEFINITION" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionDefinition", + "safeName": "NonVoidFunctionDefinition" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignature", + "camelCase": { + "unsafeName": "voidFunctionSignature", + "safeName": "voidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "void_function_signature", + "safeName": "void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE", + "safeName": "VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignature", + "safeName": "VoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + } + ] + }, + "type_v2/v3/problem:NonVoidFunctionSignature": { + "type": "object", + "declaration": { + "name": { + "originalName": "NonVoidFunctionSignature", + "camelCase": { + "unsafeName": "nonVoidFunctionSignature", + "safeName": "nonVoidFunctionSignature" + }, + "snakeCase": { + "unsafeName": "non_void_function_signature", + "safeName": "non_void_function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID_FUNCTION_SIGNATURE", + "safeName": "NON_VOID_FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "NonVoidFunctionSignature", + "safeName": "NonVoidFunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "returnType", + "camelCase": { + "unsafeName": "returnType", + "safeName": "returnType" + }, + "snakeCase": { + "unsafeName": "return_type", + "safeName": "return_type" + }, + "screamingSnakeCase": { + "unsafeName": "RETURN_TYPE", + "safeName": "RETURN_TYPE" + }, + "pascalCase": { + "unsafeName": "ReturnType", + "safeName": "ReturnType" + } + }, + "wireValue": "returnType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionSignatureThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionSignatureThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionSignatureThatTakesActualResult", + "safeName": "voidFunctionSignatureThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_signature_that_takes_actual_result", + "safeName": "void_function_signature_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_SIGNATURE_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionSignatureThatTakesActualResult", + "safeName": "VoidFunctionSignatureThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "parameters", + "camelCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "snakeCase": { + "unsafeName": "parameters", + "safeName": "parameters" + }, + "screamingSnakeCase": { + "unsafeName": "PARAMETERS", + "safeName": "PARAMETERS" + }, + "pascalCase": { + "unsafeName": "Parameters", + "safeName": "Parameters" + } + }, + "wireValue": "parameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "actualResultType", + "camelCase": { + "unsafeName": "actualResultType", + "safeName": "actualResultType" + }, + "snakeCase": { + "unsafeName": "actual_result_type", + "safeName": "actual_result_type" + }, + "screamingSnakeCase": { + "unsafeName": "ACTUAL_RESULT_TYPE", + "safeName": "ACTUAL_RESULT_TYPE" + }, + "pascalCase": { + "unsafeName": "ActualResultType", + "safeName": "ActualResultType" + } + }, + "wireValue": "actualResultType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + ] + }, + "type_v2/v3/problem:AssertCorrectnessCheck": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "AssertCorrectnessCheck", + "camelCase": { + "unsafeName": "assertCorrectnessCheck", + "safeName": "assertCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "assert_correctness_check", + "safeName": "assert_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "ASSERT_CORRECTNESS_CHECK", + "safeName": "ASSERT_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "AssertCorrectnessCheck", + "safeName": "AssertCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "deepEquality": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:DeepEqualityCorrectnessCheck", + "discriminantValue": { + "name": { + "originalName": "deepEquality", + "camelCase": { + "unsafeName": "deepEquality", + "safeName": "deepEquality" + }, + "snakeCase": { + "unsafeName": "deep_equality", + "safeName": "deep_equality" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY", + "safeName": "DEEP_EQUALITY" + }, + "pascalCase": { + "unsafeName": "DeepEquality", + "safeName": "DeepEquality" + } + }, + "wireValue": "deepEquality" + }, + "properties": [] + }, + "custom": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionDefinitionThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": [] + } + } + }, + "type_v2/v3/problem:DeepEqualityCorrectnessCheck": { + "type": "object", + "declaration": { + "name": { + "originalName": "DeepEqualityCorrectnessCheck", + "camelCase": { + "unsafeName": "deepEqualityCorrectnessCheck", + "safeName": "deepEqualityCorrectnessCheck" + }, + "snakeCase": { + "unsafeName": "deep_equality_correctness_check", + "safeName": "deep_equality_correctness_check" + }, + "screamingSnakeCase": { + "unsafeName": "DEEP_EQUALITY_CORRECTNESS_CHECK", + "safeName": "DEEP_EQUALITY_CORRECTNESS_CHECK" + }, + "pascalCase": { + "unsafeName": "DeepEqualityCorrectnessCheck", + "safeName": "DeepEqualityCorrectnessCheck" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "expectedValueParameterId", + "camelCase": { + "unsafeName": "expectedValueParameterID", + "safeName": "expectedValueParameterID" + }, + "snakeCase": { + "unsafeName": "expected_value_parameter_id", + "safeName": "expected_value_parameter_id" + }, + "screamingSnakeCase": { + "unsafeName": "EXPECTED_VALUE_PARAMETER_ID", + "safeName": "EXPECTED_VALUE_PARAMETER_ID" + }, + "pascalCase": { + "unsafeName": "ExpectedValueParameterID", + "safeName": "ExpectedValueParameterID" + } + }, + "wireValue": "expectedValueParameterId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + } + } + ] + }, + "type_v2/v3/problem:VoidFunctionDefinitionThatTakesActualResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "VoidFunctionDefinitionThatTakesActualResult", + "camelCase": { + "unsafeName": "voidFunctionDefinitionThatTakesActualResult", + "safeName": "voidFunctionDefinitionThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_function_definition_that_takes_actual_result", + "safeName": "void_function_definition_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_FUNCTION_DEFINITION_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidFunctionDefinitionThatTakesActualResult", + "safeName": "VoidFunctionDefinitionThatTakesActualResult" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "additionalParameters", + "camelCase": { + "unsafeName": "additionalParameters", + "safeName": "additionalParameters" + }, + "snakeCase": { + "unsafeName": "additional_parameters", + "safeName": "additional_parameters" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_PARAMETERS", + "safeName": "ADDITIONAL_PARAMETERS" + }, + "pascalCase": { + "unsafeName": "AdditionalParameters", + "safeName": "AdditionalParameters" + } + }, + "wireValue": "additionalParameters" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Parameter" + } + } + }, + { + "name": { + "name": { + "originalName": "code", + "camelCase": { + "unsafeName": "code", + "safeName": "code" + }, + "snakeCase": { + "unsafeName": "code", + "safeName": "code" + }, + "screamingSnakeCase": { + "unsafeName": "CODE", + "safeName": "CODE" + }, + "pascalCase": { + "unsafeName": "Code", + "safeName": "Code" + } + }, + "wireValue": "code" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementationForMultipleLanguages" + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationDescription": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescription", + "camelCase": { + "unsafeName": "testCaseImplementationDescription", + "safeName": "testCaseImplementationDescription" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description", + "safeName": "test_case_implementation_description" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescription", + "safeName": "TestCaseImplementationDescription" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "boards", + "camelCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "snakeCase": { + "unsafeName": "boards", + "safeName": "boards" + }, + "screamingSnakeCase": { + "unsafeName": "BOARDS", + "safeName": "BOARDS" + }, + "pascalCase": { + "unsafeName": "Boards", + "safeName": "Boards" + } + }, + "wireValue": "boards" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseImplementationDescriptionBoard" + } + } + } + ] + }, + "type_v2/v3/problem:TestCaseImplementationDescriptionBoard": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "TestCaseImplementationDescriptionBoard", + "camelCase": { + "unsafeName": "testCaseImplementationDescriptionBoard", + "safeName": "testCaseImplementationDescriptionBoard" + }, + "snakeCase": { + "unsafeName": "test_case_implementation_description_board", + "safeName": "test_case_implementation_description_board" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD", + "safeName": "TEST_CASE_IMPLEMENTATION_DESCRIPTION_BOARD" + }, + "pascalCase": { + "unsafeName": "TestCaseImplementationDescriptionBoard", + "safeName": "TestCaseImplementationDescriptionBoard" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "html": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "html", + "camelCase": { + "unsafeName": "html", + "safeName": "html" + }, + "snakeCase": { + "unsafeName": "html", + "safeName": "html" + }, + "screamingSnakeCase": { + "unsafeName": "HTML", + "safeName": "HTML" + }, + "pascalCase": { + "unsafeName": "HTML", + "safeName": "HTML" + } + }, + "wireValue": "html" + }, + "properties": null + }, + "paramId": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:ParameterId" + }, + "discriminantValue": { + "name": { + "originalName": "paramId", + "camelCase": { + "unsafeName": "paramID", + "safeName": "paramID" + }, + "snakeCase": { + "unsafeName": "param_id", + "safeName": "param_id" + }, + "screamingSnakeCase": { + "unsafeName": "PARAM_ID", + "safeName": "PARAM_ID" + }, + "pascalCase": { + "unsafeName": "ParamID", + "safeName": "ParamID" + } + }, + "wireValue": "paramId" + }, + "properties": null + } + } + }, + "type_v2/v3/problem:TestCaseMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "TestCaseMetadata", + "camelCase": { + "unsafeName": "testCaseMetadata", + "safeName": "testCaseMetadata" + }, + "snakeCase": { + "unsafeName": "test_case_metadata", + "safeName": "test_case_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_METADATA", + "safeName": "TEST_CASE_METADATA" + }, + "pascalCase": { + "unsafeName": "TestCaseMetadata", + "safeName": "TestCaseMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "hidden", + "camelCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "snakeCase": { + "unsafeName": "hidden", + "safeName": "hidden" + }, + "screamingSnakeCase": { + "unsafeName": "HIDDEN", + "safeName": "HIDDEN" + }, + "pascalCase": { + "unsafeName": "Hidden", + "safeName": "Hidden" + } + }, + "wireValue": "hidden" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:FunctionImplementationForMultipleLanguages": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementationForMultipleLanguages", + "camelCase": { + "unsafeName": "functionImplementationForMultipleLanguages", + "safeName": "functionImplementationForMultipleLanguages" + }, + "snakeCase": { + "unsafeName": "function_implementation_for_multiple_languages", + "safeName": "function_implementation_for_multiple_languages" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES", + "safeName": "FUNCTION_IMPLEMENTATION_FOR_MULTIPLE_LANGUAGES" + }, + "pascalCase": { + "unsafeName": "FunctionImplementationForMultipleLanguages", + "safeName": "FunctionImplementationForMultipleLanguages" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "codeByLanguage", + "camelCase": { + "unsafeName": "codeByLanguage", + "safeName": "codeByLanguage" + }, + "snakeCase": { + "unsafeName": "code_by_language", + "safeName": "code_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "CODE_BY_LANGUAGE", + "safeName": "CODE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "CodeByLanguage", + "safeName": "CodeByLanguage" + } + }, + "wireValue": "codeByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionImplementation" + } + } + } + ] + }, + "type_v2/v3/problem:FunctionImplementation": { + "type": "object", + "declaration": { + "name": { + "originalName": "FunctionImplementation", + "camelCase": { + "unsafeName": "functionImplementation", + "safeName": "functionImplementation" + }, + "snakeCase": { + "unsafeName": "function_implementation", + "safeName": "function_implementation" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_IMPLEMENTATION", + "safeName": "FUNCTION_IMPLEMENTATION" + }, + "pascalCase": { + "unsafeName": "FunctionImplementation", + "safeName": "FunctionImplementation" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "impl", + "camelCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "snakeCase": { + "unsafeName": "impl", + "safeName": "impl" + }, + "screamingSnakeCase": { + "unsafeName": "IMPL", + "safeName": "IMPL" + }, + "pascalCase": { + "unsafeName": "Impl", + "safeName": "Impl" + } + }, + "wireValue": "impl" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "imports", + "camelCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "snakeCase": { + "unsafeName": "imports", + "safeName": "imports" + }, + "screamingSnakeCase": { + "unsafeName": "IMPORTS", + "safeName": "IMPORTS" + }, + "pascalCase": { + "unsafeName": "Imports", + "safeName": "Imports" + } + }, + "wireValue": "imports" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:GeneratedFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "GeneratedFiles", + "camelCase": { + "unsafeName": "generatedFiles", + "safeName": "generatedFiles" + }, + "snakeCase": { + "unsafeName": "generated_files", + "safeName": "generated_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_FILES", + "safeName": "GENERATED_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedFiles", + "safeName": "GeneratedFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "generatedTestCaseFiles", + "camelCase": { + "unsafeName": "generatedTestCaseFiles", + "safeName": "generatedTestCaseFiles" + }, + "snakeCase": { + "unsafeName": "generated_test_case_files", + "safeName": "generated_test_case_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEST_CASE_FILES", + "safeName": "GENERATED_TEST_CASE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTestCaseFiles", + "safeName": "GeneratedTestCaseFiles" + } + }, + "wireValue": "generatedTestCaseFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "generatedTemplateFiles", + "camelCase": { + "unsafeName": "generatedTemplateFiles", + "safeName": "generatedTemplateFiles" + }, + "snakeCase": { + "unsafeName": "generated_template_files", + "safeName": "generated_template_files" + }, + "screamingSnakeCase": { + "unsafeName": "GENERATED_TEMPLATE_FILES", + "safeName": "GENERATED_TEMPLATE_FILES" + }, + "pascalCase": { + "unsafeName": "GeneratedTemplateFiles", + "safeName": "GeneratedTemplateFiles" + } + }, + "wireValue": "generatedTemplateFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "other", + "camelCase": { + "unsafeName": "other", + "safeName": "other" + }, + "snakeCase": { + "unsafeName": "other", + "safeName": "other" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER", + "safeName": "OTHER" + }, + "pascalCase": { + "unsafeName": "Other", + "safeName": "Other" + } + }, + "wireValue": "other" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + } + ] + }, + "type_v2/v3/problem:CustomFiles": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "CustomFiles", + "camelCase": { + "unsafeName": "customFiles", + "safeName": "customFiles" + }, + "snakeCase": { + "unsafeName": "custom_files", + "safeName": "custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM_FILES", + "safeName": "CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "CustomFiles", + "safeName": "CustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "basic": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:BasicCustomFiles", + "discriminantValue": { + "name": { + "originalName": "basic", + "camelCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "snakeCase": { + "unsafeName": "basic", + "safeName": "basic" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC", + "safeName": "BASIC" + }, + "pascalCase": { + "unsafeName": "Basic", + "safeName": "Basic" + } + }, + "wireValue": "basic" + }, + "properties": [] + }, + "custom": { + "type": "singleProperty", + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + }, + "discriminantValue": { + "name": { + "originalName": "custom", + "camelCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "snakeCase": { + "unsafeName": "custom", + "safeName": "custom" + }, + "screamingSnakeCase": { + "unsafeName": "CUSTOM", + "safeName": "CUSTOM" + }, + "pascalCase": { + "unsafeName": "Custom", + "safeName": "Custom" + } + }, + "wireValue": "custom" + }, + "properties": null + } + } + }, + "type_v2/v3/problem:BasicCustomFiles": { + "type": "object", + "declaration": { + "name": { + "originalName": "BasicCustomFiles", + "camelCase": { + "unsafeName": "basicCustomFiles", + "safeName": "basicCustomFiles" + }, + "snakeCase": { + "unsafeName": "basic_custom_files", + "safeName": "basic_custom_files" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_CUSTOM_FILES", + "safeName": "BASIC_CUSTOM_FILES" + }, + "pascalCase": { + "unsafeName": "BasicCustomFiles", + "safeName": "BasicCustomFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + }, + { + "name": { + "name": { + "originalName": "additionalFiles", + "camelCase": { + "unsafeName": "additionalFiles", + "safeName": "additionalFiles" + }, + "snakeCase": { + "unsafeName": "additional_files", + "safeName": "additional_files" + }, + "screamingSnakeCase": { + "unsafeName": "ADDITIONAL_FILES", + "safeName": "ADDITIONAL_FILES" + }, + "pascalCase": { + "unsafeName": "AdditionalFiles", + "safeName": "AdditionalFiles" + } + }, + "wireValue": "additionalFiles" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:Files" + } + } + }, + { + "name": { + "name": { + "originalName": "basicTestCaseTemplate", + "camelCase": { + "unsafeName": "basicTestCaseTemplate", + "safeName": "basicTestCaseTemplate" + }, + "snakeCase": { + "unsafeName": "basic_test_case_template", + "safeName": "basic_test_case_template" + }, + "screamingSnakeCase": { + "unsafeName": "BASIC_TEST_CASE_TEMPLATE", + "safeName": "BASIC_TEST_CASE_TEMPLATE" + }, + "pascalCase": { + "unsafeName": "BasicTestCaseTemplate", + "safeName": "BasicTestCaseTemplate" + } + }, + "wireValue": "basicTestCaseTemplate" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:BasicTestCaseTemplate" + } + } + ] + }, + "type_v2/v3/problem:Files": { + "type": "object", + "declaration": { + "name": { + "originalName": "Files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "files", + "camelCase": { + "unsafeName": "files", + "safeName": "files" + }, + "snakeCase": { + "unsafeName": "files", + "safeName": "files" + }, + "screamingSnakeCase": { + "unsafeName": "FILES", + "safeName": "FILES" + }, + "pascalCase": { + "unsafeName": "Files", + "safeName": "Files" + } + }, + "wireValue": "files" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/v3/problem:FileInfoV2": { + "type": "object", + "declaration": { + "name": { + "originalName": "FileInfoV2", + "camelCase": { + "unsafeName": "fileInfoV2", + "safeName": "fileInfoV2" + }, + "snakeCase": { + "unsafeName": "file_info_v2", + "safeName": "file_info_v2" + }, + "screamingSnakeCase": { + "unsafeName": "FILE_INFO_V2", + "safeName": "FILE_INFO_V2" + }, + "pascalCase": { + "unsafeName": "FileInfoV2", + "safeName": "FileInfoV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "filename", + "camelCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "snakeCase": { + "unsafeName": "filename", + "safeName": "filename" + }, + "screamingSnakeCase": { + "unsafeName": "FILENAME", + "safeName": "FILENAME" + }, + "pascalCase": { + "unsafeName": "Filename", + "safeName": "Filename" + } + }, + "wireValue": "filename" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "directory", + "camelCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "snakeCase": { + "unsafeName": "directory", + "safeName": "directory" + }, + "screamingSnakeCase": { + "unsafeName": "DIRECTORY", + "safeName": "DIRECTORY" + }, + "pascalCase": { + "unsafeName": "Directory", + "safeName": "Directory" + } + }, + "wireValue": "directory" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "contents", + "camelCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "snakeCase": { + "unsafeName": "contents", + "safeName": "contents" + }, + "screamingSnakeCase": { + "unsafeName": "CONTENTS", + "safeName": "CONTENTS" + }, + "pascalCase": { + "unsafeName": "Contents", + "safeName": "Contents" + } + }, + "wireValue": "contents" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "editable", + "camelCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "snakeCase": { + "unsafeName": "editable", + "safeName": "editable" + }, + "screamingSnakeCase": { + "unsafeName": "EDITABLE", + "safeName": "EDITABLE" + }, + "pascalCase": { + "unsafeName": "Editable", + "safeName": "Editable" + } + }, + "wireValue": "editable" + }, + "typeReference": { + "_type": "primitive", + "value": "BOOLEAN" + } + } + ] + }, + "type_v2/v3/problem:DefaultProvidedFile": { + "type": "object", + "declaration": { + "name": { + "originalName": "DefaultProvidedFile", + "camelCase": { + "unsafeName": "defaultProvidedFile", + "safeName": "defaultProvidedFile" + }, + "snakeCase": { + "unsafeName": "default_provided_file", + "safeName": "default_provided_file" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT_PROVIDED_FILE", + "safeName": "DEFAULT_PROVIDED_FILE" + }, + "pascalCase": { + "unsafeName": "DefaultProvidedFile", + "safeName": "DefaultProvidedFile" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "file", + "camelCase": { + "unsafeName": "file", + "safeName": "file" + }, + "snakeCase": { + "unsafeName": "file", + "safeName": "file" + }, + "screamingSnakeCase": { + "unsafeName": "FILE", + "safeName": "FILE" + }, + "pascalCase": { + "unsafeName": "File", + "safeName": "File" + } + }, + "wireValue": "file" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + }, + { + "name": { + "name": { + "originalName": "relatedTypes", + "camelCase": { + "unsafeName": "relatedTypes", + "safeName": "relatedTypes" + }, + "snakeCase": { + "unsafeName": "related_types", + "safeName": "related_types" + }, + "screamingSnakeCase": { + "unsafeName": "RELATED_TYPES", + "safeName": "RELATED_TYPES" + }, + "pascalCase": { + "unsafeName": "RelatedTypes", + "safeName": "RelatedTypes" + } + }, + "wireValue": "relatedTypes" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:VariableType" + } + } + } + ] + }, + "type_v2/v3/problem:FunctionSignature": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "FunctionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "void": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "void", + "camelCase": { + "unsafeName": "void", + "safeName": "void" + }, + "snakeCase": { + "unsafeName": "void", + "safeName": "void" + }, + "screamingSnakeCase": { + "unsafeName": "VOID", + "safeName": "VOID" + }, + "pascalCase": { + "unsafeName": "Void", + "safeName": "Void" + } + }, + "wireValue": "void" + }, + "properties": [] + }, + "nonVoid": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:NonVoidFunctionSignature", + "discriminantValue": { + "name": { + "originalName": "nonVoid", + "camelCase": { + "unsafeName": "nonVoid", + "safeName": "nonVoid" + }, + "snakeCase": { + "unsafeName": "non_void", + "safeName": "non_void" + }, + "screamingSnakeCase": { + "unsafeName": "NON_VOID", + "safeName": "NON_VOID" + }, + "pascalCase": { + "unsafeName": "NonVoid", + "safeName": "NonVoid" + } + }, + "wireValue": "nonVoid" + }, + "properties": [] + }, + "voidThatTakesActualResult": { + "type": "samePropertiesAsObject", + "typeId": "type_v2/v3/problem:VoidFunctionSignatureThatTakesActualResult", + "discriminantValue": { + "name": { + "originalName": "voidThatTakesActualResult", + "camelCase": { + "unsafeName": "voidThatTakesActualResult", + "safeName": "voidThatTakesActualResult" + }, + "snakeCase": { + "unsafeName": "void_that_takes_actual_result", + "safeName": "void_that_takes_actual_result" + }, + "screamingSnakeCase": { + "unsafeName": "VOID_THAT_TAKES_ACTUAL_RESULT", + "safeName": "VOID_THAT_TAKES_ACTUAL_RESULT" + }, + "pascalCase": { + "unsafeName": "VoidThatTakesActualResult", + "safeName": "VoidThatTakesActualResult" + } + }, + "wireValue": "voidThatTakesActualResult" + }, + "properties": [] + } + } + }, + "type_v2/v3/problem:GetFunctionSignatureRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureRequest", + "camelCase": { + "unsafeName": "getFunctionSignatureRequest", + "safeName": "getFunctionSignatureRequest" + }, + "snakeCase": { + "unsafeName": "get_function_signature_request", + "safeName": "get_function_signature_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_REQUEST", + "safeName": "GET_FUNCTION_SIGNATURE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureRequest", + "safeName": "GetFunctionSignatureRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionSignature", + "camelCase": { + "unsafeName": "functionSignature", + "safeName": "functionSignature" + }, + "snakeCase": { + "unsafeName": "function_signature", + "safeName": "function_signature" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_SIGNATURE", + "safeName": "FUNCTION_SIGNATURE" + }, + "pascalCase": { + "unsafeName": "FunctionSignature", + "safeName": "FunctionSignature" + } + }, + "wireValue": "functionSignature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:FunctionSignature" + } + } + ] + }, + "type_v2/v3/problem:GetFunctionSignatureResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetFunctionSignatureResponse", + "camelCase": { + "unsafeName": "getFunctionSignatureResponse", + "safeName": "getFunctionSignatureResponse" + }, + "snakeCase": { + "unsafeName": "get_function_signature_response", + "safeName": "get_function_signature_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_FUNCTION_SIGNATURE_RESPONSE", + "safeName": "GET_FUNCTION_SIGNATURE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetFunctionSignatureResponse", + "safeName": "GetFunctionSignatureResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "functionByLanguage", + "camelCase": { + "unsafeName": "functionByLanguage", + "safeName": "functionByLanguage" + }, + "snakeCase": { + "unsafeName": "function_by_language", + "safeName": "function_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "FUNCTION_BY_LANGUAGE", + "safeName": "FUNCTION_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "FunctionByLanguage", + "safeName": "FunctionByLanguage" + } + }, + "wireValue": "functionByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ] + }, + "type_v2/v3/problem:GetBasicSolutionFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileRequest", + "camelCase": { + "unsafeName": "getBasicSolutionFileRequest", + "safeName": "getBasicSolutionFileRequest" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_request", + "safeName": "get_basic_solution_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_REQUEST", + "safeName": "GET_BASIC_SOLUTION_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileRequest", + "safeName": "GetBasicSolutionFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "signature", + "camelCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "snakeCase": { + "unsafeName": "signature", + "safeName": "signature" + }, + "screamingSnakeCase": { + "unsafeName": "SIGNATURE", + "safeName": "SIGNATURE" + }, + "pascalCase": { + "unsafeName": "Signature", + "safeName": "Signature" + } + }, + "wireValue": "signature" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:NonVoidFunctionSignature" + } + } + ] + }, + "type_v2/v3/problem:GetBasicSolutionFileResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetBasicSolutionFileResponse", + "camelCase": { + "unsafeName": "getBasicSolutionFileResponse", + "safeName": "getBasicSolutionFileResponse" + }, + "snakeCase": { + "unsafeName": "get_basic_solution_file_response", + "safeName": "get_basic_solution_file_response" + }, + "screamingSnakeCase": { + "unsafeName": "GET_BASIC_SOLUTION_FILE_RESPONSE", + "safeName": "GET_BASIC_SOLUTION_FILE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "GetBasicSolutionFileResponse", + "safeName": "GetBasicSolutionFileResponse" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "solutionFileByLanguage", + "camelCase": { + "unsafeName": "solutionFileByLanguage", + "safeName": "solutionFileByLanguage" + }, + "snakeCase": { + "unsafeName": "solution_file_by_language", + "safeName": "solution_file_by_language" + }, + "screamingSnakeCase": { + "unsafeName": "SOLUTION_FILE_BY_LANGUAGE", + "safeName": "SOLUTION_FILE_BY_LANGUAGE" + }, + "pascalCase": { + "unsafeName": "SolutionFileByLanguage", + "safeName": "SolutionFileByLanguage" + } + }, + "wireValue": "solutionFileByLanguage" + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_commons:Language" + }, + "value": { + "_type": "named", + "value": "type_v2/v3/problem:FileInfoV2" + } + } + } + ] + }, + "type_v2/v3/problem:GetGeneratedTestCaseFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseFileRequest", + "safeName": "getGeneratedTestCaseFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_file_request", + "safeName": "get_generated_test_case_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseFileRequest", + "safeName": "GetGeneratedTestCaseFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + }, + { + "name": { + "name": { + "originalName": "testCase", + "camelCase": { + "unsafeName": "testCase", + "safeName": "testCase" + }, + "snakeCase": { + "unsafeName": "test_case", + "safeName": "test_case" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE", + "safeName": "TEST_CASE" + }, + "pascalCase": { + "unsafeName": "TestCase", + "safeName": "TestCase" + } + }, + "wireValue": "testCase" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseV2" + } + } + ] + }, + "type_v2/v3/problem:GetGeneratedTestCaseTemplateFileRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetGeneratedTestCaseTemplateFileRequest", + "camelCase": { + "unsafeName": "getGeneratedTestCaseTemplateFileRequest", + "safeName": "getGeneratedTestCaseTemplateFileRequest" + }, + "snakeCase": { + "unsafeName": "get_generated_test_case_template_file_request", + "safeName": "get_generated_test_case_template_file_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST", + "safeName": "GET_GENERATED_TEST_CASE_TEMPLATE_FILE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetGeneratedTestCaseTemplateFileRequest", + "safeName": "GetGeneratedTestCaseTemplateFileRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "template", + "camelCase": { + "unsafeName": "template", + "safeName": "template" + }, + "snakeCase": { + "unsafeName": "template", + "safeName": "template" + }, + "screamingSnakeCase": { + "unsafeName": "TEMPLATE", + "safeName": "TEMPLATE" + }, + "pascalCase": { + "unsafeName": "Template", + "safeName": "Template" + } + }, + "wireValue": "template" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/v3/problem:TestCaseTemplate" + } + } + ] + } + }, + "headers": [ + { + "name": { + "name": { + "originalName": "X-Random-Header", + "camelCase": { + "unsafeName": "xRandomHeader", + "safeName": "xRandomHeader" + }, + "snakeCase": { + "unsafeName": "x_random_header", + "safeName": "x_random_header" + }, + "screamingSnakeCase": { + "unsafeName": "X_RANDOM_HEADER", + "safeName": "X_RANDOM_HEADER" + }, + "pascalCase": { + "unsafeName": "XRandomHeader", + "safeName": "XRandomHeader" + } + }, + "wireValue": "X-Random-Header" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "endpoints": { + "endpoint_v2.test": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "test", + "camelCase": { + "unsafeName": "test", + "safeName": "test" + }, + "snakeCase": { + "unsafeName": "test", + "safeName": "test" + }, + "screamingSnakeCase": { + "unsafeName": "TEST", + "safeName": "TEST" + }, + "pascalCase": { + "unsafeName": "Test", + "safeName": "Test" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.updateTestSubmissionStatus": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateTestSubmissionStatus", + "camelCase": { + "unsafeName": "updateTestSubmissionStatus", + "safeName": "updateTestSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "update_test_submission_status", + "safeName": "update_test_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_TEST_SUBMISSION_STATUS", + "safeName": "UPDATE_TEST_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "UpdateTestSubmissionStatus", + "safeName": "UpdateTestSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-submission-status/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionStatus" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.sendTestSubmissionUpdate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "sendTestSubmissionUpdate", + "camelCase": { + "unsafeName": "sendTestSubmissionUpdate", + "safeName": "sendTestSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "send_test_submission_update", + "safeName": "send_test_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_TEST_SUBMISSION_UPDATE", + "safeName": "SEND_TEST_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "SendTestSubmissionUpdate", + "safeName": "SendTestSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-submission-status-v2/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:TestSubmissionUpdate" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.updateWorkspaceSubmissionStatus": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateWorkspaceSubmissionStatus", + "camelCase": { + "unsafeName": "updateWorkspaceSubmissionStatus", + "safeName": "updateWorkspaceSubmissionStatus" + }, + "snakeCase": { + "unsafeName": "update_workspace_submission_status", + "safeName": "update_workspace_submission_status" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_WORKSPACE_SUBMISSION_STATUS", + "safeName": "UPDATE_WORKSPACE_SUBMISSION_STATUS" + }, + "pascalCase": { + "unsafeName": "UpdateWorkspaceSubmissionStatus", + "safeName": "UpdateWorkspaceSubmissionStatus" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-submission-status/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionStatus" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.sendWorkspaceSubmissionUpdate": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "sendWorkspaceSubmissionUpdate", + "camelCase": { + "unsafeName": "sendWorkspaceSubmissionUpdate", + "safeName": "sendWorkspaceSubmissionUpdate" + }, + "snakeCase": { + "unsafeName": "send_workspace_submission_update", + "safeName": "send_workspace_submission_update" + }, + "screamingSnakeCase": { + "unsafeName": "SEND_WORKSPACE_SUBMISSION_UPDATE", + "safeName": "SEND_WORKSPACE_SUBMISSION_UPDATE" + }, + "pascalCase": { + "unsafeName": "SendWorkspaceSubmissionUpdate", + "safeName": "SendWorkspaceSubmissionUpdate" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-submission-status-v2/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_submission:WorkspaceSubmissionUpdate" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedTestCase": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedTestCase", + "camelCase": { + "unsafeName": "storeTracedTestCase", + "safeName": "storeTracedTestCase" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case", + "safeName": "store_traced_test_case" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE", + "safeName": "STORE_TRACED_TEST_CASE" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCase", + "safeName": "StoreTracedTestCase" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-trace/submission/{submissionId}/testCase/{testCaseId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StoreTracedTestCaseRequest", + "camelCase": { + "unsafeName": "storeTracedTestCaseRequest", + "safeName": "storeTracedTestCaseRequest" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case_request", + "safeName": "store_traced_test_case_request" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE_REQUEST", + "safeName": "STORE_TRACED_TEST_CASE_REQUEST" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCaseRequest", + "safeName": "StoreTracedTestCaseRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "result", + "camelCase": { + "unsafeName": "result", + "safeName": "result" + }, + "snakeCase": { + "unsafeName": "result", + "safeName": "result" + }, + "screamingSnakeCase": { + "unsafeName": "RESULT", + "safeName": "RESULT" + }, + "pascalCase": { + "unsafeName": "Result", + "safeName": "Result" + } + }, + "wireValue": "result" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:TestCaseResultWithStdout" + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedTestCaseV2": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedTestCaseV2", + "camelCase": { + "unsafeName": "storeTracedTestCaseV2", + "safeName": "storeTracedTestCaseV2" + }, + "snakeCase": { + "unsafeName": "store_traced_test_case_v2", + "safeName": "store_traced_test_case_v2" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_TEST_CASE_V2", + "safeName": "STORE_TRACED_TEST_CASE_V2" + }, + "pascalCase": { + "unsafeName": "StoreTracedTestCaseV2", + "safeName": "StoreTracedTestCaseV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-test-trace-v2/submission/{submissionId}/testCase/{testCaseId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + }, + { + "name": { + "name": { + "originalName": "testCaseId", + "camelCase": { + "unsafeName": "testCaseID", + "safeName": "testCaseID" + }, + "snakeCase": { + "unsafeName": "test_case_id", + "safeName": "test_case_id" + }, + "screamingSnakeCase": { + "unsafeName": "TEST_CASE_ID", + "safeName": "TEST_CASE_ID" + }, + "pascalCase": { + "unsafeName": "TestCaseID", + "safeName": "TestCaseID" + } + }, + "wireValue": "testCaseId" + }, + "typeReference": { + "_type": "named", + "value": "type_v2/problem:TestCaseId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedWorkspace": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedWorkspace", + "camelCase": { + "unsafeName": "storeTracedWorkspace", + "safeName": "storeTracedWorkspace" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace", + "safeName": "store_traced_workspace" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE", + "safeName": "STORE_TRACED_WORKSPACE" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspace", + "safeName": "StoreTracedWorkspace" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-trace/submission/{submissionId}" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "StoreTracedWorkspaceRequest", + "camelCase": { + "unsafeName": "storeTracedWorkspaceRequest", + "safeName": "storeTracedWorkspaceRequest" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace_request", + "safeName": "store_traced_workspace_request" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE_REQUEST", + "safeName": "STORE_TRACED_WORKSPACE_REQUEST" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspaceRequest", + "safeName": "StoreTracedWorkspaceRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "workspaceRunDetails", + "camelCase": { + "unsafeName": "workspaceRunDetails", + "safeName": "workspaceRunDetails" + }, + "snakeCase": { + "unsafeName": "workspace_run_details", + "safeName": "workspace_run_details" + }, + "screamingSnakeCase": { + "unsafeName": "WORKSPACE_RUN_DETAILS", + "safeName": "WORKSPACE_RUN_DETAILS" + }, + "pascalCase": { + "unsafeName": "WorkspaceRunDetails", + "safeName": "WorkspaceRunDetails" + } + }, + "wireValue": "workspaceRunDetails" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:WorkspaceRunDetails" + } + }, + { + "name": { + "name": { + "originalName": "traceResponses", + "camelCase": { + "unsafeName": "traceResponses", + "safeName": "traceResponses" + }, + "snakeCase": { + "unsafeName": "trace_responses", + "safeName": "trace_responses" + }, + "screamingSnakeCase": { + "unsafeName": "TRACE_RESPONSES", + "safeName": "TRACE_RESPONSES" + }, + "pascalCase": { + "unsafeName": "TraceResponses", + "safeName": "TraceResponses" + } + }, + "wireValue": "traceResponses" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponse" + } + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_admin.storeTracedWorkspaceV2": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "storeTracedWorkspaceV2", + "camelCase": { + "unsafeName": "storeTracedWorkspaceV2", + "safeName": "storeTracedWorkspaceV2" + }, + "snakeCase": { + "unsafeName": "store_traced_workspace_v2", + "safeName": "store_traced_workspace_v2" + }, + "screamingSnakeCase": { + "unsafeName": "STORE_TRACED_WORKSPACE_V2", + "safeName": "STORE_TRACED_WORKSPACE_V2" + }, + "pascalCase": { + "unsafeName": "StoreTracedWorkspaceV2", + "safeName": "StoreTracedWorkspaceV2" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + ], + "packagePath": [], + "file": { + "originalName": "admin", + "camelCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "snakeCase": { + "unsafeName": "admin", + "safeName": "admin" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN", + "safeName": "ADMIN" + }, + "pascalCase": { + "unsafeName": "Admin", + "safeName": "Admin" + } + } + } + }, + "location": { + "method": "POST", + "path": "/admin/store-workspace-trace-v2/submission/{submissionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "submissionId", + "camelCase": { + "unsafeName": "submissionID", + "safeName": "submissionID" + }, + "snakeCase": { + "unsafeName": "submission_id", + "safeName": "submission_id" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION_ID", + "safeName": "SUBMISSION_ID" + }, + "pascalCase": { + "unsafeName": "SubmissionID", + "safeName": "SubmissionID" + } + }, + "wireValue": "submissionId" + }, + "typeReference": { + "_type": "named", + "value": "type_submission:SubmissionId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_submission:TraceResponseV2" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_homepage.getHomepageProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getHomepageProblems", + "camelCase": { + "unsafeName": "getHomepageProblems", + "safeName": "getHomepageProblems" + }, + "snakeCase": { + "unsafeName": "get_homepage_problems", + "safeName": "get_homepage_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_HOMEPAGE_PROBLEMS", + "safeName": "GET_HOMEPAGE_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetHomepageProblems", + "safeName": "GetHomepageProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + ], + "packagePath": [], + "file": { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + } + }, + "location": { + "method": "GET", + "path": "/homepage-problems" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_homepage.setHomepageProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "setHomepageProblems", + "camelCase": { + "unsafeName": "setHomepageProblems", + "safeName": "setHomepageProblems" + }, + "snakeCase": { + "unsafeName": "set_homepage_problems", + "safeName": "set_homepage_problems" + }, + "screamingSnakeCase": { + "unsafeName": "SET_HOMEPAGE_PROBLEMS", + "safeName": "SET_HOMEPAGE_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "SetHomepageProblems", + "safeName": "SetHomepageProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + ], + "packagePath": [], + "file": { + "originalName": "homepage", + "camelCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "snakeCase": { + "unsafeName": "homepage", + "safeName": "homepage" + }, + "screamingSnakeCase": { + "unsafeName": "HOMEPAGE", + "safeName": "HOMEPAGE" + }, + "pascalCase": { + "unsafeName": "Homepage", + "safeName": "Homepage" + } + } + } + }, + "location": { + "method": "POST", + "path": "/homepage-problems" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_migration.getAttemptedMigrations": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getAttemptedMigrations", + "camelCase": { + "unsafeName": "getAttemptedMigrations", + "safeName": "getAttemptedMigrations" + }, + "snakeCase": { + "unsafeName": "get_attempted_migrations", + "safeName": "get_attempted_migrations" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ATTEMPTED_MIGRATIONS", + "safeName": "GET_ATTEMPTED_MIGRATIONS" + }, + "pascalCase": { + "unsafeName": "GetAttemptedMigrations", + "safeName": "GetAttemptedMigrations" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "location": { + "method": "GET", + "path": "/migration-info/all" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetAttemptedMigrationsRequest", + "camelCase": { + "unsafeName": "getAttemptedMigrationsRequest", + "safeName": "getAttemptedMigrationsRequest" + }, + "snakeCase": { + "unsafeName": "get_attempted_migrations_request", + "safeName": "get_attempted_migrations_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ATTEMPTED_MIGRATIONS_REQUEST", + "safeName": "GET_ATTEMPTED_MIGRATIONS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetAttemptedMigrationsRequest", + "safeName": "GetAttemptedMigrationsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + ], + "packagePath": [], + "file": { + "originalName": "migration", + "camelCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "snakeCase": { + "unsafeName": "migration", + "safeName": "migration" + }, + "screamingSnakeCase": { + "unsafeName": "MIGRATION", + "safeName": "MIGRATION" + }, + "pascalCase": { + "unsafeName": "Migration", + "safeName": "Migration" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [ + { + "name": { + "name": { + "originalName": "admin-key-header", + "camelCase": { + "unsafeName": "adminKeyHeader", + "safeName": "adminKeyHeader" + }, + "snakeCase": { + "unsafeName": "admin_key_header", + "safeName": "admin_key_header" + }, + "screamingSnakeCase": { + "unsafeName": "ADMIN_KEY_HEADER", + "safeName": "ADMIN_KEY_HEADER" + }, + "pascalCase": { + "unsafeName": "AdminKeyHeader", + "safeName": "AdminKeyHeader" + } + }, + "wireValue": "admin-key-header" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.createPlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createPlaylist", + "camelCase": { + "unsafeName": "createPlaylist", + "safeName": "createPlaylist" + }, + "snakeCase": { + "unsafeName": "create_playlist", + "safeName": "create_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PLAYLIST", + "safeName": "CREATE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "CreatePlaylist", + "safeName": "CreatePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "POST", + "path": "/v2/playlist/{serviceParam}/create" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreatePlaylistRequest", + "camelCase": { + "unsafeName": "createPlaylistRequest", + "safeName": "createPlaylistRequest" + }, + "snakeCase": { + "unsafeName": "create_playlist_request", + "safeName": "create_playlist_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PLAYLIST_REQUEST", + "safeName": "CREATE_PLAYLIST_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreatePlaylistRequest", + "safeName": "CreatePlaylistRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + { + "name": { + "name": { + "originalName": "optionalDatetime", + "camelCase": { + "unsafeName": "optionalDatetime", + "safeName": "optionalDatetime" + }, + "snakeCase": { + "unsafeName": "optional_datetime", + "safeName": "optional_datetime" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_DATETIME", + "safeName": "OPTIONAL_DATETIME" + }, + "pascalCase": { + "unsafeName": "OptionalDatetime", + "safeName": "OptionalDatetime" + } + }, + "wireValue": "optionalDatetime" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + } + } + ], + "headers": [], + "body": { + "type": "referenced", + "bodyKey": { + "originalName": "body", + "camelCase": { + "unsafeName": "body", + "safeName": "body" + }, + "snakeCase": { + "unsafeName": "body", + "safeName": "body" + }, + "screamingSnakeCase": { + "unsafeName": "BODY", + "safeName": "BODY" + }, + "pascalCase": { + "unsafeName": "Body", + "safeName": "Body" + } + }, + "bodyType": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_playlist:PlaylistCreateRequest" + } + } + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.getPlaylists": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPlaylists", + "camelCase": { + "unsafeName": "getPlaylists", + "safeName": "getPlaylists" + }, + "snakeCase": { + "unsafeName": "get_playlists", + "safeName": "get_playlists" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLISTS", + "safeName": "GET_PLAYLISTS" + }, + "pascalCase": { + "unsafeName": "GetPlaylists", + "safeName": "GetPlaylists" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "GET", + "path": "/v2/playlist/{serviceParam}/all" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetPlaylistsRequest", + "camelCase": { + "unsafeName": "getPlaylistsRequest", + "safeName": "getPlaylistsRequest" + }, + "snakeCase": { + "unsafeName": "get_playlists_request", + "safeName": "get_playlists_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLISTS_REQUEST", + "safeName": "GET_PLAYLISTS_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetPlaylistsRequest", + "safeName": "GetPlaylistsRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "limit", + "camelCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "snakeCase": { + "unsafeName": "limit", + "safeName": "limit" + }, + "screamingSnakeCase": { + "unsafeName": "LIMIT", + "safeName": "LIMIT" + }, + "pascalCase": { + "unsafeName": "Limit", + "safeName": "Limit" + } + }, + "wireValue": "limit" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "name": { + "name": { + "originalName": "otherField", + "camelCase": { + "unsafeName": "otherField", + "safeName": "otherField" + }, + "snakeCase": { + "unsafeName": "other_field", + "safeName": "other_field" + }, + "screamingSnakeCase": { + "unsafeName": "OTHER_FIELD", + "safeName": "OTHER_FIELD" + }, + "pascalCase": { + "unsafeName": "OtherField", + "safeName": "OtherField" + } + }, + "wireValue": "otherField" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "multiLineDocs", + "camelCase": { + "unsafeName": "multiLineDocs", + "safeName": "multiLineDocs" + }, + "snakeCase": { + "unsafeName": "multi_line_docs", + "safeName": "multi_line_docs" + }, + "screamingSnakeCase": { + "unsafeName": "MULTI_LINE_DOCS", + "safeName": "MULTI_LINE_DOCS" + }, + "pascalCase": { + "unsafeName": "MultiLineDocs", + "safeName": "MultiLineDocs" + } + }, + "wireValue": "multiLineDocs" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "optionalMultipleField", + "camelCase": { + "unsafeName": "optionalMultipleField", + "safeName": "optionalMultipleField" + }, + "snakeCase": { + "unsafeName": "optional_multiple_field", + "safeName": "optional_multiple_field" + }, + "screamingSnakeCase": { + "unsafeName": "OPTIONAL_MULTIPLE_FIELD", + "safeName": "OPTIONAL_MULTIPLE_FIELD" + }, + "pascalCase": { + "unsafeName": "OptionalMultipleField", + "safeName": "OptionalMultipleField" + } + }, + "wireValue": "optionalMultipleField" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + }, + { + "name": { + "name": { + "originalName": "multipleField", + "camelCase": { + "unsafeName": "multipleField", + "safeName": "multipleField" + }, + "snakeCase": { + "unsafeName": "multiple_field", + "safeName": "multiple_field" + }, + "screamingSnakeCase": { + "unsafeName": "MULTIPLE_FIELD", + "safeName": "MULTIPLE_FIELD" + }, + "pascalCase": { + "unsafeName": "MultipleField", + "safeName": "MultipleField" + } + }, + "wireValue": "multipleField" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.getPlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getPlaylist", + "camelCase": { + "unsafeName": "getPlaylist", + "safeName": "getPlaylist" + }, + "snakeCase": { + "unsafeName": "get_playlist", + "safeName": "get_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PLAYLIST", + "safeName": "GET_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "GetPlaylist", + "safeName": "GetPlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "GET", + "path": "/v2/playlist/{serviceParam}/{playlistId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.updatePlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updatePlaylist", + "camelCase": { + "unsafeName": "updatePlaylist", + "safeName": "updatePlaylist" + }, + "snakeCase": { + "unsafeName": "update_playlist", + "safeName": "update_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PLAYLIST", + "safeName": "UPDATE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "UpdatePlaylist", + "safeName": "UpdatePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/v2/playlist/{serviceParam}/{playlistId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlistId", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlistId" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_playlist:UpdatePlaylistRequest" + } + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_playlist.deletePlaylist": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "deletePlaylist", + "camelCase": { + "unsafeName": "deletePlaylist", + "safeName": "deletePlaylist" + }, + "snakeCase": { + "unsafeName": "delete_playlist", + "safeName": "delete_playlist" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_PLAYLIST", + "safeName": "DELETE_PLAYLIST" + }, + "pascalCase": { + "unsafeName": "DeletePlaylist", + "safeName": "DeletePlaylist" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + ], + "packagePath": [], + "file": { + "originalName": "playlist", + "camelCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "snakeCase": { + "unsafeName": "playlist", + "safeName": "playlist" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST", + "safeName": "PLAYLIST" + }, + "pascalCase": { + "unsafeName": "Playlist", + "safeName": "Playlist" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/v2/playlist/{serviceParam}/{playlist_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "serviceParam", + "camelCase": { + "unsafeName": "serviceParam", + "safeName": "serviceParam" + }, + "snakeCase": { + "unsafeName": "service_param", + "safeName": "service_param" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE_PARAM", + "safeName": "SERVICE_PARAM" + }, + "pascalCase": { + "unsafeName": "ServiceParam", + "safeName": "ServiceParam" + } + }, + "wireValue": "serviceParam" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "playlist_id", + "camelCase": { + "unsafeName": "playlistID", + "safeName": "playlistID" + }, + "snakeCase": { + "unsafeName": "playlist_id", + "safeName": "playlist_id" + }, + "screamingSnakeCase": { + "unsafeName": "PLAYLIST_ID", + "safeName": "PLAYLIST_ID" + }, + "pascalCase": { + "unsafeName": "PlaylistID", + "safeName": "PlaylistID" + } + }, + "wireValue": "playlist_id" + }, + "typeReference": { + "_type": "named", + "value": "type_playlist:PlaylistId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.createProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createProblem", + "camelCase": { + "unsafeName": "createProblem", + "safeName": "createProblem" + }, + "snakeCase": { + "unsafeName": "create_problem", + "safeName": "create_problem" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_PROBLEM", + "safeName": "CREATE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "CreateProblem", + "safeName": "CreateProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/create" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_problem:CreateProblemRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.updateProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "updateProblem", + "camelCase": { + "unsafeName": "updateProblem", + "safeName": "updateProblem" + }, + "snakeCase": { + "unsafeName": "update_problem", + "safeName": "update_problem" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE_PROBLEM", + "safeName": "UPDATE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "UpdateProblem", + "safeName": "UpdateProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/update/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_problem:CreateProblemRequest" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.deleteProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "deleteProblem", + "camelCase": { + "unsafeName": "deleteProblem", + "safeName": "deleteProblem" + }, + "snakeCase": { + "unsafeName": "delete_problem", + "safeName": "delete_problem" + }, + "screamingSnakeCase": { + "unsafeName": "DELETE_PROBLEM", + "safeName": "DELETE_PROBLEM" + }, + "pascalCase": { + "unsafeName": "DeleteProblem", + "safeName": "DeleteProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/problem-crud/delete/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_problem.getDefaultStarterFiles": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getDefaultStarterFiles", + "camelCase": { + "unsafeName": "getDefaultStarterFiles", + "safeName": "getDefaultStarterFiles" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files", + "safeName": "get_default_starter_files" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES", + "safeName": "GET_DEFAULT_STARTER_FILES" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFiles", + "safeName": "GetDefaultStarterFiles" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "POST", + "path": "/problem-crud/default-starter-files" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetDefaultStarterFilesRequest", + "camelCase": { + "unsafeName": "getDefaultStarterFilesRequest", + "safeName": "getDefaultStarterFilesRequest" + }, + "snakeCase": { + "unsafeName": "get_default_starter_files_request", + "safeName": "get_default_starter_files_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_DEFAULT_STARTER_FILES_REQUEST", + "safeName": "GET_DEFAULT_STARTER_FILES_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetDefaultStarterFilesRequest", + "safeName": "GetDefaultStarterFilesRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "inputParams", + "camelCase": { + "unsafeName": "inputParams", + "safeName": "inputParams" + }, + "snakeCase": { + "unsafeName": "input_params", + "safeName": "input_params" + }, + "screamingSnakeCase": { + "unsafeName": "INPUT_PARAMS", + "safeName": "INPUT_PARAMS" + }, + "pascalCase": { + "unsafeName": "InputParams", + "safeName": "InputParams" + } + }, + "wireValue": "inputParams" + }, + "typeReference": { + "_type": "list", + "value": { + "_type": "named", + "value": "type_problem:VariableTypeAndName" + } + } + }, + { + "name": { + "name": { + "originalName": "outputType", + "camelCase": { + "unsafeName": "outputType", + "safeName": "outputType" + }, + "snakeCase": { + "unsafeName": "output_type", + "safeName": "output_type" + }, + "screamingSnakeCase": { + "unsafeName": "OUTPUT_TYPE", + "safeName": "OUTPUT_TYPE" + }, + "pascalCase": { + "unsafeName": "OutputType", + "safeName": "OutputType" + } + }, + "wireValue": "outputType" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:VariableType" + } + }, + { + "name": { + "name": { + "originalName": "methodName", + "camelCase": { + "unsafeName": "methodName", + "safeName": "methodName" + }, + "snakeCase": { + "unsafeName": "method_name", + "safeName": "method_name" + }, + "screamingSnakeCase": { + "unsafeName": "METHOD_NAME", + "safeName": "METHOD_NAME" + }, + "pascalCase": { + "unsafeName": "MethodName", + "safeName": "MethodName" + } + }, + "wireValue": "methodName" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.createExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "createExecutionSession", + "camelCase": { + "unsafeName": "createExecutionSession", + "safeName": "createExecutionSession" + }, + "snakeCase": { + "unsafeName": "create_execution_session", + "safeName": "create_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_EXECUTION_SESSION", + "safeName": "CREATE_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "CreateExecutionSession", + "safeName": "CreateExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "POST", + "path": "/sessions/create-session/{language}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.getExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getExecutionSession", + "camelCase": { + "unsafeName": "getExecutionSession", + "safeName": "getExecutionSession" + }, + "snakeCase": { + "unsafeName": "get_execution_session", + "safeName": "get_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSION", + "safeName": "GET_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "GetExecutionSession", + "safeName": "GetExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sessions/{sessionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.stopExecutionSession": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "stopExecutionSession", + "camelCase": { + "unsafeName": "stopExecutionSession", + "safeName": "stopExecutionSession" + }, + "snakeCase": { + "unsafeName": "stop_execution_session", + "safeName": "stop_execution_session" + }, + "screamingSnakeCase": { + "unsafeName": "STOP_EXECUTION_SESSION", + "safeName": "STOP_EXECUTION_SESSION" + }, + "pascalCase": { + "unsafeName": "StopExecutionSession", + "safeName": "StopExecutionSession" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "DELETE", + "path": "/sessions/stop/{sessionId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "sessionId", + "camelCase": { + "unsafeName": "sessionID", + "safeName": "sessionID" + }, + "snakeCase": { + "unsafeName": "session_id", + "safeName": "session_id" + }, + "screamingSnakeCase": { + "unsafeName": "SESSION_ID", + "safeName": "SESSION_ID" + }, + "pascalCase": { + "unsafeName": "SessionID", + "safeName": "SessionID" + } + }, + "wireValue": "sessionId" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_submission.getExecutionSessionsState": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getExecutionSessionsState", + "camelCase": { + "unsafeName": "getExecutionSessionsState", + "safeName": "getExecutionSessionsState" + }, + "snakeCase": { + "unsafeName": "get_execution_sessions_state", + "safeName": "get_execution_sessions_state" + }, + "screamingSnakeCase": { + "unsafeName": "GET_EXECUTION_SESSIONS_STATE", + "safeName": "GET_EXECUTION_SESSIONS_STATE" + }, + "pascalCase": { + "unsafeName": "GetExecutionSessionsState", + "safeName": "GetExecutionSessionsState" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + ], + "packagePath": [], + "file": { + "originalName": "submission", + "camelCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "snakeCase": { + "unsafeName": "submission", + "safeName": "submission" + }, + "screamingSnakeCase": { + "unsafeName": "SUBMISSION", + "safeName": "SUBMISSION" + }, + "pascalCase": { + "unsafeName": "Submission", + "safeName": "Submission" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sessions/execution-sessions-state" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_sysprop.setNumWarmInstances": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "setNumWarmInstances", + "camelCase": { + "unsafeName": "setNumWarmInstances", + "safeName": "setNumWarmInstances" + }, + "snakeCase": { + "unsafeName": "set_num_warm_instances", + "safeName": "set_num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "SET_NUM_WARM_INSTANCES", + "safeName": "SET_NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "SetNumWarmInstances", + "safeName": "SetNumWarmInstances" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + ], + "packagePath": [], + "file": { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + } + }, + "location": { + "method": "PUT", + "path": "/sysprop/num-warm-instances/{language}/{numWarmInstances}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "language", + "camelCase": { + "unsafeName": "language", + "safeName": "language" + }, + "snakeCase": { + "unsafeName": "language", + "safeName": "language" + }, + "screamingSnakeCase": { + "unsafeName": "LANGUAGE", + "safeName": "LANGUAGE" + }, + "pascalCase": { + "unsafeName": "Language", + "safeName": "Language" + } + }, + "wireValue": "language" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:Language" + } + }, + { + "name": { + "name": { + "originalName": "numWarmInstances", + "camelCase": { + "unsafeName": "numWarmInstances", + "safeName": "numWarmInstances" + }, + "snakeCase": { + "unsafeName": "num_warm_instances", + "safeName": "num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "NUM_WARM_INSTANCES", + "safeName": "NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "NumWarmInstances", + "safeName": "NumWarmInstances" + } + }, + "wireValue": "numWarmInstances" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_sysprop.getNumWarmInstances": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getNumWarmInstances", + "camelCase": { + "unsafeName": "getNumWarmInstances", + "safeName": "getNumWarmInstances" + }, + "snakeCase": { + "unsafeName": "get_num_warm_instances", + "safeName": "get_num_warm_instances" + }, + "screamingSnakeCase": { + "unsafeName": "GET_NUM_WARM_INSTANCES", + "safeName": "GET_NUM_WARM_INSTANCES" + }, + "pascalCase": { + "unsafeName": "GetNumWarmInstances", + "safeName": "GetNumWarmInstances" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + ], + "packagePath": [], + "file": { + "originalName": "sysprop", + "camelCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "snakeCase": { + "unsafeName": "sysprop", + "safeName": "sysprop" + }, + "screamingSnakeCase": { + "unsafeName": "SYSPROP", + "safeName": "SYSPROP" + }, + "pascalCase": { + "unsafeName": "Sysprop", + "safeName": "Sysprop" + } + } + } + }, + "location": { + "method": "GET", + "path": "/sysprop/num-warm-instances" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getLightweightProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLightweightProblems", + "camelCase": { + "unsafeName": "getLightweightProblems", + "safeName": "getLightweightProblems" + }, + "snakeCase": { + "unsafeName": "get_lightweight_problems", + "safeName": "get_lightweight_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LIGHTWEIGHT_PROBLEMS", + "safeName": "GET_LIGHTWEIGHT_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetLightweightProblems", + "safeName": "GetLightweightProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/lightweight-problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblems", + "camelCase": { + "unsafeName": "getProblems", + "safeName": "getProblems" + }, + "snakeCase": { + "unsafeName": "get_problems", + "safeName": "get_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEMS", + "safeName": "GET_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetProblems", + "safeName": "GetProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getLatestProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLatestProblem", + "camelCase": { + "unsafeName": "getLatestProblem", + "safeName": "getLatestProblem" + }, + "snakeCase": { + "unsafeName": "get_latest_problem", + "safeName": "get_latest_problem" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LATEST_PROBLEM", + "safeName": "GET_LATEST_PROBLEM" + }, + "pascalCase": { + "unsafeName": "GetLatestProblem", + "safeName": "GetLatestProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/problem.getProblemVersion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblemVersion", + "camelCase": { + "unsafeName": "getProblemVersion", + "safeName": "getProblemVersion" + }, + "snakeCase": { + "unsafeName": "get_problem_version", + "safeName": "get_problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEM_VERSION", + "safeName": "GET_PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "GetProblemVersion", + "safeName": "GetProblemVersion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}/version/{problemVersion}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getLightweightProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLightweightProblems", + "camelCase": { + "unsafeName": "getLightweightProblems", + "safeName": "getLightweightProblems" + }, + "snakeCase": { + "unsafeName": "get_lightweight_problems", + "safeName": "get_lightweight_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LIGHTWEIGHT_PROBLEMS", + "safeName": "GET_LIGHTWEIGHT_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetLightweightProblems", + "safeName": "GetLightweightProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/lightweight-problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getProblems": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblems", + "camelCase": { + "unsafeName": "getProblems", + "safeName": "getProblems" + }, + "snakeCase": { + "unsafeName": "get_problems", + "safeName": "get_problems" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEMS", + "safeName": "GET_PROBLEMS" + }, + "pascalCase": { + "unsafeName": "GetProblems", + "safeName": "GetProblems" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getLatestProblem": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getLatestProblem", + "camelCase": { + "unsafeName": "getLatestProblem", + "safeName": "getLatestProblem" + }, + "snakeCase": { + "unsafeName": "get_latest_problem", + "safeName": "get_latest_problem" + }, + "screamingSnakeCase": { + "unsafeName": "GET_LATEST_PROBLEM", + "safeName": "GET_LATEST_PROBLEM" + }, + "pascalCase": { + "unsafeName": "GetLatestProblem", + "safeName": "GetLatestProblem" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_v2/v3/problem.getProblemVersion": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "getProblemVersion", + "camelCase": { + "unsafeName": "getProblemVersion", + "safeName": "getProblemVersion" + }, + "snakeCase": { + "unsafeName": "get_problem_version", + "safeName": "get_problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "GET_PROBLEM_VERSION", + "safeName": "GET_PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "GetProblemVersion", + "safeName": "GetProblemVersion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + }, + { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + ], + "packagePath": [ + { + "originalName": "v2", + "camelCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "snakeCase": { + "unsafeName": "v2", + "safeName": "v2" + }, + "screamingSnakeCase": { + "unsafeName": "V2", + "safeName": "V2" + }, + "pascalCase": { + "unsafeName": "V2", + "safeName": "V2" + } + }, + { + "originalName": "v3", + "camelCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "snakeCase": { + "unsafeName": "v3", + "safeName": "v3" + }, + "screamingSnakeCase": { + "unsafeName": "V3", + "safeName": "V3" + }, + "pascalCase": { + "unsafeName": "V3", + "safeName": "V3" + } + } + ], + "file": { + "originalName": "problem", + "camelCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "snakeCase": { + "unsafeName": "problem", + "safeName": "problem" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM", + "safeName": "PROBLEM" + }, + "pascalCase": { + "unsafeName": "Problem", + "safeName": "Problem" + } + } + } + }, + "location": { + "method": "GET", + "path": "/problems-v2/problem-info/{problemId}/version/{problemVersion}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "problemId", + "camelCase": { + "unsafeName": "problemID", + "safeName": "problemID" + }, + "snakeCase": { + "unsafeName": "problem_id", + "safeName": "problem_id" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_ID", + "safeName": "PROBLEM_ID" + }, + "pascalCase": { + "unsafeName": "ProblemID", + "safeName": "ProblemID" + } + }, + "wireValue": "problemId" + }, + "typeReference": { + "_type": "named", + "value": "type_commons:ProblemId" + } + }, + { + "name": { + "name": { + "originalName": "problemVersion", + "camelCase": { + "unsafeName": "problemVersion", + "safeName": "problemVersion" + }, + "snakeCase": { + "unsafeName": "problem_version", + "safeName": "problem_version" + }, + "screamingSnakeCase": { + "unsafeName": "PROBLEM_VERSION", + "safeName": "PROBLEM_VERSION" + }, + "pascalCase": { + "unsafeName": "ProblemVersion", + "safeName": "ProblemVersion" + } + }, + "wireValue": "problemVersion" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_v2": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/ts-express-casing.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/ts-express-casing.json index 7dd164a2303..84249d24636 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/ts-express-casing.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/ts-express-casing.json @@ -2352,6 +2352,625 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_imdb:MovieId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MovieId", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_imdb:Movie": { + "type": "object", + "declaration": { + "name": { + "originalName": "Movie", + "camelCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "snakeCase": { + "unsafeName": "movie", + "safeName": "movie" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE", + "safeName": "MOVIE" + }, + "pascalCase": { + "unsafeName": "Movie", + "safeName": "Movie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "title", + "camelCase": { + "unsafeName": "title", + "safeName": "title" + }, + "snakeCase": { + "unsafeName": "title", + "safeName": "title" + }, + "screamingSnakeCase": { + "unsafeName": "TITLE", + "safeName": "TITLE" + }, + "pascalCase": { + "unsafeName": "Title", + "safeName": "Title" + } + }, + "wireValue": "title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "rating", + "camelCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "snakeCase": { + "unsafeName": "rating", + "safeName": "rating" + }, + "screamingSnakeCase": { + "unsafeName": "RATING", + "safeName": "RATING" + }, + "pascalCase": { + "unsafeName": "Rating", + "safeName": "Rating" + } + }, + "wireValue": "rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_imdb.create_movie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "create_movie", + "camelCase": { + "unsafeName": "createMovie", + "safeName": "createMovie" + }, + "snakeCase": { + "unsafeName": "create_movie", + "safeName": "create_movie" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE", + "safeName": "CREATE_MOVIE" + }, + "pascalCase": { + "unsafeName": "CreateMovie", + "safeName": "CreateMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "POST", + "path": "/movies/create-movie" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateMovieRequest", + "camelCase": { + "unsafeName": "createMovieRequest", + "safeName": "createMovieRequest" + }, + "snakeCase": { + "unsafeName": "create_movie_request", + "safeName": "create_movie_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_MOVIE_REQUEST", + "safeName": "CREATE_MOVIE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateMovieRequest", + "safeName": "CreateMovieRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + }, + { + "name": { + "name": { + "originalName": "movie_title", + "camelCase": { + "unsafeName": "movieTitle", + "safeName": "movieTitle" + }, + "snakeCase": { + "unsafeName": "movie_title", + "safeName": "movie_title" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_TITLE", + "safeName": "MOVIE_TITLE" + }, + "pascalCase": { + "unsafeName": "MovieTitle", + "safeName": "MovieTitle" + } + }, + "wireValue": "movie_title" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "movie_rating", + "camelCase": { + "unsafeName": "movieRating", + "safeName": "movieRating" + }, + "snakeCase": { + "unsafeName": "movie_rating", + "safeName": "movie_rating" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_RATING", + "safeName": "MOVIE_RATING" + }, + "pascalCase": { + "unsafeName": "MovieRating", + "safeName": "MovieRating" + } + }, + "wireValue": "movie_rating" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_imdb.get_movie": { + "auth": { + "type": "bearer", + "token": { + "originalName": "token", + "camelCase": { + "unsafeName": "token", + "safeName": "token" + }, + "snakeCase": { + "unsafeName": "token", + "safeName": "token" + }, + "screamingSnakeCase": { + "unsafeName": "TOKEN", + "safeName": "TOKEN" + }, + "pascalCase": { + "unsafeName": "Token", + "safeName": "Token" + } + } + }, + "declaration": { + "name": { + "originalName": "get_movie", + "camelCase": { + "unsafeName": "getMovie", + "safeName": "getMovie" + }, + "snakeCase": { + "unsafeName": "get_movie", + "safeName": "get_movie" + }, + "screamingSnakeCase": { + "unsafeName": "GET_MOVIE", + "safeName": "GET_MOVIE" + }, + "pascalCase": { + "unsafeName": "GetMovie", + "safeName": "GetMovie" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + ], + "packagePath": [], + "file": { + "originalName": "imdb", + "camelCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "snakeCase": { + "unsafeName": "imdb", + "safeName": "imdb" + }, + "screamingSnakeCase": { + "unsafeName": "IMDB", + "safeName": "IMDB" + }, + "pascalCase": { + "unsafeName": "Imdb", + "safeName": "Imdb" + } + } + } + }, + "location": { + "method": "GET", + "path": "/movies/{movie_id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "movie_id", + "camelCase": { + "unsafeName": "movieID", + "safeName": "movieID" + }, + "snakeCase": { + "unsafeName": "movie_id", + "safeName": "movie_id" + }, + "screamingSnakeCase": { + "unsafeName": "MOVIE_ID", + "safeName": "MOVIE_ID" + }, + "pascalCase": { + "unsafeName": "MovieID", + "safeName": "MovieID" + } + }, + "wireValue": "movie_id" + }, + "typeReference": { + "_type": "named", + "value": "type_imdb:MovieId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_imdb": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json index 16c6edf30c4..5054aa86dac 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/undiscriminated-unions.json @@ -3335,6 +3335,657 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_union:TypeWithOptionalUnion": { + "type": "object", + "declaration": { + "name": { + "originalName": "TypeWithOptionalUnion", + "camelCase": { + "unsafeName": "typeWithOptionalUnion", + "safeName": "typeWithOptionalUnion" + }, + "snakeCase": { + "unsafeName": "type_with_optional_union", + "safeName": "type_with_optional_union" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE_WITH_OPTIONAL_UNION", + "safeName": "TYPE_WITH_OPTIONAL_UNION" + }, + "pascalCase": { + "unsafeName": "TypeWithOptionalUnion", + "safeName": "TypeWithOptionalUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "myUnion", + "camelCase": { + "unsafeName": "myUnion", + "safeName": "myUnion" + }, + "snakeCase": { + "unsafeName": "my_union", + "safeName": "my_union" + }, + "screamingSnakeCase": { + "unsafeName": "MY_UNION", + "safeName": "MY_UNION" + }, + "pascalCase": { + "unsafeName": "MyUnion", + "safeName": "MyUnion" + } + }, + "wireValue": "myUnion" + }, + "typeReference": { + "_type": "optional", + "value": { + "_type": "named", + "value": "type_union:MyUnion" + } + } + } + ] + }, + "type_union:MyUnion": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "MyUnion", + "camelCase": { + "unsafeName": "myUnion", + "safeName": "myUnion" + }, + "snakeCase": { + "unsafeName": "my_union", + "safeName": "my_union" + }, + "screamingSnakeCase": { + "unsafeName": "MY_UNION", + "safeName": "MY_UNION" + }, + "pascalCase": { + "unsafeName": "MyUnion", + "safeName": "MyUnion" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "types": [ + { + "_type": "primitive", + "value": "STRING" + }, + { + "_type": "list", + "value": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "_type": "primitive", + "value": "INTEGER" + }, + { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "_type": "list", + "value": { + "_type": "list", + "value": { + "_type": "primitive", + "value": "INTEGER" + } + } + }, + { + "_type": "set", + "value": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:Metadata": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "typeReference": { + "_type": "map", + "key": { + "_type": "named", + "value": "type_union:Key" + }, + "value": { + "_type": "primitive", + "value": "STRING" + } + } + }, + "type_union:Key": { + "type": "undiscriminatedUnion", + "declaration": { + "name": { + "originalName": "Key", + "camelCase": { + "unsafeName": "key", + "safeName": "key" + }, + "snakeCase": { + "unsafeName": "key", + "safeName": "key" + }, + "screamingSnakeCase": { + "unsafeName": "KEY", + "safeName": "KEY" + }, + "pascalCase": { + "unsafeName": "Key", + "safeName": "Key" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "types": [ + { + "_type": "named", + "value": "type_union:KeyType" + }, + { + "_type": "literal", + "value": { + "type": "string", + "value": "default" + } + } + ] + }, + "type_union:KeyType": { + "type": "enum", + "declaration": { + "name": { + "originalName": "KeyType", + "camelCase": { + "unsafeName": "keyType", + "safeName": "keyType" + }, + "snakeCase": { + "unsafeName": "key_type", + "safeName": "key_type" + }, + "screamingSnakeCase": { + "unsafeName": "KEY_TYPE", + "safeName": "KEY_TYPE" + }, + "pascalCase": { + "unsafeName": "KeyType", + "safeName": "KeyType" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "values": [ + { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_union.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_union:MyUnion" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_union.getMetadata": { + "auth": null, + "declaration": { + "name": { + "originalName": "getMetadata", + "camelCase": { + "unsafeName": "getMetadata", + "safeName": "getMetadata" + }, + "snakeCase": { + "unsafeName": "get_metadata", + "safeName": "get_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "GET_METADATA", + "safeName": "GET_METADATA" + }, + "pascalCase": { + "unsafeName": "GetMetadata", + "safeName": "GetMetadata" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "GET", + "path": "/metadata" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_union": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json index beb4272005d..ecef2cce319 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unions.json @@ -4859,6 +4859,2514 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_types:Union": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Foo" + }, + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": null + }, + "bar": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Bar" + }, + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": null + } + } + }, + "type_types:UnionWithDiscriminant": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithDiscriminant", + "camelCase": { + "unsafeName": "unionWithDiscriminant", + "safeName": "unionWithDiscriminant" + }, + "snakeCase": { + "unsafeName": "union_with_discriminant", + "safeName": "union_with_discriminant" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_DISCRIMINANT", + "safeName": "UNION_WITH_DISCRIMINANT" + }, + "pascalCase": { + "unsafeName": "UnionWithDiscriminant", + "safeName": "UnionWithDiscriminant" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "_type" + }, + "types": { + "foo": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Foo" + }, + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": null + }, + "bar": { + "type": "singleProperty", + "typeReference": { + "_type": "named", + "value": "type_types:Bar" + }, + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": null + } + } + }, + "type_types:UnionWithPrimitive": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithPrimitive", + "camelCase": { + "unsafeName": "unionWithPrimitive", + "safeName": "unionWithPrimitive" + }, + "snakeCase": { + "unsafeName": "union_with_primitive", + "safeName": "union_with_primitive" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_PRIMITIVE", + "safeName": "UNION_WITH_PRIMITIVE" + }, + "pascalCase": { + "unsafeName": "UnionWithPrimitive", + "safeName": "UnionWithPrimitive" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integer": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "properties": null + }, + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": null + } + } + }, + "type_types:UnionWithoutKey": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithoutKey", + "camelCase": { + "unsafeName": "unionWithoutKey", + "safeName": "unionWithoutKey" + }, + "snakeCase": { + "unsafeName": "union_without_key", + "safeName": "union_without_key" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITHOUT_KEY", + "safeName": "UNION_WITHOUT_KEY" + }, + "pascalCase": { + "unsafeName": "UnionWithoutKey", + "safeName": "UnionWithoutKey" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [] + }, + "bar": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Bar", + "discriminantValue": { + "name": { + "originalName": "bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "wireValue": "bar" + }, + "properties": [] + } + } + }, + "type_types:UnionWithUnknown": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithUnknown", + "camelCase": { + "unsafeName": "unionWithUnknown", + "safeName": "unionWithUnknown" + }, + "snakeCase": { + "unsafeName": "union_with_unknown", + "safeName": "union_with_unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_UNKNOWN", + "safeName": "UNION_WITH_UNKNOWN" + }, + "pascalCase": { + "unsafeName": "UnionWithUnknown", + "safeName": "UnionWithUnknown" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [] + }, + "unknown": { + "type": "noProperties", + "discriminantValue": { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + }, + "properties": null + } + } + }, + "type_types:UnionWithLiteral": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithLiteral", + "camelCase": { + "unsafeName": "unionWithLiteral", + "safeName": "unionWithLiteral" + }, + "snakeCase": { + "unsafeName": "union_with_literal", + "safeName": "union_with_literal" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_LITERAL", + "safeName": "UNION_WITH_LITERAL" + }, + "pascalCase": { + "unsafeName": "UnionWithLiteral", + "safeName": "UnionWithLiteral" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "fern": { + "type": "singleProperty", + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "fern" + } + }, + "discriminantValue": { + "name": { + "originalName": "fern", + "camelCase": { + "unsafeName": "fern", + "safeName": "fern" + }, + "snakeCase": { + "unsafeName": "fern", + "safeName": "fern" + }, + "screamingSnakeCase": { + "unsafeName": "FERN", + "safeName": "FERN" + }, + "pascalCase": { + "unsafeName": "Fern", + "safeName": "Fern" + } + }, + "wireValue": "fern" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "base", + "camelCase": { + "unsafeName": "base", + "safeName": "base" + }, + "snakeCase": { + "unsafeName": "base", + "safeName": "base" + }, + "screamingSnakeCase": { + "unsafeName": "BASE", + "safeName": "BASE" + }, + "pascalCase": { + "unsafeName": "Base", + "safeName": "Base" + } + }, + "wireValue": "base" + }, + "typeReference": { + "_type": "literal", + "value": { + "type": "string", + "value": "base" + } + } + } + ] + } + } + }, + "type_types:UnionWithBaseProperties": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithBaseProperties", + "camelCase": { + "unsafeName": "unionWithBaseProperties", + "safeName": "unionWithBaseProperties" + }, + "snakeCase": { + "unsafeName": "union_with_base_properties", + "safeName": "union_with_base_properties" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_BASE_PROPERTIES", + "safeName": "UNION_WITH_BASE_PROPERTIES" + }, + "pascalCase": { + "unsafeName": "UnionWithBaseProperties", + "safeName": "UnionWithBaseProperties" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "integer": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "integer", + "camelCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "snakeCase": { + "unsafeName": "integer", + "safeName": "integer" + }, + "screamingSnakeCase": { + "unsafeName": "INTEGER", + "safeName": "INTEGER" + }, + "pascalCase": { + "unsafeName": "Integer", + "safeName": "Integer" + } + }, + "wireValue": "integer" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "string": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "STRING" + }, + "discriminantValue": { + "name": { + "originalName": "string", + "camelCase": { + "unsafeName": "string", + "safeName": "string" + }, + "snakeCase": { + "unsafeName": "string", + "safeName": "string" + }, + "screamingSnakeCase": { + "unsafeName": "STRING", + "safeName": "STRING" + }, + "pascalCase": { + "unsafeName": "String", + "safeName": "String" + } + }, + "wireValue": "string" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_types:UnionWithTime": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithTime", + "camelCase": { + "unsafeName": "unionWithTime", + "safeName": "unionWithTime" + }, + "snakeCase": { + "unsafeName": "union_with_time", + "safeName": "union_with_time" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_TIME", + "safeName": "UNION_WITH_TIME" + }, + "pascalCase": { + "unsafeName": "UnionWithTime", + "safeName": "UnionWithTime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "value": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + }, + "discriminantValue": { + "name": { + "originalName": "value", + "camelCase": { + "unsafeName": "value", + "safeName": "value" + }, + "snakeCase": { + "unsafeName": "value", + "safeName": "value" + }, + "screamingSnakeCase": { + "unsafeName": "VALUE", + "safeName": "VALUE" + }, + "pascalCase": { + "unsafeName": "Value", + "safeName": "Value" + } + }, + "wireValue": "value" + }, + "properties": null + }, + "date": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DATE" + }, + "discriminantValue": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "properties": null + }, + "datetime": { + "type": "singleProperty", + "typeReference": { + "_type": "primitive", + "value": "DATE_TIME" + }, + "discriminantValue": { + "name": { + "originalName": "datetime", + "camelCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "snakeCase": { + "unsafeName": "datetime", + "safeName": "datetime" + }, + "screamingSnakeCase": { + "unsafeName": "DATETIME", + "safeName": "DATETIME" + }, + "pascalCase": { + "unsafeName": "Datetime", + "safeName": "Datetime" + } + }, + "wireValue": "datetime" + }, + "properties": null + } + } + }, + "type_types:UnionWithOptionalTime": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithOptionalTime", + "camelCase": { + "unsafeName": "unionWithOptionalTime", + "safeName": "unionWithOptionalTime" + }, + "snakeCase": { + "unsafeName": "union_with_optional_time", + "safeName": "union_with_optional_time" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_OPTIONAL_TIME", + "safeName": "UNION_WITH_OPTIONAL_TIME" + }, + "pascalCase": { + "unsafeName": "UnionWithOptionalTime", + "safeName": "UnionWithOptionalTime" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "date": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE" + } + }, + "discriminantValue": { + "name": { + "originalName": "date", + "camelCase": { + "unsafeName": "date", + "safeName": "date" + }, + "snakeCase": { + "unsafeName": "date", + "safeName": "date" + }, + "screamingSnakeCase": { + "unsafeName": "DATE", + "safeName": "DATE" + }, + "pascalCase": { + "unsafeName": "Date", + "safeName": "Date" + } + }, + "wireValue": "date" + }, + "properties": null + }, + "dateimte": { + "type": "singleProperty", + "typeReference": { + "_type": "optional", + "value": { + "_type": "primitive", + "value": "DATE_TIME" + } + }, + "discriminantValue": { + "name": { + "originalName": "dateimte", + "camelCase": { + "unsafeName": "dateimte", + "safeName": "dateimte" + }, + "snakeCase": { + "unsafeName": "dateimte", + "safeName": "dateimte" + }, + "screamingSnakeCase": { + "unsafeName": "DATEIMTE", + "safeName": "DATEIMTE" + }, + "pascalCase": { + "unsafeName": "Dateimte", + "safeName": "Dateimte" + } + }, + "wireValue": "dateimte" + }, + "properties": null + } + } + }, + "type_types:UnionWithSingleElement": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "UnionWithSingleElement", + "camelCase": { + "unsafeName": "unionWithSingleElement", + "safeName": "unionWithSingleElement" + }, + "snakeCase": { + "unsafeName": "union_with_single_element", + "safeName": "union_with_single_element" + }, + "screamingSnakeCase": { + "unsafeName": "UNION_WITH_SINGLE_ELEMENT", + "safeName": "UNION_WITH_SINGLE_ELEMENT" + }, + "pascalCase": { + "unsafeName": "UnionWithSingleElement", + "safeName": "UnionWithSingleElement" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "foo": { + "type": "samePropertiesAsObject", + "typeId": "type_types:Foo", + "discriminantValue": { + "name": { + "originalName": "foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "wireValue": "foo" + }, + "properties": [] + } + } + }, + "type_types:Foo": { + "type": "object", + "declaration": { + "name": { + "originalName": "Foo", + "camelCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "snakeCase": { + "unsafeName": "foo", + "safeName": "foo" + }, + "screamingSnakeCase": { + "unsafeName": "FOO", + "safeName": "FOO" + }, + "pascalCase": { + "unsafeName": "Foo", + "safeName": "Foo" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_types:Bar": { + "type": "object", + "declaration": { + "name": { + "originalName": "Bar", + "camelCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "snakeCase": { + "unsafeName": "bar", + "safeName": "bar" + }, + "screamingSnakeCase": { + "unsafeName": "BAR", + "safeName": "BAR" + }, + "pascalCase": { + "unsafeName": "Bar", + "safeName": "Bar" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + ], + "packagePath": [], + "file": { + "originalName": "types", + "camelCase": { + "unsafeName": "types", + "safeName": "types" + }, + "snakeCase": { + "unsafeName": "types", + "safeName": "types" + }, + "screamingSnakeCase": { + "unsafeName": "TYPES", + "safeName": "TYPES" + }, + "pascalCase": { + "unsafeName": "Types", + "safeName": "Types" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:GetShapeRequest": { + "type": "object", + "declaration": { + "name": { + "originalName": "GetShapeRequest", + "camelCase": { + "unsafeName": "getShapeRequest", + "safeName": "getShapeRequest" + }, + "snakeCase": { + "unsafeName": "get_shape_request", + "safeName": "get_shape_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_SHAPE_REQUEST", + "safeName": "GET_SHAPE_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetShapeRequest", + "safeName": "GetShapeRequest" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "type_union:Shape": { + "type": "discriminatedUnion", + "declaration": { + "name": { + "originalName": "Shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "discriminant": { + "name": { + "originalName": "type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "wireValue": "type" + }, + "types": { + "circle": { + "type": "samePropertiesAsObject", + "typeId": "type_union:Circle", + "discriminantValue": { + "name": { + "originalName": "circle", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "wireValue": "circle" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + }, + "square": { + "type": "samePropertiesAsObject", + "typeId": "type_union:Square", + "discriminantValue": { + "name": { + "originalName": "square", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "wireValue": "square" + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + } + }, + "type_union:Circle": { + "type": "object", + "declaration": { + "name": { + "originalName": "Circle", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "radius", + "camelCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "snakeCase": { + "unsafeName": "radius", + "safeName": "radius" + }, + "screamingSnakeCase": { + "unsafeName": "RADIUS", + "safeName": "RADIUS" + }, + "pascalCase": { + "unsafeName": "Radius", + "safeName": "Radius" + } + }, + "wireValue": "radius" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + }, + "type_union:Square": { + "type": "object", + "declaration": { + "name": { + "originalName": "Square", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "length", + "camelCase": { + "unsafeName": "length", + "safeName": "length" + }, + "snakeCase": { + "unsafeName": "length", + "safeName": "length" + }, + "screamingSnakeCase": { + "unsafeName": "LENGTH", + "safeName": "LENGTH" + }, + "pascalCase": { + "unsafeName": "Length", + "safeName": "Length" + } + }, + "wireValue": "length" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_union.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "GET", + "path": "/{id}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + }, + "endpoint_union.update": { + "auth": null, + "declaration": { + "name": { + "originalName": "update", + "camelCase": { + "unsafeName": "update", + "safeName": "update" + }, + "snakeCase": { + "unsafeName": "update", + "safeName": "update" + }, + "screamingSnakeCase": { + "unsafeName": "UPDATE", + "safeName": "UPDATE" + }, + "pascalCase": { + "unsafeName": "Update", + "safeName": "Update" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + ], + "packagePath": [], + "file": { + "originalName": "union", + "camelCase": { + "unsafeName": "union", + "safeName": "union" + }, + "snakeCase": { + "unsafeName": "union", + "safeName": "union" + }, + "screamingSnakeCase": { + "unsafeName": "UNION", + "safeName": "UNION" + }, + "pascalCase": { + "unsafeName": "Union", + "safeName": "Union" + } + } + } + }, + "location": { + "method": "PATCH", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_union:Shape" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_types": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json index 5f2c7f4076d..5d51200a7d9 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/unknown.json @@ -1147,6 +1147,349 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_unknown:MyAlias": { + "type": "alias", + "declaration": { + "name": { + "originalName": "MyAlias", + "camelCase": { + "unsafeName": "myAlias", + "safeName": "myAlias" + }, + "snakeCase": { + "unsafeName": "my_alias", + "safeName": "my_alias" + }, + "screamingSnakeCase": { + "unsafeName": "MY_ALIAS", + "safeName": "MY_ALIAS" + }, + "pascalCase": { + "unsafeName": "MyAlias", + "safeName": "MyAlias" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "typeReference": { + "_type": "unknown" + } + }, + "type_unknown:MyObject": { + "type": "object", + "declaration": { + "name": { + "originalName": "MyObject", + "camelCase": { + "unsafeName": "myObject", + "safeName": "myObject" + }, + "snakeCase": { + "unsafeName": "my_object", + "safeName": "my_object" + }, + "screamingSnakeCase": { + "unsafeName": "MY_OBJECT", + "safeName": "MY_OBJECT" + }, + "pascalCase": { + "unsafeName": "MyObject", + "safeName": "MyObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + }, + "wireValue": "unknown" + }, + "typeReference": { + "_type": "unknown" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_unknown.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "location": { + "method": "POST", + "path": "/" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "unknown" + } + } + }, + "response": { + "type": "json" + } + }, + "endpoint_unknown.postObject": { + "auth": null, + "declaration": { + "name": { + "originalName": "postObject", + "camelCase": { + "unsafeName": "postObject", + "safeName": "postObject" + }, + "snakeCase": { + "unsafeName": "post_object", + "safeName": "post_object" + }, + "screamingSnakeCase": { + "unsafeName": "POST_OBJECT", + "safeName": "POST_OBJECT" + }, + "pascalCase": { + "unsafeName": "PostObject", + "safeName": "PostObject" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + ], + "packagePath": [], + "file": { + "originalName": "unknown", + "camelCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "snakeCase": { + "unsafeName": "unknown", + "safeName": "unknown" + }, + "screamingSnakeCase": { + "unsafeName": "UNKNOWN", + "safeName": "UNKNOWN" + }, + "pascalCase": { + "unsafeName": "Unknown", + "safeName": "Unknown" + } + } + } + }, + "location": { + "method": "POST", + "path": "/with-object" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": { + "type": "typeReference", + "value": { + "_type": "named", + "value": "type_unknown:MyObject" + } + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_unknown": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json index 1c02b764553..93bfb96ca6b 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/validation.json @@ -2857,6 +2857,766 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:SmallInteger": { + "type": "alias", + "declaration": { + "name": { + "originalName": "SmallInteger", + "camelCase": { + "unsafeName": "smallInteger", + "safeName": "smallInteger" + }, + "snakeCase": { + "unsafeName": "small_integer", + "safeName": "small_integer" + }, + "screamingSnakeCase": { + "unsafeName": "SMALL_INTEGER", + "safeName": "SMALL_INTEGER" + }, + "pascalCase": { + "unsafeName": "SmallInteger", + "safeName": "SmallInteger" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + "type_:LargeInteger": { + "type": "alias", + "declaration": { + "name": { + "originalName": "LargeInteger", + "camelCase": { + "unsafeName": "largeInteger", + "safeName": "largeInteger" + }, + "snakeCase": { + "unsafeName": "large_integer", + "safeName": "large_integer" + }, + "screamingSnakeCase": { + "unsafeName": "LARGE_INTEGER", + "safeName": "LARGE_INTEGER" + }, + "pascalCase": { + "unsafeName": "LargeInteger", + "safeName": "LargeInteger" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + "type_:Double": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Double", + "camelCase": { + "unsafeName": "double", + "safeName": "double" + }, + "snakeCase": { + "unsafeName": "double", + "safeName": "double" + }, + "screamingSnakeCase": { + "unsafeName": "DOUBLE", + "safeName": "DOUBLE" + }, + "pascalCase": { + "unsafeName": "Double", + "safeName": "Double" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + "type_:Word": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Word", + "camelCase": { + "unsafeName": "word", + "safeName": "word" + }, + "snakeCase": { + "unsafeName": "word", + "safeName": "word" + }, + "screamingSnakeCase": { + "unsafeName": "WORD", + "safeName": "WORD" + }, + "pascalCase": { + "unsafeName": "Word", + "safeName": "Word" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Sentence": { + "type": "alias", + "declaration": { + "name": { + "originalName": "Sentence", + "camelCase": { + "unsafeName": "sentence", + "safeName": "sentence" + }, + "snakeCase": { + "unsafeName": "sentence", + "safeName": "sentence" + }, + "screamingSnakeCase": { + "unsafeName": "SENTENCE", + "safeName": "SENTENCE" + }, + "pascalCase": { + "unsafeName": "Sentence", + "safeName": "Sentence" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_:Shape": { + "type": "enum", + "declaration": { + "name": { + "originalName": "Shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "name": { + "originalName": "SQUARE", + "camelCase": { + "unsafeName": "square", + "safeName": "square" + }, + "snakeCase": { + "unsafeName": "square", + "safeName": "square" + }, + "screamingSnakeCase": { + "unsafeName": "SQUARE", + "safeName": "SQUARE" + }, + "pascalCase": { + "unsafeName": "Square", + "safeName": "Square" + } + }, + "wireValue": "SQUARE" + }, + { + "name": { + "originalName": "CIRCLE", + "camelCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "snakeCase": { + "unsafeName": "circle", + "safeName": "circle" + }, + "screamingSnakeCase": { + "unsafeName": "CIRCLE", + "safeName": "CIRCLE" + }, + "pascalCase": { + "unsafeName": "Circle", + "safeName": "Circle" + } + }, + "wireValue": "CIRCLE" + }, + { + "name": { + "originalName": "TRIANGLE", + "camelCase": { + "unsafeName": "triangle", + "safeName": "triangle" + }, + "snakeCase": { + "unsafeName": "triangle", + "safeName": "triangle" + }, + "screamingSnakeCase": { + "unsafeName": "TRIANGLE", + "safeName": "TRIANGLE" + }, + "pascalCase": { + "unsafeName": "Triangle", + "safeName": "Triangle" + } + }, + "wireValue": "TRIANGLE" + } + ] + }, + "type_:Type": { + "type": "object", + "declaration": { + "name": { + "originalName": "Type", + "camelCase": { + "unsafeName": "type", + "safeName": "type" + }, + "snakeCase": { + "unsafeName": "type", + "safeName": "type" + }, + "screamingSnakeCase": { + "unsafeName": "TYPE", + "safeName": "TYPE" + }, + "pascalCase": { + "unsafeName": "Type", + "safeName": "Type" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "wireValue": "shape" + }, + "typeReference": { + "_type": "named", + "value": "type_:Shape" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_.create": { + "auth": null, + "declaration": { + "name": { + "originalName": "create", + "camelCase": { + "unsafeName": "create", + "safeName": "create" + }, + "snakeCase": { + "unsafeName": "create", + "safeName": "create" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE", + "safeName": "CREATE" + }, + "pascalCase": { + "unsafeName": "Create", + "safeName": "Create" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/create" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "CreateRequest", + "camelCase": { + "unsafeName": "createRequest", + "safeName": "createRequest" + }, + "snakeCase": { + "unsafeName": "create_request", + "safeName": "create_request" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_REQUEST", + "safeName": "CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "CreateRequest", + "safeName": "CreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + { + "name": { + "name": { + "originalName": "shape", + "camelCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "snakeCase": { + "unsafeName": "shape", + "safeName": "shape" + }, + "screamingSnakeCase": { + "unsafeName": "SHAPE", + "safeName": "SHAPE" + }, + "pascalCase": { + "unsafeName": "Shape", + "safeName": "Shape" + } + }, + "wireValue": "shape" + }, + "typeReference": { + "_type": "named", + "value": "type_:Shape" + } + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + }, + "endpoint_.get": { + "auth": null, + "declaration": { + "name": { + "originalName": "get", + "camelCase": { + "unsafeName": "get", + "safeName": "get" + }, + "snakeCase": { + "unsafeName": "get", + "safeName": "get" + }, + "screamingSnakeCase": { + "unsafeName": "GET", + "safeName": "GET" + }, + "pascalCase": { + "unsafeName": "Get", + "safeName": "Get" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "GetRequest", + "camelCase": { + "unsafeName": "getRequest", + "safeName": "getRequest" + }, + "snakeCase": { + "unsafeName": "get_request", + "safeName": "get_request" + }, + "screamingSnakeCase": { + "unsafeName": "GET_REQUEST", + "safeName": "GET_REQUEST" + }, + "pascalCase": { + "unsafeName": "GetRequest", + "safeName": "GetRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "name": { + "originalName": "decimal", + "camelCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "snakeCase": { + "unsafeName": "decimal", + "safeName": "decimal" + }, + "screamingSnakeCase": { + "unsafeName": "DECIMAL", + "safeName": "DECIMAL" + }, + "pascalCase": { + "unsafeName": "Decimal", + "safeName": "Decimal" + } + }, + "wireValue": "decimal" + }, + "typeReference": { + "_type": "primitive", + "value": "DOUBLE" + } + }, + { + "name": { + "name": { + "originalName": "even", + "camelCase": { + "unsafeName": "even", + "safeName": "even" + }, + "snakeCase": { + "unsafeName": "even", + "safeName": "even" + }, + "screamingSnakeCase": { + "unsafeName": "EVEN", + "safeName": "EVEN" + }, + "pascalCase": { + "unsafeName": "Even", + "safeName": "Even" + } + }, + "wireValue": "even" + }, + "typeReference": { + "_type": "primitive", + "value": "INTEGER" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": {}, "rootPackage": { "fernFilepath": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json index d2ecd9b0f19..ac8771c20d3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/variables.json @@ -364,6 +364,121 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": { + "endpoint_service.post": { + "auth": null, + "declaration": { + "name": { + "originalName": "post", + "camelCase": { + "unsafeName": "post", + "safeName": "post" + }, + "snakeCase": { + "unsafeName": "post", + "safeName": "post" + }, + "screamingSnakeCase": { + "unsafeName": "POST", + "safeName": "POST" + }, + "pascalCase": { + "unsafeName": "Post", + "safeName": "Post" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + ], + "packagePath": [], + "file": { + "originalName": "service", + "camelCase": { + "unsafeName": "service", + "safeName": "service" + }, + "snakeCase": { + "unsafeName": "service", + "safeName": "service" + }, + "screamingSnakeCase": { + "unsafeName": "SERVICE", + "safeName": "SERVICE" + }, + "pascalCase": { + "unsafeName": "Service", + "safeName": "Service" + } + } + } + }, + "location": { + "method": "POST", + "path": "/{endpointParam}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "endpointParam", + "camelCase": { + "unsafeName": "endpointParam", + "safeName": "endpointParam" + }, + "snakeCase": { + "unsafeName": "endpoint_param", + "safeName": "endpoint_param" + }, + "screamingSnakeCase": { + "unsafeName": "ENDPOINT_PARAM", + "safeName": "ENDPOINT_PARAM" + }, + "pascalCase": { + "unsafeName": "EndpointParam", + "safeName": "EndpointParam" + } + }, + "wireValue": "endpointParam" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_service": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json index e41b7e4fb7f..d6dc195d2d2 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version-no-default.json @@ -1396,6 +1396,318 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_user:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json index 2d15f1e6123..1ddd610bcc3 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/version.json @@ -1421,6 +1421,318 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_user:UserId": { + "type": "alias", + "declaration": { + "name": { + "originalName": "UserId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + }, + "type_user:User": { + "type": "object", + "declaration": { + "name": { + "originalName": "User", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "properties": [ + { + "name": { + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + }, + "wireValue": "id" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + }, + { + "name": { + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + }, + "wireValue": "name" + }, + "typeReference": { + "_type": "primitive", + "value": "STRING" + } + } + ] + } + }, + "headers": [], + "endpoints": { + "endpoint_user.getUser": { + "auth": null, + "declaration": { + "name": { + "originalName": "getUser", + "camelCase": { + "unsafeName": "getUser", + "safeName": "getUser" + }, + "snakeCase": { + "unsafeName": "get_user", + "safeName": "get_user" + }, + "screamingSnakeCase": { + "unsafeName": "GET_USER", + "safeName": "GET_USER" + }, + "pascalCase": { + "unsafeName": "GetUser", + "safeName": "GetUser" + } + }, + "fernFilepath": { + "allParts": [ + { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + ], + "packagePath": [], + "file": { + "originalName": "user", + "camelCase": { + "unsafeName": "user", + "safeName": "user" + }, + "snakeCase": { + "unsafeName": "user", + "safeName": "user" + }, + "screamingSnakeCase": { + "unsafeName": "USER", + "safeName": "USER" + }, + "pascalCase": { + "unsafeName": "User", + "safeName": "User" + } + } + } + }, + "location": { + "method": "GET", + "path": "/users/{userId}" + }, + "request": { + "type": "body", + "pathParameters": [ + { + "name": { + "name": { + "originalName": "userId", + "camelCase": { + "unsafeName": "userID", + "safeName": "userID" + }, + "snakeCase": { + "unsafeName": "user_id", + "safeName": "user_id" + }, + "screamingSnakeCase": { + "unsafeName": "USER_ID", + "safeName": "USER_ID" + }, + "pascalCase": { + "unsafeName": "UserID", + "safeName": "UserID" + } + }, + "wireValue": "userId" + }, + "typeReference": { + "_type": "named", + "value": "type_user:UserId" + } + } + ], + "body": null + }, + "response": { + "type": "json" + } + } + } + }, "subpackages": { "subpackage_user": { "name": { diff --git a/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json b/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json index 9f5cbe7a70b..9e411201454 100644 --- a/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json +++ b/packages/cli/generation/ir-generator/src/__test__/test-definitions/websocket.json @@ -491,6 +491,12 @@ "readmeConfig": null, "sourceConfig": null, "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": {}, + "headers": [], + "endpoints": {} + }, "subpackages": { "subpackage_realtime": { "name": { diff --git a/packages/cli/dynamic-snippets/src/DynamicSnippetsConverter.ts b/packages/cli/generation/ir-generator/src/dynamic-snippets/DynamicSnippetsConverter.ts similarity index 100% rename from packages/cli/dynamic-snippets/src/DynamicSnippetsConverter.ts rename to packages/cli/generation/ir-generator/src/dynamic-snippets/DynamicSnippetsConverter.ts diff --git a/packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/DynamicSnippetsConverter.test.ts similarity index 97% rename from packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/DynamicSnippetsConverter.test.ts index 2e85bdc6ba6..7b98e1e01e6 100644 --- a/packages/cli/dynamic-snippets/src/__test__/DynamicSnippetsConverter.test.ts +++ b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/DynamicSnippetsConverter.test.ts @@ -6,7 +6,7 @@ import { generateAndSnapshotDynamicIR } from "./generateAndSnapshotDynamicIR"; // eslint-disable-next-line @typescript-eslint/no-misused-promises describe("test definitions", async () => { - const TEST_DEFINITIONS_DIR = path.join(__dirname, "../../../../../test-definitions"); + const TEST_DEFINITIONS_DIR = path.join(__dirname, "../../../../../../../test-definitions"); const apiWorkspaces = await loadApis({ fernDirectory: join(AbsoluteFilePath.of(TEST_DEFINITIONS_DIR), RelativeFilePath.of("fern")), context: createMockTaskContext(), diff --git a/packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/generateAndSnapshotDynamicIR.ts similarity index 95% rename from packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/generateAndSnapshotDynamicIR.ts index 629bc330f5b..4e4c37b4834 100644 --- a/packages/cli/dynamic-snippets/src/__test__/generateAndSnapshotDynamicIR.ts +++ b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/generateAndSnapshotDynamicIR.ts @@ -4,7 +4,7 @@ import { serialization as IrSerialization } from "@fern-api/ir-sdk"; import { createMockTaskContext } from "@fern-api/task-context"; import { AbstractAPIWorkspace } from "@fern-api/workspace-loader"; import { writeFile } from "fs/promises"; -import { generateIntermediateRepresentation } from "@fern-api/ir-generator"; +import { generateIntermediateRepresentation } from "../../generateIntermediateRepresentation"; import { convertIrToDynamicSnippetsIr } from "../convertIrToDynamicSnippetsIr"; export async function generateAndSnapshotDynamicIR({ diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias-extends.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/alias-extends.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/alias-extends.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/alias-extends.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/alias.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/alias.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/alias.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/alias.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/any-auth.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/any-auth.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/any-auth.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/any-auth.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/api-wide-base-path.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/api-wide-base-path.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/api-wide-base-path.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/api-wide-base-path.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/audiences.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/audiences.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/audiences.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/audiences.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/auth-environment-variables.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/auth-environment-variables.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/auth-environment-variables.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/auth-environment-variables.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth-environment-variables.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/basic-auth-environment-variables.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth-environment-variables.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/basic-auth-environment-variables.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/basic-auth.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/basic-auth.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/basic-auth.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/bearer-token-environment-variable.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/bearer-token-environment-variable.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/bearer-token-environment-variable.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/bearer-token-environment-variable.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/bytes.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/bytes.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/bytes.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/bytes.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references-advanced.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/circular-references-advanced.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references-advanced.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/circular-references-advanced.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/circular-references.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/circular-references.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/circular-references.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/cross-package-type-names.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/cross-package-type-names.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/cross-package-type-names.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/cross-package-type-names.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-grpc-proto-exhaustive.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-grpc-proto-exhaustive.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-grpc-proto-exhaustive.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-grpc-proto.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-grpc-proto.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-grpc-proto.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-grpc-proto.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-namespace-conflict.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-namespace-conflict.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/csharp-namespace-conflict.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/csharp-namespace-conflict.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/custom-auth.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/custom-auth.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/custom-auth.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/custom-auth.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/enum.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/enum.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/enum.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/enum.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/error-property.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/error-property.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/error-property.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/error-property.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/examples.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/examples.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/examples.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/examples.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/exhaustive.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/exhaustive.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/exhaustive.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/exhaustive.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/extends.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/extends.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/extends.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/extends.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/extra-properties.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/extra-properties.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/extra-properties.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/extra-properties.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-download.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/file-download.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/file-download.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/file-download.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/file-upload.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/file-upload.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/file-upload.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/file-upload.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/folders.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/folders.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/folders.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/folders.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/go-content-type.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/go-content-type.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/go-content-type.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/go-content-type.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto-exhaustive.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/grpc-proto-exhaustive.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto-exhaustive.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/grpc-proto-exhaustive.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/grpc-proto.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/grpc-proto.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/grpc-proto.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/idempotency-headers.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/idempotency-headers.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/idempotency-headers.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/idempotency-headers.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/imdb.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/imdb.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/imdb.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/imdb.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/license.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/license.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/license.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/license.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/literal.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/literal.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/literal.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/literal.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-case.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/mixed-case.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-case.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/mixed-case.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-file-directory.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/mixed-file-directory.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/mixed-file-directory.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/mixed-file-directory.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-line-docs.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-line-docs.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-line-docs.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-line-docs.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-url-environment-no-default.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment-no-default.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-url-environment-no-default.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-url-environment.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/multi-url-environment.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/multi-url-environment.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/no-environment.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/no-environment.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/no-environment.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/no-environment.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-default.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-default.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-default.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-default.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-environment-variables.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-environment-variables.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-environment-variables.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-nested-root.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-nested-root.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials-nested-root.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials-nested-root.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/oauth-client-credentials.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/oauth-client-credentials.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/object.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/object.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/object.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/object.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/objects-with-imports.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/objects-with-imports.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/objects-with-imports.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/objects-with-imports.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/optional.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/optional.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/optional.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/optional.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/package-yml.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/package-yml.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/package-yml.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/package-yml.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/pagination.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/pagination.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/pagination.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/pagination.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/path-parameters.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/path-parameters.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/path-parameters.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/path-parameters.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/plain-text.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/plain-text.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/plain-text.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/plain-text.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/query-parameters.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/query-parameters.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/query-parameters.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/query-parameters.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/reserved-keywords.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/reserved-keywords.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/reserved-keywords.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/reserved-keywords.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/response-property.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/response-property.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/response-property.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/response-property.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-event-examples.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/server-sent-event-examples.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-event-examples.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/server-sent-event-examples.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-events.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/server-sent-events.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/server-sent-events.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/server-sent-events.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/simple-fhir.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/simple-fhir.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/simple-fhir.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/simple-fhir.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-default.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/single-url-environment-default.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-default.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/single-url-environment-default.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-no-default.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/single-url-environment-no-default.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/single-url-environment-no-default.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/single-url-environment-no-default.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming-parameter.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/streaming-parameter.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming-parameter.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/streaming-parameter.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/streaming.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/streaming.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/streaming.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/trace.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/trace.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/trace.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/trace.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/ts-express-casing.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/ts-express-casing.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/ts-express-casing.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/ts-express-casing.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/undiscriminated-unions.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/undiscriminated-unions.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/undiscriminated-unions.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/undiscriminated-unions.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/unions.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/unions.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/unions.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/unions.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/unknown.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/unknown.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/unknown.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/unknown.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/validation.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/validation.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/validation.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/validation.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/variables.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/variables.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/variables.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/variables.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/version-no-default.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/version-no-default.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/version-no-default.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/version-no-default.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/version.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/version.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/version.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/version.json diff --git a/packages/cli/dynamic-snippets/src/__test__/test-definitions/websocket.json b/packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/websocket.json similarity index 100% rename from packages/cli/dynamic-snippets/src/__test__/test-definitions/websocket.json rename to packages/cli/generation/ir-generator/src/dynamic-snippets/__test__/test-definitions/websocket.json diff --git a/packages/cli/dynamic-snippets/src/convertIrToDynamicSnippetsIr.ts b/packages/cli/generation/ir-generator/src/dynamic-snippets/convertIrToDynamicSnippetsIr.ts similarity index 100% rename from packages/cli/dynamic-snippets/src/convertIrToDynamicSnippetsIr.ts rename to packages/cli/generation/ir-generator/src/dynamic-snippets/convertIrToDynamicSnippetsIr.ts diff --git a/packages/cli/dynamic-snippets/src/version.ts b/packages/cli/generation/ir-generator/src/dynamic-snippets/version.ts similarity index 100% rename from packages/cli/dynamic-snippets/src/version.ts rename to packages/cli/generation/ir-generator/src/dynamic-snippets/version.ts diff --git a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts index b26d230c10a..4befdb1eee5 100644 --- a/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts +++ b/packages/cli/generation/ir-generator/src/generateIntermediateRepresentation.ts @@ -7,6 +7,7 @@ import { IntermediateRepresentation, PathParameterLocation, ResponseErrors, + SdkConfig, ServiceId, ServiceTypeReferenceInfo, Type, @@ -50,6 +51,7 @@ import { getAudienceForEnvironment } from "./utils/getEnvironmentsByAudience"; import { isGeneric } from "@fern-api/fern-definition-schema"; import { parseErrorName } from "./utils/parseErrorName"; import { generateEndpointExample } from "./examples/generator/generateSuccessEndpointExample"; +import { convertIrToDynamicSnippetsIr } from "./dynamic-snippets/convertIrToDynamicSnippetsIr"; export async function generateIntermediateRepresentation({ fdrApiDefinitionId, @@ -174,7 +176,8 @@ export async function generateIntermediateRepresentation({ websocketChannels: {}, readmeConfig: undefined, sourceConfig: undefined, - publishConfig: undefined + publishConfig: undefined, + dynamic: undefined }; const packageTreeGenerator = new PackageTreeGenerator(); @@ -488,36 +491,43 @@ export async function generateIntermediateRepresentation({ return service.endpoints.some((endpoint) => endpoint.response?.body?.type === "fileDownload"); }); + const sdkConfig: SdkConfig = { + isAuthMandatory, + hasStreamingEndpoints, + hasPaginatedEndpoints, + hasFileDownloadEndpoints, + platformHeaders: { + language: "X-Fern-Language", + sdkName: "X-Fern-SDK-Name", + sdkVersion: "X-Fern-SDK-Version", + userAgent: + version != null && packageName != null + ? { + header: "User-Agent", + value: `${packageName}/${version}` + } + : undefined + } + }; + const readmeConfig = readme != null ? convertReadmeConfig({ readme, services: intermediateRepresentation.services }) : undefined; const { types, services } = addExtendedPropertiesToIr(intermediateRepresentationForAudiences); - return { + const finalIR = { ...intermediateRepresentationForAudiences, ...packageTreeGenerator.build(filteredIr), types, services, - sdkConfig: { - isAuthMandatory, - hasStreamingEndpoints, - hasPaginatedEndpoints, - hasFileDownloadEndpoints, - platformHeaders: { - language: "X-Fern-Language", - sdkName: "X-Fern-SDK-Name", - sdkVersion: "X-Fern-SDK-Version", - userAgent: - version != null && packageName != null - ? { - header: "User-Agent", - value: `${packageName}/${version}` - } - : undefined - } - }, + sdkConfig, readmeConfig }; + + return { + ...finalIR, + dynamic: await convertIrToDynamicSnippetsIr(finalIR) + }; } function injectAutogeneratedExamples( diff --git a/packages/cli/generation/ir-generator/src/index.ts b/packages/cli/generation/ir-generator/src/index.ts index 808b7722343..5e4e2eca397 100644 --- a/packages/cli/generation/ir-generator/src/index.ts +++ b/packages/cli/generation/ir-generator/src/index.ts @@ -37,3 +37,4 @@ export { IdGenerator } from "./IdGenerator"; export { convertToFernFilepath } from "./utils/convertToFernFilepath"; export { generateEndpointExample } from "./examples/generator/generateSuccessEndpointExample"; export { getEndpointPathParameters } from "./utils/getEndpointPathParameters"; +export { convertIrToDynamicSnippetsIr } from "./dynamic-snippets/convertIrToDynamicSnippetsIr"; diff --git a/packages/cli/generation/local-generation/local-workspace-runner/package.json b/packages/cli/generation/local-generation/local-workspace-runner/package.json index 51bcda6c70e..9e2b78f2337 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/package.json +++ b/packages/cli/generation/local-generation/local-workspace-runner/package.json @@ -29,8 +29,8 @@ }, "dependencies": { "@fern-api/configuration": "workspace:*", + "@fern-api/core-utils": "workspace:*", "@fern-api/docker-utils": "workspace:*", - "@fern-api/dynamic-snippets": "workspace:*", "@fern-api/fs-utils": "workspace:*", "@fern-api/go-dynamic-snippets": "workspace:*", "@fern-api/ir-generator": "workspace:*", @@ -45,13 +45,15 @@ "@fern-api/sdk": "0.12.3", "chalk": "^5.3.0", "decompress": "^4.2.1", - "tmp-promise": "^3.0.3" + "tmp-promise": "^3.0.3", + "url-join": "^5.0.0" }, "devDependencies": { "@types/decompress": "^4.2.7", "@types/jest": "^29.5.12", "@types/node": "18.7.18", "@types/tmp": "^0.2.4", + "@types/url-join": "4.0.1", "depcheck": "^1.4.6", "eslint": "^8.56.0", "vitest": "^2.1.4", diff --git a/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestGenerator.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestGenerator.ts index cb7bda6db70..d44dd51001a 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestGenerator.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestGenerator.ts @@ -1,5 +1,5 @@ import { generatorsYml } from "@fern-api/configuration"; -import { DynamicSnippetsTestSuite } from "@fern-api/dynamic-snippets"; +import { DynamicSnippetsTestSuite } from "./DynamicSnippetsTestSuite"; import { DynamicSnippetsGoTestGenerator } from "./go/DynamicSnippetsGoTestGenerator"; import { AbsoluteFilePath } from "@fern-api/fs-utils"; import { TaskContext } from "@fern-api/task-context"; diff --git a/packages/cli/dynamic-snippets/src/test-utils/DynamicSnippetsTestSuite.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestSuite.ts similarity index 100% rename from packages/cli/dynamic-snippets/src/test-utils/DynamicSnippetsTestSuite.ts rename to packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/DynamicSnippetsTestSuite.ts diff --git a/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetTests.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetTests.ts index 7bf34c4bdba..f71d57255be 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetTests.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetTests.ts @@ -1,4 +1,4 @@ -import { generateDynamicSnippetsTestSuite } from "@fern-api/dynamic-snippets"; +import { generateDynamicSnippetsTestSuite } from "./generateDynamicSnippetsTestSuite"; import { FernGeneratorExec } from "@fern-fern/generator-exec-sdk"; import { AbsoluteFilePath } from "@fern-api/fs-utils"; import { DynamicSnippetsTestGenerator } from "./DynamicSnippetsTestGenerator"; diff --git a/packages/cli/dynamic-snippets/src/test-utils/generateDynamicSnippetsTestSuite.ts b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetsTestSuite.ts similarity index 96% rename from packages/cli/dynamic-snippets/src/test-utils/generateDynamicSnippetsTestSuite.ts rename to packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetsTestSuite.ts index 1087f57bb5b..b47f7f4806c 100644 --- a/packages/cli/dynamic-snippets/src/test-utils/generateDynamicSnippetsTestSuite.ts +++ b/packages/cli/generation/local-generation/local-workspace-runner/src/dynamic-snippets/generateDynamicSnippetsTestSuite.ts @@ -1,4 +1,3 @@ -import { convertIrToDynamicSnippetsIr } from "../convertIrToDynamicSnippetsIr"; import { ApiAuth, HttpEndpoint, dynamic as DynamicSnippets, IntermediateRepresentation } from "@fern-api/ir-sdk"; import { assertNever } from "@fern-api/core-utils"; import { FernGeneratorExec } from "@fern-fern/generator-exec-sdk"; @@ -12,8 +11,11 @@ export async function generateDynamicSnippetsTestSuite({ ir: IntermediateRepresentation; config: FernGeneratorExec.GeneratorConfig; }): Promise { + if (ir.dynamic == null) { + throw new Error("Internal error; dynamic IR is not available"); + } return { - ir: await convertIrToDynamicSnippetsIr(ir), + ir: ir.dynamic, config, requests: getEndpointSnippetRequests({ ir }) }; diff --git a/packages/cli/generation/local-generation/local-workspace-runner/tsconfig.json b/packages/cli/generation/local-generation/local-workspace-runner/tsconfig.json index 0fb24f6e82f..0e2fdd32c26 100644 --- a/packages/cli/generation/local-generation/local-workspace-runner/tsconfig.json +++ b/packages/cli/generation/local-generation/local-workspace-runner/tsconfig.json @@ -3,12 +3,12 @@ "compilerOptions": { "composite": true, "outDir": "lib", "rootDir": "src" }, "include": ["./src/**/*"], "references": [ + { "path": "../../../../../generators/go-v2/dynamic-snippets" }, + { "path": "../../../../commons/core-utils" }, { "path": "../../../../commons/fs-utils" }, { "path": "../../../../commons/logging-execa" }, { "path": "../../../../ir-sdk" }, - { "path": "../../../../../generators/go-v2/dynamic-snippets" }, { "path": "../../../configuration" }, - { "path": "../../../dynamic-snippets" }, { "path": "../../../task-context" }, { "path": "../../../workspace-loader" }, { "path": "../../../workspace-commons" }, diff --git a/packages/cli/lazy-fern-workspace/src/OSSWorkspace.ts b/packages/cli/lazy-fern-workspace/src/OSSWorkspace.ts index 514cd780450..c0ee0770218 100644 --- a/packages/cli/lazy-fern-workspace/src/OSSWorkspace.ts +++ b/packages/cli/lazy-fern-workspace/src/OSSWorkspace.ts @@ -104,9 +104,13 @@ export declare namespace OSSWorkspace { */ cooerceEnumsToLiterals?: boolean; /* - * Whehter or not to parse object query parameters. + * Whether or not to parse object query parameters. */ objectQueryParameters?: boolean; + /* + * Whether or not to preserve original schema ids. + */ + preserveSchemaIds?: boolean; } } @@ -302,5 +306,8 @@ function getOptionsOverridesFromSettings(settings?: OSSWorkspace.Settings): Part if (settings.cooerceEnumsToLiterals) { result.cooerceEnumsToLiterals = true; } + if (settings.preserveSchemaIds) { + result.preserveSchemaIds = true; + } return result; } diff --git a/packages/cli/project-loader/src/loadProject.ts b/packages/cli/project-loader/src/loadProject.ts index 52800b299f8..93e88fec5c3 100644 --- a/packages/cli/project-loader/src/loadProject.ts +++ b/packages/cli/project-loader/src/loadProject.ts @@ -30,6 +30,7 @@ export declare namespace loadProject { context: TaskContext; nameOverride?: string; sdkLanguage?: generatorsYml.GenerationLanguage; + preserveSchemaIds?: boolean; } export interface LoadProjectFromDirectoryArgs extends Args { diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/VERSION b/packages/ir-sdk/fern/apis/ir-types-latest/VERSION index 04305a4d404..51784cc2a26 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/VERSION +++ b/packages/ir-sdk/fern/apis/ir-types-latest/VERSION @@ -1 +1 @@ -53.21.0 +53.22.0 diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md index 6acd51e38b0..89181215fc4 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md +++ b/packages/ir-sdk/fern/apis/ir-types-latest/changelog/CHANGELOG.md @@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [v53.20.0] - 2024-11-04 +## [v53.22.0] - 2024-11-04 + +- Internal: Add the `dynamic` property to the IR. This should be + made requried in IRv54. + +## [v53.21.0] - 2024-11-04 - Internal: Add the `includePathParameters` and `onlyPathParameters` properties to the dynamic IR within the `InlinedRequestMetadata` type. diff --git a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml index cd13093e24f..ef42039791a 100644 --- a/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml +++ b/packages/ir-sdk/fern/apis/ir-types-latest/definition/ir.yml @@ -4,6 +4,7 @@ imports: auth: auth.yml commons: commons.yml constants: constants.yml + dynamic: dynamic/ir.yml environment: environment.yml errors: errors.yml http: http.yml @@ -60,6 +61,7 @@ types: readmeConfig: optional sourceConfig: optional publishConfig: optional + dynamic: optional ReadmeConfig: docs: | diff --git a/packages/ir-sdk/src/sdk/api/resources/ir/types/IntermediateRepresentation.ts b/packages/ir-sdk/src/sdk/api/resources/ir/types/IntermediateRepresentation.ts index 1a3d65eb2e5..ae2a01e5326 100644 --- a/packages/ir-sdk/src/sdk/api/resources/ir/types/IntermediateRepresentation.ts +++ b/packages/ir-sdk/src/sdk/api/resources/ir/types/IntermediateRepresentation.ts @@ -42,4 +42,5 @@ export interface IntermediateRepresentation { readmeConfig: FernIr.ReadmeConfig | undefined; sourceConfig: FernIr.SourceConfig | undefined; publishConfig: FernIr.PublishingConfig | undefined; + dynamic: FernIr.dynamic.DynamicIntermediateRepresentation | undefined; } diff --git a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/IntermediateRepresentation.ts b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/IntermediateRepresentation.ts index 1382115fa6a..0cb033d80e3 100644 --- a/packages/ir-sdk/src/sdk/serialization/resources/ir/types/IntermediateRepresentation.ts +++ b/packages/ir-sdk/src/sdk/serialization/resources/ir/types/IntermediateRepresentation.ts @@ -33,6 +33,7 @@ import { ServiceTypeReferenceInfo } from "./ServiceTypeReferenceInfo"; import { ReadmeConfig } from "./ReadmeConfig"; import { SourceConfig } from "./SourceConfig"; import { PublishingConfig } from "../../publish/types/PublishingConfig"; +import { DynamicIntermediateRepresentation } from "../../dynamic/resources/ir/types/DynamicIntermediateRepresentation"; import { Webhook } from "../../webhooks/types/Webhook"; export const IntermediateRepresentation: core.serialization.ObjectSchema< @@ -65,6 +66,7 @@ export const IntermediateRepresentation: core.serialization.ObjectSchema< readmeConfig: ReadmeConfig.optional(), sourceConfig: SourceConfig.optional(), publishConfig: PublishingConfig.optional(), + dynamic: DynamicIntermediateRepresentation.optional(), }); export declare namespace IntermediateRepresentation { @@ -95,5 +97,6 @@ export declare namespace IntermediateRepresentation { readmeConfig?: ReadmeConfig.Raw | null; sourceConfig?: SourceConfig.Raw | null; publishConfig?: PublishingConfig.Raw | null; + dynamic?: DynamicIntermediateRepresentation.Raw | null; } } diff --git a/packages/seed/tsconfig.json b/packages/seed/tsconfig.json index d715ff9627b..d8a33816e9c 100644 --- a/packages/seed/tsconfig.json +++ b/packages/seed/tsconfig.json @@ -4,7 +4,6 @@ "include": ["./src/**/*"], "references": [ { "path": "../cli/configuration" }, - { "path": "../cli/dynamic-snippets" }, { "path": "../cli/generation/local-generation/local-workspace-runner" }, { "path": "../cli/logger" }, { "path": "../cli/login" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 186cb157e92..ae75d2923b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -466,9 +466,6 @@ importers: '@fern-api/core-utils': specifier: workspace:* version: link:../../../packages/commons/core-utils - '@fern-api/dynamic-snippets': - specifier: workspace:* - version: link:../../../packages/cli/dynamic-snippets '@fern-api/fern-definition-schema': specifier: workspace:* version: link:../../../packages/cli/fern-definition/schema @@ -484,21 +481,6 @@ importers: '@fern-api/go-formatter': specifier: workspace:* version: link:../formatter - '@fern-api/ir-generator': - specifier: workspace:* - version: link:../../../packages/cli/generation/ir-generator - '@fern-api/ir-sdk': - specifier: workspace:* - version: link:../../../packages/ir-sdk - '@fern-api/project-loader': - specifier: workspace:* - version: link:../../../packages/cli/project-loader - '@fern-api/task-context': - specifier: workspace:* - version: link:../../../packages/cli/task-context - '@fern-api/workspace-loader': - specifier: workspace:* - version: link:../../../packages/cli/workspace-loader '@fern-fern/ir-sdk': specifier: ^53.21.0 version: 53.21.0 @@ -3790,9 +3772,6 @@ importers: '@fern-api/docs-validator': specifier: workspace:* version: link:../yaml/docs-validator - '@fern-api/dynamic-snippets': - specifier: workspace:* - version: link:../dynamic-snippets '@fern-api/fern-definition-formatter': specifier: workspace:* version: link:../fern-definition/formatter @@ -4473,61 +4452,6 @@ importers: specifier: ^2.0.5 version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) - packages/cli/dynamic-snippets: - dependencies: - '@fern-api/configuration': - specifier: workspace:* - version: link:../configuration - '@fern-api/core-utils': - specifier: workspace:* - version: link:../../commons/core-utils - '@fern-api/fs-utils': - specifier: workspace:* - version: link:../../commons/fs-utils - '@fern-api/ir-generator': - specifier: workspace:* - version: link:../generation/ir-generator - '@fern-api/ir-sdk': - specifier: workspace:* - version: link:../../ir-sdk - '@fern-api/project-loader': - specifier: workspace:* - version: link:../project-loader - '@fern-api/task-context': - specifier: workspace:* - version: link:../task-context - '@fern-api/workspace-loader': - specifier: workspace:* - version: link:../workspace-loader - '@fern-fern/generator-exec-sdk': - specifier: ^0.0.898 - version: 0.0.898 - '@fern-fern/ir-sdk': - specifier: ^53.21.0 - version: 53.21.0 - url-join: - specifier: ^5.0.0 - version: 5.0.0 - devDependencies: - '@types/node': - specifier: 18.7.18 - version: 18.7.18 - depcheck: - specifier: ^1.4.6 - version: 1.4.6 - eslint: - specifier: ^8.56.0 - version: 8.56.0 - organize-imports-cli: - specifier: ^0.10.0 - version: 0.10.0 - typescript: - specifier: 4.6.4 - version: 4.6.4 - vitest: - specifier: ^2.0.5 - version: 2.0.5(@types/node@18.7.18)(jsdom@20.0.3)(sass@1.72.0)(terser@5.31.5) - packages/cli/ete-tests: dependencies: '@fern-api/configuration': @@ -5156,12 +5080,12 @@ importers: '@fern-api/configuration': specifier: workspace:* version: link:../../../configuration + '@fern-api/core-utils': + specifier: workspace:* + version: link:../../../../commons/core-utils '@fern-api/docker-utils': specifier: workspace:* version: link:../docker-utils - '@fern-api/dynamic-snippets': - specifier: workspace:* - version: link:../../../dynamic-snippets '@fern-api/fs-utils': specifier: workspace:* version: link:../../../../commons/fs-utils @@ -5204,6 +5128,9 @@ importers: tmp-promise: specifier: ^3.0.3 version: 3.0.3 + url-join: + specifier: ^5.0.0 + version: 5.0.0 devDependencies: '@types/decompress': specifier: ^4.2.7 @@ -5217,6 +5144,9 @@ importers: '@types/tmp': specifier: ^0.2.4 version: 0.2.4 + '@types/url-join': + specifier: 4.0.1 + version: 4.0.1 depcheck: specifier: ^1.4.6 version: 1.4.6