fern-api 0.33.2-rc0 → 0.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.cjs +606 -319
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -368115,6 +368115,12 @@ var init_WithDescription = __esm({
|
|
|
368115
368115
|
}
|
|
368116
368116
|
});
|
|
368117
368117
|
|
|
368118
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/WithAvailability.js
|
|
368119
|
+
var init_WithAvailability = __esm({
|
|
368120
|
+
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/WithAvailability.js"() {
|
|
368121
|
+
}
|
|
368122
|
+
});
|
|
368123
|
+
|
|
368118
368124
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/WithName.js
|
|
368119
368125
|
var init_WithName = __esm({
|
|
368120
368126
|
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/WithName.js"() {
|
|
@@ -368274,6 +368280,7 @@ var init_WithSdkGroupName = __esm({
|
|
|
368274
368280
|
var init_types26 = __esm({
|
|
368275
368281
|
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/commons/types/index.js"() {
|
|
368276
368282
|
init_WithDescription();
|
|
368283
|
+
init_WithAvailability();
|
|
368277
368284
|
init_WithName();
|
|
368278
368285
|
init_SchemaId();
|
|
368279
368286
|
init_TagId();
|
|
@@ -368710,21 +368717,21 @@ var init_WebhookHttpMethod3 = __esm({
|
|
|
368710
368717
|
}
|
|
368711
368718
|
});
|
|
368712
368719
|
|
|
368713
|
-
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/
|
|
368714
|
-
var
|
|
368715
|
-
var
|
|
368716
|
-
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/
|
|
368717
|
-
|
|
368720
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/Availability.js
|
|
368721
|
+
var Availability5;
|
|
368722
|
+
var init_Availability3 = __esm({
|
|
368723
|
+
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/Availability.js"() {
|
|
368724
|
+
Availability5 = {
|
|
368718
368725
|
GenerallyAvailable: "GenerallyAvailable",
|
|
368719
368726
|
Beta: "Beta",
|
|
368720
368727
|
Deprecated: "Deprecated",
|
|
368721
368728
|
_visit: (value, visitor) => {
|
|
368722
368729
|
switch (value) {
|
|
368723
|
-
case
|
|
368730
|
+
case Availability5.GenerallyAvailable:
|
|
368724
368731
|
return visitor.generallyAvailable();
|
|
368725
|
-
case
|
|
368732
|
+
case Availability5.Beta:
|
|
368726
368733
|
return visitor.beta();
|
|
368727
|
-
case
|
|
368734
|
+
case Availability5.Deprecated:
|
|
368728
368735
|
return visitor.deprecated();
|
|
368729
368736
|
default:
|
|
368730
368737
|
return visitor._other();
|
|
@@ -369726,7 +369733,7 @@ var init_types28 = __esm({
|
|
|
369726
369733
|
init_WebsocketSessionExample();
|
|
369727
369734
|
init_WebsocketMessageExample();
|
|
369728
369735
|
init_WebhookHttpMethod3();
|
|
369729
|
-
|
|
369736
|
+
init_Availability3();
|
|
369730
369737
|
init_Endpoint();
|
|
369731
369738
|
init_Pagination3();
|
|
369732
369739
|
init_CursorPagination3();
|
|
@@ -371972,6 +371979,17 @@ var init_WithDescription2 = __esm({
|
|
|
371972
371979
|
}
|
|
371973
371980
|
});
|
|
371974
371981
|
|
|
371982
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/WithAvailability.js
|
|
371983
|
+
var WithAvailability;
|
|
371984
|
+
var init_WithAvailability2 = __esm({
|
|
371985
|
+
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/WithAvailability.js"() {
|
|
371986
|
+
init_core3();
|
|
371987
|
+
WithAvailability = schemas_exports5.objectWithoutOptionalProperties({
|
|
371988
|
+
availability: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Availability).optional()
|
|
371989
|
+
});
|
|
371990
|
+
}
|
|
371991
|
+
});
|
|
371992
|
+
|
|
371975
371993
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/WithName.js
|
|
371976
371994
|
var WithName;
|
|
371977
371995
|
var init_WithName2 = __esm({
|
|
@@ -372163,6 +372181,7 @@ var init_WithSdkGroupName2 = __esm({
|
|
|
372163
372181
|
var init_types30 = __esm({
|
|
372164
372182
|
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/commons/types/index.js"() {
|
|
372165
372183
|
init_WithDescription2();
|
|
372184
|
+
init_WithAvailability2();
|
|
372166
372185
|
init_WithName2();
|
|
372167
372186
|
init_SchemaId2();
|
|
372168
372187
|
init_TagId2();
|
|
@@ -372197,6 +372216,7 @@ __export(commons_exports14, {
|
|
|
372197
372216
|
StatusCode: () => StatusCode,
|
|
372198
372217
|
Tag: () => Tag,
|
|
372199
372218
|
TagId: () => TagId,
|
|
372219
|
+
WithAvailability: () => WithAvailability,
|
|
372200
372220
|
WithDescription: () => WithDescription,
|
|
372201
372221
|
WithName: () => WithName,
|
|
372202
372222
|
WithSdkGroupName: () => WithSdkGroupName
|
|
@@ -372636,12 +372656,12 @@ var init_WebhookHttpMethod4 = __esm({
|
|
|
372636
372656
|
}
|
|
372637
372657
|
});
|
|
372638
372658
|
|
|
372639
|
-
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/
|
|
372640
|
-
var
|
|
372641
|
-
var
|
|
372642
|
-
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/
|
|
372659
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/Availability.js
|
|
372660
|
+
var Availability6;
|
|
372661
|
+
var init_Availability4 = __esm({
|
|
372662
|
+
"pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/Availability.js"() {
|
|
372643
372663
|
init_core3();
|
|
372644
|
-
|
|
372664
|
+
Availability6 = schemas_exports5.enum_(["GenerallyAvailable", "Beta", "Deprecated"]);
|
|
372645
372665
|
}
|
|
372646
372666
|
});
|
|
372647
372667
|
|
|
@@ -372655,7 +372675,6 @@ var init_Endpoint2 = __esm({
|
|
|
372655
372675
|
internal: schemas_exports5.boolean().optional(),
|
|
372656
372676
|
idempotent: schemas_exports5.boolean().optional(),
|
|
372657
372677
|
method: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).HttpMethod),
|
|
372658
|
-
availability: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EndpointAvailability).optional(),
|
|
372659
372678
|
audiences: schemas_exports5.list(schemas_exports5.string()),
|
|
372660
372679
|
path: schemas_exports5.string(),
|
|
372661
372680
|
summary: schemas_exports5.string().optional(),
|
|
@@ -372673,7 +372692,7 @@ var init_Endpoint2 = __esm({
|
|
|
372673
372692
|
server: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Server)),
|
|
372674
372693
|
examples: schemas_exports5.list(schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EndpointExample)),
|
|
372675
372694
|
pagination: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Pagination).optional()
|
|
372676
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
372695
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
372677
372696
|
}
|
|
372678
372697
|
});
|
|
372679
372698
|
|
|
@@ -372937,7 +372956,7 @@ var init_PathParameter4 = __esm({
|
|
|
372937
372956
|
name: schemas_exports5.string(),
|
|
372938
372957
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema),
|
|
372939
372958
|
variableReference: schemas_exports5.string().optional()
|
|
372940
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
372959
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
372941
372960
|
}
|
|
372942
372961
|
});
|
|
372943
372962
|
|
|
@@ -372950,7 +372969,7 @@ var init_QueryParameter4 = __esm({
|
|
|
372950
372969
|
name: schemas_exports5.string(),
|
|
372951
372970
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema),
|
|
372952
372971
|
parameterNameOverride: schemas_exports5.string().optional()
|
|
372953
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
372972
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
372954
372973
|
}
|
|
372955
372974
|
});
|
|
372956
372975
|
|
|
@@ -372964,7 +372983,7 @@ var init_Header2 = __esm({
|
|
|
372964
372983
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema),
|
|
372965
372984
|
env: schemas_exports5.string().optional(),
|
|
372966
372985
|
parameterNameOverride: schemas_exports5.string().optional()
|
|
372967
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
372986
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
372968
372987
|
}
|
|
372969
372988
|
});
|
|
372970
372989
|
|
|
@@ -373209,7 +373228,7 @@ var init_PrimitiveSchema2 = __esm({
|
|
|
373209
373228
|
init_core3();
|
|
373210
373229
|
PrimitiveSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373211
373230
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).PrimitiveSchemaValue)
|
|
373212
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373231
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373213
373232
|
}
|
|
373214
373233
|
});
|
|
373215
373234
|
|
|
@@ -373335,7 +373354,7 @@ var init_LiteralSchema2 = __esm({
|
|
|
373335
373354
|
init_core3();
|
|
373336
373355
|
LiteralSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373337
373356
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).LiteralSchemaValue)
|
|
373338
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373357
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373339
373358
|
}
|
|
373340
373359
|
});
|
|
373341
373360
|
|
|
@@ -373378,7 +373397,7 @@ var init_ObjectSchema2 = __esm({
|
|
|
373378
373397
|
properties: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ObjectProperty)),
|
|
373379
373398
|
allOfPropertyConflicts: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).AllOfPropertyConflict)),
|
|
373380
373399
|
additionalProperties: schemas_exports5.boolean()
|
|
373381
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373400
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373382
373401
|
}
|
|
373383
373402
|
});
|
|
373384
373403
|
|
|
@@ -373407,7 +373426,7 @@ var init_ObjectProperty4 = __esm({
|
|
|
373407
373426
|
generatedName: schemas_exports5.string(),
|
|
373408
373427
|
nameOverride: schemas_exports5.string().optional(),
|
|
373409
373428
|
audiences: schemas_exports5.list(schemas_exports5.string())
|
|
373410
|
-
});
|
|
373429
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373411
373430
|
}
|
|
373412
373431
|
});
|
|
373413
373432
|
|
|
@@ -373429,7 +373448,7 @@ var init_ArraySchema2 = __esm({
|
|
|
373429
373448
|
init_core3();
|
|
373430
373449
|
ArraySchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373431
373450
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema)
|
|
373432
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373451
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373433
373452
|
}
|
|
373434
373453
|
});
|
|
373435
373454
|
|
|
@@ -373441,7 +373460,7 @@ var init_MapSchema2 = __esm({
|
|
|
373441
373460
|
MapSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373442
373461
|
key: schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).PrimitiveSchema),
|
|
373443
373462
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema)
|
|
373444
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373463
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373445
373464
|
}
|
|
373446
373465
|
});
|
|
373447
373466
|
|
|
@@ -373452,7 +373471,7 @@ var init_OptionalSchema2 = __esm({
|
|
|
373452
373471
|
init_core3();
|
|
373453
373472
|
OptionalSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373454
373473
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema)
|
|
373455
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373474
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373456
373475
|
}
|
|
373457
373476
|
});
|
|
373458
373477
|
|
|
@@ -373463,7 +373482,7 @@ var init_NullableSchema2 = __esm({
|
|
|
373463
373482
|
init_core3();
|
|
373464
373483
|
NullableSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373465
373484
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema)
|
|
373466
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373485
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373467
373486
|
}
|
|
373468
373487
|
});
|
|
373469
373488
|
|
|
@@ -373474,7 +373493,7 @@ var init_EnumSchema2 = __esm({
|
|
|
373474
373493
|
init_core3();
|
|
373475
373494
|
EnumSchema2 = schemas_exports5.objectWithoutOptionalProperties({
|
|
373476
373495
|
values: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EnumValue))
|
|
373477
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373496
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373478
373497
|
}
|
|
373479
373498
|
});
|
|
373480
373499
|
|
|
@@ -373488,7 +373507,7 @@ var init_EnumValue4 = __esm({
|
|
|
373488
373507
|
generatedName: schemas_exports5.string(),
|
|
373489
373508
|
value: schemas_exports5.string(),
|
|
373490
373509
|
casing: schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).CasingOverrides).optional()
|
|
373491
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
373510
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373492
373511
|
}
|
|
373493
373512
|
});
|
|
373494
373513
|
|
|
@@ -373513,7 +373532,7 @@ var init_ReferencedSchema2 = __esm({
|
|
|
373513
373532
|
init_core3();
|
|
373514
373533
|
ReferencedSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373515
373534
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaId)
|
|
373516
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373535
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373517
373536
|
}
|
|
373518
373537
|
});
|
|
373519
373538
|
|
|
@@ -373551,7 +373570,7 @@ var init_DiscriminatedOneOfSchema2 = __esm({
|
|
|
373551
373570
|
discriminantProperty: schemas_exports5.string(),
|
|
373552
373571
|
commonProperties: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).CommonProperty)),
|
|
373553
373572
|
schemas: schemas_exports5.record(schemas_exports5.string(), schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema))
|
|
373554
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373573
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373555
373574
|
}
|
|
373556
373575
|
});
|
|
373557
373576
|
|
|
@@ -373574,7 +373593,7 @@ var init_UnDiscriminatedOneOfSchema2 = __esm({
|
|
|
373574
373593
|
init_core3();
|
|
373575
373594
|
UnDiscriminatedOneOfSchema = schemas_exports5.objectWithoutOptionalProperties({
|
|
373576
373595
|
schemas: schemas_exports5.list(schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema))
|
|
373577
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
373596
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373578
373597
|
}
|
|
373579
373598
|
});
|
|
373580
373599
|
|
|
@@ -373594,7 +373613,7 @@ var init_types32 = __esm({
|
|
|
373594
373613
|
init_WebsocketSessionExample2();
|
|
373595
373614
|
init_WebsocketMessageExample2();
|
|
373596
373615
|
init_WebhookHttpMethod4();
|
|
373597
|
-
|
|
373616
|
+
init_Availability4();
|
|
373598
373617
|
init_Endpoint2();
|
|
373599
373618
|
init_Pagination4();
|
|
373600
373619
|
init_CursorPagination4();
|
|
@@ -373660,6 +373679,7 @@ var finalIr_exports2 = {};
|
|
|
373660
373679
|
__export(finalIr_exports2, {
|
|
373661
373680
|
AllOfPropertyConflict: () => AllOfPropertyConflict,
|
|
373662
373681
|
ArraySchema: () => ArraySchema,
|
|
373682
|
+
Availability: () => Availability6,
|
|
373663
373683
|
BooleanSchema: () => BooleanSchema,
|
|
373664
373684
|
CasingOverrides: () => CasingOverrides,
|
|
373665
373685
|
CommonProperty: () => CommonProperty,
|
|
@@ -373670,7 +373690,6 @@ __export(finalIr_exports2, {
|
|
|
373670
373690
|
DiscriminatedOneOfSchema: () => DiscriminatedOneOfSchema,
|
|
373671
373691
|
DoubleSchema: () => DoubleSchema,
|
|
373672
373692
|
Endpoint: () => Endpoint,
|
|
373673
|
-
EndpointAvailability: () => EndpointAvailability2,
|
|
373674
373693
|
EndpointExample: () => EndpointExample2,
|
|
373675
373694
|
EndpointSdkName: () => EndpointSdkName,
|
|
373676
373695
|
EnumSchema: () => EnumSchema2,
|
|
@@ -373770,7 +373789,6 @@ var init_EndpointWithExample2 = __esm({
|
|
|
373770
373789
|
internal: schemas_exports5.boolean().optional(),
|
|
373771
373790
|
idempotent: schemas_exports5.boolean().optional(),
|
|
373772
373791
|
method: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).HttpMethod),
|
|
373773
|
-
availability: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EndpointAvailability).optional(),
|
|
373774
373792
|
audiences: schemas_exports5.list(schemas_exports5.string()),
|
|
373775
373793
|
path: schemas_exports5.string(),
|
|
373776
373794
|
summary: schemas_exports5.string().optional(),
|
|
@@ -373788,7 +373806,7 @@ var init_EndpointWithExample2 = __esm({
|
|
|
373788
373806
|
server: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Server)),
|
|
373789
373807
|
examples: schemas_exports5.list(schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EndpointExample)),
|
|
373790
373808
|
pagination: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Pagination).optional()
|
|
373791
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
373809
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373792
373810
|
}
|
|
373793
373811
|
});
|
|
373794
373812
|
|
|
@@ -373906,7 +373924,7 @@ var init_PathParameterWithExample2 = __esm({
|
|
|
373906
373924
|
name: schemas_exports5.string(),
|
|
373907
373925
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
373908
373926
|
variableReference: schemas_exports5.string().optional()
|
|
373909
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
373927
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373910
373928
|
}
|
|
373911
373929
|
});
|
|
373912
373930
|
|
|
@@ -373919,7 +373937,7 @@ var init_QueryParameterWithExample2 = __esm({
|
|
|
373919
373937
|
name: schemas_exports5.string(),
|
|
373920
373938
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
373921
373939
|
parameterNameOverride: schemas_exports5.string().optional()
|
|
373922
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
373940
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373923
373941
|
}
|
|
373924
373942
|
});
|
|
373925
373943
|
|
|
@@ -373933,7 +373951,7 @@ var init_HeaderWithExample2 = __esm({
|
|
|
373933
373951
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
373934
373952
|
env: schemas_exports5.string().optional(),
|
|
373935
373953
|
parameterNameOverride: schemas_exports5.string().optional()
|
|
373936
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
373954
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
373937
373955
|
}
|
|
373938
373956
|
});
|
|
373939
373957
|
|
|
@@ -373999,7 +374017,7 @@ var init_ArraySchemaWithExample2 = __esm({
|
|
|
373999
374017
|
ArraySchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374000
374018
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
374001
374019
|
example: schemas_exports5.list(schemas_exports5.unknown()).optional()
|
|
374002
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
374020
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374003
374021
|
}
|
|
374004
374022
|
});
|
|
374005
374023
|
|
|
@@ -374012,7 +374030,7 @@ var init_MapSchemaWithExample2 = __esm({
|
|
|
374012
374030
|
key: schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).PrimitiveSchemaWithExample),
|
|
374013
374031
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
374014
374032
|
example: schemas_exports5.unknown().optional()
|
|
374015
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
374033
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374016
374034
|
}
|
|
374017
374035
|
});
|
|
374018
374036
|
|
|
@@ -374023,7 +374041,7 @@ var init_OptionalSchemaWithExample2 = __esm({
|
|
|
374023
374041
|
init_core3();
|
|
374024
374042
|
OptionalSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374025
374043
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample)
|
|
374026
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
374044
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374027
374045
|
}
|
|
374028
374046
|
});
|
|
374029
374047
|
|
|
@@ -374034,7 +374052,7 @@ var init_NullableSchemaWithExample2 = __esm({
|
|
|
374034
374052
|
init_core3();
|
|
374035
374053
|
NullableSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374036
374054
|
value: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample)
|
|
374037
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
374055
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374038
374056
|
}
|
|
374039
374057
|
});
|
|
374040
374058
|
|
|
@@ -374046,7 +374064,7 @@ var init_EnumSchemaWithExample2 = __esm({
|
|
|
374046
374064
|
EnumSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374047
374065
|
values: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).EnumValue)),
|
|
374048
374066
|
example: schemas_exports5.string().optional()
|
|
374049
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
374067
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374050
374068
|
}
|
|
374051
374069
|
});
|
|
374052
374070
|
|
|
@@ -374057,7 +374075,7 @@ var init_UnknownSchemaWithExample2 = __esm({
|
|
|
374057
374075
|
init_core3();
|
|
374058
374076
|
UnknownSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374059
374077
|
example: schemas_exports5.unknown()
|
|
374060
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
374078
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374061
374079
|
}
|
|
374062
374080
|
});
|
|
374063
374081
|
|
|
@@ -374072,7 +374090,7 @@ var init_ObjectSchemaWithExample2 = __esm({
|
|
|
374072
374090
|
allOfPropertyConflicts: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).AllOfPropertyConflict)),
|
|
374073
374091
|
fullExamples: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).NamedFullExample)).optional(),
|
|
374074
374092
|
additionalProperties: schemas_exports5.boolean()
|
|
374075
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
374093
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374076
374094
|
}
|
|
374077
374095
|
});
|
|
374078
374096
|
|
|
@@ -374088,7 +374106,7 @@ var init_ObjectPropertyWithExample2 = __esm({
|
|
|
374088
374106
|
conflict: schemas_exports5.record(schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaId), schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ObjectPropertyConflictInfo)),
|
|
374089
374107
|
nameOverride: schemas_exports5.string().optional(),
|
|
374090
374108
|
generatedName: schemas_exports5.string()
|
|
374091
|
-
});
|
|
374109
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374092
374110
|
}
|
|
374093
374111
|
});
|
|
374094
374112
|
|
|
@@ -374126,7 +374144,7 @@ var init_DiscriminatedOneOfSchemaWithExample2 = __esm({
|
|
|
374126
374144
|
discriminantProperty: schemas_exports5.string(),
|
|
374127
374145
|
commonProperties: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).CommonPropertyWithExample)),
|
|
374128
374146
|
schemas: schemas_exports5.record(schemas_exports5.string(), schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample))
|
|
374129
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
374147
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374130
374148
|
}
|
|
374131
374149
|
});
|
|
374132
374150
|
|
|
@@ -374149,7 +374167,7 @@ var init_UnDiscriminatedOneOfSchemaWithExample2 = __esm({
|
|
|
374149
374167
|
init_core3();
|
|
374150
374168
|
UnDiscriminatedOneOfSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374151
374169
|
schemas: schemas_exports5.list(schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample))
|
|
374152
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
374170
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374153
374171
|
}
|
|
374154
374172
|
});
|
|
374155
374173
|
|
|
@@ -374160,7 +374178,7 @@ var init_PrimitiveSchemaWithExample2 = __esm({
|
|
|
374160
374178
|
init_core3();
|
|
374161
374179
|
PrimitiveSchemaWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
374162
374180
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).PrimitiveSchemaValueWithExample)
|
|
374163
|
-
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
374181
|
+
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithAvailability));
|
|
374164
374182
|
}
|
|
374165
374183
|
});
|
|
374166
374184
|
|
|
@@ -374434,6 +374452,7 @@ __export(serialization_exports3, {
|
|
|
374434
374452
|
AllOfPropertyConflict: () => AllOfPropertyConflict,
|
|
374435
374453
|
ArraySchema: () => ArraySchema,
|
|
374436
374454
|
ArraySchemaWithExample: () => ArraySchemaWithExample,
|
|
374455
|
+
Availability: () => Availability6,
|
|
374437
374456
|
Base64WithExample: () => Base64WithExample,
|
|
374438
374457
|
BasicSecurityScheme: () => BasicSecurityScheme,
|
|
374439
374458
|
BearerSecurityScheme: () => BearerSecurityScheme,
|
|
@@ -374453,7 +374472,6 @@ __export(serialization_exports3, {
|
|
|
374453
374472
|
DoubleSchema: () => DoubleSchema,
|
|
374454
374473
|
DoubleWithExample: () => DoubleWithExample,
|
|
374455
374474
|
Endpoint: () => Endpoint,
|
|
374456
|
-
EndpointAvailability: () => EndpointAvailability2,
|
|
374457
374475
|
EndpointExample: () => EndpointExample2,
|
|
374458
374476
|
EndpointSdkName: () => EndpointSdkName,
|
|
374459
374477
|
EndpointWithExample: () => EndpointWithExample,
|
|
@@ -374557,6 +374575,7 @@ __export(serialization_exports3, {
|
|
|
374557
374575
|
WebsocketHandshakeWithExample: () => WebsocketHandshakeWithExample,
|
|
374558
374576
|
WebsocketMessageExample: () => WebsocketMessageExample,
|
|
374559
374577
|
WebsocketSessionExample: () => WebsocketSessionExample,
|
|
374578
|
+
WithAvailability: () => WithAvailability,
|
|
374560
374579
|
WithDescription: () => WithDescription,
|
|
374561
374580
|
WithName: () => WithName,
|
|
374562
374581
|
WithSdkGroupName: () => WithSdkGroupName,
|
|
@@ -1164516,7 +1164535,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1164516
1164535
|
properties: {
|
|
1164517
1164536
|
...event,
|
|
1164518
1164537
|
...event.properties,
|
|
1164519
|
-
version: "0.33.2
|
|
1164538
|
+
version: "0.33.2",
|
|
1164520
1164539
|
usingAccessToken: true
|
|
1164521
1164540
|
}
|
|
1164522
1164541
|
});
|
|
@@ -1164578,7 +1164597,7 @@ var UserPosthogManager = class {
|
|
|
1164578
1164597
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1164579
1164598
|
event: "CLI",
|
|
1164580
1164599
|
properties: {
|
|
1164581
|
-
version: "0.33.2
|
|
1164600
|
+
version: "0.33.2",
|
|
1164582
1164601
|
...event,
|
|
1164583
1164602
|
...event.properties
|
|
1164584
1164603
|
}
|
|
@@ -1166841,7 +1166860,8 @@ async function visitPathParameters({ pathParameters, visitor, nodePath }) {
|
|
|
1166841
1166860
|
variable: async (variable) => {
|
|
1166842
1166861
|
var _a6;
|
|
1166843
1166862
|
return await ((_a6 = visitor.variableReference) == null ? void 0 : _a6.call(visitor, variable, [...nodePathForPathParameter, "variable"]));
|
|
1166844
|
-
}
|
|
1166863
|
+
},
|
|
1166864
|
+
availability: noop
|
|
1166845
1166865
|
});
|
|
1166846
1166866
|
}
|
|
1166847
1166867
|
} else {
|
|
@@ -1166857,7 +1166877,8 @@ async function visitPathParameters({ pathParameters, visitor, nodePath }) {
|
|
|
1166857
1166877
|
});
|
|
1166858
1166878
|
},
|
|
1166859
1166879
|
default: noop,
|
|
1166860
|
-
validation: noop
|
|
1166880
|
+
validation: noop,
|
|
1166881
|
+
availability: noop
|
|
1166861
1166882
|
});
|
|
1166862
1166883
|
}
|
|
1166863
1166884
|
}
|
|
@@ -1177169,6 +1177190,7 @@ __export(schemas_exports3, {
|
|
|
1177169
1177190
|
AuthSchemeReferenceSchema: () => AuthSchemeReferenceSchema,
|
|
1177170
1177191
|
AvailabilitySchema: () => AvailabilitySchema,
|
|
1177171
1177192
|
AvailabilityStatusSchema: () => AvailabilityStatusSchema,
|
|
1177193
|
+
AvailabilityUnionSchema: () => AvailabilityUnionSchema,
|
|
1177172
1177194
|
BaseTypeDeclarationSchema: () => BaseTypeDeclarationSchema,
|
|
1177173
1177195
|
BasicAuthSchemeSchema: () => BasicAuthSchemeSchema,
|
|
1177174
1177196
|
BearerAuthSchemeSchema: () => BearerAuthSchemeSchema,
|
|
@@ -1177264,6 +1177286,9 @@ var AvailabilitySchema = z.strictObject({
|
|
|
1177264
1177286
|
message: z.optional(z.string())
|
|
1177265
1177287
|
});
|
|
1177266
1177288
|
|
|
1177289
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/AvailabilityUnionSchema.js
|
|
1177290
|
+
var AvailabilityUnionSchema = z.optional(z.union([AvailabilityStatusSchema, AvailabilitySchema]));
|
|
1177291
|
+
|
|
1177267
1177292
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/WithDocsSchema.js
|
|
1177268
1177293
|
var WithDocsSchema = z.strictObject({
|
|
1177269
1177294
|
docs: z.optional(z.string())
|
|
@@ -1177271,7 +1177296,7 @@ var WithDocsSchema = z.strictObject({
|
|
|
1177271
1177296
|
|
|
1177272
1177297
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/DeclarationSchema.js
|
|
1177273
1177298
|
var DeclarationWithoutDocsSchema = z.strictObject({
|
|
1177274
|
-
availability:
|
|
1177299
|
+
availability: AvailabilityUnionSchema,
|
|
1177275
1177300
|
audiences: z.optional(z.array(z.string()))
|
|
1177276
1177301
|
});
|
|
1177277
1177302
|
var DeclarationSchema = WithDocsSchema.extend(DeclarationWithoutDocsSchema.shape);
|
|
@@ -1177438,6 +1177463,14 @@ var ObjectExtendsSchema = z.union([z.string(), z.array(z.string())]);
|
|
|
1177438
1177463
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/DeclarationWithNameSchema.js
|
|
1177439
1177464
|
var DeclarationWithNameSchema = DeclarationSchema.extend(WithNameSchema.shape);
|
|
1177440
1177465
|
|
|
1177466
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/WithAvailabilitySchema.js
|
|
1177467
|
+
var WithAvailabilitySchema = z.strictObject({
|
|
1177468
|
+
availability: AvailabilityUnionSchema
|
|
1177469
|
+
});
|
|
1177470
|
+
|
|
1177471
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/WithDocsAndAvailability.js
|
|
1177472
|
+
var WithDocsAndAvailabilitySchema = WithAvailabilitySchema.extend(WithDocsSchema.shape);
|
|
1177473
|
+
|
|
1177441
1177474
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/TypeReferenceSchema.js
|
|
1177442
1177475
|
function extendTypeReferenceSchema(extension3) {
|
|
1177443
1177476
|
return z.union([
|
|
@@ -1177451,6 +1177484,7 @@ function extendTypeReferenceSchema(extension3) {
|
|
|
1177451
1177484
|
}
|
|
1177452
1177485
|
var TypeReferenceSchema = extendTypeReferenceSchema({});
|
|
1177453
1177486
|
var TypeReferenceWithDocsSchema = extendTypeReferenceSchema(WithDocsSchema.shape);
|
|
1177487
|
+
var TypeReferenceWithDocsAndAvailabilitySchema = extendTypeReferenceSchema(WithDocsAndAvailabilitySchema.shape);
|
|
1177454
1177488
|
var TypeReferenceDeclarationSchema = extendTypeReferenceSchema(DeclarationSchema.shape);
|
|
1177455
1177489
|
var TypeReferenceDeclarationWithNameSchema = extendTypeReferenceSchema(DeclarationWithNameSchema.shape);
|
|
1177456
1177490
|
var TypeReferenceDeclarationWithEnvOverride = extendTypeReferenceSchema(DeclarationWithNameSchema.extend({
|
|
@@ -1177642,12 +1177676,13 @@ var ExampleWebSocketSession = WithNameAndDocsSchema.extend({
|
|
|
1177642
1177676
|
|
|
1177643
1177677
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/VariableReferenceSchema.js
|
|
1177644
1177678
|
var VariableReferenceSchema = WithDocsSchema.extend({
|
|
1177645
|
-
variable: z.string()
|
|
1177679
|
+
variable: z.string(),
|
|
1177680
|
+
availability: AvailabilityUnionSchema
|
|
1177646
1177681
|
});
|
|
1177647
1177682
|
|
|
1177648
1177683
|
// pnp:/home/runner/work/fern/fern/packages/cli/yaml/yaml-schema/lib/schemas/HttpPathParameterSchema.js
|
|
1177649
1177684
|
var HttpPathParameterSchema = z.union([
|
|
1177650
|
-
|
|
1177685
|
+
TypeReferenceWithDocsAndAvailabilitySchema,
|
|
1177651
1177686
|
z.string(),
|
|
1177652
1177687
|
VariableReferenceSchema
|
|
1177653
1177688
|
]);
|
|
@@ -1179109,6 +1179144,20 @@ function getSchemaName(schema2) {
|
|
|
1179109
1179144
|
});
|
|
1179110
1179145
|
}
|
|
1179111
1179146
|
|
|
1179147
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-to-fern/lib/utils/convertAvailability.js
|
|
1179148
|
+
function convertAvailability2(availability) {
|
|
1179149
|
+
switch (availability) {
|
|
1179150
|
+
case Availability5.Deprecated:
|
|
1179151
|
+
return "deprecated";
|
|
1179152
|
+
case Availability5.Beta:
|
|
1179153
|
+
return "pre-release";
|
|
1179154
|
+
case Availability5.GenerallyAvailable:
|
|
1179155
|
+
return "generally-available";
|
|
1179156
|
+
default:
|
|
1179157
|
+
return;
|
|
1179158
|
+
}
|
|
1179159
|
+
}
|
|
1179160
|
+
|
|
1179112
1179161
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-to-fern/lib/buildTypeDeclaration.js
|
|
1179113
1179162
|
function buildTypeDeclaration({ schema: schema2, context, declarationFile }) {
|
|
1179114
1179163
|
switch (schema2.type) {
|
|
@@ -1179167,15 +1179216,8 @@ function buildObjectTypeDeclaration({ schema: schema2, context, declarationFile
|
|
|
1179167
1179216
|
});
|
|
1179168
1179217
|
const audiences = property5.audiences;
|
|
1179169
1179218
|
const name3 = property5.nameOverride;
|
|
1179170
|
-
|
|
1179171
|
-
|
|
1179172
|
-
} else if (name3 != null) {
|
|
1179173
|
-
properties[property5.key] = typeof typeReference === "string" ? { type: typeReference, name: name3 } : { ...typeReference, name: name3 };
|
|
1179174
|
-
} else if (audiences.length > 0) {
|
|
1179175
|
-
properties[property5.key] = typeof typeReference === "string" ? { type: typeReference, audiences } : { ...typeReference, audiences };
|
|
1179176
|
-
} else {
|
|
1179177
|
-
properties[property5.key] = typeReference;
|
|
1179178
|
-
}
|
|
1179219
|
+
const availability = convertAvailability2(property5.availability);
|
|
1179220
|
+
properties[property5.key] = convertPropertyTypeReferenceToTypeDefinition(typeReference, audiences, name3, availability);
|
|
1179179
1179221
|
}
|
|
1179180
1179222
|
const propertiesToSetToUnknown = /* @__PURE__ */ new Set();
|
|
1179181
1179223
|
for (const allOfPropertyConflict of schema2.allOfPropertyConflicts) {
|
|
@@ -1179250,6 +1179292,9 @@ function buildObjectTypeDeclaration({ schema: schema2, context, declarationFile
|
|
|
1179250
1179292
|
if (schema2.additionalProperties) {
|
|
1179251
1179293
|
objectTypeDeclaration["extra-properties"] = true;
|
|
1179252
1179294
|
}
|
|
1179295
|
+
if (schema2.availability != null) {
|
|
1179296
|
+
objectTypeDeclaration.availability = convertAvailability2(schema2.availability);
|
|
1179297
|
+
}
|
|
1179253
1179298
|
return {
|
|
1179254
1179299
|
name: schema2.nameOverride ?? schema2.generatedName,
|
|
1179255
1179300
|
schema: objectTypeDeclaration
|
|
@@ -1179473,6 +1179518,18 @@ function getSchemaIdOfResolvedType({ schema: schema2, context }) {
|
|
|
1179473
1179518
|
}
|
|
1179474
1179519
|
return schema2;
|
|
1179475
1179520
|
}
|
|
1179521
|
+
function convertPropertyTypeReferenceToTypeDefinition(typeReference, audiences, name3, availability) {
|
|
1179522
|
+
if (audiences.length === 0 && name3 == null && availability == null) {
|
|
1179523
|
+
return typeReference;
|
|
1179524
|
+
} else {
|
|
1179525
|
+
return {
|
|
1179526
|
+
...typeof typeReference === "string" ? { type: typeReference } : { ...typeReference },
|
|
1179527
|
+
...audiences.length > 0 ? { audiences } : {},
|
|
1179528
|
+
...name3 != null ? { name: name3 } : {},
|
|
1179529
|
+
...availability != null ? { availability } : {}
|
|
1179530
|
+
};
|
|
1179531
|
+
}
|
|
1179532
|
+
}
|
|
1179476
1179533
|
|
|
1179477
1179534
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-to-fern/lib/utils/getHeaderName.js
|
|
1179478
1179535
|
function getHeaderName(headerWireKey) {
|
|
@@ -1179625,7 +1179682,7 @@ function buildHeader({ header, context, fileContainingReference }) {
|
|
|
1179625
1179682
|
const headerType = getTypeFromTypeReference(typeReference);
|
|
1179626
1179683
|
const headerWithoutXPrefix = header.name.replace(/^x-|^X-/, "");
|
|
1179627
1179684
|
const headerVariableName = header.parameterNameOverride != null ? header.parameterNameOverride : camelCase_default(headerWithoutXPrefix);
|
|
1179628
|
-
if (header.description == null && header.name === headerVariableName) {
|
|
1179685
|
+
if (header.description == null && header.name === headerVariableName && header.env == null && header.availability == null) {
|
|
1179629
1179686
|
return headerType;
|
|
1179630
1179687
|
}
|
|
1179631
1179688
|
const headerSchema = {
|
|
@@ -1179640,6 +1179697,9 @@ function buildHeader({ header, context, fileContainingReference }) {
|
|
|
1179640
1179697
|
if (header.env != null) {
|
|
1179641
1179698
|
headerSchema.env = header.env;
|
|
1179642
1179699
|
}
|
|
1179700
|
+
if (header.availability != null) {
|
|
1179701
|
+
headerSchema.availability = convertAvailability2(header.availability);
|
|
1179702
|
+
}
|
|
1179643
1179703
|
return headerSchema;
|
|
1179644
1179704
|
}
|
|
1179645
1179705
|
|
|
@@ -1179650,7 +1179710,7 @@ function buildPathParameter({ pathParameter, context, fileContainingReference })
|
|
|
1179650
1179710
|
context,
|
|
1179651
1179711
|
fileContainingReference
|
|
1179652
1179712
|
});
|
|
1179653
|
-
if (pathParameter.variableReference == null && pathParameter.description == null) {
|
|
1179713
|
+
if (pathParameter.variableReference == null && pathParameter.description == null && pathParameter.availability == null) {
|
|
1179654
1179714
|
return getTypeFromTypeReference(typeReference);
|
|
1179655
1179715
|
}
|
|
1179656
1179716
|
const pathParameterSchema = pathParameter.variableReference != null ? {
|
|
@@ -1179661,6 +1179721,9 @@ function buildPathParameter({ pathParameter, context, fileContainingReference })
|
|
|
1179661
1179721
|
if (pathParameter.description != null) {
|
|
1179662
1179722
|
pathParameterSchema.docs = pathParameter.description;
|
|
1179663
1179723
|
}
|
|
1179724
|
+
if (pathParameter.availability != null) {
|
|
1179725
|
+
pathParameterSchema.availability = convertAvailability2(pathParameter.availability);
|
|
1179726
|
+
}
|
|
1179664
1179727
|
return pathParameterSchema;
|
|
1179665
1179728
|
}
|
|
1179666
1179729
|
|
|
@@ -1179691,17 +1179754,6 @@ function getExtensionAndValidate(object4, extension3, schema2, context, breadcru
|
|
|
1179691
1179754
|
return void 0;
|
|
1179692
1179755
|
}
|
|
1179693
1179756
|
|
|
1179694
|
-
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/openapi/v3/extensions/extensions.js
|
|
1179695
|
-
var OpenAPIExtension = {
|
|
1179696
|
-
BEARER_FORMAT: "x-bearer-format",
|
|
1179697
|
-
ENUM_VAR_NAMES: "x-enum-varnames",
|
|
1179698
|
-
INTERNAL: "x-internal",
|
|
1179699
|
-
EXAMPLES: "x-examples",
|
|
1179700
|
-
TAGS: "x-tags",
|
|
1179701
|
-
REDOCLY_CODE_SAMPLES_KEBAB: "x-code-samples",
|
|
1179702
|
-
REDOCLY_CODE_SAMPLES_CAMEL: "x-codeSamples"
|
|
1179703
|
-
};
|
|
1179704
|
-
|
|
1179705
1179757
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/openapi/v3/extensions/id.js
|
|
1179706
1179758
|
var TypedExtensionId = {
|
|
1179707
1179759
|
of(key2) {
|
|
@@ -1179752,13 +1179804,47 @@ var FernOpenAPIExtension = {
|
|
|
1179752
1179804
|
FERN_VERSION: "x-fern-version"
|
|
1179753
1179805
|
};
|
|
1179754
1179806
|
|
|
1179807
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/isReferenceObject.js
|
|
1179808
|
+
function isReferenceObject(parameter) {
|
|
1179809
|
+
return parameter.$ref != null;
|
|
1179810
|
+
}
|
|
1179811
|
+
|
|
1179812
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertAvailability.js
|
|
1179813
|
+
function convertAvailability3(propertySchema) {
|
|
1179814
|
+
switch (getExtension(propertySchema, FernOpenAPIExtension.AVAILABILITY)) {
|
|
1179815
|
+
case "deprecated":
|
|
1179816
|
+
return Availability5.Deprecated;
|
|
1179817
|
+
case "beta":
|
|
1179818
|
+
return Availability5.Beta;
|
|
1179819
|
+
case "generally-available":
|
|
1179820
|
+
return Availability5.GenerallyAvailable;
|
|
1179821
|
+
default:
|
|
1179822
|
+
break;
|
|
1179823
|
+
}
|
|
1179824
|
+
if (!isReferenceObject(propertySchema) && propertySchema.deprecated) {
|
|
1179825
|
+
return Availability5.Deprecated;
|
|
1179826
|
+
}
|
|
1179827
|
+
return void 0;
|
|
1179828
|
+
}
|
|
1179829
|
+
|
|
1179830
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/openapi/v3/extensions/extensions.js
|
|
1179831
|
+
var OpenAPIExtension = {
|
|
1179832
|
+
BEARER_FORMAT: "x-bearer-format",
|
|
1179833
|
+
ENUM_VAR_NAMES: "x-enum-varnames",
|
|
1179834
|
+
INTERNAL: "x-internal",
|
|
1179835
|
+
EXAMPLES: "x-examples",
|
|
1179836
|
+
TAGS: "x-tags",
|
|
1179837
|
+
REDOCLY_CODE_SAMPLES_KEBAB: "x-code-samples",
|
|
1179838
|
+
REDOCLY_CODE_SAMPLES_CAMEL: "x-codeSamples"
|
|
1179839
|
+
};
|
|
1179840
|
+
|
|
1179755
1179841
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/openapi/v3/extensions/getFernEnum.js
|
|
1179756
1179842
|
function getFernEnum(schema2) {
|
|
1179757
1179843
|
return getExtension(schema2, FernOpenAPIExtension.FERN_ENUM);
|
|
1179758
1179844
|
}
|
|
1179759
1179845
|
|
|
1179760
1179846
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/openapi/v3/extensions/getFernTypeExtension.js
|
|
1179761
|
-
function getFernTypeExtension({ nameOverride, generatedName, schema: schema2, description }) {
|
|
1179847
|
+
function getFernTypeExtension({ nameOverride, generatedName, schema: schema2, description, availability }) {
|
|
1179762
1179848
|
const groupName = getExtension(schema2, FernOpenAPIExtension.SDK_GROUP_NAME);
|
|
1179763
1179849
|
const fernType = getExtension(schema2, FernOpenAPIExtension.TYPE_DEFINITION);
|
|
1179764
1179850
|
if (fernType == null) {
|
|
@@ -1179769,10 +1179855,11 @@ function getFernTypeExtension({ nameOverride, generatedName, schema: schema2, de
|
|
|
1179769
1179855
|
nameOverride,
|
|
1179770
1179856
|
generatedName,
|
|
1179771
1179857
|
description,
|
|
1179858
|
+
availability,
|
|
1179772
1179859
|
groupName: typeof groupName === "string" ? [groupName] : groupName
|
|
1179773
1179860
|
});
|
|
1179774
1179861
|
}
|
|
1179775
|
-
function getSchemaFromFernType({ fernType, nameOverride, generatedName, description, groupName }) {
|
|
1179862
|
+
function getSchemaFromFernType({ fernType, nameOverride, generatedName, description, availability, groupName }) {
|
|
1179776
1179863
|
return recursivelyVisitRawTypeReference({
|
|
1179777
1179864
|
type: fernType,
|
|
1179778
1179865
|
_default: void 0,
|
|
@@ -1179785,6 +1179872,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179785
1179872
|
nameOverride,
|
|
1179786
1179873
|
generatedName,
|
|
1179787
1179874
|
description,
|
|
1179875
|
+
availability,
|
|
1179788
1179876
|
groupName,
|
|
1179789
1179877
|
schema: PrimitiveSchemaValueWithExample.base64({
|
|
1179790
1179878
|
example: void 0
|
|
@@ -1179795,6 +1179883,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179795
1179883
|
nameOverride,
|
|
1179796
1179884
|
generatedName,
|
|
1179797
1179885
|
description,
|
|
1179886
|
+
availability,
|
|
1179798
1179887
|
groupName,
|
|
1179799
1179888
|
schema: PrimitiveSchemaValueWithExample.boolean({
|
|
1179800
1179889
|
default: void 0,
|
|
@@ -1179806,6 +1179895,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179806
1179895
|
nameOverride,
|
|
1179807
1179896
|
generatedName,
|
|
1179808
1179897
|
description,
|
|
1179898
|
+
availability,
|
|
1179809
1179899
|
groupName,
|
|
1179810
1179900
|
schema: PrimitiveSchemaValueWithExample.date({
|
|
1179811
1179901
|
example: void 0
|
|
@@ -1179816,6 +1179906,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179816
1179906
|
nameOverride,
|
|
1179817
1179907
|
generatedName,
|
|
1179818
1179908
|
description,
|
|
1179909
|
+
availability,
|
|
1179819
1179910
|
groupName,
|
|
1179820
1179911
|
schema: PrimitiveSchemaValueWithExample.datetime({
|
|
1179821
1179912
|
example: void 0
|
|
@@ -1179826,6 +1179917,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179826
1179917
|
nameOverride,
|
|
1179827
1179918
|
generatedName,
|
|
1179828
1179919
|
description,
|
|
1179920
|
+
availability,
|
|
1179829
1179921
|
groupName,
|
|
1179830
1179922
|
schema: PrimitiveSchemaValueWithExample.double({
|
|
1179831
1179923
|
default: void 0,
|
|
@@ -1179842,6 +1179934,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179842
1179934
|
nameOverride,
|
|
1179843
1179935
|
generatedName,
|
|
1179844
1179936
|
description,
|
|
1179937
|
+
availability,
|
|
1179845
1179938
|
groupName,
|
|
1179846
1179939
|
schema: PrimitiveSchemaValueWithExample.int({
|
|
1179847
1179940
|
default: void 0,
|
|
@@ -1179858,6 +1179951,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179858
1179951
|
nameOverride,
|
|
1179859
1179952
|
generatedName,
|
|
1179860
1179953
|
description,
|
|
1179954
|
+
availability,
|
|
1179861
1179955
|
groupName,
|
|
1179862
1179956
|
schema: PrimitiveSchemaValueWithExample.int64({
|
|
1179863
1179957
|
default: void 0,
|
|
@@ -1179871,6 +1179965,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179871
1179965
|
nameOverride,
|
|
1179872
1179966
|
generatedName,
|
|
1179873
1179967
|
description,
|
|
1179968
|
+
availability,
|
|
1179874
1179969
|
groupName,
|
|
1179875
1179970
|
schema: PrimitiveSchemaValueWithExample.string({
|
|
1179876
1179971
|
default: void 0,
|
|
@@ -1179891,6 +1179986,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179891
1179986
|
generatedName,
|
|
1179892
1179987
|
example: void 0,
|
|
1179893
1179988
|
description,
|
|
1179989
|
+
availability,
|
|
1179894
1179990
|
groupName
|
|
1179895
1179991
|
});
|
|
1179896
1179992
|
},
|
|
@@ -1179900,6 +1179996,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179900
1179996
|
key: keyType,
|
|
1179901
1179997
|
value: valueType,
|
|
1179902
1179998
|
description,
|
|
1179999
|
+
availability,
|
|
1179903
1180000
|
groupName,
|
|
1179904
1180001
|
example: void 0
|
|
1179905
1180002
|
}) : void 0,
|
|
@@ -1179908,6 +1180005,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179908
1180005
|
generatedName,
|
|
1179909
1180006
|
value: itemType,
|
|
1179910
1180007
|
description,
|
|
1180008
|
+
availability,
|
|
1179911
1180009
|
groupName,
|
|
1179912
1180010
|
example: void 0
|
|
1179913
1180011
|
}) : void 0,
|
|
@@ -1179916,6 +1180014,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179916
1180014
|
generatedName,
|
|
1179917
1180015
|
value: itemType,
|
|
1179918
1180016
|
description,
|
|
1180017
|
+
availability,
|
|
1179919
1180018
|
groupName
|
|
1179920
1180019
|
}) : void 0,
|
|
1179921
1180020
|
set: (itemType) => itemType != null ? SchemaWithExample.array({
|
|
@@ -1179923,6 +1180022,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179923
1180022
|
generatedName,
|
|
1179924
1180023
|
value: itemType,
|
|
1179925
1180024
|
description,
|
|
1180025
|
+
availability,
|
|
1179926
1180026
|
groupName,
|
|
1179927
1180027
|
example: void 0
|
|
1179928
1180028
|
}) : void 0,
|
|
@@ -1179937,6 +1180037,7 @@ function getSchemaFromFernType({ fernType, nameOverride, generatedName, descript
|
|
|
1179937
1180037
|
}
|
|
1179938
1180038
|
}),
|
|
1179939
1180039
|
description,
|
|
1180040
|
+
availability,
|
|
1179940
1180041
|
groupName
|
|
1179941
1180042
|
}),
|
|
1179942
1180043
|
named: () => {
|
|
@@ -1179954,23 +1180055,20 @@ function getValueIfBoolean(value) {
|
|
|
1179954
1180055
|
return void 0;
|
|
1179955
1180056
|
}
|
|
1179956
1180057
|
|
|
1179957
|
-
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/isReferenceObject.js
|
|
1179958
|
-
function isReferenceObject(parameter) {
|
|
1179959
|
-
return parameter.$ref != null;
|
|
1179960
|
-
}
|
|
1179961
|
-
|
|
1179962
1180058
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertAdditionalProperties.js
|
|
1179963
|
-
function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs, additionalProperties, description, wrapAsNullable, context, groupName, example }) {
|
|
1180059
|
+
function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs, additionalProperties, description, availability, wrapAsNullable, context, groupName, example }) {
|
|
1179964
1180060
|
if (typeof additionalProperties === "boolean" || isAdditionalPropertiesAny(additionalProperties)) {
|
|
1179965
1180061
|
return wrapMap({
|
|
1179966
1180062
|
nameOverride,
|
|
1179967
1180063
|
generatedName,
|
|
1179968
1180064
|
wrapAsNullable,
|
|
1179969
1180065
|
description,
|
|
1180066
|
+
availability,
|
|
1179970
1180067
|
keySchema: {
|
|
1179971
1180068
|
nameOverride: void 0,
|
|
1179972
1180069
|
generatedName: `${generatedName}Key`,
|
|
1179973
1180070
|
description: void 0,
|
|
1180071
|
+
availability: void 0,
|
|
1179974
1180072
|
schema: PrimitiveSchemaValueWithExample.string({
|
|
1179975
1180073
|
default: void 0,
|
|
1179976
1180074
|
pattern: void 0,
|
|
@@ -1179985,6 +1180083,7 @@ function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs,
|
|
|
1179985
1180083
|
nameOverride: void 0,
|
|
1179986
1180084
|
generatedName: `${generatedName}Value`,
|
|
1179987
1180085
|
description: void 0,
|
|
1180086
|
+
availability: void 0,
|
|
1179988
1180087
|
example: void 0,
|
|
1179989
1180088
|
groupName: void 0
|
|
1179990
1180089
|
}),
|
|
@@ -1179997,10 +1180096,12 @@ function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs,
|
|
|
1179997
1180096
|
generatedName,
|
|
1179998
1180097
|
wrapAsNullable,
|
|
1179999
1180098
|
description,
|
|
1180099
|
+
availability,
|
|
1180000
1180100
|
keySchema: {
|
|
1180001
1180101
|
nameOverride: void 0,
|
|
1180002
1180102
|
generatedName: `${generatedName}Key`,
|
|
1180003
1180103
|
description: void 0,
|
|
1180104
|
+
availability: void 0,
|
|
1180004
1180105
|
schema: PrimitiveSchemaValueWithExample.string({
|
|
1180005
1180106
|
default: void 0,
|
|
1180006
1180107
|
pattern: void 0,
|
|
@@ -1180016,7 +1180117,7 @@ function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs,
|
|
|
1180016
1180117
|
example
|
|
1180017
1180118
|
});
|
|
1180018
1180119
|
}
|
|
1180019
|
-
function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNullable, description, groupName, example }) {
|
|
1180120
|
+
function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNullable, description, availability, groupName, example }) {
|
|
1180020
1180121
|
if (wrapAsNullable) {
|
|
1180021
1180122
|
return SchemaWithExample.nullable({
|
|
1180022
1180123
|
nameOverride,
|
|
@@ -1180025,12 +1180126,14 @@ function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNu
|
|
|
1180025
1180126
|
nameOverride,
|
|
1180026
1180127
|
generatedName,
|
|
1180027
1180128
|
description,
|
|
1180129
|
+
availability: keySchema.availability,
|
|
1180028
1180130
|
key: keySchema,
|
|
1180029
1180131
|
value: valueSchema,
|
|
1180030
1180132
|
groupName,
|
|
1180031
1180133
|
example
|
|
1180032
1180134
|
}),
|
|
1180033
1180135
|
description,
|
|
1180136
|
+
availability,
|
|
1180034
1180137
|
groupName
|
|
1180035
1180138
|
});
|
|
1180036
1180139
|
}
|
|
@@ -1180038,6 +1180141,7 @@ function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNu
|
|
|
1180038
1180141
|
nameOverride,
|
|
1180039
1180142
|
generatedName,
|
|
1180040
1180143
|
description,
|
|
1180144
|
+
availability,
|
|
1180041
1180145
|
key: keySchema,
|
|
1180042
1180146
|
value: valueSchema,
|
|
1180043
1180147
|
groupName,
|
|
@@ -1180055,11 +1180159,12 @@ function isAdditionalPropertiesAny(additionalProperties) {
|
|
|
1180055
1180159
|
}
|
|
1180056
1180160
|
|
|
1180057
1180161
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertArray.js
|
|
1180058
|
-
function convertArray({ nameOverride, generatedName, breadcrumbs, item, description, wrapAsNullable, context, groupName, example }) {
|
|
1180162
|
+
function convertArray({ nameOverride, generatedName, breadcrumbs, item, description, availability, wrapAsNullable, context, groupName, example }) {
|
|
1180059
1180163
|
const itemSchema = item == null ? SchemaWithExample.unknown({
|
|
1180060
1180164
|
nameOverride,
|
|
1180061
1180165
|
generatedName,
|
|
1180062
1180166
|
description: void 0,
|
|
1180167
|
+
availability: void 0,
|
|
1180063
1180168
|
example: void 0,
|
|
1180064
1180169
|
groupName
|
|
1180065
1180170
|
}) : convertSchema(item, false, context, [...breadcrumbs, "Item"]);
|
|
@@ -1180070,10 +1180175,11 @@ function convertArray({ nameOverride, generatedName, breadcrumbs, item, descript
|
|
|
1180070
1180175
|
itemSchema,
|
|
1180071
1180176
|
wrapAsNullable,
|
|
1180072
1180177
|
description,
|
|
1180178
|
+
availability,
|
|
1180073
1180179
|
example
|
|
1180074
1180180
|
});
|
|
1180075
1180181
|
}
|
|
1180076
|
-
function wrapArray({ nameOverride, generatedName, itemSchema, wrapAsNullable, description, groupName, example }) {
|
|
1180182
|
+
function wrapArray({ nameOverride, generatedName, itemSchema, wrapAsNullable, description, availability, groupName, example }) {
|
|
1180077
1180183
|
if (wrapAsNullable) {
|
|
1180078
1180184
|
return SchemaWithExample.nullable({
|
|
1180079
1180185
|
nameOverride,
|
|
@@ -1180083,10 +1180189,12 @@ function wrapArray({ nameOverride, generatedName, itemSchema, wrapAsNullable, de
|
|
|
1180083
1180189
|
generatedName,
|
|
1180084
1180190
|
value: itemSchema,
|
|
1180085
1180191
|
description,
|
|
1180192
|
+
availability,
|
|
1180086
1180193
|
groupName,
|
|
1180087
1180194
|
example
|
|
1180088
1180195
|
}),
|
|
1180089
1180196
|
description,
|
|
1180197
|
+
availability,
|
|
1180090
1180198
|
groupName
|
|
1180091
1180199
|
});
|
|
1180092
1180200
|
}
|
|
@@ -1180095,13 +1180203,14 @@ function wrapArray({ nameOverride, generatedName, itemSchema, wrapAsNullable, de
|
|
|
1180095
1180203
|
generatedName,
|
|
1180096
1180204
|
value: itemSchema,
|
|
1180097
1180205
|
description,
|
|
1180206
|
+
availability,
|
|
1180098
1180207
|
groupName,
|
|
1180099
1180208
|
example
|
|
1180100
1180209
|
});
|
|
1180101
1180210
|
}
|
|
1180102
1180211
|
|
|
1180103
1180212
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertDiscriminatedOneOf.js
|
|
1180104
|
-
function convertDiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, discriminator, context, groupName }) {
|
|
1180213
|
+
function convertDiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs, properties, description, availability, required, wrapAsNullable, discriminator, context, groupName }) {
|
|
1180105
1180214
|
const discriminant4 = discriminator.propertyName;
|
|
1180106
1180215
|
const unionSubTypes = Object.fromEntries(Object.entries(discriminator.mapping ?? {}).map(([discriminantValue, schema2]) => {
|
|
1180107
1180216
|
const subtypeReference = convertReferenceObject({
|
|
@@ -1180128,12 +1180237,13 @@ function convertDiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs, p
|
|
|
1180128
1180237
|
wrapAsNullable,
|
|
1180129
1180238
|
properties: convertedProperties,
|
|
1180130
1180239
|
description,
|
|
1180240
|
+
availability,
|
|
1180131
1180241
|
discriminant: discriminant4,
|
|
1180132
1180242
|
subtypes: unionSubTypes,
|
|
1180133
1180243
|
groupName
|
|
1180134
1180244
|
});
|
|
1180135
1180245
|
}
|
|
1180136
|
-
function convertDiscriminatedOneOfWithVariants({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, discriminant: discriminant4, variants, context, groupName }) {
|
|
1180246
|
+
function convertDiscriminatedOneOfWithVariants({ nameOverride, generatedName, breadcrumbs, properties, description, availability, required, wrapAsNullable, discriminant: discriminant4, variants, context, groupName }) {
|
|
1180137
1180247
|
const unionSubTypes = Object.fromEntries(Object.entries(variants).map(([discriminantValue, schema2]) => {
|
|
1180138
1180248
|
if (isReferenceObject(schema2)) {
|
|
1180139
1180249
|
const subtypeReference = convertReferenceObject(schema2, false, context, [schema2.$ref]);
|
|
@@ -1180160,18 +1180270,20 @@ function convertDiscriminatedOneOfWithVariants({ nameOverride, generatedName, br
|
|
|
1180160
1180270
|
wrapAsNullable,
|
|
1180161
1180271
|
properties: convertedProperties,
|
|
1180162
1180272
|
description,
|
|
1180273
|
+
availability,
|
|
1180163
1180274
|
discriminant: discriminant4,
|
|
1180164
1180275
|
subtypes: unionSubTypes,
|
|
1180165
1180276
|
groupName
|
|
1180166
1180277
|
});
|
|
1180167
1180278
|
}
|
|
1180168
|
-
function wrapDiscriminantedOneOf({ nameOverride, generatedName, wrapAsNullable, properties, description, discriminant: discriminant4, subtypes, groupName }) {
|
|
1180279
|
+
function wrapDiscriminantedOneOf({ nameOverride, generatedName, wrapAsNullable, properties, description, availability, discriminant: discriminant4, subtypes, groupName }) {
|
|
1180169
1180280
|
if (wrapAsNullable) {
|
|
1180170
1180281
|
return SchemaWithExample.nullable({
|
|
1180171
1180282
|
nameOverride,
|
|
1180172
1180283
|
generatedName,
|
|
1180173
1180284
|
value: SchemaWithExample.oneOf(OneOfSchemaWithExample.discriminated({
|
|
1180174
1180285
|
description,
|
|
1180286
|
+
availability,
|
|
1180175
1180287
|
discriminantProperty: discriminant4,
|
|
1180176
1180288
|
nameOverride,
|
|
1180177
1180289
|
generatedName,
|
|
@@ -1180180,11 +1180292,13 @@ function wrapDiscriminantedOneOf({ nameOverride, generatedName, wrapAsNullable,
|
|
|
1180180
1180292
|
groupName
|
|
1180181
1180293
|
})),
|
|
1180182
1180294
|
groupName,
|
|
1180183
|
-
description
|
|
1180295
|
+
description,
|
|
1180296
|
+
availability
|
|
1180184
1180297
|
});
|
|
1180185
1180298
|
}
|
|
1180186
1180299
|
return SchemaWithExample.oneOf(OneOfSchemaWithExample.discriminated({
|
|
1180187
1180300
|
description,
|
|
1180301
|
+
availability,
|
|
1180188
1180302
|
discriminantProperty: discriminant4,
|
|
1180189
1180303
|
nameOverride,
|
|
1180190
1180304
|
generatedName,
|
|
@@ -1180262,7 +1180376,7 @@ function convertNumberToSnakeCase(number5) {
|
|
|
1180262
1180376
|
|
|
1180263
1180377
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertEnum.js
|
|
1180264
1180378
|
var VALID_ENUM_NAME_REGEX = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
1180265
|
-
function convertEnum({ nameOverride, generatedName, fernEnum, enumVarNames, enumValues, description, wrapAsNullable, groupName, context }) {
|
|
1180379
|
+
function convertEnum({ nameOverride, generatedName, fernEnum, enumVarNames, enumValues, description, availability, wrapAsNullable, groupName, context }) {
|
|
1180266
1180380
|
const strippedEnumVarNames = stripCommonPrefix(enumVarNames ?? []);
|
|
1180267
1180381
|
const uniqueValues = new Set(enumValues);
|
|
1180268
1180382
|
const values3 = Array.from(uniqueValues).map((value, index3) => {
|
|
@@ -1180281,6 +1180395,7 @@ function convertEnum({ nameOverride, generatedName, fernEnum, enumVarNames, enum
|
|
|
1180281
1180395
|
generatedName: generatedName2,
|
|
1180282
1180396
|
value,
|
|
1180283
1180397
|
description: fernEnumValue == null ? void 0 : fernEnumValue.description,
|
|
1180398
|
+
availability: void 0,
|
|
1180284
1180399
|
casing: {
|
|
1180285
1180400
|
snake: ((_a5 = fernEnumValue == null ? void 0 : fernEnumValue.casing) == null ? void 0 : _a5.snake) ?? void 0,
|
|
1180286
1180401
|
pascal: ((_b4 = fernEnumValue == null ? void 0 : fernEnumValue.casing) == null ? void 0 : _b4.pascal) ?? void 0,
|
|
@@ -1180295,10 +1180410,11 @@ function convertEnum({ nameOverride, generatedName, fernEnum, enumVarNames, enum
|
|
|
1180295
1180410
|
generatedName,
|
|
1180296
1180411
|
values: values3,
|
|
1180297
1180412
|
description,
|
|
1180413
|
+
availability,
|
|
1180298
1180414
|
groupName
|
|
1180299
1180415
|
});
|
|
1180300
1180416
|
}
|
|
1180301
|
-
function wrapEnum({ wrapAsNullable, nameOverride, generatedName, values: values3, description, groupName }) {
|
|
1180417
|
+
function wrapEnum({ wrapAsNullable, nameOverride, generatedName, values: values3, description, availability, groupName }) {
|
|
1180302
1180418
|
if (wrapAsNullable) {
|
|
1180303
1180419
|
return SchemaWithExample.nullable({
|
|
1180304
1180420
|
nameOverride,
|
|
@@ -1180308,10 +1180424,12 @@ function wrapEnum({ wrapAsNullable, nameOverride, generatedName, values: values3
|
|
|
1180308
1180424
|
generatedName,
|
|
1180309
1180425
|
values: values3,
|
|
1180310
1180426
|
description,
|
|
1180427
|
+
availability: void 0,
|
|
1180311
1180428
|
example: void 0,
|
|
1180312
1180429
|
groupName
|
|
1180313
1180430
|
}),
|
|
1180314
1180431
|
description,
|
|
1180432
|
+
availability,
|
|
1180315
1180433
|
groupName
|
|
1180316
1180434
|
});
|
|
1180317
1180435
|
}
|
|
@@ -1180320,6 +1180438,7 @@ function wrapEnum({ wrapAsNullable, nameOverride, generatedName, values: values3
|
|
|
1180320
1180438
|
generatedName,
|
|
1180321
1180439
|
values: values3,
|
|
1180322
1180440
|
description,
|
|
1180441
|
+
availability,
|
|
1180323
1180442
|
example: void 0,
|
|
1180324
1180443
|
groupName
|
|
1180325
1180444
|
});
|
|
@@ -1180334,7 +1180453,11 @@ var HARDCODED_ENUM_NAMES = {
|
|
|
1180334
1180453
|
"==": "EQUAL_TO",
|
|
1180335
1180454
|
"*": "ALL",
|
|
1180336
1180455
|
"": "EMPTY",
|
|
1180337
|
-
'""': "EMPTY_STRING"
|
|
1180456
|
+
'""': "EMPTY_STRING",
|
|
1180457
|
+
"-": "HYPHEN",
|
|
1180458
|
+
"|": "PIPE",
|
|
1180459
|
+
".": "DOT",
|
|
1180460
|
+
"/": "SLASH"
|
|
1180338
1180461
|
};
|
|
1180339
1180462
|
function generateEnumNameFromValue(value) {
|
|
1180340
1180463
|
const maybeParsedNumber = replaceStartingNumber(value);
|
|
@@ -1180372,7 +1180495,7 @@ function createLiteralSchemaValue(value) {
|
|
|
1180372
1180495
|
return LiteralSchemaValue.string(`${value}`);
|
|
1180373
1180496
|
}
|
|
1180374
1180497
|
}
|
|
1180375
|
-
function convertLiteral({ nameOverride, generatedName, wrapAsNullable, value, description, groupName }) {
|
|
1180498
|
+
function convertLiteral({ nameOverride, generatedName, wrapAsNullable, value, description, availability, groupName }) {
|
|
1180376
1180499
|
if (wrapAsNullable) {
|
|
1180377
1180500
|
return SchemaWithExample.nullable({
|
|
1180378
1180501
|
nameOverride,
|
|
@@ -1180382,9 +1180505,11 @@ function convertLiteral({ nameOverride, generatedName, wrapAsNullable, value, de
|
|
|
1180382
1180505
|
generatedName,
|
|
1180383
1180506
|
value: createLiteralSchemaValue(value),
|
|
1180384
1180507
|
description,
|
|
1180508
|
+
availability,
|
|
1180385
1180509
|
groupName
|
|
1180386
1180510
|
}),
|
|
1180387
1180511
|
description,
|
|
1180512
|
+
availability,
|
|
1180388
1180513
|
groupName
|
|
1180389
1180514
|
});
|
|
1180390
1180515
|
}
|
|
@@ -1180393,12 +1180518,13 @@ function convertLiteral({ nameOverride, generatedName, wrapAsNullable, value, de
|
|
|
1180393
1180518
|
generatedName,
|
|
1180394
1180519
|
value: createLiteralSchemaValue(value),
|
|
1180395
1180520
|
description,
|
|
1180521
|
+
availability,
|
|
1180396
1180522
|
groupName
|
|
1180397
1180523
|
});
|
|
1180398
1180524
|
}
|
|
1180399
1180525
|
|
|
1180400
1180526
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertNumber.js
|
|
1180401
|
-
function convertNumber({ nameOverride, generatedName, format: format5, _default: _default3, minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, description, wrapAsNullable, example, groupName }) {
|
|
1180527
|
+
function convertNumber({ nameOverride, generatedName, format: format5, _default: _default3, minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, description, availability, wrapAsNullable, example, groupName }) {
|
|
1180402
1180528
|
if (format5 == null || format5 === "double") {
|
|
1180403
1180529
|
return wrapPrimitive({
|
|
1180404
1180530
|
nameOverride,
|
|
@@ -1180414,6 +1180540,7 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180414
1180540
|
}),
|
|
1180415
1180541
|
wrapAsNullable,
|
|
1180416
1180542
|
description,
|
|
1180543
|
+
availability,
|
|
1180417
1180544
|
groupName
|
|
1180418
1180545
|
});
|
|
1180419
1180546
|
} else if (format5 === "float") {
|
|
@@ -1180425,6 +1180552,7 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180425
1180552
|
}),
|
|
1180426
1180553
|
wrapAsNullable,
|
|
1180427
1180554
|
description,
|
|
1180555
|
+
availability,
|
|
1180428
1180556
|
groupName
|
|
1180429
1180557
|
});
|
|
1180430
1180558
|
} else if (format5 === "int32") {
|
|
@@ -1180442,6 +1180570,7 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180442
1180570
|
}),
|
|
1180443
1180571
|
wrapAsNullable,
|
|
1180444
1180572
|
description,
|
|
1180573
|
+
availability,
|
|
1180445
1180574
|
groupName
|
|
1180446
1180575
|
});
|
|
1180447
1180576
|
} else if (format5 === "int64") {
|
|
@@ -1180454,6 +1180583,7 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180454
1180583
|
}),
|
|
1180455
1180584
|
wrapAsNullable,
|
|
1180456
1180585
|
description,
|
|
1180586
|
+
availability,
|
|
1180457
1180587
|
groupName
|
|
1180458
1180588
|
});
|
|
1180459
1180589
|
} else if (format5 === "time-delta") {
|
|
@@ -1180465,6 +1180595,7 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180465
1180595
|
}),
|
|
1180466
1180596
|
wrapAsNullable,
|
|
1180467
1180597
|
description,
|
|
1180598
|
+
availability,
|
|
1180468
1180599
|
groupName
|
|
1180469
1180600
|
});
|
|
1180470
1180601
|
}
|
|
@@ -1180476,10 +1180607,120 @@ function convertNumber({ nameOverride, generatedName, format: format5, _default:
|
|
|
1180476
1180607
|
}),
|
|
1180477
1180608
|
wrapAsNullable,
|
|
1180478
1180609
|
description,
|
|
1180610
|
+
availability,
|
|
1180479
1180611
|
groupName
|
|
1180480
1180612
|
});
|
|
1180481
1180613
|
}
|
|
1180482
1180614
|
|
|
1180615
|
+
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/getBreadcrumbsFromReference.js
|
|
1180616
|
+
var STARTS_WITH_COMPONENTS_SCHEMAS = {
|
|
1180617
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "#" && refUnderProcessing[1] === "components" && refUnderProcessing[2] === "schemas",
|
|
1180618
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180619
|
+
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180620
|
+
return {
|
|
1180621
|
+
refUnderProcessing: refUnderProcessing.slice(4),
|
|
1180622
|
+
newBreadcrumbs
|
|
1180623
|
+
};
|
|
1180624
|
+
}
|
|
1180625
|
+
};
|
|
1180626
|
+
var STARTS_WITH_COMPONENTS_RESPONSES = {
|
|
1180627
|
+
isApplicable: (breadcrumbs) => breadcrumbs[0] === "#" && breadcrumbs[1] === "components" && breadcrumbs[2] === "responses",
|
|
1180628
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180629
|
+
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180630
|
+
refUnderProcessing = refUnderProcessing.slice(4);
|
|
1180631
|
+
return {
|
|
1180632
|
+
refUnderProcessing: refUnderProcessing.slice(4),
|
|
1180633
|
+
newBreadcrumbs
|
|
1180634
|
+
};
|
|
1180635
|
+
}
|
|
1180636
|
+
};
|
|
1180637
|
+
var STARTS_WITH_COMPONENTS_PARAMETERS = {
|
|
1180638
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "#" && refUnderProcessing[1] === "components" && refUnderProcessing[2] === "parameters",
|
|
1180639
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180640
|
+
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180641
|
+
refUnderProcessing = refUnderProcessing.slice(4);
|
|
1180642
|
+
if (refUnderProcessing[0] === "schema") {
|
|
1180643
|
+
refUnderProcessing = refUnderProcessing.slice(1);
|
|
1180644
|
+
}
|
|
1180645
|
+
return {
|
|
1180646
|
+
refUnderProcessing,
|
|
1180647
|
+
newBreadcrumbs
|
|
1180648
|
+
};
|
|
1180649
|
+
}
|
|
1180650
|
+
};
|
|
1180651
|
+
var EXTRACT_PROPERTY = {
|
|
1180652
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "properties",
|
|
1180653
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180654
|
+
const newBreadcrumbs = [refUnderProcessing[1] ?? ""];
|
|
1180655
|
+
return {
|
|
1180656
|
+
refUnderProcessing: refUnderProcessing.slice(2),
|
|
1180657
|
+
newBreadcrumbs
|
|
1180658
|
+
};
|
|
1180659
|
+
}
|
|
1180660
|
+
};
|
|
1180661
|
+
var REMOVE_ITEMS_KEYWORD = {
|
|
1180662
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "items",
|
|
1180663
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180664
|
+
return {
|
|
1180665
|
+
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180666
|
+
newBreadcrumbs: []
|
|
1180667
|
+
};
|
|
1180668
|
+
}
|
|
1180669
|
+
};
|
|
1180670
|
+
var REMOVE_ALL_OF_KEYWORD = {
|
|
1180671
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "allOf",
|
|
1180672
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180673
|
+
return {
|
|
1180674
|
+
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180675
|
+
newBreadcrumbs: []
|
|
1180676
|
+
};
|
|
1180677
|
+
}
|
|
1180678
|
+
};
|
|
1180679
|
+
var REMOVE_ANY_OF_KEYWORD = {
|
|
1180680
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "anyOf",
|
|
1180681
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180682
|
+
return {
|
|
1180683
|
+
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180684
|
+
newBreadcrumbs: []
|
|
1180685
|
+
};
|
|
1180686
|
+
}
|
|
1180687
|
+
};
|
|
1180688
|
+
var REMOVE_ONE_OF_KEYWORD = {
|
|
1180689
|
+
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "oneOf",
|
|
1180690
|
+
applyStrategy: (refUnderProcessing) => {
|
|
1180691
|
+
return {
|
|
1180692
|
+
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180693
|
+
newBreadcrumbs: []
|
|
1180694
|
+
};
|
|
1180695
|
+
}
|
|
1180696
|
+
};
|
|
1180697
|
+
function getBreadcrumbsFromReference(reference) {
|
|
1180698
|
+
let refUnderProcessing = reference.split("/").map((breadcrumb) => breadcrumb.replace(/~1/g, "/"));
|
|
1180699
|
+
let breadcrumbs = [];
|
|
1180700
|
+
const strategies = [
|
|
1180701
|
+
STARTS_WITH_COMPONENTS_SCHEMAS,
|
|
1180702
|
+
STARTS_WITH_COMPONENTS_RESPONSES,
|
|
1180703
|
+
STARTS_WITH_COMPONENTS_PARAMETERS,
|
|
1180704
|
+
EXTRACT_PROPERTY,
|
|
1180705
|
+
REMOVE_ITEMS_KEYWORD,
|
|
1180706
|
+
REMOVE_ALL_OF_KEYWORD,
|
|
1180707
|
+
REMOVE_ANY_OF_KEYWORD,
|
|
1180708
|
+
REMOVE_ONE_OF_KEYWORD
|
|
1180709
|
+
];
|
|
1180710
|
+
let previousRefUnderProcessing;
|
|
1180711
|
+
do {
|
|
1180712
|
+
previousRefUnderProcessing = refUnderProcessing;
|
|
1180713
|
+
for (const strategy of strategies) {
|
|
1180714
|
+
if (strategy.isApplicable(refUnderProcessing)) {
|
|
1180715
|
+
const { refUnderProcessing: newRefUnderProcessing, newBreadcrumbs } = strategy.applyStrategy(refUnderProcessing);
|
|
1180716
|
+
refUnderProcessing = newRefUnderProcessing;
|
|
1180717
|
+
breadcrumbs = [...breadcrumbs, ...newBreadcrumbs];
|
|
1180718
|
+
}
|
|
1180719
|
+
}
|
|
1180720
|
+
} while (refUnderProcessing.join("") !== previousRefUnderProcessing.join(""));
|
|
1180721
|
+
return breadcrumbs;
|
|
1180722
|
+
}
|
|
1180723
|
+
|
|
1180483
1180724
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/getSchemaName.js
|
|
1180484
1180725
|
function getGeneratedTypeName(breadcrumbs) {
|
|
1180485
1180726
|
const underscoreDelimeted = breadcrumbs.join("_");
|
|
@@ -1180506,11 +1180747,13 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180506
1180747
|
generatedName: schema2.generatedName,
|
|
1180507
1180748
|
nameOverride: schema2.nameOverride,
|
|
1180508
1180749
|
groupName: schema2.groupName,
|
|
1180509
|
-
additionalProperties: schema2.additionalProperties
|
|
1180750
|
+
additionalProperties: schema2.additionalProperties,
|
|
1180751
|
+
availability: schema2.availability
|
|
1180510
1180752
|
});
|
|
1180511
1180753
|
case "array":
|
|
1180512
1180754
|
return Schema2.array({
|
|
1180513
1180755
|
description: schema2.description,
|
|
1180756
|
+
availability: schema2.availability,
|
|
1180514
1180757
|
value: convertSchemaWithExampleToSchema(schema2.value),
|
|
1180515
1180758
|
generatedName: schema2.generatedName,
|
|
1180516
1180759
|
nameOverride: schema2.nameOverride,
|
|
@@ -1180519,6 +1180762,7 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180519
1180762
|
case "enum":
|
|
1180520
1180763
|
return Schema2.enum({
|
|
1180521
1180764
|
description: schema2.description,
|
|
1180765
|
+
availability: schema2.availability,
|
|
1180522
1180766
|
generatedName: schema2.generatedName,
|
|
1180523
1180767
|
nameOverride: schema2.nameOverride,
|
|
1180524
1180768
|
values: schema2.values,
|
|
@@ -1180527,6 +1180771,7 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180527
1180771
|
case "literal":
|
|
1180528
1180772
|
return Schema2.literal({
|
|
1180529
1180773
|
description: schema2.description,
|
|
1180774
|
+
availability: schema2.availability,
|
|
1180530
1180775
|
value: schema2.value,
|
|
1180531
1180776
|
generatedName: schema2.generatedName,
|
|
1180532
1180777
|
nameOverride: schema2.nameOverride,
|
|
@@ -1180537,6 +1180782,7 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180537
1180782
|
generatedName: schema2.generatedName,
|
|
1180538
1180783
|
nameOverride: schema2.nameOverride,
|
|
1180539
1180784
|
description: schema2.description,
|
|
1180785
|
+
availability: schema2.availability,
|
|
1180540
1180786
|
value: convertSchemaWithExampleToSchema(schema2.value),
|
|
1180541
1180787
|
groupName: schema2.groupName
|
|
1180542
1180788
|
});
|
|
@@ -1180545,12 +1180791,14 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180545
1180791
|
generatedName: schema2.generatedName,
|
|
1180546
1180792
|
nameOverride: schema2.nameOverride,
|
|
1180547
1180793
|
description: schema2.description,
|
|
1180794
|
+
availability: schema2.availability,
|
|
1180548
1180795
|
value: convertSchemaWithExampleToSchema(schema2.value),
|
|
1180549
1180796
|
groupName: schema2.groupName
|
|
1180550
1180797
|
});
|
|
1180551
1180798
|
case "primitive":
|
|
1180552
1180799
|
return Schema2.primitive({
|
|
1180553
1180800
|
description: schema2.description,
|
|
1180801
|
+
availability: schema2.availability,
|
|
1180554
1180802
|
schema: convertToPrimitiveSchemaValue(schema2.schema),
|
|
1180555
1180803
|
generatedName: schema2.generatedName,
|
|
1180556
1180804
|
nameOverride: schema2.nameOverride,
|
|
@@ -1180559,8 +1180807,10 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180559
1180807
|
case "map":
|
|
1180560
1180808
|
return Schema2.map({
|
|
1180561
1180809
|
description: schema2.description,
|
|
1180810
|
+
availability: schema2.availability,
|
|
1180562
1180811
|
key: Schema2.primitive({
|
|
1180563
1180812
|
description: schema2.key.description,
|
|
1180813
|
+
availability: schema2.key.availability,
|
|
1180564
1180814
|
schema: convertToPrimitiveSchemaValue(schema2.key.schema),
|
|
1180565
1180815
|
generatedName: schema2.key.generatedName,
|
|
1180566
1180816
|
nameOverride: schema2.key.nameOverride,
|
|
@@ -1180574,6 +1180824,7 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1180574
1180824
|
case "reference":
|
|
1180575
1180825
|
return Schema2.reference({
|
|
1180576
1180826
|
description: schema2.description,
|
|
1180827
|
+
availability: schema2.availability,
|
|
1180577
1180828
|
generatedName: schema2.generatedName,
|
|
1180578
1180829
|
nameOverride: schema2.nameOverride,
|
|
1180579
1180830
|
schema: schema2.schema,
|
|
@@ -1180598,6 +1180849,7 @@ function convertToOneOf(oneOfSchema) {
|
|
|
1180598
1180849
|
};
|
|
1180599
1180850
|
}),
|
|
1180600
1180851
|
description: oneOfSchema.description,
|
|
1180852
|
+
availability: oneOfSchema.availability,
|
|
1180601
1180853
|
discriminantProperty: oneOfSchema.discriminantProperty,
|
|
1180602
1180854
|
generatedName: oneOfSchema.generatedName,
|
|
1180603
1180855
|
nameOverride: oneOfSchema.nameOverride,
|
|
@@ -1180609,6 +1180861,7 @@ function convertToOneOf(oneOfSchema) {
|
|
|
1180609
1180861
|
case "undisciminated":
|
|
1180610
1180862
|
return OneOfSchema.undisciminated({
|
|
1180611
1180863
|
description: oneOfSchema.description,
|
|
1180864
|
+
availability: oneOfSchema.availability,
|
|
1180612
1180865
|
generatedName: oneOfSchema.generatedName,
|
|
1180613
1180866
|
nameOverride: oneOfSchema.nameOverride,
|
|
1180614
1180867
|
schemas: oneOfSchema.schemas.map((oneOfSchema2) => convertSchemaWithExampleToSchema(oneOfSchema2)),
|
|
@@ -1180649,7 +1180902,8 @@ function convertToObjectProperty(objectProperty) {
|
|
|
1180649
1180902
|
key: objectProperty.key,
|
|
1180650
1180903
|
schema: convertSchemaWithExampleToSchema(objectProperty.schema),
|
|
1180651
1180904
|
audiences: objectProperty.audiences,
|
|
1180652
|
-
nameOverride: objectProperty.nameOverride
|
|
1180905
|
+
nameOverride: objectProperty.nameOverride,
|
|
1180906
|
+
availability: objectProperty.availability
|
|
1180653
1180907
|
};
|
|
1180654
1180908
|
}
|
|
1180655
1180909
|
|
|
@@ -1180726,117 +1180980,8 @@ function isObjectEqual(a2, b2) {
|
|
|
1180726
1180980
|
});
|
|
1180727
1180981
|
}
|
|
1180728
1180982
|
|
|
1180729
|
-
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/utils/getBreadcrumbsFromReference.js
|
|
1180730
|
-
var STARTS_WITH_COMPONENTS_SCHEMAS = {
|
|
1180731
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "#" && refUnderProcessing[1] === "components" && refUnderProcessing[2] === "schemas",
|
|
1180732
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180733
|
-
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180734
|
-
return {
|
|
1180735
|
-
refUnderProcessing: refUnderProcessing.slice(4),
|
|
1180736
|
-
newBreadcrumbs
|
|
1180737
|
-
};
|
|
1180738
|
-
}
|
|
1180739
|
-
};
|
|
1180740
|
-
var STARTS_WITH_COMPONENTS_RESPONSES = {
|
|
1180741
|
-
isApplicable: (breadcrumbs) => breadcrumbs[0] === "#" && breadcrumbs[1] === "components" && breadcrumbs[2] === "responses",
|
|
1180742
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180743
|
-
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180744
|
-
refUnderProcessing = refUnderProcessing.slice(4);
|
|
1180745
|
-
return {
|
|
1180746
|
-
refUnderProcessing: refUnderProcessing.slice(4),
|
|
1180747
|
-
newBreadcrumbs
|
|
1180748
|
-
};
|
|
1180749
|
-
}
|
|
1180750
|
-
};
|
|
1180751
|
-
var STARTS_WITH_COMPONENTS_PARAMETERS = {
|
|
1180752
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "#" && refUnderProcessing[1] === "components" && refUnderProcessing[2] === "parameters",
|
|
1180753
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180754
|
-
const newBreadcrumbs = [refUnderProcessing[3] ?? ""];
|
|
1180755
|
-
refUnderProcessing = refUnderProcessing.slice(4);
|
|
1180756
|
-
if (refUnderProcessing[0] === "schema") {
|
|
1180757
|
-
refUnderProcessing = refUnderProcessing.slice(1);
|
|
1180758
|
-
}
|
|
1180759
|
-
return {
|
|
1180760
|
-
refUnderProcessing,
|
|
1180761
|
-
newBreadcrumbs
|
|
1180762
|
-
};
|
|
1180763
|
-
}
|
|
1180764
|
-
};
|
|
1180765
|
-
var EXTRACT_PROPERTY = {
|
|
1180766
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "properties",
|
|
1180767
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180768
|
-
const newBreadcrumbs = [refUnderProcessing[1] ?? ""];
|
|
1180769
|
-
return {
|
|
1180770
|
-
refUnderProcessing: refUnderProcessing.slice(2),
|
|
1180771
|
-
newBreadcrumbs
|
|
1180772
|
-
};
|
|
1180773
|
-
}
|
|
1180774
|
-
};
|
|
1180775
|
-
var REMOVE_ITEMS_KEYWORD = {
|
|
1180776
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "items",
|
|
1180777
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180778
|
-
return {
|
|
1180779
|
-
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180780
|
-
newBreadcrumbs: []
|
|
1180781
|
-
};
|
|
1180782
|
-
}
|
|
1180783
|
-
};
|
|
1180784
|
-
var REMOVE_ALL_OF_KEYWORD = {
|
|
1180785
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "allOf",
|
|
1180786
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180787
|
-
return {
|
|
1180788
|
-
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180789
|
-
newBreadcrumbs: []
|
|
1180790
|
-
};
|
|
1180791
|
-
}
|
|
1180792
|
-
};
|
|
1180793
|
-
var REMOVE_ANY_OF_KEYWORD = {
|
|
1180794
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "anyOf",
|
|
1180795
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180796
|
-
return {
|
|
1180797
|
-
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180798
|
-
newBreadcrumbs: []
|
|
1180799
|
-
};
|
|
1180800
|
-
}
|
|
1180801
|
-
};
|
|
1180802
|
-
var REMOVE_ONE_OF_KEYWORD = {
|
|
1180803
|
-
isApplicable: (refUnderProcessing) => refUnderProcessing[0] === "oneOf",
|
|
1180804
|
-
applyStrategy: (refUnderProcessing) => {
|
|
1180805
|
-
return {
|
|
1180806
|
-
refUnderProcessing: refUnderProcessing.slice(1),
|
|
1180807
|
-
newBreadcrumbs: []
|
|
1180808
|
-
};
|
|
1180809
|
-
}
|
|
1180810
|
-
};
|
|
1180811
|
-
function getBreadcrumbsFromReference(reference) {
|
|
1180812
|
-
let refUnderProcessing = reference.split("/").map((breadcrumb) => breadcrumb.replace(/~1/g, "/"));
|
|
1180813
|
-
let breadcrumbs = [];
|
|
1180814
|
-
const strategies = [
|
|
1180815
|
-
STARTS_WITH_COMPONENTS_SCHEMAS,
|
|
1180816
|
-
STARTS_WITH_COMPONENTS_RESPONSES,
|
|
1180817
|
-
STARTS_WITH_COMPONENTS_PARAMETERS,
|
|
1180818
|
-
EXTRACT_PROPERTY,
|
|
1180819
|
-
REMOVE_ITEMS_KEYWORD,
|
|
1180820
|
-
REMOVE_ALL_OF_KEYWORD,
|
|
1180821
|
-
REMOVE_ANY_OF_KEYWORD,
|
|
1180822
|
-
REMOVE_ONE_OF_KEYWORD
|
|
1180823
|
-
];
|
|
1180824
|
-
let previousRefUnderProcessing;
|
|
1180825
|
-
do {
|
|
1180826
|
-
previousRefUnderProcessing = refUnderProcessing;
|
|
1180827
|
-
for (const strategy of strategies) {
|
|
1180828
|
-
if (strategy.isApplicable(refUnderProcessing)) {
|
|
1180829
|
-
const { refUnderProcessing: newRefUnderProcessing, newBreadcrumbs } = strategy.applyStrategy(refUnderProcessing);
|
|
1180830
|
-
refUnderProcessing = newRefUnderProcessing;
|
|
1180831
|
-
breadcrumbs = [...breadcrumbs, ...newBreadcrumbs];
|
|
1180832
|
-
}
|
|
1180833
|
-
}
|
|
1180834
|
-
} while (refUnderProcessing.join("") !== previousRefUnderProcessing.join(""));
|
|
1180835
|
-
return breadcrumbs;
|
|
1180836
|
-
}
|
|
1180837
|
-
|
|
1180838
1180983
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertObject.js
|
|
1180839
|
-
function convertObject({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, allOf, context, propertiesToExclude, groupName, fullExamples, additionalProperties }) {
|
|
1180984
|
+
function convertObject({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, allOf, context, propertiesToExclude, groupName, fullExamples, additionalProperties, availability }) {
|
|
1180840
1180985
|
const allRequired = [...required ?? []];
|
|
1180841
1180986
|
const propertiesToConvert = { ...properties };
|
|
1180842
1180987
|
const inlinedParentProperties = [];
|
|
@@ -1180861,6 +1181006,7 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1180861
1181006
|
generatedName: "",
|
|
1180862
1181007
|
value: property5.schema,
|
|
1180863
1181008
|
description: void 0,
|
|
1181009
|
+
availability: property5.availability,
|
|
1180864
1181010
|
groupName: void 0
|
|
1180865
1181011
|
})
|
|
1180866
1181012
|
};
|
|
@@ -1180918,6 +1181064,7 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1180918
1181064
|
const convertedProperties = Object.entries(propertiesToConvert).map(([propertyName, propertySchema]) => {
|
|
1180919
1181065
|
const isRequired = allRequired.includes(propertyName);
|
|
1180920
1181066
|
const audiences = getExtension(propertySchema, FernOpenAPIExtension.AUDIENCES) ?? [];
|
|
1181067
|
+
const availability2 = convertAvailability3(propertySchema);
|
|
1180921
1181068
|
const propertyNameOverride = getExtension(propertySchema, FernOpenAPIExtension.FERN_PROPERTY_NAME);
|
|
1180922
1181069
|
const propertyBreadcrumbs = [...breadcrumbs, propertyName];
|
|
1180923
1181070
|
const generatedName2 = getGeneratedPropertyName(propertyBreadcrumbs);
|
|
@@ -1180925,6 +1181072,7 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1180925
1181072
|
nameOverride,
|
|
1180926
1181073
|
generatedName: generatedName2,
|
|
1180927
1181074
|
description: void 0,
|
|
1181075
|
+
availability: availability2,
|
|
1180928
1181076
|
value: convertSchema(propertySchema, false, context, propertyBreadcrumbs),
|
|
1180929
1181077
|
groupName
|
|
1180930
1181078
|
});
|
|
@@ -1180943,7 +1181091,8 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1180943
1181091
|
nameOverride: propertyNameOverride,
|
|
1180944
1181092
|
audiences,
|
|
1180945
1181093
|
conflict: conflicts,
|
|
1180946
|
-
generatedName: getGeneratedPropertyName([...breadcrumbs, propertyName])
|
|
1181094
|
+
generatedName: getGeneratedPropertyName([...breadcrumbs, propertyName]),
|
|
1181095
|
+
availability: availability2
|
|
1180947
1181096
|
};
|
|
1180948
1181097
|
});
|
|
1180949
1181098
|
convertedProperties.push(...inlinedParentProperties.map((property5) => {
|
|
@@ -1180973,10 +1181122,11 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1180973
1181122
|
allOfPropertyConflicts,
|
|
1180974
1181123
|
groupName,
|
|
1180975
1181124
|
fullExamples,
|
|
1180976
|
-
additionalProperties
|
|
1181125
|
+
additionalProperties,
|
|
1181126
|
+
availability
|
|
1180977
1181127
|
});
|
|
1180978
1181128
|
}
|
|
1180979
|
-
function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, description, allOf, allOfPropertyConflicts, groupName, fullExamples, additionalProperties }) {
|
|
1181129
|
+
function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, description, allOf, allOfPropertyConflicts, groupName, fullExamples, additionalProperties, availability }) {
|
|
1180980
1181130
|
if (wrapAsNullable) {
|
|
1180981
1181131
|
return SchemaWithExample.nullable({
|
|
1180982
1181132
|
nameOverride,
|
|
@@ -1180990,9 +1181140,11 @@ function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, d
|
|
|
1180990
1181140
|
allOfPropertyConflicts,
|
|
1180991
1181141
|
groupName,
|
|
1180992
1181142
|
fullExamples,
|
|
1180993
|
-
additionalProperties: isAdditionalPropertiesAny(additionalProperties)
|
|
1181143
|
+
additionalProperties: isAdditionalPropertiesAny(additionalProperties),
|
|
1181144
|
+
availability: void 0
|
|
1180994
1181145
|
}),
|
|
1180995
1181146
|
description,
|
|
1181147
|
+
availability,
|
|
1180996
1181148
|
groupName
|
|
1180997
1181149
|
});
|
|
1180998
1181150
|
}
|
|
@@ -1181005,7 +1181157,8 @@ function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, d
|
|
|
1181005
1181157
|
allOfPropertyConflicts,
|
|
1181006
1181158
|
groupName,
|
|
1181007
1181159
|
fullExamples,
|
|
1181008
|
-
additionalProperties: isAdditionalPropertiesAny(additionalProperties)
|
|
1181160
|
+
additionalProperties: isAdditionalPropertiesAny(additionalProperties),
|
|
1181161
|
+
availability
|
|
1181009
1181162
|
});
|
|
1181010
1181163
|
}
|
|
1181011
1181164
|
function getAllProperties({ schema: schema2, context, breadcrumbs }) {
|
|
@@ -1181028,7 +1181181,7 @@ function getAllProperties({ schema: schema2, context, breadcrumbs }) {
|
|
|
1181028
1181181
|
}
|
|
1181029
1181182
|
|
|
1181030
1181183
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-parser/lib/schema/convertUndiscriminatedOneOf.js
|
|
1181031
|
-
function convertUndiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs, description, wrapAsNullable, context, subtypes, groupName }) {
|
|
1181184
|
+
function convertUndiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs, description, availability, wrapAsNullable, context, subtypes, groupName }) {
|
|
1181032
1181185
|
const subtypePrefixes = getUniqueSubTypeNames({ schemas: subtypes });
|
|
1181033
1181186
|
const convertedSubtypes = subtypes.flatMap((schema2, index3) => {
|
|
1181034
1181187
|
if (!isReferenceObject(schema2) && schema2.enum != null) {
|
|
@@ -1181038,7 +1181191,8 @@ function convertUndiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs,
|
|
|
1181038
1181191
|
generatedName: getGeneratedTypeName([generatedName, enumValue]),
|
|
1181039
1181192
|
value: LiteralSchemaValue.string(enumValue),
|
|
1181040
1181193
|
groupName: void 0,
|
|
1181041
|
-
description: void 0
|
|
1181194
|
+
description: void 0,
|
|
1181195
|
+
availability: enumValue.availability
|
|
1181042
1181196
|
});
|
|
1181043
1181197
|
});
|
|
1181044
1181198
|
}
|
|
@@ -1181080,6 +1181234,7 @@ function convertUndiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs,
|
|
|
1181080
1181234
|
generatedName,
|
|
1181081
1181235
|
wrapAsNullable,
|
|
1181082
1181236
|
description,
|
|
1181237
|
+
availability,
|
|
1181083
1181238
|
fernEnum: enumDescriptions,
|
|
1181084
1181239
|
enumVarNames: void 0,
|
|
1181085
1181240
|
enumValues,
|
|
@@ -1181095,11 +1181250,12 @@ function convertUndiscriminatedOneOf({ nameOverride, generatedName, breadcrumbs,
|
|
|
1181095
1181250
|
generatedName,
|
|
1181096
1181251
|
wrapAsNullable,
|
|
1181097
1181252
|
description,
|
|
1181253
|
+
availability,
|
|
1181098
1181254
|
subtypes: uniqueSubtypes,
|
|
1181099
1181255
|
groupName
|
|
1181100
1181256
|
});
|
|
1181101
1181257
|
}
|
|
1181102
|
-
function convertUndiscriminatedOneOfWithDiscriminant({ nameOverride, generatedName, description, wrapAsNullable, context, groupName, discriminator }) {
|
|
1181258
|
+
function convertUndiscriminatedOneOfWithDiscriminant({ nameOverride, generatedName, description, availability, wrapAsNullable, context, groupName, discriminator }) {
|
|
1181103
1181259
|
const convertedSubtypes = Object.entries(discriminator.mapping ?? {}).map(([discriminantValue, schema2], index3) => {
|
|
1181104
1181260
|
const subtypeReferenceSchema = {
|
|
1181105
1181261
|
$ref: schema2
|
|
@@ -1181113,7 +1181269,8 @@ function convertUndiscriminatedOneOfWithDiscriminant({ nameOverride, generatedNa
|
|
|
1181113
1181269
|
generatedName: getGeneratedTypeName([generatedName, discriminantValue]),
|
|
1181114
1181270
|
value: LiteralSchemaValue.string(discriminantValue),
|
|
1181115
1181271
|
groupName: void 0,
|
|
1181116
|
-
description: void 0
|
|
1181272
|
+
description: void 0,
|
|
1181273
|
+
availability: void 0
|
|
1181117
1181274
|
}),
|
|
1181118
1181275
|
...subtypeReference.properties.filter((objectProperty) => {
|
|
1181119
1181276
|
return objectProperty.key !== discriminator.propertyName;
|
|
@@ -1181158,6 +1181315,7 @@ function convertUndiscriminatedOneOfWithDiscriminant({ nameOverride, generatedNa
|
|
|
1181158
1181315
|
generatedName,
|
|
1181159
1181316
|
wrapAsNullable,
|
|
1181160
1181317
|
description,
|
|
1181318
|
+
availability,
|
|
1181161
1181319
|
fernEnum: enumDescriptions,
|
|
1181162
1181320
|
enumVarNames: void 0,
|
|
1181163
1181321
|
enumValues,
|
|
@@ -1181173,6 +1181331,7 @@ function convertUndiscriminatedOneOfWithDiscriminant({ nameOverride, generatedNa
|
|
|
1181173
1181331
|
generatedName,
|
|
1181174
1181332
|
wrapAsNullable,
|
|
1181175
1181333
|
description,
|
|
1181334
|
+
availability,
|
|
1181176
1181335
|
subtypes: uniqueSubtypes,
|
|
1181177
1181336
|
groupName
|
|
1181178
1181337
|
});
|
|
@@ -1181219,24 +1181378,27 @@ function getUniqueSubTypeNames({ schemas }) {
|
|
|
1181219
1181378
|
}
|
|
1181220
1181379
|
return prefixes;
|
|
1181221
1181380
|
}
|
|
1181222
|
-
function wrapUndiscriminantedOneOf({ nameOverride, generatedName, wrapAsNullable, description, subtypes, groupName }) {
|
|
1181381
|
+
function wrapUndiscriminantedOneOf({ nameOverride, generatedName, wrapAsNullable, description, availability, subtypes, groupName }) {
|
|
1181223
1181382
|
if (wrapAsNullable) {
|
|
1181224
1181383
|
return SchemaWithExample.nullable({
|
|
1181225
1181384
|
nameOverride,
|
|
1181226
1181385
|
generatedName,
|
|
1181227
1181386
|
value: SchemaWithExample.oneOf(OneOfSchemaWithExample.undisciminated({
|
|
1181228
1181387
|
description,
|
|
1181388
|
+
availability,
|
|
1181229
1181389
|
nameOverride,
|
|
1181230
1181390
|
generatedName,
|
|
1181231
1181391
|
schemas: subtypes,
|
|
1181232
1181392
|
groupName
|
|
1181233
1181393
|
})),
|
|
1181234
1181394
|
description,
|
|
1181395
|
+
availability,
|
|
1181235
1181396
|
groupName
|
|
1181236
1181397
|
});
|
|
1181237
1181398
|
}
|
|
1181238
1181399
|
return SchemaWithExample.oneOf(OneOfSchemaWithExample.undisciminated({
|
|
1181239
1181400
|
description,
|
|
1181401
|
+
availability,
|
|
1181240
1181402
|
nameOverride,
|
|
1181241
1181403
|
generatedName,
|
|
1181242
1181404
|
schemas: subtypes,
|
|
@@ -1181310,6 +1181472,7 @@ function convertReferenceObject(schema2, wrapAsNullable, context, breadcrumbs) {
|
|
|
1181310
1181472
|
generatedName: getGeneratedTypeName(breadcrumbs),
|
|
1181311
1181473
|
value: referenceSchema,
|
|
1181312
1181474
|
description: void 0,
|
|
1181475
|
+
availability: void 0,
|
|
1181313
1181476
|
groupName: void 0
|
|
1181314
1181477
|
});
|
|
1181315
1181478
|
} else {
|
|
@@ -1181335,6 +1181498,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181335
1181498
|
const groupName = typeof mixedGroupName === "string" ? [mixedGroupName] : mixedGroupName;
|
|
1181336
1181499
|
const generatedName = getGeneratedTypeName(breadcrumbs);
|
|
1181337
1181500
|
const description = schema2.description;
|
|
1181501
|
+
const availability = convertAvailability3(schema2);
|
|
1181338
1181502
|
const examples = getExtension(schema2, OpenAPIExtension.EXAMPLES);
|
|
1181339
1181503
|
const fullExamples = [];
|
|
1181340
1181504
|
if (schema2.example != null) {
|
|
@@ -1181345,7 +1181509,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181345
1181509
|
return { name: value.summary ?? name3, value: value.value, description: value.description };
|
|
1181346
1181510
|
}));
|
|
1181347
1181511
|
}
|
|
1181348
|
-
const fernSchema = getFernTypeExtension({ schema: schema2, description, nameOverride, generatedName });
|
|
1181512
|
+
const fernSchema = getFernTypeExtension({ schema: schema2, description, nameOverride, generatedName, availability });
|
|
1181349
1181513
|
if (fernSchema != null) {
|
|
1181350
1181514
|
return fernSchema;
|
|
1181351
1181515
|
}
|
|
@@ -1181367,7 +1181531,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181367
1181531
|
}),
|
|
1181368
1181532
|
groupName,
|
|
1181369
1181533
|
wrapAsNullable,
|
|
1181370
|
-
description
|
|
1181534
|
+
description,
|
|
1181535
|
+
availability
|
|
1181371
1181536
|
});
|
|
1181372
1181537
|
}
|
|
1181373
1181538
|
const fernEnum = getFernEnum(schema2);
|
|
@@ -1181378,6 +1181543,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181378
1181543
|
wrapAsNullable,
|
|
1181379
1181544
|
value: schema2.enum[0],
|
|
1181380
1181545
|
description,
|
|
1181546
|
+
availability,
|
|
1181381
1181547
|
groupName
|
|
1181382
1181548
|
});
|
|
1181383
1181549
|
}
|
|
@@ -1181388,6 +1181554,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181388
1181554
|
enumVarNames: getExtension(schema2, [OpenAPIExtension.ENUM_VAR_NAMES]),
|
|
1181389
1181555
|
enumValues: schema2.enum,
|
|
1181390
1181556
|
description,
|
|
1181557
|
+
availability,
|
|
1181391
1181558
|
wrapAsNullable,
|
|
1181392
1181559
|
groupName,
|
|
1181393
1181560
|
context
|
|
@@ -1181405,7 +1181572,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181405
1181572
|
type: secondElement
|
|
1181406
1181573
|
}, wrapAsNullable, context, breadcrumbs, propertiesToExclude),
|
|
1181407
1181574
|
groupName,
|
|
1181408
|
-
description: schema2.description
|
|
1181575
|
+
description: schema2.description,
|
|
1181576
|
+
availability
|
|
1181409
1181577
|
});
|
|
1181410
1181578
|
} else if (secondElement === "null") {
|
|
1181411
1181579
|
return SchemaWithExample.nullable({
|
|
@@ -1181416,7 +1181584,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181416
1181584
|
type: firstElement
|
|
1181417
1181585
|
}, wrapAsNullable, context, breadcrumbs, propertiesToExclude),
|
|
1181418
1181586
|
groupName,
|
|
1181419
|
-
description: schema2.description
|
|
1181587
|
+
description: schema2.description,
|
|
1181588
|
+
availability
|
|
1181420
1181589
|
});
|
|
1181421
1181590
|
}
|
|
1181422
1181591
|
}
|
|
@@ -1181433,6 +1181602,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181433
1181602
|
generatedName,
|
|
1181434
1181603
|
breadcrumbs,
|
|
1181435
1181604
|
description,
|
|
1181605
|
+
availability,
|
|
1181436
1181606
|
wrapAsNullable,
|
|
1181437
1181607
|
context,
|
|
1181438
1181608
|
subtypes,
|
|
@@ -1181448,6 +1181618,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181448
1181618
|
literal: LiteralSchemaValue.boolean(literalValue),
|
|
1181449
1181619
|
wrapAsNullable,
|
|
1181450
1181620
|
description,
|
|
1181621
|
+
availability,
|
|
1181451
1181622
|
groupName
|
|
1181452
1181623
|
});
|
|
1181453
1181624
|
}
|
|
@@ -1181460,6 +1181631,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181460
1181631
|
}),
|
|
1181461
1181632
|
wrapAsNullable,
|
|
1181462
1181633
|
description,
|
|
1181634
|
+
availability,
|
|
1181463
1181635
|
groupName
|
|
1181464
1181636
|
});
|
|
1181465
1181637
|
}
|
|
@@ -1181475,6 +1181647,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181475
1181647
|
exclusiveMaximum: getValueIfBoolean(schema2.exclusiveMaximum),
|
|
1181476
1181648
|
multipleOf: schema2.multipleOf,
|
|
1181477
1181649
|
description,
|
|
1181650
|
+
availability,
|
|
1181478
1181651
|
wrapAsNullable,
|
|
1181479
1181652
|
example: getExampleAsNumber(schema2),
|
|
1181480
1181653
|
groupName
|
|
@@ -1181495,6 +1181668,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181495
1181668
|
}),
|
|
1181496
1181669
|
wrapAsNullable,
|
|
1181497
1181670
|
description,
|
|
1181671
|
+
availability,
|
|
1181498
1181672
|
groupName
|
|
1181499
1181673
|
});
|
|
1181500
1181674
|
}
|
|
@@ -1181510,6 +1181684,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181510
1181684
|
exclusiveMaximum: getValueIfBoolean(schema2.exclusiveMaximum),
|
|
1181511
1181685
|
multipleOf: schema2.multipleOf,
|
|
1181512
1181686
|
description,
|
|
1181687
|
+
availability,
|
|
1181513
1181688
|
wrapAsNullable,
|
|
1181514
1181689
|
example: getExampleAsNumber(schema2),
|
|
1181515
1181690
|
groupName
|
|
@@ -1181525,6 +1181700,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181525
1181700
|
}),
|
|
1181526
1181701
|
wrapAsNullable,
|
|
1181527
1181702
|
description,
|
|
1181703
|
+
availability,
|
|
1181528
1181704
|
groupName
|
|
1181529
1181705
|
});
|
|
1181530
1181706
|
} else if (schema2.format === "json-string") {
|
|
@@ -1181532,6 +1181708,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181532
1181708
|
nameOverride,
|
|
1181533
1181709
|
generatedName,
|
|
1181534
1181710
|
description,
|
|
1181711
|
+
availability,
|
|
1181535
1181712
|
groupName,
|
|
1181536
1181713
|
example: void 0
|
|
1181537
1181714
|
});
|
|
@@ -1181544,6 +1181721,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181544
1181721
|
literal: LiteralSchemaValue.string(maybeConstValue),
|
|
1181545
1181722
|
wrapAsNullable,
|
|
1181546
1181723
|
description,
|
|
1181724
|
+
availability,
|
|
1181547
1181725
|
groupName
|
|
1181548
1181726
|
});
|
|
1181549
1181727
|
}
|
|
@@ -1181560,7 +1181738,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181560
1181738
|
}),
|
|
1181561
1181739
|
groupName,
|
|
1181562
1181740
|
wrapAsNullable,
|
|
1181563
|
-
description
|
|
1181741
|
+
description,
|
|
1181742
|
+
availability
|
|
1181564
1181743
|
});
|
|
1181565
1181744
|
}
|
|
1181566
1181745
|
if (schema2.type === "array") {
|
|
@@ -1181570,6 +1181749,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181570
1181749
|
breadcrumbs,
|
|
1181571
1181750
|
item: schema2.items,
|
|
1181572
1181751
|
description,
|
|
1181752
|
+
availability,
|
|
1181573
1181753
|
wrapAsNullable,
|
|
1181574
1181754
|
context,
|
|
1181575
1181755
|
groupName,
|
|
@@ -1181583,6 +1181763,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181583
1181763
|
breadcrumbs,
|
|
1181584
1181764
|
additionalProperties: schema2.additionalProperties,
|
|
1181585
1181765
|
description,
|
|
1181766
|
+
availability,
|
|
1181586
1181767
|
wrapAsNullable,
|
|
1181587
1181768
|
context,
|
|
1181588
1181769
|
groupName,
|
|
@@ -1181596,6 +1181777,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181596
1181777
|
generatedName,
|
|
1181597
1181778
|
breadcrumbs,
|
|
1181598
1181779
|
description,
|
|
1181780
|
+
availability,
|
|
1181599
1181781
|
discriminator: schema2.discriminator,
|
|
1181600
1181782
|
properties: schema2.properties ?? {},
|
|
1181601
1181783
|
required: schema2.required,
|
|
@@ -1181608,6 +1181790,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181608
1181790
|
nameOverride,
|
|
1181609
1181791
|
generatedName,
|
|
1181610
1181792
|
description,
|
|
1181793
|
+
availability,
|
|
1181611
1181794
|
wrapAsNullable,
|
|
1181612
1181795
|
context,
|
|
1181613
1181796
|
groupName,
|
|
@@ -1181623,6 +1181806,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181623
1181806
|
nameOverride,
|
|
1181624
1181807
|
generatedName,
|
|
1181625
1181808
|
description,
|
|
1181809
|
+
availability,
|
|
1181626
1181810
|
wrapAsNullable,
|
|
1181627
1181811
|
context,
|
|
1181628
1181812
|
groupName,
|
|
@@ -1181634,6 +1181818,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181634
1181818
|
generatedName,
|
|
1181635
1181819
|
breadcrumbs,
|
|
1181636
1181820
|
description,
|
|
1181821
|
+
availability,
|
|
1181637
1181822
|
discriminator: schema2.discriminator,
|
|
1181638
1181823
|
properties: schema2.properties ?? {},
|
|
1181639
1181824
|
required: schema2.required,
|
|
@@ -1181664,6 +1181849,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181664
1181849
|
enumVarNames: void 0,
|
|
1181665
1181850
|
enumValues: maybeAllEnumValues,
|
|
1181666
1181851
|
description,
|
|
1181852
|
+
availability,
|
|
1181667
1181853
|
wrapAsNullable,
|
|
1181668
1181854
|
groupName,
|
|
1181669
1181855
|
context
|
|
@@ -1181678,6 +1181864,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181678
1181864
|
properties: schema2.properties ?? {},
|
|
1181679
1181865
|
required: schema2.required,
|
|
1181680
1181866
|
description,
|
|
1181867
|
+
availability,
|
|
1181681
1181868
|
wrapAsNullable,
|
|
1181682
1181869
|
discriminant: maybeDiscriminant.discriminant,
|
|
1181683
1181870
|
variants: maybeDiscriminant.schemas,
|
|
@@ -1181693,6 +1181880,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181693
1181880
|
generatedName,
|
|
1181694
1181881
|
breadcrumbs,
|
|
1181695
1181882
|
description,
|
|
1181883
|
+
availability,
|
|
1181696
1181884
|
wrapAsNullable: wrapAsNullable || hasNullValue,
|
|
1181697
1181885
|
context,
|
|
1181698
1181886
|
subtypes: schema2.oneOf.filter((schema3) => {
|
|
@@ -1181731,6 +1181919,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181731
1181919
|
properties: schema2.properties ?? {},
|
|
1181732
1181920
|
required: schema2.required,
|
|
1181733
1181921
|
description,
|
|
1181922
|
+
availability,
|
|
1181734
1181923
|
wrapAsNullable,
|
|
1181735
1181924
|
discriminant: maybeDiscriminant.discriminant,
|
|
1181736
1181925
|
variants: maybeDiscriminant.schemas,
|
|
@@ -1181746,6 +1181935,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181746
1181935
|
generatedName,
|
|
1181747
1181936
|
breadcrumbs,
|
|
1181748
1181937
|
description,
|
|
1181938
|
+
availability,
|
|
1181749
1181939
|
wrapAsNullable: wrapAsNullable || hasNullValue,
|
|
1181750
1181940
|
context,
|
|
1181751
1181941
|
subtypes: schema2.anyOf.filter((schema3) => {
|
|
@@ -1181789,7 +1181979,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181789
1181979
|
propertiesToExclude,
|
|
1181790
1181980
|
groupName,
|
|
1181791
1181981
|
fullExamples,
|
|
1181792
|
-
additionalProperties: schema2.additionalProperties
|
|
1181982
|
+
additionalProperties: schema2.additionalProperties,
|
|
1181983
|
+
availability
|
|
1181793
1181984
|
});
|
|
1181794
1181985
|
}
|
|
1181795
1181986
|
if (schema2.type === "object" && hasNoOneOf(schema2) && hasNoAllOf(schema2) && hasNoProperties(schema2)) {
|
|
@@ -1181797,11 +1181988,13 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181797
1181988
|
nameOverride,
|
|
1181798
1181989
|
generatedName,
|
|
1181799
1181990
|
description,
|
|
1181991
|
+
availability,
|
|
1181800
1181992
|
wrapAsNullable,
|
|
1181801
1181993
|
keySchema: {
|
|
1181802
1181994
|
nameOverride: void 0,
|
|
1181803
1181995
|
generatedName: `${generatedName}Key`,
|
|
1181804
1181996
|
description: void 0,
|
|
1181997
|
+
availability: void 0,
|
|
1181805
1181998
|
schema: PrimitiveSchemaValueWithExample.string({
|
|
1181806
1181999
|
default: getDefaultAsString(schema2),
|
|
1181807
1182000
|
pattern: schema2.pattern,
|
|
@@ -1181816,6 +1182009,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181816
1182009
|
nameOverride: void 0,
|
|
1181817
1182010
|
generatedName: `${generatedName}Value`,
|
|
1181818
1182011
|
description: void 0,
|
|
1182012
|
+
availability: void 0,
|
|
1181819
1182013
|
example: void 0,
|
|
1181820
1182014
|
groupName
|
|
1181821
1182015
|
}),
|
|
@@ -1181829,6 +1182023,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1181829
1182023
|
nameOverride,
|
|
1181830
1182024
|
generatedName,
|
|
1181831
1182025
|
description,
|
|
1182026
|
+
availability,
|
|
1181832
1182027
|
groupName,
|
|
1181833
1182028
|
example: inferredValue
|
|
1181834
1182029
|
});
|
|
@@ -1181845,6 +1182040,7 @@ function convertToReferencedSchema(schema2, breadcrumbs) {
|
|
|
1181845
1182040
|
const nameOverride = getExtension(schema2, FernOpenAPIExtension.TYPE_NAME);
|
|
1181846
1182041
|
const generatedName = getGeneratedTypeName(breadcrumbs);
|
|
1181847
1182042
|
const description = schema2.description;
|
|
1182043
|
+
const availability = convertAvailability3(schema2);
|
|
1181848
1182044
|
const schemaId = getSchemaIdFromReference(schema2);
|
|
1181849
1182045
|
if (schemaId == null) {
|
|
1181850
1182046
|
throw new Error(`Invalid schema reference ${JSON.stringify(schema2)}`);
|
|
@@ -1181854,6 +1182050,7 @@ function convertToReferencedSchema(schema2, breadcrumbs) {
|
|
|
1181854
1182050
|
nameOverride,
|
|
1181855
1182051
|
schema: schemaId,
|
|
1181856
1182052
|
description: description ?? void 0,
|
|
1182053
|
+
availability,
|
|
1181857
1182054
|
groupName: void 0
|
|
1181858
1182055
|
});
|
|
1181859
1182056
|
}
|
|
@@ -1181882,6 +1182079,7 @@ function maybeInjectDescriptionOrGroupName(schema2, description, groupName) {
|
|
|
1181882
1182079
|
generatedName: schema2.generatedName,
|
|
1181883
1182080
|
value: schema2.value,
|
|
1181884
1182081
|
description,
|
|
1182082
|
+
availability: schema2.availability,
|
|
1181885
1182083
|
groupName
|
|
1181886
1182084
|
});
|
|
1181887
1182085
|
} else if (schema2.type === "nullable") {
|
|
@@ -1181890,6 +1182088,7 @@ function maybeInjectDescriptionOrGroupName(schema2, description, groupName) {
|
|
|
1181890
1182088
|
generatedName: schema2.generatedName,
|
|
1181891
1182089
|
value: schema2.value,
|
|
1181892
1182090
|
description,
|
|
1182091
|
+
availability: schema2.availability,
|
|
1181893
1182092
|
groupName
|
|
1181894
1182093
|
});
|
|
1181895
1182094
|
}
|
|
@@ -1181910,7 +1182109,7 @@ function isValidAllOfObject(allOf) {
|
|
|
1181910
1182109
|
}
|
|
1181911
1182110
|
return false;
|
|
1181912
1182111
|
}
|
|
1181913
|
-
function wrapLiteral({ literal: literal2, wrapAsNullable, groupName, description, nameOverride, generatedName }) {
|
|
1182112
|
+
function wrapLiteral({ literal: literal2, wrapAsNullable, groupName, description, availability, nameOverride, generatedName }) {
|
|
1181914
1182113
|
if (wrapAsNullable) {
|
|
1181915
1182114
|
return SchemaWithExample.nullable({
|
|
1181916
1182115
|
nameOverride,
|
|
@@ -1181920,10 +1182119,12 @@ function wrapLiteral({ literal: literal2, wrapAsNullable, groupName, description
|
|
|
1181920
1182119
|
generatedName,
|
|
1181921
1182120
|
value: literal2,
|
|
1181922
1182121
|
description,
|
|
1182122
|
+
availability,
|
|
1181923
1182123
|
groupName
|
|
1181924
1182124
|
}),
|
|
1181925
1182125
|
groupName,
|
|
1181926
|
-
description
|
|
1182126
|
+
description,
|
|
1182127
|
+
availability
|
|
1181927
1182128
|
});
|
|
1181928
1182129
|
}
|
|
1181929
1182130
|
return SchemaWithExample.literal({
|
|
@@ -1181931,10 +1182132,11 @@ function wrapLiteral({ literal: literal2, wrapAsNullable, groupName, description
|
|
|
1181931
1182132
|
generatedName,
|
|
1181932
1182133
|
value: literal2,
|
|
1181933
1182134
|
groupName,
|
|
1181934
|
-
description
|
|
1182135
|
+
description,
|
|
1182136
|
+
availability
|
|
1181935
1182137
|
});
|
|
1181936
1182138
|
}
|
|
1181937
|
-
function wrapPrimitive({ primitive, wrapAsNullable, groupName, description, generatedName, nameOverride }) {
|
|
1182139
|
+
function wrapPrimitive({ primitive, wrapAsNullable, groupName, description, availability, generatedName, nameOverride }) {
|
|
1181938
1182140
|
groupName = typeof groupName === "string" ? [groupName] : groupName;
|
|
1181939
1182141
|
if (wrapAsNullable) {
|
|
1181940
1182142
|
return SchemaWithExample.nullable({
|
|
@@ -1181945,10 +1182147,12 @@ function wrapPrimitive({ primitive, wrapAsNullable, groupName, description, gene
|
|
|
1181945
1182147
|
generatedName,
|
|
1181946
1182148
|
schema: primitive,
|
|
1181947
1182149
|
description,
|
|
1182150
|
+
availability,
|
|
1181948
1182151
|
groupName
|
|
1181949
1182152
|
}),
|
|
1181950
1182153
|
groupName,
|
|
1181951
|
-
description
|
|
1182154
|
+
description,
|
|
1182155
|
+
availability
|
|
1181952
1182156
|
});
|
|
1181953
1182157
|
}
|
|
1181954
1182158
|
return SchemaWithExample.primitive({
|
|
@@ -1181956,6 +1182160,7 @@ function wrapPrimitive({ primitive, wrapAsNullable, groupName, description, gene
|
|
|
1181956
1182160
|
generatedName,
|
|
1181957
1182161
|
schema: primitive,
|
|
1181958
1182162
|
description,
|
|
1182163
|
+
availability,
|
|
1181959
1182164
|
groupName
|
|
1181960
1182165
|
});
|
|
1181961
1182166
|
}
|
|
@@ -1182452,10 +1182657,21 @@ var ExampleTypeFactory = class {
|
|
|
1182452
1182657
|
}
|
|
1182453
1182658
|
return FullExample.map(kvs);
|
|
1182454
1182659
|
}
|
|
1182660
|
+
if (schema2.key.schema.type === "string" && schema2.value.type === "unknown") {
|
|
1182661
|
+
return FullExample.map([
|
|
1182662
|
+
{
|
|
1182663
|
+
key: PrimitiveExample.string("key"),
|
|
1182664
|
+
value: FullExample.unknown(FullExample.primitive(PrimitiveExample.string("value")))
|
|
1182665
|
+
}
|
|
1182666
|
+
]);
|
|
1182667
|
+
}
|
|
1182455
1182668
|
const keyExample = this.buildExampleFromPrimitive({
|
|
1182456
1182669
|
schema: schema2.key.schema,
|
|
1182457
1182670
|
example: void 0,
|
|
1182458
|
-
options:
|
|
1182671
|
+
options: {
|
|
1182672
|
+
...options2,
|
|
1182673
|
+
name: "key"
|
|
1182674
|
+
}
|
|
1182459
1182675
|
});
|
|
1182460
1182676
|
const valueExample = this.buildExampleHelper({
|
|
1182461
1182677
|
exampleId,
|
|
@@ -1182463,7 +1182679,10 @@ var ExampleTypeFactory = class {
|
|
|
1182463
1182679
|
schema: schema2.value,
|
|
1182464
1182680
|
visitedSchemaIds,
|
|
1182465
1182681
|
depth: depth + 1,
|
|
1182466
|
-
options:
|
|
1182682
|
+
options: {
|
|
1182683
|
+
...options2,
|
|
1182684
|
+
name: "value"
|
|
1182685
|
+
}
|
|
1182467
1182686
|
});
|
|
1182468
1182687
|
if (valueExample != null) {
|
|
1182469
1182688
|
return FullExample.map([
|
|
@@ -1182821,11 +1183040,13 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182821
1183040
|
nameOverride: schema2.nameOverride,
|
|
1182822
1183041
|
groupName: schema2.groupName,
|
|
1182823
1183042
|
fullExamples: void 0,
|
|
1182824
|
-
additionalProperties: schema2.additionalProperties
|
|
1183043
|
+
additionalProperties: schema2.additionalProperties,
|
|
1183044
|
+
availability: schema2.availability
|
|
1182825
1183045
|
});
|
|
1182826
1183046
|
case "array":
|
|
1182827
1183047
|
return SchemaWithExample.array({
|
|
1182828
1183048
|
description: schema2.description,
|
|
1183049
|
+
availability: schema2.availability,
|
|
1182829
1183050
|
value: convertSchemaToSchemaWithExample(schema2.value),
|
|
1182830
1183051
|
generatedName: schema2.generatedName,
|
|
1182831
1183052
|
nameOverride: schema2.nameOverride,
|
|
@@ -1182835,6 +1183056,7 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182835
1183056
|
case "enum":
|
|
1182836
1183057
|
return SchemaWithExample.enum({
|
|
1182837
1183058
|
description: schema2.description,
|
|
1183059
|
+
availability: schema2.availability,
|
|
1182838
1183060
|
generatedName: schema2.generatedName,
|
|
1182839
1183061
|
nameOverride: schema2.nameOverride,
|
|
1182840
1183062
|
values: schema2.values,
|
|
@@ -1182844,6 +1183066,7 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182844
1183066
|
case "literal":
|
|
1182845
1183067
|
return SchemaWithExample.literal({
|
|
1182846
1183068
|
description: schema2.description,
|
|
1183069
|
+
availability: schema2.availability,
|
|
1182847
1183070
|
value: schema2.value,
|
|
1182848
1183071
|
generatedName: schema2.generatedName,
|
|
1182849
1183072
|
nameOverride: schema2.nameOverride,
|
|
@@ -1182854,6 +1183077,7 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182854
1183077
|
generatedName: schema2.generatedName,
|
|
1182855
1183078
|
nameOverride: schema2.nameOverride,
|
|
1182856
1183079
|
description: schema2.description,
|
|
1183080
|
+
availability: schema2.availability,
|
|
1182857
1183081
|
value: convertSchemaToSchemaWithExample(schema2.value),
|
|
1182858
1183082
|
groupName: schema2.groupName
|
|
1182859
1183083
|
});
|
|
@@ -1182862,12 +1183086,14 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182862
1183086
|
generatedName: schema2.generatedName,
|
|
1182863
1183087
|
nameOverride: schema2.nameOverride,
|
|
1182864
1183088
|
description: schema2.description,
|
|
1183089
|
+
availability: schema2.availability,
|
|
1182865
1183090
|
value: convertSchemaToSchemaWithExample(schema2.value),
|
|
1182866
1183091
|
groupName: schema2.groupName
|
|
1182867
1183092
|
});
|
|
1182868
1183093
|
case "primitive":
|
|
1182869
1183094
|
return SchemaWithExample.primitive({
|
|
1182870
1183095
|
description: schema2.description,
|
|
1183096
|
+
availability: schema2.availability,
|
|
1182871
1183097
|
schema: convertToPrimitiveSchemaValue2(schema2.schema),
|
|
1182872
1183098
|
generatedName: schema2.generatedName,
|
|
1182873
1183099
|
nameOverride: schema2.nameOverride,
|
|
@@ -1182876,8 +1183102,10 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182876
1183102
|
case "map":
|
|
1182877
1183103
|
return SchemaWithExample.map({
|
|
1182878
1183104
|
description: schema2.description,
|
|
1183105
|
+
availability: schema2.availability,
|
|
1182879
1183106
|
key: SchemaWithExample.primitive({
|
|
1182880
1183107
|
description: schema2.key.description,
|
|
1183108
|
+
availability: schema2.key.availability,
|
|
1182881
1183109
|
schema: convertToPrimitiveSchemaValue2(schema2.key.schema),
|
|
1182882
1183110
|
generatedName: schema2.key.generatedName,
|
|
1182883
1183111
|
nameOverride: schema2.key.nameOverride,
|
|
@@ -1182892,6 +1183120,7 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182892
1183120
|
case "reference":
|
|
1182893
1183121
|
return SchemaWithExample.reference({
|
|
1182894
1183122
|
description: schema2.description,
|
|
1183123
|
+
availability: schema2.availability,
|
|
1182895
1183124
|
generatedName: schema2.generatedName,
|
|
1182896
1183125
|
nameOverride: schema2.nameOverride,
|
|
1182897
1183126
|
schema: schema2.schema,
|
|
@@ -1182905,7 +1183134,8 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1182905
1183134
|
generatedName: schema2.generatedName,
|
|
1182906
1183135
|
example: void 0,
|
|
1182907
1183136
|
groupName: void 0,
|
|
1182908
|
-
description: void 0
|
|
1183137
|
+
description: void 0,
|
|
1183138
|
+
availability: void 0
|
|
1182909
1183139
|
});
|
|
1182910
1183140
|
default:
|
|
1182911
1183141
|
assertNever(schema2);
|
|
@@ -1182922,6 +1183152,7 @@ function convertToOneOf2(oneOfSchema) {
|
|
|
1182922
1183152
|
};
|
|
1182923
1183153
|
}),
|
|
1182924
1183154
|
description: oneOfSchema.description,
|
|
1183155
|
+
availability: oneOfSchema.availability,
|
|
1182925
1183156
|
discriminantProperty: oneOfSchema.discriminantProperty,
|
|
1182926
1183157
|
generatedName: oneOfSchema.generatedName,
|
|
1182927
1183158
|
nameOverride: oneOfSchema.nameOverride,
|
|
@@ -1182933,6 +1183164,7 @@ function convertToOneOf2(oneOfSchema) {
|
|
|
1182933
1183164
|
case "undisciminated":
|
|
1182934
1183165
|
return OneOfSchemaWithExample.undisciminated({
|
|
1182935
1183166
|
description: oneOfSchema.description,
|
|
1183167
|
+
availability: oneOfSchema.availability,
|
|
1182936
1183168
|
generatedName: oneOfSchema.generatedName,
|
|
1182937
1183169
|
nameOverride: oneOfSchema.nameOverride,
|
|
1182938
1183170
|
schemas: oneOfSchema.schemas.map((oneOfSchema2) => convertSchemaToSchemaWithExample(oneOfSchema2)),
|
|
@@ -1183010,7 +1183242,8 @@ function convertToObjectProperty2(objectProperty) {
|
|
|
1183010
1183242
|
key: objectProperty.key,
|
|
1183011
1183243
|
schema: convertSchemaToSchemaWithExample(objectProperty.schema),
|
|
1183012
1183244
|
audiences: objectProperty.audiences,
|
|
1183013
|
-
nameOverride: objectProperty.nameOverride
|
|
1183245
|
+
nameOverride: objectProperty.nameOverride,
|
|
1183246
|
+
availability: objectProperty.availability
|
|
1183014
1183247
|
};
|
|
1183015
1183248
|
}
|
|
1183016
1183249
|
|
|
@@ -1183429,7 +1183662,8 @@ function convertMultipartRequestToSchema(request) {
|
|
|
1183429
1183662
|
audiences: [],
|
|
1183430
1183663
|
conflict: {},
|
|
1183431
1183664
|
generatedName: property5.key,
|
|
1183432
|
-
nameOverride: void 0
|
|
1183665
|
+
nameOverride: void 0,
|
|
1183666
|
+
availability: void 0
|
|
1183433
1183667
|
};
|
|
1183434
1183668
|
}).filter(isNonNullish),
|
|
1183435
1183669
|
allOf: [],
|
|
@@ -1183439,7 +1183673,8 @@ function convertMultipartRequestToSchema(request) {
|
|
|
1183439
1183673
|
nameOverride: void 0,
|
|
1183440
1183674
|
generatedName: "",
|
|
1183441
1183675
|
groupName: void 0,
|
|
1183442
|
-
additionalProperties: false
|
|
1183676
|
+
additionalProperties: false,
|
|
1183677
|
+
availability: void 0
|
|
1183443
1183678
|
});
|
|
1183444
1183679
|
}
|
|
1183445
1183680
|
|
|
@@ -1183703,11 +1183938,13 @@ function parseAsyncAPI({ document: document6, taskContext, options: options2 })
|
|
|
1183703
1183938
|
example: void 0
|
|
1183704
1183939
|
}),
|
|
1183705
1183940
|
description: void 0,
|
|
1183941
|
+
availability: void 0,
|
|
1183706
1183942
|
generatedName: "",
|
|
1183707
1183943
|
groupName: void 0,
|
|
1183708
1183944
|
nameOverride: void 0
|
|
1183709
1183945
|
}),
|
|
1183710
|
-
variableReference: void 0
|
|
1183946
|
+
variableReference: void 0,
|
|
1183947
|
+
availability: convertAvailability3(parameter)
|
|
1183711
1183948
|
});
|
|
1183712
1183949
|
}
|
|
1183713
1183950
|
}
|
|
@@ -1183721,7 +1183958,8 @@ function parseAsyncAPI({ document: document6, taskContext, options: options2 })
|
|
|
1183721
1183958
|
schema: convertSchema(resolvedHeader, !required.includes(name3), context, breadcrumbs),
|
|
1183722
1183959
|
description: resolvedHeader.description,
|
|
1183723
1183960
|
parameterNameOverride: void 0,
|
|
1183724
|
-
env: void 0
|
|
1183961
|
+
env: void 0,
|
|
1183962
|
+
availability: convertAvailability3(resolvedHeader)
|
|
1183725
1183963
|
});
|
|
1183726
1183964
|
}
|
|
1183727
1183965
|
}
|
|
@@ -1183734,7 +1183972,8 @@ function parseAsyncAPI({ document: document6, taskContext, options: options2 })
|
|
|
1183734
1183972
|
name: name3,
|
|
1183735
1183973
|
schema: convertSchema(resolvedQueryParameter, !required.includes(name3), context, breadcrumbs),
|
|
1183736
1183974
|
description: resolvedQueryParameter.description,
|
|
1183737
|
-
parameterNameOverride: void 0
|
|
1183975
|
+
parameterNameOverride: void 0,
|
|
1183976
|
+
availability: convertAvailability3(resolvedQueryParameter)
|
|
1183738
1183977
|
});
|
|
1183739
1183978
|
}
|
|
1183740
1183979
|
}
|
|
@@ -1183837,6 +1184076,7 @@ function convertMessageToSchema({ generatedName, event, context, breadcrumbs })
|
|
|
1183837
1184076
|
}
|
|
1183838
1184077
|
return convertUndiscriminatedOneOf({
|
|
1183839
1184078
|
description: event.description ?? event.message.description,
|
|
1184079
|
+
availability: convertAvailability3(event.message),
|
|
1183840
1184080
|
subtypes,
|
|
1183841
1184081
|
nameOverride: event.operationId,
|
|
1183842
1184082
|
generatedName,
|
|
@@ -1184376,14 +1184616,14 @@ function getExamplesFromExtension(operationContext, operationObject, context) {
|
|
|
1184376
1184616
|
function getFernAvailability(operationObject) {
|
|
1184377
1184617
|
const availability = getExtension(operationObject, FernOpenAPIExtension.AVAILABILITY);
|
|
1184378
1184618
|
if (availability === "ga" || availability === "generally-available") {
|
|
1184379
|
-
return
|
|
1184619
|
+
return Availability5.GenerallyAvailable;
|
|
1184380
1184620
|
} else if (availability === "beta" || availability === "pre-release") {
|
|
1184381
|
-
return
|
|
1184621
|
+
return Availability5.Beta;
|
|
1184382
1184622
|
} else if (availability === "deprecated") {
|
|
1184383
|
-
return
|
|
1184623
|
+
return Availability5.Deprecated;
|
|
1184384
1184624
|
}
|
|
1184385
1184625
|
if (operationObject.deprecated) {
|
|
1184386
|
-
return
|
|
1184626
|
+
return Availability5.Deprecated;
|
|
1184387
1184627
|
}
|
|
1184388
1184628
|
return void 0;
|
|
1184389
1184629
|
}
|
|
@@ -1184443,6 +1184683,7 @@ function convertParameters({ path: path44, httpMethod, parameters, context, requ
|
|
|
1184443
1184683
|
for (const parameter of parameters) {
|
|
1184444
1184684
|
const resolvedParameter = isReferenceObject(parameter) ? context.resolveParameterReference(parameter) : parameter;
|
|
1184445
1184685
|
const isRequired = resolvedParameter.required ?? false;
|
|
1184686
|
+
const availability = convertAvailability3(resolvedParameter);
|
|
1184446
1184687
|
const parameterBreadcrumbs = [...requestBreadcrumbs, resolvedParameter.name];
|
|
1184447
1184688
|
const generatedName = getGeneratedTypeName(parameterBreadcrumbs);
|
|
1184448
1184689
|
let schema2 = resolvedParameter.schema != null ? convertSchema(resolvedParameter.schema, !isRequired, context, parameterBreadcrumbs) : isRequired ? SchemaWithExample.primitive({
|
|
@@ -1184457,6 +1184698,7 @@ function convertParameters({ path: path44, httpMethod, parameters, context, requ
|
|
|
1184457
1184698
|
example: getExamplesString(resolvedParameter.example)
|
|
1184458
1184699
|
}),
|
|
1184459
1184700
|
description: void 0,
|
|
1184701
|
+
availability,
|
|
1184460
1184702
|
groupName: void 0
|
|
1184461
1184703
|
}) : SchemaWithExample.optional({
|
|
1184462
1184704
|
nameOverride: void 0,
|
|
@@ -1184473,9 +1184715,11 @@ function convertParameters({ path: path44, httpMethod, parameters, context, requ
|
|
|
1184473
1184715
|
example: getExamplesString(resolvedParameter.example)
|
|
1184474
1184716
|
}),
|
|
1184475
1184717
|
description: void 0,
|
|
1184718
|
+
availability: void 0,
|
|
1184476
1184719
|
groupName: void 0
|
|
1184477
1184720
|
}),
|
|
1184478
1184721
|
description: void 0,
|
|
1184722
|
+
availability,
|
|
1184479
1184723
|
groupName: void 0
|
|
1184480
1184724
|
});
|
|
1184481
1184725
|
if (resolvedParameter.in === "header" && resolvedParameter.schema != null && !isReferenceObject(resolvedParameter.schema) && resolvedParameter.schema.default != null) {
|
|
@@ -1184486,6 +1184730,7 @@ function convertParameters({ path: path44, httpMethod, parameters, context, requ
|
|
|
1184486
1184730
|
generatedName,
|
|
1184487
1184731
|
value: LiteralSchemaValue.string(defaultValue),
|
|
1184488
1184732
|
description: void 0,
|
|
1184733
|
+
availability,
|
|
1184489
1184734
|
groupName: void 0
|
|
1184490
1184735
|
});
|
|
1184491
1184736
|
}
|
|
@@ -1184494,7 +1184739,8 @@ function convertParameters({ path: path44, httpMethod, parameters, context, requ
|
|
|
1184494
1184739
|
name: resolvedParameter.name,
|
|
1184495
1184740
|
schema: schema2,
|
|
1184496
1184741
|
description: resolvedParameter.description,
|
|
1184497
|
-
parameterNameOverride: getParameterName(resolvedParameter)
|
|
1184742
|
+
parameterNameOverride: getParameterName(resolvedParameter),
|
|
1184743
|
+
availability
|
|
1184498
1184744
|
};
|
|
1184499
1184745
|
if (resolvedParameter.in === "query") {
|
|
1184500
1184746
|
convertedParameters.queryParameters.push(convertedParameter);
|
|
@@ -1185041,12 +1185287,14 @@ function convertAsyncSyncOperation({ operationContext, context, asyncExtension }
|
|
|
1185041
1185287
|
nameOverride: void 0,
|
|
1185042
1185288
|
generatedName: getGeneratedTypeName([headerToIgnore]),
|
|
1185043
1185289
|
description: void 0,
|
|
1185290
|
+
availability: void 0,
|
|
1185044
1185291
|
value: LiteralSchemaValue.string(headerValue),
|
|
1185045
1185292
|
groupName: void 0
|
|
1185046
1185293
|
}),
|
|
1185047
1185294
|
description: void 0,
|
|
1185048
1185295
|
parameterNameOverride: void 0,
|
|
1185049
|
-
env: void 0
|
|
1185296
|
+
env: void 0,
|
|
1185297
|
+
availability: void 0
|
|
1185050
1185298
|
});
|
|
1185051
1185299
|
return {
|
|
1185052
1185300
|
sync: syncOperation,
|
|
@@ -1185542,6 +1185790,7 @@ function getScopes(oauthSecurityScheme) {
|
|
|
1185542
1185790
|
];
|
|
1185543
1185791
|
})),
|
|
1185544
1185792
|
description: void 0,
|
|
1185793
|
+
availability: void 0,
|
|
1185545
1185794
|
enumVarNames: void 0,
|
|
1185546
1185795
|
wrapAsNullable: false,
|
|
1185547
1185796
|
groupName: void 0,
|
|
@@ -1185584,6 +1185833,7 @@ function getGlobalHeaders(document6) {
|
|
|
1185584
1185833
|
schema: header.type != null ? getSchemaFromFernType({
|
|
1185585
1185834
|
fernType: header.type,
|
|
1185586
1185835
|
description: void 0,
|
|
1185836
|
+
availability: void 0,
|
|
1185587
1185837
|
generatedName: header.name ?? header.header,
|
|
1185588
1185838
|
groupName: void 0,
|
|
1185589
1185839
|
nameOverride: void 0
|
|
@@ -1185603,6 +1185853,7 @@ function getIdempotencyHeaders(document6) {
|
|
|
1185603
1185853
|
schema: header.type != null ? getSchemaFromFernType({
|
|
1185604
1185854
|
fernType: header.type,
|
|
1185605
1185855
|
description: void 0,
|
|
1185856
|
+
availability: void 0,
|
|
1185606
1185857
|
generatedName: header.name ?? header.header,
|
|
1185607
1185858
|
groupName: void 0,
|
|
1185608
1185859
|
nameOverride: void 0
|
|
@@ -1185633,6 +1185884,7 @@ function getVariableDefinitions(document6) {
|
|
|
1185633
1185884
|
maxLength: schema2.maxLength
|
|
1185634
1185885
|
}),
|
|
1185635
1185886
|
description: schema2.description,
|
|
1185887
|
+
availability: void 0,
|
|
1185636
1185888
|
groupName: void 0
|
|
1185637
1185889
|
}
|
|
1185638
1185890
|
];
|
|
@@ -1185941,7 +1186193,8 @@ function generateIr({ openApi, taskContext, options: options2 }) {
|
|
|
1185941
1186193
|
description: queryParameter.description,
|
|
1185942
1186194
|
name: queryParameter.name,
|
|
1185943
1186195
|
schema: convertSchemaWithExampleToSchema(queryParameter.schema),
|
|
1185944
|
-
parameterNameOverride: queryParameter.parameterNameOverride
|
|
1186196
|
+
parameterNameOverride: queryParameter.parameterNameOverride,
|
|
1186197
|
+
availability: queryParameter.availability
|
|
1185945
1186198
|
};
|
|
1185946
1186199
|
}),
|
|
1185947
1186200
|
pathParameters: endpointWithExample.pathParameters.map((pathParameter) => {
|
|
@@ -1185949,7 +1186202,8 @@ function generateIr({ openApi, taskContext, options: options2 }) {
|
|
|
1185949
1186202
|
description: pathParameter.description,
|
|
1185950
1186203
|
name: pathParameter.name,
|
|
1185951
1186204
|
schema: convertSchemaWithExampleToSchema(pathParameter.schema),
|
|
1185952
|
-
variableReference: pathParameter.variableReference
|
|
1186205
|
+
variableReference: pathParameter.variableReference,
|
|
1186206
|
+
availability: pathParameter.availability
|
|
1185953
1186207
|
};
|
|
1185954
1186208
|
}),
|
|
1185955
1186209
|
headers: endpointWithExample.headers.map((header) => {
|
|
@@ -1185958,7 +1186212,8 @@ function generateIr({ openApi, taskContext, options: options2 }) {
|
|
|
1185958
1186212
|
name: header.name,
|
|
1185959
1186213
|
schema: convertSchemaWithExampleToSchema(header.schema),
|
|
1185960
1186214
|
parameterNameOverride: header.parameterNameOverride,
|
|
1185961
|
-
env: header.env
|
|
1186215
|
+
env: header.env,
|
|
1186216
|
+
availability: header.availability
|
|
1185962
1186217
|
};
|
|
1185963
1186218
|
}),
|
|
1185964
1186219
|
examples,
|
|
@@ -1186089,7 +1186344,8 @@ function maybeAddBackDiscriminantsFromSchemas(schemas, context) {
|
|
|
1186089
1186344
|
generatedName: getGeneratedTypeName([schema2.generatedName, discriminantValue]),
|
|
1186090
1186345
|
value: LiteralSchemaValue.string(discriminantValue),
|
|
1186091
1186346
|
groupName: void 0,
|
|
1186092
|
-
description: void 0
|
|
1186347
|
+
description: void 0,
|
|
1186348
|
+
availability: schema2.availability
|
|
1186093
1186349
|
})
|
|
1186094
1186350
|
});
|
|
1186095
1186351
|
}
|
|
@@ -1186313,7 +1186569,7 @@ function buildQueryParameter({ queryParameter, context, fileContainingReference
|
|
|
1186313
1186569
|
} else if (queryParameterType === "optional<unknown>") {
|
|
1186314
1186570
|
queryParameterType = "optional<string>";
|
|
1186315
1186571
|
}
|
|
1186316
|
-
if (queryParameter.description == null && !typeReference.allowMultiple && queryParameter.parameterNameOverride == null) {
|
|
1186572
|
+
if (queryParameter.description == null && !typeReference.allowMultiple && queryParameter.parameterNameOverride == null && queryParameter.availability == null) {
|
|
1186317
1186573
|
return queryParameterType;
|
|
1186318
1186574
|
}
|
|
1186319
1186575
|
const queryParameterSchema = {
|
|
@@ -1186328,6 +1186584,9 @@ function buildQueryParameter({ queryParameter, context, fileContainingReference
|
|
|
1186328
1186584
|
if (queryParameter.parameterNameOverride != null) {
|
|
1186329
1186585
|
queryParameterSchema.name = queryParameter.parameterNameOverride;
|
|
1186330
1186586
|
}
|
|
1186587
|
+
if (queryParameter.availability != null) {
|
|
1186588
|
+
queryParameterSchema.availability = convertAvailability2(queryParameter.availability);
|
|
1186589
|
+
}
|
|
1186331
1186590
|
return queryParameterSchema;
|
|
1186332
1186591
|
}
|
|
1186333
1186592
|
function getQueryParameterTypeReference({ schema: schema2, context, fileContainingReference }) {
|
|
@@ -1186343,6 +1186602,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186343
1186602
|
generatedName: schema2.generatedName,
|
|
1186344
1186603
|
value: resolvedSchema.value,
|
|
1186345
1186604
|
description: schema2.description ?? resolvedSchema.description,
|
|
1186605
|
+
availability: schema2.availability,
|
|
1186346
1186606
|
groupName: void 0
|
|
1186347
1186607
|
}),
|
|
1186348
1186608
|
context,
|
|
@@ -1186385,6 +1186645,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186385
1186645
|
generatedName: schema2.generatedName,
|
|
1186386
1186646
|
value: secondSchema,
|
|
1186387
1186647
|
description: schema2.description,
|
|
1186648
|
+
availability: schema2.availability,
|
|
1186388
1186649
|
groupName: void 0
|
|
1186389
1186650
|
}),
|
|
1186390
1186651
|
context,
|
|
@@ -1186401,6 +1186662,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186401
1186662
|
generatedName: schema2.generatedName,
|
|
1186402
1186663
|
value: firstSchema,
|
|
1186403
1186664
|
description: schema2.description,
|
|
1186665
|
+
availability: schema2.availability,
|
|
1186404
1186666
|
groupName: void 0
|
|
1186405
1186667
|
}),
|
|
1186406
1186668
|
context,
|
|
@@ -1186434,6 +1186696,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186434
1186696
|
generatedName: schema2.generatedName,
|
|
1186435
1186697
|
value: resolvedSchema.value,
|
|
1186436
1186698
|
description: schema2.description ?? resolvedSchema.description,
|
|
1186699
|
+
availability: schema2.availability,
|
|
1186437
1186700
|
groupName: void 0
|
|
1186438
1186701
|
}),
|
|
1186439
1186702
|
context,
|
|
@@ -1186452,6 +1186715,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186452
1186715
|
generatedName: schema2.generatedName,
|
|
1186453
1186716
|
value: schema2.value.value,
|
|
1186454
1186717
|
description: schema2.description,
|
|
1186718
|
+
availability: schema2.availability,
|
|
1186455
1186719
|
groupName: void 0
|
|
1186456
1186720
|
}),
|
|
1186457
1186721
|
context,
|
|
@@ -1186493,6 +1186757,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186493
1186757
|
generatedName: schema2.generatedName,
|
|
1186494
1186758
|
value: secondSchema,
|
|
1186495
1186759
|
description: schema2.description,
|
|
1186760
|
+
availability: schema2.availability,
|
|
1186496
1186761
|
groupName: void 0
|
|
1186497
1186762
|
}),
|
|
1186498
1186763
|
context,
|
|
@@ -1186509,6 +1186774,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186509
1186774
|
generatedName: schema2.generatedName,
|
|
1186510
1186775
|
value: firstSchema,
|
|
1186511
1186776
|
description: schema2.description,
|
|
1186777
|
+
availability: schema2.availability,
|
|
1186512
1186778
|
groupName: void 0
|
|
1186513
1186779
|
}),
|
|
1186514
1186780
|
context,
|
|
@@ -1186525,6 +1186791,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186525
1186791
|
generatedName: schema2.generatedName,
|
|
1186526
1186792
|
value: oneOfSchema,
|
|
1186527
1186793
|
description: void 0,
|
|
1186794
|
+
availability: schema2.availability,
|
|
1186528
1186795
|
groupName: void 0
|
|
1186529
1186796
|
}),
|
|
1186530
1186797
|
context,
|
|
@@ -1186551,6 +1186818,7 @@ function getQueryParameterTypeReference({ schema: schema2, context, fileContaini
|
|
|
1186551
1186818
|
generatedName: schema2.generatedName,
|
|
1186552
1186819
|
value: schema2.value,
|
|
1186553
1186820
|
description: schema2.description,
|
|
1186821
|
+
availability: schema2.availability,
|
|
1186554
1186822
|
groupName: void 0
|
|
1186555
1186823
|
}),
|
|
1186556
1186824
|
context,
|
|
@@ -1186897,31 +1187165,6 @@ var GLOBAL_HEADER_PERCENTAGE_THRESHOLD = 0.75;
|
|
|
1186897
1187165
|
var HEADERS_TO_IGNORE = new Set(...["Authorization"]);
|
|
1186898
1187166
|
function buildGlobalHeaders(context) {
|
|
1186899
1187167
|
const predefinedGlobalHeaders = Object.fromEntries((context.ir.globalHeaders ?? []).map((header) => [header.header, header]));
|
|
1186900
|
-
const globalHeaders = {};
|
|
1186901
|
-
for (const endpoint of context.ir.endpoints) {
|
|
1186902
|
-
for (const header of endpoint.headers) {
|
|
1186903
|
-
if (HEADERS_TO_IGNORE.has(header.name)) {
|
|
1186904
|
-
continue;
|
|
1186905
|
-
}
|
|
1186906
|
-
let headerWithCount = globalHeaders[header.name];
|
|
1186907
|
-
if (headerWithCount == null) {
|
|
1186908
|
-
const predefinedHeader = predefinedGlobalHeaders[header.name];
|
|
1186909
|
-
const convertedHeader = buildHeader({
|
|
1186910
|
-
header: {
|
|
1186911
|
-
...header,
|
|
1186912
|
-
schema: (predefinedHeader == null ? void 0 : predefinedHeader.schema) ?? header.schema,
|
|
1186913
|
-
name: (predefinedHeader == null ? void 0 : predefinedHeader.name) ?? header.name
|
|
1186914
|
-
},
|
|
1186915
|
-
fileContainingReference: RelativeFilePath.of(ROOT_API_FILENAME),
|
|
1186916
|
-
context
|
|
1186917
|
-
});
|
|
1186918
|
-
headerWithCount = new HeaderWithCount(convertedHeader);
|
|
1186919
|
-
globalHeaders[header.name] = headerWithCount;
|
|
1186920
|
-
}
|
|
1186921
|
-
headerWithCount.increment();
|
|
1186922
|
-
}
|
|
1186923
|
-
}
|
|
1186924
|
-
const globalHeaderThreshold = context.ir.endpoints.length * GLOBAL_HEADER_PERCENTAGE_THRESHOLD;
|
|
1186925
1187168
|
for (const [headerName, header] of Object.entries(predefinedGlobalHeaders)) {
|
|
1186926
1187169
|
let schema2 = "optional<string>";
|
|
1186927
1187170
|
if (header.name == null && header.env == null && typeof header.schema === "string") {
|
|
@@ -1186942,22 +1187185,49 @@ function buildGlobalHeaders(context) {
|
|
|
1186942
1187185
|
schema: schema2
|
|
1186943
1187186
|
});
|
|
1186944
1187187
|
}
|
|
1186945
|
-
|
|
1186946
|
-
const
|
|
1186947
|
-
const
|
|
1186948
|
-
|
|
1186949
|
-
|
|
1186950
|
-
|
|
1186951
|
-
|
|
1186952
|
-
|
|
1186953
|
-
|
|
1186954
|
-
|
|
1186955
|
-
|
|
1186956
|
-
|
|
1186957
|
-
|
|
1186958
|
-
|
|
1186959
|
-
|
|
1186960
|
-
|
|
1187188
|
+
if (context.detectGlobalHeaders) {
|
|
1187189
|
+
const globalHeaders = {};
|
|
1187190
|
+
for (const endpoint of context.ir.endpoints) {
|
|
1187191
|
+
for (const header of endpoint.headers) {
|
|
1187192
|
+
if (HEADERS_TO_IGNORE.has(header.name)) {
|
|
1187193
|
+
continue;
|
|
1187194
|
+
}
|
|
1187195
|
+
let headerWithCount = globalHeaders[header.name];
|
|
1187196
|
+
if (headerWithCount == null) {
|
|
1187197
|
+
const predefinedHeader = predefinedGlobalHeaders[header.name];
|
|
1187198
|
+
const convertedHeader = buildHeader({
|
|
1187199
|
+
header: {
|
|
1187200
|
+
...header,
|
|
1187201
|
+
schema: (predefinedHeader == null ? void 0 : predefinedHeader.schema) ?? header.schema,
|
|
1187202
|
+
name: (predefinedHeader == null ? void 0 : predefinedHeader.name) ?? header.name
|
|
1187203
|
+
},
|
|
1187204
|
+
fileContainingReference: RelativeFilePath.of(ROOT_API_FILENAME),
|
|
1187205
|
+
context
|
|
1187206
|
+
});
|
|
1187207
|
+
headerWithCount = new HeaderWithCount(convertedHeader);
|
|
1187208
|
+
globalHeaders[header.name] = headerWithCount;
|
|
1187209
|
+
}
|
|
1187210
|
+
headerWithCount.increment();
|
|
1187211
|
+
}
|
|
1187212
|
+
}
|
|
1187213
|
+
const globalHeaderThreshold = context.ir.endpoints.length * GLOBAL_HEADER_PERCENTAGE_THRESHOLD;
|
|
1187214
|
+
for (const [headerName, header] of Object.entries(globalHeaders)) {
|
|
1187215
|
+
const predefinedHeader = predefinedGlobalHeaders[headerName];
|
|
1187216
|
+
const isRequired = header.count === context.ir.endpoints.length;
|
|
1187217
|
+
const isOptional = header.count >= globalHeaderThreshold;
|
|
1187218
|
+
if (predefinedHeader != null) {
|
|
1187219
|
+
continue;
|
|
1187220
|
+
} else if (isRequired) {
|
|
1187221
|
+
context.builder.addGlobalHeader({
|
|
1187222
|
+
name: headerName,
|
|
1187223
|
+
schema: header.schema
|
|
1187224
|
+
});
|
|
1187225
|
+
} else if (isOptional) {
|
|
1187226
|
+
context.builder.addGlobalHeader({
|
|
1187227
|
+
name: headerName,
|
|
1187228
|
+
schema: wrapTypeReferenceAsOptional(header.schema)
|
|
1187229
|
+
});
|
|
1187230
|
+
}
|
|
1186961
1187231
|
}
|
|
1186962
1187232
|
}
|
|
1186963
1187233
|
}
|
|
@@ -1186965,6 +1187235,7 @@ function buildGlobalHeaders(context) {
|
|
|
1186965
1187235
|
// pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-to-fern/lib/buildIdempotencyHeaders.js
|
|
1186966
1187236
|
var STRING_SCHEMA = Schema2.primitive({
|
|
1186967
1187237
|
description: void 0,
|
|
1187238
|
+
availability: void 0,
|
|
1186968
1187239
|
generatedName: "",
|
|
1186969
1187240
|
groupName: void 0,
|
|
1186970
1187241
|
nameOverride: void 0,
|
|
@@ -1186984,7 +1187255,8 @@ function buildIdempotencyHeaders(context) {
|
|
|
1186984
1187255
|
schema: header.schema ?? STRING_SCHEMA,
|
|
1186985
1187256
|
name: header.name ?? header.header,
|
|
1186986
1187257
|
parameterNameOverride: void 0,
|
|
1186987
|
-
description: void 0
|
|
1187258
|
+
description: void 0,
|
|
1187259
|
+
availability: void 0
|
|
1186988
1187260
|
},
|
|
1186989
1187261
|
fileContainingReference: RelativeFilePath.of(ROOT_API_FILENAME),
|
|
1186990
1187262
|
context
|
|
@@ -1187360,12 +1187632,8 @@ function buildEndpoint({ endpoint, declarationFile, context }) {
|
|
|
1187360
1187632
|
if (endpoint.idempotent) {
|
|
1187361
1187633
|
convertedEndpoint.idempotent = true;
|
|
1187362
1187634
|
}
|
|
1187363
|
-
if (endpoint.availability
|
|
1187364
|
-
convertedEndpoint.availability =
|
|
1187365
|
-
} else if (endpoint.availability === EndpointAvailability.GenerallyAvailable) {
|
|
1187366
|
-
convertedEndpoint.availability = "generally-available";
|
|
1187367
|
-
} else if (endpoint.availability === EndpointAvailability.Deprecated) {
|
|
1187368
|
-
convertedEndpoint.availability = "deprecated";
|
|
1187635
|
+
if (endpoint.availability != null) {
|
|
1187636
|
+
convertedEndpoint.availability = convertAvailability2(endpoint.availability);
|
|
1187369
1187637
|
}
|
|
1187370
1187638
|
Object.entries(endpoint.errors).forEach(([statusCode, httpError]) => {
|
|
1187371
1187639
|
var _a5;
|
|
@@ -1187485,6 +1187753,7 @@ function getRequest({ declarationFile, context, request, requestNameOverride, ge
|
|
|
1187485
1187753
|
context
|
|
1187486
1187754
|
});
|
|
1187487
1187755
|
const name3 = property5.nameOverride ?? property5.key;
|
|
1187756
|
+
const availability = convertAvailability2(property5.availability);
|
|
1187488
1187757
|
if (!usedNames.has(name3) && property5.audiences.length <= 0) {
|
|
1187489
1187758
|
usedNames.add(name3);
|
|
1187490
1187759
|
if (property5.nameOverride != null) {
|
|
@@ -1187493,11 +1187762,18 @@ function getRequest({ declarationFile, context, request, requestNameOverride, ge
|
|
|
1187493
1187762
|
{
|
|
1187494
1187763
|
type: getTypeFromTypeReference(propertyTypeReference),
|
|
1187495
1187764
|
docs: getDocsFromTypeReference(propertyTypeReference),
|
|
1187496
|
-
name: property5.nameOverride
|
|
1187765
|
+
name: property5.nameOverride,
|
|
1187766
|
+
availability
|
|
1187497
1187767
|
}
|
|
1187498
1187768
|
];
|
|
1187499
1187769
|
}
|
|
1187500
|
-
return [
|
|
1187770
|
+
return [
|
|
1187771
|
+
property5.key,
|
|
1187772
|
+
availability ? {
|
|
1187773
|
+
...typeof propertyTypeReference === "string" ? { type: propertyTypeReference } : propertyTypeReference,
|
|
1187774
|
+
availability
|
|
1187775
|
+
} : propertyTypeReference
|
|
1187776
|
+
];
|
|
1187501
1187777
|
}
|
|
1187502
1187778
|
const typeReference = {
|
|
1187503
1187779
|
type: getTypeFromTypeReference(propertyTypeReference),
|
|
@@ -1187509,6 +1187785,9 @@ function getRequest({ declarationFile, context, request, requestNameOverride, ge
|
|
|
1187509
1187785
|
if (property5.audiences.length > 0) {
|
|
1187510
1187786
|
typeReference.audiences = property5.audiences;
|
|
1187511
1187787
|
}
|
|
1187788
|
+
if (availability != null) {
|
|
1187789
|
+
typeReference.availability = availability;
|
|
1187790
|
+
}
|
|
1187512
1187791
|
usedNames.add(name3);
|
|
1187513
1187792
|
return [property5.key, typeReference];
|
|
1187514
1187793
|
}));
|
|
@@ -1188344,12 +1188623,14 @@ var OpenApiIrConverterContext = class {
|
|
|
1188344
1188623
|
taskContext;
|
|
1188345
1188624
|
ir;
|
|
1188346
1188625
|
builder;
|
|
1188626
|
+
detectGlobalHeaders;
|
|
1188347
1188627
|
defaultServerName = void 0;
|
|
1188348
|
-
constructor({ taskContext, ir, enableUniqueErrorsPerEndpoint }) {
|
|
1188628
|
+
constructor({ taskContext, ir, enableUniqueErrorsPerEndpoint, detectGlobalHeaders }) {
|
|
1188349
1188629
|
this.logger = taskContext.logger;
|
|
1188350
1188630
|
this.taskContext = taskContext;
|
|
1188351
1188631
|
this.ir = ir;
|
|
1188352
1188632
|
this.builder = new FernDefinitionBuilderImpl(ir, false, enableUniqueErrorsPerEndpoint);
|
|
1188633
|
+
this.detectGlobalHeaders = detectGlobalHeaders;
|
|
1188353
1188634
|
}
|
|
1188354
1188635
|
getSchema(id) {
|
|
1188355
1188636
|
const schema2 = this.ir.schemas[id];
|
|
@@ -1188397,7 +1188678,8 @@ var OSSWorkspace = class extends AbstractAPIWorkspace {
|
|
|
1188397
1188678
|
const definition3 = convert4({
|
|
1188398
1188679
|
taskContext: context,
|
|
1188399
1188680
|
ir: openApiIr,
|
|
1188400
|
-
enableUniqueErrorsPerEndpoint: (settings == null ? void 0 : settings.enableUniqueErrorsPerEndpoint) ?? false
|
|
1188681
|
+
enableUniqueErrorsPerEndpoint: (settings == null ? void 0 : settings.enableUniqueErrorsPerEndpoint) ?? false,
|
|
1188682
|
+
detectGlobalHeaders: (settings == null ? void 0 : settings.detectGlobalHeaders) ?? true
|
|
1188401
1188683
|
});
|
|
1188402
1188684
|
return {
|
|
1188403
1188685
|
absoluteFilepath: AbsoluteFilePath.of("/DUMMY_PATH"),
|
|
@@ -1188439,7 +1188721,9 @@ function getOSSWorkspaceSettingsFromGeneratorInvocation(generatorInvocation) {
|
|
|
1188439
1188721
|
if (generatorInvocation.settings == null) {
|
|
1188440
1188722
|
return void 0;
|
|
1188441
1188723
|
}
|
|
1188442
|
-
const result2 = {
|
|
1188724
|
+
const result2 = {
|
|
1188725
|
+
detectGlobalHeaders: true
|
|
1188726
|
+
};
|
|
1188443
1188727
|
if (generatorInvocation.settings.unions === "v1") {
|
|
1188444
1188728
|
result2.enableDiscriminatedUnionV2 = true;
|
|
1188445
1188729
|
}
|
|
@@ -1192304,10 +1192588,10 @@ var CliContext = class {
|
|
|
1192304
1192588
|
return "fern-api";
|
|
1192305
1192589
|
}
|
|
1192306
1192590
|
getPackageVersion() {
|
|
1192307
|
-
if ("0.33.2
|
|
1192591
|
+
if ("0.33.2" == null) {
|
|
1192308
1192592
|
this.logger.error("CLI_VERSION is not defined");
|
|
1192309
1192593
|
}
|
|
1192310
|
-
return "0.33.2
|
|
1192594
|
+
return "0.33.2";
|
|
1192311
1192595
|
}
|
|
1192312
1192596
|
getCliName() {
|
|
1192313
1192597
|
if ("fern" == null) {
|
|
@@ -1193252,10 +1193536,10 @@ async function convertDeclaration(declaration) {
|
|
|
1193252
1193536
|
}
|
|
1193253
1193537
|
return {
|
|
1193254
1193538
|
docs: await formatDocs(declaration.docs),
|
|
1193255
|
-
availability:
|
|
1193539
|
+
availability: convertAvailability4(declaration.availability)
|
|
1193256
1193540
|
};
|
|
1193257
1193541
|
}
|
|
1193258
|
-
function
|
|
1193542
|
+
function convertAvailability4(availability) {
|
|
1193259
1193543
|
if (availability == null) {
|
|
1193260
1193544
|
return void 0;
|
|
1193261
1193545
|
}
|
|
@@ -1195823,7 +1196107,7 @@ async function convertHttpService({ rootPathParameters, serviceDefinition, file,
|
|
|
1195823
1196107
|
});
|
|
1195824
1196108
|
const serviceName = { fernFilepath: file.fernFilepath };
|
|
1195825
1196109
|
const service = {
|
|
1195826
|
-
availability:
|
|
1196110
|
+
availability: convertAvailability4(serviceDefinition.availability),
|
|
1195827
1196111
|
name: serviceName,
|
|
1195828
1196112
|
displayName: serviceDefinition["display-name"] ?? void 0,
|
|
1195829
1196113
|
basePath: constructHttpPath(serviceDefinition["base-path"]),
|
|
@@ -1196435,7 +1196719,7 @@ async function convertChannel({ channel, typeResolver, exampleResolver, variable
|
|
|
1196435
1196719
|
for (const [messageId, message] of Object.entries(channel.messages ?? {})) {
|
|
1196436
1196720
|
messages2.push({
|
|
1196437
1196721
|
type: messageId,
|
|
1196438
|
-
availability:
|
|
1196722
|
+
availability: convertAvailability4(message.availability),
|
|
1196439
1196723
|
docs: message.docs,
|
|
1196440
1196724
|
origin: message.origin,
|
|
1196441
1196725
|
body: convertMessageSchema({ body: message.body, file }),
|
|
@@ -1196443,7 +1196727,7 @@ async function convertChannel({ channel, typeResolver, exampleResolver, variable
|
|
|
1196443
1196727
|
});
|
|
1196444
1196728
|
}
|
|
1196445
1196729
|
return {
|
|
1196446
|
-
availability:
|
|
1196730
|
+
availability: convertAvailability4(channel.availability),
|
|
1196447
1196731
|
path: constructHttpPath(channel.path),
|
|
1196448
1196732
|
auth: channel.auth,
|
|
1196449
1196733
|
name: file.fernFilepath.file ?? file.casingsGenerator.generateName(channel["display-name"] ?? channel.path),
|
|
@@ -1196923,7 +1197207,7 @@ async function convertWebhookGroup({ webhooks, file, typeResolver, exampleResolv
|
|
|
1196923
1197207
|
for (const [webhookId, webhook] of Object.entries(webhooks)) {
|
|
1196924
1197208
|
webhookGroup.push({
|
|
1196925
1197209
|
id: IdGenerator.generateWebhookId(file.fernFilepath, webhookId),
|
|
1196926
|
-
availability:
|
|
1197210
|
+
availability: convertAvailability4(webhook.availability),
|
|
1196927
1197211
|
displayName: webhook["display-name"],
|
|
1196928
1197212
|
docs: webhook.docs,
|
|
1196929
1197213
|
method: webhook.method,
|
|
@@ -1202160,7 +1202444,7 @@ var DocsDefinitionResolver = class {
|
|
|
1202160
1202444
|
return {
|
|
1202161
1202445
|
version: version3.version,
|
|
1202162
1202446
|
config: convertedNavigation,
|
|
1202163
|
-
availability: version3.availability != null ?
|
|
1202447
|
+
availability: version3.availability != null ? convertAvailability5(version3.availability) : void 0,
|
|
1202164
1202448
|
urlSlugOverride: version3.slug
|
|
1202165
1202449
|
};
|
|
1202166
1202450
|
}));
|
|
@@ -1202467,7 +1202751,7 @@ function createEditThisPageUrl(editThisPage, pageFilepath) {
|
|
|
1202467
1202751
|
const { owner, repo, branch = "main", host = "https://github.com" } = editThisPage.github;
|
|
1202468
1202752
|
return `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}`;
|
|
1202469
1202753
|
}
|
|
1202470
|
-
function
|
|
1202754
|
+
function convertAvailability5(availability) {
|
|
1202471
1202755
|
switch (availability) {
|
|
1202472
1202756
|
case "beta":
|
|
1202473
1202757
|
return DocsV1Write_exports.VersionAvailability.Beta;
|
|
@@ -1204224,7 +1204508,7 @@ async function getPreviewDocsDefinition({ domain: domain2, project, context }) {
|
|
|
1204224
1204508
|
if (docsWorkspace == null) {
|
|
1204225
1204509
|
throw new Error("No docs workspace found in project");
|
|
1204226
1204510
|
}
|
|
1204227
|
-
const fernWorkspaces = await Promise.all(apiWorkspaces.map(async (workspace) => await workspace.toFernWorkspace({ context }, { enableUniqueErrorsPerEndpoint: true })));
|
|
1204511
|
+
const fernWorkspaces = await Promise.all(apiWorkspaces.map(async (workspace) => await workspace.toFernWorkspace({ context }, { enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false })));
|
|
1204228
1204512
|
const apiCollector = new ReferencedAPICollector();
|
|
1204229
1204513
|
const filesV2 = {};
|
|
1204230
1204514
|
const resolver3 = new DocsDefinitionResolver(domain2, docsWorkspace, fernWorkspaces, context, void 0, async (files) => files.map((file) => {
|
|
@@ -1244389,7 +1244673,10 @@ async function generateDocsWorkspace({
|
|
|
1244389
1244673
|
await validateDocsWorkspaceAndLogIssues({ workspace: docsWorkspace, context, logWarnings: false });
|
|
1244390
1244674
|
const fernWorkspaces = await Promise.all(
|
|
1244391
1244675
|
project.apiWorkspaces.map(async (workspace) => {
|
|
1244392
|
-
return workspace.toFernWorkspace(
|
|
1244676
|
+
return workspace.toFernWorkspace(
|
|
1244677
|
+
{ context },
|
|
1244678
|
+
{ enableUniqueErrorsPerEndpoint: true, detectGlobalHeaders: false }
|
|
1244679
|
+
);
|
|
1244393
1244680
|
})
|
|
1244394
1244681
|
);
|
|
1244395
1244682
|
await runRemoteGenerationForDocsWorkspace({
|