diff --git a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaConverter.ts b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaConverter.ts index 524a7cebc773..3dae42f80521 100644 --- a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaConverter.ts +++ b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaConverter.ts @@ -1,13 +1,12 @@ import * as FernIr from "@fern-api/ir-sdk"; -import { mergeWith } from "lodash-es"; import { OpenAPIV3_1 } from "openapi-types"; - import { AbstractConverter, AbstractConverterContext, Extensions } from "../../index.js"; import { createTypeReferenceFromFernType } from "../../utils/CreateTypeReferenceFromFernType.js"; import { ExampleConverter } from "../ExampleConverter.js"; import { ArraySchemaConverter } from "./ArraySchemaConverter.js"; import { EnumSchemaConverter } from "./EnumSchemaConverter.js"; import { MapSchemaConverter } from "./MapSchemaConverter.js"; +import { mergeAllOfSchemas } from "./mergeAllOfSchemas.js"; import { ObjectSchemaConverter } from "./ObjectSchemaConverter.js"; import { OneOfSchemaConverter } from "./OneOfSchemaConverter.js"; import { PrimitiveSchemaConverter } from "./PrimitiveSchemaConverter.js"; @@ -31,6 +30,7 @@ export declare namespace SchemaConverter { schema: OpenAPIV3_1.SchemaObject; inlined?: boolean; nameOverride?: string; + visitedRefs?: Set; } export interface ConvertedSchema { @@ -51,13 +51,23 @@ export class SchemaConverter extends AbstractConverter; + + constructor({ + context, + breadcrumbs, + schema, + id, + inlined = false, + nameOverride, + visitedRefs + }: SchemaConverter.Args) { super({ context, breadcrumbs }); this.schema = schema; this.id = id; this.inlined = inlined; this.nameOverride = nameOverride; + this.visitedRefs = visitedRefs ?? new Set(); this.audiences = this.context.getAudiences({ operation: this.schema, @@ -168,23 +178,53 @@ export class SchemaConverter extends AbstractConverter({ - schemaOrReference: this.schema.allOf[0], + schemaOrReference: allOfElement, breadcrumbs: this.breadcrumbs }); if (allOfSchema != null) { + const visitedRefsForChild = this.context.isReferenceObject(allOfElement) + ? new Set([...this.visitedRefs, allOfElement.$ref]) + : this.visitedRefs; + const allOfConverter = new SchemaConverter({ context: this.context, breadcrumbs: [...this.breadcrumbs, "allOf", "0"], schema: allOfSchema, id: this.id, - inlined: true + inlined: this.inlined, + visitedRefs: visitedRefsForChild }); const allOfResult = allOfConverter.convert(); if (allOfResult?.convertedSchema.typeDeclaration?.shape.type !== "object") { + // Propagate outer schema metadata (description, deprecated, etc.) + // that would otherwise be lost since allOfConverter got the child schema + if (allOfResult != null) { + const decl = allOfResult.convertedSchema.typeDeclaration; + if (this.schema.description != null && decl.docs == null) { + decl.docs = this.schema.description; + } + const outerAvailability = this.context.getAvailability({ + node: this.schema, + breadcrumbs: this.breadcrumbs + }); + if (outerAvailability != null && decl.availability == null) { + decl.availability = outerAvailability; + } + } return allOfResult; } } @@ -196,18 +236,49 @@ export class SchemaConverter extends AbstractConverter= 1; if (shouldMergeAllOf) { - let mergedSchema: Record = {}; + const localResolvedRefs = new Set(); + const resolvedElements: OpenAPIV3_1.SchemaObject[] = []; + let hasCycle = false; + for (const allOfSchema of this.schema.allOf ?? []) { + let schemaToMerge: OpenAPIV3_1.SchemaObject; + if (this.context.isReferenceObject(allOfSchema)) { - return undefined; + const refPath = allOfSchema.$ref; + // Check ancestor set for true cross-schema cycles + if (this.visitedRefs.has(refPath)) { + hasCycle = true; + break; + } + // Skip same-array duplicates (e.g. allOf: [$ref:Base, $ref:Base]) + // without triggering the cycle breaker + if (localResolvedRefs.has(refPath)) { + continue; + } + localResolvedRefs.add(refPath); + + const resolved = this.context.resolveMaybeReference({ + schemaOrReference: allOfSchema, + breadcrumbs: this.breadcrumbs + }); + if (resolved == null) { + return undefined; + } + schemaToMerge = resolved; + } else { + schemaToMerge = allOfSchema; } // Handle bare oneOf/anyOf elements used for mutual exclusion patterns // (e.g., oneOf with variants containing `not: {}` properties). // Flatten variant properties into the merged schema as optional properties. - const variants = - (allOfSchema as OpenAPIV3_1.SchemaObject).oneOf ?? (allOfSchema as OpenAPIV3_1.SchemaObject).anyOf; - if (variants != null && allOfSchema.type == null && allOfSchema.properties == null) { + const variants = schemaToMerge.oneOf ?? schemaToMerge.anyOf; + if ( + !this.context.isReferenceObject(allOfSchema) && + variants != null && + schemaToMerge.type == null && + schemaToMerge.properties == null + ) { const flattenedProperties: Record = {}; for (const variantSchemaOrRef of variants) { const variantSchema = this.context.isReferenceObject(variantSchemaOrRef) @@ -235,31 +306,29 @@ export class SchemaConverter extends AbstractConverter 0) { - // Add flattened properties as optional on the merged schema - const existingProperties = (mergedSchema.properties as Record) ?? {}; - mergedSchema.properties = { ...existingProperties, ...flattenedProperties }; - // Do not add to required — variant properties are optional on the parent + resolvedElements.push({ properties: flattenedProperties } as OpenAPIV3_1.SchemaObject); } continue; } - mergedSchema = mergeWith(mergedSchema, allOfSchema, (objValue, srcValue) => { - if (srcValue === allOfSchema) { - return objValue; - } - if (Array.isArray(objValue) && Array.isArray(srcValue)) { - return [...objValue, ...srcValue]; - } - return undefined; - }); + resolvedElements.push(schemaToMerge); + } + + // If a circular reference was detected, fall back to the ObjectSchemaConverter path + if (hasCycle) { + return undefined; } + const mergedSchema = mergeAllOfSchemas(this.schema, resolvedElements); + + const allResolvedRefs = new Set([...this.visitedRefs, ...localResolvedRefs]); const mergedConverter = new SchemaConverter({ context: this.context, breadcrumbs: this.breadcrumbs, schema: mergedSchema, id: this.id, - inlined: true + inlined: this.inlined, + visitedRefs: allResolvedRefs }); return mergedConverter.convert(); } diff --git a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaOrReferenceConverter.ts b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaOrReferenceConverter.ts index c041b98659d3..8d346e7d0ccd 100644 --- a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaOrReferenceConverter.ts +++ b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/SchemaOrReferenceConverter.ts @@ -82,26 +82,71 @@ export class SchemaOrReferenceConverter extends AbstractConverter< } private maybeConvertSingularAllOfReferenceObject(): SchemaOrReferenceConverter.Output | undefined { - if ( - this.context.isReferenceObject(this.schemaOrReference) || - this.schemaOrReference.allOf == null || - this.schemaOrReference.allOf.length !== 1 - ) { + if (this.context.isReferenceObject(this.schemaOrReference) || this.schemaOrReference.allOf == null) { return undefined; } - const allOfReference = this.schemaOrReference.allOf[0]; - if (this.context.isReferenceObject(allOfReference)) { - const response = this.context.convertReferenceToTypeReference({ - reference: allOfReference, + + // Single $ref allOf — convert directly as a type reference + if (this.schemaOrReference.allOf.length === 1) { + const allOfReference = this.schemaOrReference.allOf[0]; + if (this.context.isReferenceObject(allOfReference)) { + const response = this.context.convertReferenceToTypeReference({ + reference: allOfReference, + breadcrumbs: this.breadcrumbs + }); + if (response.ok) { + return { + type: this.wrapTypeReference(response.reference), + inlinedTypes: response.inlinedTypes ?? {} + }; + } + } + return undefined; + } + + // When allOf has exactly one $ref to a non-object type (e.g. enum) and the + // remaining elements are inline primitive constraints (no properties, no enum, + // no composition keywords), reference the $ref type directly instead of + // creating a synthetic merged copy. + const refElements = this.schemaOrReference.allOf.filter((s) => this.context.isReferenceObject(s)); + const inlineElements = this.schemaOrReference.allOf.filter( + (s) => !this.context.isReferenceObject(s) + ) as OpenAPIV3_1.SchemaObject[]; + const singleRef = refElements.length === 1 ? refElements[0] : undefined; + + if ( + singleRef != null && + inlineElements.every( + (s) => !s.properties && !s.enum && !s.oneOf && !s.anyOf && !s.allOf && !s.format && !("items" in s) + ) && + !inlineElements.some((s) => s.type === "null" || (Array.isArray(s.type) && s.type.includes("null"))) + ) { + const resolved = this.context.resolveMaybeReference({ + schemaOrReference: singleRef, breadcrumbs: this.breadcrumbs }); - if (response.ok) { - return { - type: this.wrapTypeReference(response.reference), - inlinedTypes: {} - }; + if ( + resolved != null && + resolved.type !== "object" && + !resolved.properties && + !resolved.allOf && + !resolved.oneOf && + !resolved.anyOf && + !resolved.format + ) { + const response = this.context.convertReferenceToTypeReference({ + reference: singleRef as OpenAPIV3_1.ReferenceObject, + breadcrumbs: this.breadcrumbs + }); + if (response.ok) { + return { + type: this.wrapTypeReference(response.reference), + inlinedTypes: response.inlinedTypes ?? {} + }; + } } } + return undefined; } diff --git a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/__test__/mergeAllOfSchemas.test.ts b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/__test__/mergeAllOfSchemas.test.ts new file mode 100644 index 000000000000..6aa9f5ba0f48 --- /dev/null +++ b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/__test__/mergeAllOfSchemas.test.ts @@ -0,0 +1,220 @@ +import { OpenAPIV3_1 } from "openapi-types"; +import { describe, expect, it } from "vitest"; +import { mergeAllOfSchemas } from "../mergeAllOfSchemas.js"; + +type Schema = OpenAPIV3_1.SchemaObject; + +describe("mergeAllOfSchemas", () => { + describe("properties", () => { + it("unions property keys from multiple schemas", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { properties: { a: { type: "string" } } } as Schema, + { properties: { b: { type: "number" } } } as Schema + ]); + expect(result.properties).toEqual({ + a: { type: "string" }, + b: { type: "number" } + }); + }); + + it("deep-merges same-named object properties (Case 6: metadata)", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + properties: { + metadata: { + type: "object", + properties: { region: { type: "string" }, tier: { type: "string" } } + } + } + } as Schema, + { + properties: { + metadata: { + type: "object", + properties: { region: { type: "string" }, domain: { type: "string" } } + } + } + } as Schema + ]); + const metadata = result.properties?.["metadata"] as Schema; + expect(Object.keys(metadata.properties ?? {})).toEqual( + expect.arrayContaining(["region", "tier", "domain"]) + ); + }); + }); + + describe("required", () => { + it("set-unions required arrays", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { required: ["a", "b"] } as Schema, + { required: ["b", "c"] } as Schema + ]); + expect(result.required).toEqual(expect.arrayContaining(["a", "b", "c"])); + expect(result.required).toHaveLength(3); + }); + }); + + describe("items narrowing", () => { + it("merges empty items with typed items (Case 1)", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + type: "object", + properties: { results: { type: "array", items: {} } } + } as Schema, + { + properties: { results: { items: { $ref: "#/components/schemas/RuleType" } } } + } as Schema + ]); + const results = result.properties?.["results"] as Schema; + expect(results.type).toBe("array"); + expect((results as OpenAPIV3_1.ArraySchemaObject).items).toEqual({ + $ref: "#/components/schemas/RuleType" + }); + }); + }); + + describe("outer schema precedence", () => { + it("outer description wins over child description", () => { + const result = mergeAllOfSchemas({ description: "Outer wins", allOf: [] } as Schema, [ + { description: "From child" } as Schema + ]); + expect(result.description).toBe("Outer wins"); + }); + + it("child description used when outer has none", () => { + const result = mergeAllOfSchemas({ allOf: [] } as Schema, [{ description: "From child" } as Schema]); + expect(result.description).toBe("From child"); + }); + + it("outer type wins over child type", () => { + const result = mergeAllOfSchemas({ type: "object", allOf: [] } as Schema, [{ type: "string" } as Schema]); + expect(result.type).toBe("object"); + }); + }); + + describe("OR keys", () => { + it("deprecated is true if any child says true", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { deprecated: false } as Schema, + { deprecated: true } as Schema + ]); + expect(result.deprecated).toBe(true); + }); + + it("readOnly is true if any child says true", () => { + const result = mergeAllOfSchemas({} as Schema, [{} as Schema, { readOnly: true } as Schema]); + expect(result.readOnly).toBe(true); + }); + }); + + describe("constraint merging", () => { + it("takes the larger minimum (most restrictive)", () => { + const result = mergeAllOfSchemas({} as Schema, [{ minimum: 5 } as Schema, { minimum: 10 } as Schema]); + expect(result.minimum).toBe(10); + }); + + it("takes the smaller maximum (most restrictive)", () => { + const result = mergeAllOfSchemas({} as Schema, [{ maxLength: 100 } as Schema, { maxLength: 50 } as Schema]); + expect(result.maxLength).toBe(50); + }); + }); + + describe("nested allOf flattening", () => { + it("extracts nested allOf items and merges sibling keys", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + required: ["id"], + properties: { id: { type: "string" } }, + allOf: [{ required: ["name"], properties: { name: { type: "string" } } }] + } as Schema + ]); + expect(result.required).toEqual(expect.arrayContaining(["id", "name"])); + expect(result.properties?.["id"]).toBeDefined(); + expect(result.properties?.["name"]).toBeDefined(); + }); + + it("does not include allOf key on the result", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + properties: { a: { type: "string" } }, + allOf: [{ properties: { b: { type: "number" } } }] + } as Schema + ]); + expect(result.allOf).toBeUndefined(); + }); + + it("filters out $ref objects from nested allOf arrays", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + required: ["id"], + properties: { id: { type: "string" } }, + allOf: [ + { $ref: "#/components/schemas/Base" } as unknown as Schema, + { required: ["name"], properties: { name: { type: "string" } } } + ] + } as Schema + ]); + // $ref should be filtered out, inline schema should be merged + expect(result.properties?.["id"]).toBeDefined(); + expect(result.properties?.["name"]).toBeDefined(); + expect(result.required).toEqual(expect.arrayContaining(["id", "name"])); + // No $ref key should leak onto the result + expect("$ref" in result).toBe(false); + }); + + it("recursively flattens doubly-nested allOf", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + allOf: [ + { + properties: { a: { type: "string" } }, + allOf: [{ properties: { b: { type: "number" } } }] + } + ] + } as Schema + ]); + expect(result.properties?.["a"]).toBeDefined(); + expect(result.properties?.["b"]).toBeDefined(); + expect(result.allOf).toBeUndefined(); + }); + }); + + describe("composition keyword stripping", () => { + it("strips oneOf from child schemas so it does not leak into merged result", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + properties: { id: { type: "string" } }, + oneOf: [{ type: "string" }, { type: "integer" }] + } as Schema + ]); + expect(result.properties?.["id"]).toBeDefined(); + expect(result.oneOf).toBeUndefined(); + }); + + it("strips anyOf from child schemas", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { + properties: { name: { type: "string" } }, + anyOf: [{ type: "string" }, { type: "null" }] + } as Schema + ]); + expect(result.properties?.["name"]).toBeDefined(); + expect(result.anyOf).toBeUndefined(); + }); + }); + + describe("last-writer-wins fallback", () => { + it("last schema's pattern wins", () => { + const result = mergeAllOfSchemas({} as Schema, [{ pattern: "^a" } as Schema, { pattern: "^b" } as Schema]); + expect(result.pattern).toBe("^b"); + }); + + it("last schema's enum wins", () => { + const result = mergeAllOfSchemas({} as Schema, [ + { enum: ["a", "b"] } as Schema, + { enum: ["c", "d"] } as Schema + ]); + expect(result.enum).toEqual(["c", "d"]); + }); + }); +}); diff --git a/packages/cli/api-importers/v3-importer-commons/src/converters/schema/mergeAllOfSchemas.ts b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/mergeAllOfSchemas.ts new file mode 100644 index 000000000000..50ca28fd40af --- /dev/null +++ b/packages/cli/api-importers/v3-importer-commons/src/converters/schema/mergeAllOfSchemas.ts @@ -0,0 +1,212 @@ +import { OpenAPIV3_1 } from "openapi-types"; + +const OUTER_WINS_KEYS = [ + "description", + "title", + "format", + "type", + "discriminator", + "xml", + "externalDocs", + "extensions" +]; + +/** + * Keys whose values should be deep-merged when both sides are objects + * (e.g., allOf composing examples from multiple parents), with the + * outer schema winning if present. + */ +const DEEP_MERGE_KEYS = ["example", "default"]; + +const OR_KEYS = ["deprecated", "readOnly", "writeOnly", "uniqueItems", "nullable"]; + +const MAX_OF_MINS_KEYS = ["minimum", "exclusiveMinimum", "minLength", "minItems", "minProperties"]; + +const MIN_OF_MAXS_KEYS = ["maximum", "exclusiveMaximum", "maxLength", "maxItems", "maxProperties"]; + +const SKIP_FROM_CHILDREN = ["allOf", "oneOf", "anyOf"]; + +export function mergeAllOfSchemas( + outerSchema: OpenAPIV3_1.SchemaObject, + elements: OpenAPIV3_1.SchemaObject[] +): OpenAPIV3_1.SchemaObject { + const flatElements = flattenNestedAllOf(elements); + + let result: Record = {}; + for (const element of flatElements) { + result = mergeSchemaElement(result, element); + } + + applyOuterSchema(result, outerSchema); + + return result as OpenAPIV3_1.SchemaObject; +} + +function flattenNestedAllOf(elements: OpenAPIV3_1.SchemaObject[]): OpenAPIV3_1.SchemaObject[] { + const flat: OpenAPIV3_1.SchemaObject[] = []; + for (const element of elements) { + if (Array.isArray(element.allOf) && element.allOf.length > 0) { + const { allOf, ...sibling } = element; + // Filter out ReferenceObjects — only include resolved SchemaObjects. + // Unresolved $ref entries would corrupt the merged result with a + // spurious top-level $ref key. + const schemaChildren = allOf.filter((child): child is OpenAPIV3_1.SchemaObject => !("$ref" in child)); + // Recursively flatten in case extracted children also contain allOf + flat.push(...flattenNestedAllOf(schemaChildren)); + if (Object.keys(sibling).length > 0) { + flat.push(sibling as OpenAPIV3_1.SchemaObject); + } + } else { + flat.push(element); + } + } + return flat; +} + +function mergeSchemaElement( + target: Record, + source: OpenAPIV3_1.SchemaObject +): Record { + const result = { ...target }; + + for (const [key, sourceValue] of Object.entries(source)) { + if (sourceValue === undefined) { + continue; + } + + if (SKIP_FROM_CHILDREN.includes(key)) { + continue; + } + + const targetValue = result[key]; + + if (key === "required") { + const targetArr = Array.isArray(targetValue) ? (targetValue as string[]) : []; + const sourceArr = Array.isArray(sourceValue) ? (sourceValue as string[]) : []; + result[key] = [...new Set([...targetArr, ...sourceArr])]; + continue; + } + + if (key === "properties") { + result[key] = mergeProperties( + (targetValue as Record) ?? {}, + sourceValue as Record + ); + continue; + } + + if (key === "items") { + if (isPlainObject(targetValue) && isPlainObject(sourceValue)) { + result[key] = mergeSchemaElement( + targetValue as Record, + sourceValue as OpenAPIV3_1.SchemaObject + ); + } else { + result[key] = sourceValue; + } + continue; + } + + if (DEEP_MERGE_KEYS.includes(key)) { + // Deep-merge when both sides are objects (e.g., examples from + // multiple allOf parents). Otherwise last writer wins. + if (isPlainObject(targetValue) && isPlainObject(sourceValue)) { + result[key] = deepMergeObjects( + targetValue as Record, + sourceValue as Record + ); + } else { + result[key] = sourceValue; + } + continue; + } + + if (OR_KEYS.includes(key)) { + result[key] = Boolean(targetValue) || Boolean(sourceValue); + continue; + } + + if (MAX_OF_MINS_KEYS.includes(key)) { + if (typeof targetValue === "number" && typeof sourceValue === "number") { + result[key] = Math.max(targetValue, sourceValue); + } else { + result[key] = sourceValue; + } + continue; + } + + if (MIN_OF_MAXS_KEYS.includes(key)) { + if (typeof targetValue === "number" && typeof sourceValue === "number") { + result[key] = Math.min(targetValue, sourceValue); + } else { + result[key] = sourceValue; + } + continue; + } + + result[key] = sourceValue; + } + + return result; +} + +function mergeProperties(target: Record, source: Record): Record { + const result = { ...target }; + for (const [key, sourceValue] of Object.entries(source)) { + const targetValue = result[key]; + if (isPlainObject(targetValue) && isPlainObject(sourceValue)) { + result[key] = mergeSchemaElement( + targetValue as Record, + sourceValue as OpenAPIV3_1.SchemaObject + ); + } else { + result[key] = sourceValue; + } + } + return result; +} + +/** + * Deep-merges two plain objects. For same-named keys, if both are objects, + * recurses; otherwise source wins. Used for `example` and `default`. + */ +function deepMergeObjects(target: Record, source: Record): Record { + const result = { ...target }; + for (const [key, sourceValue] of Object.entries(source)) { + const targetValue = result[key]; + if (isPlainObject(targetValue) && isPlainObject(sourceValue)) { + result[key] = deepMergeObjects( + targetValue as Record, + sourceValue as Record + ); + } else { + result[key] = sourceValue; + } + } + return result; +} + +function applyOuterSchema(result: Record, outerSchema: OpenAPIV3_1.SchemaObject): void { + for (const key of OUTER_WINS_KEYS) { + const outerValue = outerSchema[key as keyof typeof outerSchema]; + if (outerValue != null) { + result[key] = outerValue; + } + } + for (const key of DEEP_MERGE_KEYS) { + const outerValue = outerSchema[key as keyof typeof outerSchema]; + if (outerValue != null) { + result[key] = outerValue; + } + } + for (const key of OR_KEYS) { + const outerValue = outerSchema[key as keyof typeof outerSchema]; + if (outerValue === true) { + result[key] = true; + } + } +} + +function isPlainObject(value: unknown): value is Record { + return typeof value === "object" && value !== null && !Array.isArray(value); +} diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/baseline-sdks/allof.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/baseline-sdks/allof.json new file mode 100644 index 000000000000..f7d519efd6e6 --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/baseline-sdks/allof.json @@ -0,0 +1,1847 @@ +{ + "selfHosted": false, + "apiName": "api", + "apiDisplayName": "allOf Reproduction", + "auth": { + "requirement": "ALL", + "schemes": [] + }, + "headers": [], + "idempotencyHeaders": [], + "types": { + "type_:PagingCursors": { + "name": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:PagingCursors" + }, + "shape": { + "extends": [], + "properties": [ + { + "name": "next", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "previous", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "object" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:PaginatedResult": { + "name": { + "name": "PaginatedResult", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:PaginatedResult" + }, + "shape": { + "extends": [], + "properties": [ + { + "name": "paging", + "valueType": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:PagingCursors", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "docs": "Current page of results from the requested resource.", + "name": "results", + "valueType": { + "container": { + "list": { + "type": "unknown" + }, + "type": "list" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "object" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleExecutionContext": { + "docs": "The execution environment for a rule.", + "name": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleExecutionContext" + }, + "shape": { + "values": [ + { + "name": "prod" + }, + { + "name": "staging" + }, + { + "name": "dev" + } + ], + "type": "enum" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleTypeResponseStatus": { + "inline": true, + "name": { + "name": "RuleTypeResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeResponseStatus" + }, + "shape": { + "values": [ + { + "name": "active" + }, + { + "name": "inactive" + } + ], + "type": "enum" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleTypeResponse": { + "name": { + "name": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeResponse" + }, + "shape": { + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "description", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "status", + "valueType": { + "name": "RuleTypeResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeResponseStatus", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "object" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleTypeSearchResponse": { + "name": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeSearchResponse" + }, + "shape": { + "extends": [], + "properties": [ + { + "docs": "Current page of results from the requested resource.", + "name": "results", + "valueType": { + "container": { + "optional": { + "container": { + "list": { + "name": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeResponse", + "type": "named" + }, + "type": "list" + }, + "type": "container" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "paging", + "valueType": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:PagingCursors", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "object" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleResponseStatus": { + "inline": true, + "name": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleResponseStatus" + }, + "shape": { + "values": [ + { + "name": "active" + }, + { + "name": "inactive" + }, + { + "name": "draft" + } + ], + "type": "enum" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + }, + "type_:RuleResponse": { + "name": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleResponse" + }, + "shape": { + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "status", + "valueType": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleResponseStatus", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "executionContext", + "valueType": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleExecutionContext", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "object" + }, + "referencedTypes": {}, + "encoding": { + "json": {} + }, + "userProvidedExamples": [], + "autogeneratedExamples": [] + } + }, + "errors": {}, + "services": { + "service_": { + "name": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "basePath": { + "head": "", + "parts": [] + }, + "headers": [], + "pathParameters": [], + "encoding": { + "json": {} + }, + "transport": { + "type": "http" + }, + "endpoints": [ + { + "id": "endpoint_.searchRuleTypes", + "name": "searchRuleTypes", + "displayName": "Search for rule types", + "auth": false, + "idempotent": false, + "method": "GET", + "path": { + "head": "/v1/preview/1/rule-types", + "parts": [] + }, + "fullPath": { + "head": "v1/preview/1/rule-types", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [ + { + "name": "query", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "allowMultiple": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "headers": [], + "sdkRequest": { + "shape": { + "wrapperName": "SearchRuleTypesRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false, + "type": "wrapper" + }, + "requestParameterName": "request" + }, + "response": { + "body": { + "value": { + "docs": "Paginated list of rule types", + "responseBodyType": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleTypeSearchResponse", + "type": "named" + }, + "type": "response" + }, + "type": "json" + }, + "statusCode": 200, + "docs": "Paginated list of rule types" + }, + "errors": [], + "userSpecifiedExamples": [], + "autogeneratedExamples": [], + "responseHeaders": [] + }, + { + "id": "endpoint_.createRule", + "name": "createRule", + "displayName": "Create a rule", + "auth": false, + "idempotent": false, + "method": "POST", + "path": { + "head": "/v1/preview/1/rules", + "parts": [] + }, + "fullPath": { + "head": "v1/preview/1/rules", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": { + "name": "RuleCreateRequest", + "extends": [], + "contentType": "application/json", + "properties": [ + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + }, + { + "name": "executionContext", + "valueType": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleExecutionContext", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + } + } + ], + "extraProperties": false, + "extendedProperties": [], + "type": "inlinedRequestBody" + }, + "sdkRequest": { + "shape": { + "wrapperName": "RuleCreateRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false, + "type": "wrapper" + }, + "requestParameterName": "request" + }, + "response": { + "body": { + "value": { + "docs": "Created rule", + "responseBodyType": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "typeId": "type_:RuleResponse", + "type": "named" + }, + "type": "response" + }, + "type": "json" + }, + "statusCode": 200, + "docs": "Created rule" + }, + "errors": [], + "userSpecifiedExamples": [], + "autogeneratedExamples": [], + "responseHeaders": [] + } + ] + } + }, + "constants": { + "errorInstanceIdKey": "errorInstanceId" + }, + "environments": { + "defaultEnvironment": "Default", + "environments": { + "environments": [ + { + "id": "Default", + "name": "Default", + "url": "https://api.allof.com" + } + ], + "type": "singleBaseUrl" + } + }, + "errorDiscriminationStrategy": { + "type": "statusCode" + }, + "pathParameters": [], + "variables": [], + "serviceTypeReferenceInfo": { + "typesReferencedOnlyByService": { + "service_": [ + "type_:PagingCursors", + "type_:RuleExecutionContext", + "type_:RuleTypeResponseStatus", + "type_:RuleTypeResponse", + "type_:RuleTypeSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse" + ] + }, + "sharedTypes": [ + "type_:PaginatedResult" + ] + }, + "webhookGroups": {}, + "websocketChannels": {}, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:PagingCursors": { + "declaration": { + "name": { + "originalName": "PagingCursors", + "camelCase": { + "unsafeName": "pagingCursors", + "safeName": "pagingCursors" + }, + "snakeCase": { + "unsafeName": "paging_cursors", + "safeName": "paging_cursors" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING_CURSORS", + "safeName": "PAGING_CURSORS" + }, + "pascalCase": { + "unsafeName": "PagingCursors", + "safeName": "PagingCursors" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "properties": [ + { + "name": { + "wireValue": "next", + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "previous", + "name": { + "originalName": "previous", + "camelCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "snakeCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "screamingSnakeCase": { + "unsafeName": "PREVIOUS", + "safeName": "PREVIOUS" + }, + "pascalCase": { + "unsafeName": "Previous", + "safeName": "Previous" + } + } + }, + "typeReference": { + "value": { + "value": "STRING", + "type": "primitive" + }, + "type": "optional" + } + } + ], + "additionalProperties": false, + "type": "object" + }, + "type_:PaginatedResult": { + "declaration": { + "name": { + "originalName": "PaginatedResult", + "camelCase": { + "unsafeName": "paginatedResult", + "safeName": "paginatedResult" + }, + "snakeCase": { + "unsafeName": "paginated_result", + "safeName": "paginated_result" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATED_RESULT", + "safeName": "PAGINATED_RESULT" + }, + "pascalCase": { + "unsafeName": "PaginatedResult", + "safeName": "PaginatedResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "value": "type_:PagingCursors", + "type": "named" + } + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "value": { + "type": "unknown" + }, + "type": "list" + } + } + ], + "additionalProperties": false, + "type": "object" + }, + "type_:RuleExecutionContext": { + "declaration": { + "name": { + "originalName": "RuleExecutionContext", + "camelCase": { + "unsafeName": "ruleExecutionContext", + "safeName": "ruleExecutionContext" + }, + "snakeCase": { + "unsafeName": "rule_execution_context", + "safeName": "rule_execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_EXECUTION_CONTEXT", + "safeName": "RULE_EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "RuleExecutionContext", + "safeName": "RuleExecutionContext" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "values": [ + { + "wireValue": "prod", + "name": { + "originalName": "prod", + "camelCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "snakeCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "screamingSnakeCase": { + "unsafeName": "PROD", + "safeName": "PROD" + }, + "pascalCase": { + "unsafeName": "Prod", + "safeName": "Prod" + } + } + }, + { + "wireValue": "staging", + "name": { + "originalName": "staging", + "camelCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "snakeCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "screamingSnakeCase": { + "unsafeName": "STAGING", + "safeName": "STAGING" + }, + "pascalCase": { + "unsafeName": "Staging", + "safeName": "Staging" + } + } + }, + { + "wireValue": "dev", + "name": { + "originalName": "dev", + "camelCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "snakeCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "screamingSnakeCase": { + "unsafeName": "DEV", + "safeName": "DEV" + }, + "pascalCase": { + "unsafeName": "Dev", + "safeName": "Dev" + } + } + } + ], + "type": "enum" + }, + "type_:RuleTypeResponseStatus": { + "declaration": { + "name": { + "originalName": "RuleTypeResponseStatus", + "camelCase": { + "unsafeName": "ruleTypeResponseStatus", + "safeName": "ruleTypeResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_type_response_status", + "safeName": "rule_type_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_RESPONSE_STATUS", + "safeName": "RULE_TYPE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleTypeResponseStatus", + "safeName": "RuleTypeResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + } + ], + "type": "enum" + }, + "type_:RuleTypeResponse": { + "declaration": { + "name": { + "originalName": "RuleTypeResponse", + "camelCase": { + "unsafeName": "ruleTypeResponse", + "safeName": "ruleTypeResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_response", + "safeName": "rule_type_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_RESPONSE", + "safeName": "RULE_TYPE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeResponse", + "safeName": "RuleTypeResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "description", + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + } + }, + "typeReference": { + "value": { + "value": "STRING", + "type": "primitive" + }, + "type": "optional" + } + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "value": "type_:RuleTypeResponseStatus", + "type": "named" + } + } + ], + "additionalProperties": false, + "type": "object" + }, + "type_:RuleTypeSearchResponse": { + "declaration": { + "name": { + "originalName": "RuleTypeSearchResponse", + "camelCase": { + "unsafeName": "ruleTypeSearchResponse", + "safeName": "ruleTypeSearchResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_search_response", + "safeName": "rule_type_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_SEARCH_RESPONSE", + "safeName": "RULE_TYPE_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeSearchResponse", + "safeName": "RuleTypeSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "properties": [ + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "value": { + "value": { + "value": "type_:RuleTypeResponse", + "type": "named" + }, + "type": "list" + }, + "type": "optional" + } + }, + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "value": "type_:PagingCursors", + "type": "named" + } + } + ], + "additionalProperties": false, + "type": "object" + }, + "type_:RuleResponseStatus": { + "declaration": { + "name": { + "originalName": "RuleResponseStatus", + "camelCase": { + "unsafeName": "ruleResponseStatus", + "safeName": "ruleResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_response_status", + "safeName": "rule_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE_STATUS", + "safeName": "RULE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleResponseStatus", + "safeName": "RuleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + }, + { + "wireValue": "draft", + "name": { + "originalName": "draft", + "camelCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "snakeCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "screamingSnakeCase": { + "unsafeName": "DRAFT", + "safeName": "DRAFT" + }, + "pascalCase": { + "unsafeName": "Draft", + "safeName": "Draft" + } + } + } + ], + "type": "enum" + }, + "type_:RuleResponse": { + "declaration": { + "name": { + "originalName": "RuleResponse", + "camelCase": { + "unsafeName": "ruleResponse", + "safeName": "ruleResponse" + }, + "snakeCase": { + "unsafeName": "rule_response", + "safeName": "rule_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE", + "safeName": "RULE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleResponse", + "safeName": "RuleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "value": "type_:RuleResponseStatus", + "type": "named" + } + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "value": "type_:RuleExecutionContext", + "type": "named" + } + } + ], + "additionalProperties": false, + "type": "object" + } + }, + "headers": [], + "endpoints": { + "endpoint_.searchRuleTypes": { + "declaration": { + "name": { + "originalName": "searchRuleTypes", + "camelCase": { + "unsafeName": "searchRuleTypes", + "safeName": "searchRuleTypes" + }, + "snakeCase": { + "unsafeName": "search_rule_types", + "safeName": "search_rule_types" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES", + "safeName": "SEARCH_RULE_TYPES" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypes", + "safeName": "SearchRuleTypes" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "location": { + "method": "GET", + "path": "/v1/preview/1/rule-types" + }, + "request": { + "declaration": { + "name": { + "originalName": "SearchRuleTypesRequest", + "camelCase": { + "unsafeName": "searchRuleTypesRequest", + "safeName": "searchRuleTypesRequest" + }, + "snakeCase": { + "unsafeName": "search_rule_types_request", + "safeName": "search_rule_types_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES_REQUEST", + "safeName": "SEARCH_RULE_TYPES_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypesRequest", + "safeName": "SearchRuleTypesRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "wireValue": "query", + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + }, + "typeReference": { + "value": { + "value": "STRING", + "type": "primitive" + }, + "type": "optional" + } + } + ], + "headers": [], + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + }, + "type": "inlined" + }, + "response": { + "type": "json" + }, + "examples": [] + }, + "endpoint_.createRule": { + "declaration": { + "name": { + "originalName": "createRule", + "camelCase": { + "unsafeName": "createRule", + "safeName": "createRule" + }, + "snakeCase": { + "unsafeName": "create_rule", + "safeName": "create_rule" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RULE", + "safeName": "CREATE_RULE" + }, + "pascalCase": { + "unsafeName": "CreateRule", + "safeName": "CreateRule" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "location": { + "method": "POST", + "path": "/v1/preview/1/rules" + }, + "request": { + "declaration": { + "name": { + "originalName": "RuleCreateRequest", + "camelCase": { + "unsafeName": "ruleCreateRequest", + "safeName": "ruleCreateRequest" + }, + "snakeCase": { + "unsafeName": "rule_create_request", + "safeName": "rule_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_CREATE_REQUEST", + "safeName": "RULE_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "RuleCreateRequest", + "safeName": "RuleCreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "value": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "value": "STRING", + "type": "primitive" + } + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "value": "type_:RuleExecutionContext", + "type": "named" + } + } + ], + "type": "properties" + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + }, + "type": "inlined" + }, + "response": { + "type": "json" + }, + "examples": [] + } + }, + "pathParameters": [], + "environments": { + "defaultEnvironment": "Default", + "environments": { + "environments": [ + { + "id": "Default", + "name": { + "originalName": "Default", + "camelCase": { + "unsafeName": "default", + "safeName": "default" + }, + "snakeCase": { + "unsafeName": "default", + "safeName": "default" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT", + "safeName": "DEFAULT" + }, + "pascalCase": { + "unsafeName": "Default", + "safeName": "Default" + } + }, + "url": "https://api.allof.com" + } + ], + "type": "singleBaseUrl" + } + } + }, + "apiPlayground": true, + "casingsConfig": { + "smartCasing": true + }, + "subpackages": {}, + "rootPackage": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "service": "service_", + "types": [ + "type_:PagingCursors", + "type_:PaginatedResult", + "type_:RuleExecutionContext", + "type_:RuleTypeResponseStatus", + "type_:RuleTypeResponse", + "type_:RuleTypeSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse" + ], + "errors": [], + "subpackages": [], + "hasEndpointsInTree": true + }, + "sdkConfig": { + "isAuthMandatory": false, + "hasStreamingEndpoints": false, + "hasPaginatedEndpoints": false, + "hasFileDownloadEndpoints": false, + "platformHeaders": { + "language": "X-Fern-Language", + "sdkName": "X-Fern-SDK-Name", + "sdkVersion": "X-Fern-SDK-Version" + } + } +} \ No newline at end of file diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof-array-items-narrowing.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof-array-items-narrowing.json index 07f52caa9fcd..a7b6377d2ccc 100644 --- a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof-array-items-narrowing.json +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof-array-items-narrowing.json @@ -183,17 +183,7 @@ } } ], - "extends": [ - { - "typeId": "PaginatedList", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "PaginatedList", - "displayName": "PaginatedList" - } - ], + "extends": [], "extendedProperties": [], "extraProperties": false, "type": "object" @@ -255,17 +245,7 @@ } } ], - "extends": [ - { - "typeId": "PaginatedList", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "PaginatedList", - "displayName": "PaginatedList" - } - ], + "extends": [], "extendedProperties": [], "extraProperties": false, "type": "object" @@ -315,43 +295,6 @@ } } }, - "RuleConfigExecutionContext": { - "name": { - "typeId": "RuleConfigExecutionContext", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "RuleConfigExecutionContext" - }, - "shape": { - "properties": [], - "extends": [ - { - "typeId": "RuleExecutionContext", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "RuleExecutionContext", - "displayName": "RuleExecutionContext" - } - ], - "extendedProperties": [], - "extraProperties": false, - "type": "object" - }, - "autogeneratedExamples": [], - "userProvidedExamples": [], - "referencedTypes": {}, - "inline": false, - "v2Examples": { - "userSpecifiedExamples": {}, - "autogeneratedExamples": { - "RuleConfigExecutionContext_example_autogenerated": "prod" - } - } - }, "RuleConfig": { "name": { "typeId": "RuleConfig", @@ -397,9 +340,10 @@ "allParts": [], "packagePath": [] }, - "name": "RuleConfigExecutionContext", - "typeId": "RuleConfigExecutionContext", + "name": "RuleExecutionContext", + "typeId": "RuleExecutionContext", "inline": false, + "displayName": "RuleExecutionContext", "type": "named" }, "type": "optional" diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof.json new file mode 100644 index 000000000000..eabc558c75ab --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/allof.json @@ -0,0 +1,1781 @@ +{ + "auth": { + "requirement": "ALL", + "schemes": [] + }, + "selfHosted": false, + "types": { + "PagingCursors": { + "name": { + "typeId": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors" + }, + "shape": { + "properties": [ + { + "name": "next", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PagingCursorsNext_example_autogenerated": "string" + } + } + }, + { + "name": "previous", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PagingCursorsPrevious_example_autogenerated": "string" + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PagingCursors_example_autogenerated": { + "next": "string" + } + } + } + }, + "PaginatedResult": { + "name": { + "typeId": "PaginatedResult", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PaginatedResult" + }, + "shape": { + "properties": [ + { + "name": "paging", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors", + "typeId": "PagingCursors", + "inline": false, + "displayName": "PagingCursors", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PaginatedResultPaging_example_autogenerated": { + "next": "string", + "previous": "string" + } + } + } + }, + { + "name": "results", + "valueType": { + "container": { + "list": { + "type": "unknown" + }, + "type": "list" + }, + "type": "container" + }, + "docs": "Current page of results from the requested resource.", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PaginatedResultResults_example_autogenerated": [ + null + ] + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PaginatedResult_example_autogenerated": { + "paging": { + "next": "string" + }, + "results": [ + null + ] + } + } + } + }, + "RuleExecutionContext": { + "name": { + "typeId": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleExecutionContext" + }, + "shape": { + "values": [ + { + "name": "prod" + }, + { + "name": "staging" + }, + { + "name": "dev" + } + ], + "type": "enum" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "docs": "The execution environment for a rule.", + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleExecutionContext_example_autogenerated": "prod" + } + } + }, + "RuleTypeResponseStatus": { + "name": { + "typeId": "RuleTypeResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponseStatus" + }, + "shape": { + "values": [ + { + "name": "active" + }, + { + "name": "inactive" + } + ], + "type": "enum" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponseStatus_example_autogenerated": "active" + } + } + }, + "RuleTypeResponse": { + "name": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "shape": { + "properties": [ + { + "name": "id", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponseId_example_autogenerated": "string" + } + } + }, + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponseName_example_autogenerated": "string" + } + } + }, + { + "name": "description", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponseDescription_example_autogenerated": "string" + } + } + }, + { + "name": "status", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponseStatus", + "typeId": "RuleTypeResponseStatus", + "inline": false, + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponseStatus_example_autogenerated": "active" + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeResponse_example_autogenerated": { + "id": "string", + "name": "string", + "status": "active" + } + } + } + }, + "RuleTypeSearchResponse": { + "name": { + "typeId": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse" + }, + "shape": { + "properties": [ + { + "name": "paging", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors", + "typeId": "PagingCursors", + "inline": false, + "displayName": "PagingCursors", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeSearchResponsePaging_example_autogenerated": { + "next": "string", + "previous": "string" + } + } + } + }, + { + "name": "results", + "valueType": { + "container": { + "list": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse", + "typeId": "RuleTypeResponse", + "inline": false, + "displayName": "RuleTypeResponse", + "type": "named" + }, + "type": "list" + }, + "type": "container" + }, + "docs": "Current page of results from the requested resource.", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeSearchResponseResults_example_autogenerated": [ + { + "id": "string", + "name": "string", + "status": "active" + } + ] + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleTypeSearchResponse_example_autogenerated": { + "paging": { + "next": "string" + }, + "results": [ + { + "id": "string", + "name": "string", + "status": "active" + } + ] + } + } + } + }, + "RuleCreateRequest": { + "name": { + "typeId": "RuleCreateRequest", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest" + }, + "shape": { + "properties": [ + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleCreateRequestName_example_autogenerated": "string" + } + } + }, + { + "name": "executionContext", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleExecutionContext", + "typeId": "RuleExecutionContext", + "inline": false, + "displayName": "RuleExecutionContext", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleCreateRequestExecutionContext_example_autogenerated": "prod" + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleCreateRequest_example_autogenerated": { + "name": "string", + "executionContext": "prod" + } + } + } + }, + "RuleResponseStatus": { + "name": { + "typeId": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponseStatus" + }, + "shape": { + "values": [ + { + "name": "active" + }, + { + "name": "inactive" + }, + { + "name": "draft" + } + ], + "type": "enum" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponseStatus_example_autogenerated": "active" + } + } + }, + "RuleResponse": { + "name": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "shape": { + "properties": [ + { + "name": "id", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponseId_example_autogenerated": "string" + } + } + }, + { + "name": "name", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponseName_example_autogenerated": "string" + } + } + }, + { + "name": "status", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponseStatus", + "typeId": "RuleResponseStatus", + "inline": false, + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponseStatus_example_autogenerated": "active" + } + } + }, + { + "name": "executionContext", + "valueType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleExecutionContext", + "typeId": "RuleExecutionContext", + "inline": false, + "displayName": "RuleExecutionContext", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponseExecutionContext_example_autogenerated": "prod" + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "RuleResponse_example_autogenerated": { + "id": "string", + "name": "string", + "status": "active", + "executionContext": "prod" + } + } + } + } + }, + "services": { + "service_": { + "name": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + } + }, + "basePath": { + "head": "", + "parts": [] + }, + "headers": [], + "pathParameters": [], + "endpoints": [ + { + "displayName": "Search for rule types", + "method": "GET", + "baseUrl": "https://api.allof.com", + "path": { + "head": "/v1/preview/1/rule-types", + "parts": [] + }, + "pathParameters": [], + "queryParameters": [ + { + "name": "query", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "allowMultiple": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "query_example": "query" + } + } + } + ], + "headers": [], + "responseHeaders": [], + "errors": [], + "auth": false, + "userSpecifiedExamples": [], + "autogeneratedExamples": [ + { + "example": { + "id": "d622963", + "url": "/v1/preview/1/rule-types", + "endpointHeaders": [], + "endpointPathParameters": [], + "queryParameters": [], + "servicePathParameters": [], + "serviceHeaders": [], + "rootPathParameters": [], + "response": { + "value": { + "value": { + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + }, + { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + } + ] + }, + "shape": { + "shape": { + "properties": [ + { + "name": "paging", + "originalTypeDeclaration": { + "typeId": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse" + }, + "value": { + "jsonExample": { + "next": "next", + "previous": "previous" + }, + "shape": { + "shape": { + "properties": [ + { + "name": "next", + "originalTypeDeclaration": { + "typeId": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors" + }, + "value": { + "jsonExample": "next", + "shape": { + "primitive": { + "string": { + "original": "next" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "previous", + "originalTypeDeclaration": { + "typeId": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors" + }, + "value": { + "jsonExample": "previous", + "shape": { + "container": { + "optional": { + "jsonExample": "previous", + "shape": { + "primitive": { + "string": { + "original": "previous" + }, + "type": "string" + }, + "type": "primitive" + } + }, + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PagingCursors" + }, + "type": "named" + } + } + }, + { + "name": "results", + "originalTypeDeclaration": { + "typeId": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse" + }, + "value": { + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + }, + { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + } + ], + "shape": { + "container": { + "list": [ + { + "jsonExample": { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + }, + "shape": { + "shape": { + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "id", + "shape": { + "primitive": { + "string": { + "original": "id" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "name", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "name", + "shape": { + "primitive": { + "string": { + "original": "name" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "description", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "description", + "shape": { + "container": { + "optional": { + "jsonExample": "description", + "shape": { + "primitive": { + "string": { + "original": "description" + }, + "type": "string" + }, + "type": "primitive" + } + }, + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + } + } + }, + { + "name": "status", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "active", + "shape": { + "shape": { + "value": "active", + "type": "enum" + }, + "typeName": { + "typeId": "RuleTypeResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponseStatus" + }, + "type": "named" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "type": "named" + } + }, + { + "jsonExample": { + "id": "id", + "name": "name", + "description": "description", + "status": "active" + }, + "shape": { + "shape": { + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "id", + "shape": { + "primitive": { + "string": { + "original": "id" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "name", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "name", + "shape": { + "primitive": { + "string": { + "original": "name" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "description", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "description", + "shape": { + "container": { + "optional": { + "jsonExample": "description", + "shape": { + "primitive": { + "string": { + "original": "description" + }, + "type": "string" + }, + "type": "primitive" + } + }, + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + } + } + }, + { + "name": "status", + "originalTypeDeclaration": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "value": { + "jsonExample": "active", + "shape": { + "shape": { + "value": "active", + "type": "enum" + }, + "typeName": { + "typeId": "RuleTypeResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponseStatus" + }, + "type": "named" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "RuleTypeResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse" + }, + "type": "named" + } + } + ], + "itemType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeResponse", + "typeId": "RuleTypeResponse", + "inline": false, + "displayName": "RuleTypeResponse", + "type": "named" + }, + "type": "list" + }, + "type": "container" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse" + }, + "type": "named" + } + }, + "type": "body" + }, + "type": "ok" + } + } + } + ], + "idempotent": false, + "fullPath": { + "head": "/v1/preview/1/rule-types", + "parts": [] + }, + "allPathParameters": [], + "source": { + "type": "openapi" + }, + "audiences": [], + "id": "endpoint_.searchRuleTypes", + "name": "searchRuleTypes", + "v2RequestBodies": {}, + "response": { + "statusCode": 200, + "body": { + "value": { + "responseBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse", + "typeId": "RuleTypeSearchResponse", + "inline": false, + "displayName": "RuleTypeSearchResponse", + "type": "named" + }, + "docs": "Paginated list of rule types", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "searchRuleTypesExample": { + "paging": { + "next": "string", + "previous": "string" + }, + "results": null + } + } + }, + "type": "response" + }, + "type": "json" + }, + "docs": "Paginated list of rule types" + }, + "v2Examples": { + "autogeneratedExamples": { + "base_searchRuleTypesExample_200": { + "displayName": "searchRuleTypesExample", + "request": { + "endpoint": { + "method": "GET", + "path": "/v1/preview/1/rule-types" + }, + "environment": "https://api.allof.com", + "pathParameters": {}, + "queryParameters": {}, + "headers": {} + }, + "response": { + "statusCode": 200, + "body": { + "value": { + "paging": { + "next": "string", + "previous": "string" + }, + "results": null + }, + "type": "json" + } + } + } + }, + "userSpecifiedExamples": {} + }, + "v2Responses": { + "responses": [ + { + "statusCode": 200, + "body": { + "value": { + "responseBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleTypeSearchResponse", + "typeId": "RuleTypeSearchResponse", + "inline": false, + "displayName": "RuleTypeSearchResponse", + "type": "named" + }, + "docs": "Paginated list of rule types", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "searchRuleTypesExample": { + "paging": { + "next": "string", + "previous": "string" + }, + "results": null + } + } + }, + "type": "response" + }, + "type": "json" + }, + "docs": "Paginated list of rule types" + } + ] + } + }, + { + "displayName": "Create a rule", + "method": "POST", + "baseUrl": "https://api.allof.com", + "path": { + "head": "/v1/preview/1/rules", + "parts": [] + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "responseHeaders": [], + "errors": [], + "auth": false, + "userSpecifiedExamples": [], + "autogeneratedExamples": [ + { + "example": { + "id": "32b0112f", + "url": "/v1/preview/1/rules", + "endpointHeaders": [], + "endpointPathParameters": [], + "queryParameters": [], + "servicePathParameters": [], + "serviceHeaders": [], + "rootPathParameters": [], + "request": { + "jsonExample": { + "name": "name", + "executionContext": "prod" + }, + "shape": { + "shape": { + "properties": [ + { + "name": "name", + "originalTypeDeclaration": { + "typeId": "RuleCreateRequest", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest" + }, + "value": { + "jsonExample": "name", + "shape": { + "primitive": { + "string": { + "original": "name" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "executionContext", + "originalTypeDeclaration": { + "typeId": "RuleCreateRequest", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest" + }, + "value": { + "jsonExample": "prod", + "shape": { + "shape": { + "value": "prod", + "type": "enum" + }, + "typeName": { + "typeId": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleExecutionContext" + }, + "type": "named" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "RuleCreateRequest", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest" + }, + "type": "named" + }, + "type": "reference" + }, + "response": { + "value": { + "value": { + "jsonExample": { + "id": "id", + "name": "name", + "status": "active", + "executionContext": "prod" + }, + "shape": { + "shape": { + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "value": { + "jsonExample": "id", + "shape": { + "primitive": { + "string": { + "original": "id" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "name", + "originalTypeDeclaration": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "value": { + "jsonExample": "name", + "shape": { + "primitive": { + "string": { + "original": "name" + }, + "type": "string" + }, + "type": "primitive" + } + } + }, + { + "name": "status", + "originalTypeDeclaration": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "value": { + "jsonExample": "active", + "shape": { + "shape": { + "value": "active", + "type": "enum" + }, + "typeName": { + "typeId": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponseStatus" + }, + "type": "named" + } + } + }, + { + "name": "executionContext", + "originalTypeDeclaration": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "value": { + "jsonExample": "prod", + "shape": { + "shape": { + "value": "prod", + "type": "enum" + }, + "typeName": { + "typeId": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleExecutionContext" + }, + "type": "named" + } + } + } + ], + "type": "object" + }, + "typeName": { + "typeId": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse" + }, + "type": "named" + } + }, + "type": "body" + }, + "type": "ok" + } + } + } + ], + "idempotent": false, + "fullPath": { + "head": "/v1/preview/1/rules", + "parts": [] + }, + "allPathParameters": [], + "source": { + "type": "openapi" + }, + "audiences": [], + "id": "endpoint_.createRule", + "name": "createRule", + "requestBody": { + "contentType": "application/json", + "requestBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest", + "typeId": "RuleCreateRequest", + "inline": false, + "displayName": "RuleCreateRequest", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "createRuleExample": { + "name": "string", + "executionContext": "prod" + } + } + }, + "type": "reference" + }, + "v2RequestBodies": { + "requestBodies": [ + { + "contentType": "application/json", + "requestBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleCreateRequest", + "typeId": "RuleCreateRequest", + "inline": false, + "displayName": "RuleCreateRequest", + "type": "named" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "createRuleExample": { + "name": "string", + "executionContext": "prod" + } + } + }, + "type": "reference" + } + ] + }, + "response": { + "statusCode": 200, + "body": { + "value": { + "responseBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse", + "typeId": "RuleResponse", + "inline": false, + "displayName": "RuleResponse", + "type": "named" + }, + "docs": "Created rule", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "createRuleExample": { + "id": "string", + "name": "string", + "status": "active", + "executionContext": "prod" + } + } + }, + "type": "response" + }, + "type": "json" + }, + "docs": "Created rule" + }, + "v2Examples": { + "autogeneratedExamples": { + "createRuleExample_200": { + "displayName": "createRuleExample", + "request": { + "endpoint": { + "method": "POST", + "path": "/v1/preview/1/rules" + }, + "environment": "https://api.allof.com", + "pathParameters": {}, + "queryParameters": {}, + "headers": {}, + "requestBody": { + "name": "string", + "executionContext": "prod" + } + }, + "response": { + "statusCode": 200, + "body": { + "value": { + "id": "string", + "name": "string", + "status": "active", + "executionContext": "prod" + }, + "type": "json" + } + } + } + }, + "userSpecifiedExamples": {} + }, + "v2Responses": { + "responses": [ + { + "statusCode": 200, + "body": { + "value": { + "responseBodyType": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "RuleResponse", + "typeId": "RuleResponse", + "inline": false, + "displayName": "RuleResponse", + "type": "named" + }, + "docs": "Created rule", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "createRuleExample": { + "id": "string", + "name": "string", + "status": "active", + "executionContext": "prod" + } + } + }, + "type": "response" + }, + "type": "json" + }, + "docs": "Created rule" + } + ] + } + } + ] + } + }, + "errors": {}, + "webhookGroups": {}, + "headers": [], + "idempotencyHeaders": [], + "apiDisplayName": "allOf Reproduction", + "pathParameters": [], + "errorDiscriminationStrategy": { + "type": "statusCode" + }, + "variables": [], + "serviceTypeReferenceInfo": { + "sharedTypes": [], + "typesReferencedOnlyByService": {} + }, + "environments": { + "defaultEnvironment": "https://api.allof.com", + "environments": { + "environments": [ + { + "id": "https://api.allof.com", + "name": "https://api.allof.com", + "url": "https://api.allof.com" + } + ], + "type": "singleBaseUrl" + } + }, + "rootPackage": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "service": "service_", + "types": [ + "PagingCursors", + "PaginatedResult", + "RuleExecutionContext", + "RuleTypeResponse", + "RuleTypeSearchResponse", + "RuleCreateRequest", + "RuleResponse" + ], + "errors": [], + "subpackages": [], + "hasEndpointsInTree": false + }, + "subpackages": {}, + "sdkConfig": { + "hasFileDownloadEndpoints": false, + "hasPaginatedEndpoints": false, + "hasStreamingEndpoints": false, + "isAuthMandatory": true, + "platformHeaders": { + "language": "", + "sdkName": "", + "sdkVersion": "" + } + }, + "apiName": "allOf Reproduction", + "constants": { + "errorInstanceIdKey": "errorInstanceId" + } +} \ No newline at end of file diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level-named.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level-named.json index 3190dc9670ff..19592a6d281a 100644 --- a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level-named.json +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level-named.json @@ -202,6 +202,84 @@ } } }, + "TreeLocation": { + "name": { + "typeId": "TreeLocation", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "TreeLocation" + }, + "shape": { + "properties": [ + { + "name": "latitude", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocationLatitude_example_autogenerated": 1.1 + } + } + }, + { + "name": "longitude", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocationLongitude_example_autogenerated": 1.1 + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocation_example_autogenerated": {} + } + } + }, "Tree": { "name": { "typeId": "Tree", @@ -213,6 +291,94 @@ }, "shape": { "properties": [ + { + "name": "species", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeSpecies_example_0": "Quercus alba" + }, + "autogeneratedExamples": {} + } + }, + { + "name": "height", + "valueType": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeHeight_example_0": 25.4 + }, + "autogeneratedExamples": {} + } + }, + { + "name": "age", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "INTEGER", + "v2": { + "validation": {}, + "type": "integer" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeAge_example_0": 50 + }, + "autogeneratedExamples": {} + } + }, + { + "name": "location", + "valueType": { + "container": { + "optional": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "TreeLocation", + "typeId": "TreeLocation", + "inline": false, + "type": "named" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocation_example_autogenerated": {} + } + } + }, { "name": "id", "valueType": { @@ -259,17 +425,7 @@ } } ], - "extends": [ - { - "typeId": "TreeCreate", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "TreeCreate", - "displayName": "TreeCreate" - } - ], + "extends": [], "extendedProperties": [], "extraProperties": false, "type": "object" @@ -558,7 +714,7 @@ "autogeneratedExamples": [ { "example": { - "id": "4f74990c", + "id": "3598d6b4", "url": "/trees", "endpointHeaders": [], "endpointPathParameters": [], @@ -614,12 +770,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -637,12 +793,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -658,12 +814,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -698,12 +854,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -723,12 +879,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -763,12 +919,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -804,12 +960,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -819,8 +975,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -925,12 +1081,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -948,12 +1104,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -969,12 +1125,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -1009,12 +1165,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -1034,12 +1190,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1074,12 +1230,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1115,12 +1271,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -1130,8 +1286,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -1438,7 +1594,7 @@ "autogeneratedExamples": [ { "example": { - "id": "57bea735", + "id": "d368f1a1", "url": "/trees", "endpointHeaders": [], "endpointPathParameters": [], @@ -1591,12 +1747,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -1614,12 +1770,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -1635,12 +1791,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -1675,12 +1831,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -1700,12 +1856,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1740,12 +1896,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1781,12 +1937,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -1796,8 +1952,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -2270,7 +2426,7 @@ "autogeneratedExamples": [ { "example": { - "id": "47fd375b", + "id": "6a51944f", "url": "/trees/treeId", "endpointHeaders": [], "endpointPathParameters": [ @@ -2314,12 +2470,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -2337,12 +2493,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -2358,12 +2514,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -2398,12 +2554,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -2423,12 +2579,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -2463,12 +2619,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -2504,12 +2660,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -2519,8 +2675,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level.json index e4746b2c53cd..a722b3420cfb 100644 --- a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level.json +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/examples-endpoint-level.json @@ -206,6 +206,84 @@ "autogeneratedExamples": {} } }, + "TreeLocation": { + "name": { + "typeId": "TreeLocation", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "TreeLocation" + }, + "shape": { + "properties": [ + { + "name": "latitude", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocationLatitude_example_autogenerated": 1.1 + } + } + }, + { + "name": "longitude", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocationLongitude_example_autogenerated": 1.1 + } + } + } + ], + "extends": [], + "extendedProperties": [], + "extraProperties": false, + "type": "object" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocation_example_autogenerated": {} + } + } + }, "Tree": { "name": { "typeId": "Tree", @@ -217,6 +295,94 @@ }, "shape": { "properties": [ + { + "name": "species", + "valueType": { + "primitive": { + "v1": "STRING", + "v2": { + "validation": {}, + "type": "string" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeSpecies_example_0": "Quercus alba" + }, + "autogeneratedExamples": {} + } + }, + { + "name": "height", + "valueType": { + "primitive": { + "v1": "FLOAT", + "v2": { + "validation": {}, + "type": "float" + } + }, + "type": "primitive" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeHeight_example_0": 25.4 + }, + "autogeneratedExamples": {} + } + }, + { + "name": "age", + "valueType": { + "container": { + "optional": { + "primitive": { + "v1": "INTEGER", + "v2": { + "validation": {}, + "type": "integer" + } + }, + "type": "primitive" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": { + "TreeAge_example_0": 50 + }, + "autogeneratedExamples": {} + } + }, + { + "name": "location", + "valueType": { + "container": { + "optional": { + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "TreeLocation", + "typeId": "TreeLocation", + "inline": false, + "type": "named" + }, + "type": "optional" + }, + "type": "container" + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "TreeLocation_example_autogenerated": {} + } + } + }, { "name": "id", "valueType": { @@ -263,17 +429,7 @@ } } ], - "extends": [ - { - "typeId": "TreeCreate", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "TreeCreate", - "displayName": "TreeCreate" - } - ], + "extends": [], "extendedProperties": [], "extraProperties": false, "type": "object" @@ -283,14 +439,18 @@ "referencedTypes": {}, "inline": false, "v2Examples": { - "userSpecifiedExamples": {}, - "autogeneratedExamples": { - "Tree_example_autogenerated": { + "userSpecifiedExamples": { + "Tree_example_0": { "species": "Quercus alba", "height": 25.4, + "location": { + "latitude": 40.7128, + "longitude": -74.006 + }, "id": "string" } - } + }, + "autogeneratedExamples": {} } }, "createFern_Response_201": { @@ -431,7 +591,7 @@ "autogeneratedExamples": [ { "example": { - "id": "4f74990c", + "id": "3598d6b4", "url": "/trees", "endpointHeaders": [], "endpointPathParameters": [], @@ -487,12 +647,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -510,12 +670,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -531,12 +691,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -571,12 +731,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -596,12 +756,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -636,12 +796,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -677,12 +837,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -692,8 +852,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -798,12 +958,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -821,12 +981,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -842,12 +1002,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -882,12 +1042,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -907,12 +1067,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -947,12 +1107,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -988,12 +1148,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -1003,8 +1163,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -1311,7 +1471,7 @@ "autogeneratedExamples": [ { "example": { - "id": "57bea735", + "id": "d368f1a1", "url": "/trees", "endpointHeaders": [], "endpointPathParameters": [], @@ -1464,12 +1624,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -1487,12 +1647,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -1508,12 +1668,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -1548,12 +1708,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -1573,12 +1733,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1613,12 +1773,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -1654,12 +1814,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -1669,8 +1829,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -2063,7 +2223,7 @@ "autogeneratedExamples": [ { "example": { - "id": "47fd375b", + "id": "6a51944f", "url": "/trees/treeId", "endpointHeaders": [], "endpointPathParameters": [ @@ -2107,12 +2267,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -2130,12 +2290,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -2151,12 +2311,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -2191,12 +2351,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -2216,12 +2376,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -2256,12 +2416,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -2297,12 +2457,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -2312,8 +2472,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -3656,7 +3816,7 @@ "autogeneratedExamples": [ { "example": { - "id": "2889b501", + "id": "8227317d", "url": "/trees/pines", "endpointHeaders": [], "endpointPathParameters": [], @@ -3684,12 +3844,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -3707,12 +3867,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -3728,12 +3888,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -3768,12 +3928,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -3793,12 +3953,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -3833,12 +3993,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -3874,12 +4034,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -3889,8 +4049,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, @@ -4180,7 +4340,7 @@ "autogeneratedExamples": [ { "example": { - "id": "2889b501", + "id": "8227317d", "url": "/trees/alias", "endpointHeaders": [], "endpointPathParameters": [], @@ -4208,12 +4368,12 @@ { "name": "species", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": "species", @@ -4231,12 +4391,12 @@ { "name": "height", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1.1, @@ -4252,12 +4412,12 @@ { "name": "age", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": 1, @@ -4292,12 +4452,12 @@ { "name": "location", "originalTypeDeclaration": { - "typeId": "TreeCreate", + "typeId": "Tree", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreate" + "name": "Tree" }, "value": { "jsonExample": { @@ -4317,12 +4477,12 @@ { "name": "latitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -4357,12 +4517,12 @@ { "name": "longitude", "originalTypeDeclaration": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "value": { "jsonExample": 1.1, @@ -4398,12 +4558,12 @@ "type": "object" }, "typeName": { - "typeId": "TreeCreateLocation", + "typeId": "TreeLocation", "fernFilepath": { "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation" + "name": "TreeLocation" }, "type": "named" } @@ -4413,8 +4573,8 @@ "allParts": [], "packagePath": [] }, - "name": "TreeCreateLocation", - "typeId": "TreeCreateLocation", + "name": "TreeLocation", + "typeId": "TreeLocation", "inline": false, "type": "named" }, diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/url-reference.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/url-reference.json index 8cd096e2dbc2..1f9b3f47db59 100644 --- a/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/url-reference.json +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/__snapshots__/v3-sdks/url-reference.json @@ -345,6 +345,41 @@ "autogeneratedExamples": {} } }, + "PetOwnerStatus": { + "name": { + "typeId": "PetOwnerStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [] + }, + "name": "PetOwnerStatus" + }, + "shape": { + "values": [ + { + "name": "available" + }, + { + "name": "pending" + }, + { + "name": "sold" + } + ], + "type": "enum" + }, + "autogeneratedExamples": [], + "userProvidedExamples": [], + "docs": "pet status in the store", + "referencedTypes": {}, + "inline": false, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": { + "PetOwnerStatus_example_autogenerated": "available" + } + } + }, "PetOwner": { "name": { "typeId": "PetOwner", @@ -701,7 +736,7 @@ "userProvidedExamples": [], "docs": "A tag for a pet", "referencedTypes": {}, - "inline": true, + "inline": false, "v2Examples": { "userSpecifiedExamples": { "PetOwner_example_0": { @@ -1526,41 +1561,6 @@ "autogeneratedExamples": {} } }, - "PetOwnerStatus": { - "name": { - "typeId": "PetOwnerStatus", - "fernFilepath": { - "allParts": [], - "packagePath": [] - }, - "name": "PetOwnerStatus" - }, - "shape": { - "values": [ - { - "name": "available" - }, - { - "name": "pending" - }, - { - "name": "sold" - } - ], - "type": "enum" - }, - "autogeneratedExamples": [], - "userProvidedExamples": [], - "docs": "pet status in the store", - "referencedTypes": {}, - "inline": false, - "v2Examples": { - "userSpecifiedExamples": {}, - "autogeneratedExamples": { - "PetOwnerStatus_example_autogenerated": "available" - } - } - }, "ChannelsPetownersSubscribeParamsData": { "name": { "typeId": "ChannelsPetownersSubscribeParamsData", diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/allof.test.ts b/packages/cli/api-importers/v3-importer-tests/src/__test__/allof.test.ts new file mode 100644 index 000000000000..d37d5829246d --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/allof.test.ts @@ -0,0 +1,229 @@ +/** + * Assertion-based tests for allOf composition edge cases. + * These tests validate the IR output against expected behavior per the OpenAPI spec, + * rather than snapshot-matching. + * + * Uses the V3 importer (OSSWorkspace) which is the code path for docs customers. + * + * Pylon #18189 / Linear FER-9158 + */ + +import { AbsoluteFilePath, join, RelativeFilePath } from "@fern-api/fs-utils"; +import { OSSWorkspace } from "@fern-api/lazy-fern-workspace"; +import { createMockTaskContext } from "@fern-api/task-context"; +import { loadAPIWorkspace } from "@fern-api/workspace-loader"; + +const FIXTURE_DIR = join(AbsoluteFilePath.of(__dirname), RelativeFilePath.of("fixtures/allof/fern")); + +interface IRProperty { + name: string; + valueType: { + _type: string; + container?: { + _type: string; + optional?: unknown; + list?: unknown; + }; + name?: string; + typeId?: string; + }; +} + +interface IRTypeShape { + _type: string; + properties?: IRProperty[]; + extends?: Array<{ name: string; typeId: string }>; +} + +interface IRType { + name: { name: string; typeId: string }; + shape: IRTypeShape; +} + +interface IR { + types: Record; +} + +function findType(ir: IR, name: string): IRType | undefined { + return Object.values(ir.types).find((t) => t.name.name === name); +} + +function findProperty(type: IRType, propName: string): IRProperty | undefined { + if (type.shape._type !== "object") { + return undefined; + } + return type.shape.properties?.find((p) => p.name === propName); +} + +function getOuterType(prop: IRProperty): string { + return prop.valueType._type; +} + +function getContainerType(prop: IRProperty): string | undefined { + if (prop.valueType._type === "container") { + return prop.valueType.container?._type; + } + return undefined; +} + +describe("allOf edge cases", () => { + let ir: IR; + + beforeAll(async () => { + const context = createMockTaskContext(); + const workspace = await loadAPIWorkspace({ + absolutePathToWorkspace: FIXTURE_DIR, + context, + cliVersion: "0.0.0", + workspaceName: "allof" + }); + if (!workspace.didSucceed) { + throw new Error(`Failed to load fixture: ${JSON.stringify(workspace.failures)}`); + } + if (!(workspace.workspace instanceof OSSWorkspace)) { + throw new Error("Expected OSSWorkspace (V3 importer) but got a different workspace type"); + } + const intermediateRepresentation = await workspace.workspace.getIntermediateRepresentation({ + context, + audiences: { type: "all" }, + enableUniqueErrorsPerEndpoint: false, + generateV1Examples: true, + logWarnings: false + }); + // Serialize to JSON, renaming discriminant `type` → `_type` on union objects + ir = JSON.parse( + JSON.stringify(intermediateRepresentation, (_key, value) => { + if (value && typeof value === "object" && "_visit" in value && "type" in value) { + const { type, _visit, ...rest } = value; + return { _type: type, ...rest }; + } + return value; + }) + ) as IR; + }, 30_000); + + describe("Case A: array items narrowing via allOf", () => { + it("RuleTypeSearchResponse should exist as a type", () => { + const type = findType(ir, "RuleTypeSearchResponse"); + expect(type).toBeDefined(); + }); + + it("results property should be a list, not optional", () => { + // biome-ignore lint/style/noNonNullAssertion: verified by prior test + const type = findType(ir, "RuleTypeSearchResponse")!; + const results = findProperty(type, "results"); + expect(results).toBeDefined(); + + // results is required in the parent PaginatedResult, so it should NOT + // be wrapped in optional/nullable after allOf composition + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const containerType = getContainerType(results!); + expect(containerType).not.toBe("optional"); + expect(containerType).not.toBe("nullable"); + expect(containerType).toBe("list"); + }); + + it("results items should be typed as RuleTypeResponse, not unknown", () => { + // biome-ignore lint/style/noNonNullAssertion: verified by prior test + const type = findType(ir, "RuleTypeSearchResponse")!; + const results = findProperty(type, "results"); + expect(results).toBeDefined(); + + // Drill into the list's element type — it should be named:RuleTypeResponse + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const valueType = results!.valueType; + let listType: Record | undefined; + if (valueType._type === "container" && valueType.container?._type === "list") { + listType = valueType.container.list as Record; + } else if (valueType._type === "container" && valueType.container?._type === "optional") { + // If wrapped in optional (the bug), drill through it + const inner = valueType.container.optional as Record; + if (inner?._type === "container" && (inner.container as Record)?._type === "list") { + listType = (inner.container as Record).list as Record; + } + } + expect(listType).toBeDefined(); + expect(listType?._type).toBe("named"); + expect(listType?.name).toBe("RuleTypeResponse"); + }); + + it("paging property should remain required (not optional)", () => { + // biome-ignore lint/style/noNonNullAssertion: verified by prior test + const type = findType(ir, "RuleTypeSearchResponse")!; + const paging = findProperty(type, "paging"); + expect(paging).toBeDefined(); + + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const containerType = getContainerType(paging!); + expect(containerType).not.toBe("optional"); + }); + }); + + describe("Case B: property-level allOf with $ref + inline primitive", () => { + it("RuleCreateRequest should exist as a type", () => { + const type = findType(ir, "RuleCreateRequest"); + expect(type).toBeDefined(); + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + expect(type!.shape._type).toBe("object"); + }); + + it("executionContext property should exist", () => { + // biome-ignore lint/style/noNonNullAssertion: verified by prior test + const type = findType(ir, "RuleCreateRequest")!; + const prop = findProperty(type, "executionContext"); + expect(prop).toBeDefined(); + }); + + it("executionContext should reference RuleExecutionContext, not be unknown or empty", () => { + // biome-ignore lint/style/noNonNullAssertion: verified by prior test + const type = findType(ir, "RuleCreateRequest")!; + const prop = findProperty(type, "executionContext"); + expect(prop).toBeDefined(); + + // executionContext is required in the OpenAPI fixture, so it should NOT + // be wrapped in optional + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + expect(getContainerType(prop!)).not.toBe("optional"); + + // The property should reference the RuleExecutionContext enum. + // It should NOT be: unknown, an empty object, or a named reference + // to a synthetic type with zero properties. + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const outerType = getOuterType(prop!); + expect(outerType).not.toBe("unknown"); + + // If it's a named reference, check it points to RuleExecutionContext + // (not a synthetic empty object type) + if (outerType === "named") { + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + expect(prop!.valueType.name).toBe("RuleExecutionContext"); + } else if (outerType === "container") { + // Could be optional since the enum + // doesn't have a default — but the inner type must still reference it + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const container = prop!.valueType.container!; + if (container._type === "optional") { + const inner = container.optional as Record; + expect(inner?._type).toBe("named"); + expect(inner?.name).toBe("RuleExecutionContext"); + } + } + }); + }); + + describe("Case C: required field preservation through allOf", () => { + it("RuleResponse should exist with all required properties as non-optional", () => { + const type = findType(ir, "RuleResponse"); + expect(type).toBeDefined(); + + for (const requiredProp of ["id", "name", "status", "executionContext"]) { + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const prop = findProperty(type!, requiredProp); + expect(prop).toBeDefined(); + // biome-ignore lint/style/noNonNullAssertion: verified by prior expect + const containerType = getContainerType(prop!); + expect(containerType).not.toBe("optional"); + } + }); + }); +}); diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/fern.config.json b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/fern.config.json new file mode 100644 index 000000000000..ecb7133e2645 --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/fern.config.json @@ -0,0 +1,4 @@ +{ + "organization": "fern", + "version": "*" +} diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/generators.yml b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/generators.yml new file mode 100644 index 000000000000..5b01f1e0833d --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/fern/generators.yml @@ -0,0 +1,4 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json +api: + specs: + - openapi: ../openapi.yml diff --git a/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/openapi.yml b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/openapi.yml new file mode 100644 index 000000000000..e1df8f503799 --- /dev/null +++ b/packages/cli/api-importers/v3-importer-tests/src/__test__/fixtures/allof/openapi.yml @@ -0,0 +1,178 @@ +openapi: 3.0.3 +info: + title: allOf Reproduction + version: 1.0.0 + description: > + Reproduces allOf edge cases + +servers: + - url: https://api.allof.com + +paths: + /v1/preview/1/rule-types: + get: + operationId: searchRuleTypes + summary: Search for rule types + parameters: + - name: query + in: query + schema: + type: string + responses: + "200": + description: Paginated list of rule types + content: + application/json: + schema: + $ref: "#/components/schemas/RuleTypeSearchResponse" + + /v1/preview/1/rules: + post: + operationId: createRule + summary: Create a rule + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/RuleCreateRequest" + responses: + "200": + description: Created rule + content: + application/json: + schema: + $ref: "#/components/schemas/RuleResponse" + +components: + schemas: + # ----------------------------------------------------------------------- + # Shared base schemas + # ----------------------------------------------------------------------- + PagingCursors: + type: object + required: + - next + properties: + next: + type: string + previous: + type: string + + PaginatedResult: + type: object + required: + - paging + - results + properties: + paging: + $ref: "#/components/schemas/PagingCursors" + results: + type: array + maxItems: 100 + description: Current page of results from the requested resource. + items: {} + + RuleExecutionContext: + type: string + description: The execution environment for a rule. + enum: + - prod + - staging + - dev + + # ----------------------------------------------------------------------- + # Case A: Array items narrowing WITHOUT redeclaring type: array + # + # From the customer's original report (Slack reply #5). The child schema + # narrows `results.items` from {} to RuleTypeResponse. The parent declares + # `required: [paging, results]`, so `results` should remain required in + # the composed type. + # + # Expected: results is a required list of RuleTypeResponse + # Bug: results renders as optional (required not propagated from parent) + # ----------------------------------------------------------------------- + RuleTypeResponse: + type: object + required: + - id + - name + - status + properties: + id: + type: string + name: + type: string + description: + type: string + status: + type: string + enum: + - active + - inactive + + RuleTypeSearchResponse: + allOf: + - $ref: "#/components/schemas/PaginatedResult" + - properties: + results: + items: + $ref: "#/components/schemas/RuleTypeResponse" + + # ----------------------------------------------------------------------- + # Case B: Property-level allOf combining $ref with inline constraints + # + # From Evan's report (Slack reply #10). The property `executionContext` + # uses allOf to combine a $ref to an enum with an inline string + pattern + # constraint. This means the value must be one of the enum values AND + # match the pattern (i.e., any value except "prod"). + # + # Expected: executionContext references RuleExecutionContext (the enum) + # Bug: renders as an empty object — the non-object allOf element is + # skipped entirely ("Skipping non-object allOf element") + # ----------------------------------------------------------------------- + RuleCreateRequest: + type: object + required: + - name + - executionContext + properties: + name: + type: string + executionContext: + allOf: + - $ref: "#/components/schemas/RuleExecutionContext" + - type: string + pattern: "^(?!prod$)[a-z0-9_-]+$" + description: > + Execution context for the rule, excluding the prod environment. + + # ----------------------------------------------------------------------- + # Case C: allOf extending a parent with additional required properties + # + # The response type composes PaginatedResult (for paging) with additional + # rule-specific fields. All properties from the parent should retain their + # required/optional status. + # + # Expected: id, name, status are required; executionContext is required + # ----------------------------------------------------------------------- + RuleResponse: + type: object + required: + - id + - name + - status + - executionContext + properties: + id: + type: string + name: + type: string + status: + type: string + enum: + - active + - inactive + - draft + executionContext: + $ref: "#/components/schemas/RuleExecutionContext" diff --git a/packages/cli/cli/changes/unreleased/fix-allof-composition.yml b/packages/cli/cli/changes/unreleased/fix-allof-composition.yml new file mode 100644 index 000000000000..fac18d6d97d5 --- /dev/null +++ b/packages/cli/cli/changes/unreleased/fix-allof-composition.yml @@ -0,0 +1,14 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Fix allOf composition bugs in V3 OpenAPI importer: resolve $ref schemas + within multi-element allOf arrays instead of falling back to untyped objects, + deduplicate merged allOf refs for diamond-shaped inheritance, guard + variants-flattening and composition-keyword shortcuts against $ref-resolved + schemas, preserve inline status through allOf merge path, handle nullable + enum patterns in allOf shortcuts, detect cycles across recursive + single-element allOf chains, filter unresolved $ref objects from nested allOf + flattening, recursively flatten deeply-nested allOf arrays, strip oneOf/anyOf + from child schemas during allOf merging, and propagate outer schema metadata + through single-element allOf paths. + type: fix diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__AuditInfo.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__AuditInfo.json new file mode 100644 index 000000000000..4d5ef60c2788 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__AuditInfo.json @@ -0,0 +1,49 @@ +{ + "type": "object", + "properties": { + "createdBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "modifiedBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "modifiedDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrg.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrg.json new file mode 100644 index 000000000000..f8fc1f538fc5 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrg.json @@ -0,0 +1,46 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/BaseOrgMetadata" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id" + ], + "additionalProperties": false, + "definitions": { + "BaseOrgMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "tier": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrgMetadata.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrgMetadata.json new file mode 100644 index 000000000000..edae048bcc87 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__BaseOrgMetadata.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "tier": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntity.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntity.json new file mode 100644 index 000000000000..f0fc19dd490d --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntity.json @@ -0,0 +1,45 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "summary": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "status": { + "$ref": "#/definitions/CombinedEntityStatus" + } + }, + "required": [ + "id", + "status" + ], + "additionalProperties": false, + "definitions": { + "CombinedEntityStatus": { + "type": "string", + "enum": [ + "active", + "archived" + ] + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntityStatus.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntityStatus.json new file mode 100644 index 000000000000..6f3966bf00a4 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__CombinedEntityStatus.json @@ -0,0 +1,8 @@ +{ + "type": "string", + "enum": [ + "active", + "archived" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Describable.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Describable.json new file mode 100644 index 000000000000..074237ad3a48 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Describable.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "properties": { + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "summary": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrg.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrg.json new file mode 100644 index 000000000000..38508701f690 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrg.json @@ -0,0 +1,40 @@ +{ + "type": "object", + "properties": { + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/DetailedOrgMetadata" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": { + "DetailedOrgMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrgMetadata.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrgMetadata.json new file mode 100644 index 000000000000..33ffe43bc4ce --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__DetailedOrgMetadata.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Identifiable.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Identifiable.json new file mode 100644 index 000000000000..2cb8231306b8 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Identifiable.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Organization.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Organization.json new file mode 100644 index 000000000000..e698e1988e28 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__Organization.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/OrganizationMetadata" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ], + "additionalProperties": false, + "definitions": { + "OrganizationMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__OrganizationMetadata.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__OrganizationMetadata.json new file mode 100644 index 000000000000..33ffe43bc4ce --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__OrganizationMetadata.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PaginatedResult.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PaginatedResult.json new file mode 100644 index 000000000000..6b9b2f9e8f4e --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PaginatedResult.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "paging": { + "$ref": "#/definitions/PagingCursors" + }, + "results": { + "type": "array", + "items": { + "type": [ + "string", + "number", + "boolean", + "object", + "array", + "null" + ] + } + } + }, + "required": [ + "paging", + "results" + ], + "additionalProperties": false, + "definitions": { + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PagingCursors.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PagingCursors.json new file mode 100644 index 000000000000..ba54102aadcf --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__PagingCursors.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleExecutionContext.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleExecutionContext.json new file mode 100644 index 000000000000..f4f3ef54c773 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleExecutionContext.json @@ -0,0 +1,9 @@ +{ + "type": "string", + "enum": [ + "prod", + "staging", + "dev" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponse.json new file mode 100644 index 000000000000..9d95097233bc --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponse.json @@ -0,0 +1,90 @@ +{ + "type": "object", + "properties": { + "createdBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "modifiedBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "modifiedDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/RuleResponseStatus" + }, + "executionContext": { + "oneOf": [ + { + "$ref": "#/definitions/RuleExecutionContext" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name", + "status" + ], + "additionalProperties": false, + "definitions": { + "RuleResponseStatus": { + "type": "string", + "enum": [ + "active", + "inactive", + "draft" + ] + }, + "RuleExecutionContext": { + "type": "string", + "enum": [ + "prod", + "staging", + "dev" + ] + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponseStatus.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponseStatus.json new file mode 100644 index 000000000000..6937b04093ad --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleResponseStatus.json @@ -0,0 +1,9 @@ +{ + "type": "string", + "enum": [ + "active", + "inactive", + "draft" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleType.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleType.json new file mode 100644 index 000000000000..0f17bcdb70dd --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleType.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleTypeSearchResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleTypeSearchResponse.json new file mode 100644 index 000000000000..48f72eb84f5d --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__RuleTypeSearchResponse.json @@ -0,0 +1,75 @@ +{ + "type": "object", + "properties": { + "paging": { + "$ref": "#/definitions/PagingCursors" + }, + "results": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/RuleType" + } + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "paging" + ], + "additionalProperties": false, + "definitions": { + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + }, + "RuleType": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__User.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__User.json new file mode 100644 index 000000000000..3b377d3857ee --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__User.json @@ -0,0 +1,17 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + } + }, + "required": [ + "id", + "email" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__UserSearchResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__UserSearchResponse.json new file mode 100644 index 000000000000..1c28f59367ed --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof-inline/type__UserSearchResponse.json @@ -0,0 +1,65 @@ +{ + "type": "object", + "properties": { + "paging": { + "$ref": "#/definitions/PagingCursors" + }, + "results": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "paging" + ], + "additionalProperties": false, + "definitions": { + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + }, + "User": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + } + }, + "required": [ + "id", + "email" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__AuditInfo.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__AuditInfo.json new file mode 100644 index 000000000000..4d5ef60c2788 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__AuditInfo.json @@ -0,0 +1,49 @@ +{ + "type": "object", + "properties": { + "createdBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "modifiedBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "modifiedDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrg.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrg.json new file mode 100644 index 000000000000..f8fc1f538fc5 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrg.json @@ -0,0 +1,46 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/BaseOrgMetadata" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id" + ], + "additionalProperties": false, + "definitions": { + "BaseOrgMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "tier": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrgMetadata.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrgMetadata.json new file mode 100644 index 000000000000..edae048bcc87 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__BaseOrgMetadata.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "tier": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntity.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntity.json new file mode 100644 index 000000000000..754e5900f36c --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntity.json @@ -0,0 +1,45 @@ +{ + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/CombinedEntityStatus" + }, + "id": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "summary": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "status", + "id" + ], + "additionalProperties": false, + "definitions": { + "CombinedEntityStatus": { + "type": "string", + "enum": [ + "active", + "archived" + ] + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntityStatus.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntityStatus.json new file mode 100644 index 000000000000..6f3966bf00a4 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__CombinedEntityStatus.json @@ -0,0 +1,8 @@ +{ + "type": "string", + "enum": [ + "active", + "archived" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Describable.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Describable.json new file mode 100644 index 000000000000..074237ad3a48 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Describable.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "properties": { + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "summary": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrg.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrg.json new file mode 100644 index 000000000000..38508701f690 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrg.json @@ -0,0 +1,40 @@ +{ + "type": "object", + "properties": { + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/DetailedOrgMetadata" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "definitions": { + "DetailedOrgMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrgMetadata.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrgMetadata.json new file mode 100644 index 000000000000..33ffe43bc4ce --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__DetailedOrgMetadata.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "domain": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Identifiable.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Identifiable.json new file mode 100644 index 000000000000..2cb8231306b8 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Identifiable.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Organization.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Organization.json new file mode 100644 index 000000000000..ce41ccc70d3a --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__Organization.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/BaseOrgMetadata" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "name", + "id" + ], + "additionalProperties": false, + "definitions": { + "BaseOrgMetadata": { + "type": "object", + "properties": { + "region": { + "type": "string" + }, + "tier": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "region" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PaginatedResult.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PaginatedResult.json new file mode 100644 index 000000000000..6b9b2f9e8f4e --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PaginatedResult.json @@ -0,0 +1,50 @@ +{ + "type": "object", + "properties": { + "paging": { + "$ref": "#/definitions/PagingCursors" + }, + "results": { + "type": "array", + "items": { + "type": [ + "string", + "number", + "boolean", + "object", + "array", + "null" + ] + } + } + }, + "required": [ + "paging", + "results" + ], + "additionalProperties": false, + "definitions": { + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PagingCursors.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PagingCursors.json new file mode 100644 index 000000000000..ba54102aadcf --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__PagingCursors.json @@ -0,0 +1,23 @@ +{ + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleExecutionContext.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleExecutionContext.json new file mode 100644 index 000000000000..f4f3ef54c773 --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleExecutionContext.json @@ -0,0 +1,9 @@ +{ + "type": "string", + "enum": [ + "prod", + "staging", + "dev" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponse.json new file mode 100644 index 000000000000..9d95097233bc --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponse.json @@ -0,0 +1,90 @@ +{ + "type": "object", + "properties": { + "createdBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "modifiedBy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "modifiedDateTime": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/RuleResponseStatus" + }, + "executionContext": { + "oneOf": [ + { + "$ref": "#/definitions/RuleExecutionContext" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name", + "status" + ], + "additionalProperties": false, + "definitions": { + "RuleResponseStatus": { + "type": "string", + "enum": [ + "active", + "inactive", + "draft" + ] + }, + "RuleExecutionContext": { + "type": "string", + "enum": [ + "prod", + "staging", + "dev" + ] + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponseStatus.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponseStatus.json new file mode 100644 index 000000000000..6937b04093ad --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleResponseStatus.json @@ -0,0 +1,9 @@ +{ + "type": "string", + "enum": [ + "active", + "inactive", + "draft" + ], + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleType.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleType.json new file mode 100644 index 000000000000..0f17bcdb70dd --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleType.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleTypeSearchResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleTypeSearchResponse.json new file mode 100644 index 000000000000..3a6a4c6848fe --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__RuleTypeSearchResponse.json @@ -0,0 +1,75 @@ +{ + "type": "object", + "properties": { + "results": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/RuleType" + } + }, + { + "type": "null" + } + ] + }, + "paging": { + "$ref": "#/definitions/PagingCursors" + } + }, + "required": [ + "paging" + ], + "additionalProperties": false, + "definitions": { + "RuleType": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "name" + ], + "additionalProperties": false + }, + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__User.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__User.json new file mode 100644 index 000000000000..3b377d3857ee --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__User.json @@ -0,0 +1,17 @@ +{ + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + } + }, + "required": [ + "id", + "email" + ], + "additionalProperties": false, + "definitions": {} +} \ No newline at end of file diff --git a/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__UserSearchResponse.json b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__UserSearchResponse.json new file mode 100644 index 000000000000..49d4bbc2028b --- /dev/null +++ b/packages/cli/fern-definition/ir-to-jsonschema/src/__test__/__snapshots__/allof/type__UserSearchResponse.json @@ -0,0 +1,65 @@ +{ + "type": "object", + "properties": { + "results": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + { + "type": "null" + } + ] + }, + "paging": { + "$ref": "#/definitions/PagingCursors" + } + }, + "required": [ + "paging" + ], + "additionalProperties": false, + "definitions": { + "User": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + } + }, + "required": [ + "id", + "email" + ], + "additionalProperties": false + }, + "PagingCursors": { + "type": "object", + "properties": { + "next": { + "type": "string" + }, + "previous": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "next" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof-inline.json b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof-inline.json new file mode 100644 index 000000000000..e4219645fe14 --- /dev/null +++ b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof-inline.json @@ -0,0 +1,2675 @@ +{ + "version": "1.0.0", + "types": { + "type_:PaginatedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "PaginatedResult", + "camelCase": { + "unsafeName": "paginatedResult", + "safeName": "paginatedResult" + }, + "snakeCase": { + "unsafeName": "paginated_result", + "safeName": "paginated_result" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATED_RESULT", + "safeName": "PAGINATED_RESULT" + }, + "pascalCase": { + "unsafeName": "PaginatedResult", + "safeName": "PaginatedResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "list", + "value": { + "type": "unknown" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:PagingCursors": { + "type": "object", + "declaration": { + "name": { + "originalName": "PagingCursors", + "camelCase": { + "unsafeName": "pagingCursors", + "safeName": "pagingCursors" + }, + "snakeCase": { + "unsafeName": "paging_cursors", + "safeName": "paging_cursors" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING_CURSORS", + "safeName": "PAGING_CURSORS" + }, + "pascalCase": { + "unsafeName": "PagingCursors", + "safeName": "PagingCursors" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "next", + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "previous", + "name": { + "originalName": "previous", + "camelCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "snakeCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "screamingSnakeCase": { + "unsafeName": "PREVIOUS", + "safeName": "PREVIOUS" + }, + "pascalCase": { + "unsafeName": "Previous", + "safeName": "Previous" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleExecutionContext": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleExecutionContext", + "camelCase": { + "unsafeName": "ruleExecutionContext", + "safeName": "ruleExecutionContext" + }, + "snakeCase": { + "unsafeName": "rule_execution_context", + "safeName": "rule_execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_EXECUTION_CONTEXT", + "safeName": "RULE_EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "RuleExecutionContext", + "safeName": "RuleExecutionContext" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "prod", + "name": { + "originalName": "prod", + "camelCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "snakeCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "screamingSnakeCase": { + "unsafeName": "PROD", + "safeName": "PROD" + }, + "pascalCase": { + "unsafeName": "Prod", + "safeName": "Prod" + } + } + }, + { + "wireValue": "staging", + "name": { + "originalName": "staging", + "camelCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "snakeCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "screamingSnakeCase": { + "unsafeName": "STAGING", + "safeName": "STAGING" + }, + "pascalCase": { + "unsafeName": "Staging", + "safeName": "Staging" + } + } + }, + { + "wireValue": "dev", + "name": { + "originalName": "dev", + "camelCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "snakeCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "screamingSnakeCase": { + "unsafeName": "DEV", + "safeName": "DEV" + }, + "pascalCase": { + "unsafeName": "Dev", + "safeName": "Dev" + } + } + } + ] + }, + "type_:AuditInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "AuditInfo", + "camelCase": { + "unsafeName": "auditInfo", + "safeName": "auditInfo" + }, + "snakeCase": { + "unsafeName": "audit_info", + "safeName": "audit_info" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_INFO", + "safeName": "AUDIT_INFO" + }, + "pascalCase": { + "unsafeName": "AuditInfo", + "safeName": "AuditInfo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleType", + "camelCase": { + "unsafeName": "ruleType", + "safeName": "ruleType" + }, + "snakeCase": { + "unsafeName": "rule_type", + "safeName": "rule_type" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE", + "safeName": "RULE_TYPE" + }, + "pascalCase": { + "unsafeName": "RuleType", + "safeName": "RuleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "description", + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleTypeSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleTypeSearchResponse", + "camelCase": { + "unsafeName": "ruleTypeSearchResponse", + "safeName": "ruleTypeSearchResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_search_response", + "safeName": "rule_type_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_SEARCH_RESPONSE", + "safeName": "RULE_TYPE_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeSearchResponse", + "safeName": "RuleTypeSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:RuleType" + } + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "email", + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:UserSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserSearchResponse", + "camelCase": { + "unsafeName": "userSearchResponse", + "safeName": "userSearchResponse" + }, + "snakeCase": { + "unsafeName": "user_search_response", + "safeName": "user_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "USER_SEARCH_RESPONSE", + "safeName": "USER_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UserSearchResponse", + "safeName": "UserSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:User" + } + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleResponseStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleResponseStatus", + "camelCase": { + "unsafeName": "ruleResponseStatus", + "safeName": "ruleResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_response_status", + "safeName": "rule_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE_STATUS", + "safeName": "RULE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleResponseStatus", + "safeName": "RuleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + }, + { + "wireValue": "draft", + "name": { + "originalName": "draft", + "camelCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "snakeCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "screamingSnakeCase": { + "unsafeName": "DRAFT", + "safeName": "DRAFT" + }, + "pascalCase": { + "unsafeName": "Draft", + "safeName": "Draft" + } + } + } + ] + }, + "type_:RuleResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleResponse", + "camelCase": { + "unsafeName": "ruleResponse", + "safeName": "ruleResponse" + }, + "snakeCase": { + "unsafeName": "rule_response", + "safeName": "rule_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE", + "safeName": "RULE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleResponse", + "safeName": "RuleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleResponseStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:RuleExecutionContext" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Identifiable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifiable", + "camelCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "snakeCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIABLE", + "safeName": "IDENTIFIABLE" + }, + "pascalCase": { + "unsafeName": "Identifiable", + "safeName": "Identifiable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Describable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Describable", + "camelCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "snakeCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBABLE", + "safeName": "DESCRIBABLE" + }, + "pascalCase": { + "unsafeName": "Describable", + "safeName": "Describable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:CombinedEntityStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "CombinedEntityStatus", + "camelCase": { + "unsafeName": "combinedEntityStatus", + "safeName": "combinedEntityStatus" + }, + "snakeCase": { + "unsafeName": "combined_entity_status", + "safeName": "combined_entity_status" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY_STATUS", + "safeName": "COMBINED_ENTITY_STATUS" + }, + "pascalCase": { + "unsafeName": "CombinedEntityStatus", + "safeName": "CombinedEntityStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "archived", + "name": { + "originalName": "archived", + "camelCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "snakeCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "screamingSnakeCase": { + "unsafeName": "ARCHIVED", + "safeName": "ARCHIVED" + }, + "pascalCase": { + "unsafeName": "Archived", + "safeName": "Archived" + } + } + } + ] + }, + "type_:CombinedEntity": { + "type": "object", + "declaration": { + "name": { + "originalName": "CombinedEntity", + "camelCase": { + "unsafeName": "combinedEntity", + "safeName": "combinedEntity" + }, + "snakeCase": { + "unsafeName": "combined_entity", + "safeName": "combined_entity" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY", + "safeName": "COMBINED_ENTITY" + }, + "pascalCase": { + "unsafeName": "CombinedEntity", + "safeName": "CombinedEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:CombinedEntityStatus" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrgMetadata", + "camelCase": { + "unsafeName": "baseOrgMetadata", + "safeName": "baseOrgMetadata" + }, + "snakeCase": { + "unsafeName": "base_org_metadata", + "safeName": "base_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG_METADATA", + "safeName": "BASE_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "BaseOrgMetadata", + "safeName": "BaseOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "tier", + "name": { + "originalName": "tier", + "camelCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "snakeCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "screamingSnakeCase": { + "unsafeName": "TIER", + "safeName": "TIER" + }, + "pascalCase": { + "unsafeName": "Tier", + "safeName": "Tier" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrg", + "camelCase": { + "unsafeName": "baseOrg", + "safeName": "baseOrg" + }, + "snakeCase": { + "unsafeName": "base_org", + "safeName": "base_org" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG", + "safeName": "BASE_ORG" + }, + "pascalCase": { + "unsafeName": "BaseOrg", + "safeName": "BaseOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrgMetadata", + "camelCase": { + "unsafeName": "detailedOrgMetadata", + "safeName": "detailedOrgMetadata" + }, + "snakeCase": { + "unsafeName": "detailed_org_metadata", + "safeName": "detailed_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG_METADATA", + "safeName": "DETAILED_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "DetailedOrgMetadata", + "safeName": "DetailedOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrg", + "camelCase": { + "unsafeName": "detailedOrg", + "safeName": "detailedOrg" + }, + "snakeCase": { + "unsafeName": "detailed_org", + "safeName": "detailed_org" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG", + "safeName": "DETAILED_ORG" + }, + "pascalCase": { + "unsafeName": "DetailedOrg", + "safeName": "DetailedOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:DetailedOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:OrganizationMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "OrganizationMetadata", + "camelCase": { + "unsafeName": "organizationMetadata", + "safeName": "organizationMetadata" + }, + "snakeCase": { + "unsafeName": "organization_metadata", + "safeName": "organization_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION_METADATA", + "safeName": "ORGANIZATION_METADATA" + }, + "pascalCase": { + "unsafeName": "OrganizationMetadata", + "safeName": "OrganizationMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:OrganizationMetadata" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + } + }, + "headers": [], + "endpoints": { + "endpoint_.searchRuleTypes": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchRuleTypes", + "camelCase": { + "unsafeName": "searchRuleTypes", + "safeName": "searchRuleTypes" + }, + "snakeCase": { + "unsafeName": "search_rule_types", + "safeName": "search_rule_types" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES", + "safeName": "SEARCH_RULE_TYPES" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypes", + "safeName": "SearchRuleTypes" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/rule-types" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchRuleTypesRequest", + "camelCase": { + "unsafeName": "searchRuleTypesRequest", + "safeName": "searchRuleTypesRequest" + }, + "snakeCase": { + "unsafeName": "search_rule_types_request", + "safeName": "search_rule_types_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES_REQUEST", + "safeName": "SEARCH_RULE_TYPES_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypesRequest", + "safeName": "SearchRuleTypesRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "wireValue": "query", + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.createRule": { + "auth": null, + "declaration": { + "name": { + "originalName": "createRule", + "camelCase": { + "unsafeName": "createRule", + "safeName": "createRule" + }, + "snakeCase": { + "unsafeName": "create_rule", + "safeName": "create_rule" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RULE", + "safeName": "CREATE_RULE" + }, + "pascalCase": { + "unsafeName": "CreateRule", + "safeName": "CreateRule" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/rules" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RuleCreateRequest", + "camelCase": { + "unsafeName": "ruleCreateRequest", + "safeName": "ruleCreateRequest" + }, + "snakeCase": { + "unsafeName": "rule_create_request", + "safeName": "rule_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_CREATE_REQUEST", + "safeName": "RULE_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "RuleCreateRequest", + "safeName": "RuleCreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleExecutionContext" + }, + "propertyAccess": null, + "variable": null + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.listUsers": { + "auth": null, + "declaration": { + "name": { + "originalName": "listUsers", + "camelCase": { + "unsafeName": "listUsers", + "safeName": "listUsers" + }, + "snakeCase": { + "unsafeName": "list_users", + "safeName": "list_users" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS", + "safeName": "LIST_USERS" + }, + "pascalCase": { + "unsafeName": "ListUsers", + "safeName": "ListUsers" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.getEntity": { + "auth": null, + "declaration": { + "name": { + "originalName": "getEntity", + "camelCase": { + "unsafeName": "getEntity", + "safeName": "getEntity" + }, + "snakeCase": { + "unsafeName": "get_entity", + "safeName": "get_entity" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ENTITY", + "safeName": "GET_ENTITY" + }, + "pascalCase": { + "unsafeName": "GetEntity", + "safeName": "GetEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/entities" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.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": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/organizations" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + } + }, + "pathParameters": [], + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": { + "originalName": "Default", + "camelCase": { + "unsafeName": "default", + "safeName": "default" + }, + "snakeCase": { + "unsafeName": "default", + "safeName": "default" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT", + "safeName": "DEFAULT" + }, + "pascalCase": { + "unsafeName": "Default", + "safeName": "Default" + } + }, + "url": "https://api.example.com", + "docs": null + } + ] + } + }, + "variables": null, + "generatorConfig": null +} \ No newline at end of file diff --git a/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof.json b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof.json new file mode 100644 index 000000000000..90136a2672c4 --- /dev/null +++ b/packages/cli/generation/ir-generator-tests/src/dynamic-snippets/__test__/test-definitions/allof.json @@ -0,0 +1,2581 @@ +{ + "version": "1.0.0", + "types": { + "type_:PaginatedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "PaginatedResult", + "camelCase": { + "unsafeName": "paginatedResult", + "safeName": "paginatedResult" + }, + "snakeCase": { + "unsafeName": "paginated_result", + "safeName": "paginated_result" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATED_RESULT", + "safeName": "PAGINATED_RESULT" + }, + "pascalCase": { + "unsafeName": "PaginatedResult", + "safeName": "PaginatedResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "list", + "value": { + "type": "unknown" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:PagingCursors": { + "type": "object", + "declaration": { + "name": { + "originalName": "PagingCursors", + "camelCase": { + "unsafeName": "pagingCursors", + "safeName": "pagingCursors" + }, + "snakeCase": { + "unsafeName": "paging_cursors", + "safeName": "paging_cursors" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING_CURSORS", + "safeName": "PAGING_CURSORS" + }, + "pascalCase": { + "unsafeName": "PagingCursors", + "safeName": "PagingCursors" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "next", + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "previous", + "name": { + "originalName": "previous", + "camelCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "snakeCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "screamingSnakeCase": { + "unsafeName": "PREVIOUS", + "safeName": "PREVIOUS" + }, + "pascalCase": { + "unsafeName": "Previous", + "safeName": "Previous" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleExecutionContext": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleExecutionContext", + "camelCase": { + "unsafeName": "ruleExecutionContext", + "safeName": "ruleExecutionContext" + }, + "snakeCase": { + "unsafeName": "rule_execution_context", + "safeName": "rule_execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_EXECUTION_CONTEXT", + "safeName": "RULE_EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "RuleExecutionContext", + "safeName": "RuleExecutionContext" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "prod", + "name": { + "originalName": "prod", + "camelCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "snakeCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "screamingSnakeCase": { + "unsafeName": "PROD", + "safeName": "PROD" + }, + "pascalCase": { + "unsafeName": "Prod", + "safeName": "Prod" + } + } + }, + { + "wireValue": "staging", + "name": { + "originalName": "staging", + "camelCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "snakeCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "screamingSnakeCase": { + "unsafeName": "STAGING", + "safeName": "STAGING" + }, + "pascalCase": { + "unsafeName": "Staging", + "safeName": "Staging" + } + } + }, + { + "wireValue": "dev", + "name": { + "originalName": "dev", + "camelCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "snakeCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "screamingSnakeCase": { + "unsafeName": "DEV", + "safeName": "DEV" + }, + "pascalCase": { + "unsafeName": "Dev", + "safeName": "Dev" + } + } + } + ] + }, + "type_:AuditInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "AuditInfo", + "camelCase": { + "unsafeName": "auditInfo", + "safeName": "auditInfo" + }, + "snakeCase": { + "unsafeName": "audit_info", + "safeName": "audit_info" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_INFO", + "safeName": "AUDIT_INFO" + }, + "pascalCase": { + "unsafeName": "AuditInfo", + "safeName": "AuditInfo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleType", + "camelCase": { + "unsafeName": "ruleType", + "safeName": "ruleType" + }, + "snakeCase": { + "unsafeName": "rule_type", + "safeName": "rule_type" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE", + "safeName": "RULE_TYPE" + }, + "pascalCase": { + "unsafeName": "RuleType", + "safeName": "RuleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "description", + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleTypeSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleTypeSearchResponse", + "camelCase": { + "unsafeName": "ruleTypeSearchResponse", + "safeName": "ruleTypeSearchResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_search_response", + "safeName": "rule_type_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_SEARCH_RESPONSE", + "safeName": "RULE_TYPE_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeSearchResponse", + "safeName": "RuleTypeSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:RuleType" + } + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "email", + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:UserSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserSearchResponse", + "camelCase": { + "unsafeName": "userSearchResponse", + "safeName": "userSearchResponse" + }, + "snakeCase": { + "unsafeName": "user_search_response", + "safeName": "user_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "USER_SEARCH_RESPONSE", + "safeName": "USER_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UserSearchResponse", + "safeName": "UserSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:User" + } + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleResponseStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleResponseStatus", + "camelCase": { + "unsafeName": "ruleResponseStatus", + "safeName": "ruleResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_response_status", + "safeName": "rule_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE_STATUS", + "safeName": "RULE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleResponseStatus", + "safeName": "RuleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + }, + { + "wireValue": "draft", + "name": { + "originalName": "draft", + "camelCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "snakeCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "screamingSnakeCase": { + "unsafeName": "DRAFT", + "safeName": "DRAFT" + }, + "pascalCase": { + "unsafeName": "Draft", + "safeName": "Draft" + } + } + } + ] + }, + "type_:RuleResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleResponse", + "camelCase": { + "unsafeName": "ruleResponse", + "safeName": "ruleResponse" + }, + "snakeCase": { + "unsafeName": "rule_response", + "safeName": "rule_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE", + "safeName": "RULE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleResponse", + "safeName": "RuleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleResponseStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:RuleExecutionContext" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": [ + "type_:AuditInfo" + ], + "additionalProperties": false + }, + "type_:Identifiable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifiable", + "camelCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "snakeCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIABLE", + "safeName": "IDENTIFIABLE" + }, + "pascalCase": { + "unsafeName": "Identifiable", + "safeName": "Identifiable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Describable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Describable", + "camelCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "snakeCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBABLE", + "safeName": "DESCRIBABLE" + }, + "pascalCase": { + "unsafeName": "Describable", + "safeName": "Describable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:CombinedEntityStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "CombinedEntityStatus", + "camelCase": { + "unsafeName": "combinedEntityStatus", + "safeName": "combinedEntityStatus" + }, + "snakeCase": { + "unsafeName": "combined_entity_status", + "safeName": "combined_entity_status" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY_STATUS", + "safeName": "COMBINED_ENTITY_STATUS" + }, + "pascalCase": { + "unsafeName": "CombinedEntityStatus", + "safeName": "CombinedEntityStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "archived", + "name": { + "originalName": "archived", + "camelCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "snakeCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "screamingSnakeCase": { + "unsafeName": "ARCHIVED", + "safeName": "ARCHIVED" + }, + "pascalCase": { + "unsafeName": "Archived", + "safeName": "Archived" + } + } + } + ] + }, + "type_:CombinedEntity": { + "type": "object", + "declaration": { + "name": { + "originalName": "CombinedEntity", + "camelCase": { + "unsafeName": "combinedEntity", + "safeName": "combinedEntity" + }, + "snakeCase": { + "unsafeName": "combined_entity", + "safeName": "combined_entity" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY", + "safeName": "COMBINED_ENTITY" + }, + "pascalCase": { + "unsafeName": "CombinedEntity", + "safeName": "CombinedEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:CombinedEntityStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrgMetadata", + "camelCase": { + "unsafeName": "baseOrgMetadata", + "safeName": "baseOrgMetadata" + }, + "snakeCase": { + "unsafeName": "base_org_metadata", + "safeName": "base_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG_METADATA", + "safeName": "BASE_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "BaseOrgMetadata", + "safeName": "BaseOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "tier", + "name": { + "originalName": "tier", + "camelCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "snakeCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "screamingSnakeCase": { + "unsafeName": "TIER", + "safeName": "TIER" + }, + "pascalCase": { + "unsafeName": "Tier", + "safeName": "Tier" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrg", + "camelCase": { + "unsafeName": "baseOrg", + "safeName": "baseOrg" + }, + "snakeCase": { + "unsafeName": "base_org", + "safeName": "base_org" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG", + "safeName": "BASE_ORG" + }, + "pascalCase": { + "unsafeName": "BaseOrg", + "safeName": "BaseOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrgMetadata", + "camelCase": { + "unsafeName": "detailedOrgMetadata", + "safeName": "detailedOrgMetadata" + }, + "snakeCase": { + "unsafeName": "detailed_org_metadata", + "safeName": "detailed_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG_METADATA", + "safeName": "DETAILED_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "DetailedOrgMetadata", + "safeName": "DetailedOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrg", + "camelCase": { + "unsafeName": "detailedOrg", + "safeName": "detailedOrg" + }, + "snakeCase": { + "unsafeName": "detailed_org", + "safeName": "detailed_org" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG", + "safeName": "DETAILED_ORG" + }, + "pascalCase": { + "unsafeName": "DetailedOrg", + "safeName": "DetailedOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:DetailedOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + } + }, + "headers": [], + "endpoints": { + "endpoint_.searchRuleTypes": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchRuleTypes", + "camelCase": { + "unsafeName": "searchRuleTypes", + "safeName": "searchRuleTypes" + }, + "snakeCase": { + "unsafeName": "search_rule_types", + "safeName": "search_rule_types" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES", + "safeName": "SEARCH_RULE_TYPES" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypes", + "safeName": "SearchRuleTypes" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/rule-types" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchRuleTypesRequest", + "camelCase": { + "unsafeName": "searchRuleTypesRequest", + "safeName": "searchRuleTypesRequest" + }, + "snakeCase": { + "unsafeName": "search_rule_types_request", + "safeName": "search_rule_types_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES_REQUEST", + "safeName": "SEARCH_RULE_TYPES_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypesRequest", + "safeName": "SearchRuleTypesRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "wireValue": "query", + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.createRule": { + "auth": null, + "declaration": { + "name": { + "originalName": "createRule", + "camelCase": { + "unsafeName": "createRule", + "safeName": "createRule" + }, + "snakeCase": { + "unsafeName": "create_rule", + "safeName": "create_rule" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RULE", + "safeName": "CREATE_RULE" + }, + "pascalCase": { + "unsafeName": "CreateRule", + "safeName": "CreateRule" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/rules" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RuleCreateRequest", + "camelCase": { + "unsafeName": "ruleCreateRequest", + "safeName": "ruleCreateRequest" + }, + "snakeCase": { + "unsafeName": "rule_create_request", + "safeName": "rule_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_CREATE_REQUEST", + "safeName": "RULE_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "RuleCreateRequest", + "safeName": "RuleCreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleExecutionContext" + }, + "propertyAccess": null, + "variable": null + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.listUsers": { + "auth": null, + "declaration": { + "name": { + "originalName": "listUsers", + "camelCase": { + "unsafeName": "listUsers", + "safeName": "listUsers" + }, + "snakeCase": { + "unsafeName": "list_users", + "safeName": "list_users" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS", + "safeName": "LIST_USERS" + }, + "pascalCase": { + "unsafeName": "ListUsers", + "safeName": "ListUsers" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.getEntity": { + "auth": null, + "declaration": { + "name": { + "originalName": "getEntity", + "camelCase": { + "unsafeName": "getEntity", + "safeName": "getEntity" + }, + "snakeCase": { + "unsafeName": "get_entity", + "safeName": "get_entity" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ENTITY", + "safeName": "GET_ENTITY" + }, + "pascalCase": { + "unsafeName": "GetEntity", + "safeName": "GetEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/entities" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.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": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/organizations" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + } + }, + "pathParameters": [], + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": { + "originalName": "Default", + "camelCase": { + "unsafeName": "default", + "safeName": "default" + }, + "snakeCase": { + "unsafeName": "default", + "safeName": "default" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT", + "safeName": "DEFAULT" + }, + "pascalCase": { + "unsafeName": "Default", + "safeName": "Default" + } + }, + "url": "https://api.example.com", + "docs": null + } + ] + } + }, + "variables": null, + "generatorConfig": null +} \ No newline at end of file diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof-inline.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof-inline.json new file mode 100644 index 000000000000..8e2274e0813e --- /dev/null +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof-inline.json @@ -0,0 +1,8411 @@ +{ + "selfHosted": false, + "fdrApiDefinitionId": null, + "apiVersion": null, + "apiName": "api", + "apiDisplayName": "allOf Composition", + "apiDocs": null, + "auth": { + "requirement": "ALL", + "schemes": [], + "docs": null + }, + "headers": [], + "idempotencyHeaders": [], + "types": { + "type_:PaginatedResult": { + "inline": null, + "name": { + "name": "PaginatedResult", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PaginatedResult" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "unknown" + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:PagingCursors" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:PagingCursors": { + "inline": null, + "name": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "next", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Cursor for the next page of results." + }, + { + "name": "previous", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Cursor for the previous page of results." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleExecutionContext": { + "inline": null, + "name": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "prod", + "availability": null, + "docs": null + }, + { + "name": "staging", + "availability": null, + "docs": null + }, + { + "name": "dev", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": "Execution environment for a rule." + }, + "type_:AuditInfo": { + "inline": null, + "name": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "createdBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who created this resource." + }, + { + "name": "createdDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was created." + }, + { + "name": "modifiedBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who last modified this resource." + }, + { + "name": "modifiedDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was last modified." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": "Common audit metadata." + }, + "type_:RuleType": { + "inline": null, + "name": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "description", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleTypeSearchResponse": { + "inline": null, + "name": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:PagingCursors", + "type_:RuleType" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:User": { + "inline": null, + "name": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "email", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": { + "format": "email", + "pattern": null, + "minLength": null, + "maxLength": null + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:UserSearchResponse": { + "inline": null, + "name": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:PagingCursors", + "type_:User" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleResponseStatus": { + "inline": true, + "name": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "active", + "availability": null, + "docs": null + }, + { + "name": "inactive", + "availability": null, + "docs": null + }, + { + "name": "draft", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleResponse": { + "inline": null, + "name": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "createdBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who created this resource." + }, + { + "name": "createdDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was created." + }, + { + "name": "modifiedBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who last modified this resource." + }, + { + "name": "modifiedDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was last modified." + }, + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "status", + "valueType": { + "_type": "named", + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "executionContext", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:RuleResponseStatus", + "type_:RuleExecutionContext" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Identifiable": { + "inline": null, + "name": { + "name": "Identifiable", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Identifiable" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Unique identifier." + }, + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Identifiable." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Describable": { + "inline": null, + "name": { + "name": "Describable", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Describable" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Describable." + }, + { + "name": "summary", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "A short summary." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:CombinedEntityStatus": { + "inline": true, + "name": { + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "active", + "availability": null, + "docs": null + }, + { + "name": "archived", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:CombinedEntity": { + "inline": null, + "name": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Unique identifier." + }, + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Describable." + }, + { + "name": "summary", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "A short summary." + }, + { + "name": "status", + "valueType": { + "_type": "named", + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:CombinedEntityStatus" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:BaseOrgMetadata": { + "inline": true, + "name": { + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "region", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Deployment region from BaseOrg." + }, + { + "name": "tier", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Subscription tier." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:BaseOrg": { + "inline": null, + "name": { + "name": "BaseOrg", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrg" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:BaseOrgMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:DetailedOrgMetadata": { + "inline": true, + "name": { + "name": "DetailedOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrgMetadata" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "region", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Deployment region from DetailedOrg." + }, + { + "name": "domain", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Custom domain name." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:DetailedOrg": { + "inline": null, + "name": { + "name": "DetailedOrg", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrg" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "DetailedOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrgMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:DetailedOrgMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:OrganizationMetadata": { + "inline": true, + "name": { + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "region", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Deployment region from DetailedOrg." + }, + { + "name": "domain", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Custom domain name." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Organization": { + "inline": null, + "name": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:OrganizationMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "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_.searchRuleTypes", + "name": "searchRuleTypes", + "displayName": "Search rule types with paginated results", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/rule-types", + "parts": [] + }, + "fullPath": { + "head": "rule-types", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [ + { + "name": "query", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "allowMultiple": false, + "clientDefault": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "explode": null, + "availability": null, + "docs": null + } + ], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": { + "shape": { + "type": "wrapper", + "wrapperName": "SearchRuleTypesRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false + }, + "requestParameterName": "request", + "streamParameter": null + }, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse", + "default": null, + "inline": null + }, + "docs": "Paginated list of rule types", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Paginated list of rule types" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "b6434d4c", + "name": null, + "url": "/rule-types", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "paging", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "previous", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "results", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "description", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + } + ], + "itemType": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "b2c39ee3", + "url": "/rule-types", + "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": "paging", + "originalTypeDeclaration": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "propertyAccess": null + }, + { + "name": "previous", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "propertyAccess": null + }, + { + "name": "results", + "originalTypeDeclaration": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "description", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + }, + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "description", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + } + ], + "itemType": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ] + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.createRule", + "name": "createRule", + "displayName": "Create a rule with constrained execution context", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "POST", + "basePath": null, + "path": { + "head": "/rules", + "parts": [] + }, + "fullPath": { + "head": "rules", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": { + "type": "inlinedRequestBody", + "name": "RuleCreateRequest", + "extends": [], + "properties": [ + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "propertyAccess": null, + "availability": null, + "docs": null + }, + { + "name": "executionContext", + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "propertyAccess": null, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [], + "docs": null, + "v2Examples": null, + "contentType": "application/json" + }, + "v2RequestBodies": null, + "sdkRequest": { + "shape": { + "type": "wrapper", + "wrapperName": "RuleCreateRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false + }, + "requestParameterName": "request", + "streamParameter": null + }, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse", + "default": null, + "inline": null + }, + "docs": "Created rule", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Created rule" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "c1cf878e", + "name": null, + "url": "/rules", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": { + "type": "inlinedRequestBody", + "properties": [ + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": null + }, + { + "name": "executionContext", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleExecutionContext", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "prod" + } + }, + "jsonExample": "prod" + }, + "originalTypeDeclaration": null + } + ], + "extraProperties": null, + "jsonExample": { + "name": "name", + "executionContext": "prod" + } + }, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "createdBy", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "createdBy" + } + } + }, + "jsonExample": "createdBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "createdBy" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "createdDateTime", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedBy", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "modifiedBy" + } + } + }, + "jsonExample": "modifiedBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "modifiedBy" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedDateTime", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "status", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponseStatus", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "active" + } + }, + "jsonExample": "active" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "executionContext", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleExecutionContext", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "prod" + } + }, + "jsonExample": "prod" + }, + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "jsonExample": "prod" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "createdBy": "createdBy", + "createdDateTime": "2024-01-15T09:30:00Z", + "modifiedBy": "modifiedBy", + "modifiedDateTime": "2024-01-15T09:30:00Z", + "id": "id", + "name": "name", + "status": "active", + "executionContext": "prod" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "e09bf9ea", + "url": "/rules", + "name": null, + "endpointHeaders": [], + "endpointPathParameters": [], + "queryParameters": [], + "servicePathParameters": [], + "serviceHeaders": [], + "rootPathParameters": [], + "request": { + "type": "inlinedRequestBody", + "properties": [ + { + "name": "name", + "originalTypeDeclaration": null, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + } + }, + { + "name": "executionContext", + "originalTypeDeclaration": null, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "prod" + }, + "typeName": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + } + }, + "jsonExample": "prod" + } + } + ], + "extraProperties": null, + "jsonExample": { + "name": "name", + "executionContext": "prod" + } + }, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "createdBy", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "createdBy" + } + } + }, + "jsonExample": "createdBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "createdBy" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "createdDateTime", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedBy", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "modifiedBy" + } + } + }, + "jsonExample": "modifiedBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "modifiedBy" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedDateTime", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "status", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "active" + }, + "typeName": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus" + } + }, + "jsonExample": "active" + }, + "propertyAccess": null + }, + { + "name": "executionContext", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "prod" + }, + "typeName": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + } + }, + "jsonExample": "prod" + }, + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "jsonExample": "prod" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + } + }, + "jsonExample": { + "createdBy": "createdBy", + "createdDateTime": "2024-01-15T09:30:00Z", + "modifiedBy": "modifiedBy", + "modifiedDateTime": "2024-01-15T09:30:00Z", + "id": "id", + "name": "name", + "status": "active", + "executionContext": "prod" + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.listUsers", + "name": "listUsers", + "displayName": "List users with paginated results", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/users", + "parts": [] + }, + "fullPath": { + "head": "users", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse", + "default": null, + "inline": null + }, + "docs": "Paginated list of users", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Paginated list of users" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "55942cbc", + "name": null, + "url": "/users", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "paging", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "previous", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "results", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "email", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "originalTypeDeclaration": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + } + ], + "itemType": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + } + ] + }, + "originalTypeDeclaration": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "email": "email" + } + ] + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "e7c56b0b", + "url": "/users", + "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": "paging", + "originalTypeDeclaration": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "propertyAccess": null + }, + { + "name": "previous", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "propertyAccess": null + }, + { + "name": "results", + "originalTypeDeclaration": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "email", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + }, + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "email", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + } + ], + "itemType": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ] + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ] + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.getEntity", + "name": "getEntity", + "displayName": "Get an entity that combines multiple parents", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/entities", + "parts": [] + }, + "fullPath": { + "head": "entities", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity", + "default": null, + "inline": null + }, + "docs": "An entity with properties from multiple parents", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "An entity with properties from multiple parents" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "b2b07150", + "name": null, + "url": "/entities", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "summary", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "summary" + } + } + }, + "jsonExample": "summary" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "summary" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "status", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntityStatus", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "active" + } + }, + "jsonExample": "active" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "summary": "summary", + "status": "active" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "54665e53", + "url": "/entities", + "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": "id", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "summary", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "summary" + } + } + }, + "jsonExample": "summary" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "summary" + }, + "propertyAccess": null + }, + { + "name": "status", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "active" + }, + "typeName": { + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus" + } + }, + "jsonExample": "active" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "summary": "summary", + "status": "active" + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.getOrganization", + "name": "getOrganization", + "displayName": "Get an organization with merged object-typed properties", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/organizations", + "parts": [] + }, + "fullPath": { + "head": "organizations", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization", + "default": null, + "inline": null + }, + "docs": "An organization whose metadata is merged from two parents", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "An organization whose metadata is merged from two parents" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "dfb0bc71", + "name": null, + "url": "/organizations", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "metadata", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "OrganizationMetadata", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "region", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "region" + } + } + }, + "jsonExample": "region" + }, + "originalTypeDeclaration": { + "typeId": "type_:OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "OrganizationMetadata", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "domain", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "domain" + } + } + }, + "jsonExample": "domain" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "domain" + }, + "originalTypeDeclaration": { + "typeId": "type_:OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "OrganizationMetadata", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "region": "region", + "domain": "domain" + } + }, + "valueType": { + "_type": "named", + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata", + "default": null, + "inline": null + } + } + }, + "jsonExample": { + "region": "region", + "domain": "domain" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "metadata": { + "region": "region", + "domain": "domain" + }, + "name": "name" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "ce204bc0", + "url": "/organizations", + "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": "id", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "metadata", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "region", + "originalTypeDeclaration": { + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "region" + } + } + }, + "jsonExample": "region" + }, + "propertyAccess": null + }, + { + "name": "domain", + "originalTypeDeclaration": { + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "domain" + } + } + }, + "jsonExample": "domain" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "domain" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata" + } + }, + "jsonExample": { + "region": "region", + "domain": "domain" + } + }, + "valueType": { + "_type": "named", + "name": "OrganizationMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:OrganizationMetadata", + "default": null, + "inline": null + } + } + }, + "jsonExample": { + "region": "region", + "domain": "domain" + } + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + } + }, + "jsonExample": { + "id": "id", + "metadata": { + "region": "region", + "domain": "domain" + }, + "name": "name" + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + } + ], + "audiences": null + } + }, + "constants": { + "errorInstanceIdKey": "errorInstanceId" + }, + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": "Default", + "url": "https://api.example.com", + "audiences": null, + "defaultUrl": null, + "urlTemplate": null, + "urlVariables": null, + "docs": null + } + ] + } + }, + "errorDiscriminationStrategy": { + "type": "statusCode" + }, + "basePath": null, + "pathParameters": [], + "variables": [], + "serviceTypeReferenceInfo": { + "typesReferencedOnlyByService": { + "service_": [ + "type_:PagingCursors", + "type_:RuleExecutionContext", + "type_:RuleType", + "type_:RuleTypeSearchResponse", + "type_:User", + "type_:UserSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse", + "type_:CombinedEntityStatus", + "type_:CombinedEntity", + "type_:OrganizationMetadata", + "type_:Organization" + ] + }, + "sharedTypes": [ + "type_:PaginatedResult", + "type_:AuditInfo", + "type_:Identifiable", + "type_:Describable", + "type_:BaseOrgMetadata", + "type_:BaseOrg", + "type_:DetailedOrgMetadata", + "type_:DetailedOrg" + ] + }, + "webhookGroups": {}, + "websocketChannels": {}, + "readmeConfig": null, + "sourceConfig": null, + "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:PaginatedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "PaginatedResult", + "camelCase": { + "unsafeName": "paginatedResult", + "safeName": "paginatedResult" + }, + "snakeCase": { + "unsafeName": "paginated_result", + "safeName": "paginated_result" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATED_RESULT", + "safeName": "PAGINATED_RESULT" + }, + "pascalCase": { + "unsafeName": "PaginatedResult", + "safeName": "PaginatedResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "list", + "value": { + "type": "unknown" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:PagingCursors": { + "type": "object", + "declaration": { + "name": { + "originalName": "PagingCursors", + "camelCase": { + "unsafeName": "pagingCursors", + "safeName": "pagingCursors" + }, + "snakeCase": { + "unsafeName": "paging_cursors", + "safeName": "paging_cursors" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING_CURSORS", + "safeName": "PAGING_CURSORS" + }, + "pascalCase": { + "unsafeName": "PagingCursors", + "safeName": "PagingCursors" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "next", + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "previous", + "name": { + "originalName": "previous", + "camelCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "snakeCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "screamingSnakeCase": { + "unsafeName": "PREVIOUS", + "safeName": "PREVIOUS" + }, + "pascalCase": { + "unsafeName": "Previous", + "safeName": "Previous" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleExecutionContext": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleExecutionContext", + "camelCase": { + "unsafeName": "ruleExecutionContext", + "safeName": "ruleExecutionContext" + }, + "snakeCase": { + "unsafeName": "rule_execution_context", + "safeName": "rule_execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_EXECUTION_CONTEXT", + "safeName": "RULE_EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "RuleExecutionContext", + "safeName": "RuleExecutionContext" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "prod", + "name": { + "originalName": "prod", + "camelCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "snakeCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "screamingSnakeCase": { + "unsafeName": "PROD", + "safeName": "PROD" + }, + "pascalCase": { + "unsafeName": "Prod", + "safeName": "Prod" + } + } + }, + { + "wireValue": "staging", + "name": { + "originalName": "staging", + "camelCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "snakeCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "screamingSnakeCase": { + "unsafeName": "STAGING", + "safeName": "STAGING" + }, + "pascalCase": { + "unsafeName": "Staging", + "safeName": "Staging" + } + } + }, + { + "wireValue": "dev", + "name": { + "originalName": "dev", + "camelCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "snakeCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "screamingSnakeCase": { + "unsafeName": "DEV", + "safeName": "DEV" + }, + "pascalCase": { + "unsafeName": "Dev", + "safeName": "Dev" + } + } + } + ] + }, + "type_:AuditInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "AuditInfo", + "camelCase": { + "unsafeName": "auditInfo", + "safeName": "auditInfo" + }, + "snakeCase": { + "unsafeName": "audit_info", + "safeName": "audit_info" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_INFO", + "safeName": "AUDIT_INFO" + }, + "pascalCase": { + "unsafeName": "AuditInfo", + "safeName": "AuditInfo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleType", + "camelCase": { + "unsafeName": "ruleType", + "safeName": "ruleType" + }, + "snakeCase": { + "unsafeName": "rule_type", + "safeName": "rule_type" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE", + "safeName": "RULE_TYPE" + }, + "pascalCase": { + "unsafeName": "RuleType", + "safeName": "RuleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "description", + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleTypeSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleTypeSearchResponse", + "camelCase": { + "unsafeName": "ruleTypeSearchResponse", + "safeName": "ruleTypeSearchResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_search_response", + "safeName": "rule_type_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_SEARCH_RESPONSE", + "safeName": "RULE_TYPE_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeSearchResponse", + "safeName": "RuleTypeSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:RuleType" + } + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "email", + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:UserSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserSearchResponse", + "camelCase": { + "unsafeName": "userSearchResponse", + "safeName": "userSearchResponse" + }, + "snakeCase": { + "unsafeName": "user_search_response", + "safeName": "user_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "USER_SEARCH_RESPONSE", + "safeName": "USER_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UserSearchResponse", + "safeName": "UserSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:User" + } + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleResponseStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleResponseStatus", + "camelCase": { + "unsafeName": "ruleResponseStatus", + "safeName": "ruleResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_response_status", + "safeName": "rule_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE_STATUS", + "safeName": "RULE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleResponseStatus", + "safeName": "RuleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + }, + { + "wireValue": "draft", + "name": { + "originalName": "draft", + "camelCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "snakeCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "screamingSnakeCase": { + "unsafeName": "DRAFT", + "safeName": "DRAFT" + }, + "pascalCase": { + "unsafeName": "Draft", + "safeName": "Draft" + } + } + } + ] + }, + "type_:RuleResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleResponse", + "camelCase": { + "unsafeName": "ruleResponse", + "safeName": "ruleResponse" + }, + "snakeCase": { + "unsafeName": "rule_response", + "safeName": "rule_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE", + "safeName": "RULE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleResponse", + "safeName": "RuleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleResponseStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:RuleExecutionContext" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Identifiable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifiable", + "camelCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "snakeCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIABLE", + "safeName": "IDENTIFIABLE" + }, + "pascalCase": { + "unsafeName": "Identifiable", + "safeName": "Identifiable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Describable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Describable", + "camelCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "snakeCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBABLE", + "safeName": "DESCRIBABLE" + }, + "pascalCase": { + "unsafeName": "Describable", + "safeName": "Describable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:CombinedEntityStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "CombinedEntityStatus", + "camelCase": { + "unsafeName": "combinedEntityStatus", + "safeName": "combinedEntityStatus" + }, + "snakeCase": { + "unsafeName": "combined_entity_status", + "safeName": "combined_entity_status" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY_STATUS", + "safeName": "COMBINED_ENTITY_STATUS" + }, + "pascalCase": { + "unsafeName": "CombinedEntityStatus", + "safeName": "CombinedEntityStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "archived", + "name": { + "originalName": "archived", + "camelCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "snakeCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "screamingSnakeCase": { + "unsafeName": "ARCHIVED", + "safeName": "ARCHIVED" + }, + "pascalCase": { + "unsafeName": "Archived", + "safeName": "Archived" + } + } + } + ] + }, + "type_:CombinedEntity": { + "type": "object", + "declaration": { + "name": { + "originalName": "CombinedEntity", + "camelCase": { + "unsafeName": "combinedEntity", + "safeName": "combinedEntity" + }, + "snakeCase": { + "unsafeName": "combined_entity", + "safeName": "combined_entity" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY", + "safeName": "COMBINED_ENTITY" + }, + "pascalCase": { + "unsafeName": "CombinedEntity", + "safeName": "CombinedEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:CombinedEntityStatus" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrgMetadata", + "camelCase": { + "unsafeName": "baseOrgMetadata", + "safeName": "baseOrgMetadata" + }, + "snakeCase": { + "unsafeName": "base_org_metadata", + "safeName": "base_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG_METADATA", + "safeName": "BASE_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "BaseOrgMetadata", + "safeName": "BaseOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "tier", + "name": { + "originalName": "tier", + "camelCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "snakeCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "screamingSnakeCase": { + "unsafeName": "TIER", + "safeName": "TIER" + }, + "pascalCase": { + "unsafeName": "Tier", + "safeName": "Tier" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrg", + "camelCase": { + "unsafeName": "baseOrg", + "safeName": "baseOrg" + }, + "snakeCase": { + "unsafeName": "base_org", + "safeName": "base_org" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG", + "safeName": "BASE_ORG" + }, + "pascalCase": { + "unsafeName": "BaseOrg", + "safeName": "BaseOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrgMetadata", + "camelCase": { + "unsafeName": "detailedOrgMetadata", + "safeName": "detailedOrgMetadata" + }, + "snakeCase": { + "unsafeName": "detailed_org_metadata", + "safeName": "detailed_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG_METADATA", + "safeName": "DETAILED_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "DetailedOrgMetadata", + "safeName": "DetailedOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrg", + "camelCase": { + "unsafeName": "detailedOrg", + "safeName": "detailedOrg" + }, + "snakeCase": { + "unsafeName": "detailed_org", + "safeName": "detailed_org" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG", + "safeName": "DETAILED_ORG" + }, + "pascalCase": { + "unsafeName": "DetailedOrg", + "safeName": "DetailedOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:DetailedOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:OrganizationMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "OrganizationMetadata", + "camelCase": { + "unsafeName": "organizationMetadata", + "safeName": "organizationMetadata" + }, + "snakeCase": { + "unsafeName": "organization_metadata", + "safeName": "organization_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "ORGANIZATION_METADATA", + "safeName": "ORGANIZATION_METADATA" + }, + "pascalCase": { + "unsafeName": "OrganizationMetadata", + "safeName": "OrganizationMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:OrganizationMetadata" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + } + }, + "headers": [], + "endpoints": { + "endpoint_.searchRuleTypes": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchRuleTypes", + "camelCase": { + "unsafeName": "searchRuleTypes", + "safeName": "searchRuleTypes" + }, + "snakeCase": { + "unsafeName": "search_rule_types", + "safeName": "search_rule_types" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES", + "safeName": "SEARCH_RULE_TYPES" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypes", + "safeName": "SearchRuleTypes" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/rule-types" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchRuleTypesRequest", + "camelCase": { + "unsafeName": "searchRuleTypesRequest", + "safeName": "searchRuleTypesRequest" + }, + "snakeCase": { + "unsafeName": "search_rule_types_request", + "safeName": "search_rule_types_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES_REQUEST", + "safeName": "SEARCH_RULE_TYPES_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypesRequest", + "safeName": "SearchRuleTypesRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "wireValue": "query", + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.createRule": { + "auth": null, + "declaration": { + "name": { + "originalName": "createRule", + "camelCase": { + "unsafeName": "createRule", + "safeName": "createRule" + }, + "snakeCase": { + "unsafeName": "create_rule", + "safeName": "create_rule" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RULE", + "safeName": "CREATE_RULE" + }, + "pascalCase": { + "unsafeName": "CreateRule", + "safeName": "CreateRule" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/rules" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RuleCreateRequest", + "camelCase": { + "unsafeName": "ruleCreateRequest", + "safeName": "ruleCreateRequest" + }, + "snakeCase": { + "unsafeName": "rule_create_request", + "safeName": "rule_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_CREATE_REQUEST", + "safeName": "RULE_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "RuleCreateRequest", + "safeName": "RuleCreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleExecutionContext" + }, + "propertyAccess": null, + "variable": null + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.listUsers": { + "auth": null, + "declaration": { + "name": { + "originalName": "listUsers", + "camelCase": { + "unsafeName": "listUsers", + "safeName": "listUsers" + }, + "snakeCase": { + "unsafeName": "list_users", + "safeName": "list_users" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS", + "safeName": "LIST_USERS" + }, + "pascalCase": { + "unsafeName": "ListUsers", + "safeName": "ListUsers" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.getEntity": { + "auth": null, + "declaration": { + "name": { + "originalName": "getEntity", + "camelCase": { + "unsafeName": "getEntity", + "safeName": "getEntity" + }, + "snakeCase": { + "unsafeName": "get_entity", + "safeName": "get_entity" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ENTITY", + "safeName": "GET_ENTITY" + }, + "pascalCase": { + "unsafeName": "GetEntity", + "safeName": "GetEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/entities" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.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": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/organizations" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + } + }, + "pathParameters": [], + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": { + "originalName": "Default", + "camelCase": { + "unsafeName": "default", + "safeName": "default" + }, + "snakeCase": { + "unsafeName": "default", + "safeName": "default" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT", + "safeName": "DEFAULT" + }, + "pascalCase": { + "unsafeName": "Default", + "safeName": "Default" + } + }, + "url": "https://api.example.com", + "docs": null + } + ] + } + }, + "variables": null, + "generatorConfig": null + }, + "audiences": null, + "generationMetadata": null, + "apiPlayground": true, + "casingsConfig": { + "generationLanguage": null, + "keywords": null, + "smartCasing": true + }, + "subpackages": {}, + "rootPackage": { + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "websocket": null, + "service": "service_", + "types": [ + "type_:PaginatedResult", + "type_:PagingCursors", + "type_:RuleExecutionContext", + "type_:AuditInfo", + "type_:RuleType", + "type_:RuleTypeSearchResponse", + "type_:User", + "type_:UserSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse", + "type_:Identifiable", + "type_:Describable", + "type_:CombinedEntityStatus", + "type_:CombinedEntity", + "type_:BaseOrgMetadata", + "type_:BaseOrg", + "type_:DetailedOrgMetadata", + "type_:DetailedOrg", + "type_:OrganizationMetadata", + "type_:Organization" + ], + "errors": [], + "subpackages": [], + "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 + } + } +} \ No newline at end of file diff --git a/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof.json b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof.json new file mode 100644 index 000000000000..8d8a67d109d9 --- /dev/null +++ b/packages/cli/generation/ir-generator-tests/src/ir/__test__/test-definitions/allof.json @@ -0,0 +1,8248 @@ +{ + "selfHosted": false, + "fdrApiDefinitionId": null, + "apiVersion": null, + "apiName": "api", + "apiDisplayName": "allOf Composition", + "apiDocs": null, + "auth": { + "requirement": "ALL", + "schemes": [], + "docs": null + }, + "headers": [], + "idempotencyHeaders": [], + "types": { + "type_:PaginatedResult": { + "inline": null, + "name": { + "name": "PaginatedResult", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PaginatedResult" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "unknown" + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:PagingCursors" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:PagingCursors": { + "inline": null, + "name": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "next", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Cursor for the next page of results." + }, + { + "name": "previous", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Cursor for the previous page of results." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleExecutionContext": { + "inline": null, + "name": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "prod", + "availability": null, + "docs": null + }, + { + "name": "staging", + "availability": null, + "docs": null + }, + { + "name": "dev", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": "Execution environment for a rule." + }, + "type_:AuditInfo": { + "inline": null, + "name": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "createdBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who created this resource." + }, + { + "name": "createdDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was created." + }, + { + "name": "modifiedBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who last modified this resource." + }, + { + "name": "modifiedDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was last modified." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": "Common audit metadata." + }, + "type_:RuleType": { + "inline": null, + "name": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "description", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleTypeSearchResponse": { + "inline": null, + "name": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + }, + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:RuleType", + "type_:PagingCursors" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:User": { + "inline": null, + "name": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "email", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": { + "format": "email", + "pattern": null, + "minLength": null, + "maxLength": null + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:UserSearchResponse": { + "inline": null, + "name": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "results", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Current page of results from the requested resource." + }, + { + "name": "paging", + "valueType": { + "_type": "named", + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:User", + "type_:PagingCursors" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleResponseStatus": { + "inline": true, + "name": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "active", + "availability": null, + "docs": null + }, + { + "name": "inactive", + "availability": null, + "docs": null + }, + { + "name": "draft", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:RuleResponse": { + "inline": null, + "name": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "shape": { + "_type": "object", + "extends": [ + { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + } + ], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "status", + "valueType": { + "_type": "named", + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "executionContext", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [ + { + "name": "createdBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who created this resource." + }, + { + "name": "createdDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was created." + }, + { + "name": "modifiedBy", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "The user who last modified this resource." + }, + { + "name": "modifiedDateTime", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "propertyAccess": "READ_ONLY", + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "When this resource was last modified." + } + ] + }, + "referencedTypes": [ + "type_:AuditInfo", + "type_:RuleResponseStatus", + "type_:RuleExecutionContext" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Identifiable": { + "inline": null, + "name": { + "name": "Identifiable", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Identifiable" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Unique identifier." + }, + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Identifiable." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Describable": { + "inline": null, + "name": { + "name": "Describable", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Describable" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Describable." + }, + { + "name": "summary", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "A short summary." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:CombinedEntityStatus": { + "inline": true, + "name": { + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus" + }, + "shape": { + "_type": "enum", + "default": null, + "values": [ + { + "name": "active", + "availability": null, + "docs": null + }, + { + "name": "archived", + "availability": null, + "docs": null + } + ], + "forwardCompatible": null + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:CombinedEntity": { + "inline": null, + "name": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "status", + "valueType": { + "_type": "named", + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus", + "default": null, + "inline": null + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Unique identifier." + }, + { + "name": "name", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Display name from Identifiable." + }, + { + "name": "summary", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "A short summary." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:CombinedEntityStatus" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:BaseOrgMetadata": { + "inline": true, + "name": { + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "region", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Deployment region from BaseOrg." + }, + { + "name": "tier", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Subscription tier." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:BaseOrg": { + "inline": null, + "name": { + "name": "BaseOrg", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrg" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:BaseOrgMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:DetailedOrgMetadata": { + "inline": true, + "name": { + "name": "DetailedOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrgMetadata" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "region", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Deployment region from DetailedOrg." + }, + { + "name": "domain", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": "Custom domain name." + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:DetailedOrg": { + "inline": null, + "name": { + "name": "DetailedOrg", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrg" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "DetailedOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:DetailedOrgMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:DetailedOrgMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "availability": null, + "docs": null + }, + "type_:Organization": { + "inline": null, + "name": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "shape": { + "_type": "object", + "extends": [], + "properties": [ + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "id", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + }, + { + "name": "metadata", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "named", + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata", + "default": null, + "inline": null + } + } + }, + "propertyAccess": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [] + }, + "referencedTypes": [ + "type_:BaseOrgMetadata" + ], + "encoding": { + "json": {}, + "proto": null + }, + "source": null, + "userProvidedExamples": [], + "autogeneratedExamples": [], + "v2Examples": null, + "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_.searchRuleTypes", + "name": "searchRuleTypes", + "displayName": "Search rule types with paginated results", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/rule-types", + "parts": [] + }, + "fullPath": { + "head": "rule-types", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [ + { + "name": "query", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "allowMultiple": false, + "clientDefault": null, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "explode": null, + "availability": null, + "docs": null + } + ], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": { + "shape": { + "type": "wrapper", + "wrapperName": "SearchRuleTypesRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false + }, + "requestParameterName": "request", + "streamParameter": null + }, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse", + "default": null, + "inline": null + }, + "docs": "Paginated list of rule types", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Paginated list of rule types" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "b6434d4c", + "name": null, + "url": "/rule-types", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "paging", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "previous", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "results", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "description", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleType", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + } + ], + "itemType": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleTypeSearchResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "name": "name", + "description": "description" + } + ] + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "fa817ef7", + "url": "/rule-types", + "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": "results", + "originalTypeDeclaration": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "description", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + }, + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "description", + "originalTypeDeclaration": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "description" + } + } + }, + "jsonExample": "description" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "description" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "description": "description" + } + } + ], + "itemType": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "RuleType", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleType", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ] + }, + "propertyAccess": null + }, + { + "name": "paging", + "originalTypeDeclaration": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "propertyAccess": null + }, + { + "name": "previous", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleTypeSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleTypeSearchResponse" + } + }, + "jsonExample": { + "results": [ + { + "id": "id", + "name": "name", + "description": "description" + }, + { + "id": "id", + "name": "name", + "description": "description" + } + ], + "paging": { + "next": "next", + "previous": "previous" + } + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.createRule", + "name": "createRule", + "displayName": "Create a rule with constrained execution context", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "POST", + "basePath": null, + "path": { + "head": "/rules", + "parts": [] + }, + "fullPath": { + "head": "rules", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": { + "type": "inlinedRequestBody", + "name": "RuleCreateRequest", + "extends": [], + "properties": [ + { + "name": "name", + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "propertyAccess": null, + "availability": null, + "docs": null + }, + { + "name": "executionContext", + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + }, + "v2Examples": { + "userSpecifiedExamples": {}, + "autogeneratedExamples": {} + }, + "propertyAccess": null, + "availability": null, + "docs": null + } + ], + "extra-properties": false, + "extendedProperties": [], + "docs": null, + "v2Examples": null, + "contentType": "application/json" + }, + "v2RequestBodies": null, + "sdkRequest": { + "shape": { + "type": "wrapper", + "wrapperName": "RuleCreateRequest", + "bodyKey": "body", + "includePathParameters": false, + "onlyPathParameters": false + }, + "requestParameterName": "request", + "streamParameter": null + }, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse", + "default": null, + "inline": null + }, + "docs": "Created rule", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Created rule" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "c1cf878e", + "name": null, + "url": "/rules", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": { + "type": "inlinedRequestBody", + "properties": [ + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": null + }, + { + "name": "executionContext", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleExecutionContext", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "prod" + } + }, + "jsonExample": "prod" + }, + "originalTypeDeclaration": null + } + ], + "extraProperties": null, + "jsonExample": { + "name": "name", + "executionContext": "prod" + } + }, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "createdBy", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "createdBy" + } + } + }, + "jsonExample": "createdBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "createdBy" + }, + "originalTypeDeclaration": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "createdDateTime", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "originalTypeDeclaration": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedBy", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "modifiedBy" + } + } + }, + "jsonExample": "modifiedBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "modifiedBy" + }, + "originalTypeDeclaration": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedDateTime", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "originalTypeDeclaration": { + "name": "AuditInfo", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:AuditInfo" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "status", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponseStatus", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "active" + } + }, + "jsonExample": "active" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "executionContext", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleExecutionContext", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "prod" + } + }, + "jsonExample": "prod" + }, + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "jsonExample": "prod" + }, + "originalTypeDeclaration": { + "typeId": "type_:RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "RuleResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "createdBy": "createdBy", + "createdDateTime": "2024-01-15T09:30:00Z", + "modifiedBy": "modifiedBy", + "modifiedDateTime": "2024-01-15T09:30:00Z", + "id": "id", + "name": "name", + "status": "active", + "executionContext": "prod" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "4c8a497e", + "url": "/rules", + "name": null, + "endpointHeaders": [], + "endpointPathParameters": [], + "queryParameters": [], + "servicePathParameters": [], + "serviceHeaders": [], + "rootPathParameters": [], + "request": { + "type": "inlinedRequestBody", + "properties": [ + { + "name": "name", + "originalTypeDeclaration": null, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + } + }, + { + "name": "executionContext", + "originalTypeDeclaration": null, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "prod" + }, + "typeName": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + } + }, + "jsonExample": "prod" + } + } + ], + "extraProperties": null, + "jsonExample": { + "name": "name", + "executionContext": "prod" + } + }, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "status", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "active" + }, + "typeName": { + "name": "RuleResponseStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponseStatus" + } + }, + "jsonExample": "active" + }, + "propertyAccess": null + }, + { + "name": "executionContext", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "prod" + }, + "typeName": { + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext" + } + }, + "jsonExample": "prod" + }, + "valueType": { + "_type": "named", + "name": "RuleExecutionContext", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleExecutionContext", + "default": null, + "inline": null + } + } + }, + "jsonExample": "prod" + }, + "propertyAccess": null + }, + { + "name": "createdBy", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "createdBy" + } + } + }, + "jsonExample": "createdBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "createdBy" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "createdDateTime", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedBy", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "modifiedBy" + } + } + }, + "jsonExample": "modifiedBy" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "modifiedBy" + }, + "propertyAccess": "READ_ONLY" + }, + { + "name": "modifiedDateTime", + "originalTypeDeclaration": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "datetime", + "datetime": "2024-01-15T09:30:00.000Z", + "raw": "2024-01-15T09:30:00Z" + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "DATE_TIME", + "v2": null + } + } + } + }, + "jsonExample": "2024-01-15T09:30:00Z" + }, + "propertyAccess": "READ_ONLY" + } + ], + "extraProperties": null + }, + "typeName": { + "name": "RuleResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:RuleResponse" + } + }, + "jsonExample": { + "id": "id", + "name": "name", + "status": "active", + "executionContext": "prod", + "createdBy": "createdBy", + "createdDateTime": "2024-01-15T09:30:00Z", + "modifiedBy": "modifiedBy", + "modifiedDateTime": "2024-01-15T09:30:00Z" + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.listUsers", + "name": "listUsers", + "displayName": "List users with paginated results", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/users", + "parts": [] + }, + "fullPath": { + "head": "users", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse", + "default": null, + "inline": null + }, + "docs": "Paginated list of users", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "Paginated list of users" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "55942cbc", + "name": null, + "url": "/users", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "paging", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "previous", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "originalTypeDeclaration": { + "typeId": "type_:PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "PagingCursors", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "results", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "email", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "originalTypeDeclaration": { + "typeId": "type_:User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "User", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + } + ], + "itemType": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + } + ] + }, + "originalTypeDeclaration": { + "typeId": "type_:UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "UserSearchResponse", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "paging": { + "next": "next", + "previous": "previous" + }, + "results": [ + { + "id": "id", + "email": "email" + } + ] + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "53509ec7", + "url": "/users", + "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": "results", + "originalTypeDeclaration": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "container", + "container": { + "type": "list", + "list": [ + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "email", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + }, + { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "id", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "email", + "originalTypeDeclaration": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "email" + } + } + }, + "jsonExample": "email" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User" + } + }, + "jsonExample": { + "id": "id", + "email": "email" + } + } + ], + "itemType": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ] + }, + "valueType": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "named", + "name": "User", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:User", + "default": null, + "inline": null + } + } + } + } + }, + "jsonExample": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ] + }, + "propertyAccess": null + }, + { + "name": "paging", + "originalTypeDeclaration": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "next", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "next" + } + } + }, + "jsonExample": "next" + }, + "propertyAccess": null + }, + { + "name": "previous", + "originalTypeDeclaration": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "previous" + } + } + }, + "jsonExample": "previous" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "previous" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "PagingCursors", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:PagingCursors" + } + }, + "jsonExample": { + "next": "next", + "previous": "previous" + } + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "UserSearchResponse", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:UserSearchResponse" + } + }, + "jsonExample": { + "results": [ + { + "id": "id", + "email": "email" + }, + { + "id": "id", + "email": "email" + } + ], + "paging": { + "next": "next", + "previous": "previous" + } + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.getEntity", + "name": "getEntity", + "displayName": "Get an entity that combines multiple parents", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/entities", + "parts": [] + }, + "fullPath": { + "head": "entities", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity", + "default": null, + "inline": null + }, + "docs": "An entity with properties from multiple parents", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "An entity with properties from multiple parents" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "b2b07150", + "name": null, + "url": "/entities", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "name", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "summary", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "summary" + } + } + }, + "jsonExample": "summary" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "summary" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "status", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntityStatus", + "displayName": null + }, + "shape": { + "type": "enum", + "value": "active" + } + }, + "jsonExample": "active" + }, + "originalTypeDeclaration": { + "typeId": "type_:CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "CombinedEntity", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "name": "name", + "summary": "summary", + "id": "id", + "status": "active" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "dc0a034f", + "url": "/entities", + "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": "status", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "named", + "shape": { + "type": "enum", + "value": "active" + }, + "typeName": { + "name": "CombinedEntityStatus", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntityStatus" + } + }, + "jsonExample": "active" + }, + "propertyAccess": null + }, + { + "name": "id", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "name", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "summary", + "originalTypeDeclaration": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "summary" + } + } + }, + "jsonExample": "summary" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "summary" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "CombinedEntity", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:CombinedEntity" + } + }, + "jsonExample": { + "status": "active", + "id": "id", + "name": "name", + "summary": "summary" + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + }, + { + "id": "endpoint_.getOrganization", + "name": "getOrganization", + "displayName": "Get an organization with merged object-typed properties", + "auth": false, + "security": null, + "idempotent": false, + "baseUrl": null, + "v2BaseUrls": null, + "method": "GET", + "basePath": null, + "path": { + "head": "/organizations", + "parts": [] + }, + "fullPath": { + "head": "organizations", + "parts": [] + }, + "pathParameters": [], + "allPathParameters": [], + "queryParameters": [], + "headers": [], + "requestBody": null, + "v2RequestBodies": null, + "sdkRequest": null, + "response": { + "body": { + "type": "json", + "value": { + "type": "response", + "responseBodyType": { + "_type": "named", + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization", + "default": null, + "inline": null + }, + "docs": "An organization whose metadata is merged from two parents", + "v2Examples": null + } + }, + "status-code": 200, + "isWildcardStatusCode": null, + "docs": "An organization whose metadata is merged from two parents" + }, + "v2Responses": null, + "errors": [], + "userSpecifiedExamples": [ + { + "example": { + "id": "fd2e2e41", + "name": null, + "url": "/organizations", + "rootPathParameters": [], + "endpointPathParameters": [], + "servicePathParameters": [], + "endpointHeaders": [], + "serviceHeaders": [], + "queryParameters": [], + "request": null, + "response": { + "type": "ok", + "value": { + "type": "body", + "value": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "metadata", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "typeName": { + "typeId": "type_:BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "BaseOrgMetadata", + "displayName": null + }, + "shape": { + "type": "object", + "properties": [ + { + "name": "region", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "region" + } + } + }, + "jsonExample": "region" + }, + "originalTypeDeclaration": { + "typeId": "type_:BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "BaseOrgMetadata", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "tier", + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "tier" + } + } + }, + "jsonExample": "tier" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "tier" + }, + "originalTypeDeclaration": { + "typeId": "type_:BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "BaseOrgMetadata", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "region": "region", + "tier": "tier" + } + }, + "valueType": { + "_type": "named", + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata", + "default": null, + "inline": null + } + } + }, + "jsonExample": { + "region": "region", + "tier": "tier" + } + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "id", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + }, + { + "name": "name", + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "originalTypeDeclaration": { + "typeId": "type_:Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "name": "Organization", + "displayName": null + }, + "propertyAccess": null + } + ], + "extraProperties": null + } + }, + "jsonExample": { + "metadata": { + "region": "region", + "tier": "tier" + }, + "id": "id", + "name": "name" + } + } + } + }, + "docs": null + }, + "codeSamples": null + } + ], + "autogeneratedExamples": [ + { + "example": { + "id": "b2f0fc0e", + "url": "/organizations", + "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", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "name" + } + } + }, + "jsonExample": "name" + }, + "propertyAccess": null + }, + { + "name": "id", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "id" + } + } + }, + "jsonExample": "id" + }, + "propertyAccess": null + }, + { + "name": "metadata", + "originalTypeDeclaration": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "named", + "shape": { + "type": "object", + "properties": [ + { + "name": "region", + "originalTypeDeclaration": { + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata" + }, + "value": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "region" + } + } + }, + "jsonExample": "region" + }, + "propertyAccess": null + }, + { + "name": "tier", + "originalTypeDeclaration": { + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata" + }, + "value": { + "shape": { + "type": "container", + "container": { + "type": "optional", + "optional": { + "shape": { + "type": "primitive", + "primitive": { + "type": "string", + "string": { + "original": "tier" + } + } + }, + "jsonExample": "tier" + }, + "valueType": { + "_type": "primitive", + "primitive": { + "v1": "STRING", + "v2": { + "type": "string", + "default": null, + "validation": null + } + } + } + } + }, + "jsonExample": "tier" + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata" + } + }, + "jsonExample": { + "region": "region", + "tier": "tier" + } + }, + "valueType": { + "_type": "named", + "name": "BaseOrgMetadata", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:BaseOrgMetadata", + "default": null, + "inline": null + } + } + }, + "jsonExample": { + "region": "region", + "tier": "tier" + } + }, + "propertyAccess": null + } + ], + "extraProperties": null + }, + "typeName": { + "name": "Organization", + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "displayName": null, + "typeId": "type_:Organization" + } + }, + "jsonExample": { + "name": "name", + "id": "id", + "metadata": { + "region": "region", + "tier": "tier" + } + } + } + } + }, + "docs": null + } + } + ], + "pagination": null, + "transport": null, + "v2Examples": null, + "source": null, + "audiences": null, + "retries": null, + "apiPlayground": null, + "responseHeaders": [], + "availability": null, + "docs": null + } + ], + "audiences": null + } + }, + "constants": { + "errorInstanceIdKey": "errorInstanceId" + }, + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": "Default", + "url": "https://api.example.com", + "audiences": null, + "defaultUrl": null, + "urlTemplate": null, + "urlVariables": null, + "docs": null + } + ] + } + }, + "errorDiscriminationStrategy": { + "type": "statusCode" + }, + "basePath": null, + "pathParameters": [], + "variables": [], + "serviceTypeReferenceInfo": { + "typesReferencedOnlyByService": { + "service_": [ + "type_:PagingCursors", + "type_:RuleExecutionContext", + "type_:AuditInfo", + "type_:RuleType", + "type_:RuleTypeSearchResponse", + "type_:User", + "type_:UserSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse", + "type_:CombinedEntityStatus", + "type_:CombinedEntity", + "type_:BaseOrgMetadata", + "type_:Organization" + ] + }, + "sharedTypes": [ + "type_:PaginatedResult", + "type_:Identifiable", + "type_:Describable", + "type_:BaseOrg", + "type_:DetailedOrgMetadata", + "type_:DetailedOrg" + ] + }, + "webhookGroups": {}, + "websocketChannels": {}, + "readmeConfig": null, + "sourceConfig": null, + "publishConfig": null, + "dynamic": { + "version": "1.0.0", + "types": { + "type_:PaginatedResult": { + "type": "object", + "declaration": { + "name": { + "originalName": "PaginatedResult", + "camelCase": { + "unsafeName": "paginatedResult", + "safeName": "paginatedResult" + }, + "snakeCase": { + "unsafeName": "paginated_result", + "safeName": "paginated_result" + }, + "screamingSnakeCase": { + "unsafeName": "PAGINATED_RESULT", + "safeName": "PAGINATED_RESULT" + }, + "pascalCase": { + "unsafeName": "PaginatedResult", + "safeName": "PaginatedResult" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "list", + "value": { + "type": "unknown" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:PagingCursors": { + "type": "object", + "declaration": { + "name": { + "originalName": "PagingCursors", + "camelCase": { + "unsafeName": "pagingCursors", + "safeName": "pagingCursors" + }, + "snakeCase": { + "unsafeName": "paging_cursors", + "safeName": "paging_cursors" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING_CURSORS", + "safeName": "PAGING_CURSORS" + }, + "pascalCase": { + "unsafeName": "PagingCursors", + "safeName": "PagingCursors" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "next", + "name": { + "originalName": "next", + "camelCase": { + "unsafeName": "next", + "safeName": "next" + }, + "snakeCase": { + "unsafeName": "next", + "safeName": "next" + }, + "screamingSnakeCase": { + "unsafeName": "NEXT", + "safeName": "NEXT" + }, + "pascalCase": { + "unsafeName": "Next", + "safeName": "Next" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "previous", + "name": { + "originalName": "previous", + "camelCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "snakeCase": { + "unsafeName": "previous", + "safeName": "previous" + }, + "screamingSnakeCase": { + "unsafeName": "PREVIOUS", + "safeName": "PREVIOUS" + }, + "pascalCase": { + "unsafeName": "Previous", + "safeName": "Previous" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleExecutionContext": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleExecutionContext", + "camelCase": { + "unsafeName": "ruleExecutionContext", + "safeName": "ruleExecutionContext" + }, + "snakeCase": { + "unsafeName": "rule_execution_context", + "safeName": "rule_execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_EXECUTION_CONTEXT", + "safeName": "RULE_EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "RuleExecutionContext", + "safeName": "RuleExecutionContext" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "prod", + "name": { + "originalName": "prod", + "camelCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "snakeCase": { + "unsafeName": "prod", + "safeName": "prod" + }, + "screamingSnakeCase": { + "unsafeName": "PROD", + "safeName": "PROD" + }, + "pascalCase": { + "unsafeName": "Prod", + "safeName": "Prod" + } + } + }, + { + "wireValue": "staging", + "name": { + "originalName": "staging", + "camelCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "snakeCase": { + "unsafeName": "staging", + "safeName": "staging" + }, + "screamingSnakeCase": { + "unsafeName": "STAGING", + "safeName": "STAGING" + }, + "pascalCase": { + "unsafeName": "Staging", + "safeName": "Staging" + } + } + }, + { + "wireValue": "dev", + "name": { + "originalName": "dev", + "camelCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "snakeCase": { + "unsafeName": "dev", + "safeName": "dev" + }, + "screamingSnakeCase": { + "unsafeName": "DEV", + "safeName": "DEV" + }, + "pascalCase": { + "unsafeName": "Dev", + "safeName": "Dev" + } + } + } + ] + }, + "type_:AuditInfo": { + "type": "object", + "declaration": { + "name": { + "originalName": "AuditInfo", + "camelCase": { + "unsafeName": "auditInfo", + "safeName": "auditInfo" + }, + "snakeCase": { + "unsafeName": "audit_info", + "safeName": "audit_info" + }, + "screamingSnakeCase": { + "unsafeName": "AUDIT_INFO", + "safeName": "AUDIT_INFO" + }, + "pascalCase": { + "unsafeName": "AuditInfo", + "safeName": "AuditInfo" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleType": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleType", + "camelCase": { + "unsafeName": "ruleType", + "safeName": "ruleType" + }, + "snakeCase": { + "unsafeName": "rule_type", + "safeName": "rule_type" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE", + "safeName": "RULE_TYPE" + }, + "pascalCase": { + "unsafeName": "RuleType", + "safeName": "RuleType" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "description", + "name": { + "originalName": "description", + "camelCase": { + "unsafeName": "description", + "safeName": "description" + }, + "snakeCase": { + "unsafeName": "description", + "safeName": "description" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIPTION", + "safeName": "DESCRIPTION" + }, + "pascalCase": { + "unsafeName": "Description", + "safeName": "Description" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleTypeSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleTypeSearchResponse", + "camelCase": { + "unsafeName": "ruleTypeSearchResponse", + "safeName": "ruleTypeSearchResponse" + }, + "snakeCase": { + "unsafeName": "rule_type_search_response", + "safeName": "rule_type_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_TYPE_SEARCH_RESPONSE", + "safeName": "RULE_TYPE_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleTypeSearchResponse", + "safeName": "RuleTypeSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:RuleType" + } + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "email", + "name": { + "originalName": "email", + "camelCase": { + "unsafeName": "email", + "safeName": "email" + }, + "snakeCase": { + "unsafeName": "email", + "safeName": "email" + }, + "screamingSnakeCase": { + "unsafeName": "EMAIL", + "safeName": "EMAIL" + }, + "pascalCase": { + "unsafeName": "Email", + "safeName": "Email" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:UserSearchResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "UserSearchResponse", + "camelCase": { + "unsafeName": "userSearchResponse", + "safeName": "userSearchResponse" + }, + "snakeCase": { + "unsafeName": "user_search_response", + "safeName": "user_search_response" + }, + "screamingSnakeCase": { + "unsafeName": "USER_SEARCH_RESPONSE", + "safeName": "USER_SEARCH_RESPONSE" + }, + "pascalCase": { + "unsafeName": "UserSearchResponse", + "safeName": "UserSearchResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "results", + "name": { + "originalName": "results", + "camelCase": { + "unsafeName": "results", + "safeName": "results" + }, + "snakeCase": { + "unsafeName": "results", + "safeName": "results" + }, + "screamingSnakeCase": { + "unsafeName": "RESULTS", + "safeName": "RESULTS" + }, + "pascalCase": { + "unsafeName": "Results", + "safeName": "Results" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "list", + "value": { + "type": "named", + "value": "type_:User" + } + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "paging", + "name": { + "originalName": "paging", + "camelCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "snakeCase": { + "unsafeName": "paging", + "safeName": "paging" + }, + "screamingSnakeCase": { + "unsafeName": "PAGING", + "safeName": "PAGING" + }, + "pascalCase": { + "unsafeName": "Paging", + "safeName": "Paging" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:PagingCursors" + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:RuleResponseStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "RuleResponseStatus", + "camelCase": { + "unsafeName": "ruleResponseStatus", + "safeName": "ruleResponseStatus" + }, + "snakeCase": { + "unsafeName": "rule_response_status", + "safeName": "rule_response_status" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE_STATUS", + "safeName": "RULE_RESPONSE_STATUS" + }, + "pascalCase": { + "unsafeName": "RuleResponseStatus", + "safeName": "RuleResponseStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "inactive", + "name": { + "originalName": "inactive", + "camelCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "snakeCase": { + "unsafeName": "inactive", + "safeName": "inactive" + }, + "screamingSnakeCase": { + "unsafeName": "INACTIVE", + "safeName": "INACTIVE" + }, + "pascalCase": { + "unsafeName": "Inactive", + "safeName": "Inactive" + } + } + }, + { + "wireValue": "draft", + "name": { + "originalName": "draft", + "camelCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "snakeCase": { + "unsafeName": "draft", + "safeName": "draft" + }, + "screamingSnakeCase": { + "unsafeName": "DRAFT", + "safeName": "DRAFT" + }, + "pascalCase": { + "unsafeName": "Draft", + "safeName": "Draft" + } + } + } + ] + }, + "type_:RuleResponse": { + "type": "object", + "declaration": { + "name": { + "originalName": "RuleResponse", + "camelCase": { + "unsafeName": "ruleResponse", + "safeName": "ruleResponse" + }, + "snakeCase": { + "unsafeName": "rule_response", + "safeName": "rule_response" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_RESPONSE", + "safeName": "RULE_RESPONSE" + }, + "pascalCase": { + "unsafeName": "RuleResponse", + "safeName": "RuleResponse" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "createdBy", + "name": { + "originalName": "createdBy", + "camelCase": { + "unsafeName": "createdBy", + "safeName": "createdBy" + }, + "snakeCase": { + "unsafeName": "created_by", + "safeName": "created_by" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_BY", + "safeName": "CREATED_BY" + }, + "pascalCase": { + "unsafeName": "CreatedBy", + "safeName": "CreatedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "createdDateTime", + "name": { + "originalName": "createdDateTime", + "camelCase": { + "unsafeName": "createdDateTime", + "safeName": "createdDateTime" + }, + "snakeCase": { + "unsafeName": "created_date_time", + "safeName": "created_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "CREATED_DATE_TIME", + "safeName": "CREATED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "CreatedDateTime", + "safeName": "CreatedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedBy", + "name": { + "originalName": "modifiedBy", + "camelCase": { + "unsafeName": "modifiedBy", + "safeName": "modifiedBy" + }, + "snakeCase": { + "unsafeName": "modified_by", + "safeName": "modified_by" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_BY", + "safeName": "MODIFIED_BY" + }, + "pascalCase": { + "unsafeName": "ModifiedBy", + "safeName": "ModifiedBy" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "modifiedDateTime", + "name": { + "originalName": "modifiedDateTime", + "camelCase": { + "unsafeName": "modifiedDateTime", + "safeName": "modifiedDateTime" + }, + "snakeCase": { + "unsafeName": "modified_date_time", + "safeName": "modified_date_time" + }, + "screamingSnakeCase": { + "unsafeName": "MODIFIED_DATE_TIME", + "safeName": "MODIFIED_DATE_TIME" + }, + "pascalCase": { + "unsafeName": "ModifiedDateTime", + "safeName": "ModifiedDateTime" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "DATE_TIME" + } + }, + "propertyAccess": "READ_ONLY", + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleResponseStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:RuleExecutionContext" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": [ + "type_:AuditInfo" + ], + "additionalProperties": false + }, + "type_:Identifiable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Identifiable", + "camelCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "snakeCase": { + "unsafeName": "identifiable", + "safeName": "identifiable" + }, + "screamingSnakeCase": { + "unsafeName": "IDENTIFIABLE", + "safeName": "IDENTIFIABLE" + }, + "pascalCase": { + "unsafeName": "Identifiable", + "safeName": "Identifiable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:Describable": { + "type": "object", + "declaration": { + "name": { + "originalName": "Describable", + "camelCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "snakeCase": { + "unsafeName": "describable", + "safeName": "describable" + }, + "screamingSnakeCase": { + "unsafeName": "DESCRIBABLE", + "safeName": "DESCRIBABLE" + }, + "pascalCase": { + "unsafeName": "Describable", + "safeName": "Describable" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:CombinedEntityStatus": { + "type": "enum", + "declaration": { + "name": { + "originalName": "CombinedEntityStatus", + "camelCase": { + "unsafeName": "combinedEntityStatus", + "safeName": "combinedEntityStatus" + }, + "snakeCase": { + "unsafeName": "combined_entity_status", + "safeName": "combined_entity_status" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY_STATUS", + "safeName": "COMBINED_ENTITY_STATUS" + }, + "pascalCase": { + "unsafeName": "CombinedEntityStatus", + "safeName": "CombinedEntityStatus" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "values": [ + { + "wireValue": "active", + "name": { + "originalName": "active", + "camelCase": { + "unsafeName": "active", + "safeName": "active" + }, + "snakeCase": { + "unsafeName": "active", + "safeName": "active" + }, + "screamingSnakeCase": { + "unsafeName": "ACTIVE", + "safeName": "ACTIVE" + }, + "pascalCase": { + "unsafeName": "Active", + "safeName": "Active" + } + } + }, + { + "wireValue": "archived", + "name": { + "originalName": "archived", + "camelCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "snakeCase": { + "unsafeName": "archived", + "safeName": "archived" + }, + "screamingSnakeCase": { + "unsafeName": "ARCHIVED", + "safeName": "ARCHIVED" + }, + "pascalCase": { + "unsafeName": "Archived", + "safeName": "Archived" + } + } + } + ] + }, + "type_:CombinedEntity": { + "type": "object", + "declaration": { + "name": { + "originalName": "CombinedEntity", + "camelCase": { + "unsafeName": "combinedEntity", + "safeName": "combinedEntity" + }, + "snakeCase": { + "unsafeName": "combined_entity", + "safeName": "combined_entity" + }, + "screamingSnakeCase": { + "unsafeName": "COMBINED_ENTITY", + "safeName": "COMBINED_ENTITY" + }, + "pascalCase": { + "unsafeName": "CombinedEntity", + "safeName": "CombinedEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "status", + "name": { + "originalName": "status", + "camelCase": { + "unsafeName": "status", + "safeName": "status" + }, + "snakeCase": { + "unsafeName": "status", + "safeName": "status" + }, + "screamingSnakeCase": { + "unsafeName": "STATUS", + "safeName": "STATUS" + }, + "pascalCase": { + "unsafeName": "Status", + "safeName": "Status" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:CombinedEntityStatus" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "summary", + "name": { + "originalName": "summary", + "camelCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "snakeCase": { + "unsafeName": "summary", + "safeName": "summary" + }, + "screamingSnakeCase": { + "unsafeName": "SUMMARY", + "safeName": "SUMMARY" + }, + "pascalCase": { + "unsafeName": "Summary", + "safeName": "Summary" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrgMetadata", + "camelCase": { + "unsafeName": "baseOrgMetadata", + "safeName": "baseOrgMetadata" + }, + "snakeCase": { + "unsafeName": "base_org_metadata", + "safeName": "base_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG_METADATA", + "safeName": "BASE_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "BaseOrgMetadata", + "safeName": "BaseOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "tier", + "name": { + "originalName": "tier", + "camelCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "snakeCase": { + "unsafeName": "tier", + "safeName": "tier" + }, + "screamingSnakeCase": { + "unsafeName": "TIER", + "safeName": "TIER" + }, + "pascalCase": { + "unsafeName": "Tier", + "safeName": "Tier" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:BaseOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "BaseOrg", + "camelCase": { + "unsafeName": "baseOrg", + "safeName": "baseOrg" + }, + "snakeCase": { + "unsafeName": "base_org", + "safeName": "base_org" + }, + "screamingSnakeCase": { + "unsafeName": "BASE_ORG", + "safeName": "BASE_ORG" + }, + "pascalCase": { + "unsafeName": "BaseOrg", + "safeName": "BaseOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrgMetadata": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrgMetadata", + "camelCase": { + "unsafeName": "detailedOrgMetadata", + "safeName": "detailedOrgMetadata" + }, + "snakeCase": { + "unsafeName": "detailed_org_metadata", + "safeName": "detailed_org_metadata" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG_METADATA", + "safeName": "DETAILED_ORG_METADATA" + }, + "pascalCase": { + "unsafeName": "DetailedOrgMetadata", + "safeName": "DetailedOrgMetadata" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "region", + "name": { + "originalName": "region", + "camelCase": { + "unsafeName": "region", + "safeName": "region" + }, + "snakeCase": { + "unsafeName": "region", + "safeName": "region" + }, + "screamingSnakeCase": { + "unsafeName": "REGION", + "safeName": "REGION" + }, + "pascalCase": { + "unsafeName": "Region", + "safeName": "Region" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "domain", + "name": { + "originalName": "domain", + "camelCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "snakeCase": { + "unsafeName": "domain", + "safeName": "domain" + }, + "screamingSnakeCase": { + "unsafeName": "DOMAIN", + "safeName": "DOMAIN" + }, + "pascalCase": { + "unsafeName": "Domain", + "safeName": "Domain" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_:DetailedOrg": { + "type": "object", + "declaration": { + "name": { + "originalName": "DetailedOrg", + "camelCase": { + "unsafeName": "detailedOrg", + "safeName": "detailedOrg" + }, + "snakeCase": { + "unsafeName": "detailed_org", + "safeName": "detailed_org" + }, + "screamingSnakeCase": { + "unsafeName": "DETAILED_ORG", + "safeName": "DETAILED_ORG" + }, + "pascalCase": { + "unsafeName": "DetailedOrg", + "safeName": "DetailedOrg" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:DetailedOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + }, + "type_: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": [], + "packagePath": [], + "file": null + } + }, + "properties": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "id", + "name": { + "originalName": "id", + "camelCase": { + "unsafeName": "id", + "safeName": "id" + }, + "snakeCase": { + "unsafeName": "id", + "safeName": "id" + }, + "screamingSnakeCase": { + "unsafeName": "ID", + "safeName": "ID" + }, + "pascalCase": { + "unsafeName": "ID", + "safeName": "ID" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "metadata", + "name": { + "originalName": "metadata", + "camelCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "snakeCase": { + "unsafeName": "metadata", + "safeName": "metadata" + }, + "screamingSnakeCase": { + "unsafeName": "METADATA", + "safeName": "METADATA" + }, + "pascalCase": { + "unsafeName": "Metadata", + "safeName": "Metadata" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "named", + "value": "type_:BaseOrgMetadata" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "extends": null, + "additionalProperties": false + } + }, + "headers": [], + "endpoints": { + "endpoint_.searchRuleTypes": { + "auth": null, + "declaration": { + "name": { + "originalName": "searchRuleTypes", + "camelCase": { + "unsafeName": "searchRuleTypes", + "safeName": "searchRuleTypes" + }, + "snakeCase": { + "unsafeName": "search_rule_types", + "safeName": "search_rule_types" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES", + "safeName": "SEARCH_RULE_TYPES" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypes", + "safeName": "SearchRuleTypes" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/rule-types" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "SearchRuleTypesRequest", + "camelCase": { + "unsafeName": "searchRuleTypesRequest", + "safeName": "searchRuleTypesRequest" + }, + "snakeCase": { + "unsafeName": "search_rule_types_request", + "safeName": "search_rule_types_request" + }, + "screamingSnakeCase": { + "unsafeName": "SEARCH_RULE_TYPES_REQUEST", + "safeName": "SEARCH_RULE_TYPES_REQUEST" + }, + "pascalCase": { + "unsafeName": "SearchRuleTypesRequest", + "safeName": "SearchRuleTypesRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [ + { + "name": { + "wireValue": "query", + "name": { + "originalName": "query", + "camelCase": { + "unsafeName": "query", + "safeName": "query" + }, + "snakeCase": { + "unsafeName": "query", + "safeName": "query" + }, + "screamingSnakeCase": { + "unsafeName": "QUERY", + "safeName": "QUERY" + }, + "pascalCase": { + "unsafeName": "Query", + "safeName": "Query" + } + } + }, + "typeReference": { + "type": "optional", + "value": { + "type": "primitive", + "value": "STRING" + } + }, + "propertyAccess": null, + "variable": null + } + ], + "headers": [], + "body": null, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.createRule": { + "auth": null, + "declaration": { + "name": { + "originalName": "createRule", + "camelCase": { + "unsafeName": "createRule", + "safeName": "createRule" + }, + "snakeCase": { + "unsafeName": "create_rule", + "safeName": "create_rule" + }, + "screamingSnakeCase": { + "unsafeName": "CREATE_RULE", + "safeName": "CREATE_RULE" + }, + "pascalCase": { + "unsafeName": "CreateRule", + "safeName": "CreateRule" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "POST", + "path": "/rules" + }, + "request": { + "type": "inlined", + "declaration": { + "name": { + "originalName": "RuleCreateRequest", + "camelCase": { + "unsafeName": "ruleCreateRequest", + "safeName": "ruleCreateRequest" + }, + "snakeCase": { + "unsafeName": "rule_create_request", + "safeName": "rule_create_request" + }, + "screamingSnakeCase": { + "unsafeName": "RULE_CREATE_REQUEST", + "safeName": "RULE_CREATE_REQUEST" + }, + "pascalCase": { + "unsafeName": "RuleCreateRequest", + "safeName": "RuleCreateRequest" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "pathParameters": [], + "queryParameters": [], + "headers": [], + "body": { + "type": "properties", + "value": [ + { + "name": { + "wireValue": "name", + "name": { + "originalName": "name", + "camelCase": { + "unsafeName": "name", + "safeName": "name" + }, + "snakeCase": { + "unsafeName": "name", + "safeName": "name" + }, + "screamingSnakeCase": { + "unsafeName": "NAME", + "safeName": "NAME" + }, + "pascalCase": { + "unsafeName": "Name", + "safeName": "Name" + } + } + }, + "typeReference": { + "type": "primitive", + "value": "STRING" + }, + "propertyAccess": null, + "variable": null + }, + { + "name": { + "wireValue": "executionContext", + "name": { + "originalName": "executionContext", + "camelCase": { + "unsafeName": "executionContext", + "safeName": "executionContext" + }, + "snakeCase": { + "unsafeName": "execution_context", + "safeName": "execution_context" + }, + "screamingSnakeCase": { + "unsafeName": "EXECUTION_CONTEXT", + "safeName": "EXECUTION_CONTEXT" + }, + "pascalCase": { + "unsafeName": "ExecutionContext", + "safeName": "ExecutionContext" + } + } + }, + "typeReference": { + "type": "named", + "value": "type_:RuleExecutionContext" + }, + "propertyAccess": null, + "variable": null + } + ] + }, + "metadata": { + "includePathParameters": false, + "onlyPathParameters": false + } + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.listUsers": { + "auth": null, + "declaration": { + "name": { + "originalName": "listUsers", + "camelCase": { + "unsafeName": "listUsers", + "safeName": "listUsers" + }, + "snakeCase": { + "unsafeName": "list_users", + "safeName": "list_users" + }, + "screamingSnakeCase": { + "unsafeName": "LIST_USERS", + "safeName": "LIST_USERS" + }, + "pascalCase": { + "unsafeName": "ListUsers", + "safeName": "ListUsers" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/users" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.getEntity": { + "auth": null, + "declaration": { + "name": { + "originalName": "getEntity", + "camelCase": { + "unsafeName": "getEntity", + "safeName": "getEntity" + }, + "snakeCase": { + "unsafeName": "get_entity", + "safeName": "get_entity" + }, + "screamingSnakeCase": { + "unsafeName": "GET_ENTITY", + "safeName": "GET_ENTITY" + }, + "pascalCase": { + "unsafeName": "GetEntity", + "safeName": "GetEntity" + } + }, + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/entities" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + }, + "endpoint_.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": [], + "packagePath": [], + "file": null + } + }, + "location": { + "method": "GET", + "path": "/organizations" + }, + "request": { + "type": "body", + "pathParameters": [], + "body": null + }, + "response": { + "type": "json" + }, + "examples": null + } + }, + "pathParameters": [], + "environments": { + "defaultEnvironment": "Default", + "environments": { + "type": "singleBaseUrl", + "environments": [ + { + "id": "Default", + "name": { + "originalName": "Default", + "camelCase": { + "unsafeName": "default", + "safeName": "default" + }, + "snakeCase": { + "unsafeName": "default", + "safeName": "default" + }, + "screamingSnakeCase": { + "unsafeName": "DEFAULT", + "safeName": "DEFAULT" + }, + "pascalCase": { + "unsafeName": "Default", + "safeName": "Default" + } + }, + "url": "https://api.example.com", + "docs": null + } + ] + } + }, + "variables": null, + "generatorConfig": null + }, + "audiences": null, + "generationMetadata": null, + "apiPlayground": true, + "casingsConfig": { + "generationLanguage": null, + "keywords": null, + "smartCasing": true + }, + "subpackages": {}, + "rootPackage": { + "fernFilepath": { + "allParts": [], + "packagePath": [], + "file": null + }, + "websocket": null, + "service": "service_", + "types": [ + "type_:PaginatedResult", + "type_:PagingCursors", + "type_:RuleExecutionContext", + "type_:AuditInfo", + "type_:RuleType", + "type_:RuleTypeSearchResponse", + "type_:User", + "type_:UserSearchResponse", + "type_:RuleResponseStatus", + "type_:RuleResponse", + "type_:Identifiable", + "type_:Describable", + "type_:CombinedEntityStatus", + "type_:CombinedEntity", + "type_:BaseOrgMetadata", + "type_:BaseOrg", + "type_:DetailedOrgMetadata", + "type_:DetailedOrg", + "type_:Organization" + ], + "errors": [], + "subpackages": [], + "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 + } + } +} \ No newline at end of file diff --git a/seed/csharp-sdk/seed.yml b/seed/csharp-sdk/seed.yml index 9febfa06b89a..bdee6d47eac8 100644 --- a/seed/csharp-sdk/seed.yml +++ b/seed/csharp-sdk/seed.yml @@ -407,6 +407,8 @@ fixtures: redact-response-body-on-error: true outputFolder: redact-response-body-on-error allowedFailures: + - allof + - allof-inline - bytes-upload - enum:forward-compatible-enums - imdb:exported-client-class-name diff --git a/seed/python-sdk/seed.yml b/seed/python-sdk/seed.yml index 2b0e0429bd00..bc6390dd0d13 100644 --- a/seed/python-sdk/seed.yml +++ b/seed/python-sdk/seed.yml @@ -56,6 +56,14 @@ fixtures: - customConfig: use_inheritance_for_extended_models: false outputFolder: no-inheritance-for-extended-models + allof: + - outputFolder: no-custom-config + customConfig: + enable_wire_tests: true + allof-inline: + - outputFolder: no-custom-config + customConfig: + enable_wire_tests: true circular-references: - customConfig: null outputFolder: no-custom-config @@ -449,6 +457,8 @@ scripts: - poetry run pytest -rP -n auto -m aiohttp . allowedFailures: - schemaless-request-body-examples + - allof:no-custom-config + - allof-inline:no-custom-config - any-auth - endpoint-security-auth - examples:legacy-wire-tests diff --git a/test-definitions/fern/apis/allof-inline/generators.yml b/test-definitions/fern/apis/allof-inline/generators.yml new file mode 100644 index 000000000000..a39ff2fc742f --- /dev/null +++ b/test-definitions/fern/apis/allof-inline/generators.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json +api: + specs: + - openapi: ../allof/openapi.yml + settings: + inline-all-of-schemas: true diff --git a/test-definitions/fern/apis/allof/generators.yml b/test-definitions/fern/apis/allof/generators.yml new file mode 100644 index 000000000000..8762d29b8370 --- /dev/null +++ b/test-definitions/fern/apis/allof/generators.yml @@ -0,0 +1,4 @@ +# yaml-language-server: $schema=https://schema.buildwithfern.dev/generators-yml.json +api: + specs: + - openapi: ./openapi.yml diff --git a/test-definitions/fern/apis/allof/openapi.yml b/test-definitions/fern/apis/allof/openapi.yml new file mode 100644 index 000000000000..b8564ac0700a --- /dev/null +++ b/test-definitions/fern/apis/allof/openapi.yml @@ -0,0 +1,350 @@ +openapi: 3.0.3 +info: + title: allOf Composition + version: 1.0.0 + description: > + Exercises allOf schema composition patterns, covering array items narrowing, + primitive constraint narrowing, required propagation, metadata inheritance, + and multi-parent property merging. + +servers: + - url: https://api.example.com + +paths: + /rule-types: + get: + operationId: searchRuleTypes + summary: Search rule types with paginated results + parameters: + - name: query + in: query + schema: + type: string + responses: + "200": + description: Paginated list of rule types + content: + application/json: + schema: + $ref: "#/components/schemas/RuleTypeSearchResponse" + + /rules: + post: + operationId: createRule + summary: Create a rule with constrained execution context + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/RuleCreateRequest" + responses: + "200": + description: Created rule + content: + application/json: + schema: + $ref: "#/components/schemas/RuleResponse" + + /users: + get: + operationId: listUsers + summary: List users with paginated results + responses: + "200": + description: Paginated list of users + content: + application/json: + schema: + $ref: "#/components/schemas/UserSearchResponse" + + /entities: + get: + operationId: getEntity + summary: Get an entity that combines multiple parents + responses: + "200": + description: An entity with properties from multiple parents + content: + application/json: + schema: + $ref: "#/components/schemas/CombinedEntity" + + /organizations: + get: + operationId: getOrganization + summary: Get an organization with merged object-typed properties + responses: + "200": + description: An organization whose metadata is merged from two parents + content: + application/json: + schema: + $ref: "#/components/schemas/Organization" + +components: + schemas: + # ----------------------------------------------------------------------- + # Base schemas + # ----------------------------------------------------------------------- + PaginatedResult: + type: object + required: + - paging + - results + properties: + paging: + $ref: "#/components/schemas/PagingCursors" + results: + type: array + maxItems: 100 + description: Current page of results from the requested resource. + items: {} + + PagingCursors: + type: object + required: + - next + properties: + next: + type: string + description: Cursor for the next page of results. + previous: + type: string + description: Cursor for the previous page of results. + + RuleExecutionContext: + type: string + description: Execution environment for a rule. + enum: + - prod + - staging + - dev + + AuditInfo: + type: object + description: Common audit metadata. + required: + - createdBy + - createdDateTime + properties: + createdBy: + type: string + description: The user who created this resource. + readOnly: true + createdDateTime: + type: string + format: date-time + description: When this resource was created. + readOnly: true + modifiedBy: + type: string + description: The user who last modified this resource. + readOnly: true + modifiedDateTime: + type: string + format: date-time + description: When this resource was last modified. + readOnly: true + + # ----------------------------------------------------------------------- + # Case 1: Array items narrowing without redeclaring type: array + # + # The child specifies only `items` to narrow the element type. Per the + # spec, the merged result should be type: array with items: RuleType. + # The parent's `required: [results]` must also propagate. + # ----------------------------------------------------------------------- + RuleType: + type: object + required: + - id + - name + properties: + id: + type: string + name: + type: string + description: + type: string + + RuleTypeSearchResponse: + allOf: + - $ref: "#/components/schemas/PaginatedResult" + - properties: + results: + items: + $ref: "#/components/schemas/RuleType" + + # ----------------------------------------------------------------------- + # Case 2: Array items narrowing WITH explicit type: array + # + # Same as Case 1, but the child redeclares type: array alongside items. + # This should produce identical output to Case 1. + # ----------------------------------------------------------------------- + User: + type: object + required: + - id + - email + properties: + id: + type: string + email: + type: string + format: email + + UserSearchResponse: + allOf: + - $ref: "#/components/schemas/PaginatedResult" + - type: object + properties: + results: + type: array + items: + $ref: "#/components/schemas/User" + + # ----------------------------------------------------------------------- + # Case 3: Property-level allOf narrowing a primitive type + # + # allOf on a single property combines a $ref to an enum with inline + # constraints. The result should be a string with both the enum values + # and the pattern constraint — not an empty object. + # ----------------------------------------------------------------------- + RuleCreateRequest: + type: object + required: + - name + - executionContext + properties: + name: + type: string + executionContext: + allOf: + - $ref: "#/components/schemas/RuleExecutionContext" + - type: string + pattern: "^(?!prod$)[a-z0-9_-]+$" + description: > + Execution context for the rule, excluding the prod environment. + + # ----------------------------------------------------------------------- + # Case 4: allOf with metadata inheritance (description, readOnly) + # + # Child schema should inherit readOnly and description from parent + # properties even when it only narrows part of the property definition. + # ----------------------------------------------------------------------- + RuleResponse: + allOf: + - $ref: "#/components/schemas/AuditInfo" + - type: object + required: + - id + - name + - status + properties: + id: + type: string + name: + type: string + status: + type: string + enum: + - active + - inactive + - draft + executionContext: + $ref: "#/components/schemas/RuleExecutionContext" + + # ----------------------------------------------------------------------- + # Case 5: allOf composing multiple parents with overlapping properties + # + # Two parents define the same property (`name`) with different + # descriptions. The composed schema also adds its own properties. + # ----------------------------------------------------------------------- + Identifiable: + type: object + required: + - id + properties: + id: + type: string + description: Unique identifier. + name: + type: string + description: Display name from Identifiable. + + Describable: + type: object + properties: + name: + type: string + description: Display name from Describable. + summary: + type: string + description: A short summary. + + CombinedEntity: + allOf: + - $ref: "#/components/schemas/Identifiable" + - $ref: "#/components/schemas/Describable" + - type: object + required: + - status + properties: + status: + type: string + enum: + - active + - archived + + # ----------------------------------------------------------------------- + # Case 6: allOf merging object-typed properties with partial key overlap + # + # Two parents define the same property (`metadata`) as an object type. + # Each parent's `metadata` shares one common key (`region`, same type) + # but also contributes a unique key. The merged result should be an + # object with all three keys: region, tier, and domain. + # ----------------------------------------------------------------------- + BaseOrg: + type: object + required: + - id + properties: + id: + type: string + metadata: + type: object + required: + - region + properties: + region: + type: string + description: Deployment region from BaseOrg. + tier: + type: string + description: Subscription tier. + + DetailedOrg: + type: object + properties: + metadata: + type: object + required: + - region + properties: + region: + type: string + description: Deployment region from DetailedOrg. + domain: + type: string + description: Custom domain name. + + Organization: + allOf: + - $ref: "#/components/schemas/BaseOrg" + - $ref: "#/components/schemas/DetailedOrg" + - type: object + required: + - name + properties: + name: + type: string