@fern-api/fern-api-dev 5.72.0 → 5.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +1069 -681
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -212337,7 +212337,7 @@ var init_esm18 = __esm({
|
|
|
212337
212337
|
}
|
|
212338
212338
|
});
|
|
212339
212339
|
|
|
212340
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
212340
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.66-cc15e6c17a_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
|
|
212341
212341
|
function assertNever3(x4) {
|
|
212342
212342
|
throw new Error("Unexpected value: " + JSON.stringify(x4));
|
|
212343
212343
|
}
|
|
@@ -212477,6 +212477,11 @@ function WebhookId2(value2) {
|
|
|
212477
212477
|
function GraphQlOperationId(value2) {
|
|
212478
212478
|
return value2;
|
|
212479
212479
|
}
|
|
212480
|
+
function getGraphqlOperationIds(node4) {
|
|
212481
|
+
const ids = new Set(node4.graphqlOperationIds ?? []);
|
|
212482
|
+
ids.add(node4.graphqlOperationId);
|
|
212483
|
+
return [...ids];
|
|
212484
|
+
}
|
|
212480
212485
|
function EnvironmentId3(value2) {
|
|
212481
212486
|
return value2;
|
|
212482
212487
|
}
|
|
@@ -212626,16 +212631,16 @@ function selectDefaultValue(shape, defaults3) {
|
|
|
212626
212631
|
return void 0;
|
|
212627
212632
|
}
|
|
212628
212633
|
}
|
|
212629
|
-
function unwrapObjectType(
|
|
212630
|
-
const cached2 = UnwrapObjectTypeCache.get(
|
|
212634
|
+
function unwrapObjectType(object32, types4, parentVisitedTypeIds) {
|
|
212635
|
+
const cached2 = UnwrapObjectTypeCache.get(object32);
|
|
212631
212636
|
if (cached2 != null) {
|
|
212632
212637
|
return cached2;
|
|
212633
212638
|
}
|
|
212634
|
-
const directProperties =
|
|
212635
|
-
const extraProperties =
|
|
212639
|
+
const directProperties = object32.properties;
|
|
212640
|
+
const extraProperties = object32.extraProperties;
|
|
212636
212641
|
const descriptions = [];
|
|
212637
212642
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
212638
|
-
const extendedProperties =
|
|
212643
|
+
const extendedProperties = object32.extends.flatMap((typeId) => {
|
|
212639
212644
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
212640
212645
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
212641
212646
|
return [];
|
|
@@ -212696,10 +212701,10 @@ function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
|
|
|
212696
212701
|
extraProperties,
|
|
212697
212702
|
visitedTypeIds
|
|
212698
212703
|
};
|
|
212699
|
-
UnwrapObjectTypeCache.set(
|
|
212704
|
+
UnwrapObjectTypeCache.set(object32, toRet2);
|
|
212700
212705
|
return toRet2;
|
|
212701
212706
|
}
|
|
212702
|
-
const propertyKeys = new Set(
|
|
212707
|
+
const propertyKeys = new Set(object32.properties.map((property24) => property24.key));
|
|
212703
212708
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
212704
212709
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
212705
212710
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -212717,7 +212722,7 @@ function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
|
|
|
212717
212722
|
]
|
|
212718
212723
|
);
|
|
212719
212724
|
const toRet = { properties: properties7, descriptions, extraProperties, visitedTypeIds };
|
|
212720
|
-
UnwrapObjectTypeCache.set(
|
|
212725
|
+
UnwrapObjectTypeCache.set(object32, toRet);
|
|
212721
212726
|
return toRet;
|
|
212722
212727
|
}
|
|
212723
212728
|
function unwrapDiscriminatedUnionVariant(union112, variant, types4) {
|
|
@@ -213781,7 +213786,9 @@ function toSnippetHttpRequest(endpoint3, example, auth8) {
|
|
|
213781
213786
|
});
|
|
213782
213787
|
}
|
|
213783
213788
|
const body = example.requestBody ?? void 0;
|
|
213784
|
-
if (
|
|
213789
|
+
if (example.contentType != null) {
|
|
213790
|
+
headers2["Content-Type"] = example.contentType;
|
|
213791
|
+
} else if (endpoint3.requests?.[0]?.contentType != null) {
|
|
213785
213792
|
headers2["Content-Type"] = endpoint3.requests?.[0]?.contentType;
|
|
213786
213793
|
}
|
|
213787
213794
|
if (body != null && headers2["Content-Type"] == null) {
|
|
@@ -213876,8 +213883,8 @@ function sortKeysByShape(obj, shape, types4) {
|
|
|
213876
213883
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o3) => sortKeysByShape(o3, itemShape, types4)) : obj,
|
|
213877
213884
|
map: ({ valueShape }) => isPlainObject_default2(obj) ? mapValues3(obj, (value2) => sortKeysByShape(value2, valueShape, types4)) : obj,
|
|
213878
213885
|
unknown: () => obj,
|
|
213879
|
-
object: (
|
|
213880
|
-
const objectProperties = unwrapObjectType(
|
|
213886
|
+
object: (object32) => {
|
|
213887
|
+
const objectProperties = unwrapObjectType(object32, types4).properties;
|
|
213881
213888
|
return isPlainObject_default2(obj) ? mapValues3(
|
|
213882
213889
|
sortKeysBy(
|
|
213883
213890
|
obj,
|
|
@@ -214257,7 +214264,8 @@ function generateGraphQlSnippet(context3) {
|
|
|
214257
214264
|
const fieldPath = operation.fieldPath;
|
|
214258
214265
|
const hasFieldPath = fieldPath != null && fieldPath.length > 0;
|
|
214259
214266
|
const selectionSetIndent = hasFieldPath ? 2 + fieldPath.length : 2;
|
|
214260
|
-
const
|
|
214267
|
+
const initialDepth = isReturnTypeNamespace(operation.returnType, types4) ? DEFAULT_MAX_DEPTH + 1 : DEFAULT_MAX_DEPTH;
|
|
214268
|
+
const selectionSet = generateSelectionSet(operation.returnType, types4, initialDepth, /* @__PURE__ */ new Set(), selectionSetIndent);
|
|
214261
214269
|
let query = operationKeyword;
|
|
214262
214270
|
if (operationName || variableDefinitions.length > 0) {
|
|
214263
214271
|
query += ` ${operationName}`;
|
|
@@ -214507,6 +214515,17 @@ function generateExamplePrimitiveValue(primitive) {
|
|
|
214507
214515
|
return "example";
|
|
214508
214516
|
}
|
|
214509
214517
|
}
|
|
214518
|
+
function isReturnTypeNamespace(returnType, types4) {
|
|
214519
|
+
const { shape } = unwrapReference(returnType, types4);
|
|
214520
|
+
if (shape.type !== "object") {
|
|
214521
|
+
return false;
|
|
214522
|
+
}
|
|
214523
|
+
const properties7 = shape.properties ?? [];
|
|
214524
|
+
if (properties7.length === 0) {
|
|
214525
|
+
return false;
|
|
214526
|
+
}
|
|
214527
|
+
return properties7.every((prop) => prop.arguments != null && prop.arguments.length > 0);
|
|
214528
|
+
}
|
|
214510
214529
|
function generateSelectionSet(shape, types4, depth, visited = /* @__PURE__ */ new Set(), indentLevel = 2) {
|
|
214511
214530
|
if (depth <= 0) {
|
|
214512
214531
|
return "";
|
|
@@ -215095,26 +215114,6 @@ function createDocsV1ReadClient(options2) {
|
|
|
215095
215114
|
});
|
|
215096
215115
|
return createORPCClient(link3);
|
|
215097
215116
|
}
|
|
215098
|
-
function OrgId2(value2) {
|
|
215099
|
-
return value2;
|
|
215100
|
-
}
|
|
215101
|
-
function FilePath(value2) {
|
|
215102
|
-
return value2;
|
|
215103
|
-
}
|
|
215104
|
-
function DocsRegistrationId(value2) {
|
|
215105
|
-
return value2;
|
|
215106
|
-
}
|
|
215107
|
-
function createDocsV1WriteClient(options2) {
|
|
215108
|
-
const link3 = new OpenAPILink(docsV1WriteContract, {
|
|
215109
|
-
url: `${options2.baseUrl}/registry/docs`,
|
|
215110
|
-
headers: () => ({
|
|
215111
|
-
Authorization: `Bearer ${options2.token}`,
|
|
215112
|
-
...options2.headers
|
|
215113
|
-
}),
|
|
215114
|
-
...options2.fetch != null ? { fetch: options2.fetch } : {}
|
|
215115
|
-
});
|
|
215116
|
-
return createORPCClient(link3);
|
|
215117
|
-
}
|
|
215118
215117
|
function createLibraryDocsClient(options2) {
|
|
215119
215118
|
const link3 = new OpenAPILink(libraryDocsContract, {
|
|
215120
215119
|
url: `${options2.baseUrl}/v2/registry/docs`,
|
|
@@ -215148,6 +215147,15 @@ function createDocsV2ReadClient(options2) {
|
|
|
215148
215147
|
});
|
|
215149
215148
|
return createORPCClient(link3);
|
|
215150
215149
|
}
|
|
215150
|
+
function OrgId2(value2) {
|
|
215151
|
+
return value2;
|
|
215152
|
+
}
|
|
215153
|
+
function FilePath(value2) {
|
|
215154
|
+
return value2;
|
|
215155
|
+
}
|
|
215156
|
+
function DocsRegistrationId(value2) {
|
|
215157
|
+
return value2;
|
|
215158
|
+
}
|
|
215151
215159
|
function FilePath2(value2) {
|
|
215152
215160
|
return value2;
|
|
215153
215161
|
}
|
|
@@ -215165,8 +215173,7 @@ function createDocsV2WriteClient(options2) {
|
|
|
215165
215173
|
function createDocsClient(options2) {
|
|
215166
215174
|
return {
|
|
215167
215175
|
v1: {
|
|
215168
|
-
read: createDocsV1ReadClient(options2)
|
|
215169
|
-
write: createDocsV1WriteClient(options2)
|
|
215176
|
+
read: createDocsV1ReadClient(options2)
|
|
215170
215177
|
},
|
|
215171
215178
|
v2: {
|
|
215172
215179
|
read: createDocsV2ReadClient(options2),
|
|
@@ -215650,9 +215657,9 @@ function generateHttpResponseBodyExample(type7, resolveTypeById) {
|
|
|
215650
215657
|
}
|
|
215651
215658
|
}
|
|
215652
215659
|
}
|
|
215653
|
-
function generateExampleObject(
|
|
215660
|
+
function generateExampleObject(object32, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
215654
215661
|
const example = {};
|
|
215655
|
-
for (const property24 of getAllObjectProperties(
|
|
215662
|
+
for (const property24 of getAllObjectProperties(object32, resolveTypeById)) {
|
|
215656
215663
|
const value2 = generateExampleFromTypeReference(
|
|
215657
215664
|
property24.valueType,
|
|
215658
215665
|
resolveTypeById,
|
|
@@ -215836,10 +215843,10 @@ function generateExamplePrimitive(reference4) {
|
|
|
215836
215843
|
return reference4.name;
|
|
215837
215844
|
}
|
|
215838
215845
|
}
|
|
215839
|
-
function getAllObjectProperties(
|
|
215846
|
+
function getAllObjectProperties(object32, resolveTypeById) {
|
|
215840
215847
|
return [
|
|
215841
|
-
...
|
|
215842
|
-
...
|
|
215848
|
+
...object32.properties,
|
|
215849
|
+
...object32.extends.flatMap((typeId) => {
|
|
215843
215850
|
let type7 = resolveTypeById(typeId);
|
|
215844
215851
|
if (type7 == null) {
|
|
215845
215852
|
return [];
|
|
@@ -216086,6 +216093,7 @@ function convertAPIDefinitionToDb(writeShape, id, snippets) {
|
|
|
216086
216093
|
return {
|
|
216087
216094
|
id,
|
|
216088
216095
|
apiName: writeShape.apiName,
|
|
216096
|
+
specVersion: writeShape.specVersion,
|
|
216089
216097
|
rootPackage: {
|
|
216090
216098
|
endpoints: writeShape.rootPackage.endpoints.map(
|
|
216091
216099
|
(endpoint3) => transformEndpoint({
|
|
@@ -216497,6 +216505,7 @@ function transformExampleEndpointCall({
|
|
|
216497
216505
|
}) {
|
|
216498
216506
|
return {
|
|
216499
216507
|
name: writeShape.name,
|
|
216508
|
+
contentType: writeShape.contentType ?? void 0,
|
|
216500
216509
|
description: writeShape.description,
|
|
216501
216510
|
// htmlDescription,
|
|
216502
216511
|
// descriptionContainsMarkdown: true,
|
|
@@ -217174,6 +217183,7 @@ function convertDbAPIDefinitionToRead(dbShape) {
|
|
|
217174
217183
|
return {
|
|
217175
217184
|
id: dbShape.id,
|
|
217176
217185
|
apiName: dbShape.apiName,
|
|
217186
|
+
specVersion: dbShape.specVersion,
|
|
217177
217187
|
rootPackage: {
|
|
217178
217188
|
endpoints: dbShape.rootPackage.endpoints.map((endpoint3) => transformEndpoint2({ dbShape: endpoint3 })),
|
|
217179
217189
|
subpackages: dbShape.rootPackage.subpackages,
|
|
@@ -217340,6 +217350,7 @@ function convertExampleEndpointCall({
|
|
|
217340
217350
|
}) {
|
|
217341
217351
|
return {
|
|
217342
217352
|
name: dbShape.name,
|
|
217353
|
+
contentType: dbShape.contentType ?? void 0,
|
|
217343
217354
|
description: dbShape.description,
|
|
217344
217355
|
// htmlDescription: dbShape.htmlDescription,
|
|
217345
217356
|
// descriptionContainsMarkdown: true,
|
|
@@ -218405,12 +218416,6 @@ function findNode(root6, slug) {
|
|
|
218405
218416
|
}
|
|
218406
218417
|
}
|
|
218407
218418
|
}
|
|
218408
|
-
if (!foundProductNode && isProductGroupNode(root6.child) && root6.child.landingPage != null) {
|
|
218409
|
-
const landingPageSlug = root6.child.landingPage.slug;
|
|
218410
|
-
if (slug === landingPageSlug) {
|
|
218411
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
218412
|
-
}
|
|
218413
|
-
}
|
|
218414
218419
|
return {
|
|
218415
218420
|
type: "notFound",
|
|
218416
218421
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -218517,15 +218522,15 @@ function findNode(root6, slug) {
|
|
|
218517
218522
|
};
|
|
218518
218523
|
}
|
|
218519
218524
|
if (root6.type === "root" && root6.slug === slug && root6.pointsTo != null) {
|
|
218520
|
-
return { type: "redirect", redirect: root6.pointsTo };
|
|
218525
|
+
return { type: "redirect", redirect: root6.pointsTo, authed: root6.authed };
|
|
218521
218526
|
}
|
|
218522
218527
|
if (navigation_exports.hasRedirect(found.node) && found.node.pointsTo != null) {
|
|
218523
|
-
return { type: "redirect", redirect: found.node.pointsTo };
|
|
218528
|
+
return { type: "redirect", redirect: found.node.pointsTo, authed: found.node.authed };
|
|
218524
218529
|
}
|
|
218525
218530
|
if (found.node.type === "variant" && (found.node.pointsTo == null || found.node.pointsTo === void 0)) {
|
|
218526
218531
|
const firstPage = findFirstPageInNode(found.node);
|
|
218527
218532
|
if (firstPage != null) {
|
|
218528
|
-
return { type: "redirect", redirect: firstPage };
|
|
218533
|
+
return { type: "redirect", redirect: firstPage, authed: found.node.authed };
|
|
218529
218534
|
}
|
|
218530
218535
|
}
|
|
218531
218536
|
return {
|
|
@@ -218588,6 +218593,9 @@ function getApiReferenceId(node4) {
|
|
|
218588
218593
|
landingPage: RETURN_UNDEFINED3
|
|
218589
218594
|
});
|
|
218590
218595
|
}
|
|
218596
|
+
function stripSyntheticSegments(section) {
|
|
218597
|
+
return section.split("/").filter((part) => !SYNTHETIC_SEGMENT_RE.test(part)).join("/");
|
|
218598
|
+
}
|
|
218591
218599
|
function toApis(docs2) {
|
|
218592
218600
|
return mapValues3(
|
|
218593
218601
|
docs2.definition.apis,
|
|
@@ -218614,6 +218622,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
218614
218622
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
218615
218623
|
*/
|
|
218616
218624
|
case "productgroup":
|
|
218625
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
218617
218626
|
case "versioned":
|
|
218618
218627
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
218619
218628
|
case "apiReference":
|
|
@@ -218664,6 +218673,16 @@ function mutableUpdatePointsTo(input3) {
|
|
|
218664
218673
|
const slugMap = collector.getSlugMapWithParents();
|
|
218665
218674
|
const updateNode = (node4) => {
|
|
218666
218675
|
if (navigation_exports.hasPointsTo(node4)) {
|
|
218676
|
+
if (node4.pointsTo != null) {
|
|
218677
|
+
const targetNode = slugMap.get(node4.pointsTo)?.node;
|
|
218678
|
+
if (node4.type === "tab" || node4.type !== "root" && targetNode != null) {
|
|
218679
|
+
return;
|
|
218680
|
+
}
|
|
218681
|
+
if (node4.type === "root" && targetNode != null) {
|
|
218682
|
+
node4.pointsTo = targetNode.canonicalSlug ?? (node4.slug === targetNode.slug ? void 0 : targetNode.slug);
|
|
218683
|
+
return;
|
|
218684
|
+
}
|
|
218685
|
+
}
|
|
218667
218686
|
const pointsTo = followRedirect2(node4);
|
|
218668
218687
|
if (pointsTo != null) {
|
|
218669
218688
|
if (node4.type === "root") {
|
|
@@ -218819,9 +218838,9 @@ function mutableDeleteChild(parent, node4) {
|
|
|
218819
218838
|
return "should-delete-parent";
|
|
218820
218839
|
}
|
|
218821
218840
|
}
|
|
218822
|
-
var import_ts_essentials, import_qs, import_ts_essentials2, import_ts_essentials3, import_url_join, import_qs2, import_fast_deep_equal, import_ts_essentials4, import_url_join2, import_ts_essentials5, import_ts_essentials6, import_ts_essentials7, import_url_join3, import_url_join4, import_dayjs, import_utc, import_url_join5, import_ts_essentials8, import_ts_essentials9, import_ts_essentials10, import_ts_essentials11, import_ts_essentials12, __defProp4, __export3, api_definition_exports, LOOP_TOLERANCE, LARGE_LOOP_TOLERANCE, assertNever_default, EMPTY_ARRAY2, EMPTY_OBJECT2, identity_default2, isPlainObject_default2, conjunctions, articles, prepositions, lowerCase, specials, word, regex3, convertToRegExp, src_default, SPECIAL_TOKENS2, titleCase_default, visitDiscriminatedUnion_default, OrgIdSchema, ApiIdSchema, ApiDefinitionIdSchema, HttpMethodSchema3, HttpMethod7, UrlSchema, EndpointPathLiteralSchema, EndpointIdentifierSchema, SdkRequestSchema, DocsConfigIdSchema, GrpcIdSchema, PageIdSchema, RoleIdSchema, TokenIdSchema, VersionIdSchema, LinkTarget, GrpcMethod, Availability7, SupportedLanguage, HttpSnippetLanguage4, SnippetsByEndpointMethodSchema, SdkSchema, TypeIdSchema, EndpointIdSchema, WebSocketIdSchema, WebhookIdSchema, GraphQlOperationIdSchema, GraphQlTypeCategorySchema, EnvironmentIdSchema, PropertyKeySchema, AuthSchemeIdSchema, SubpackageIdSchema, WebSocketMessageIdSchema, FileIdSchema, MultipleAuthTypeSchema, GrpcMethodSchema, AvailabilitySchema3, WebSocketMessageOriginSchema, WebhookHttpMethodSchema, WithDescriptionSchema, WithAvailabilitySchema, EnvironmentSchema3, RestProtocolSchema, OpenRpcProtocolSchema, GrpcProtocolSchema, ProtocolSchema, ObjectPropertyAccessSchema, TypeReferenceIdDefaultSchema, _numberNullish, _numberIntNullish, coercedNumberNullish, coercedNumberIntNullish, IntegerTypeSchema, DoubleTypeSchema, StringTypeSchema, LongTypeSchema, _booleanNullish, BooleanTypeSchema, DatetimeTypeSchema, UuidTypeSchema, Base64TypeSchema, DateTypeSchema, BigIntegerTypeSchema, UintTypeSchema, Uint64TypeSchema, ScalarTypeSchema, PrimitiveTypeSchema, LiteralTypeSchema, TypeReferenceSchema2, GraphQlArgumentSchema, ObjectPropertySchema2, ObjectTypeSchema, EnumValueSchema2, EnumTypeSchema, DiscriminatedUnionVariantSchema, DiscriminatedUnionTypeSchema, ContentTypeSchema, FilePropertySingleSchema, FilePropertyArraySchema, FormDataFilePropertySchema, FormDataBodyPropertySchema, FormDataPropertySchema, FormDataRequestSchema, EndpointPathPartSchema, PathParameterSchema, EndpointPathSchema, QueryParameterSchema, HeaderSchema, JsonBodyShapeSchema, FileDownloadResponseBodyShapeSchema, StreamResponseV2Schema, StreamConditionSchema, FilenameWithDataSchema, FormValueSchema, BytesValueSchema, ExampleEndpointRequestSchema, ExampleServerSentEventSchema, ExampleEndpointResponseSchema, ErrorDeclarationSchema2, ExampleErrorResponseSchema, ErrorExampleSchema, GraphQlOperationTypeSchema, GraphQlExampleSchema, CodeSnippetSchema, GraphQlOperationSchema, WebhookPayloadShapeSchema, WebhookPayloadSchema2, ExampleWebhookPayloadSchema, WebSocketMessageBodyShapeSchema, WebSocketMessageSchema, ExampleWebSocketMessageSchema, ExampleWebSocketSessionSchema, ApiNavigationConfigItemSchema, ApiNavigationConfigRootSchema, BearerAuthSchema, BasicAuthSchema, HeaderAuthSchema, OAuthClientCredentialsReferencedEndpointSchema, OAuthClientCredentialsSchema, OAuthSchema, ApiAuthSchema3, JqStringSchema, RegisterLanguageSchema, RegisterUndiscriminatedUnionVariantSchema, RegisterUndiscriminatedUnionTypeSchema, RegisterTypeShapeSchema, RegisterTypeDefinitionSchema, RegisterBytesRequestSchema, RegisterJsonRequestBodySchema, RegisterHttpRequestBodyShapeSchema, RegisterHttpRequestSchema, RegisterHttpRequestsV2Schema, RegisterCustomCodeSampleSchema, RegisterExampleEndpointCallSchema, RegisterNonStreamResponseSchema, RegisterStreamResponseSchema, RegisterStreamConditionResponseSchema, RegisterHttpResponseBodyShapeSchema, RegisterHttpResponseSchema, RegisterHttpResponsesV2Schema, RegisterErrorDeclarationV2Schema, RegisterEndpointDefinitionSchema, RegisterWebhookDefinitionSchema, RegisterWebSocketChannelSchema, SourceIdSchema, SourceSchema2, SourceUploadSchema, DynamicIRSchema, DynamicIRUploadSchema, TypescriptPackageSchema, PythonPackageSchema, GoModuleSchema, JavaCoordinateSchema, RubyGemSchema, NugetPackageSchema, ComposerPackageSchema, SwiftPackageSchema, CratesPackageSchema, SnippetsConfigSchema, RegisterApiDefinitionPackageSchema, RegisterApiDefinitionSubpackageSchema, RegisterApiDefinitionSchema, RegisterApiDefinitionResponseSchema, SnippetInfoSchema, SdkDynamicIrDownloadSchema, GetSdkDynamicIrUploadUrlsResponseSchema, CheckSdkDynamicIrExistsResponseSchema, EndpointExampleGenerationErrorBodySchema, PathPartSchema, WithNamespaceSchema, LatestAuthSchemeSchema, LatestObjectPropertyAccessSchema, LatestTypeReferenceIdDefaultSchema, LatestPrimitiveTypeSchema, LatestLiteralTypeSchema, LatestUnknownTypeSchema, LatestEnumValueSchema, LatestEnumTypeSchema, LatestObjectPropertySchema, LatestParameterPropertySchema, LatestObjectTypeSchema, LatestUndiscriminatedUnionVariantSchema, LatestUndiscriminatedUnionTypeSchema, LatestDiscriminatedUnionVariantSchema, LatestDiscriminatedUnionTypeSchema, LatestTypeShapeSchema, LatestTypeReferenceSchema, LatestTypeDefinitionSchema, LatestContentTypeSchema, LatestBytesRequestSchema, LatestFormDataPropertySchema, LatestFormDataRequestSchema, LatestNullableTypeSchema, LatestOptionalTypeSchema, LatestListTypeSchema, LatestSetTypeSchema, LatestMapTypeSchema, LatestLanguageSchema, LatestExampleEndpointRequestSchema, LatestExampleEndpointResponseSchema, LatestExampleErrorResponseSchema, LatestHttpRequestBodyShapeSchema, LatestHttpRequestSchema, LatestFileDownloadResponseBodyShapeSchema, LatestStreamResponseSchema, LatestHttpResponseBodyShapeSchema, LatestHttpResponseSchema, LatestErrorExampleSchema, LatestErrorResponseSchema, LatestCodeSnippetSchema, LatestExampleEndpointCallSchema, LatestEndpointDefinitionSchema, LatestGraphQlOperationTypeSchema, LatestGraphQlArgumentSchema, LatestGraphQlExampleSchema, LatestGraphQlOperationSchema, LatestWebhookPayloadShapeSchema, LatestWebhookPayloadSchema, LatestExampleWebhookPayloadSchema, LatestWebhookDefinitionSchema, LatestWebSocketMessageSchema, LatestExampleWebSocketMessageSchema, LatestExampleWebSocketSessionSchema, LatestWebSocketChannelSchema, LatestSubpackageMetadataSchema, LatestApiDefinitionSchema, ApiDefinitionSchema2, AvailabilityOrder, UnwrapReferenceCache, UnwrapObjectTypeCache, ApiTypeIdVisitor, ApiDefinitionPruner, ROOT_PACKAGE_ID, MULTIPART_FILENAME_PLACEHOLDER, STATUS_CODE_MESSAGES, STATUS_CODE_MESSAGES_METHOD_OVERRIDES, AUTH_SCHEME_ID, DEFAULT_TYPE_REFERENCE, DEFAULT_TYPE_SHAPE, DEFAULT_WEBHOOK_PAYLOAD_SHAPE, DEFAULT_WEBHOOK_PAYLOAD, DEFAULT_GRAPHQL_ARGUMENT, ApiDefinitionV1ToLatest, HTTP_SNIPPET_CLIENTS, snippetCache, IMPORT_PREFIXES, PHP_AUTOLOAD_INSERT, HttpSnippetConverter, SDK_SNIPPET_LANGUAGES, Transformer, ReadUndiscriminatedUnionVariantSchema, ReadUndiscriminatedUnionTypeSchema, ReadTypeShapeSchema, ReadTypeDefinitionSchema, ReadBytesRequestSchema, ReadHttpRequestBodyShapeSchema, ReadHttpRequestSchema, ReadHttpRequestsV2Schema, ReadSupportedLanguageSchema, ReadLanguageSchema, ReadCustomCodeSampleSchema, ReadPythonSnippetSchema, ReadTypescriptSnippetSchema, ReadGoSnippetSchema, ReadRubySnippetSchema, ReadCsharpSnippetSchema, ReadCodeExamplesSchema, ReadExampleEndpointCallSchema, ReadNonStreamResponseSchema, ReadStreamResponseSchema, ReadStreamConditionResponseSchema, ReadHttpResponseBodyShapeSchema, ReadHttpResponseSchema, ReadHttpResponsesV2Schema, ReadErrorDeclarationV2Schema, ReadEndpointDefinitionSchema, ReadWebhookDefinitionSchema, ReadWebSocketChannelSchema, ReadApiDefinitionPackageSchema, ReadApiDefinitionSubpackageSchema, ReadApiDefinitionSchema, apiLatestContract, apiReadContract, apiRegisterContract, DocsDeploymentStatusSchema, DocsSiteSchema, DocsDeploymentSchema, RegisterDocsSiteInputSchema, GetPostmanCollectionIdInputSchema, GetDocsStatusInputSchema, SetDocsStatusInputSchema, CreateDeploymentInputSchema, UpdateDeploymentStatusInputSchema, GetDocsDeploymentsInputSchema, UnlockDeployInputSchema, GetDocsStatusResponseSchema, GetDocsDeploymentsResponseSchema, CreateDeploymentResponseSchema, UpdateDeploymentStatusResponseSchema, GetPostmanCollectionIdResponseSchema, UnlockDeployResponseSchema, GetDocsSitesByCollectionIdInputSchema, FindSiteByOrgAndCollectionInputSchema, FindSiteByOrgAndCollectionResponseSchema, RecordPostmanNotificationInputSchema, RecordPostmanNotificationResponseSchema, GetUnnotifiedPostmanSitesResponseSchema, GetDocsSitesByCollectionIdResponseSchema, DeleteDocsSiteByServiceInputSchema, DeleteDocsSiteByServiceResponseSchema, SetEditorRepoUrlInputSchema, docsDeploymentContract, DocsSiteUrlSchema, DashboardDocsSiteSchema, GetDocsSitesForOrgInputSchema, GetDocsSitesForOrgResponseSchema, IsDocsSiteInOrgInputSchema, IsDocsSiteInOrgResponseSchema, DeleteAllDocsSitesForOrgInputSchema, DeleteAllDocsSitesForOrgResponseSchema, dashboardContract, FileIdSchema2, PageIdSchema2, UrlSchema2, VersionIdSchema2, ApiDefinitionIdSchema2, EndpointIdSchema2, WebSocketIdSchema2, WebhookIdSchema2, RoleIdSchema2, SubpackageIdSchema2, LinkTargetSchema, AvailabilitySchema22, RgbaColorSchema, FileIdOrUrlSchema, LanguageSchema, Bcp47LocaleSchema, DocsTranslationsConfigSchema, ProgrammingLanguageSchema, AnnouncementConfigSchema, SegmentConfigSchema, FullStoryAnalyticsConfigSchema, IntercomConfigSchema, PostHogConfigSchema, GTMConfigSchema, GoogleAnalytics4ConfigSchema, AmplitudeConfigSchema, MixpanelConfigSchema, HotJarConfigSchema, KoalaConfigSchema, LogRocketConfigSchema, PirschConfigSchema, PlausibleConfigSchema, FathomConfigSchema, ClearBitConfigSchema, HeapConfigSchema, AnalyticsConfigSchema, SearchbarPlacementSchema, TabsPlacementSchema, SwitcherPlacementSchema, ContentAlignmentSchema, HeaderPositionSchema, PageWidthSizeConfigSchema, SizeConfigSchema, TabsAlignmentSchema, DocsLayoutConfigSchema, FooterNavConfigSchema, DocsSidebarConfigSchema, DocsBodyConfigSchema, DocsTabsStyleSchema, DocsTabsObjectConfigSchema, DocsTabsConfigSchema, DocsPageActionsConfigSchema, LanguageSwitcherConfigSchema, ProductSwitcherConfigSchema, DocsThemeConfigSchema, HttpSnippetLanguageSchema, HttpSnippetsConfigSchema, SearchSettingsConfigSchema, DocsSettingsConfigSchema, TwitterCardSettingSchema, MetadataConfigSchema, RedirectConfigSchema, WithPermissionsSchema, NavbarLinkMetadataSchema, NavbarGithubMetadataSchema, NavbarLinkDropdownMetadataSchema, NavbarLinkSchema, FooterLinkSchema, CssConfigSchema, JsScriptStrategySchema, JsRemoteConfigSchema, JsFileConfigSchema, JsConfigSchema, IntegrationsConfigSchema, FontStyleSchema, FontDisplaySchema, CustomFontConfigVariantSchema, CustomFontConfigSchema, FontConfigV2Schema, DocsTypographyConfigV2Schema, ThemedFileIdSchema, ColorsConfigSchema, ColorUnthemedConfigSchema, ColorThemedConfigSchema, ColorConfigSchema, ColorsConfigV2Schema, FontConfigSchema, DocsTypographyConfigSchema, EditThisPageLaunchSchema, AIChatLocationSchema, AIChatWebsiteDatasourceSchema, AIChatDatasourceSchema, AIModelSchema, AIChatConfigSchema, PageDescriptionSourceSchema, AgentsConfigSchema, PageActionOptionSchema, CustomPageActionSchema, SkillSchema, SkillsConfigSchema, PageActionOptionsSchema, PageActionsConfigSchema, HeightSchema, PageContentSchema, NavigationNodeMetadataSchema, PageMetadataSchema, LinkMetadataSchema, NavigationTabLinkSchema, ChangelogItemSchema, ChangelogSectionSchema, ChangelogSectionV3Schema, ApiSectionV2Schema, GitHubRepoSchema, NpmPackageSchema, MavenPackageSchema, PypiPackageSchema, PublishedSdkSchema, PublishedPostmanCollectionSchema, ApiArtifactsSchema, ApiNavigationConfigItemSchema2, ApiNavigationConfigRootSchema2, DocsConfigIdSchema2, UrlFileSchema, ImageFileSchema, FileSchema2, BackgroundSchema, ThemeConfigSchema, DarkAndLightModeConfigSchema, ColorsConfigV3Schema, ApiNavigationConfigItemSchema3, ApiNavigationConfigRootSchema3, ApiSectionSchema, DocsSectionSchema, NavigationItemSchema, NavigationTabGroupSchema, NavigationTabSchema, UnversionedTabbedNavigationConfigSchema, UnversionedUntabbedNavigationConfigSchema, UnversionedNavigationConfigSchema, VersionedNavigationConfigDataSchema, VersionedNavigationConfigSchema, NavigationConfigSchema, DocsConfigSchema, DocsDefinitionSchema, BaseUrlSchema, LoadDocsForUrlResponseSchema, GetDocsForDomainLegacyInputSchema, GetDocsForDomainInputSchema, docsV1ReadContract, OrgIdSchema2, FilePathSchema, DocsRegistrationIdSchema, HeightSchema2, FileS3UploadUrlSchema, StartDocsRegisterResponseSchema, PageContentSchema2, NavigationNodeMetadataSchema2, PageMetadataSchema2, LinkMetadataSchema2, ChangelogItemSchema2, ChangelogSectionSchema2, ChangelogSectionV2Schema, ChangelogSectionV3Schema2, NavigationTabLinkSchema2, ApiNavigationConfigItemSchema4, ApiNavigationConfigSubpackageSchema, ApiNavigationConfigRootSchema4, ApiSectionSchema2, ApiSectionV2Schema2, DocsSectionSchema2, NavigationItemSchema2, NavigationTabGroupSchema2, NavigationTabSchema2, NavigationTabV2Schema, UnversionedTabbedNavigationConfigSchema2, UnversionedUntabbedNavigationConfigSchema2, UnversionedNavigationConfigSchema2, VersionedNavigationConfigDataSchema2, VersionedNavigationConfigSchema2, NavigationConfigSchema2, ThemeConfigSchema2, DarkAndLightModeConfigSchema2, ColorsConfigV3Schema2, DocsConfigSchema2, DocsDefinitionSchema2, NpmPackageSchema2, MavenPackageSchema2, PypiPackageSchema2, PublishedSdkSchema2, PublishedPostmanCollectionSchema2, ApiArtifactsSchema2, InvalidCustomDomainErrorBodySchema, OverlappingCustomDomainsSchema, StartDocsRegisterV1InputSchema, StartDocsRegisterV1ResponseSchema, FinishDocsRegisterV1InputSchema, docsV1WriteContract, ALLOWED_HOSTNAMES, GithubUrlSchema, SafeBranchSchema, SafePackagePathSchema, LibraryDocsBaseConfigSchema, PythonLibraryDocsConfigSchema, CppLibraryDocsConfigSchema, StartLibraryDocsGenerationInputSchema, StartLibraryDocsGenerationResponseSchema, GetLibraryDocsStatusInputSchema, LibraryDocsResultSchema, LibraryDocsGenerationStatusSchema, libraryDocsContract, GetOrganizationForUrlInputSchema, organizationContract, contract_exports, GetDocsUrlMetadataInputSchema, GetDocsUrlMetadataResponseSchema, GetDocsForUrlInputSchema, GetPrivateDocsForUrlInputSchema, ListAllDocsUrlsInputSchema, GetDocsConfigByIdInputSchema, DocsDefinitionField, GetDocsConfigByIdResponseSchema, DocsDomainItemSchema, ListAllDocsUrlsResponseSchema, getDocsForUrl, docsV2ReadContract, contract_exports2, FilePathSchema2, FilePathInputSchema, ImageFilePathSchema, AuthConfigSchema, StartDocsRegisterV2InputSchema, StartDocsRegisterV2ResponseSchema, StartDocsPreviewRegisterInputSchema, StartDocsPreviewRegisterResponseSchema, FinishDocsRegisterV2InputSchema, TransferOwnershipInputSchema, SetIsArchivedInputSchema, SetDocsUrlMetadataInputSchema, AlgoliaDomainInputSchema, ListAlgoliaPreviewWhitelistResponseSchema, DeleteDocsSiteInputSchema, RemoveCustomDomainAliasInputSchema, Bcp47LocaleSchema2, RegisterTranslationInputSchema, RegisterTranslationResponseSchema, docsV2WriteContract, InvalidateCachedDocsInputSchema, docsCacheContract, MissingContentSchema, RegisterResponseSchema, FinishResponseSchema, ArchiveSiteInputSchema, ArchiveSiteResponseSchema, BlobRefSchema, PageBlobRefSchema, FileManifestEntrySchema, ImageRefSchema, PathOrUrlSchema, RgbaSchema, BackgroundColorSchema, ACCENT_SCALE_KEYS, accentScaleShape, LedgerThemeConfigSchema, LedgerColorsConfigSchema, LedgerFontVariantSchema, LedgerFontConfigSchema, LedgerTypographySchema, LedgerJsFileSchema, LedgerJsConfigSchema, LedgerMetadataConfigSchema, NavbarLinksFieldSchema, FooterLinksFieldSchema, LayoutFieldSchema, ThemeFieldSchema, SettingsFieldSchema, AnalyticsFieldSchema, AIChatFieldSchema, PageActionsFieldSchema, LedgerAgentsConfigSchema, LedgerConfigSchema, MetadataStringArraySchema, FeatureFlagMetadataSchema, LinkTargetSchema2, CollapsedSchema, LedgerAvailabilitySchema, LedgerArtifactTypeSchema, LedgerMetadataBaseSchema, NodeMetadataFields, ApiNodeMetadataFields, LedgerSegmentDetailMetadataObjectSchema, LedgerSegmentDetailMetadataSchema, LedgerSegmentMetadataObjectSchema, LedgerSegmentMetadataSchema, LedgerMarkdownMetadataSchema, LedgerRestMetadataSchema, LedgerWebSocketMetadataSchema, LedgerWebhookMetadataSchema, LedgerGrpcMetadataSchema, LedgerGraphQlMetadataSchema, LedgerChangelogEntryMetadataSchema, LedgerLinkMetadataSchema, LedgerFileArtifactMetadataSchema, LedgerRedirectMetadataSchema, LedgerArtifactMetadataSchema, LEDGER_ARTIFACT_METADATA_SCHEMAS, NavRouteBaseSchema, LedgerNavRouteSchema, DocsPublishGitInputSchema, DocsContentFieldsSchema, LocaleEntrySchemaInternal, LocaleEntrySchema, DocsPublishInputSchemaInternal, DocsPublishInputSchema, LedgerPreviewRegisterInputSchemaInternal, LedgerPreviewRegisterInputSchema, LedgerPreviewRegisterResponseSchema, docsLedgerContract, CurrentVersionInputSchema, CurrentPreviewInputSchema, CurrentVersionResponseSchema, ContentRefSchema, SegmentDetailSchema, SegmentSchema, VersionMetadataInputSchema, VersionMetadataResponseSchema, PageContentInputSchema, PageContentResponseSchema, BatchPageContentInputSchema, BatchPageContentItemSchema, BatchPageContentResponseSchema, NavInputSchema, NavResponseSchema, RouteContextInputSchema, RouteContextResponseBaseSchema, RouteContextResponseSchema, TopLevelNavigationInputSchema, TopLevelNavigationResponseSchema, VersionSwitchTargetsInputSchema, VersionSwitchTargetSchema, VersionSwitchTargetsResponseSchema, ApiDefinitionInputSchema, ApiDefinitionResponseSchema, PrunedApiDefinitionInputSchema, PrunedApiDefinitionResponseSchema, FileArtifactInputSchema, FileArtifactResponseSchema, PresignedFileDownloadInputSchema, PresignedFileDownloadResponseSchema, FileMetadataInputSchema, FileMetadataResponseSchema, docsLedgerReadContract, GetSnapshotInputSchema, SetSnapshotInputSchema, GetDocumentsForBranchesInputSchema, EditorDocumentSchema, GetSnapshotResponseSchema, GetDocumentsForBranchesResponseSchema, editorSnapshotContract, GeneratorLanguageSchema, ScriptSchema, GeneratorScriptsSchema, GeneratorTypeSchema, ChangelogEntryTypeSchema, ChangelogEntrySchema, YankSchema, ReleaseTypeSchema, VersionRangeSchema, GeneratorSchema, GeneratorOutputSchema2, GetGeneratorByImageInputSchema, GetGeneratorInputSchema, GeneratorReleaseSchema, GeneratorReleaseRequestSchema, GetLatestGeneratorReleaseInputSchema, GetGeneratorChangelogInputSchema, ChangelogResponseSchema, GetChangelogResponseSchema, GetGeneratorReleaseInputSchema, ListGeneratorReleasesInputSchema, ListGeneratorReleasesResponseSchema, CliReleaseSchema, GetLatestCliReleaseInputSchema, GetCliChangelogInputSchema, GetMinCliForIrInputSchema, UpsertCliReleaseInputSchema, GetCliReleaseInputSchema, ListCliReleasesInputSchema, ListCliReleasesResponseSchema, generatorsContract, generatorVersionsContract, generatorCliContract, CheckRunSchema, GithubRepositoryIdSchema, RepositoryIdSchema, BaseRepositorySchema, SdkRepositorySchema, FernConfigRepositorySchema, FernRepositorySchema, GithubUserSchema, GithubTeamSchema, PullRequestReviewerSchema, PullRequestStateSchema, PullRequestSchema, ListRepositoriesResponseSchema, ListPullRequestsResponseSchema, GetRepositoryInputSchema, ListRepositoriesInputSchema, DeleteRepositoryInputSchema, GetPullRequestInputSchema, ListPullRequestsInputSchema, DeletePullRequestInputSchema, gitContract, PdfExportScopeSchema, PdfExportOptionsV1Schema, PdfExportOptionsSchema, PdfExportTaskStatusSchema, PdfExportTaskSchema, ListPdfExportTasksResponseSchema, PdfExportDownloadResponseSchema, CreatePdfExportTaskInputSchema, ListPdfExportTasksInputSchema, GetPdfExportTaskInputSchema, UpdatePdfExportTaskInputSchema, GetPdfExportDownloadUrlInputSchema, CleanupPdfExportsResponseSchema, pdfExportContract, LanguageEnumSchema, VersionBumpEnumSchema, ComputeSemanticVersionInputSchema, ComputeSemanticVersionOutputSchema, sdksContract, SlugsInputSchema, SlugEntrySchema, MarkdownEntrySchema, GetSlugEntriesResponseSchema, GetMarkdownEntriesResponseSchema, slugsContract, contract_exports3, TypeScriptSdkSchema, PythonSdkSchema, GoSdkSchema, RubySdkSchema, JavaSdkSchema, CsharpSdkSchema, BaseSnippetCreateSchema, SdkSnippetsCreateSchema, snippetsFactoryContract, ParameterPayloadSchema, AuthPayloadSchema, CustomSnippetPayloadSchema, snippetsContract, SnippetRegistryEntrySchema, RegisterInputSchema, RegisterBatchInputSchema, GetInputSchema, EndpointSnippetTemplateSchema, templatesContract, GenerateTokenInputSchema, RevokeTokenInputSchema, GenerateTokenOutputSchema, tokensContract, FdrClient, APIV1Db_exports, EndpointSnippetTemplatesSchema, DbHttpRequestSchema, DbHttpRequestsV2Schema, DbEndpointDefinitionSchema, DbApiDefinitionPackageSchema, DbApiDefinitionSubpackageSchema, DbApiDefinitionSchema, DbEndpointWithContextSchema, APIV1Read_exports, WebSocketMessageOrigin3, APIV1Write_exports, DocsV1Db_exports, BackgroundSchema2, ThemeConfigSchema3, DarkAndLightModeConfigSchema3, ColorsConfigV3Schema3, DbFileInfoSchema, DbImageFileInfoSchema, DbFileInfoV2Schema, NavigationTabGroupSchema3, NavigationTabSchema3, NavigationTabV2Schema2, ApiSectionSchema3, DocsSectionSchema3, NavigationItemSchema3, UnversionedTabbedNavigationConfigSchema3, UnversionedUntabbedNavigationConfigSchema3, UnversionedNavigationConfigSchema3, VersionedNavigationConfigDataSchema3, VersionedNavigationConfigSchema3, NavigationConfigSchema3, DocsDbConfigSchema, DocsDefinitionDbV1Schema, DocsDefinitionDbV2Schema, DocsDefinitionDbV3Schema, DocsDefinitionDbSchema, DocsV1Read_exports, DocsV1Write_exports, FdrAPI_exports, latest_exports2, v1_exports, NavigationV1Availability, ApiLatestWithSubs_exports, ApiLatestEndpoint_exports, ApiLatestWebhook_exports, ApiLatestWebsocket_exports, DocsLatest_exports, StringOrStringListSchema, TwitterCardSettingSchema2, JsonLdBreadcrumbListElementSchema, JsonLdBreadcrumbListSchema, WithJsonLdBreadcrumbsSchema, WithMetadataConfigSchema, LayoutSchema, LogoConfigurationSchema, LogoSchema, BreadcrumbItemSchema, FrontmatterSchema, ResolvedMdxSchema, DocsV1Commons_exports, libraryDocs_exports, PythonClassKind, PythonParameterKind, Sdks_exports, docs, api, libraryDocs, sdks, navigation, MAX_OPTIONAL_EXAMPLES_FOR_QUERY_PARAMS, ApiDefinitionTransformationContext, DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY, SDKSnippetHolder, EMPTY_DARK_THEME, EMPTY_LIGHT_THEME, docs_exports3, EMPTY_FRONTMATTER, navigation_exports, RETURN_PAGEID, RETURN_OVERVIEW_PAGEID, RETURN_UNDEFINED, SKIP, STOP, ApiDefinitionHolder, ApiTypeIdVisitor2, ApiDefinitionPruner2, v1_exports2, ChangelogNavigationConverter, NodeIdGenerator, SlugGenerator, ApiReferenceNavigationConverter, NavigationConfigConverter, RETURN_PAGEID2, RETURN_OVERVIEW_PAGEID2, RETURN_UNDEFINED2, NodeCollectorInstances, NodeCollector, MAX_CHANGELOG_ENTRIES_MINIMUM, CHANGELOG_RECENCY_MONTHS, migrators_exports, FernNavigationV1ToLatest, utils_exports2, RETURN_UNDEFINED3, RETURN_API_DEFINITION_ID, Pruner;
|
|
218841
|
+
var import_ts_essentials, import_qs, import_ts_essentials2, import_ts_essentials3, import_url_join, import_qs2, import_fast_deep_equal, import_ts_essentials4, import_url_join2, import_ts_essentials5, import_ts_essentials6, import_ts_essentials7, import_url_join3, import_url_join4, import_dayjs, import_utc, import_url_join5, import_ts_essentials8, import_ts_essentials9, import_ts_essentials10, import_ts_essentials11, import_ts_essentials12, __defProp4, __export3, api_definition_exports, LOOP_TOLERANCE, LARGE_LOOP_TOLERANCE, assertNever_default, EMPTY_ARRAY2, EMPTY_OBJECT2, identity_default2, isPlainObject_default2, conjunctions, articles, prepositions, lowerCase, specials, word, regex3, convertToRegExp, src_default, SPECIAL_TOKENS2, titleCase_default, visitDiscriminatedUnion_default, OrgIdSchema, ApiIdSchema, ApiDefinitionIdSchema, HttpMethodSchema3, HttpMethod7, UrlSchema, EndpointPathLiteralSchema, EndpointIdentifierSchema, SdkRequestSchema, DocsConfigIdSchema, GrpcIdSchema, PageIdSchema, RoleIdSchema, TokenIdSchema, VersionIdSchema, LinkTarget, GrpcMethod, Availability7, SupportedLanguage, HttpSnippetLanguage4, SnippetsByEndpointMethodSchema, SdkSchema, TypeIdSchema, EndpointIdSchema, WebSocketIdSchema, WebhookIdSchema, GraphQlOperationIdSchema, GraphQlTypeCategorySchema, EnvironmentIdSchema, PropertyKeySchema, AuthSchemeIdSchema, SubpackageIdSchema, WebSocketMessageIdSchema, FileIdSchema, MultipleAuthTypeSchema, GrpcMethodSchema, AvailabilitySchema3, WebSocketMessageOriginSchema, WebhookHttpMethodSchema, WithDescriptionSchema, WithAvailabilitySchema, EnvironmentSchema3, RestProtocolSchema, OpenRpcProtocolSchema, GrpcProtocolSchema, ProtocolSchema, ObjectPropertyAccessSchema, TypeReferenceIdDefaultSchema, _numberNullish, _numberIntNullish, coercedNumberNullish, coercedNumberIntNullish, IntegerTypeSchema, DoubleTypeSchema, StringTypeSchema, LongTypeSchema, _booleanNullish, BooleanTypeSchema, DatetimeTypeSchema, UuidTypeSchema, Base64TypeSchema, DateTypeSchema, BigIntegerTypeSchema, UintTypeSchema, Uint64TypeSchema, ScalarTypeSchema, PrimitiveTypeSchema, LiteralTypeSchema, TypeReferenceSchema2, GraphQlArgumentSchema, ObjectPropertySchema2, ObjectTypeSchema, EnumValueSchema2, EnumTypeSchema, DiscriminatedUnionVariantSchema, DiscriminatedUnionTypeSchema, ContentTypeSchema, FilePropertySingleSchema, FilePropertyArraySchema, FormDataFilePropertySchema, FormDataBodyPropertySchema, FormDataPropertySchema, FormDataRequestSchema, EndpointPathPartSchema, PathParameterSchema, EndpointPathSchema, QueryParameterSchema, HeaderSchema, JsonBodyShapeSchema, FileDownloadResponseBodyShapeSchema, StreamResponseV2Schema, StreamConditionSchema, FilenameWithDataSchema, FormValueSchema, BytesValueSchema, ExampleEndpointRequestSchema, ExampleServerSentEventSchema, ExampleEndpointResponseSchema, ErrorDeclarationSchema2, ExampleErrorResponseSchema, ErrorExampleSchema, GraphQlOperationTypeSchema, GraphQlExampleSchema, CodeSnippetSchema, GraphQlOperationSchema, WebhookPayloadShapeSchema, WebhookPayloadSchema2, ExampleWebhookPayloadSchema, WebSocketMessageBodyShapeSchema, WebSocketMessageSchema, ExampleWebSocketMessageSchema, ExampleWebSocketSessionSchema, ApiNavigationConfigItemSchema, ApiNavigationConfigRootSchema, BearerAuthSchema, BasicAuthSchema, HeaderAuthSchema, OAuthClientCredentialsReferencedEndpointSchema, OAuthClientCredentialsSchema, OAuthSchema, ApiAuthSchema3, JqStringSchema, RegisterLanguageSchema, RegisterUndiscriminatedUnionVariantSchema, RegisterUndiscriminatedUnionTypeSchema, RegisterTypeShapeSchema, RegisterTypeDefinitionSchema, RegisterBytesRequestSchema, RegisterJsonRequestBodySchema, RegisterHttpRequestBodyShapeSchema, RegisterHttpRequestSchema, RegisterHttpRequestsV2Schema, RegisterCustomCodeSampleSchema, RegisterExampleEndpointCallSchema, RegisterNonStreamResponseSchema, RegisterStreamResponseSchema, RegisterStreamConditionResponseSchema, RegisterHttpResponseBodyShapeSchema, RegisterHttpResponseSchema, RegisterHttpResponsesV2Schema, RegisterErrorDeclarationV2Schema, RegisterEndpointDefinitionSchema, RegisterWebhookDefinitionSchema, RegisterWebSocketChannelSchema, SourceIdSchema, SourceSchema2, SourceUploadSchema, DynamicIRSchema, DynamicIRUploadSchema, TypescriptPackageSchema, PythonPackageSchema, GoModuleSchema, JavaCoordinateSchema, RubyGemSchema, NugetPackageSchema, ComposerPackageSchema, SwiftPackageSchema, CratesPackageSchema, SnippetsConfigSchema, RegisterApiDefinitionPackageSchema, RegisterApiDefinitionSubpackageSchema, RegisterApiDefinitionSchema, RegisterApiDefinitionResponseSchema, SnippetInfoSchema, SdkDynamicIrDownloadSchema, GetSdkDynamicIrUploadUrlsResponseSchema, CheckSdkDynamicIrExistsResponseSchema, EndpointExampleGenerationErrorBodySchema, PathPartSchema, WithNamespaceSchema, LatestAuthSchemeSchema, LatestObjectPropertyAccessSchema, LatestTypeReferenceIdDefaultSchema, LatestPrimitiveTypeSchema, LatestLiteralTypeSchema, LatestUnknownTypeSchema, LatestEnumValueSchema, LatestEnumTypeSchema, LatestObjectPropertySchema, LatestParameterPropertySchema, LatestObjectTypeSchema, LatestUndiscriminatedUnionVariantSchema, LatestUndiscriminatedUnionTypeSchema, LatestDiscriminatedUnionVariantSchema, LatestDiscriminatedUnionTypeSchema, LatestTypeShapeSchema, LatestTypeReferenceSchema, LatestTypeDefinitionSchema, LatestContentTypeSchema, LatestBytesRequestSchema, LatestFormDataPropertySchema, LatestFormDataRequestSchema, LatestNullableTypeSchema, LatestOptionalTypeSchema, LatestListTypeSchema, LatestSetTypeSchema, LatestMapTypeSchema, LatestLanguageSchema, LatestExampleEndpointRequestSchema, LatestExampleEndpointResponseSchema, LatestExampleErrorResponseSchema, LatestHttpRequestBodyShapeSchema, LatestHttpRequestSchema, LatestFileDownloadResponseBodyShapeSchema, LatestStreamResponseSchema, LatestHttpResponseBodyShapeSchema, LatestHttpResponseSchema, LatestErrorExampleSchema, LatestErrorResponseSchema, LatestCodeSnippetSchema, LatestExampleEndpointCallSchema, LatestEndpointDefinitionSchema, LatestGraphQlOperationTypeSchema, LatestGraphQlArgumentSchema, LatestGraphQlExampleSchema, LatestGraphQlOperationSchema, LatestWebhookPayloadShapeSchema, LatestWebhookPayloadSchema, LatestExampleWebhookPayloadSchema, LatestWebhookDefinitionSchema, LatestWebSocketMessageSchema, LatestExampleWebSocketMessageSchema, LatestExampleWebSocketSessionSchema, LatestWebSocketChannelSchema, LatestSubpackageMetadataSchema, LatestApiDefinitionSchema, ApiDefinitionSchema2, AvailabilityOrder, UnwrapReferenceCache, UnwrapObjectTypeCache, ApiTypeIdVisitor, ApiDefinitionPruner, ROOT_PACKAGE_ID, MULTIPART_FILENAME_PLACEHOLDER, STATUS_CODE_MESSAGES, STATUS_CODE_MESSAGES_METHOD_OVERRIDES, AUTH_SCHEME_ID, DEFAULT_TYPE_REFERENCE, DEFAULT_TYPE_SHAPE, DEFAULT_WEBHOOK_PAYLOAD_SHAPE, DEFAULT_WEBHOOK_PAYLOAD, DEFAULT_GRAPHQL_ARGUMENT, ApiDefinitionV1ToLatest, HTTP_SNIPPET_CLIENTS, snippetCache, DEFAULT_MAX_DEPTH, IMPORT_PREFIXES, PHP_AUTOLOAD_INSERT, HttpSnippetConverter, SDK_SNIPPET_LANGUAGES, Transformer, ReadUndiscriminatedUnionVariantSchema, ReadUndiscriminatedUnionTypeSchema, ReadTypeShapeSchema, ReadTypeDefinitionSchema, ReadBytesRequestSchema, ReadHttpRequestBodyShapeSchema, ReadHttpRequestSchema, ReadHttpRequestsV2Schema, ReadSupportedLanguageSchema, ReadLanguageSchema, ReadCustomCodeSampleSchema, ReadPythonSnippetSchema, ReadTypescriptSnippetSchema, ReadGoSnippetSchema, ReadRubySnippetSchema, ReadCsharpSnippetSchema, ReadCodeExamplesSchema, ReadExampleEndpointCallSchema, ReadNonStreamResponseSchema, ReadStreamResponseSchema, ReadStreamConditionResponseSchema, ReadHttpResponseBodyShapeSchema, ReadHttpResponseSchema, ReadHttpResponsesV2Schema, ReadErrorDeclarationV2Schema, ReadEndpointDefinitionSchema, ReadWebhookDefinitionSchema, ReadWebSocketChannelSchema, ReadApiDefinitionPackageSchema, ReadApiDefinitionSubpackageSchema, ReadApiDefinitionSchema, apiLatestContract, apiReadContract, apiRegisterContract, DocsDeploymentStatusSchema, DocsSiteSchema, DocsDeploymentSchema, RegisterDocsSiteInputSchema, GetPostmanCollectionIdInputSchema, GetDocsStatusInputSchema, SetDocsStatusInputSchema, CreateDeploymentInputSchema, UpdateDeploymentStatusInputSchema, GetDocsDeploymentsInputSchema, UnlockDeployInputSchema, GetDocsStatusResponseSchema, GetDocsDeploymentsResponseSchema, CreateDeploymentResponseSchema, UpdateDeploymentStatusResponseSchema, GetPostmanCollectionIdResponseSchema, UnlockDeployResponseSchema, GetDocsSitesByCollectionIdInputSchema, FindSiteByOrgAndCollectionInputSchema, FindSiteByOrgAndCollectionResponseSchema, RecordPostmanNotificationInputSchema, RecordPostmanNotificationResponseSchema, GetUnnotifiedPostmanSitesResponseSchema, GetDocsSitesByCollectionIdResponseSchema, DeleteDocsSiteByServiceInputSchema, DeleteDocsSiteByServiceResponseSchema, SetEditorRepoUrlInputSchema, docsDeploymentContract, DocsSiteUrlSchema, DashboardDocsSiteSchema, GetDocsSitesForOrgInputSchema, GetDocsSitesForOrgResponseSchema, IsDocsSiteInOrgInputSchema, IsDocsSiteInOrgResponseSchema, DeleteAllDocsSitesForOrgInputSchema, DeleteAllDocsSitesForOrgResponseSchema, dashboardContract, FileIdSchema2, PageIdSchema2, UrlSchema2, VersionIdSchema2, ApiDefinitionIdSchema2, EndpointIdSchema2, WebSocketIdSchema2, WebhookIdSchema2, RoleIdSchema2, SubpackageIdSchema2, LinkTargetSchema, AvailabilitySchema22, RgbaColorSchema, FileIdOrUrlSchema, LanguageSchema, Bcp47LocaleSchema, DocsTranslationsConfigSchema, ProgrammingLanguageSchema, AnnouncementConfigSchema, SegmentConfigSchema, FullStoryAnalyticsConfigSchema, IntercomConfigSchema, PostHogConfigSchema, GTMConfigSchema, GoogleAnalytics4ConfigSchema, AmplitudeConfigSchema, MixpanelConfigSchema, HotJarConfigSchema, KoalaConfigSchema, LogRocketConfigSchema, PirschConfigSchema, PlausibleConfigSchema, FathomConfigSchema, ClearBitConfigSchema, HeapConfigSchema, AnalyticsConfigSchema, SearchbarPlacementSchema, TabsPlacementSchema, SwitcherPlacementSchema, ContentAlignmentSchema, HeaderPositionSchema, PageWidthSizeConfigSchema, SizeConfigSchema, TabsAlignmentSchema, ChangelogLayoutSchema, DocsLayoutConfigSchema, FooterNavConfigSchema, DocsSidebarConfigSchema, DocsBodyConfigSchema, DocsTabsStyleSchema, DocsTabsObjectConfigSchema, DocsTabsConfigSchema, DocsPageActionsConfigSchema, LanguageSwitcherConfigSchema, ProductSwitcherConfigSchema, DocsThemeConfigSchema, HttpSnippetLanguageSchema, HttpSnippetsConfigSchema, SearchSettingsConfigSchema, DocsSettingsConfigSchema, TwitterCardSettingSchema, MetadataConfigSchema, RedirectConfigSchema, WithPermissionsSchema, NavbarLinkMetadataSchema, NavbarGithubMetadataSchema, NavbarLinkDropdownMetadataSchema, NavbarLinkSchema, FooterLinkSchema, CssConfigSchema, JsScriptStrategySchema, JsRemoteConfigSchema, JsFileConfigSchema, JsConfigSchema, IntegrationsConfigSchema, FontStyleSchema, FontDisplaySchema, CustomFontConfigVariantSchema, CustomFontConfigSchema, FontConfigV2Schema, DocsTypographyConfigV2Schema, ThemedFileIdSchema, ColorsConfigSchema, ColorUnthemedConfigSchema, ColorThemedConfigSchema, ColorConfigSchema, ColorsConfigV2Schema, FontConfigSchema, DocsTypographyConfigSchema, EditThisPageLaunchSchema, AIChatLocationSchema, AIChatWebsiteDatasourceSchema, AIChatDatasourceSchema, AIModelSchema, AIChatConfigSchema, PageDescriptionSourceSchema, AgentsConfigSchema, PageActionOptionSchema, CustomPageActionSchema, SkillSchema, SkillsConfigSchema, PageActionOptionsSchema, PageActionsConfigSchema, HeightSchema, PageContentSchema, NavigationNodeMetadataSchema, PageMetadataSchema, LinkMetadataSchema, NavigationTabLinkSchema, ChangelogItemSchema, ChangelogSectionSchema, ChangelogSectionV3Schema, ApiSectionV2Schema, GitHubRepoSchema, NpmPackageSchema, MavenPackageSchema, PypiPackageSchema, PublishedSdkSchema, PublishedPostmanCollectionSchema, ApiArtifactsSchema, ApiNavigationConfigItemSchema2, ApiNavigationConfigRootSchema2, DocsConfigIdSchema2, UrlFileSchema, ImageFileSchema, FileSchema2, BackgroundSchema, ThemeConfigSchema, DarkAndLightModeConfigSchema, ColorsConfigV3Schema, ApiNavigationConfigItemSchema3, ApiNavigationConfigRootSchema3, ApiSectionSchema, DocsSectionSchema, NavigationItemSchema, NavigationTabGroupSchema, NavigationTabSchema, UnversionedTabbedNavigationConfigSchema, UnversionedUntabbedNavigationConfigSchema, UnversionedNavigationConfigSchema, VersionedNavigationConfigDataSchema, VersionedNavigationConfigSchema, NavigationConfigSchema, DocsConfigSchema, DocsDefinitionSchema, BaseUrlSchema, LoadDocsForUrlResponseSchema, GetDocsForDomainLegacyInputSchema, GetDocsForDomainInputSchema, docsV1ReadContract, ALLOWED_HOSTNAMES, GithubUrlSchema, SafeBranchSchema, SafePackagePathSchema, LibraryDocsBaseConfigSchema, PythonLibraryDocsConfigSchema, CppLibraryDocsConfigSchema, StartLibraryDocsGenerationInputSchema, StartLibraryDocsGenerationResponseSchema, GetLibraryDocsStatusInputSchema, LibraryDocsResultSchema, LibraryDocsGenerationStatusSchema, libraryDocsContract, GetOrganizationForUrlInputSchema, organizationContract, contract_exports, GetDocsUrlMetadataInputSchema, GetDocsUrlMetadataResponseSchema, GetDocsForUrlInputSchema, GetPrivateDocsForUrlInputSchema, ListAllDocsUrlsInputSchema, GetDocsConfigByIdInputSchema, GetSiteMetricsInputSchema, SiteMetricsSchema, DocsDefinitionField, GetDocsConfigByIdResponseSchema, DocsDomainItemSchema, ListAllDocsUrlsResponseSchema, getDocsForUrl, docsV2ReadContract, contract_exports2, OrgIdSchema2, FilePathSchema, DocsRegistrationIdSchema, HeightSchema2, FileS3UploadUrlSchema, StartDocsRegisterResponseSchema, PageContentSchema2, NavigationNodeMetadataSchema2, PageMetadataSchema2, LinkMetadataSchema2, ChangelogItemSchema2, ChangelogSectionSchema2, ChangelogSectionV2Schema, ChangelogSectionV3Schema2, NavigationTabLinkSchema2, ApiNavigationConfigItemSchema4, ApiNavigationConfigSubpackageSchema, ApiNavigationConfigRootSchema4, ApiSectionSchema2, ApiSectionV2Schema2, DocsSectionSchema2, NavigationItemSchema2, NavigationTabGroupSchema2, NavigationTabSchema2, NavigationTabV2Schema, UnversionedTabbedNavigationConfigSchema2, UnversionedUntabbedNavigationConfigSchema2, UnversionedNavigationConfigSchema2, VersionedNavigationConfigDataSchema2, VersionedNavigationConfigSchema2, NavigationConfigSchema2, ThemeConfigSchema2, DarkAndLightModeConfigSchema2, ColorsConfigV3Schema2, DocsConfigSchema2, DocsDefinitionSchema2, NpmPackageSchema2, MavenPackageSchema2, PypiPackageSchema2, PublishedSdkSchema2, PublishedPostmanCollectionSchema2, ApiArtifactsSchema2, InvalidCustomDomainErrorBodySchema, OverlappingCustomDomainsSchema, FilePathSchema2, FilePathInputSchema, ImageFilePathSchema, AuthConfigSchema, StartDocsRegisterV2InputSchema, StartDocsRegisterV2ResponseSchema, StartDocsPreviewRegisterInputSchema, StartDocsPreviewRegisterResponseSchema, FinishDocsRegisterV2InputSchema, TransferOwnershipInputSchema, SetIsArchivedInputSchema, SetDocsUrlMetadataInputSchema, AlgoliaDomainInputSchema, ListAlgoliaPreviewWhitelistResponseSchema, DeleteDocsSiteInputSchema, RemoveCustomDomainAliasInputSchema, Bcp47LocaleSchema2, RegisterTranslationInputSchema, RegisterTranslationResponseSchema, docsV2WriteContract, InvalidateCachedDocsInputSchema, docsCacheContract, MissingContentSchema, RegisterResponseSchema, FinishResponseSchema, ArchiveSiteInputSchema, ArchiveSiteResponseSchema, BlobRefSchema, PageBlobRefSchema, FileManifestEntrySchema, ImageRefSchema, PathOrUrlSchema, RgbaSchema, BackgroundColorSchema, ACCENT_SCALE_KEYS, accentScaleShape, LedgerThemeConfigSchema, LedgerColorsConfigSchema, LedgerFontVariantSchema, LedgerFontConfigSchema, LedgerTypographySchema, LedgerJsFileSchema, LedgerJsConfigSchema, LedgerMetadataConfigSchema, NavbarLinksFieldSchema, FooterLinksFieldSchema, LayoutFieldSchema, ThemeFieldSchema, SettingsFieldSchema, AnalyticsFieldSchema, AIChatFieldSchema, PageActionsFieldSchema, LedgerAgentsConfigSchema, LedgerConfigSchema, MetadataStringArraySchema, FeatureFlagMetadataSchema, LinkTargetSchema2, CollapsedSchema, LedgerAvailabilitySchema, LedgerArtifactTypeSchema, LedgerMetadataBaseSchema, NodeMetadataFields, ApiNodeMetadataFields, LedgerSegmentDetailMetadataObjectSchema, LedgerSegmentDetailMetadataSchema, LedgerSegmentMetadataObjectSchema, LedgerSegmentMetadataSchema, LedgerMarkdownMetadataSchema, LedgerRestMetadataSchema, LedgerWebSocketMetadataSchema, LedgerWebhookMetadataSchema, LedgerGrpcMetadataSchema, LedgerGraphQlMetadataSchema, LedgerChangelogEntryMetadataSchema, LedgerLinkMetadataSchema, LedgerFileArtifactMetadataSchema, LedgerStructuralRedirectKindSchema, LedgerRedirectKindSchema, LedgerRedirectMetadataSchema, LedgerArtifactMetadataSchema, LEDGER_ARTIFACT_METADATA_SCHEMAS, NavRouteBaseSchema, LedgerNavRouteSchema, DocsPublishGitInputSchema, DocsContentFieldsSchema, LocaleEntrySchemaInternal, LocaleEntrySchema, DocsPublishInputSchemaInternal, DocsPublishInputSchema, LedgerPreviewRegisterInputSchemaInternal, LedgerPreviewRegisterInputSchema, LedgerPreviewRegisterResponseSchema, docsLedgerContract, CurrentVersionInputSchema, CurrentPreviewInputSchema, CurrentVersionResponseSchema, ContentRefSchema, SegmentDetailSchema, SegmentSchema, VersionMetadataInputSchema, VersionMetadataResponseSchema, PageContentInputSchema, PageContentResponseSchema, BatchPageContentInputSchema, BatchPageContentItemSchema, BatchPageContentResponseSchema, NavInputSchema, NavResponseSchema, RouteContextInputSchema, RouteContextResponseBaseSchema, RouteContextResponseSchema, TopLevelNavigationInputSchema, TopLevelNavigationResponseSchema, VersionSwitchTargetsInputSchema, VersionSwitchTargetSchema, VersionSwitchTargetsResponseSchema, ApiDefinitionInputSchema, ApiDefinitionResponseSchema, PrunedApiDefinitionInputSchema, PrunedApiDefinitionResponseSchema, FileArtifactInputSchema, FileArtifactResponseSchema, PresignedFileDownloadInputSchema, PresignedFileDownloadResponseSchema, FileMetadataInputSchema, FileMetadataResponseSchema, docsLedgerReadContract, GetSnapshotInputSchema, SetSnapshotInputSchema, GetDocumentsForBranchesInputSchema, EditorDocumentSchema, GetSnapshotResponseSchema, GetDocumentsForBranchesResponseSchema, editorSnapshotContract, GeneratorLanguageSchema, ScriptSchema, GeneratorScriptsSchema, GeneratorTypeSchema, ChangelogEntryTypeSchema, ChangelogEntrySchema, YankSchema, ReleaseTypeSchema, VersionRangeSchema, GeneratorSchema, GeneratorOutputSchema2, GetGeneratorByImageInputSchema, GetGeneratorInputSchema, GeneratorReleaseSchema, GeneratorReleaseRequestSchema, GetLatestGeneratorReleaseInputSchema, GetGeneratorChangelogInputSchema, ChangelogResponseSchema, GetChangelogResponseSchema, GetGeneratorReleaseInputSchema, ListGeneratorReleasesInputSchema, ListGeneratorReleasesResponseSchema, CliReleaseSchema, GetLatestCliReleaseInputSchema, GetCliChangelogInputSchema, GetMinCliForIrInputSchema, UpsertCliReleaseInputSchema, GetCliReleaseInputSchema, ListCliReleasesInputSchema, ListCliReleasesResponseSchema, generatorsContract, generatorVersionsContract, generatorCliContract, CheckRunSchema, GithubRepositoryIdSchema, RepositoryIdSchema, BaseRepositorySchema, SdkRepositorySchema, FernConfigRepositorySchema, FernRepositorySchema, GithubUserSchema, GithubTeamSchema, PullRequestReviewerSchema, PullRequestStateSchema, PullRequestSchema, ListRepositoriesResponseSchema, ListPullRequestsResponseSchema, GetRepositoryInputSchema, ListRepositoriesInputSchema, DeleteRepositoryInputSchema, GetPullRequestInputSchema, ListPullRequestsInputSchema, DeletePullRequestInputSchema, gitContract, PdfExportScopeSchema, PdfExportOptionsV1Schema, PdfExportOptionsSchema, PdfExportTaskStatusSchema, PdfExportTaskSchema, ListPdfExportTasksResponseSchema, PdfExportDownloadResponseSchema, CreatePdfExportTaskInputSchema, ListPdfExportTasksInputSchema, GetPdfExportTaskInputSchema, UpdatePdfExportTaskInputSchema, GetPdfExportDownloadUrlInputSchema, CleanupPdfExportsResponseSchema, pdfExportContract, LanguageEnumSchema, VersionBumpEnumSchema, ComputeSemanticVersionInputSchema, ComputeSemanticVersionOutputSchema, sdksContract, SlugsInputSchema, SlugEntrySchema, MarkdownEntrySchema, GetSlugEntriesResponseSchema, GetMarkdownEntriesResponseSchema, slugsContract, contract_exports3, TypeScriptSdkSchema, PythonSdkSchema, GoSdkSchema, RubySdkSchema, JavaSdkSchema, CsharpSdkSchema, BaseSnippetCreateSchema, SdkSnippetsCreateSchema, snippetsFactoryContract, ParameterPayloadSchema, AuthPayloadSchema, CustomSnippetPayloadSchema, snippetsContract, SnippetRegistryEntrySchema, RegisterInputSchema, RegisterBatchInputSchema, GetInputSchema, EndpointSnippetTemplateSchema, templatesContract, GenerateTokenInputSchema, RevokeTokenInputSchema, GenerateTokenOutputSchema, tokensContract, FdrClient, APIV1Db_exports, EndpointSnippetTemplatesSchema, DbHttpRequestSchema, DbHttpRequestsV2Schema, DbEndpointDefinitionSchema, DbApiDefinitionPackageSchema, DbApiDefinitionSubpackageSchema, DbApiDefinitionSchema, DbEndpointWithContextSchema, APIV1Read_exports, WebSocketMessageOrigin3, APIV1Write_exports, DocsV1Db_exports, BackgroundSchema2, ThemeConfigSchema3, DarkAndLightModeConfigSchema3, ColorsConfigV3Schema3, DbFileInfoSchema, DbImageFileInfoSchema, DbFileInfoV2Schema, NavigationTabGroupSchema3, NavigationTabSchema3, NavigationTabV2Schema2, ApiSectionSchema3, DocsSectionSchema3, NavigationItemSchema3, UnversionedTabbedNavigationConfigSchema3, UnversionedUntabbedNavigationConfigSchema3, UnversionedNavigationConfigSchema3, VersionedNavigationConfigDataSchema3, VersionedNavigationConfigSchema3, NavigationConfigSchema3, DocsDbConfigSchema, DocsDefinitionDbV1Schema, DocsDefinitionDbV2Schema, DocsDefinitionDbV3Schema, DocsDefinitionDbSchema, DocsV1Read_exports, DocsV1Write_exports, FdrAPI_exports, latest_exports2, v1_exports, NavigationV1Availability, ApiLatestWithSubs_exports, ApiLatestEndpoint_exports, ApiLatestWebhook_exports, ApiLatestWebsocket_exports, DocsLatest_exports, StringOrStringListSchema, TwitterCardSettingSchema2, JsonLdBreadcrumbListElementSchema, JsonLdBreadcrumbListSchema, WithJsonLdBreadcrumbsSchema, WithMetadataConfigSchema, LayoutSchema, LogoConfigurationSchema, LogoSchema, BreadcrumbItemSchema, FrontmatterSchema, ResolvedMdxSchema, DocsV1Commons_exports, libraryDocs_exports, PythonClassKind, PythonParameterKind, Sdks_exports, docs, api, libraryDocs, sdks, navigation, MAX_OPTIONAL_EXAMPLES_FOR_QUERY_PARAMS, ApiDefinitionTransformationContext, DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY, SDKSnippetHolder, EMPTY_DARK_THEME, EMPTY_LIGHT_THEME, docs_exports3, EMPTY_FRONTMATTER, navigation_exports, RETURN_PAGEID, RETURN_OVERVIEW_PAGEID, RETURN_UNDEFINED, SKIP, STOP, ApiDefinitionHolder, ApiTypeIdVisitor2, ApiDefinitionPruner2, v1_exports2, ChangelogNavigationConverter, NodeIdGenerator, SlugGenerator, ApiReferenceNavigationConverter, NavigationConfigConverter, RETURN_PAGEID2, RETURN_OVERVIEW_PAGEID2, RETURN_UNDEFINED2, NodeCollectorInstances, NodeCollector, MAX_CHANGELOG_ENTRIES_MINIMUM, CHANGELOG_RECENCY_MONTHS, migrators_exports, FernNavigationV1ToLatest, utils_exports2, RETURN_UNDEFINED3, RETURN_API_DEFINITION_ID, SKIP_URL_SLUG_PREFIX, SYNTHETIC_SEGMENT_RE, Pruner;
|
|
218823
218842
|
var init_js = __esm({
|
|
218824
|
-
"../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
218843
|
+
"../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.66-cc15e6c17a_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs"() {
|
|
218825
218844
|
"use strict";
|
|
218826
218845
|
init_array();
|
|
218827
218846
|
init_zod2();
|
|
@@ -218862,8 +218881,6 @@ var init_js = __esm({
|
|
|
218862
218881
|
init_fetch3();
|
|
218863
218882
|
init_dist7();
|
|
218864
218883
|
init_zod2();
|
|
218865
|
-
init_zod2();
|
|
218866
|
-
init_zod2();
|
|
218867
218884
|
init_dist5();
|
|
218868
218885
|
init_fetch3();
|
|
218869
218886
|
init_dist7();
|
|
@@ -218876,9 +218893,7 @@ var init_js = __esm({
|
|
|
218876
218893
|
init_fetch3();
|
|
218877
218894
|
init_dist7();
|
|
218878
218895
|
init_zod2();
|
|
218879
|
-
|
|
218880
|
-
init_fetch3();
|
|
218881
|
-
init_dist7();
|
|
218896
|
+
init_zod2();
|
|
218882
218897
|
init_zod2();
|
|
218883
218898
|
init_dist5();
|
|
218884
218899
|
init_fetch3();
|
|
@@ -219140,6 +219155,7 @@ var init_js = __esm({
|
|
|
219140
219155
|
generateHttpSnippets: () => generateHttpSnippets,
|
|
219141
219156
|
generateSdkSnippetForLanguage: () => generateSdkSnippetForLanguage,
|
|
219142
219157
|
generateSdkSnippets: () => generateSdkSnippets,
|
|
219158
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds,
|
|
219143
219159
|
getHarRequest: () => getHarRequest,
|
|
219144
219160
|
getMessageForStatus: () => getMessageForStatus,
|
|
219145
219161
|
joiner: () => joiner,
|
|
@@ -219318,8 +219334,8 @@ var init_js = __esm({
|
|
|
219318
219334
|
regex3 = new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${word}))|(${word}))(${word}*[\u2019']*${word}*)`, "g");
|
|
219319
219335
|
convertToRegExp = (specials2) => specials2.map((s5) => [new RegExp(`\\b${s5}\\b`, "gi"), s5]);
|
|
219320
219336
|
src_default = (str2, options2 = {}) => {
|
|
219321
|
-
str2 = str2.toLowerCase().replace(regex3, (m3, lead = "", forced, lower, rest, offset2,
|
|
219322
|
-
const isLastWord = m3.length + offset2 >=
|
|
219337
|
+
str2 = str2.toLowerCase().replace(regex3, (m3, lead = "", forced, lower, rest, offset2, string33) => {
|
|
219338
|
+
const isLastWord = m3.length + offset2 >= string33.length;
|
|
219323
219339
|
const parsedMatch = parseMatch(m3);
|
|
219324
219340
|
if (!parsedMatch) {
|
|
219325
219341
|
return m3;
|
|
@@ -220409,6 +220425,7 @@ var init_js = __esm({
|
|
|
220409
220425
|
RegisterExampleEndpointCallSchema = objectType({
|
|
220410
220426
|
description: stringType().nullish(),
|
|
220411
220427
|
name: stringType().nullish(),
|
|
220428
|
+
contentType: stringType().nullish(),
|
|
220412
220429
|
path: stringType(),
|
|
220413
220430
|
pathParameters: recordType(PropertyKeySchema, unknownType()),
|
|
220414
220431
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -220596,6 +220613,7 @@ var init_js = __esm({
|
|
|
220596
220613
|
RegisterApiDefinitionSchema = objectType({
|
|
220597
220614
|
rootPackage: RegisterApiDefinitionPackageSchema,
|
|
220598
220615
|
apiName: stringType().nullish(),
|
|
220616
|
+
specVersion: stringType().nullish(),
|
|
220599
220617
|
types: recordType(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
220600
220618
|
subpackages: recordType(SubpackageIdSchema, RegisterApiDefinitionSubpackageSchema),
|
|
220601
220619
|
auth: ApiAuthSchema3.nullish(),
|
|
@@ -220975,6 +220993,7 @@ var init_js = __esm({
|
|
|
220975
220993
|
path: stringType(),
|
|
220976
220994
|
responseStatusCode: numberType().int(),
|
|
220977
220995
|
name: stringType().nullish(),
|
|
220996
|
+
contentType: stringType().nullish(),
|
|
220978
220997
|
pathParameters: recordType(PropertyKeySchema, unknownType()).nullish(),
|
|
220979
220998
|
queryParameters: recordType(PropertyKeySchema, unknownType()).nullish(),
|
|
220980
220999
|
headers: recordType(PropertyKeySchema, unknownType()).nullish(),
|
|
@@ -221119,6 +221138,7 @@ var init_js = __esm({
|
|
|
221119
221138
|
LatestApiDefinitionSchema = objectType({
|
|
221120
221139
|
id: stringType(),
|
|
221121
221140
|
apiName: stringType().nullish(),
|
|
221141
|
+
specVersion: stringType().nullish(),
|
|
221122
221142
|
endpoints: recordType(EndpointIdSchema, LatestEndpointDefinitionSchema),
|
|
221123
221143
|
websockets: recordType(WebSocketIdSchema, LatestWebSocketChannelSchema),
|
|
221124
221144
|
webhooks: recordType(WebhookIdSchema, LatestWebhookDefinitionSchema),
|
|
@@ -221338,8 +221358,7 @@ var init_js = __esm({
|
|
|
221338
221358
|
found.namespace?.forEach((subpackageId) => namespaces.add(subpackageId));
|
|
221339
221359
|
}
|
|
221340
221360
|
} else if (node4.type === "graphql") {
|
|
221341
|
-
const
|
|
221342
|
-
for (const opId of idsToInclude) {
|
|
221361
|
+
for (const opId of getGraphqlOperationIds(node4)) {
|
|
221343
221362
|
const found = this.api.graphqlOperations[opId];
|
|
221344
221363
|
if (found) {
|
|
221345
221364
|
toRet.graphqlOperations[opId] = found;
|
|
@@ -221393,9 +221412,11 @@ var init_js = __esm({
|
|
|
221393
221412
|
expandTypeIds(typeIds) {
|
|
221394
221413
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
221395
221414
|
const queue = Array.from(typeIds);
|
|
221415
|
+
const enqueuedTypeIds = new Set(typeIds);
|
|
221416
|
+
const maxIterations = Object.keys(this.api.types).length + typeIds.size;
|
|
221396
221417
|
let loop = 0;
|
|
221397
221418
|
while (queue.length > 0) {
|
|
221398
|
-
if (loop >
|
|
221419
|
+
if (loop++ > maxIterations) {
|
|
221399
221420
|
throw new Error("Infinite loop detected while expanding type references.");
|
|
221400
221421
|
}
|
|
221401
221422
|
const typeId = queue.pop();
|
|
@@ -221404,11 +221425,13 @@ var init_js = __esm({
|
|
|
221404
221425
|
const type7 = this.api.types[typeId];
|
|
221405
221426
|
if (type7) {
|
|
221406
221427
|
ApiTypeIdVisitor.visitTypeDefinition(type7, (nestedTypeId) => {
|
|
221407
|
-
|
|
221428
|
+
if (!enqueuedTypeIds.has(nestedTypeId) && this.api.types[nestedTypeId] != null) {
|
|
221429
|
+
enqueuedTypeIds.add(nestedTypeId);
|
|
221430
|
+
queue.push(nestedTypeId);
|
|
221431
|
+
}
|
|
221408
221432
|
});
|
|
221409
221433
|
}
|
|
221410
221434
|
}
|
|
221411
|
-
loop++;
|
|
221412
221435
|
}
|
|
221413
221436
|
return visitedTypeIds;
|
|
221414
221437
|
}
|
|
@@ -221588,6 +221611,7 @@ var init_js = __esm({
|
|
|
221588
221611
|
return {
|
|
221589
221612
|
id: this.v1.id,
|
|
221590
221613
|
apiName: this.v1.apiName,
|
|
221614
|
+
specVersion: this.v1.specVersion,
|
|
221591
221615
|
endpoints: this.endpoints,
|
|
221592
221616
|
websockets: this.websockets,
|
|
221593
221617
|
webhooks: this.webhooks,
|
|
@@ -221984,6 +222008,7 @@ var init_js = __esm({
|
|
|
221984
222008
|
path: example?.path,
|
|
221985
222009
|
responseStatusCode: example?.responseStatusCode,
|
|
221986
222010
|
name: example?.name,
|
|
222011
|
+
contentType: example?.contentType ?? void 0,
|
|
221987
222012
|
description: example?.description,
|
|
221988
222013
|
pathParameters: example?.pathParameters,
|
|
221989
222014
|
queryParameters: example?.queryParameters,
|
|
@@ -222352,6 +222377,7 @@ var init_js = __esm({
|
|
|
222352
222377
|
{ targetId: "swift", clientId: "nsurlsession" }
|
|
222353
222378
|
];
|
|
222354
222379
|
snippetCache = /* @__PURE__ */ new WeakMap();
|
|
222380
|
+
DEFAULT_MAX_DEPTH = 2;
|
|
222355
222381
|
IMPORT_PREFIXES = {
|
|
222356
222382
|
csharp: "using RestSharp;\n\n",
|
|
222357
222383
|
java: "import com.mashape.unirest.http.HttpResponse;\nimport com.mashape.unirest.http.Unirest;\n\n"
|
|
@@ -222925,6 +222951,7 @@ var init_js = __esm({
|
|
|
222925
222951
|
ReadExampleEndpointCallSchema = objectType({
|
|
222926
222952
|
description: stringType().nullish(),
|
|
222927
222953
|
name: stringType().nullish(),
|
|
222954
|
+
contentType: stringType().nullish(),
|
|
222928
222955
|
path: stringType(),
|
|
222929
222956
|
pathParameters: recordType(PropertyKeySchema, unknownType()),
|
|
222930
222957
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -223056,6 +223083,7 @@ var init_js = __esm({
|
|
|
223056
223083
|
ReadApiDefinitionSchema = objectType({
|
|
223057
223084
|
id: ApiDefinitionIdSchema,
|
|
223058
223085
|
apiName: stringType().nullish(),
|
|
223086
|
+
specVersion: stringType().nullish(),
|
|
223059
223087
|
rootPackage: ReadApiDefinitionPackageSchema,
|
|
223060
223088
|
types: recordType(TypeIdSchema, ReadTypeDefinitionSchema),
|
|
223061
223089
|
subpackages: recordType(SubpackageIdSchema, ReadApiDefinitionSubpackageSchema),
|
|
@@ -223465,6 +223493,7 @@ var init_js = __esm({
|
|
|
223465
223493
|
objectType({ type: literalType("rem"), value: numberType() })
|
|
223466
223494
|
]);
|
|
223467
223495
|
TabsAlignmentSchema = enumType(["LEFT", "CENTER"]);
|
|
223496
|
+
ChangelogLayoutSchema = enumType(["timeline", "classic"]);
|
|
223468
223497
|
DocsLayoutConfigSchema = objectType({
|
|
223469
223498
|
pageWidth: PageWidthSizeConfigSchema.optional(),
|
|
223470
223499
|
contentWidth: SizeConfigSchema.optional(),
|
|
@@ -223478,7 +223507,8 @@ var init_js = __esm({
|
|
|
223478
223507
|
disableHeader: booleanType().optional(),
|
|
223479
223508
|
hideNavLinks: booleanType().optional(),
|
|
223480
223509
|
hideFeedback: booleanType().optional(),
|
|
223481
|
-
mobileToc: booleanType().optional()
|
|
223510
|
+
mobileToc: booleanType().optional(),
|
|
223511
|
+
changelogLayout: ChangelogLayoutSchema.optional()
|
|
223482
223512
|
});
|
|
223483
223513
|
FooterNavConfigSchema = enumType(["default", "minimal"]);
|
|
223484
223514
|
DocsSidebarConfigSchema = enumType(["default", "minimal"]);
|
|
@@ -223492,7 +223522,7 @@ var init_js = __esm({
|
|
|
223492
223522
|
DocsTabsConfigSchema = unionType([DocsTabsStyleSchema, DocsTabsObjectConfigSchema]);
|
|
223493
223523
|
DocsPageActionsConfigSchema = enumType(["default", "toolbar"]);
|
|
223494
223524
|
LanguageSwitcherConfigSchema = enumType(["default", "minimal"]);
|
|
223495
|
-
ProductSwitcherConfigSchema = enumType(["default", "toggle"]);
|
|
223525
|
+
ProductSwitcherConfigSchema = enumType(["default", "toggle", "tabs"]);
|
|
223496
223526
|
DocsThemeConfigSchema = objectType({
|
|
223497
223527
|
sidebar: DocsSidebarConfigSchema.optional(),
|
|
223498
223528
|
body: DocsBodyConfigSchema.optional(),
|
|
@@ -223626,7 +223656,10 @@ var init_js = __esm({
|
|
|
223626
223656
|
JsScriptStrategySchema = enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]);
|
|
223627
223657
|
JsRemoteConfigSchema = objectType({
|
|
223628
223658
|
url: UrlSchema2,
|
|
223629
|
-
strategy: JsScriptStrategySchema.optional()
|
|
223659
|
+
strategy: JsScriptStrategySchema.optional(),
|
|
223660
|
+
// When true, skip computing a Subresource Integrity (SRI) hash for this
|
|
223661
|
+
// remote script so it is rendered without an `integrity` attribute.
|
|
223662
|
+
disableSri: booleanType().optional()
|
|
223630
223663
|
});
|
|
223631
223664
|
JsFileConfigSchema = objectType({
|
|
223632
223665
|
fileId: FileIdSchema2,
|
|
@@ -223706,7 +223739,8 @@ var init_js = __esm({
|
|
|
223706
223739
|
model: AIModelSchema.optional(),
|
|
223707
223740
|
systemPrompt: stringType().optional(),
|
|
223708
223741
|
location: arrayType(AIChatLocationSchema).optional(),
|
|
223709
|
-
datasources: arrayType(AIChatDatasourceSchema).optional()
|
|
223742
|
+
datasources: arrayType(AIChatDatasourceSchema).optional(),
|
|
223743
|
+
maskPii: booleanType().optional()
|
|
223710
223744
|
});
|
|
223711
223745
|
PageDescriptionSourceSchema = enumType(["description", "subtitle"]);
|
|
223712
223746
|
AgentsConfigSchema = objectType({
|
|
@@ -223767,6 +223801,7 @@ var init_js = __esm({
|
|
|
223767
223801
|
cursor: booleanType().optional(),
|
|
223768
223802
|
claudeCode: booleanType().optional(),
|
|
223769
223803
|
vscode: booleanType().optional(),
|
|
223804
|
+
mcp: booleanType().optional(),
|
|
223770
223805
|
custom: arrayType(CustomPageActionSchema).optional(),
|
|
223771
223806
|
skills: SkillsConfigSchema.optional()
|
|
223772
223807
|
});
|
|
@@ -224074,6 +224109,215 @@ var init_js = __esm({
|
|
|
224074
224109
|
getDocsForDomainLegacy: oc.route({ method: "GET", path: "/load/{domain}" }).input(GetDocsForDomainLegacyInputSchema).output(DocsDefinitionSchema),
|
|
224075
224110
|
getDocsForDomain: oc.route({ method: "POST", path: "/load" }).input(GetDocsForDomainInputSchema).output(DocsDefinitionSchema)
|
|
224076
224111
|
};
|
|
224112
|
+
ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
224113
|
+
GithubUrlSchema = stringType().url().describe(
|
|
224114
|
+
"HTTPS URL of a GitHub or GitLab repository. Currently only github.com and gitlab.com are supported. Must match the pattern https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo>."
|
|
224115
|
+
).refine(
|
|
224116
|
+
(url3) => {
|
|
224117
|
+
try {
|
|
224118
|
+
const parsed = new URL(url3);
|
|
224119
|
+
if (parsed.protocol !== "https:") {
|
|
224120
|
+
return false;
|
|
224121
|
+
}
|
|
224122
|
+
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
224123
|
+
return false;
|
|
224124
|
+
}
|
|
224125
|
+
if (parsed.username || parsed.password) {
|
|
224126
|
+
return false;
|
|
224127
|
+
}
|
|
224128
|
+
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
224129
|
+
} catch {
|
|
224130
|
+
return false;
|
|
224131
|
+
}
|
|
224132
|
+
},
|
|
224133
|
+
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
224134
|
+
);
|
|
224135
|
+
SafeBranchSchema = stringType().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
224136
|
+
SafePackagePathSchema = stringType().refine((p6) => !p6.includes("..") && !p6.startsWith("/"), {
|
|
224137
|
+
message: "packagePath must not contain path traversal sequences"
|
|
224138
|
+
}).nullish();
|
|
224139
|
+
LibraryDocsBaseConfigSchema = objectType({
|
|
224140
|
+
branch: SafeBranchSchema,
|
|
224141
|
+
packagePath: SafePackagePathSchema,
|
|
224142
|
+
title: stringType().nullish(),
|
|
224143
|
+
slug: stringType().nullish()
|
|
224144
|
+
});
|
|
224145
|
+
PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
224146
|
+
CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
224147
|
+
doxyfileContent: stringType().nullish()
|
|
224148
|
+
});
|
|
224149
|
+
StartLibraryDocsGenerationInputSchema = discriminatedUnionType("language", [
|
|
224150
|
+
objectType({
|
|
224151
|
+
orgId: stringType(),
|
|
224152
|
+
githubUrl: GithubUrlSchema,
|
|
224153
|
+
language: literalType("PYTHON"),
|
|
224154
|
+
config: PythonLibraryDocsConfigSchema.nullish()
|
|
224155
|
+
}),
|
|
224156
|
+
objectType({
|
|
224157
|
+
orgId: stringType(),
|
|
224158
|
+
githubUrl: GithubUrlSchema,
|
|
224159
|
+
language: literalType("CPP"),
|
|
224160
|
+
config: CppLibraryDocsConfigSchema.nullish()
|
|
224161
|
+
})
|
|
224162
|
+
]);
|
|
224163
|
+
StartLibraryDocsGenerationResponseSchema = objectType({
|
|
224164
|
+
jobId: stringType()
|
|
224165
|
+
});
|
|
224166
|
+
GetLibraryDocsStatusInputSchema = objectType({
|
|
224167
|
+
jobId: stringType()
|
|
224168
|
+
});
|
|
224169
|
+
LibraryDocsResultSchema = objectType({
|
|
224170
|
+
jobId: stringType(),
|
|
224171
|
+
resultUrl: stringType()
|
|
224172
|
+
});
|
|
224173
|
+
LibraryDocsGenerationStatusSchema = objectType({
|
|
224174
|
+
jobId: stringType(),
|
|
224175
|
+
status: stringType(),
|
|
224176
|
+
progress: stringType(),
|
|
224177
|
+
error: objectType({
|
|
224178
|
+
code: stringType(),
|
|
224179
|
+
message: stringType()
|
|
224180
|
+
}).optional(),
|
|
224181
|
+
createdAt: stringType(),
|
|
224182
|
+
updatedAt: stringType()
|
|
224183
|
+
});
|
|
224184
|
+
libraryDocsContract = {
|
|
224185
|
+
startLibraryDocsGeneration: oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
224186
|
+
getLibraryDocsGenerationStatus: oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
224187
|
+
getLibraryDocsResult: oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
224188
|
+
};
|
|
224189
|
+
GetOrganizationForUrlInputSchema = objectType({
|
|
224190
|
+
url: stringType()
|
|
224191
|
+
});
|
|
224192
|
+
organizationContract = {
|
|
224193
|
+
getOrganizationForUrl: oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(stringType())
|
|
224194
|
+
};
|
|
224195
|
+
contract_exports = {};
|
|
224196
|
+
__export3(contract_exports, {
|
|
224197
|
+
DocsDefinitionField: () => DocsDefinitionField,
|
|
224198
|
+
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
224199
|
+
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
224200
|
+
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
224201
|
+
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
224202
|
+
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
224203
|
+
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
224204
|
+
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
224205
|
+
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
224206
|
+
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
224207
|
+
GetSiteMetricsInputSchema: () => GetSiteMetricsInputSchema,
|
|
224208
|
+
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
224209
|
+
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
224210
|
+
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
224211
|
+
SiteMetricsSchema: () => SiteMetricsSchema,
|
|
224212
|
+
docsV2ReadContract: () => docsV2ReadContract,
|
|
224213
|
+
getDocsForUrl: () => getDocsForUrl
|
|
224214
|
+
});
|
|
224215
|
+
GetDocsUrlMetadataInputSchema = objectType({
|
|
224216
|
+
url: stringType()
|
|
224217
|
+
});
|
|
224218
|
+
GetDocsUrlMetadataResponseSchema = objectType({
|
|
224219
|
+
isPreviewUrl: booleanType(),
|
|
224220
|
+
org: stringType(),
|
|
224221
|
+
url: stringType(),
|
|
224222
|
+
gitUrl: stringType().nullish(),
|
|
224223
|
+
enableAlgoliaOnPreview: booleanType().nullish()
|
|
224224
|
+
});
|
|
224225
|
+
GetDocsForUrlInputSchema = objectType({
|
|
224226
|
+
url: stringType(),
|
|
224227
|
+
excludeApis: booleanType().nullish()
|
|
224228
|
+
});
|
|
224229
|
+
GetPrivateDocsForUrlInputSchema = objectType({
|
|
224230
|
+
url: stringType()
|
|
224231
|
+
});
|
|
224232
|
+
ListAllDocsUrlsInputSchema = objectType({
|
|
224233
|
+
limit: numberType().nullish(),
|
|
224234
|
+
page: numberType().nullish(),
|
|
224235
|
+
custom: booleanType().nullish(),
|
|
224236
|
+
preview: booleanType().nullish()
|
|
224237
|
+
});
|
|
224238
|
+
GetDocsConfigByIdInputSchema = objectType({
|
|
224239
|
+
docsConfigId: stringType()
|
|
224240
|
+
});
|
|
224241
|
+
GetSiteMetricsInputSchema = objectType({
|
|
224242
|
+
url: stringType()
|
|
224243
|
+
});
|
|
224244
|
+
SiteMetricsSchema = objectType({
|
|
224245
|
+
orgId: stringType().optional(),
|
|
224246
|
+
domain: stringType(),
|
|
224247
|
+
basepath: stringType().optional(),
|
|
224248
|
+
storageType: enumType(["ledger", "legacy"]),
|
|
224249
|
+
pages: numberType(),
|
|
224250
|
+
endpoints: numberType(),
|
|
224251
|
+
apiSpecs: numberType()
|
|
224252
|
+
});
|
|
224253
|
+
DocsDefinitionField = {
|
|
224254
|
+
BaseUrl: "BASE_URL",
|
|
224255
|
+
FilesV2: "FILES_V2",
|
|
224256
|
+
ApisV2: "APIS_V2",
|
|
224257
|
+
Apis: "APIS",
|
|
224258
|
+
Pages: "PAGES",
|
|
224259
|
+
JsFiles: "JS_FILES",
|
|
224260
|
+
Config: "CONFIG",
|
|
224261
|
+
Root: "ROOT"
|
|
224262
|
+
};
|
|
224263
|
+
GetDocsConfigByIdResponseSchema = objectType({
|
|
224264
|
+
docsConfig: DocsConfigSchema,
|
|
224265
|
+
apis: recordType(stringType(), unknownType())
|
|
224266
|
+
});
|
|
224267
|
+
DocsDomainItemSchema = objectType({
|
|
224268
|
+
domain: stringType(),
|
|
224269
|
+
basePath: stringType().optional(),
|
|
224270
|
+
organizationId: stringType(),
|
|
224271
|
+
updatedAt: stringType()
|
|
224272
|
+
});
|
|
224273
|
+
ListAllDocsUrlsResponseSchema = objectType({
|
|
224274
|
+
urls: arrayType(DocsDomainItemSchema)
|
|
224275
|
+
});
|
|
224276
|
+
((getDocsForUrl22) => {
|
|
224277
|
+
let Error210;
|
|
224278
|
+
((Error310) => {
|
|
224279
|
+
function _unknown2(fetcherError) {
|
|
224280
|
+
return { error: void 0, content: fetcherError };
|
|
224281
|
+
}
|
|
224282
|
+
Error310._unknown = _unknown2;
|
|
224283
|
+
})(Error210 = getDocsForUrl22.Error || (getDocsForUrl22.Error = {}));
|
|
224284
|
+
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
224285
|
+
docsV2ReadContract = {
|
|
224286
|
+
getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
224287
|
+
getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
224288
|
+
getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
224289
|
+
listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
224290
|
+
getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
224291
|
+
getSiteMetrics: oc.route({ method: "POST", path: "/admin/site-metrics" }).input(GetSiteMetricsInputSchema).output(SiteMetricsSchema),
|
|
224292
|
+
prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(voidType()),
|
|
224293
|
+
ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(voidType()),
|
|
224294
|
+
getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(voidType())
|
|
224295
|
+
};
|
|
224296
|
+
contract_exports2 = {};
|
|
224297
|
+
__export3(contract_exports2, {
|
|
224298
|
+
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
224299
|
+
AuthConfigSchema: () => AuthConfigSchema,
|
|
224300
|
+
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
224301
|
+
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
224302
|
+
FilePath: () => FilePath2,
|
|
224303
|
+
FilePathInputSchema: () => FilePathInputSchema,
|
|
224304
|
+
FilePathSchema: () => FilePathSchema2,
|
|
224305
|
+
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
224306
|
+
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
224307
|
+
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
224308
|
+
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
224309
|
+
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
224310
|
+
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
224311
|
+
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
224312
|
+
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
224313
|
+
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
224314
|
+
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
224315
|
+
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
224316
|
+
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
224317
|
+
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
224318
|
+
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
224319
|
+
docsV2WriteContract: () => docsV2WriteContract
|
|
224320
|
+
});
|
|
224077
224321
|
OrgIdSchema2 = stringType();
|
|
224078
224322
|
FilePathSchema = stringType();
|
|
224079
224323
|
DocsRegistrationIdSchema = stringType();
|
|
@@ -224385,218 +224629,6 @@ var init_js = __esm({
|
|
|
224385
224629
|
overlappingDomains: arrayType(arrayType(stringType()))
|
|
224386
224630
|
});
|
|
224387
224631
|
OverlappingCustomDomainsSchema = arrayType(stringType());
|
|
224388
|
-
StartDocsRegisterV1InputSchema = objectType({
|
|
224389
|
-
orgId: stringType(),
|
|
224390
|
-
domain: stringType(),
|
|
224391
|
-
filepaths: arrayType(stringType())
|
|
224392
|
-
});
|
|
224393
|
-
StartDocsRegisterV1ResponseSchema = objectType({
|
|
224394
|
-
docsRegistrationId: stringType(),
|
|
224395
|
-
uploadUrls: recordType(stringType(), FileS3UploadUrlSchema),
|
|
224396
|
-
skippedFiles: arrayType(stringType())
|
|
224397
|
-
});
|
|
224398
|
-
FinishDocsRegisterV1InputSchema = objectType({
|
|
224399
|
-
docsRegistrationId: stringType(),
|
|
224400
|
-
docsDefinition: unknownType()
|
|
224401
|
-
});
|
|
224402
|
-
docsV1WriteContract = {
|
|
224403
|
-
startDocsRegister: oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
224404
|
-
finishDocsRegister: oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(voidType())
|
|
224405
|
-
};
|
|
224406
|
-
ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
224407
|
-
GithubUrlSchema = stringType().url().describe(
|
|
224408
|
-
"HTTPS URL of a GitHub or GitLab repository. Currently only github.com and gitlab.com are supported. Must match the pattern https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo>."
|
|
224409
|
-
).refine(
|
|
224410
|
-
(url3) => {
|
|
224411
|
-
try {
|
|
224412
|
-
const parsed = new URL(url3);
|
|
224413
|
-
if (parsed.protocol !== "https:") {
|
|
224414
|
-
return false;
|
|
224415
|
-
}
|
|
224416
|
-
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
224417
|
-
return false;
|
|
224418
|
-
}
|
|
224419
|
-
if (parsed.username || parsed.password) {
|
|
224420
|
-
return false;
|
|
224421
|
-
}
|
|
224422
|
-
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
224423
|
-
} catch {
|
|
224424
|
-
return false;
|
|
224425
|
-
}
|
|
224426
|
-
},
|
|
224427
|
-
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
224428
|
-
);
|
|
224429
|
-
SafeBranchSchema = stringType().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
224430
|
-
SafePackagePathSchema = stringType().refine((p6) => !p6.includes("..") && !p6.startsWith("/"), {
|
|
224431
|
-
message: "packagePath must not contain path traversal sequences"
|
|
224432
|
-
}).nullish();
|
|
224433
|
-
LibraryDocsBaseConfigSchema = objectType({
|
|
224434
|
-
branch: SafeBranchSchema,
|
|
224435
|
-
packagePath: SafePackagePathSchema,
|
|
224436
|
-
title: stringType().nullish(),
|
|
224437
|
-
slug: stringType().nullish()
|
|
224438
|
-
});
|
|
224439
|
-
PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
224440
|
-
CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
224441
|
-
doxyfileContent: stringType().nullish()
|
|
224442
|
-
});
|
|
224443
|
-
StartLibraryDocsGenerationInputSchema = discriminatedUnionType("language", [
|
|
224444
|
-
objectType({
|
|
224445
|
-
orgId: stringType(),
|
|
224446
|
-
githubUrl: GithubUrlSchema,
|
|
224447
|
-
language: literalType("PYTHON"),
|
|
224448
|
-
config: PythonLibraryDocsConfigSchema.nullish()
|
|
224449
|
-
}),
|
|
224450
|
-
objectType({
|
|
224451
|
-
orgId: stringType(),
|
|
224452
|
-
githubUrl: GithubUrlSchema,
|
|
224453
|
-
language: literalType("CPP"),
|
|
224454
|
-
config: CppLibraryDocsConfigSchema.nullish()
|
|
224455
|
-
})
|
|
224456
|
-
]);
|
|
224457
|
-
StartLibraryDocsGenerationResponseSchema = objectType({
|
|
224458
|
-
jobId: stringType()
|
|
224459
|
-
});
|
|
224460
|
-
GetLibraryDocsStatusInputSchema = objectType({
|
|
224461
|
-
jobId: stringType()
|
|
224462
|
-
});
|
|
224463
|
-
LibraryDocsResultSchema = objectType({
|
|
224464
|
-
jobId: stringType(),
|
|
224465
|
-
resultUrl: stringType()
|
|
224466
|
-
});
|
|
224467
|
-
LibraryDocsGenerationStatusSchema = objectType({
|
|
224468
|
-
jobId: stringType(),
|
|
224469
|
-
status: stringType(),
|
|
224470
|
-
progress: stringType(),
|
|
224471
|
-
error: objectType({
|
|
224472
|
-
code: stringType(),
|
|
224473
|
-
message: stringType()
|
|
224474
|
-
}).optional(),
|
|
224475
|
-
createdAt: stringType(),
|
|
224476
|
-
updatedAt: stringType()
|
|
224477
|
-
});
|
|
224478
|
-
libraryDocsContract = {
|
|
224479
|
-
startLibraryDocsGeneration: oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
224480
|
-
getLibraryDocsGenerationStatus: oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
224481
|
-
getLibraryDocsResult: oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
224482
|
-
};
|
|
224483
|
-
GetOrganizationForUrlInputSchema = objectType({
|
|
224484
|
-
url: stringType()
|
|
224485
|
-
});
|
|
224486
|
-
organizationContract = {
|
|
224487
|
-
getOrganizationForUrl: oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(stringType())
|
|
224488
|
-
};
|
|
224489
|
-
contract_exports = {};
|
|
224490
|
-
__export3(contract_exports, {
|
|
224491
|
-
DocsDefinitionField: () => DocsDefinitionField,
|
|
224492
|
-
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
224493
|
-
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
224494
|
-
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
224495
|
-
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
224496
|
-
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
224497
|
-
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
224498
|
-
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
224499
|
-
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
224500
|
-
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
224501
|
-
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
224502
|
-
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
224503
|
-
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
224504
|
-
docsV2ReadContract: () => docsV2ReadContract,
|
|
224505
|
-
getDocsForUrl: () => getDocsForUrl
|
|
224506
|
-
});
|
|
224507
|
-
GetDocsUrlMetadataInputSchema = objectType({
|
|
224508
|
-
url: stringType()
|
|
224509
|
-
});
|
|
224510
|
-
GetDocsUrlMetadataResponseSchema = objectType({
|
|
224511
|
-
isPreviewUrl: booleanType(),
|
|
224512
|
-
org: stringType(),
|
|
224513
|
-
url: stringType(),
|
|
224514
|
-
gitUrl: stringType().nullish(),
|
|
224515
|
-
enableAlgoliaOnPreview: booleanType().nullish()
|
|
224516
|
-
});
|
|
224517
|
-
GetDocsForUrlInputSchema = objectType({
|
|
224518
|
-
url: stringType(),
|
|
224519
|
-
excludeApis: booleanType().nullish()
|
|
224520
|
-
});
|
|
224521
|
-
GetPrivateDocsForUrlInputSchema = objectType({
|
|
224522
|
-
url: stringType()
|
|
224523
|
-
});
|
|
224524
|
-
ListAllDocsUrlsInputSchema = objectType({
|
|
224525
|
-
limit: numberType().nullish(),
|
|
224526
|
-
page: numberType().nullish(),
|
|
224527
|
-
custom: booleanType().nullish(),
|
|
224528
|
-
preview: booleanType().nullish()
|
|
224529
|
-
});
|
|
224530
|
-
GetDocsConfigByIdInputSchema = objectType({
|
|
224531
|
-
docsConfigId: stringType()
|
|
224532
|
-
});
|
|
224533
|
-
DocsDefinitionField = {
|
|
224534
|
-
BaseUrl: "BASE_URL",
|
|
224535
|
-
FilesV2: "FILES_V2",
|
|
224536
|
-
ApisV2: "APIS_V2",
|
|
224537
|
-
Apis: "APIS",
|
|
224538
|
-
Pages: "PAGES",
|
|
224539
|
-
JsFiles: "JS_FILES",
|
|
224540
|
-
Config: "CONFIG",
|
|
224541
|
-
Root: "ROOT"
|
|
224542
|
-
};
|
|
224543
|
-
GetDocsConfigByIdResponseSchema = objectType({
|
|
224544
|
-
docsConfig: DocsConfigSchema,
|
|
224545
|
-
apis: recordType(stringType(), unknownType())
|
|
224546
|
-
});
|
|
224547
|
-
DocsDomainItemSchema = objectType({
|
|
224548
|
-
domain: stringType(),
|
|
224549
|
-
basePath: stringType().optional(),
|
|
224550
|
-
organizationId: stringType(),
|
|
224551
|
-
updatedAt: stringType()
|
|
224552
|
-
});
|
|
224553
|
-
ListAllDocsUrlsResponseSchema = objectType({
|
|
224554
|
-
urls: arrayType(DocsDomainItemSchema)
|
|
224555
|
-
});
|
|
224556
|
-
((getDocsForUrl22) => {
|
|
224557
|
-
let Error210;
|
|
224558
|
-
((Error310) => {
|
|
224559
|
-
function _unknown2(fetcherError) {
|
|
224560
|
-
return { error: void 0, content: fetcherError };
|
|
224561
|
-
}
|
|
224562
|
-
Error310._unknown = _unknown2;
|
|
224563
|
-
})(Error210 = getDocsForUrl22.Error || (getDocsForUrl22.Error = {}));
|
|
224564
|
-
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
224565
|
-
docsV2ReadContract = {
|
|
224566
|
-
getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
224567
|
-
getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
224568
|
-
getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
224569
|
-
listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
224570
|
-
getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
224571
|
-
prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(voidType()),
|
|
224572
|
-
ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(voidType()),
|
|
224573
|
-
getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(voidType())
|
|
224574
|
-
};
|
|
224575
|
-
contract_exports2 = {};
|
|
224576
|
-
__export3(contract_exports2, {
|
|
224577
|
-
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
224578
|
-
AuthConfigSchema: () => AuthConfigSchema,
|
|
224579
|
-
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
224580
|
-
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
224581
|
-
FilePath: () => FilePath2,
|
|
224582
|
-
FilePathInputSchema: () => FilePathInputSchema,
|
|
224583
|
-
FilePathSchema: () => FilePathSchema2,
|
|
224584
|
-
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
224585
|
-
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
224586
|
-
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
224587
|
-
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
224588
|
-
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
224589
|
-
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
224590
|
-
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
224591
|
-
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
224592
|
-
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
224593
|
-
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
224594
|
-
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
224595
|
-
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
224596
|
-
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
224597
|
-
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
224598
|
-
docsV2WriteContract: () => docsV2WriteContract
|
|
224599
|
-
});
|
|
224600
224632
|
FilePathSchema2 = stringType();
|
|
224601
224633
|
FilePathInputSchema = unionType([
|
|
224602
224634
|
FilePathSchema2,
|
|
@@ -224866,7 +224898,8 @@ var init_js = __esm({
|
|
|
224866
224898
|
remote: arrayType(
|
|
224867
224899
|
objectType({
|
|
224868
224900
|
url: stringType(),
|
|
224869
|
-
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
224901
|
+
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional(),
|
|
224902
|
+
disableSri: booleanType().optional()
|
|
224870
224903
|
})
|
|
224871
224904
|
).optional(),
|
|
224872
224905
|
files: arrayType(LedgerJsFileSchema).optional(),
|
|
@@ -224896,6 +224929,7 @@ var init_js = __esm({
|
|
|
224896
224929
|
});
|
|
224897
224930
|
LedgerConfigSchema = objectType({
|
|
224898
224931
|
title: stringType().optional(),
|
|
224932
|
+
rootSlug: stringType().optional(),
|
|
224899
224933
|
defaultLanguage: stringType().optional(),
|
|
224900
224934
|
translations: objectType({
|
|
224901
224935
|
defaultLocale: stringType(),
|
|
@@ -224926,6 +224960,18 @@ var init_js = __esm({
|
|
|
224926
224960
|
aiChatConfig: AIChatFieldSchema.optional(),
|
|
224927
224961
|
pageActions: PageActionsFieldSchema.optional(),
|
|
224928
224962
|
editThisPageLaunch: enumType(["github", "dashboard"]).optional(),
|
|
224963
|
+
/**
|
|
224964
|
+
* Explicit edit-this-page GitHub config from docs.yml (ADR 0012 parity).
|
|
224965
|
+
* When present, the loader synthesises `editThisPageUrl` from these fields
|
|
224966
|
+
* instead of relying on deployment-scoped git provenance. This matches the
|
|
224967
|
+
* v2 behaviour where the CLI derives the URL from the declared config.
|
|
224968
|
+
*/
|
|
224969
|
+
editThisPageGithub: objectType({
|
|
224970
|
+
owner: stringType(),
|
|
224971
|
+
repo: stringType(),
|
|
224972
|
+
branch: stringType().default("main"),
|
|
224973
|
+
host: stringType().default("https://github.com")
|
|
224974
|
+
}).optional(),
|
|
224929
224975
|
header: stringType().optional(),
|
|
224930
224976
|
footer: stringType().optional()
|
|
224931
224977
|
});
|
|
@@ -224975,6 +225021,7 @@ var init_js = __esm({
|
|
|
224975
225021
|
title: stringType().optional(),
|
|
224976
225022
|
slug: stringType().optional(),
|
|
224977
225023
|
icon: stringType().optional(),
|
|
225024
|
+
authed: booleanType().optional(),
|
|
224978
225025
|
viewers: MetadataStringArraySchema.optional(),
|
|
224979
225026
|
orphaned: booleanType().optional(),
|
|
224980
225027
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
@@ -225005,36 +225052,48 @@ var init_js = __esm({
|
|
|
225005
225052
|
type: literalType("section"),
|
|
225006
225053
|
title: stringType().optional(),
|
|
225007
225054
|
icon: stringType().optional(),
|
|
225055
|
+
authed: booleanType().optional(),
|
|
225008
225056
|
collapsed: CollapsedSchema.optional(),
|
|
225009
225057
|
collapsible: booleanType().optional(),
|
|
225010
225058
|
collapsedByDefault: booleanType().optional(),
|
|
225011
225059
|
availability: LedgerAvailabilitySchema.optional(),
|
|
225012
225060
|
overviewPageId: stringType().optional(),
|
|
225061
|
+
noindex: booleanType().optional(),
|
|
225013
225062
|
pointsTo: stringType().optional(),
|
|
225014
|
-
viewers: MetadataStringArraySchema.optional()
|
|
225063
|
+
viewers: MetadataStringArraySchema.optional(),
|
|
225064
|
+
orphaned: booleanType().optional(),
|
|
225065
|
+
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
225015
225066
|
}),
|
|
225016
225067
|
LedgerMetadataBaseSchema.extend({
|
|
225017
225068
|
type: literalType("apiReference"),
|
|
225018
225069
|
title: stringType().optional(),
|
|
225019
225070
|
icon: stringType().optional(),
|
|
225071
|
+
authed: booleanType().optional(),
|
|
225020
225072
|
apiDefinitionId: stringType().optional(),
|
|
225021
225073
|
overviewPageId: stringType().optional(),
|
|
225074
|
+
noindex: booleanType().optional(),
|
|
225022
225075
|
availability: LedgerAvailabilitySchema.optional(),
|
|
225023
225076
|
pointsTo: stringType().optional(),
|
|
225024
225077
|
paginated: booleanType().optional(),
|
|
225025
225078
|
showErrors: booleanType().optional(),
|
|
225026
225079
|
hideTitle: booleanType().optional(),
|
|
225027
|
-
viewers: MetadataStringArraySchema.optional()
|
|
225080
|
+
viewers: MetadataStringArraySchema.optional(),
|
|
225081
|
+
orphaned: booleanType().optional(),
|
|
225082
|
+
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
225028
225083
|
}),
|
|
225029
225084
|
LedgerMetadataBaseSchema.extend({
|
|
225030
225085
|
type: literalType("apiPackage"),
|
|
225031
225086
|
title: stringType().optional(),
|
|
225032
225087
|
icon: stringType().optional(),
|
|
225088
|
+
authed: booleanType().optional(),
|
|
225033
225089
|
apiDefinitionId: stringType().optional(),
|
|
225034
225090
|
overviewPageId: stringType().optional(),
|
|
225091
|
+
noindex: booleanType().optional(),
|
|
225035
225092
|
availability: LedgerAvailabilitySchema.optional(),
|
|
225036
225093
|
pointsTo: stringType().optional(),
|
|
225037
|
-
viewers: MetadataStringArraySchema.optional()
|
|
225094
|
+
viewers: MetadataStringArraySchema.optional(),
|
|
225095
|
+
orphaned: booleanType().optional(),
|
|
225096
|
+
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
225038
225097
|
}),
|
|
225039
225098
|
LedgerMetadataBaseSchema.extend({
|
|
225040
225099
|
type: literalType("changelog"),
|
|
@@ -225042,13 +225101,23 @@ var init_js = __esm({
|
|
|
225042
225101
|
icon: stringType().optional(),
|
|
225043
225102
|
overviewPageId: stringType().optional(),
|
|
225044
225103
|
apiDefinitionId: stringType().optional(),
|
|
225045
|
-
|
|
225104
|
+
noindex: booleanType().optional(),
|
|
225105
|
+
authed: booleanType().optional(),
|
|
225106
|
+
viewers: MetadataStringArraySchema.optional(),
|
|
225107
|
+
orphaned: booleanType().optional(),
|
|
225108
|
+
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
225046
225109
|
}),
|
|
225047
225110
|
LedgerMetadataBaseSchema.extend({
|
|
225048
225111
|
type: literalType("files")
|
|
225049
225112
|
}),
|
|
225050
225113
|
LedgerMetadataBaseSchema.extend({
|
|
225051
225114
|
type: literalType("redirects")
|
|
225115
|
+
}),
|
|
225116
|
+
LedgerMetadataBaseSchema.extend({
|
|
225117
|
+
type: literalType("productLink")
|
|
225118
|
+
}),
|
|
225119
|
+
LedgerMetadataBaseSchema.extend({
|
|
225120
|
+
type: literalType("tabLink")
|
|
225052
225121
|
})
|
|
225053
225122
|
]);
|
|
225054
225123
|
LedgerSegmentMetadataSchema = LedgerSegmentMetadataObjectSchema;
|
|
@@ -225086,10 +225155,9 @@ var init_js = __esm({
|
|
|
225086
225155
|
operationType: GraphQlOperationTypeSchema
|
|
225087
225156
|
});
|
|
225088
225157
|
LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
225089
|
-
|
|
225090
|
-
slug: stringType().optional(),
|
|
225091
|
-
icon: stringType().optional(),
|
|
225158
|
+
...NodeMetadataFields,
|
|
225092
225159
|
pageId: stringType(),
|
|
225160
|
+
noindex: booleanType().optional(),
|
|
225093
225161
|
date: stringType().optional(),
|
|
225094
225162
|
tags: MetadataStringArraySchema.optional()
|
|
225095
225163
|
});
|
|
@@ -225102,13 +225170,26 @@ var init_js = __esm({
|
|
|
225102
225170
|
});
|
|
225103
225171
|
LedgerFileArtifactMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
225104
225172
|
contentType: stringType(),
|
|
225173
|
+
contentLength: numberType().optional(),
|
|
225105
225174
|
filename: stringType(),
|
|
225106
225175
|
width: numberType().optional(),
|
|
225107
225176
|
height: numberType().optional(),
|
|
225108
225177
|
blurDataURL: stringType().optional()
|
|
225109
225178
|
});
|
|
225179
|
+
LedgerStructuralRedirectKindSchema = enumType([
|
|
225180
|
+
"root",
|
|
225181
|
+
"product",
|
|
225182
|
+
"version",
|
|
225183
|
+
"variant",
|
|
225184
|
+
"tab",
|
|
225185
|
+
"section",
|
|
225186
|
+
"api-section"
|
|
225187
|
+
]);
|
|
225188
|
+
LedgerRedirectKindSchema = enumType(["structural", "link"]);
|
|
225110
225189
|
LedgerRedirectMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
225111
|
-
href: stringType().optional()
|
|
225190
|
+
href: stringType().optional(),
|
|
225191
|
+
redirectKind: LedgerRedirectKindSchema.optional(),
|
|
225192
|
+
structuralKind: LedgerStructuralRedirectKindSchema.optional()
|
|
225112
225193
|
});
|
|
225113
225194
|
LedgerArtifactMetadataSchema = unionType([
|
|
225114
225195
|
LedgerMarkdownMetadataSchema,
|
|
@@ -225202,6 +225283,7 @@ var init_js = __esm({
|
|
|
225202
225283
|
orgId: stringType(),
|
|
225203
225284
|
domain: stringType(),
|
|
225204
225285
|
basepath: stringType().default(""),
|
|
225286
|
+
basepathAware: booleanType().nullish(),
|
|
225205
225287
|
/**
|
|
225206
225288
|
* Additional URLs the deployment should be served from (e.g. a customer's
|
|
225207
225289
|
* vanity hostname `docs.example.com` alongside the canonical fern URL).
|
|
@@ -225226,7 +225308,7 @@ var init_js = __esm({
|
|
|
225226
225308
|
path: ["defaultLocale"]
|
|
225227
225309
|
});
|
|
225228
225310
|
DocsPublishInputSchema = DocsPublishInputSchemaInternal;
|
|
225229
|
-
LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.extend({
|
|
225311
|
+
LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial().extend({
|
|
225230
225312
|
orgId: stringType(),
|
|
225231
225313
|
/**
|
|
225232
225314
|
* Optional caller-supplied identifier for the preview hostname. Sanitized
|
|
@@ -225241,7 +225323,33 @@ var init_js = __esm({
|
|
|
225241
225323
|
* Mirrors V2's `basePath` — most preview publishes leave this empty,
|
|
225242
225324
|
* but explicit subpath previews (`/v2`) are supported.
|
|
225243
225325
|
*/
|
|
225244
|
-
basePath: stringType().default("")
|
|
225326
|
+
basePath: stringType().default(""),
|
|
225327
|
+
/** The primary/fallback locale for this preview deployment. */
|
|
225328
|
+
defaultLocale: stringType().optional(),
|
|
225329
|
+
/**
|
|
225330
|
+
* All locales for this preview deployment. Preferred over the legacy
|
|
225331
|
+
* single-locale content fields above.
|
|
225332
|
+
*/
|
|
225333
|
+
locales: arrayType(LocaleEntrySchema).min(1).optional()
|
|
225334
|
+
}).superRefine((data2, ctx) => {
|
|
225335
|
+
if (data2.locales == null) {
|
|
225336
|
+
if (data2.root == null || data2.pages == null) {
|
|
225337
|
+
ctx.addIssue({
|
|
225338
|
+
code: ZodIssueCode2.custom,
|
|
225339
|
+
message: "Either locales or legacy single-locale content fields must be provided",
|
|
225340
|
+
path: ["locales"]
|
|
225341
|
+
});
|
|
225342
|
+
}
|
|
225343
|
+
return;
|
|
225344
|
+
}
|
|
225345
|
+
const defaultLocale = data2.defaultLocale ?? data2.locales[0]?.locale;
|
|
225346
|
+
if (defaultLocale == null || !data2.locales.some((locale) => locale.locale === defaultLocale)) {
|
|
225347
|
+
ctx.addIssue({
|
|
225348
|
+
code: ZodIssueCode2.custom,
|
|
225349
|
+
message: "defaultLocale must match one of the locales in the locales array",
|
|
225350
|
+
path: ["defaultLocale"]
|
|
225351
|
+
});
|
|
225352
|
+
}
|
|
225245
225353
|
});
|
|
225246
225354
|
LedgerPreviewRegisterInputSchema = LedgerPreviewRegisterInputSchemaInternal;
|
|
225247
225355
|
LedgerPreviewRegisterResponseSchema = objectType({
|
|
@@ -225502,6 +225610,7 @@ var init_js = __esm({
|
|
|
225502
225610
|
fullPath: stringType(),
|
|
225503
225611
|
type: enumType(["file", "image"]),
|
|
225504
225612
|
contentType: stringType(),
|
|
225613
|
+
contentLength: numberType().optional(),
|
|
225505
225614
|
filename: stringType(),
|
|
225506
225615
|
url: stringType(),
|
|
225507
225616
|
width: numberType().optional(),
|
|
@@ -225526,6 +225635,8 @@ var init_js = __esm({
|
|
|
225526
225635
|
/** Domain under which the file bytes were uploaded in the docs files bucket. */
|
|
225527
225636
|
domain: stringType(),
|
|
225528
225637
|
contentType: stringType(),
|
|
225638
|
+
contentLength: numberType().optional(),
|
|
225639
|
+
filename: stringType().optional(),
|
|
225529
225640
|
width: numberType().optional(),
|
|
225530
225641
|
height: numberType().optional(),
|
|
225531
225642
|
blurDataURL: stringType().optional()
|
|
@@ -226401,7 +226512,8 @@ var init_js = __esm({
|
|
|
226401
226512
|
WebhookPayloadSchema: () => WebhookPayloadSchema2,
|
|
226402
226513
|
WebhookPayloadShapeSchema: () => WebhookPayloadShapeSchema,
|
|
226403
226514
|
WithAvailabilitySchema: () => WithAvailabilitySchema,
|
|
226404
|
-
WithDescriptionSchema: () => WithDescriptionSchema
|
|
226515
|
+
WithDescriptionSchema: () => WithDescriptionSchema,
|
|
226516
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds
|
|
226405
226517
|
});
|
|
226406
226518
|
EndpointSnippetTemplatesSchema = objectType({
|
|
226407
226519
|
typescript: unknownType().nullish(),
|
|
@@ -226466,6 +226578,7 @@ var init_js = __esm({
|
|
|
226466
226578
|
DbApiDefinitionSchema = objectType({
|
|
226467
226579
|
id: ApiDefinitionIdSchema,
|
|
226468
226580
|
apiName: stringType().nullish(),
|
|
226581
|
+
specVersion: stringType().nullish(),
|
|
226469
226582
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
226470
226583
|
types: recordType(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
226471
226584
|
subpackages: recordType(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
@@ -226704,7 +226817,8 @@ var init_js = __esm({
|
|
|
226704
226817
|
WebhookPayloadSchema: () => WebhookPayloadSchema2,
|
|
226705
226818
|
WebhookPayloadShapeSchema: () => WebhookPayloadShapeSchema,
|
|
226706
226819
|
WithAvailabilitySchema: () => WithAvailabilitySchema,
|
|
226707
|
-
WithDescriptionSchema: () => WithDescriptionSchema
|
|
226820
|
+
WithDescriptionSchema: () => WithDescriptionSchema,
|
|
226821
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds
|
|
226708
226822
|
});
|
|
226709
226823
|
WebSocketMessageOrigin3 = {
|
|
226710
226824
|
Client: "client",
|
|
@@ -226894,7 +227008,8 @@ var init_js = __esm({
|
|
|
226894
227008
|
WebhookPayloadSchema: () => WebhookPayloadSchema2,
|
|
226895
227009
|
WebhookPayloadShapeSchema: () => WebhookPayloadShapeSchema,
|
|
226896
227010
|
WithAvailabilitySchema: () => WithAvailabilitySchema,
|
|
226897
|
-
WithDescriptionSchema: () => WithDescriptionSchema
|
|
227011
|
+
WithDescriptionSchema: () => WithDescriptionSchema,
|
|
227012
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds
|
|
226898
227013
|
});
|
|
226899
227014
|
DocsV1Db_exports = {};
|
|
226900
227015
|
__export3(DocsV1Db_exports, {
|
|
@@ -227883,6 +227998,7 @@ var init_js = __esm({
|
|
|
227883
227998
|
WithNamespaceSchema: () => WithNamespaceSchema,
|
|
227884
227999
|
api: () => api,
|
|
227885
228000
|
docs: () => docs,
|
|
228001
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds,
|
|
227886
228002
|
libraryDocs: () => libraryDocs,
|
|
227887
228003
|
navigation: () => navigation,
|
|
227888
228004
|
sdks: () => sdks
|
|
@@ -228050,7 +228166,7 @@ var init_js = __esm({
|
|
|
228050
228166
|
nofollow: booleanType().optional(),
|
|
228051
228167
|
keywords: StringOrStringListSchema.optional()
|
|
228052
228168
|
});
|
|
228053
|
-
LayoutSchema = enumType(["guide", "overview", "reference", "page", "custom"]);
|
|
228169
|
+
LayoutSchema = enumType(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
228054
228170
|
LogoConfigurationSchema = objectType({
|
|
228055
228171
|
light: FileIdOrUrlSchema.optional(),
|
|
228056
228172
|
dark: FileIdOrUrlSchema.optional()
|
|
@@ -228728,6 +228844,7 @@ var init_js = __esm({
|
|
|
228728
228844
|
WithAvailabilitySchema: () => WithAvailabilitySchema,
|
|
228729
228845
|
WithDescriptionSchema: () => WithDescriptionSchema,
|
|
228730
228846
|
getChildren: () => getChildren,
|
|
228847
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds,
|
|
228731
228848
|
getPageId: () => getPageId,
|
|
228732
228849
|
hasMarkdown: () => hasMarkdown,
|
|
228733
228850
|
hasMetadata: () => hasMetadata,
|
|
@@ -229092,7 +229209,7 @@ var init_js = __esm({
|
|
|
229092
229209
|
if (node4.type !== "graphql" || graphqlOperations == null) {
|
|
229093
229210
|
return [];
|
|
229094
229211
|
}
|
|
229095
|
-
const idsToInclude = new Set(node4
|
|
229212
|
+
const idsToInclude = new Set(getGraphqlOperationIds(node4));
|
|
229096
229213
|
return graphqlOperations.filter((op2) => idsToInclude.has(ApiDefinitionHolder.createGraphQlOperationId(op2)));
|
|
229097
229214
|
}
|
|
229098
229215
|
};
|
|
@@ -229246,6 +229363,7 @@ var init_js = __esm({
|
|
|
229246
229363
|
convertAvailability: () => convertAvailability3,
|
|
229247
229364
|
followRedirect: () => followRedirect,
|
|
229248
229365
|
followRedirects: () => followRedirects,
|
|
229366
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds,
|
|
229249
229367
|
getPageId: () => getPageId2,
|
|
229250
229368
|
hasMarkdown: () => hasMarkdown2,
|
|
229251
229369
|
hasMetadata: () => hasMetadata2,
|
|
@@ -229756,9 +229874,21 @@ var init_js = __esm({
|
|
|
229756
229874
|
insertionOrder.push({ type: "flat", op: op2 });
|
|
229757
229875
|
}
|
|
229758
229876
|
}
|
|
229877
|
+
const parentOps = /* @__PURE__ */ new Map();
|
|
229878
|
+
const filteredInsertionOrder = insertionOrder.filter((entry) => {
|
|
229879
|
+
if (entry.type === "flat" && entry.op.operationType === "QUERY") {
|
|
229880
|
+
const fp = entry.op.fieldPath;
|
|
229881
|
+
const hasNoFieldPath = fp == null || fp.length === 0;
|
|
229882
|
+
if (hasNoFieldPath && groupedByParent.has(entry.op.name)) {
|
|
229883
|
+
parentOps.set(entry.op.name, entry.op);
|
|
229884
|
+
return false;
|
|
229885
|
+
}
|
|
229886
|
+
}
|
|
229887
|
+
return true;
|
|
229888
|
+
});
|
|
229759
229889
|
const children2 = [];
|
|
229760
229890
|
const allSlugs = /* @__PURE__ */ new Set();
|
|
229761
|
-
for (const entry of
|
|
229891
|
+
for (const entry of filteredInsertionOrder) {
|
|
229762
229892
|
if (entry.type === "flat") {
|
|
229763
229893
|
const fp = entry.op.fieldPath;
|
|
229764
229894
|
allSlugs.add(fp != null && fp.length > 0 ? [...fp, entry.op.name].join("-") : entry.op.name);
|
|
@@ -229766,7 +229896,7 @@ var init_js = __esm({
|
|
|
229766
229896
|
allSlugs.add(entry.parentField);
|
|
229767
229897
|
}
|
|
229768
229898
|
}
|
|
229769
|
-
for (const entry of
|
|
229899
|
+
for (const entry of filteredInsertionOrder) {
|
|
229770
229900
|
if (entry.type === "flat") {
|
|
229771
229901
|
const opId = ApiDefinitionHolder.createGraphQlOperationId(entry.op);
|
|
229772
229902
|
children2.push(this.convertGraphQlNode(opId, entry.op, parentSlug));
|
|
@@ -229775,11 +229905,12 @@ var init_js = __esm({
|
|
|
229775
229905
|
if (operations == null) {
|
|
229776
229906
|
continue;
|
|
229777
229907
|
}
|
|
229778
|
-
const
|
|
229779
|
-
const
|
|
229780
|
-
const
|
|
229908
|
+
const parentOp = parentOps.get(entry.parentField);
|
|
229909
|
+
const primaryOp = parentOp ?? operations[0];
|
|
229910
|
+
const opId = ApiDefinitionHolder.createGraphQlOperationId(primaryOp);
|
|
229911
|
+
const childOpIds = operations.map((op2) => ApiDefinitionHolder.createGraphQlOperationId(op2));
|
|
229781
229912
|
let slugSegment = entry.parentField;
|
|
229782
|
-
const flatHasSameSlug =
|
|
229913
|
+
const flatHasSameSlug = filteredInsertionOrder.some(
|
|
229783
229914
|
(e2) => e2.type === "flat" && (() => {
|
|
229784
229915
|
const fp = e2.op.fieldPath;
|
|
229785
229916
|
const s5 = fp != null && fp.length > 0 ? [...fp, e2.op.name].join("-") : e2.op.name;
|
|
@@ -229795,13 +229926,13 @@ var init_js = __esm({
|
|
|
229795
229926
|
type: "graphql",
|
|
229796
229927
|
title: entry.parentField,
|
|
229797
229928
|
graphqlOperationId: opId,
|
|
229798
|
-
graphqlOperationIds:
|
|
229929
|
+
graphqlOperationIds: childOpIds.length > 0 ? childOpIds : void 0,
|
|
229799
229930
|
slug: parentSlug.apply({ urlSlug: slugSegment }).get(),
|
|
229800
229931
|
icon: void 0,
|
|
229801
229932
|
hidden: void 0,
|
|
229802
|
-
operationType:
|
|
229933
|
+
operationType: primaryOp.operationType,
|
|
229803
229934
|
apiDefinitionId: this.apiDefinitionId,
|
|
229804
|
-
availability: navigation_exports.V1.convertAvailability(
|
|
229935
|
+
availability: navigation_exports.V1.convertAvailability(primaryOp.availability),
|
|
229805
229936
|
playground: void 0,
|
|
229806
229937
|
authed: void 0,
|
|
229807
229938
|
collapsed: void 0,
|
|
@@ -231588,6 +231719,7 @@ var init_js = __esm({
|
|
|
231588
231719
|
};
|
|
231589
231720
|
utils_exports2 = {};
|
|
231590
231721
|
__export3(utils_exports2, {
|
|
231722
|
+
SKIP_URL_SLUG_PREFIX: () => SKIP_URL_SLUG_PREFIX,
|
|
231591
231723
|
buildPageIdToSlugMap: () => buildPageIdToSlugMap,
|
|
231592
231724
|
canonicalSlugKey: () => canonicalSlugKey,
|
|
231593
231725
|
collectApiReferences: () => collectApiReferences,
|
|
@@ -231598,6 +231730,7 @@ var init_js = __esm({
|
|
|
231598
231730
|
getApiReferenceId: () => getApiReferenceId,
|
|
231599
231731
|
getNoIndexFromFrontmatter: () => getNoIndexFromFrontmatter,
|
|
231600
231732
|
mutableUpdatePointsTo: () => mutableUpdatePointsTo,
|
|
231733
|
+
stripSyntheticSegments: () => stripSyntheticSegments,
|
|
231601
231734
|
toApis: () => toApis,
|
|
231602
231735
|
toPages: () => toPages,
|
|
231603
231736
|
toRootNode: () => toRootNode2,
|
|
@@ -231605,6 +231738,8 @@ var init_js = __esm({
|
|
|
231605
231738
|
});
|
|
231606
231739
|
RETURN_UNDEFINED3 = () => void 0;
|
|
231607
231740
|
RETURN_API_DEFINITION_ID = (node4) => node4.apiDefinitionId;
|
|
231741
|
+
SKIP_URL_SLUG_PREFIX = "~";
|
|
231742
|
+
SYNTHETIC_SEGMENT_RE = /^~\d+$/;
|
|
231608
231743
|
Pruner = class _Pruner {
|
|
231609
231744
|
static from(tree) {
|
|
231610
231745
|
return new _Pruner(tree);
|
|
@@ -585125,7 +585260,7 @@ var require_dist25 = __commonJS({
|
|
|
585125
585260
|
}
|
|
585126
585261
|
});
|
|
585127
585262
|
|
|
585128
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
585263
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.66-cc15e6c17a_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs
|
|
585129
585264
|
var orpc_client_exports = {};
|
|
585130
585265
|
__export(orpc_client_exports, {
|
|
585131
585266
|
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema2,
|
|
@@ -585262,7 +585397,7 @@ __export(orpc_client_exports, {
|
|
|
585262
585397
|
FilenameWithDataSchema: () => FilenameWithDataSchema2,
|
|
585263
585398
|
FindSiteByOrgAndCollectionInputSchema: () => FindSiteByOrgAndCollectionInputSchema2,
|
|
585264
585399
|
FindSiteByOrgAndCollectionResponseSchema: () => FindSiteByOrgAndCollectionResponseSchema2,
|
|
585265
|
-
FinishDocsRegisterV1InputSchema: () =>
|
|
585400
|
+
FinishDocsRegisterV1InputSchema: () => FinishDocsRegisterV1InputSchema,
|
|
585266
585401
|
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema2,
|
|
585267
585402
|
FinishResponseSchema: () => FinishResponseSchema2,
|
|
585268
585403
|
FormDataBodyPropertySchema: () => FormDataBodyPropertySchema2,
|
|
@@ -585320,6 +585455,7 @@ __export(orpc_client_exports, {
|
|
|
585320
585455
|
GetPullRequestInputSchema: () => GetPullRequestInputSchema2,
|
|
585321
585456
|
GetRepositoryInputSchema: () => GetRepositoryInputSchema2,
|
|
585322
585457
|
GetSdkDynamicIrUploadUrlsResponseSchema: () => GetSdkDynamicIrUploadUrlsResponseSchema2,
|
|
585458
|
+
GetSiteMetricsInputSchema: () => GetSiteMetricsInputSchema2,
|
|
585323
585459
|
GetSlugEntriesResponseSchema: () => GetSlugEntriesResponseSchema2,
|
|
585324
585460
|
GetSnapshotInputSchema: () => GetSnapshotInputSchema2,
|
|
585325
585461
|
GetSnapshotResponseSchema: () => GetSnapshotResponseSchema2,
|
|
@@ -585434,6 +585570,7 @@ __export(orpc_client_exports, {
|
|
|
585434
585570
|
LedgerPointerSegmentSchema: () => LedgerPointerSegmentSchema,
|
|
585435
585571
|
LedgerPreviewRegisterInputSchema: () => LedgerPreviewRegisterInputSchema2,
|
|
585436
585572
|
LedgerPreviewRegisterResponseSchema: () => LedgerPreviewRegisterResponseSchema2,
|
|
585573
|
+
LedgerRedirectKindSchema: () => LedgerRedirectKindSchema2,
|
|
585437
585574
|
LedgerRedirectMetadataSchema: () => LedgerRedirectMetadataSchema2,
|
|
585438
585575
|
LedgerRestMetadataSchema: () => LedgerRestMetadataSchema2,
|
|
585439
585576
|
LedgerRouteShardSchema: () => LedgerRouteShardSchema,
|
|
@@ -585442,6 +585579,8 @@ __export(orpc_client_exports, {
|
|
|
585442
585579
|
LedgerShardFileSchema: () => LedgerShardFileSchema,
|
|
585443
585580
|
LedgerSidebarBundleSchema: () => LedgerSidebarBundleSchema,
|
|
585444
585581
|
LedgerSidebarMapEntrySchema: () => LedgerSidebarMapEntrySchema,
|
|
585582
|
+
LedgerSiteArtifactSchema: () => LedgerSiteArtifactSchema,
|
|
585583
|
+
LedgerStructuralRedirectKindSchema: () => LedgerStructuralRedirectKindSchema2,
|
|
585445
585584
|
LedgerWebSocketMetadataSchema: () => LedgerWebSocketMetadataSchema2,
|
|
585446
585585
|
LedgerWebhookMetadataSchema: () => LedgerWebhookMetadataSchema2,
|
|
585447
585586
|
LibraryDocsBaseConfigSchema: () => LibraryDocsBaseConfigSchema2,
|
|
@@ -585609,6 +585748,7 @@ __export(orpc_client_exports, {
|
|
|
585609
585748
|
SetEditorRepoUrlInputSchema: () => SetEditorRepoUrlInputSchema2,
|
|
585610
585749
|
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema2,
|
|
585611
585750
|
SetSnapshotInputSchema: () => SetSnapshotInputSchema2,
|
|
585751
|
+
SiteMetricsSchema: () => SiteMetricsSchema2,
|
|
585612
585752
|
SlugEntrySchema: () => SlugEntrySchema2,
|
|
585613
585753
|
SlugsInputSchema: () => SlugsInputSchema2,
|
|
585614
585754
|
SnippetInfoSchema: () => SnippetInfoSchema2,
|
|
@@ -585621,8 +585761,8 @@ __export(orpc_client_exports, {
|
|
|
585621
585761
|
SourceUploadSchema: () => SourceUploadSchema2,
|
|
585622
585762
|
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema2,
|
|
585623
585763
|
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema2,
|
|
585624
|
-
StartDocsRegisterV1InputSchema: () =>
|
|
585625
|
-
StartDocsRegisterV1ResponseSchema: () =>
|
|
585764
|
+
StartDocsRegisterV1InputSchema: () => StartDocsRegisterV1InputSchema,
|
|
585765
|
+
StartDocsRegisterV1ResponseSchema: () => StartDocsRegisterV1ResponseSchema,
|
|
585626
585766
|
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema2,
|
|
585627
585767
|
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema2,
|
|
585628
585768
|
StartLibraryDocsGenerationInputSchema: () => StartLibraryDocsGenerationInputSchema2,
|
|
@@ -585686,6 +585826,7 @@ __export(orpc_client_exports, {
|
|
|
585686
585826
|
YankSchema: () => YankSchema2,
|
|
585687
585827
|
artifactTypeVariant: () => artifactTypeVariant2,
|
|
585688
585828
|
collectConfigFilePaths: () => collectConfigFilePaths,
|
|
585829
|
+
collectNavFilePaths: () => collectNavFilePaths,
|
|
585689
585830
|
contentContract: () => contentContract,
|
|
585690
585831
|
createApiClient: () => createApiClient2,
|
|
585691
585832
|
createDashboardClient: () => createDashboardClient2,
|
|
@@ -585694,7 +585835,7 @@ __export(orpc_client_exports, {
|
|
|
585694
585835
|
createDocsDeploymentClient: () => createDocsDeploymentClient2,
|
|
585695
585836
|
createDocsLedgerClient: () => createDocsLedgerClient2,
|
|
585696
585837
|
createDocsV1ReadClient: () => createDocsV1ReadClient2,
|
|
585697
|
-
createDocsV1WriteClient: () =>
|
|
585838
|
+
createDocsV1WriteClient: () => createDocsV1WriteClient,
|
|
585698
585839
|
createDocsV2ReadClient: () => createDocsV2ReadClient2,
|
|
585699
585840
|
createDocsV2WriteClient: () => createDocsV2WriteClient2,
|
|
585700
585841
|
createEditorSnapshotClient: () => createEditorSnapshotClient2,
|
|
@@ -585718,7 +585859,7 @@ __export(orpc_client_exports, {
|
|
|
585718
585859
|
docsLedgerContract: () => docsLedgerContract2,
|
|
585719
585860
|
docsLedgerReadContract: () => docsLedgerReadContract2,
|
|
585720
585861
|
docsV1ReadContract: () => docsV1ReadContract2,
|
|
585721
|
-
docsV1WriteContract: () =>
|
|
585862
|
+
docsV1WriteContract: () => docsV1WriteContract,
|
|
585722
585863
|
docsV2ReadContract: () => docsV2ReadContract2,
|
|
585723
585864
|
docsV2WriteContract: () => docsV2WriteContract2,
|
|
585724
585865
|
editorSnapshotContract: () => editorSnapshotContract2,
|
|
@@ -585727,12 +585868,15 @@ __export(orpc_client_exports, {
|
|
|
585727
585868
|
generatorVersionsContract: () => generatorVersionsContract2,
|
|
585728
585869
|
generatorsContract: () => generatorsContract2,
|
|
585729
585870
|
getDocsForUrl: () => getDocsForUrl2,
|
|
585871
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds2,
|
|
585730
585872
|
gitContract: () => gitContract2,
|
|
585731
585873
|
isFernFileRef: () => isFernFileRef,
|
|
585874
|
+
ledgerSegmentIdentity: () => ledgerSegmentIdentity,
|
|
585732
585875
|
libraryDocsContract: () => libraryDocsContract2,
|
|
585733
585876
|
organizationContract: () => organizationContract2,
|
|
585734
585877
|
pdfExportContract: () => pdfExportContract2,
|
|
585735
585878
|
sdksContract: () => sdksContract2,
|
|
585879
|
+
selectLedgerSegmentsForLocale: () => selectLedgerSegmentsForLocale,
|
|
585736
585880
|
slugsContract: () => slugsContract2,
|
|
585737
585881
|
snippetsContract: () => snippetsContract2,
|
|
585738
585882
|
snippetsFactoryContract: () => snippetsFactoryContract2,
|
|
@@ -585785,6 +585929,11 @@ function WebhookId16(value2) {
|
|
|
585785
585929
|
function GraphQlOperationId2(value2) {
|
|
585786
585930
|
return value2;
|
|
585787
585931
|
}
|
|
585932
|
+
function getGraphqlOperationIds2(node4) {
|
|
585933
|
+
const ids = new Set(node4.graphqlOperationIds ?? []);
|
|
585934
|
+
ids.add(node4.graphqlOperationId);
|
|
585935
|
+
return [...ids];
|
|
585936
|
+
}
|
|
585788
585937
|
function EnvironmentId23(value2) {
|
|
585789
585938
|
return value2;
|
|
585790
585939
|
}
|
|
@@ -585868,17 +586017,6 @@ function createDocsV1ReadClient2(options2) {
|
|
|
585868
586017
|
});
|
|
585869
586018
|
return createORPCClient(link3);
|
|
585870
586019
|
}
|
|
585871
|
-
function createDocsV1WriteClient2(options2) {
|
|
585872
|
-
const link3 = new OpenAPILink(docsV1WriteContract2, {
|
|
585873
|
-
url: `${options2.baseUrl}/registry/docs`,
|
|
585874
|
-
headers: () => ({
|
|
585875
|
-
Authorization: `Bearer ${options2.token}`,
|
|
585876
|
-
...options2.headers
|
|
585877
|
-
}),
|
|
585878
|
-
...options2.fetch != null ? { fetch: options2.fetch } : {}
|
|
585879
|
-
});
|
|
585880
|
-
return createORPCClient(link3);
|
|
585881
|
-
}
|
|
585882
586020
|
function createLibraryDocsClient3(options2) {
|
|
585883
586021
|
const link3 = new OpenAPILink(libraryDocsContract2, {
|
|
585884
586022
|
url: `${options2.baseUrl}/v2/registry/docs`,
|
|
@@ -585929,8 +586067,7 @@ function createDocsV2WriteClient2(options2) {
|
|
|
585929
586067
|
function createDocsClient2(options2) {
|
|
585930
586068
|
return {
|
|
585931
586069
|
v1: {
|
|
585932
|
-
read: createDocsV1ReadClient2(options2)
|
|
585933
|
-
write: createDocsV1WriteClient2(options2)
|
|
586070
|
+
read: createDocsV1ReadClient2(options2)
|
|
585934
586071
|
},
|
|
585935
586072
|
v2: {
|
|
585936
586073
|
read: createDocsV2ReadClient2(options2),
|
|
@@ -586150,12 +586287,73 @@ function createFdrORPCClient2(options2) {
|
|
|
586150
586287
|
tokens: createTokensClient2(normalizedOptions)
|
|
586151
586288
|
};
|
|
586152
586289
|
}
|
|
586290
|
+
function createDocsV1WriteClient(options2) {
|
|
586291
|
+
const link3 = new OpenAPILink(docsV1WriteContract, {
|
|
586292
|
+
url: `${options2.baseUrl}/registry/docs`,
|
|
586293
|
+
headers: () => ({
|
|
586294
|
+
Authorization: `Bearer ${options2.token}`,
|
|
586295
|
+
...options2.headers
|
|
586296
|
+
}),
|
|
586297
|
+
...options2.fetch != null ? { fetch: options2.fetch } : {}
|
|
586298
|
+
});
|
|
586299
|
+
return createORPCClient(link3);
|
|
586300
|
+
}
|
|
586153
586301
|
function isDarkAndLight(colors19) {
|
|
586154
586302
|
return colors19.type === "darkAndLight";
|
|
586155
586303
|
}
|
|
586304
|
+
function addFileTokenPath(paths, value2) {
|
|
586305
|
+
if (typeof value2 === "string") {
|
|
586306
|
+
if (value2.startsWith(NAV_ICON_FILE_PREFIX) && value2.length > NAV_ICON_FILE_PREFIX.length) {
|
|
586307
|
+
paths.add(value2.slice(NAV_ICON_FILE_PREFIX.length));
|
|
586308
|
+
}
|
|
586309
|
+
return;
|
|
586310
|
+
}
|
|
586311
|
+
if (Array.isArray(value2)) {
|
|
586312
|
+
for (const item of value2) {
|
|
586313
|
+
addFileTokenPath(paths, item);
|
|
586314
|
+
}
|
|
586315
|
+
return;
|
|
586316
|
+
}
|
|
586317
|
+
if (value2 !== null && typeof value2 === "object") {
|
|
586318
|
+
for (const item of Object.values(value2)) {
|
|
586319
|
+
addFileTokenPath(paths, item);
|
|
586320
|
+
}
|
|
586321
|
+
}
|
|
586322
|
+
}
|
|
586323
|
+
function collectNavFilePaths(segments) {
|
|
586324
|
+
const paths = /* @__PURE__ */ new Set();
|
|
586325
|
+
const addIcon = (v3) => {
|
|
586326
|
+
if (v3?.startsWith(NAV_ICON_FILE_PREFIX)) {
|
|
586327
|
+
paths.add(v3.slice(NAV_ICON_FILE_PREFIX.length));
|
|
586328
|
+
}
|
|
586329
|
+
};
|
|
586330
|
+
const addImage = (v3) => {
|
|
586331
|
+
if (v3 != null && v3.length > 0) {
|
|
586332
|
+
paths.add(v3.startsWith(NAV_ICON_FILE_PREFIX) ? v3.slice(NAV_ICON_FILE_PREFIX.length) : v3);
|
|
586333
|
+
}
|
|
586334
|
+
};
|
|
586335
|
+
for (const raw of segments) {
|
|
586336
|
+
const seg = SegmentIconViewSchema.nullish().catch(void 0).parse(raw);
|
|
586337
|
+
if (seg == null) {
|
|
586338
|
+
continue;
|
|
586339
|
+
}
|
|
586340
|
+
addIcon(seg.metadata?.icon);
|
|
586341
|
+
addImage(seg.metadata?.image);
|
|
586342
|
+
for (const d2 of [seg.product, seg.version, seg.variant, seg.tab]) {
|
|
586343
|
+
addIcon(d2?.icon);
|
|
586344
|
+
addIcon(d2?.metadata?.icon);
|
|
586345
|
+
addImage(d2?.metadata?.image);
|
|
586346
|
+
}
|
|
586347
|
+
}
|
|
586348
|
+
return [...paths];
|
|
586349
|
+
}
|
|
586156
586350
|
function collectConfigFilePaths(config5) {
|
|
586157
586351
|
const paths = /* @__PURE__ */ new Set();
|
|
586158
586352
|
const view = ConfigViewSchema.parse(config5);
|
|
586353
|
+
const fileTokenView = ConfigFileTokenViewSchema.parse(config5);
|
|
586354
|
+
if (fileTokenView.landingPage != null) {
|
|
586355
|
+
addFileTokenPath(paths, fileTokenView.landingPage);
|
|
586356
|
+
}
|
|
586159
586357
|
if (view.favicon != null) {
|
|
586160
586358
|
paths.add(view.favicon);
|
|
586161
586359
|
}
|
|
@@ -586197,6 +586395,46 @@ function collectConfigFilePaths(config5) {
|
|
|
586197
586395
|
}
|
|
586198
586396
|
return [...paths];
|
|
586199
586397
|
}
|
|
586398
|
+
function detailSlug(metadata) {
|
|
586399
|
+
if (metadata == null || typeof metadata !== "object" || !("slug" in metadata)) {
|
|
586400
|
+
return void 0;
|
|
586401
|
+
}
|
|
586402
|
+
const slug = metadata.slug;
|
|
586403
|
+
return typeof slug === "string" ? slug : void 0;
|
|
586404
|
+
}
|
|
586405
|
+
function detailIdentity(dimension, detail) {
|
|
586406
|
+
if (detail == null) {
|
|
586407
|
+
return `${dimension}:none`;
|
|
586408
|
+
}
|
|
586409
|
+
const slug = detailSlug(detail.metadata);
|
|
586410
|
+
if (slug != null && slug !== "") {
|
|
586411
|
+
return `${dimension}:slug:${slug}`;
|
|
586412
|
+
}
|
|
586413
|
+
return detail.sortOrder != null ? `${dimension}:sort-order:${detail.sortOrder}` : `${dimension}:id:${detail.id ?? ""}`;
|
|
586414
|
+
}
|
|
586415
|
+
function ledgerSegmentIdentity(segment) {
|
|
586416
|
+
return [
|
|
586417
|
+
segment.section,
|
|
586418
|
+
segment.sortOrder,
|
|
586419
|
+
detailIdentity("product", segment.product),
|
|
586420
|
+
detailIdentity("version", segment.version),
|
|
586421
|
+
detailIdentity("variant", segment.variant),
|
|
586422
|
+
detailIdentity("tab", segment.tab)
|
|
586423
|
+
].join("|");
|
|
586424
|
+
}
|
|
586425
|
+
function selectLedgerSegmentsForLocale(segments, locale, defaultLocale) {
|
|
586426
|
+
const byIdentity = /* @__PURE__ */ new Map();
|
|
586427
|
+
for (const segment of segments) {
|
|
586428
|
+
const identity5 = ledgerSegmentIdentity(segment);
|
|
586429
|
+
const existing = byIdentity.get(identity5);
|
|
586430
|
+
const prefersRequestedLocale = segment.locale === locale && existing?.locale !== locale;
|
|
586431
|
+
const prefersDefaultLocale = segment.locale === defaultLocale && existing?.locale !== locale && existing?.locale !== defaultLocale;
|
|
586432
|
+
if (existing == null || prefersRequestedLocale || prefersDefaultLocale) {
|
|
586433
|
+
byIdentity.set(identity5, segment);
|
|
586434
|
+
}
|
|
586435
|
+
}
|
|
586436
|
+
return [...byIdentity.values()];
|
|
586437
|
+
}
|
|
586200
586438
|
function stableStringify(value2) {
|
|
586201
586439
|
return JSON.stringify(value2, (_key, val) => {
|
|
586202
586440
|
if (val != null && typeof val === "object" && !Array.isArray(val)) {
|
|
@@ -586216,9 +586454,9 @@ function isFernFileRef(value2) {
|
|
|
586216
586454
|
const hash5 = value2[FERN_FILE_REF_KEY];
|
|
586217
586455
|
return typeof hash5 === "string" && SHA256_RE.test(hash5);
|
|
586218
586456
|
}
|
|
586219
|
-
var OrgIdSchema3, ApiIdSchema2, ApiDefinitionIdSchema3, HttpMethodSchema4, HttpMethod46, UrlSchema3, EndpointPathLiteralSchema2, EndpointIdentifierSchema2, SdkRequestSchema2, DocsConfigIdSchema3, GrpcIdSchema2, PageIdSchema3, RoleIdSchema3, TokenIdSchema2, VersionIdSchema3, LinkTarget2, GrpcMethod2, Availability21, SupportedLanguage2, HttpSnippetLanguage5, SnippetsByEndpointMethodSchema2, SdkSchema2, TypeIdSchema2, EndpointIdSchema3, WebSocketIdSchema3, WebhookIdSchema3, GraphQlOperationIdSchema2, GraphQlTypeCategorySchema2, EnvironmentIdSchema2, PropertyKeySchema2, AuthSchemeIdSchema2, SubpackageIdSchema3, WebSocketMessageIdSchema2, FileIdSchema3, MultipleAuthTypeSchema2, GrpcMethodSchema2, AvailabilitySchema5, WebSocketMessageOriginSchema2, WebhookHttpMethodSchema2, WithDescriptionSchema2, WithAvailabilitySchema2, EnvironmentSchema5, RestProtocolSchema2, OpenRpcProtocolSchema2, GrpcProtocolSchema2, ProtocolSchema2, ObjectPropertyAccessSchema2, TypeReferenceIdDefaultSchema2, _numberNullish2, _numberIntNullish2, coercedNumberNullish2, coercedNumberIntNullish2, IntegerTypeSchema2, DoubleTypeSchema2, StringTypeSchema2, LongTypeSchema2, _booleanNullish2, BooleanTypeSchema2, DatetimeTypeSchema2, UuidTypeSchema2, Base64TypeSchema2, DateTypeSchema2, BigIntegerTypeSchema2, UintTypeSchema2, Uint64TypeSchema2, ScalarTypeSchema2, PrimitiveTypeSchema2, LiteralTypeSchema2, TypeReferenceSchema3, GraphQlArgumentSchema2, ObjectPropertySchema3, ObjectTypeSchema2, EnumValueSchema3, EnumTypeSchema2, DiscriminatedUnionVariantSchema2, DiscriminatedUnionTypeSchema2, ContentTypeSchema2, FilePropertySingleSchema2, FilePropertyArraySchema2, FormDataFilePropertySchema2, FormDataBodyPropertySchema2, FormDataPropertySchema2, FormDataRequestSchema2, EndpointPathPartSchema2, PathParameterSchema2, EndpointPathSchema2, QueryParameterSchema2, HeaderSchema3, JsonBodyShapeSchema2, FileDownloadResponseBodyShapeSchema2, StreamResponseV2Schema2, StreamConditionSchema2, FilenameWithDataSchema2, FormValueSchema2, BytesValueSchema2, ExampleEndpointRequestSchema2, ExampleServerSentEventSchema2, ExampleEndpointResponseSchema2, ErrorDeclarationSchema3, ExampleErrorResponseSchema2, ErrorExampleSchema2, GraphQlOperationTypeSchema2, GraphQlExampleSchema2, CodeSnippetSchema2, GraphQlOperationSchema2, WebhookPayloadShapeSchema2, WebhookPayloadSchema3, ExampleWebhookPayloadSchema2, WebSocketMessageBodyShapeSchema2, WebSocketMessageSchema2, ExampleWebSocketMessageSchema2, ExampleWebSocketSessionSchema2, ApiNavigationConfigItemSchema5, ApiNavigationConfigRootSchema5, BearerAuthSchema2, BasicAuthSchema2, HeaderAuthSchema2, OAuthClientCredentialsReferencedEndpointSchema2, OAuthClientCredentialsSchema2, OAuthSchema2, ApiAuthSchema4, JqStringSchema2, RegisterLanguageSchema2, RegisterUndiscriminatedUnionVariantSchema2, RegisterUndiscriminatedUnionTypeSchema2, RegisterTypeShapeSchema2, RegisterTypeDefinitionSchema2, RegisterBytesRequestSchema2, RegisterJsonRequestBodySchema2, RegisterHttpRequestBodyShapeSchema2, RegisterHttpRequestSchema2, RegisterHttpRequestsV2Schema2, RegisterCustomCodeSampleSchema2, RegisterExampleEndpointCallSchema2, RegisterNonStreamResponseSchema2, RegisterStreamResponseSchema2, RegisterStreamConditionResponseSchema2, RegisterHttpResponseBodyShapeSchema2, RegisterHttpResponseSchema2, RegisterHttpResponsesV2Schema2, RegisterErrorDeclarationV2Schema2, RegisterEndpointDefinitionSchema2, RegisterWebhookDefinitionSchema2, RegisterWebSocketChannelSchema2, SourceIdSchema2, SourceSchema3, SourceUploadSchema2, DynamicIRSchema2, DynamicIRUploadSchema2, TypescriptPackageSchema2, PythonPackageSchema2, GoModuleSchema2, JavaCoordinateSchema2, RubyGemSchema2, NugetPackageSchema2, ComposerPackageSchema2, SwiftPackageSchema2, CratesPackageSchema2, SnippetsConfigSchema2, RegisterApiDefinitionPackageSchema2, RegisterApiDefinitionSubpackageSchema2, RegisterApiDefinitionSchema2, RegisterApiDefinitionResponseSchema2, SnippetInfoSchema2, SdkDynamicIrDownloadSchema2, GetSdkDynamicIrUploadUrlsResponseSchema2, CheckSdkDynamicIrExistsResponseSchema2, EndpointExampleGenerationErrorBodySchema2, PathPartSchema2, WithNamespaceSchema2, LatestAuthSchemeSchema2, LatestObjectPropertyAccessSchema2, LatestTypeReferenceIdDefaultSchema2, LatestPrimitiveTypeSchema2, LatestLiteralTypeSchema2, LatestUnknownTypeSchema2, LatestEnumValueSchema2, LatestEnumTypeSchema2, LatestObjectPropertySchema2, LatestParameterPropertySchema2, LatestObjectTypeSchema2, LatestUndiscriminatedUnionVariantSchema2, LatestUndiscriminatedUnionTypeSchema2, LatestDiscriminatedUnionVariantSchema2, LatestDiscriminatedUnionTypeSchema2, LatestTypeShapeSchema2, LatestTypeReferenceSchema2, LatestTypeDefinitionSchema2, LatestContentTypeSchema2, LatestBytesRequestSchema2, LatestFormDataPropertySchema2, LatestFormDataRequestSchema2, LatestNullableTypeSchema2, LatestOptionalTypeSchema2, LatestListTypeSchema2, LatestSetTypeSchema2, LatestMapTypeSchema2, LatestLanguageSchema2, LatestExampleEndpointRequestSchema2, LatestExampleEndpointResponseSchema2, LatestExampleErrorResponseSchema2, LatestHttpRequestBodyShapeSchema2, LatestHttpRequestSchema2, LatestFileDownloadResponseBodyShapeSchema2, LatestStreamResponseSchema2, LatestHttpResponseBodyShapeSchema2, LatestHttpResponseSchema2, LatestErrorExampleSchema2, LatestErrorResponseSchema2, LatestCodeSnippetSchema2, LatestExampleEndpointCallSchema2, LatestEndpointDefinitionSchema2, LatestGraphQlOperationTypeSchema2, LatestGraphQlArgumentSchema2, LatestGraphQlExampleSchema2, LatestGraphQlOperationSchema2, LatestWebhookPayloadShapeSchema2, LatestWebhookPayloadSchema2, LatestExampleWebhookPayloadSchema2, LatestWebhookDefinitionSchema2, LatestWebSocketMessageSchema2, LatestExampleWebSocketMessageSchema2, LatestExampleWebSocketSessionSchema2, LatestWebSocketChannelSchema2, LatestSubpackageMetadataSchema2, LatestApiDefinitionSchema2, ApiDefinitionSchema4, ReadUndiscriminatedUnionVariantSchema2, ReadUndiscriminatedUnionTypeSchema2, ReadTypeShapeSchema2, ReadTypeDefinitionSchema2, ReadBytesRequestSchema2, ReadHttpRequestBodyShapeSchema2, ReadHttpRequestSchema2, ReadHttpRequestsV2Schema2, ReadSupportedLanguageSchema2, ReadLanguageSchema2, ReadCustomCodeSampleSchema2, ReadPythonSnippetSchema2, ReadTypescriptSnippetSchema2, ReadGoSnippetSchema2, ReadRubySnippetSchema2, ReadCsharpSnippetSchema2, ReadCodeExamplesSchema2, ReadExampleEndpointCallSchema2, ReadNonStreamResponseSchema2, ReadStreamResponseSchema2, ReadStreamConditionResponseSchema2, ReadHttpResponseBodyShapeSchema2, ReadHttpResponseSchema2, ReadHttpResponsesV2Schema2, ReadErrorDeclarationV2Schema2, ReadEndpointDefinitionSchema2, ReadWebhookDefinitionSchema2, ReadWebSocketChannelSchema2, ReadApiDefinitionPackageSchema2, ReadApiDefinitionSubpackageSchema2, ReadApiDefinitionSchema2, apiLatestContract2, apiReadContract2, apiRegisterContract2, EndpointSnippetTemplatesSchema2, DbHttpRequestSchema2, DbHttpRequestsV2Schema2, DbEndpointDefinitionSchema2, DbApiDefinitionPackageSchema2, DbApiDefinitionSubpackageSchema2, DbApiDefinitionSchema2, DbEndpointWithContextSchema2, DocsDeploymentStatusSchema2, DocsSiteSchema2, DocsDeploymentSchema2, RegisterDocsSiteInputSchema2, GetPostmanCollectionIdInputSchema2, GetDocsStatusInputSchema2, SetDocsStatusInputSchema2, CreateDeploymentInputSchema2, UpdateDeploymentStatusInputSchema2, GetDocsDeploymentsInputSchema2, UnlockDeployInputSchema2, GetDocsStatusResponseSchema2, GetDocsDeploymentsResponseSchema2, CreateDeploymentResponseSchema2, UpdateDeploymentStatusResponseSchema2, GetPostmanCollectionIdResponseSchema2, UnlockDeployResponseSchema2, GetDocsSitesByCollectionIdInputSchema2, FindSiteByOrgAndCollectionInputSchema2, FindSiteByOrgAndCollectionResponseSchema2, RecordPostmanNotificationInputSchema2, RecordPostmanNotificationResponseSchema2, GetUnnotifiedPostmanSitesResponseSchema2, GetDocsSitesByCollectionIdResponseSchema2, DeleteDocsSiteByServiceInputSchema2, DeleteDocsSiteByServiceResponseSchema2, SetEditorRepoUrlInputSchema2, docsDeploymentContract2, DocsSiteUrlSchema2, DashboardDocsSiteSchema2, GetDocsSitesForOrgInputSchema2, GetDocsSitesForOrgResponseSchema2, IsDocsSiteInOrgInputSchema2, IsDocsSiteInOrgResponseSchema2, DeleteAllDocsSitesForOrgInputSchema2, DeleteAllDocsSitesForOrgResponseSchema2, dashboardContract2, FileIdSchema22, PageIdSchema22, UrlSchema22, VersionIdSchema22, ApiDefinitionIdSchema22, EndpointIdSchema22, WebSocketIdSchema22, WebhookIdSchema22, RoleIdSchema22, SubpackageIdSchema22, LinkTargetSchema3, AvailabilitySchema23, RgbaColorSchema2, FileIdOrUrlSchema2, LanguageSchema2, Bcp47LocaleSchema3, DocsTranslationsConfigSchema2, ProgrammingLanguageSchema2, AnnouncementConfigSchema3, SegmentConfigSchema2, FullStoryAnalyticsConfigSchema2, IntercomConfigSchema3, PostHogConfigSchema2, GTMConfigSchema2, GoogleAnalytics4ConfigSchema2, AmplitudeConfigSchema2, MixpanelConfigSchema2, HotJarConfigSchema2, KoalaConfigSchema2, LogRocketConfigSchema2, PirschConfigSchema2, PlausibleConfigSchema2, FathomConfigSchema2, ClearBitConfigSchema2, HeapConfigSchema2, AnalyticsConfigSchema3, SearchbarPlacementSchema2, TabsPlacementSchema2, SwitcherPlacementSchema2, ContentAlignmentSchema2, HeaderPositionSchema2, PageWidthSizeConfigSchema2, SizeConfigSchema2, TabsAlignmentSchema2, DocsLayoutConfigSchema2, FooterNavConfigSchema2, DocsSidebarConfigSchema2, DocsBodyConfigSchema2, DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2, DocsTabsConfigSchema2, DocsPageActionsConfigSchema2, LanguageSwitcherConfigSchema2, ProductSwitcherConfigSchema2, DocsThemeConfigSchema2, HttpSnippetLanguageSchema2, HttpSnippetsConfigSchema2, SearchSettingsConfigSchema2, DocsSettingsConfigSchema3, TwitterCardSettingSchema3, MetadataConfigSchema3, RedirectConfigSchema3, WithPermissionsSchema2, NavbarLinkMetadataSchema2, NavbarGithubMetadataSchema2, NavbarLinkDropdownMetadataSchema2, NavbarLinkSchema3, FooterLinkSchema2, CssConfigSchema3, JsScriptStrategySchema2, JsRemoteConfigSchema2, JsFileConfigSchema2, JsConfigSchema3, IntegrationsConfigSchema3, FontStyleSchema2, FontDisplaySchema2, CustomFontConfigVariantSchema2, CustomFontConfigSchema2, FontConfigV2Schema2, DocsTypographyConfigV2Schema2, ThemedFileIdSchema2, ColorsConfigSchema2, ColorUnthemedConfigSchema2, ColorThemedConfigSchema2, ColorConfigSchema2, ColorsConfigV2Schema2, FontConfigSchema2, DocsTypographyConfigSchema2, EditThisPageLaunchSchema2, AIChatLocationSchema2, AIChatWebsiteDatasourceSchema2, AIChatDatasourceSchema2, AIModelSchema2, AIChatConfigSchema2, PageDescriptionSourceSchema2, AgentsConfigSchema2, PageActionOptionSchema2, CustomPageActionSchema2, SkillSchema2, SkillsConfigSchema2, PageActionOptionsSchema2, PageActionsConfigSchema3, HeightSchema3, PageContentSchema3, NavigationNodeMetadataSchema3, PageMetadataSchema3, LinkMetadataSchema3, NavigationTabLinkSchema3, ChangelogItemSchema3, ChangelogSectionSchema3, ChangelogSectionV3Schema3, ApiSectionV2Schema3, GitHubRepoSchema2, NpmPackageSchema3, MavenPackageSchema3, PypiPackageSchema3, PublishedSdkSchema3, PublishedPostmanCollectionSchema3, ApiArtifactsSchema3, ApiNavigationConfigItemSchema22, ApiNavigationConfigRootSchema22, DocsConfigIdSchema22, UrlFileSchema2, ImageFileSchema2, FileSchema3, BackgroundSchema3, ThemeConfigSchema5, DarkAndLightModeConfigSchema4, ColorsConfigV3Schema4, ApiNavigationConfigRootSchema32, ApiSectionSchema4, DocsSectionSchema4, NavigationItemSchema4, NavigationTabGroupSchema4, NavigationTabSchema4, UnversionedTabbedNavigationConfigSchema4, UnversionedUntabbedNavigationConfigSchema4, UnversionedNavigationConfigSchema4, VersionedNavigationConfigDataSchema4, VersionedNavigationConfigSchema4, NavigationConfigSchema5, DocsConfigSchema3, DocsDefinitionSchema3, BaseUrlSchema2, LoadDocsForUrlResponseSchema2, GetDocsForDomainLegacyInputSchema2, GetDocsForDomainInputSchema2, docsV1ReadContract2, OrgIdSchema22, FilePathSchema3, DocsRegistrationIdSchema2, HeightSchema22, FileS3UploadUrlSchema2, StartDocsRegisterResponseSchema2, PageContentSchema22, NavigationNodeMetadataSchema22, PageMetadataSchema22, LinkMetadataSchema22, ChangelogItemSchema22, ChangelogSectionSchema22, ChangelogSectionV2Schema2, ChangelogSectionV3Schema22, NavigationTabLinkSchema22, ApiNavigationConfigItemSchema32, ApiNavigationConfigSubpackageSchema2, ApiNavigationConfigRootSchema42, ApiSectionSchema22, ApiSectionV2Schema22, DocsSectionSchema22, NavigationItemSchema22, NavigationTabGroupSchema22, NavigationTabSchema22, NavigationTabV2Schema3, UnversionedTabbedNavigationConfigSchema22, UnversionedUntabbedNavigationConfigSchema22, UnversionedNavigationConfigSchema22, VersionedNavigationConfigDataSchema22, VersionedNavigationConfigSchema22, NavigationConfigSchema22, ThemeConfigSchema22, DarkAndLightModeConfigSchema22, ColorsConfigV3Schema22, DocsConfigSchema22, DocsDefinitionSchema22, NpmPackageSchema22, MavenPackageSchema22, PypiPackageSchema22, PublishedSdkSchema22, PublishedPostmanCollectionSchema22, ApiArtifactsSchema22, InvalidCustomDomainErrorBodySchema2, OverlappingCustomDomainsSchema2, StartDocsRegisterV1InputSchema2, StartDocsRegisterV1ResponseSchema2, FinishDocsRegisterV1InputSchema2, docsV1WriteContract2, ALLOWED_HOSTNAMES2, GithubUrlSchema2, SafeBranchSchema2, SafePackagePathSchema2, LibraryDocsBaseConfigSchema2, PythonLibraryDocsConfigSchema2, CppLibraryDocsConfigSchema2, StartLibraryDocsGenerationInputSchema2, StartLibraryDocsGenerationResponseSchema2, GetLibraryDocsStatusInputSchema2, LibraryDocsResultSchema2, LibraryDocsGenerationStatusSchema2, libraryDocsContract2, GetOrganizationForUrlInputSchema2, organizationContract2, GetDocsUrlMetadataInputSchema2, GetDocsUrlMetadataResponseSchema2, GetDocsForUrlInputSchema2, GetPrivateDocsForUrlInputSchema2, ListAllDocsUrlsInputSchema2, GetDocsConfigByIdInputSchema2, DocsDefinitionField2, GetDocsConfigByIdResponseSchema2, DocsDomainItemSchema2, ListAllDocsUrlsResponseSchema2, getDocsForUrl2, docsV2ReadContract2, FilePathSchema22, FilePathInputSchema2, ImageFilePathSchema2, AuthConfigSchema2, StartDocsRegisterV2InputSchema2, StartDocsRegisterV2ResponseSchema2, StartDocsPreviewRegisterInputSchema2, StartDocsPreviewRegisterResponseSchema2, FinishDocsRegisterV2InputSchema2, TransferOwnershipInputSchema2, SetIsArchivedInputSchema2, SetDocsUrlMetadataInputSchema2, AlgoliaDomainInputSchema2, ListAlgoliaPreviewWhitelistResponseSchema2, DeleteDocsSiteInputSchema2, RemoveCustomDomainAliasInputSchema2, Bcp47LocaleSchema22, RegisterTranslationInputSchema2, RegisterTranslationResponseSchema2, docsV2WriteContract2, InvalidateCachedDocsInputSchema2, docsCacheContract2, MissingContentSchema2, RegisterResponseSchema2, FinishResponseSchema2, ArchiveSiteInputSchema2, ArchiveSiteResponseSchema2, BlobRefSchema2, PageBlobRefSchema2, FileManifestEntrySchema2, ImageRefSchema2, PathOrUrlSchema2, RgbaSchema2, BackgroundColorSchema2, ACCENT_SCALE_KEYS2, accentScaleShape2, LedgerThemeConfigSchema2, LedgerColorsConfigSchema2, LedgerFontVariantSchema2, LedgerFontConfigSchema2, LedgerTypographySchema2, LedgerJsFileSchema2, LedgerJsConfigSchema2, LedgerMetadataConfigSchema2, NavbarLinksFieldSchema2, FooterLinksFieldSchema2, LayoutFieldSchema2, ThemeFieldSchema2, SettingsFieldSchema2, AnalyticsFieldSchema2, AIChatFieldSchema2, PageActionsFieldSchema2, LedgerAgentsConfigSchema2, LedgerConfigSchema2, MetadataStringArraySchema2, FeatureFlagMetadataSchema2, LinkTargetSchema22, CollapsedSchema2, LedgerAvailabilitySchema2, LedgerArtifactTypeSchema2, LedgerMetadataBaseSchema2, NodeMetadataFields2, ApiNodeMetadataFields2, LedgerSegmentDetailMetadataObjectSchema2, LedgerSegmentDetailMetadataSchema2, LedgerSegmentMetadataObjectSchema2, LedgerSegmentMetadataSchema2, LedgerMarkdownMetadataSchema2, LedgerRestMetadataSchema2, LedgerWebSocketMetadataSchema2, LedgerWebhookMetadataSchema2, LedgerGrpcMetadataSchema2, LedgerGraphQlMetadataSchema2, LedgerChangelogEntryMetadataSchema2, LedgerLinkMetadataSchema2, LedgerFileArtifactMetadataSchema2, LedgerRedirectMetadataSchema2, LedgerArtifactMetadataSchema2, LEDGER_ARTIFACT_METADATA_SCHEMAS2, NavRouteBaseSchema2, LedgerNavRouteSchema2, DocsPublishGitInputSchema2, DocsContentFieldsSchema2, LocaleEntrySchemaInternal2, LocaleEntrySchema2, DocsPublishInputSchemaInternal2, DocsPublishInputSchema2, LedgerPreviewRegisterInputSchemaInternal2, LedgerPreviewRegisterInputSchema2, LedgerPreviewRegisterResponseSchema2, docsLedgerContract2, CurrentVersionInputSchema2, CurrentPreviewInputSchema2, CurrentVersionResponseSchema2, ContentRefSchema2, SegmentDetailSchema2, SegmentSchema2, VersionMetadataInputSchema2, VersionMetadataResponseSchema2, PageContentInputSchema2, PageContentResponseSchema2, BatchPageContentInputSchema2, BatchPageContentItemSchema2, BatchPageContentResponseSchema2, NavInputSchema2, NavResponseSchema2, RouteContextInputSchema2, RouteContextResponseBaseSchema2, RouteContextResponseSchema2, TopLevelNavigationInputSchema2, TopLevelNavigationResponseSchema2, VersionSwitchTargetsInputSchema2, VersionSwitchTargetSchema2, VersionSwitchTargetsResponseSchema2, ApiDefinitionInputSchema2, ApiDefinitionResponseSchema2, PrunedApiDefinitionInputSchema2, PrunedApiDefinitionResponseSchema2, FileArtifactInputSchema2, FileArtifactResponseSchema2, PresignedFileDownloadInputSchema2, PresignedFileDownloadResponseSchema2, FileMetadataInputSchema2, FileMetadataResponseSchema2, docsLedgerReadContract2, GetSnapshotInputSchema2, SetSnapshotInputSchema2, GetDocumentsForBranchesInputSchema2, EditorDocumentSchema2, GetSnapshotResponseSchema2, GetDocumentsForBranchesResponseSchema2, editorSnapshotContract2, GeneratorLanguage, ReleaseType, GeneratorLanguageSchema2, ScriptSchema2, GeneratorScriptsSchema2, GeneratorTypeSchema2, ChangelogEntryTypeSchema2, ChangelogEntrySchema2, YankSchema2, ReleaseTypeSchema2, VersionRangeSchema2, GeneratorSchema2, GeneratorOutputSchema3, GetGeneratorByImageInputSchema2, GetGeneratorInputSchema2, GeneratorReleaseSchema2, GeneratorReleaseRequestSchema2, GetLatestGeneratorReleaseInputSchema2, GetGeneratorChangelogInputSchema2, ChangelogResponseSchema2, GetChangelogResponseSchema2, GetGeneratorReleaseInputSchema2, ListGeneratorReleasesInputSchema2, ListGeneratorReleasesResponseSchema2, CliReleaseSchema2, GetLatestCliReleaseInputSchema2, GetCliChangelogInputSchema2, GetMinCliForIrInputSchema2, UpsertCliReleaseInputSchema2, GetCliReleaseInputSchema2, ListCliReleasesInputSchema2, ListCliReleasesResponseSchema2, generatorsContract2, generatorVersionsContract2, generatorCliContract2, CheckRunSchema2, GithubRepositoryIdSchema2, RepositoryIdSchema2, BaseRepositorySchema2, SdkRepositorySchema2, FernConfigRepositorySchema2, FernRepositorySchema2, GithubUserSchema2, GithubTeamSchema2, PullRequestReviewerSchema2, PullRequestStateSchema2, PullRequestState, PullRequestSchema2, ListRepositoriesResponseSchema2, ListPullRequestsResponseSchema2, GetRepositoryInputSchema2, ListRepositoriesInputSchema2, DeleteRepositoryInputSchema2, GetPullRequestInputSchema2, ListPullRequestsInputSchema2, DeletePullRequestInputSchema2, gitContract2, PdfExportScopeSchema2, PdfExportOptionsV1Schema2, PdfExportOptionsSchema2, PdfExportTaskStatusSchema2, PdfExportTaskSchema2, ListPdfExportTasksResponseSchema2, PdfExportDownloadResponseSchema2, CreatePdfExportTaskInputSchema2, ListPdfExportTasksInputSchema2, GetPdfExportTaskInputSchema2, UpdatePdfExportTaskInputSchema2, GetPdfExportDownloadUrlInputSchema2, CleanupPdfExportsResponseSchema2, pdfExportContract2, LanguageEnumSchema2, VersionBumpEnumSchema2, ComputeSemanticVersionInputSchema2, ComputeSemanticVersionOutputSchema2, sdksContract2, SlugsInputSchema2, SlugEntrySchema2, MarkdownEntrySchema2, GetSlugEntriesResponseSchema2, GetMarkdownEntriesResponseSchema2, slugsContract2, TypeScriptSdkSchema2, PythonSdkSchema2, GoSdkSchema2, RubySdkSchema2, JavaSdkSchema2, CsharpSdkSchema2, BaseSnippetCreateSchema2, SdkSnippetsCreateSchema2, snippetsFactoryContract2, ParameterPayloadSchema2, AuthPayloadSchema2, CustomSnippetPayloadSchema2, snippetsContract2, SnippetRegistryEntrySchema2, RegisterInputSchema2, RegisterBatchInputSchema2, GetInputSchema2, EndpointSnippetTemplateSchema2, templatesContract2, GenerateTokenInputSchema2, RevokeTokenInputSchema2, GenerateTokenOutputSchema2, tokensContract2, PATH_OR_URL_METADATA_KEYS, LogoViewSchema, ThemeViewSchema, ColorsViewSchema, FontViewSchema, TypographyViewSchema, JsFileViewSchema, MetadataFileRefViewSchema, ConfigViewSchema, LEDGER_MANIFEST_SCHEMA_VERSION, LEDGER_SHARD_SCHEMA_VERSION, ManifestBlobRefSchema, ManifestSegmentSchema, ManifestNavRouteSchema, ManifestRouteBaseSchema, ManifestRouteSchema, ManifestPageSchema, ManifestApiDefSchema, ManifestFileSchema, LedgerShardFileSchema, LedgerConfigBlobSchema, LedgerChromeBlobSchema, LedgerSidebarBundleSchema, LedgerSidebarMapEntrySchema, LedgerLocaleIndexSchema, LedgerRouteShardSchema, LedgerPagesBlobSchema, LedgerPointerSegmentSchema, LedgerLocaleRoutingSchema, LedgerManifestSchema, PutContentInputSchema, PutContentResponseSchema, PutFileInputSchema, FileResponseSchema, contentContract, filesContract, FERN_FILE_REF_KEY, SHA256_RE, THEME_NAME_RE, ThemeResponseSchema, ThemeListItemSchema, ThemeListResponseSchema, UpsertThemeBodySchema;
|
|
586457
|
+
var OrgIdSchema3, ApiIdSchema2, ApiDefinitionIdSchema3, HttpMethodSchema4, HttpMethod46, UrlSchema3, EndpointPathLiteralSchema2, EndpointIdentifierSchema2, SdkRequestSchema2, DocsConfigIdSchema3, GrpcIdSchema2, PageIdSchema3, RoleIdSchema3, TokenIdSchema2, VersionIdSchema3, LinkTarget2, GrpcMethod2, Availability21, SupportedLanguage2, HttpSnippetLanguage5, SnippetsByEndpointMethodSchema2, SdkSchema2, TypeIdSchema2, EndpointIdSchema3, WebSocketIdSchema3, WebhookIdSchema3, GraphQlOperationIdSchema2, GraphQlTypeCategorySchema2, EnvironmentIdSchema2, PropertyKeySchema2, AuthSchemeIdSchema2, SubpackageIdSchema3, WebSocketMessageIdSchema2, FileIdSchema3, MultipleAuthTypeSchema2, GrpcMethodSchema2, AvailabilitySchema5, WebSocketMessageOriginSchema2, WebhookHttpMethodSchema2, WithDescriptionSchema2, WithAvailabilitySchema2, EnvironmentSchema5, RestProtocolSchema2, OpenRpcProtocolSchema2, GrpcProtocolSchema2, ProtocolSchema2, ObjectPropertyAccessSchema2, TypeReferenceIdDefaultSchema2, _numberNullish2, _numberIntNullish2, coercedNumberNullish2, coercedNumberIntNullish2, IntegerTypeSchema2, DoubleTypeSchema2, StringTypeSchema2, LongTypeSchema2, _booleanNullish2, BooleanTypeSchema2, DatetimeTypeSchema2, UuidTypeSchema2, Base64TypeSchema2, DateTypeSchema2, BigIntegerTypeSchema2, UintTypeSchema2, Uint64TypeSchema2, ScalarTypeSchema2, PrimitiveTypeSchema2, LiteralTypeSchema2, TypeReferenceSchema3, GraphQlArgumentSchema2, ObjectPropertySchema3, ObjectTypeSchema2, EnumValueSchema3, EnumTypeSchema2, DiscriminatedUnionVariantSchema2, DiscriminatedUnionTypeSchema2, ContentTypeSchema2, FilePropertySingleSchema2, FilePropertyArraySchema2, FormDataFilePropertySchema2, FormDataBodyPropertySchema2, FormDataPropertySchema2, FormDataRequestSchema2, EndpointPathPartSchema2, PathParameterSchema2, EndpointPathSchema2, QueryParameterSchema2, HeaderSchema3, JsonBodyShapeSchema2, FileDownloadResponseBodyShapeSchema2, StreamResponseV2Schema2, StreamConditionSchema2, FilenameWithDataSchema2, FormValueSchema2, BytesValueSchema2, ExampleEndpointRequestSchema2, ExampleServerSentEventSchema2, ExampleEndpointResponseSchema2, ErrorDeclarationSchema3, ExampleErrorResponseSchema2, ErrorExampleSchema2, GraphQlOperationTypeSchema2, GraphQlExampleSchema2, CodeSnippetSchema2, GraphQlOperationSchema2, WebhookPayloadShapeSchema2, WebhookPayloadSchema3, ExampleWebhookPayloadSchema2, WebSocketMessageBodyShapeSchema2, WebSocketMessageSchema2, ExampleWebSocketMessageSchema2, ExampleWebSocketSessionSchema2, ApiNavigationConfigItemSchema5, ApiNavigationConfigRootSchema5, BearerAuthSchema2, BasicAuthSchema2, HeaderAuthSchema2, OAuthClientCredentialsReferencedEndpointSchema2, OAuthClientCredentialsSchema2, OAuthSchema2, ApiAuthSchema4, JqStringSchema2, RegisterLanguageSchema2, RegisterUndiscriminatedUnionVariantSchema2, RegisterUndiscriminatedUnionTypeSchema2, RegisterTypeShapeSchema2, RegisterTypeDefinitionSchema2, RegisterBytesRequestSchema2, RegisterJsonRequestBodySchema2, RegisterHttpRequestBodyShapeSchema2, RegisterHttpRequestSchema2, RegisterHttpRequestsV2Schema2, RegisterCustomCodeSampleSchema2, RegisterExampleEndpointCallSchema2, RegisterNonStreamResponseSchema2, RegisterStreamResponseSchema2, RegisterStreamConditionResponseSchema2, RegisterHttpResponseBodyShapeSchema2, RegisterHttpResponseSchema2, RegisterHttpResponsesV2Schema2, RegisterErrorDeclarationV2Schema2, RegisterEndpointDefinitionSchema2, RegisterWebhookDefinitionSchema2, RegisterWebSocketChannelSchema2, SourceIdSchema2, SourceSchema3, SourceUploadSchema2, DynamicIRSchema2, DynamicIRUploadSchema2, TypescriptPackageSchema2, PythonPackageSchema2, GoModuleSchema2, JavaCoordinateSchema2, RubyGemSchema2, NugetPackageSchema2, ComposerPackageSchema2, SwiftPackageSchema2, CratesPackageSchema2, SnippetsConfigSchema2, RegisterApiDefinitionPackageSchema2, RegisterApiDefinitionSubpackageSchema2, RegisterApiDefinitionSchema2, RegisterApiDefinitionResponseSchema2, SnippetInfoSchema2, SdkDynamicIrDownloadSchema2, GetSdkDynamicIrUploadUrlsResponseSchema2, CheckSdkDynamicIrExistsResponseSchema2, EndpointExampleGenerationErrorBodySchema2, PathPartSchema2, WithNamespaceSchema2, LatestAuthSchemeSchema2, LatestObjectPropertyAccessSchema2, LatestTypeReferenceIdDefaultSchema2, LatestPrimitiveTypeSchema2, LatestLiteralTypeSchema2, LatestUnknownTypeSchema2, LatestEnumValueSchema2, LatestEnumTypeSchema2, LatestObjectPropertySchema2, LatestParameterPropertySchema2, LatestObjectTypeSchema2, LatestUndiscriminatedUnionVariantSchema2, LatestUndiscriminatedUnionTypeSchema2, LatestDiscriminatedUnionVariantSchema2, LatestDiscriminatedUnionTypeSchema2, LatestTypeShapeSchema2, LatestTypeReferenceSchema2, LatestTypeDefinitionSchema2, LatestContentTypeSchema2, LatestBytesRequestSchema2, LatestFormDataPropertySchema2, LatestFormDataRequestSchema2, LatestNullableTypeSchema2, LatestOptionalTypeSchema2, LatestListTypeSchema2, LatestSetTypeSchema2, LatestMapTypeSchema2, LatestLanguageSchema2, LatestExampleEndpointRequestSchema2, LatestExampleEndpointResponseSchema2, LatestExampleErrorResponseSchema2, LatestHttpRequestBodyShapeSchema2, LatestHttpRequestSchema2, LatestFileDownloadResponseBodyShapeSchema2, LatestStreamResponseSchema2, LatestHttpResponseBodyShapeSchema2, LatestHttpResponseSchema2, LatestErrorExampleSchema2, LatestErrorResponseSchema2, LatestCodeSnippetSchema2, LatestExampleEndpointCallSchema2, LatestEndpointDefinitionSchema2, LatestGraphQlOperationTypeSchema2, LatestGraphQlArgumentSchema2, LatestGraphQlExampleSchema2, LatestGraphQlOperationSchema2, LatestWebhookPayloadShapeSchema2, LatestWebhookPayloadSchema2, LatestExampleWebhookPayloadSchema2, LatestWebhookDefinitionSchema2, LatestWebSocketMessageSchema2, LatestExampleWebSocketMessageSchema2, LatestExampleWebSocketSessionSchema2, LatestWebSocketChannelSchema2, LatestSubpackageMetadataSchema2, LatestApiDefinitionSchema2, ApiDefinitionSchema4, ReadUndiscriminatedUnionVariantSchema2, ReadUndiscriminatedUnionTypeSchema2, ReadTypeShapeSchema2, ReadTypeDefinitionSchema2, ReadBytesRequestSchema2, ReadHttpRequestBodyShapeSchema2, ReadHttpRequestSchema2, ReadHttpRequestsV2Schema2, ReadSupportedLanguageSchema2, ReadLanguageSchema2, ReadCustomCodeSampleSchema2, ReadPythonSnippetSchema2, ReadTypescriptSnippetSchema2, ReadGoSnippetSchema2, ReadRubySnippetSchema2, ReadCsharpSnippetSchema2, ReadCodeExamplesSchema2, ReadExampleEndpointCallSchema2, ReadNonStreamResponseSchema2, ReadStreamResponseSchema2, ReadStreamConditionResponseSchema2, ReadHttpResponseBodyShapeSchema2, ReadHttpResponseSchema2, ReadHttpResponsesV2Schema2, ReadErrorDeclarationV2Schema2, ReadEndpointDefinitionSchema2, ReadWebhookDefinitionSchema2, ReadWebSocketChannelSchema2, ReadApiDefinitionPackageSchema2, ReadApiDefinitionSubpackageSchema2, ReadApiDefinitionSchema2, apiLatestContract2, apiReadContract2, apiRegisterContract2, EndpointSnippetTemplatesSchema2, DbHttpRequestSchema2, DbHttpRequestsV2Schema2, DbEndpointDefinitionSchema2, DbApiDefinitionPackageSchema2, DbApiDefinitionSubpackageSchema2, DbApiDefinitionSchema2, DbEndpointWithContextSchema2, DocsDeploymentStatusSchema2, DocsSiteSchema2, DocsDeploymentSchema2, RegisterDocsSiteInputSchema2, GetPostmanCollectionIdInputSchema2, GetDocsStatusInputSchema2, SetDocsStatusInputSchema2, CreateDeploymentInputSchema2, UpdateDeploymentStatusInputSchema2, GetDocsDeploymentsInputSchema2, UnlockDeployInputSchema2, GetDocsStatusResponseSchema2, GetDocsDeploymentsResponseSchema2, CreateDeploymentResponseSchema2, UpdateDeploymentStatusResponseSchema2, GetPostmanCollectionIdResponseSchema2, UnlockDeployResponseSchema2, GetDocsSitesByCollectionIdInputSchema2, FindSiteByOrgAndCollectionInputSchema2, FindSiteByOrgAndCollectionResponseSchema2, RecordPostmanNotificationInputSchema2, RecordPostmanNotificationResponseSchema2, GetUnnotifiedPostmanSitesResponseSchema2, GetDocsSitesByCollectionIdResponseSchema2, DeleteDocsSiteByServiceInputSchema2, DeleteDocsSiteByServiceResponseSchema2, SetEditorRepoUrlInputSchema2, docsDeploymentContract2, DocsSiteUrlSchema2, DashboardDocsSiteSchema2, GetDocsSitesForOrgInputSchema2, GetDocsSitesForOrgResponseSchema2, IsDocsSiteInOrgInputSchema2, IsDocsSiteInOrgResponseSchema2, DeleteAllDocsSitesForOrgInputSchema2, DeleteAllDocsSitesForOrgResponseSchema2, dashboardContract2, FileIdSchema22, PageIdSchema22, UrlSchema22, VersionIdSchema22, ApiDefinitionIdSchema22, EndpointIdSchema22, WebSocketIdSchema22, WebhookIdSchema22, RoleIdSchema22, SubpackageIdSchema22, LinkTargetSchema3, AvailabilitySchema23, RgbaColorSchema2, FileIdOrUrlSchema2, LanguageSchema2, Bcp47LocaleSchema3, DocsTranslationsConfigSchema2, ProgrammingLanguageSchema2, AnnouncementConfigSchema3, SegmentConfigSchema2, FullStoryAnalyticsConfigSchema2, IntercomConfigSchema3, PostHogConfigSchema2, GTMConfigSchema2, GoogleAnalytics4ConfigSchema2, AmplitudeConfigSchema2, MixpanelConfigSchema2, HotJarConfigSchema2, KoalaConfigSchema2, LogRocketConfigSchema2, PirschConfigSchema2, PlausibleConfigSchema2, FathomConfigSchema2, ClearBitConfigSchema2, HeapConfigSchema2, AnalyticsConfigSchema3, SearchbarPlacementSchema2, TabsPlacementSchema2, SwitcherPlacementSchema2, ContentAlignmentSchema2, HeaderPositionSchema2, PageWidthSizeConfigSchema2, SizeConfigSchema2, TabsAlignmentSchema2, ChangelogLayoutSchema2, DocsLayoutConfigSchema2, FooterNavConfigSchema2, DocsSidebarConfigSchema2, DocsBodyConfigSchema2, DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2, DocsTabsConfigSchema2, DocsPageActionsConfigSchema2, LanguageSwitcherConfigSchema2, ProductSwitcherConfigSchema2, DocsThemeConfigSchema2, HttpSnippetLanguageSchema2, HttpSnippetsConfigSchema2, SearchSettingsConfigSchema2, DocsSettingsConfigSchema3, TwitterCardSettingSchema3, MetadataConfigSchema3, RedirectConfigSchema3, WithPermissionsSchema2, NavbarLinkMetadataSchema2, NavbarGithubMetadataSchema2, NavbarLinkDropdownMetadataSchema2, NavbarLinkSchema3, FooterLinkSchema2, CssConfigSchema3, JsScriptStrategySchema2, JsRemoteConfigSchema2, JsFileConfigSchema2, JsConfigSchema3, IntegrationsConfigSchema3, FontStyleSchema2, FontDisplaySchema2, CustomFontConfigVariantSchema2, CustomFontConfigSchema2, FontConfigV2Schema2, DocsTypographyConfigV2Schema2, ThemedFileIdSchema2, ColorsConfigSchema2, ColorUnthemedConfigSchema2, ColorThemedConfigSchema2, ColorConfigSchema2, ColorsConfigV2Schema2, FontConfigSchema2, DocsTypographyConfigSchema2, EditThisPageLaunchSchema2, AIChatLocationSchema2, AIChatWebsiteDatasourceSchema2, AIChatDatasourceSchema2, AIModelSchema2, AIChatConfigSchema2, PageDescriptionSourceSchema2, AgentsConfigSchema2, PageActionOptionSchema2, CustomPageActionSchema2, SkillSchema2, SkillsConfigSchema2, PageActionOptionsSchema2, PageActionsConfigSchema3, HeightSchema3, PageContentSchema3, NavigationNodeMetadataSchema3, PageMetadataSchema3, LinkMetadataSchema3, NavigationTabLinkSchema3, ChangelogItemSchema3, ChangelogSectionSchema3, ChangelogSectionV3Schema3, ApiSectionV2Schema3, GitHubRepoSchema2, NpmPackageSchema3, MavenPackageSchema3, PypiPackageSchema3, PublishedSdkSchema3, PublishedPostmanCollectionSchema3, ApiArtifactsSchema3, ApiNavigationConfigItemSchema22, ApiNavigationConfigRootSchema22, DocsConfigIdSchema22, UrlFileSchema2, ImageFileSchema2, FileSchema3, BackgroundSchema3, ThemeConfigSchema5, DarkAndLightModeConfigSchema4, ColorsConfigV3Schema4, ApiNavigationConfigRootSchema32, ApiSectionSchema4, DocsSectionSchema4, NavigationItemSchema4, NavigationTabGroupSchema4, NavigationTabSchema4, UnversionedTabbedNavigationConfigSchema4, UnversionedUntabbedNavigationConfigSchema4, UnversionedNavigationConfigSchema4, VersionedNavigationConfigDataSchema4, VersionedNavigationConfigSchema4, NavigationConfigSchema5, DocsConfigSchema3, DocsDefinitionSchema3, BaseUrlSchema2, LoadDocsForUrlResponseSchema2, GetDocsForDomainLegacyInputSchema2, GetDocsForDomainInputSchema2, docsV1ReadContract2, ALLOWED_HOSTNAMES2, GithubUrlSchema2, SafeBranchSchema2, SafePackagePathSchema2, LibraryDocsBaseConfigSchema2, PythonLibraryDocsConfigSchema2, CppLibraryDocsConfigSchema2, StartLibraryDocsGenerationInputSchema2, StartLibraryDocsGenerationResponseSchema2, GetLibraryDocsStatusInputSchema2, LibraryDocsResultSchema2, LibraryDocsGenerationStatusSchema2, libraryDocsContract2, GetOrganizationForUrlInputSchema2, organizationContract2, GetDocsUrlMetadataInputSchema2, GetDocsUrlMetadataResponseSchema2, GetDocsForUrlInputSchema2, GetPrivateDocsForUrlInputSchema2, ListAllDocsUrlsInputSchema2, GetDocsConfigByIdInputSchema2, GetSiteMetricsInputSchema2, SiteMetricsSchema2, DocsDefinitionField2, GetDocsConfigByIdResponseSchema2, DocsDomainItemSchema2, ListAllDocsUrlsResponseSchema2, getDocsForUrl2, docsV2ReadContract2, OrgIdSchema22, FilePathSchema3, DocsRegistrationIdSchema2, HeightSchema22, FileS3UploadUrlSchema2, StartDocsRegisterResponseSchema2, PageContentSchema22, NavigationNodeMetadataSchema22, PageMetadataSchema22, LinkMetadataSchema22, ChangelogItemSchema22, ChangelogSectionSchema22, ChangelogSectionV2Schema2, ChangelogSectionV3Schema22, NavigationTabLinkSchema22, ApiNavigationConfigItemSchema32, ApiNavigationConfigSubpackageSchema2, ApiNavigationConfigRootSchema42, ApiSectionSchema22, ApiSectionV2Schema22, DocsSectionSchema22, NavigationItemSchema22, NavigationTabGroupSchema22, NavigationTabSchema22, NavigationTabV2Schema3, UnversionedTabbedNavigationConfigSchema22, UnversionedUntabbedNavigationConfigSchema22, UnversionedNavigationConfigSchema22, VersionedNavigationConfigDataSchema22, VersionedNavigationConfigSchema22, NavigationConfigSchema22, ThemeConfigSchema22, DarkAndLightModeConfigSchema22, ColorsConfigV3Schema22, DocsConfigSchema22, DocsDefinitionSchema22, NpmPackageSchema22, MavenPackageSchema22, PypiPackageSchema22, PublishedSdkSchema22, PublishedPostmanCollectionSchema22, ApiArtifactsSchema22, InvalidCustomDomainErrorBodySchema2, OverlappingCustomDomainsSchema2, FilePathSchema22, FilePathInputSchema2, ImageFilePathSchema2, AuthConfigSchema2, StartDocsRegisterV2InputSchema2, StartDocsRegisterV2ResponseSchema2, StartDocsPreviewRegisterInputSchema2, StartDocsPreviewRegisterResponseSchema2, FinishDocsRegisterV2InputSchema2, TransferOwnershipInputSchema2, SetIsArchivedInputSchema2, SetDocsUrlMetadataInputSchema2, AlgoliaDomainInputSchema2, ListAlgoliaPreviewWhitelistResponseSchema2, DeleteDocsSiteInputSchema2, RemoveCustomDomainAliasInputSchema2, Bcp47LocaleSchema22, RegisterTranslationInputSchema2, RegisterTranslationResponseSchema2, docsV2WriteContract2, InvalidateCachedDocsInputSchema2, docsCacheContract2, MissingContentSchema2, RegisterResponseSchema2, FinishResponseSchema2, ArchiveSiteInputSchema2, ArchiveSiteResponseSchema2, BlobRefSchema2, PageBlobRefSchema2, FileManifestEntrySchema2, ImageRefSchema2, PathOrUrlSchema2, RgbaSchema2, BackgroundColorSchema2, ACCENT_SCALE_KEYS2, accentScaleShape2, LedgerThemeConfigSchema2, LedgerColorsConfigSchema2, LedgerFontVariantSchema2, LedgerFontConfigSchema2, LedgerTypographySchema2, LedgerJsFileSchema2, LedgerJsConfigSchema2, LedgerMetadataConfigSchema2, NavbarLinksFieldSchema2, FooterLinksFieldSchema2, LayoutFieldSchema2, ThemeFieldSchema2, SettingsFieldSchema2, AnalyticsFieldSchema2, AIChatFieldSchema2, PageActionsFieldSchema2, LedgerAgentsConfigSchema2, LedgerConfigSchema2, MetadataStringArraySchema2, FeatureFlagMetadataSchema2, LinkTargetSchema22, CollapsedSchema2, LedgerAvailabilitySchema2, LedgerArtifactTypeSchema2, LedgerMetadataBaseSchema2, NodeMetadataFields2, ApiNodeMetadataFields2, LedgerSegmentDetailMetadataObjectSchema2, LedgerSegmentDetailMetadataSchema2, LedgerSegmentMetadataObjectSchema2, LedgerSegmentMetadataSchema2, LedgerMarkdownMetadataSchema2, LedgerRestMetadataSchema2, LedgerWebSocketMetadataSchema2, LedgerWebhookMetadataSchema2, LedgerGrpcMetadataSchema2, LedgerGraphQlMetadataSchema2, LedgerChangelogEntryMetadataSchema2, LedgerLinkMetadataSchema2, LedgerFileArtifactMetadataSchema2, LedgerStructuralRedirectKindSchema2, LedgerRedirectKindSchema2, LedgerRedirectMetadataSchema2, LedgerArtifactMetadataSchema2, LEDGER_ARTIFACT_METADATA_SCHEMAS2, NavRouteBaseSchema2, LedgerNavRouteSchema2, DocsPublishGitInputSchema2, DocsContentFieldsSchema2, LocaleEntrySchemaInternal2, LocaleEntrySchema2, DocsPublishInputSchemaInternal2, DocsPublishInputSchema2, LedgerPreviewRegisterInputSchemaInternal2, LedgerPreviewRegisterInputSchema2, LedgerPreviewRegisterResponseSchema2, docsLedgerContract2, CurrentVersionInputSchema2, CurrentPreviewInputSchema2, CurrentVersionResponseSchema2, ContentRefSchema2, SegmentDetailSchema2, SegmentSchema2, VersionMetadataInputSchema2, VersionMetadataResponseSchema2, PageContentInputSchema2, PageContentResponseSchema2, BatchPageContentInputSchema2, BatchPageContentItemSchema2, BatchPageContentResponseSchema2, NavInputSchema2, NavResponseSchema2, RouteContextInputSchema2, RouteContextResponseBaseSchema2, RouteContextResponseSchema2, TopLevelNavigationInputSchema2, TopLevelNavigationResponseSchema2, VersionSwitchTargetsInputSchema2, VersionSwitchTargetSchema2, VersionSwitchTargetsResponseSchema2, ApiDefinitionInputSchema2, ApiDefinitionResponseSchema2, PrunedApiDefinitionInputSchema2, PrunedApiDefinitionResponseSchema2, FileArtifactInputSchema2, FileArtifactResponseSchema2, PresignedFileDownloadInputSchema2, PresignedFileDownloadResponseSchema2, FileMetadataInputSchema2, FileMetadataResponseSchema2, docsLedgerReadContract2, GetSnapshotInputSchema2, SetSnapshotInputSchema2, GetDocumentsForBranchesInputSchema2, EditorDocumentSchema2, GetSnapshotResponseSchema2, GetDocumentsForBranchesResponseSchema2, editorSnapshotContract2, GeneratorLanguage, ReleaseType, GeneratorLanguageSchema2, ScriptSchema2, GeneratorScriptsSchema2, GeneratorTypeSchema2, ChangelogEntryTypeSchema2, ChangelogEntrySchema2, YankSchema2, ReleaseTypeSchema2, VersionRangeSchema2, GeneratorSchema2, GeneratorOutputSchema3, GetGeneratorByImageInputSchema2, GetGeneratorInputSchema2, GeneratorReleaseSchema2, GeneratorReleaseRequestSchema2, GetLatestGeneratorReleaseInputSchema2, GetGeneratorChangelogInputSchema2, ChangelogResponseSchema2, GetChangelogResponseSchema2, GetGeneratorReleaseInputSchema2, ListGeneratorReleasesInputSchema2, ListGeneratorReleasesResponseSchema2, CliReleaseSchema2, GetLatestCliReleaseInputSchema2, GetCliChangelogInputSchema2, GetMinCliForIrInputSchema2, UpsertCliReleaseInputSchema2, GetCliReleaseInputSchema2, ListCliReleasesInputSchema2, ListCliReleasesResponseSchema2, generatorsContract2, generatorVersionsContract2, generatorCliContract2, CheckRunSchema2, GithubRepositoryIdSchema2, RepositoryIdSchema2, BaseRepositorySchema2, SdkRepositorySchema2, FernConfigRepositorySchema2, FernRepositorySchema2, GithubUserSchema2, GithubTeamSchema2, PullRequestReviewerSchema2, PullRequestStateSchema2, PullRequestState, PullRequestSchema2, ListRepositoriesResponseSchema2, ListPullRequestsResponseSchema2, GetRepositoryInputSchema2, ListRepositoriesInputSchema2, DeleteRepositoryInputSchema2, GetPullRequestInputSchema2, ListPullRequestsInputSchema2, DeletePullRequestInputSchema2, gitContract2, PdfExportScopeSchema2, PdfExportOptionsV1Schema2, PdfExportOptionsSchema2, PdfExportTaskStatusSchema2, PdfExportTaskSchema2, ListPdfExportTasksResponseSchema2, PdfExportDownloadResponseSchema2, CreatePdfExportTaskInputSchema2, ListPdfExportTasksInputSchema2, GetPdfExportTaskInputSchema2, UpdatePdfExportTaskInputSchema2, GetPdfExportDownloadUrlInputSchema2, CleanupPdfExportsResponseSchema2, pdfExportContract2, LanguageEnumSchema2, VersionBumpEnumSchema2, ComputeSemanticVersionInputSchema2, ComputeSemanticVersionOutputSchema2, sdksContract2, SlugsInputSchema2, SlugEntrySchema2, MarkdownEntrySchema2, GetSlugEntriesResponseSchema2, GetMarkdownEntriesResponseSchema2, slugsContract2, TypeScriptSdkSchema2, PythonSdkSchema2, GoSdkSchema2, RubySdkSchema2, JavaSdkSchema2, CsharpSdkSchema2, BaseSnippetCreateSchema2, SdkSnippetsCreateSchema2, snippetsFactoryContract2, ParameterPayloadSchema2, AuthPayloadSchema2, CustomSnippetPayloadSchema2, snippetsContract2, SnippetRegistryEntrySchema2, RegisterInputSchema2, RegisterBatchInputSchema2, GetInputSchema2, EndpointSnippetTemplateSchema2, templatesContract2, GenerateTokenInputSchema2, RevokeTokenInputSchema2, GenerateTokenOutputSchema2, tokensContract2, StartDocsRegisterV1InputSchema, StartDocsRegisterV1ResponseSchema, FinishDocsRegisterV1InputSchema, docsV1WriteContract, PATH_OR_URL_METADATA_KEYS, LogoViewSchema, ThemeViewSchema, ColorsViewSchema, FontViewSchema, TypographyViewSchema, JsFileViewSchema, MetadataFileRefViewSchema, ConfigViewSchema, NAV_ICON_FILE_PREFIX, FileTokenTreeSchema, ConfigFileTokenViewSchema, SegmentDetailIconViewSchema, SegmentIconViewSchema, LEDGER_MANIFEST_SCHEMA_VERSION, LEDGER_SHARD_SCHEMA_VERSION, ManifestBlobRefSchema, ManifestSegmentSchema, ManifestNavRouteSchema, ManifestRouteBaseSchema, ManifestRouteSchema, ManifestPageSchema, ManifestApiDefSchema, ManifestFileSchema, LedgerShardFileSchema, LedgerConfigBlobSchema, LedgerChromeBlobSchema, LedgerSidebarBundleSchema, LedgerSidebarMapEntrySchema, LedgerLocaleIndexSchema, LedgerRouteShardSchema, LedgerPagesBlobSchema, LedgerPointerSegmentSchema, LedgerLocaleRoutingSchema, LedgerManifestSchema, LedgerSiteArtifactSchema, PutContentInputSchema, PutContentResponseSchema, PutFileInputSchema, FileResponseSchema, contentContract, filesContract, FERN_FILE_REF_KEY, SHA256_RE, THEME_NAME_RE, ThemeResponseSchema, ThemeListItemSchema, ThemeListResponseSchema, UpsertThemeBodySchema;
|
|
586220
586458
|
var init_orpc_client = __esm({
|
|
586221
|
-
"../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
586459
|
+
"../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.66-cc15e6c17a_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs"() {
|
|
586222
586460
|
"use strict";
|
|
586223
586461
|
init_dist5();
|
|
586224
586462
|
init_dist5();
|
|
@@ -586248,8 +586486,6 @@ var init_orpc_client = __esm({
|
|
|
586248
586486
|
init_fetch3();
|
|
586249
586487
|
init_dist7();
|
|
586250
586488
|
init_zod2();
|
|
586251
|
-
init_zod2();
|
|
586252
|
-
init_zod2();
|
|
586253
586489
|
init_dist5();
|
|
586254
586490
|
init_fetch3();
|
|
586255
586491
|
init_dist7();
|
|
@@ -586262,9 +586498,7 @@ var init_orpc_client = __esm({
|
|
|
586262
586498
|
init_fetch3();
|
|
586263
586499
|
init_dist7();
|
|
586264
586500
|
init_zod2();
|
|
586265
|
-
|
|
586266
|
-
init_fetch3();
|
|
586267
|
-
init_dist7();
|
|
586501
|
+
init_zod2();
|
|
586268
586502
|
init_zod2();
|
|
586269
586503
|
init_dist5();
|
|
586270
586504
|
init_fetch3();
|
|
@@ -586316,6 +586550,10 @@ var init_orpc_client = __esm({
|
|
|
586316
586550
|
init_fetch3();
|
|
586317
586551
|
init_dist7();
|
|
586318
586552
|
init_zod2();
|
|
586553
|
+
init_dist5();
|
|
586554
|
+
init_fetch3();
|
|
586555
|
+
init_dist7();
|
|
586556
|
+
init_zod2();
|
|
586319
586557
|
init_zod2();
|
|
586320
586558
|
init_zod2();
|
|
586321
586559
|
init_dist7();
|
|
@@ -586999,6 +587237,7 @@ var init_orpc_client = __esm({
|
|
|
586999
587237
|
RegisterExampleEndpointCallSchema2 = objectType({
|
|
587000
587238
|
description: stringType().nullish(),
|
|
587001
587239
|
name: stringType().nullish(),
|
|
587240
|
+
contentType: stringType().nullish(),
|
|
587002
587241
|
path: stringType(),
|
|
587003
587242
|
pathParameters: recordType(PropertyKeySchema2, unknownType()),
|
|
587004
587243
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -587186,6 +587425,7 @@ var init_orpc_client = __esm({
|
|
|
587186
587425
|
RegisterApiDefinitionSchema2 = objectType({
|
|
587187
587426
|
rootPackage: RegisterApiDefinitionPackageSchema2,
|
|
587188
587427
|
apiName: stringType().nullish(),
|
|
587428
|
+
specVersion: stringType().nullish(),
|
|
587189
587429
|
types: recordType(TypeIdSchema2, RegisterTypeDefinitionSchema2),
|
|
587190
587430
|
subpackages: recordType(SubpackageIdSchema3, RegisterApiDefinitionSubpackageSchema2),
|
|
587191
587431
|
auth: ApiAuthSchema4.nullish(),
|
|
@@ -587565,6 +587805,7 @@ var init_orpc_client = __esm({
|
|
|
587565
587805
|
path: stringType(),
|
|
587566
587806
|
responseStatusCode: numberType().int(),
|
|
587567
587807
|
name: stringType().nullish(),
|
|
587808
|
+
contentType: stringType().nullish(),
|
|
587568
587809
|
pathParameters: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
587569
587810
|
queryParameters: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
587570
587811
|
headers: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
@@ -587709,6 +587950,7 @@ var init_orpc_client = __esm({
|
|
|
587709
587950
|
LatestApiDefinitionSchema2 = objectType({
|
|
587710
587951
|
id: stringType(),
|
|
587711
587952
|
apiName: stringType().nullish(),
|
|
587953
|
+
specVersion: stringType().nullish(),
|
|
587712
587954
|
endpoints: recordType(EndpointIdSchema3, LatestEndpointDefinitionSchema2),
|
|
587713
587955
|
websockets: recordType(WebSocketIdSchema3, LatestWebSocketChannelSchema2),
|
|
587714
587956
|
webhooks: recordType(WebhookIdSchema3, LatestWebhookDefinitionSchema2),
|
|
@@ -587834,6 +588076,7 @@ var init_orpc_client = __esm({
|
|
|
587834
588076
|
ReadExampleEndpointCallSchema2 = objectType({
|
|
587835
588077
|
description: stringType().nullish(),
|
|
587836
588078
|
name: stringType().nullish(),
|
|
588079
|
+
contentType: stringType().nullish(),
|
|
587837
588080
|
path: stringType(),
|
|
587838
588081
|
pathParameters: recordType(PropertyKeySchema2, unknownType()),
|
|
587839
588082
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -587965,6 +588208,7 @@ var init_orpc_client = __esm({
|
|
|
587965
588208
|
ReadApiDefinitionSchema2 = objectType({
|
|
587966
588209
|
id: ApiDefinitionIdSchema3,
|
|
587967
588210
|
apiName: stringType().nullish(),
|
|
588211
|
+
specVersion: stringType().nullish(),
|
|
587968
588212
|
rootPackage: ReadApiDefinitionPackageSchema2,
|
|
587969
588213
|
types: recordType(TypeIdSchema2, ReadTypeDefinitionSchema2),
|
|
587970
588214
|
subpackages: recordType(SubpackageIdSchema3, ReadApiDefinitionSubpackageSchema2),
|
|
@@ -588081,6 +588325,7 @@ var init_orpc_client = __esm({
|
|
|
588081
588325
|
DbApiDefinitionSchema2 = objectType({
|
|
588082
588326
|
id: ApiDefinitionIdSchema3,
|
|
588083
588327
|
apiName: stringType().nullish(),
|
|
588328
|
+
specVersion: stringType().nullish(),
|
|
588084
588329
|
rootPackage: DbApiDefinitionPackageSchema2,
|
|
588085
588330
|
types: recordType(TypeIdSchema2, RegisterTypeDefinitionSchema2),
|
|
588086
588331
|
subpackages: recordType(SubpackageIdSchema3, DbApiDefinitionSubpackageSchema2),
|
|
@@ -588452,6 +588697,7 @@ var init_orpc_client = __esm({
|
|
|
588452
588697
|
objectType({ type: literalType("rem"), value: numberType() })
|
|
588453
588698
|
]);
|
|
588454
588699
|
TabsAlignmentSchema2 = enumType(["LEFT", "CENTER"]);
|
|
588700
|
+
ChangelogLayoutSchema2 = enumType(["timeline", "classic"]);
|
|
588455
588701
|
DocsLayoutConfigSchema2 = objectType({
|
|
588456
588702
|
pageWidth: PageWidthSizeConfigSchema2.optional(),
|
|
588457
588703
|
contentWidth: SizeConfigSchema2.optional(),
|
|
@@ -588465,7 +588711,8 @@ var init_orpc_client = __esm({
|
|
|
588465
588711
|
disableHeader: booleanType().optional(),
|
|
588466
588712
|
hideNavLinks: booleanType().optional(),
|
|
588467
588713
|
hideFeedback: booleanType().optional(),
|
|
588468
|
-
mobileToc: booleanType().optional()
|
|
588714
|
+
mobileToc: booleanType().optional(),
|
|
588715
|
+
changelogLayout: ChangelogLayoutSchema2.optional()
|
|
588469
588716
|
});
|
|
588470
588717
|
FooterNavConfigSchema2 = enumType(["default", "minimal"]);
|
|
588471
588718
|
DocsSidebarConfigSchema2 = enumType(["default", "minimal"]);
|
|
@@ -588479,7 +588726,7 @@ var init_orpc_client = __esm({
|
|
|
588479
588726
|
DocsTabsConfigSchema2 = unionType([DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2]);
|
|
588480
588727
|
DocsPageActionsConfigSchema2 = enumType(["default", "toolbar"]);
|
|
588481
588728
|
LanguageSwitcherConfigSchema2 = enumType(["default", "minimal"]);
|
|
588482
|
-
ProductSwitcherConfigSchema2 = enumType(["default", "toggle"]);
|
|
588729
|
+
ProductSwitcherConfigSchema2 = enumType(["default", "toggle", "tabs"]);
|
|
588483
588730
|
DocsThemeConfigSchema2 = objectType({
|
|
588484
588731
|
sidebar: DocsSidebarConfigSchema2.optional(),
|
|
588485
588732
|
body: DocsBodyConfigSchema2.optional(),
|
|
@@ -588613,7 +588860,10 @@ var init_orpc_client = __esm({
|
|
|
588613
588860
|
JsScriptStrategySchema2 = enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]);
|
|
588614
588861
|
JsRemoteConfigSchema2 = objectType({
|
|
588615
588862
|
url: UrlSchema22,
|
|
588616
|
-
strategy: JsScriptStrategySchema2.optional()
|
|
588863
|
+
strategy: JsScriptStrategySchema2.optional(),
|
|
588864
|
+
// When true, skip computing a Subresource Integrity (SRI) hash for this
|
|
588865
|
+
// remote script so it is rendered without an `integrity` attribute.
|
|
588866
|
+
disableSri: booleanType().optional()
|
|
588617
588867
|
});
|
|
588618
588868
|
JsFileConfigSchema2 = objectType({
|
|
588619
588869
|
fileId: FileIdSchema22,
|
|
@@ -588693,7 +588943,8 @@ var init_orpc_client = __esm({
|
|
|
588693
588943
|
model: AIModelSchema2.optional(),
|
|
588694
588944
|
systemPrompt: stringType().optional(),
|
|
588695
588945
|
location: arrayType(AIChatLocationSchema2).optional(),
|
|
588696
|
-
datasources: arrayType(AIChatDatasourceSchema2).optional()
|
|
588946
|
+
datasources: arrayType(AIChatDatasourceSchema2).optional(),
|
|
588947
|
+
maskPii: booleanType().optional()
|
|
588697
588948
|
});
|
|
588698
588949
|
PageDescriptionSourceSchema2 = enumType(["description", "subtitle"]);
|
|
588699
588950
|
AgentsConfigSchema2 = objectType({
|
|
@@ -588754,6 +589005,7 @@ var init_orpc_client = __esm({
|
|
|
588754
589005
|
cursor: booleanType().optional(),
|
|
588755
589006
|
claudeCode: booleanType().optional(),
|
|
588756
589007
|
vscode: booleanType().optional(),
|
|
589008
|
+
mcp: booleanType().optional(),
|
|
588757
589009
|
custom: arrayType(CustomPageActionSchema2).optional(),
|
|
588758
589010
|
skills: SkillsConfigSchema2.optional()
|
|
588759
589011
|
});
|
|
@@ -589060,335 +589312,6 @@ var init_orpc_client = __esm({
|
|
|
589060
589312
|
getDocsForDomainLegacy: oc.route({ method: "GET", path: "/load/{domain}" }).input(GetDocsForDomainLegacyInputSchema2).output(DocsDefinitionSchema3),
|
|
589061
589313
|
getDocsForDomain: oc.route({ method: "POST", path: "/load" }).input(GetDocsForDomainInputSchema2).output(DocsDefinitionSchema3)
|
|
589062
589314
|
};
|
|
589063
|
-
OrgIdSchema22 = stringType();
|
|
589064
|
-
FilePathSchema3 = stringType();
|
|
589065
|
-
DocsRegistrationIdSchema2 = stringType();
|
|
589066
|
-
HeightSchema22 = numberType();
|
|
589067
|
-
FileS3UploadUrlSchema2 = objectType({
|
|
589068
|
-
uploadUrl: stringType(),
|
|
589069
|
-
fileId: FileIdSchema22
|
|
589070
|
-
});
|
|
589071
|
-
StartDocsRegisterResponseSchema2 = objectType({
|
|
589072
|
-
docsRegistrationId: DocsRegistrationIdSchema2,
|
|
589073
|
-
uploadUrls: recordType(FilePathSchema3, FileS3UploadUrlSchema2),
|
|
589074
|
-
skippedFiles: arrayType(FilePathSchema3)
|
|
589075
|
-
});
|
|
589076
|
-
PageContentSchema22 = objectType({
|
|
589077
|
-
markdown: stringType(),
|
|
589078
|
-
editThisPageUrl: UrlSchema22.optional(),
|
|
589079
|
-
editThisPageLaunch: EditThisPageLaunchSchema2.optional(),
|
|
589080
|
-
rawMarkdown: stringType().optional()
|
|
589081
|
-
});
|
|
589082
|
-
NavigationNodeMetadataSchema22 = objectType({
|
|
589083
|
-
icon: stringType().optional(),
|
|
589084
|
-
hidden: booleanType().optional(),
|
|
589085
|
-
urlSlugOverride: stringType().optional(),
|
|
589086
|
-
fullSlug: arrayType(stringType()).optional()
|
|
589087
|
-
});
|
|
589088
|
-
PageMetadataSchema22 = objectType({
|
|
589089
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589090
|
-
id: PageIdSchema22,
|
|
589091
|
-
title: stringType()
|
|
589092
|
-
});
|
|
589093
|
-
LinkMetadataSchema22 = objectType({
|
|
589094
|
-
title: stringType(),
|
|
589095
|
-
icon: stringType().optional(),
|
|
589096
|
-
url: UrlSchema22,
|
|
589097
|
-
target: LinkTargetSchema3.optional()
|
|
589098
|
-
});
|
|
589099
|
-
ChangelogItemSchema22 = objectType({
|
|
589100
|
-
date: stringType(),
|
|
589101
|
-
pageId: PageIdSchema22,
|
|
589102
|
-
hidden: booleanType().optional(),
|
|
589103
|
-
tags: arrayType(stringType()).optional()
|
|
589104
|
-
});
|
|
589105
|
-
ChangelogSectionSchema22 = objectType({
|
|
589106
|
-
title: stringType().optional(),
|
|
589107
|
-
icon: stringType().optional(),
|
|
589108
|
-
hidden: booleanType().optional(),
|
|
589109
|
-
description: stringType().optional(),
|
|
589110
|
-
pageId: PageIdSchema22.optional(),
|
|
589111
|
-
items: arrayType(ChangelogItemSchema22),
|
|
589112
|
-
urlSlug: stringType(),
|
|
589113
|
-
fullSlug: arrayType(stringType()).optional()
|
|
589114
|
-
});
|
|
589115
|
-
ChangelogSectionV2Schema2 = objectType({
|
|
589116
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589117
|
-
title: stringType().optional(),
|
|
589118
|
-
description: stringType().optional(),
|
|
589119
|
-
pageId: PageIdSchema22.optional(),
|
|
589120
|
-
items: arrayType(ChangelogItemSchema22)
|
|
589121
|
-
});
|
|
589122
|
-
ChangelogSectionV3Schema22 = objectType({
|
|
589123
|
-
node: unknownType()
|
|
589124
|
-
});
|
|
589125
|
-
NavigationTabLinkSchema22 = objectType({
|
|
589126
|
-
title: stringType(),
|
|
589127
|
-
icon: stringType().optional(),
|
|
589128
|
-
url: UrlSchema22,
|
|
589129
|
-
target: LinkTargetSchema3.optional()
|
|
589130
|
-
});
|
|
589131
|
-
ApiNavigationConfigItemSchema32 = lazyType(
|
|
589132
|
-
() => discriminatedUnionType("type", [
|
|
589133
|
-
objectType({
|
|
589134
|
-
type: literalType("subpackage"),
|
|
589135
|
-
summaryPageId: PageIdSchema22.optional(),
|
|
589136
|
-
subpackageId: SubpackageIdSchema22,
|
|
589137
|
-
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589138
|
-
}),
|
|
589139
|
-
objectType({ type: literalType("endpointId"), value: EndpointIdSchema22 }),
|
|
589140
|
-
objectType({ type: literalType("websocketId"), value: WebSocketIdSchema22 }),
|
|
589141
|
-
objectType({ type: literalType("webhookId"), value: WebhookIdSchema22 }),
|
|
589142
|
-
objectType({ type: literalType("page"), ...PageMetadataSchema22.shape })
|
|
589143
|
-
])
|
|
589144
|
-
);
|
|
589145
|
-
ApiNavigationConfigSubpackageSchema2 = objectType({
|
|
589146
|
-
summaryPageId: PageIdSchema22.optional(),
|
|
589147
|
-
subpackageId: SubpackageIdSchema22,
|
|
589148
|
-
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589149
|
-
});
|
|
589150
|
-
ApiNavigationConfigRootSchema42 = objectType({
|
|
589151
|
-
summaryPageId: PageIdSchema22.optional(),
|
|
589152
|
-
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589153
|
-
});
|
|
589154
|
-
ApiSectionSchema22 = objectType({
|
|
589155
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589156
|
-
title: stringType(),
|
|
589157
|
-
api: ApiDefinitionIdSchema22,
|
|
589158
|
-
artifacts: objectType({
|
|
589159
|
-
sdks: arrayType(
|
|
589160
|
-
discriminatedUnionType("type", [
|
|
589161
|
-
objectType({
|
|
589162
|
-
type: literalType("npm"),
|
|
589163
|
-
packageName: stringType(),
|
|
589164
|
-
githubRepoName: stringType(),
|
|
589165
|
-
version: stringType()
|
|
589166
|
-
}),
|
|
589167
|
-
objectType({
|
|
589168
|
-
type: literalType("maven"),
|
|
589169
|
-
coordinate: stringType(),
|
|
589170
|
-
githubRepoName: stringType(),
|
|
589171
|
-
version: stringType()
|
|
589172
|
-
}),
|
|
589173
|
-
objectType({
|
|
589174
|
-
type: literalType("pypi"),
|
|
589175
|
-
packageName: stringType(),
|
|
589176
|
-
githubRepoName: stringType(),
|
|
589177
|
-
version: stringType()
|
|
589178
|
-
})
|
|
589179
|
-
])
|
|
589180
|
-
),
|
|
589181
|
-
postman: objectType({
|
|
589182
|
-
url: UrlSchema22,
|
|
589183
|
-
githubRepoName: stringType().optional()
|
|
589184
|
-
}).optional()
|
|
589185
|
-
}).optional(),
|
|
589186
|
-
skipUrlSlug: booleanType().optional(),
|
|
589187
|
-
showErrors: booleanType().optional(),
|
|
589188
|
-
changelog: ChangelogSectionSchema22.optional(),
|
|
589189
|
-
changelogV2: ChangelogSectionV2Schema2.optional(),
|
|
589190
|
-
navigation: ApiNavigationConfigRootSchema42.optional(),
|
|
589191
|
-
longScrolling: booleanType().optional(),
|
|
589192
|
-
flattened: booleanType().optional()
|
|
589193
|
-
});
|
|
589194
|
-
ApiSectionV2Schema22 = objectType({
|
|
589195
|
-
node: unknownType()
|
|
589196
|
-
});
|
|
589197
|
-
DocsSectionSchema22 = lazyType(
|
|
589198
|
-
() => objectType({
|
|
589199
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589200
|
-
title: stringType(),
|
|
589201
|
-
items: arrayType(NavigationItemSchema22),
|
|
589202
|
-
collapsed: unionType([booleanType(), literalType("open-by-default")]).optional(),
|
|
589203
|
-
collapsible: booleanType().optional(),
|
|
589204
|
-
collapsedByDefault: booleanType().optional(),
|
|
589205
|
-
skipUrlSlug: booleanType().optional(),
|
|
589206
|
-
overviewPageId: PageIdSchema22.optional()
|
|
589207
|
-
})
|
|
589208
|
-
);
|
|
589209
|
-
NavigationItemSchema22 = lazyType(
|
|
589210
|
-
() => discriminatedUnionType("type", [
|
|
589211
|
-
objectType({ type: literalType("page"), ...PageMetadataSchema22.shape }),
|
|
589212
|
-
objectType({ type: literalType("api"), ...ApiSectionSchema22.shape }),
|
|
589213
|
-
objectType({ type: literalType("apiV2"), ...ApiSectionV2Schema22.shape }),
|
|
589214
|
-
objectType({
|
|
589215
|
-
type: literalType("section"),
|
|
589216
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589217
|
-
title: stringType(),
|
|
589218
|
-
items: arrayType(NavigationItemSchema22),
|
|
589219
|
-
collapsed: unionType([booleanType(), literalType("open-by-default")]).optional(),
|
|
589220
|
-
collapsible: booleanType().optional(),
|
|
589221
|
-
collapsedByDefault: booleanType().optional(),
|
|
589222
|
-
skipUrlSlug: booleanType().optional(),
|
|
589223
|
-
overviewPageId: PageIdSchema22.optional()
|
|
589224
|
-
}),
|
|
589225
|
-
objectType({ type: literalType("link"), ...LinkMetadataSchema22.shape }),
|
|
589226
|
-
objectType({ type: literalType("changelog"), ...ChangelogSectionV2Schema2.shape }),
|
|
589227
|
-
objectType({ type: literalType("changelogV3"), ...ChangelogSectionV3Schema22.shape })
|
|
589228
|
-
])
|
|
589229
|
-
);
|
|
589230
|
-
NavigationTabGroupSchema22 = objectType({
|
|
589231
|
-
...NavigationNodeMetadataSchema22.shape,
|
|
589232
|
-
title: stringType(),
|
|
589233
|
-
items: arrayType(NavigationItemSchema22),
|
|
589234
|
-
skipUrlSlug: booleanType().optional()
|
|
589235
|
-
});
|
|
589236
|
-
NavigationTabSchema22 = unionType([NavigationTabGroupSchema22, NavigationTabLinkSchema22]);
|
|
589237
|
-
NavigationTabV2Schema3 = discriminatedUnionType("type", [
|
|
589238
|
-
objectType({ type: literalType("group"), ...NavigationTabGroupSchema22.shape }),
|
|
589239
|
-
objectType({ type: literalType("link"), ...NavigationTabLinkSchema22.shape }),
|
|
589240
|
-
objectType({ type: literalType("changelog"), ...ChangelogSectionV2Schema2.shape }),
|
|
589241
|
-
objectType({ type: literalType("changelogV3"), ...ChangelogSectionV3Schema22.shape })
|
|
589242
|
-
]);
|
|
589243
|
-
UnversionedTabbedNavigationConfigSchema22 = objectType({
|
|
589244
|
-
tabs: arrayType(NavigationTabSchema22).optional(),
|
|
589245
|
-
tabsV2: arrayType(NavigationTabV2Schema3).optional(),
|
|
589246
|
-
landingPage: PageMetadataSchema22.optional()
|
|
589247
|
-
});
|
|
589248
|
-
UnversionedUntabbedNavigationConfigSchema22 = objectType({
|
|
589249
|
-
items: arrayType(NavigationItemSchema22),
|
|
589250
|
-
landingPage: PageMetadataSchema22.optional()
|
|
589251
|
-
});
|
|
589252
|
-
UnversionedNavigationConfigSchema22 = unionType([
|
|
589253
|
-
UnversionedTabbedNavigationConfigSchema22,
|
|
589254
|
-
UnversionedUntabbedNavigationConfigSchema22
|
|
589255
|
-
]);
|
|
589256
|
-
VersionedNavigationConfigDataSchema22 = objectType({
|
|
589257
|
-
version: VersionIdSchema22,
|
|
589258
|
-
urlSlugOverride: stringType().optional(),
|
|
589259
|
-
availability: AvailabilitySchema23.optional(),
|
|
589260
|
-
config: UnversionedNavigationConfigSchema22
|
|
589261
|
-
});
|
|
589262
|
-
VersionedNavigationConfigSchema22 = objectType({
|
|
589263
|
-
versions: arrayType(VersionedNavigationConfigDataSchema22)
|
|
589264
|
-
});
|
|
589265
|
-
NavigationConfigSchema22 = unionType([UnversionedNavigationConfigSchema22, VersionedNavigationConfigSchema22]);
|
|
589266
|
-
ThemeConfigSchema22 = objectType({
|
|
589267
|
-
logo: FileIdSchema22.optional(),
|
|
589268
|
-
backgroundImage: FileIdSchema22.optional(),
|
|
589269
|
-
accentPrimary: RgbaColorSchema2,
|
|
589270
|
-
background: RgbaColorSchema2.optional(),
|
|
589271
|
-
border: RgbaColorSchema2.optional(),
|
|
589272
|
-
sidebarBackground: RgbaColorSchema2.optional(),
|
|
589273
|
-
headerBackground: RgbaColorSchema2.optional(),
|
|
589274
|
-
cardBackground: RgbaColorSchema2.optional(),
|
|
589275
|
-
accent1: RgbaColorSchema2.optional(),
|
|
589276
|
-
accent2: RgbaColorSchema2.optional(),
|
|
589277
|
-
accent3: RgbaColorSchema2.optional(),
|
|
589278
|
-
accent4: RgbaColorSchema2.optional(),
|
|
589279
|
-
accent5: RgbaColorSchema2.optional(),
|
|
589280
|
-
accent6: RgbaColorSchema2.optional(),
|
|
589281
|
-
accent7: RgbaColorSchema2.optional(),
|
|
589282
|
-
accent8: RgbaColorSchema2.optional(),
|
|
589283
|
-
accent9: RgbaColorSchema2.optional(),
|
|
589284
|
-
accent10: RgbaColorSchema2.optional(),
|
|
589285
|
-
accent11: RgbaColorSchema2.optional(),
|
|
589286
|
-
accent12: RgbaColorSchema2.optional()
|
|
589287
|
-
});
|
|
589288
|
-
DarkAndLightModeConfigSchema22 = objectType({
|
|
589289
|
-
dark: ThemeConfigSchema22,
|
|
589290
|
-
light: ThemeConfigSchema22
|
|
589291
|
-
});
|
|
589292
|
-
ColorsConfigV3Schema22 = discriminatedUnionType("type", [
|
|
589293
|
-
objectType({ type: literalType("dark"), ...ThemeConfigSchema22.shape }),
|
|
589294
|
-
objectType({ type: literalType("light"), ...ThemeConfigSchema22.shape }),
|
|
589295
|
-
objectType({ type: literalType("darkAndLight"), ...DarkAndLightModeConfigSchema22.shape })
|
|
589296
|
-
]);
|
|
589297
|
-
DocsConfigSchema22 = objectType({
|
|
589298
|
-
title: stringType().optional(),
|
|
589299
|
-
defaultLanguage: ProgrammingLanguageSchema2.optional(),
|
|
589300
|
-
languages: arrayType(LanguageSchema2).optional(),
|
|
589301
|
-
translations: DocsTranslationsConfigSchema2.optional(),
|
|
589302
|
-
announcement: objectType({ text: stringType() }).optional(),
|
|
589303
|
-
navigation: NavigationConfigSchema22.optional(),
|
|
589304
|
-
root: custom2().optional(),
|
|
589305
|
-
navbarLinks: arrayType(NavbarLinkSchema3).optional(),
|
|
589306
|
-
footerLinks: arrayType(FooterLinkSchema2).optional(),
|
|
589307
|
-
hideNavLinks: booleanType().optional(),
|
|
589308
|
-
logoHeight: HeightSchema22.optional(),
|
|
589309
|
-
logoHref: UrlSchema22.optional(),
|
|
589310
|
-
logoRightText: stringType().optional(),
|
|
589311
|
-
favicon: FileIdSchema22.optional(),
|
|
589312
|
-
agents: AgentsConfigSchema2.optional(),
|
|
589313
|
-
metadata: MetadataConfigSchema3.optional(),
|
|
589314
|
-
redirects: arrayType(RedirectConfigSchema3).optional(),
|
|
589315
|
-
colorsV3: ColorsConfigV3Schema22.optional(),
|
|
589316
|
-
layout: DocsLayoutConfigSchema2.optional(),
|
|
589317
|
-
theme: DocsThemeConfigSchema2.optional(),
|
|
589318
|
-
globalTheme: stringType().optional(),
|
|
589319
|
-
settings: DocsSettingsConfigSchema3.optional(),
|
|
589320
|
-
typographyV2: DocsTypographyConfigV2Schema2.optional(),
|
|
589321
|
-
analyticsConfig: AnalyticsConfigSchema3.optional(),
|
|
589322
|
-
integrations: IntegrationsConfigSchema3.optional(),
|
|
589323
|
-
css: CssConfigSchema3.optional(),
|
|
589324
|
-
js: JsConfigSchema3.optional(),
|
|
589325
|
-
aiChatConfig: AIChatConfigSchema2.optional(),
|
|
589326
|
-
pageActions: PageActionsConfigSchema3.optional(),
|
|
589327
|
-
editThisPageLaunch: EditThisPageLaunchSchema2.optional(),
|
|
589328
|
-
header: stringType().optional(),
|
|
589329
|
-
footer: stringType().optional(),
|
|
589330
|
-
backgroundImage: FileIdSchema22.optional(),
|
|
589331
|
-
logoV2: ThemedFileIdSchema2.optional(),
|
|
589332
|
-
logo: FileIdSchema22.optional(),
|
|
589333
|
-
colors: ColorsConfigSchema2.optional(),
|
|
589334
|
-
colorsV2: ColorsConfigV2Schema2.optional(),
|
|
589335
|
-
typography: DocsTypographyConfigSchema2.optional()
|
|
589336
|
-
});
|
|
589337
|
-
DocsDefinitionSchema22 = objectType({
|
|
589338
|
-
pages: recordType(PageIdSchema22, PageContentSchema22),
|
|
589339
|
-
config: DocsConfigSchema22,
|
|
589340
|
-
jsFiles: recordType(stringType(), stringType()).optional()
|
|
589341
|
-
});
|
|
589342
|
-
NpmPackageSchema22 = objectType({
|
|
589343
|
-
packageName: stringType(),
|
|
589344
|
-
githubRepoName: stringType(),
|
|
589345
|
-
version: stringType()
|
|
589346
|
-
});
|
|
589347
|
-
MavenPackageSchema22 = objectType({
|
|
589348
|
-
coordinate: stringType(),
|
|
589349
|
-
githubRepoName: stringType(),
|
|
589350
|
-
version: stringType()
|
|
589351
|
-
});
|
|
589352
|
-
PypiPackageSchema22 = objectType({
|
|
589353
|
-
packageName: stringType(),
|
|
589354
|
-
githubRepoName: stringType(),
|
|
589355
|
-
version: stringType()
|
|
589356
|
-
});
|
|
589357
|
-
PublishedSdkSchema22 = discriminatedUnionType("type", [
|
|
589358
|
-
objectType({ type: literalType("npm"), ...NpmPackageSchema22.shape }),
|
|
589359
|
-
objectType({ type: literalType("maven"), ...MavenPackageSchema22.shape }),
|
|
589360
|
-
objectType({ type: literalType("pypi"), ...PypiPackageSchema22.shape })
|
|
589361
|
-
]);
|
|
589362
|
-
PublishedPostmanCollectionSchema22 = objectType({
|
|
589363
|
-
url: UrlSchema22,
|
|
589364
|
-
githubRepoName: stringType().optional()
|
|
589365
|
-
});
|
|
589366
|
-
ApiArtifactsSchema22 = objectType({
|
|
589367
|
-
sdks: arrayType(PublishedSdkSchema22),
|
|
589368
|
-
postman: PublishedPostmanCollectionSchema22.optional()
|
|
589369
|
-
});
|
|
589370
|
-
InvalidCustomDomainErrorBodySchema2 = objectType({
|
|
589371
|
-
overlappingDomains: arrayType(arrayType(stringType()))
|
|
589372
|
-
});
|
|
589373
|
-
OverlappingCustomDomainsSchema2 = arrayType(stringType());
|
|
589374
|
-
StartDocsRegisterV1InputSchema2 = objectType({
|
|
589375
|
-
orgId: stringType(),
|
|
589376
|
-
domain: stringType(),
|
|
589377
|
-
filepaths: arrayType(stringType())
|
|
589378
|
-
});
|
|
589379
|
-
StartDocsRegisterV1ResponseSchema2 = objectType({
|
|
589380
|
-
docsRegistrationId: stringType(),
|
|
589381
|
-
uploadUrls: recordType(stringType(), FileS3UploadUrlSchema2),
|
|
589382
|
-
skippedFiles: arrayType(stringType())
|
|
589383
|
-
});
|
|
589384
|
-
FinishDocsRegisterV1InputSchema2 = objectType({
|
|
589385
|
-
docsRegistrationId: stringType(),
|
|
589386
|
-
docsDefinition: unknownType()
|
|
589387
|
-
});
|
|
589388
|
-
docsV1WriteContract2 = {
|
|
589389
|
-
startDocsRegister: oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema2).output(StartDocsRegisterV1ResponseSchema2),
|
|
589390
|
-
finishDocsRegister: oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema2).output(voidType())
|
|
589391
|
-
};
|
|
589392
589315
|
ALLOWED_HOSTNAMES2 = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
589393
589316
|
GithubUrlSchema2 = stringType().url().describe(
|
|
589394
589317
|
"HTTPS URL of a GitHub or GitLab repository. Currently only github.com and gitlab.com are supported. Must match the pattern https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo>."
|
|
@@ -589498,6 +589421,18 @@ var init_orpc_client = __esm({
|
|
|
589498
589421
|
GetDocsConfigByIdInputSchema2 = objectType({
|
|
589499
589422
|
docsConfigId: stringType()
|
|
589500
589423
|
});
|
|
589424
|
+
GetSiteMetricsInputSchema2 = objectType({
|
|
589425
|
+
url: stringType()
|
|
589426
|
+
});
|
|
589427
|
+
SiteMetricsSchema2 = objectType({
|
|
589428
|
+
orgId: stringType().optional(),
|
|
589429
|
+
domain: stringType(),
|
|
589430
|
+
basepath: stringType().optional(),
|
|
589431
|
+
storageType: enumType(["ledger", "legacy"]),
|
|
589432
|
+
pages: numberType(),
|
|
589433
|
+
endpoints: numberType(),
|
|
589434
|
+
apiSpecs: numberType()
|
|
589435
|
+
});
|
|
589501
589436
|
DocsDefinitionField2 = {
|
|
589502
589437
|
BaseUrl: "BASE_URL",
|
|
589503
589438
|
FilesV2: "FILES_V2",
|
|
@@ -589536,10 +589471,322 @@ var init_orpc_client = __esm({
|
|
|
589536
589471
|
getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema2).output(LoadDocsForUrlResponseSchema2),
|
|
589537
589472
|
listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema2).output(ListAllDocsUrlsResponseSchema2),
|
|
589538
589473
|
getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema2).output(GetDocsConfigByIdResponseSchema2),
|
|
589474
|
+
getSiteMetrics: oc.route({ method: "POST", path: "/admin/site-metrics" }).input(GetSiteMetricsInputSchema2).output(SiteMetricsSchema2),
|
|
589539
589475
|
prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(voidType()),
|
|
589540
589476
|
ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(voidType()),
|
|
589541
589477
|
getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(voidType())
|
|
589542
589478
|
};
|
|
589479
|
+
OrgIdSchema22 = stringType();
|
|
589480
|
+
FilePathSchema3 = stringType();
|
|
589481
|
+
DocsRegistrationIdSchema2 = stringType();
|
|
589482
|
+
HeightSchema22 = numberType();
|
|
589483
|
+
FileS3UploadUrlSchema2 = objectType({
|
|
589484
|
+
uploadUrl: stringType(),
|
|
589485
|
+
fileId: FileIdSchema22
|
|
589486
|
+
});
|
|
589487
|
+
StartDocsRegisterResponseSchema2 = objectType({
|
|
589488
|
+
docsRegistrationId: DocsRegistrationIdSchema2,
|
|
589489
|
+
uploadUrls: recordType(FilePathSchema3, FileS3UploadUrlSchema2),
|
|
589490
|
+
skippedFiles: arrayType(FilePathSchema3)
|
|
589491
|
+
});
|
|
589492
|
+
PageContentSchema22 = objectType({
|
|
589493
|
+
markdown: stringType(),
|
|
589494
|
+
editThisPageUrl: UrlSchema22.optional(),
|
|
589495
|
+
editThisPageLaunch: EditThisPageLaunchSchema2.optional(),
|
|
589496
|
+
rawMarkdown: stringType().optional()
|
|
589497
|
+
});
|
|
589498
|
+
NavigationNodeMetadataSchema22 = objectType({
|
|
589499
|
+
icon: stringType().optional(),
|
|
589500
|
+
hidden: booleanType().optional(),
|
|
589501
|
+
urlSlugOverride: stringType().optional(),
|
|
589502
|
+
fullSlug: arrayType(stringType()).optional()
|
|
589503
|
+
});
|
|
589504
|
+
PageMetadataSchema22 = objectType({
|
|
589505
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589506
|
+
id: PageIdSchema22,
|
|
589507
|
+
title: stringType()
|
|
589508
|
+
});
|
|
589509
|
+
LinkMetadataSchema22 = objectType({
|
|
589510
|
+
title: stringType(),
|
|
589511
|
+
icon: stringType().optional(),
|
|
589512
|
+
url: UrlSchema22,
|
|
589513
|
+
target: LinkTargetSchema3.optional()
|
|
589514
|
+
});
|
|
589515
|
+
ChangelogItemSchema22 = objectType({
|
|
589516
|
+
date: stringType(),
|
|
589517
|
+
pageId: PageIdSchema22,
|
|
589518
|
+
hidden: booleanType().optional(),
|
|
589519
|
+
tags: arrayType(stringType()).optional()
|
|
589520
|
+
});
|
|
589521
|
+
ChangelogSectionSchema22 = objectType({
|
|
589522
|
+
title: stringType().optional(),
|
|
589523
|
+
icon: stringType().optional(),
|
|
589524
|
+
hidden: booleanType().optional(),
|
|
589525
|
+
description: stringType().optional(),
|
|
589526
|
+
pageId: PageIdSchema22.optional(),
|
|
589527
|
+
items: arrayType(ChangelogItemSchema22),
|
|
589528
|
+
urlSlug: stringType(),
|
|
589529
|
+
fullSlug: arrayType(stringType()).optional()
|
|
589530
|
+
});
|
|
589531
|
+
ChangelogSectionV2Schema2 = objectType({
|
|
589532
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589533
|
+
title: stringType().optional(),
|
|
589534
|
+
description: stringType().optional(),
|
|
589535
|
+
pageId: PageIdSchema22.optional(),
|
|
589536
|
+
items: arrayType(ChangelogItemSchema22)
|
|
589537
|
+
});
|
|
589538
|
+
ChangelogSectionV3Schema22 = objectType({
|
|
589539
|
+
node: unknownType()
|
|
589540
|
+
});
|
|
589541
|
+
NavigationTabLinkSchema22 = objectType({
|
|
589542
|
+
title: stringType(),
|
|
589543
|
+
icon: stringType().optional(),
|
|
589544
|
+
url: UrlSchema22,
|
|
589545
|
+
target: LinkTargetSchema3.optional()
|
|
589546
|
+
});
|
|
589547
|
+
ApiNavigationConfigItemSchema32 = lazyType(
|
|
589548
|
+
() => discriminatedUnionType("type", [
|
|
589549
|
+
objectType({
|
|
589550
|
+
type: literalType("subpackage"),
|
|
589551
|
+
summaryPageId: PageIdSchema22.optional(),
|
|
589552
|
+
subpackageId: SubpackageIdSchema22,
|
|
589553
|
+
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589554
|
+
}),
|
|
589555
|
+
objectType({ type: literalType("endpointId"), value: EndpointIdSchema22 }),
|
|
589556
|
+
objectType({ type: literalType("websocketId"), value: WebSocketIdSchema22 }),
|
|
589557
|
+
objectType({ type: literalType("webhookId"), value: WebhookIdSchema22 }),
|
|
589558
|
+
objectType({ type: literalType("page"), ...PageMetadataSchema22.shape })
|
|
589559
|
+
])
|
|
589560
|
+
);
|
|
589561
|
+
ApiNavigationConfigSubpackageSchema2 = objectType({
|
|
589562
|
+
summaryPageId: PageIdSchema22.optional(),
|
|
589563
|
+
subpackageId: SubpackageIdSchema22,
|
|
589564
|
+
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589565
|
+
});
|
|
589566
|
+
ApiNavigationConfigRootSchema42 = objectType({
|
|
589567
|
+
summaryPageId: PageIdSchema22.optional(),
|
|
589568
|
+
items: arrayType(ApiNavigationConfigItemSchema32)
|
|
589569
|
+
});
|
|
589570
|
+
ApiSectionSchema22 = objectType({
|
|
589571
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589572
|
+
title: stringType(),
|
|
589573
|
+
api: ApiDefinitionIdSchema22,
|
|
589574
|
+
artifacts: objectType({
|
|
589575
|
+
sdks: arrayType(
|
|
589576
|
+
discriminatedUnionType("type", [
|
|
589577
|
+
objectType({
|
|
589578
|
+
type: literalType("npm"),
|
|
589579
|
+
packageName: stringType(),
|
|
589580
|
+
githubRepoName: stringType(),
|
|
589581
|
+
version: stringType()
|
|
589582
|
+
}),
|
|
589583
|
+
objectType({
|
|
589584
|
+
type: literalType("maven"),
|
|
589585
|
+
coordinate: stringType(),
|
|
589586
|
+
githubRepoName: stringType(),
|
|
589587
|
+
version: stringType()
|
|
589588
|
+
}),
|
|
589589
|
+
objectType({
|
|
589590
|
+
type: literalType("pypi"),
|
|
589591
|
+
packageName: stringType(),
|
|
589592
|
+
githubRepoName: stringType(),
|
|
589593
|
+
version: stringType()
|
|
589594
|
+
})
|
|
589595
|
+
])
|
|
589596
|
+
),
|
|
589597
|
+
postman: objectType({
|
|
589598
|
+
url: UrlSchema22,
|
|
589599
|
+
githubRepoName: stringType().optional()
|
|
589600
|
+
}).optional()
|
|
589601
|
+
}).optional(),
|
|
589602
|
+
skipUrlSlug: booleanType().optional(),
|
|
589603
|
+
showErrors: booleanType().optional(),
|
|
589604
|
+
changelog: ChangelogSectionSchema22.optional(),
|
|
589605
|
+
changelogV2: ChangelogSectionV2Schema2.optional(),
|
|
589606
|
+
navigation: ApiNavigationConfigRootSchema42.optional(),
|
|
589607
|
+
longScrolling: booleanType().optional(),
|
|
589608
|
+
flattened: booleanType().optional()
|
|
589609
|
+
});
|
|
589610
|
+
ApiSectionV2Schema22 = objectType({
|
|
589611
|
+
node: unknownType()
|
|
589612
|
+
});
|
|
589613
|
+
DocsSectionSchema22 = lazyType(
|
|
589614
|
+
() => objectType({
|
|
589615
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589616
|
+
title: stringType(),
|
|
589617
|
+
items: arrayType(NavigationItemSchema22),
|
|
589618
|
+
collapsed: unionType([booleanType(), literalType("open-by-default")]).optional(),
|
|
589619
|
+
collapsible: booleanType().optional(),
|
|
589620
|
+
collapsedByDefault: booleanType().optional(),
|
|
589621
|
+
skipUrlSlug: booleanType().optional(),
|
|
589622
|
+
overviewPageId: PageIdSchema22.optional()
|
|
589623
|
+
})
|
|
589624
|
+
);
|
|
589625
|
+
NavigationItemSchema22 = lazyType(
|
|
589626
|
+
() => discriminatedUnionType("type", [
|
|
589627
|
+
objectType({ type: literalType("page"), ...PageMetadataSchema22.shape }),
|
|
589628
|
+
objectType({ type: literalType("api"), ...ApiSectionSchema22.shape }),
|
|
589629
|
+
objectType({ type: literalType("apiV2"), ...ApiSectionV2Schema22.shape }),
|
|
589630
|
+
objectType({
|
|
589631
|
+
type: literalType("section"),
|
|
589632
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589633
|
+
title: stringType(),
|
|
589634
|
+
items: arrayType(NavigationItemSchema22),
|
|
589635
|
+
collapsed: unionType([booleanType(), literalType("open-by-default")]).optional(),
|
|
589636
|
+
collapsible: booleanType().optional(),
|
|
589637
|
+
collapsedByDefault: booleanType().optional(),
|
|
589638
|
+
skipUrlSlug: booleanType().optional(),
|
|
589639
|
+
overviewPageId: PageIdSchema22.optional()
|
|
589640
|
+
}),
|
|
589641
|
+
objectType({ type: literalType("link"), ...LinkMetadataSchema22.shape }),
|
|
589642
|
+
objectType({ type: literalType("changelog"), ...ChangelogSectionV2Schema2.shape }),
|
|
589643
|
+
objectType({ type: literalType("changelogV3"), ...ChangelogSectionV3Schema22.shape })
|
|
589644
|
+
])
|
|
589645
|
+
);
|
|
589646
|
+
NavigationTabGroupSchema22 = objectType({
|
|
589647
|
+
...NavigationNodeMetadataSchema22.shape,
|
|
589648
|
+
title: stringType(),
|
|
589649
|
+
items: arrayType(NavigationItemSchema22),
|
|
589650
|
+
skipUrlSlug: booleanType().optional()
|
|
589651
|
+
});
|
|
589652
|
+
NavigationTabSchema22 = unionType([NavigationTabGroupSchema22, NavigationTabLinkSchema22]);
|
|
589653
|
+
NavigationTabV2Schema3 = discriminatedUnionType("type", [
|
|
589654
|
+
objectType({ type: literalType("group"), ...NavigationTabGroupSchema22.shape }),
|
|
589655
|
+
objectType({ type: literalType("link"), ...NavigationTabLinkSchema22.shape }),
|
|
589656
|
+
objectType({ type: literalType("changelog"), ...ChangelogSectionV2Schema2.shape }),
|
|
589657
|
+
objectType({ type: literalType("changelogV3"), ...ChangelogSectionV3Schema22.shape })
|
|
589658
|
+
]);
|
|
589659
|
+
UnversionedTabbedNavigationConfigSchema22 = objectType({
|
|
589660
|
+
tabs: arrayType(NavigationTabSchema22).optional(),
|
|
589661
|
+
tabsV2: arrayType(NavigationTabV2Schema3).optional(),
|
|
589662
|
+
landingPage: PageMetadataSchema22.optional()
|
|
589663
|
+
});
|
|
589664
|
+
UnversionedUntabbedNavigationConfigSchema22 = objectType({
|
|
589665
|
+
items: arrayType(NavigationItemSchema22),
|
|
589666
|
+
landingPage: PageMetadataSchema22.optional()
|
|
589667
|
+
});
|
|
589668
|
+
UnversionedNavigationConfigSchema22 = unionType([
|
|
589669
|
+
UnversionedTabbedNavigationConfigSchema22,
|
|
589670
|
+
UnversionedUntabbedNavigationConfigSchema22
|
|
589671
|
+
]);
|
|
589672
|
+
VersionedNavigationConfigDataSchema22 = objectType({
|
|
589673
|
+
version: VersionIdSchema22,
|
|
589674
|
+
urlSlugOverride: stringType().optional(),
|
|
589675
|
+
availability: AvailabilitySchema23.optional(),
|
|
589676
|
+
config: UnversionedNavigationConfigSchema22
|
|
589677
|
+
});
|
|
589678
|
+
VersionedNavigationConfigSchema22 = objectType({
|
|
589679
|
+
versions: arrayType(VersionedNavigationConfigDataSchema22)
|
|
589680
|
+
});
|
|
589681
|
+
NavigationConfigSchema22 = unionType([UnversionedNavigationConfigSchema22, VersionedNavigationConfigSchema22]);
|
|
589682
|
+
ThemeConfigSchema22 = objectType({
|
|
589683
|
+
logo: FileIdSchema22.optional(),
|
|
589684
|
+
backgroundImage: FileIdSchema22.optional(),
|
|
589685
|
+
accentPrimary: RgbaColorSchema2,
|
|
589686
|
+
background: RgbaColorSchema2.optional(),
|
|
589687
|
+
border: RgbaColorSchema2.optional(),
|
|
589688
|
+
sidebarBackground: RgbaColorSchema2.optional(),
|
|
589689
|
+
headerBackground: RgbaColorSchema2.optional(),
|
|
589690
|
+
cardBackground: RgbaColorSchema2.optional(),
|
|
589691
|
+
accent1: RgbaColorSchema2.optional(),
|
|
589692
|
+
accent2: RgbaColorSchema2.optional(),
|
|
589693
|
+
accent3: RgbaColorSchema2.optional(),
|
|
589694
|
+
accent4: RgbaColorSchema2.optional(),
|
|
589695
|
+
accent5: RgbaColorSchema2.optional(),
|
|
589696
|
+
accent6: RgbaColorSchema2.optional(),
|
|
589697
|
+
accent7: RgbaColorSchema2.optional(),
|
|
589698
|
+
accent8: RgbaColorSchema2.optional(),
|
|
589699
|
+
accent9: RgbaColorSchema2.optional(),
|
|
589700
|
+
accent10: RgbaColorSchema2.optional(),
|
|
589701
|
+
accent11: RgbaColorSchema2.optional(),
|
|
589702
|
+
accent12: RgbaColorSchema2.optional()
|
|
589703
|
+
});
|
|
589704
|
+
DarkAndLightModeConfigSchema22 = objectType({
|
|
589705
|
+
dark: ThemeConfigSchema22,
|
|
589706
|
+
light: ThemeConfigSchema22
|
|
589707
|
+
});
|
|
589708
|
+
ColorsConfigV3Schema22 = discriminatedUnionType("type", [
|
|
589709
|
+
objectType({ type: literalType("dark"), ...ThemeConfigSchema22.shape }),
|
|
589710
|
+
objectType({ type: literalType("light"), ...ThemeConfigSchema22.shape }),
|
|
589711
|
+
objectType({ type: literalType("darkAndLight"), ...DarkAndLightModeConfigSchema22.shape })
|
|
589712
|
+
]);
|
|
589713
|
+
DocsConfigSchema22 = objectType({
|
|
589714
|
+
title: stringType().optional(),
|
|
589715
|
+
defaultLanguage: ProgrammingLanguageSchema2.optional(),
|
|
589716
|
+
languages: arrayType(LanguageSchema2).optional(),
|
|
589717
|
+
translations: DocsTranslationsConfigSchema2.optional(),
|
|
589718
|
+
announcement: objectType({ text: stringType() }).optional(),
|
|
589719
|
+
navigation: NavigationConfigSchema22.optional(),
|
|
589720
|
+
root: custom2().optional(),
|
|
589721
|
+
navbarLinks: arrayType(NavbarLinkSchema3).optional(),
|
|
589722
|
+
footerLinks: arrayType(FooterLinkSchema2).optional(),
|
|
589723
|
+
hideNavLinks: booleanType().optional(),
|
|
589724
|
+
logoHeight: HeightSchema22.optional(),
|
|
589725
|
+
logoHref: UrlSchema22.optional(),
|
|
589726
|
+
logoRightText: stringType().optional(),
|
|
589727
|
+
favicon: FileIdSchema22.optional(),
|
|
589728
|
+
agents: AgentsConfigSchema2.optional(),
|
|
589729
|
+
metadata: MetadataConfigSchema3.optional(),
|
|
589730
|
+
redirects: arrayType(RedirectConfigSchema3).optional(),
|
|
589731
|
+
colorsV3: ColorsConfigV3Schema22.optional(),
|
|
589732
|
+
layout: DocsLayoutConfigSchema2.optional(),
|
|
589733
|
+
theme: DocsThemeConfigSchema2.optional(),
|
|
589734
|
+
globalTheme: stringType().optional(),
|
|
589735
|
+
settings: DocsSettingsConfigSchema3.optional(),
|
|
589736
|
+
typographyV2: DocsTypographyConfigV2Schema2.optional(),
|
|
589737
|
+
analyticsConfig: AnalyticsConfigSchema3.optional(),
|
|
589738
|
+
integrations: IntegrationsConfigSchema3.optional(),
|
|
589739
|
+
css: CssConfigSchema3.optional(),
|
|
589740
|
+
js: JsConfigSchema3.optional(),
|
|
589741
|
+
aiChatConfig: AIChatConfigSchema2.optional(),
|
|
589742
|
+
pageActions: PageActionsConfigSchema3.optional(),
|
|
589743
|
+
editThisPageLaunch: EditThisPageLaunchSchema2.optional(),
|
|
589744
|
+
header: stringType().optional(),
|
|
589745
|
+
footer: stringType().optional(),
|
|
589746
|
+
backgroundImage: FileIdSchema22.optional(),
|
|
589747
|
+
logoV2: ThemedFileIdSchema2.optional(),
|
|
589748
|
+
logo: FileIdSchema22.optional(),
|
|
589749
|
+
colors: ColorsConfigSchema2.optional(),
|
|
589750
|
+
colorsV2: ColorsConfigV2Schema2.optional(),
|
|
589751
|
+
typography: DocsTypographyConfigSchema2.optional()
|
|
589752
|
+
});
|
|
589753
|
+
DocsDefinitionSchema22 = objectType({
|
|
589754
|
+
pages: recordType(PageIdSchema22, PageContentSchema22),
|
|
589755
|
+
config: DocsConfigSchema22,
|
|
589756
|
+
jsFiles: recordType(stringType(), stringType()).optional()
|
|
589757
|
+
});
|
|
589758
|
+
NpmPackageSchema22 = objectType({
|
|
589759
|
+
packageName: stringType(),
|
|
589760
|
+
githubRepoName: stringType(),
|
|
589761
|
+
version: stringType()
|
|
589762
|
+
});
|
|
589763
|
+
MavenPackageSchema22 = objectType({
|
|
589764
|
+
coordinate: stringType(),
|
|
589765
|
+
githubRepoName: stringType(),
|
|
589766
|
+
version: stringType()
|
|
589767
|
+
});
|
|
589768
|
+
PypiPackageSchema22 = objectType({
|
|
589769
|
+
packageName: stringType(),
|
|
589770
|
+
githubRepoName: stringType(),
|
|
589771
|
+
version: stringType()
|
|
589772
|
+
});
|
|
589773
|
+
PublishedSdkSchema22 = discriminatedUnionType("type", [
|
|
589774
|
+
objectType({ type: literalType("npm"), ...NpmPackageSchema22.shape }),
|
|
589775
|
+
objectType({ type: literalType("maven"), ...MavenPackageSchema22.shape }),
|
|
589776
|
+
objectType({ type: literalType("pypi"), ...PypiPackageSchema22.shape })
|
|
589777
|
+
]);
|
|
589778
|
+
PublishedPostmanCollectionSchema22 = objectType({
|
|
589779
|
+
url: UrlSchema22,
|
|
589780
|
+
githubRepoName: stringType().optional()
|
|
589781
|
+
});
|
|
589782
|
+
ApiArtifactsSchema22 = objectType({
|
|
589783
|
+
sdks: arrayType(PublishedSdkSchema22),
|
|
589784
|
+
postman: PublishedPostmanCollectionSchema22.optional()
|
|
589785
|
+
});
|
|
589786
|
+
InvalidCustomDomainErrorBodySchema2 = objectType({
|
|
589787
|
+
overlappingDomains: arrayType(arrayType(stringType()))
|
|
589788
|
+
});
|
|
589789
|
+
OverlappingCustomDomainsSchema2 = arrayType(stringType());
|
|
589543
589790
|
FilePathSchema22 = stringType();
|
|
589544
589791
|
FilePathInputSchema2 = unionType([
|
|
589545
589792
|
FilePathSchema22,
|
|
@@ -589809,7 +590056,8 @@ var init_orpc_client = __esm({
|
|
|
589809
590056
|
remote: arrayType(
|
|
589810
590057
|
objectType({
|
|
589811
590058
|
url: stringType(),
|
|
589812
|
-
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
590059
|
+
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional(),
|
|
590060
|
+
disableSri: booleanType().optional()
|
|
589813
590061
|
})
|
|
589814
590062
|
).optional(),
|
|
589815
590063
|
files: arrayType(LedgerJsFileSchema2).optional(),
|
|
@@ -589839,6 +590087,7 @@ var init_orpc_client = __esm({
|
|
|
589839
590087
|
});
|
|
589840
590088
|
LedgerConfigSchema2 = objectType({
|
|
589841
590089
|
title: stringType().optional(),
|
|
590090
|
+
rootSlug: stringType().optional(),
|
|
589842
590091
|
defaultLanguage: stringType().optional(),
|
|
589843
590092
|
translations: objectType({
|
|
589844
590093
|
defaultLocale: stringType(),
|
|
@@ -589869,6 +590118,18 @@ var init_orpc_client = __esm({
|
|
|
589869
590118
|
aiChatConfig: AIChatFieldSchema2.optional(),
|
|
589870
590119
|
pageActions: PageActionsFieldSchema2.optional(),
|
|
589871
590120
|
editThisPageLaunch: enumType(["github", "dashboard"]).optional(),
|
|
590121
|
+
/**
|
|
590122
|
+
* Explicit edit-this-page GitHub config from docs.yml (ADR 0012 parity).
|
|
590123
|
+
* When present, the loader synthesises `editThisPageUrl` from these fields
|
|
590124
|
+
* instead of relying on deployment-scoped git provenance. This matches the
|
|
590125
|
+
* v2 behaviour where the CLI derives the URL from the declared config.
|
|
590126
|
+
*/
|
|
590127
|
+
editThisPageGithub: objectType({
|
|
590128
|
+
owner: stringType(),
|
|
590129
|
+
repo: stringType(),
|
|
590130
|
+
branch: stringType().default("main"),
|
|
590131
|
+
host: stringType().default("https://github.com")
|
|
590132
|
+
}).optional(),
|
|
589872
590133
|
header: stringType().optional(),
|
|
589873
590134
|
footer: stringType().optional()
|
|
589874
590135
|
});
|
|
@@ -589918,6 +590179,7 @@ var init_orpc_client = __esm({
|
|
|
589918
590179
|
title: stringType().optional(),
|
|
589919
590180
|
slug: stringType().optional(),
|
|
589920
590181
|
icon: stringType().optional(),
|
|
590182
|
+
authed: booleanType().optional(),
|
|
589921
590183
|
viewers: MetadataStringArraySchema2.optional(),
|
|
589922
590184
|
orphaned: booleanType().optional(),
|
|
589923
590185
|
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
@@ -589948,36 +590210,48 @@ var init_orpc_client = __esm({
|
|
|
589948
590210
|
type: literalType("section"),
|
|
589949
590211
|
title: stringType().optional(),
|
|
589950
590212
|
icon: stringType().optional(),
|
|
590213
|
+
authed: booleanType().optional(),
|
|
589951
590214
|
collapsed: CollapsedSchema2.optional(),
|
|
589952
590215
|
collapsible: booleanType().optional(),
|
|
589953
590216
|
collapsedByDefault: booleanType().optional(),
|
|
589954
590217
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589955
590218
|
overviewPageId: stringType().optional(),
|
|
590219
|
+
noindex: booleanType().optional(),
|
|
589956
590220
|
pointsTo: stringType().optional(),
|
|
589957
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590221
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590222
|
+
orphaned: booleanType().optional(),
|
|
590223
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589958
590224
|
}),
|
|
589959
590225
|
LedgerMetadataBaseSchema2.extend({
|
|
589960
590226
|
type: literalType("apiReference"),
|
|
589961
590227
|
title: stringType().optional(),
|
|
589962
590228
|
icon: stringType().optional(),
|
|
590229
|
+
authed: booleanType().optional(),
|
|
589963
590230
|
apiDefinitionId: stringType().optional(),
|
|
589964
590231
|
overviewPageId: stringType().optional(),
|
|
590232
|
+
noindex: booleanType().optional(),
|
|
589965
590233
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589966
590234
|
pointsTo: stringType().optional(),
|
|
589967
590235
|
paginated: booleanType().optional(),
|
|
589968
590236
|
showErrors: booleanType().optional(),
|
|
589969
590237
|
hideTitle: booleanType().optional(),
|
|
589970
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590238
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590239
|
+
orphaned: booleanType().optional(),
|
|
590240
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589971
590241
|
}),
|
|
589972
590242
|
LedgerMetadataBaseSchema2.extend({
|
|
589973
590243
|
type: literalType("apiPackage"),
|
|
589974
590244
|
title: stringType().optional(),
|
|
589975
590245
|
icon: stringType().optional(),
|
|
590246
|
+
authed: booleanType().optional(),
|
|
589976
590247
|
apiDefinitionId: stringType().optional(),
|
|
589977
590248
|
overviewPageId: stringType().optional(),
|
|
590249
|
+
noindex: booleanType().optional(),
|
|
589978
590250
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589979
590251
|
pointsTo: stringType().optional(),
|
|
589980
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590252
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590253
|
+
orphaned: booleanType().optional(),
|
|
590254
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589981
590255
|
}),
|
|
589982
590256
|
LedgerMetadataBaseSchema2.extend({
|
|
589983
590257
|
type: literalType("changelog"),
|
|
@@ -589985,13 +590259,23 @@ var init_orpc_client = __esm({
|
|
|
589985
590259
|
icon: stringType().optional(),
|
|
589986
590260
|
overviewPageId: stringType().optional(),
|
|
589987
590261
|
apiDefinitionId: stringType().optional(),
|
|
589988
|
-
|
|
590262
|
+
noindex: booleanType().optional(),
|
|
590263
|
+
authed: booleanType().optional(),
|
|
590264
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590265
|
+
orphaned: booleanType().optional(),
|
|
590266
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589989
590267
|
}),
|
|
589990
590268
|
LedgerMetadataBaseSchema2.extend({
|
|
589991
590269
|
type: literalType("files")
|
|
589992
590270
|
}),
|
|
589993
590271
|
LedgerMetadataBaseSchema2.extend({
|
|
589994
590272
|
type: literalType("redirects")
|
|
590273
|
+
}),
|
|
590274
|
+
LedgerMetadataBaseSchema2.extend({
|
|
590275
|
+
type: literalType("productLink")
|
|
590276
|
+
}),
|
|
590277
|
+
LedgerMetadataBaseSchema2.extend({
|
|
590278
|
+
type: literalType("tabLink")
|
|
589995
590279
|
})
|
|
589996
590280
|
]);
|
|
589997
590281
|
LedgerSegmentMetadataSchema2 = LedgerSegmentMetadataObjectSchema2;
|
|
@@ -590029,10 +590313,9 @@ var init_orpc_client = __esm({
|
|
|
590029
590313
|
operationType: GraphQlOperationTypeSchema2
|
|
590030
590314
|
});
|
|
590031
590315
|
LedgerChangelogEntryMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590032
|
-
|
|
590033
|
-
slug: stringType().optional(),
|
|
590034
|
-
icon: stringType().optional(),
|
|
590316
|
+
...NodeMetadataFields2,
|
|
590035
590317
|
pageId: stringType(),
|
|
590318
|
+
noindex: booleanType().optional(),
|
|
590036
590319
|
date: stringType().optional(),
|
|
590037
590320
|
tags: MetadataStringArraySchema2.optional()
|
|
590038
590321
|
});
|
|
@@ -590045,13 +590328,26 @@ var init_orpc_client = __esm({
|
|
|
590045
590328
|
});
|
|
590046
590329
|
LedgerFileArtifactMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590047
590330
|
contentType: stringType(),
|
|
590331
|
+
contentLength: numberType().optional(),
|
|
590048
590332
|
filename: stringType(),
|
|
590049
590333
|
width: numberType().optional(),
|
|
590050
590334
|
height: numberType().optional(),
|
|
590051
590335
|
blurDataURL: stringType().optional()
|
|
590052
590336
|
});
|
|
590337
|
+
LedgerStructuralRedirectKindSchema2 = enumType([
|
|
590338
|
+
"root",
|
|
590339
|
+
"product",
|
|
590340
|
+
"version",
|
|
590341
|
+
"variant",
|
|
590342
|
+
"tab",
|
|
590343
|
+
"section",
|
|
590344
|
+
"api-section"
|
|
590345
|
+
]);
|
|
590346
|
+
LedgerRedirectKindSchema2 = enumType(["structural", "link"]);
|
|
590053
590347
|
LedgerRedirectMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590054
|
-
href: stringType().optional()
|
|
590348
|
+
href: stringType().optional(),
|
|
590349
|
+
redirectKind: LedgerRedirectKindSchema2.optional(),
|
|
590350
|
+
structuralKind: LedgerStructuralRedirectKindSchema2.optional()
|
|
590055
590351
|
});
|
|
590056
590352
|
LedgerArtifactMetadataSchema2 = unionType([
|
|
590057
590353
|
LedgerMarkdownMetadataSchema2,
|
|
@@ -590145,6 +590441,7 @@ var init_orpc_client = __esm({
|
|
|
590145
590441
|
orgId: stringType(),
|
|
590146
590442
|
domain: stringType(),
|
|
590147
590443
|
basepath: stringType().default(""),
|
|
590444
|
+
basepathAware: booleanType().nullish(),
|
|
590148
590445
|
/**
|
|
590149
590446
|
* Additional URLs the deployment should be served from (e.g. a customer's
|
|
590150
590447
|
* vanity hostname `docs.example.com` alongside the canonical fern URL).
|
|
@@ -590169,7 +590466,7 @@ var init_orpc_client = __esm({
|
|
|
590169
590466
|
path: ["defaultLocale"]
|
|
590170
590467
|
});
|
|
590171
590468
|
DocsPublishInputSchema2 = DocsPublishInputSchemaInternal2;
|
|
590172
|
-
LedgerPreviewRegisterInputSchemaInternal2 = DocsContentFieldsSchema2.extend({
|
|
590469
|
+
LedgerPreviewRegisterInputSchemaInternal2 = DocsContentFieldsSchema2.partial().extend({
|
|
590173
590470
|
orgId: stringType(),
|
|
590174
590471
|
/**
|
|
590175
590472
|
* Optional caller-supplied identifier for the preview hostname. Sanitized
|
|
@@ -590184,7 +590481,33 @@ var init_orpc_client = __esm({
|
|
|
590184
590481
|
* Mirrors V2's `basePath` — most preview publishes leave this empty,
|
|
590185
590482
|
* but explicit subpath previews (`/v2`) are supported.
|
|
590186
590483
|
*/
|
|
590187
|
-
basePath: stringType().default("")
|
|
590484
|
+
basePath: stringType().default(""),
|
|
590485
|
+
/** The primary/fallback locale for this preview deployment. */
|
|
590486
|
+
defaultLocale: stringType().optional(),
|
|
590487
|
+
/**
|
|
590488
|
+
* All locales for this preview deployment. Preferred over the legacy
|
|
590489
|
+
* single-locale content fields above.
|
|
590490
|
+
*/
|
|
590491
|
+
locales: arrayType(LocaleEntrySchema2).min(1).optional()
|
|
590492
|
+
}).superRefine((data2, ctx) => {
|
|
590493
|
+
if (data2.locales == null) {
|
|
590494
|
+
if (data2.root == null || data2.pages == null) {
|
|
590495
|
+
ctx.addIssue({
|
|
590496
|
+
code: ZodIssueCode2.custom,
|
|
590497
|
+
message: "Either locales or legacy single-locale content fields must be provided",
|
|
590498
|
+
path: ["locales"]
|
|
590499
|
+
});
|
|
590500
|
+
}
|
|
590501
|
+
return;
|
|
590502
|
+
}
|
|
590503
|
+
const defaultLocale = data2.defaultLocale ?? data2.locales[0]?.locale;
|
|
590504
|
+
if (defaultLocale == null || !data2.locales.some((locale) => locale.locale === defaultLocale)) {
|
|
590505
|
+
ctx.addIssue({
|
|
590506
|
+
code: ZodIssueCode2.custom,
|
|
590507
|
+
message: "defaultLocale must match one of the locales in the locales array",
|
|
590508
|
+
path: ["defaultLocale"]
|
|
590509
|
+
});
|
|
590510
|
+
}
|
|
590188
590511
|
});
|
|
590189
590512
|
LedgerPreviewRegisterInputSchema2 = LedgerPreviewRegisterInputSchemaInternal2;
|
|
590190
590513
|
LedgerPreviewRegisterResponseSchema2 = objectType({
|
|
@@ -590445,6 +590768,7 @@ var init_orpc_client = __esm({
|
|
|
590445
590768
|
fullPath: stringType(),
|
|
590446
590769
|
type: enumType(["file", "image"]),
|
|
590447
590770
|
contentType: stringType(),
|
|
590771
|
+
contentLength: numberType().optional(),
|
|
590448
590772
|
filename: stringType(),
|
|
590449
590773
|
url: stringType(),
|
|
590450
590774
|
width: numberType().optional(),
|
|
@@ -590469,6 +590793,8 @@ var init_orpc_client = __esm({
|
|
|
590469
590793
|
/** Domain under which the file bytes were uploaded in the docs files bucket. */
|
|
590470
590794
|
domain: stringType(),
|
|
590471
590795
|
contentType: stringType(),
|
|
590796
|
+
contentLength: numberType().optional(),
|
|
590797
|
+
filename: stringType().optional(),
|
|
590472
590798
|
width: numberType().optional(),
|
|
590473
590799
|
height: numberType().optional(),
|
|
590474
590800
|
blurDataURL: stringType().optional()
|
|
@@ -591139,6 +591465,24 @@ var init_orpc_client = __esm({
|
|
|
591139
591465
|
generate: oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema2).output(GenerateTokenOutputSchema2),
|
|
591140
591466
|
revoke: oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema2)
|
|
591141
591467
|
};
|
|
591468
|
+
StartDocsRegisterV1InputSchema = objectType({
|
|
591469
|
+
orgId: stringType(),
|
|
591470
|
+
domain: stringType(),
|
|
591471
|
+
filepaths: arrayType(stringType())
|
|
591472
|
+
});
|
|
591473
|
+
StartDocsRegisterV1ResponseSchema = objectType({
|
|
591474
|
+
docsRegistrationId: stringType(),
|
|
591475
|
+
uploadUrls: recordType(stringType(), FileS3UploadUrlSchema2),
|
|
591476
|
+
skippedFiles: arrayType(stringType())
|
|
591477
|
+
});
|
|
591478
|
+
FinishDocsRegisterV1InputSchema = objectType({
|
|
591479
|
+
docsRegistrationId: stringType(),
|
|
591480
|
+
docsDefinition: unknownType()
|
|
591481
|
+
});
|
|
591482
|
+
docsV1WriteContract = {
|
|
591483
|
+
startDocsRegister: oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
591484
|
+
finishDocsRegister: oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(voidType())
|
|
591485
|
+
};
|
|
591142
591486
|
PATH_OR_URL_METADATA_KEYS = [
|
|
591143
591487
|
"og:image",
|
|
591144
591488
|
"og:logo",
|
|
@@ -591182,6 +591526,37 @@ var init_orpc_client = __esm({
|
|
|
591182
591526
|
js: objectType({ files: arrayType(JsFileViewSchema.optional().catch(void 0)).catch([]) }).optional().catch(void 0),
|
|
591183
591527
|
metadata: recordType(stringType(), unknownType()).optional().catch(void 0)
|
|
591184
591528
|
});
|
|
591529
|
+
NAV_ICON_FILE_PREFIX = "file:";
|
|
591530
|
+
FileTokenTreeSchema = lazyType(
|
|
591531
|
+
() => unionType([
|
|
591532
|
+
stringType(),
|
|
591533
|
+
numberType(),
|
|
591534
|
+
booleanType(),
|
|
591535
|
+
nullType(),
|
|
591536
|
+
arrayType(FileTokenTreeSchema),
|
|
591537
|
+
recordType(stringType(), FileTokenTreeSchema)
|
|
591538
|
+
])
|
|
591539
|
+
);
|
|
591540
|
+
ConfigFileTokenViewSchema = objectType({
|
|
591541
|
+
landingPage: FileTokenTreeSchema.optional().catch(void 0)
|
|
591542
|
+
});
|
|
591543
|
+
SegmentDetailIconViewSchema = objectType({
|
|
591544
|
+
icon: stringType().nullish().catch(void 0),
|
|
591545
|
+
metadata: objectType({
|
|
591546
|
+
icon: stringType().nullish().catch(void 0),
|
|
591547
|
+
image: stringType().nullish().catch(void 0)
|
|
591548
|
+
}).nullish().catch(void 0)
|
|
591549
|
+
});
|
|
591550
|
+
SegmentIconViewSchema = objectType({
|
|
591551
|
+
metadata: objectType({
|
|
591552
|
+
icon: stringType().nullish().catch(void 0),
|
|
591553
|
+
image: stringType().nullish().catch(void 0)
|
|
591554
|
+
}).nullish().catch(void 0),
|
|
591555
|
+
product: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591556
|
+
version: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591557
|
+
variant: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591558
|
+
tab: SegmentDetailIconViewSchema.nullish().catch(void 0)
|
|
591559
|
+
});
|
|
591185
591560
|
LEDGER_MANIFEST_SCHEMA_VERSION = "docsledger/20260601";
|
|
591186
591561
|
LEDGER_SHARD_SCHEMA_VERSION = "docsledger/shard/20260601";
|
|
591187
591562
|
ManifestBlobRefSchema = objectType({
|
|
@@ -591251,6 +591626,7 @@ var init_orpc_client = __esm({
|
|
|
591251
591626
|
ManifestFileSchema = objectType({
|
|
591252
591627
|
type: enumType(["file", "image"]),
|
|
591253
591628
|
contentType: stringType(),
|
|
591629
|
+
contentLength: numberType().optional(),
|
|
591254
591630
|
filename: stringType(),
|
|
591255
591631
|
hash: stringType(),
|
|
591256
591632
|
/** Canonical fern domain the bytes were uploaded under (ADR 0010 file anchor). */
|
|
@@ -591266,6 +591642,7 @@ var init_orpc_client = __esm({
|
|
|
591266
591642
|
/** Fern-host-relative path; equals the `file:<fullPath>` token's suffix. */
|
|
591267
591643
|
fullPath: stringType(),
|
|
591268
591644
|
contentType: stringType(),
|
|
591645
|
+
contentLength: numberType().optional(),
|
|
591269
591646
|
width: numberType().optional(),
|
|
591270
591647
|
height: numberType().optional(),
|
|
591271
591648
|
blurDataURL: stringType().optional(),
|
|
@@ -591406,6 +591783,17 @@ var init_orpc_client = __esm({
|
|
|
591406
591783
|
chrome: LedgerChromeBlobSchema,
|
|
591407
591784
|
locales: recordType(stringType(), LedgerLocaleRoutingSchema)
|
|
591408
591785
|
});
|
|
591786
|
+
LedgerSiteArtifactSchema = unionType([
|
|
591787
|
+
objectType({
|
|
591788
|
+
schema: literalType(LEDGER_MANIFEST_SCHEMA_VERSION),
|
|
591789
|
+
unpublished: literalType(true),
|
|
591790
|
+
orgId: stringType(),
|
|
591791
|
+
domain: stringType(),
|
|
591792
|
+
basepath: stringType(),
|
|
591793
|
+
isPreview: booleanType()
|
|
591794
|
+
}),
|
|
591795
|
+
LedgerManifestSchema
|
|
591796
|
+
]);
|
|
591409
591797
|
PutContentInputSchema = objectType({
|
|
591410
591798
|
contentType: stringType(),
|
|
591411
591799
|
contentLength: numberType().int().positive()
|
|
@@ -689678,7 +690066,7 @@ var AccessTokenPosthogManager = class {
|
|
|
689678
690066
|
properties: {
|
|
689679
690067
|
...event,
|
|
689680
690068
|
...event.properties,
|
|
689681
|
-
version: "5.72.
|
|
690069
|
+
version: "5.72.1",
|
|
689682
690070
|
usingAccessToken: true,
|
|
689683
690071
|
...getRunIdProperties()
|
|
689684
690072
|
}
|
|
@@ -689744,7 +690132,7 @@ var UserPosthogManager = class {
|
|
|
689744
690132
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
689745
690133
|
event: "CLI",
|
|
689746
690134
|
properties: {
|
|
689747
|
-
version: "5.72.
|
|
690135
|
+
version: "5.72.1",
|
|
689748
690136
|
...event,
|
|
689749
690137
|
...event.properties,
|
|
689750
690138
|
usingAccessToken: false,
|
|
@@ -870845,7 +871233,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870845
871233
|
var LOGS_FOLDER_NAME = "logs";
|
|
870846
871234
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870847
871235
|
function getCliSource() {
|
|
870848
|
-
const version7 = "5.72.
|
|
871236
|
+
const version7 = "5.72.1";
|
|
870849
871237
|
return `cli@${version7}`;
|
|
870850
871238
|
}
|
|
870851
871239
|
var DebugLogger = class {
|
|
@@ -901498,7 +901886,7 @@ function mapJsFiles(js3, fileIdToPath) {
|
|
|
901498
901886
|
files.push({ path: path120, strategy: file4.strategy });
|
|
901499
901887
|
}
|
|
901500
901888
|
return {
|
|
901501
|
-
remote: js3.remote?.map((r4) => ({ url: r4.url, strategy: r4.strategy })),
|
|
901889
|
+
remote: js3.remote?.map((r4) => ({ url: r4.url, strategy: r4.strategy, disableSri: r4.disableSri })),
|
|
901502
901890
|
files,
|
|
901503
901891
|
inline: js3.inline
|
|
901504
901892
|
};
|
|
@@ -903428,7 +903816,7 @@ var LegacyDocsPublisher = class {
|
|
|
903428
903816
|
previewId,
|
|
903429
903817
|
disableTemplates: void 0,
|
|
903430
903818
|
skipUpload,
|
|
903431
|
-
cliVersion: "5.72.
|
|
903819
|
+
cliVersion: "5.72.1",
|
|
903432
903820
|
loginCommand: "fern auth login"
|
|
903433
903821
|
});
|
|
903434
903822
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -969903,7 +970291,7 @@ function getAutomationContextFromEnv() {
|
|
|
969903
970291
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
969904
970292
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
969905
970293
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
969906
|
-
cli_version: "5.72.
|
|
970294
|
+
cli_version: "5.72.1"
|
|
969907
970295
|
};
|
|
969908
970296
|
}
|
|
969909
970297
|
function isAutomationMode() {
|
|
@@ -970735,7 +971123,7 @@ var CliContext = class _CliContext {
|
|
|
970735
971123
|
if (false) {
|
|
970736
971124
|
this.logger.error("CLI_VERSION is not defined");
|
|
970737
971125
|
}
|
|
970738
|
-
return "5.72.
|
|
971126
|
+
return "5.72.1";
|
|
970739
971127
|
}
|
|
970740
971128
|
getCliName() {
|
|
970741
971129
|
if (false) {
|