@fern-api/fern-api-dev 5.72.0 → 5.73.0
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 +987 -527
- 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);
|
|
@@ -563944,6 +564079,12 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
563944
564079
|
if (process.env["FERN_STACK_TRACK"]) {
|
|
563945
564080
|
envVars["FERN_STACK_TRACK"] = process.env["FERN_STACK_TRACK"];
|
|
563946
564081
|
}
|
|
564082
|
+
const oidcEnvArgs = ["ACTIONS_ID_TOKEN_REQUEST_URL", "ACTIONS_ID_TOKEN_REQUEST_TOKEN"].flatMap((name2) => {
|
|
564083
|
+
const value2 = process.env[name2];
|
|
564084
|
+
return value2 != null ? ["-e", `${name2}=${value2}`] : [];
|
|
564085
|
+
});
|
|
564086
|
+
const oidcSecret = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];
|
|
564087
|
+
const secrets = oidcSecret != null ? [oidcSecret] : [];
|
|
563947
564088
|
const containerArgs = [
|
|
563948
564089
|
"run",
|
|
563949
564090
|
"--user",
|
|
@@ -563951,6 +564092,7 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
563951
564092
|
...pull ? ["--pull", "always"] : [],
|
|
563952
564093
|
...platform4 != null ? ["--platform", platform4] : [],
|
|
563953
564094
|
...binds.flatMap((bind5) => ["-v", bind5]),
|
|
564095
|
+
...oidcEnvArgs,
|
|
563954
564096
|
...Object.entries(envVars).flatMap(([key2, value2]) => ["-e", `${key2}="${value2}"`]),
|
|
563955
564097
|
...Object.entries(ports).flatMap(([hostPort, containerPort]) => ["-p", `${hostPort}:${containerPort}`]),
|
|
563956
564098
|
removeAfterCompletion ? "--rm" : "",
|
|
@@ -563962,6 +564104,7 @@ async function tryRunContainer({ logger: logger4, imageName, args, binds, envVar
|
|
|
563962
564104
|
reject: false,
|
|
563963
564105
|
all: true,
|
|
563964
564106
|
doNotPipeOutput: true,
|
|
564107
|
+
secrets,
|
|
563965
564108
|
signal
|
|
563966
564109
|
});
|
|
563967
564110
|
const logs4 = stdout + stderr;
|
|
@@ -582399,11 +582542,23 @@ var require_pushSignedCommit = __commonJS({
|
|
|
582399
582542
|
"../../generator-cli/lib/pipeline/github/pushSignedCommit.js"(exports2) {
|
|
582400
582543
|
"use strict";
|
|
582401
582544
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
582545
|
+
exports2.resolveCommitAuthor = resolveCommitAuthor;
|
|
582402
582546
|
exports2.pushSignedCommit = pushSignedCommit;
|
|
582403
582547
|
exports2.isNonFastForwardError = isNonFastForwardError;
|
|
582404
582548
|
var core_utils_1 = (init_lib4(), __toCommonJS(lib_exports));
|
|
582549
|
+
var constants_1 = require_constants8();
|
|
582405
582550
|
var MAX_CONCURRENT_PUSH_RETRIES = 3;
|
|
582406
582551
|
var MAX_SIGNED_CHAIN_LENGTH = 20;
|
|
582552
|
+
var PAT_TOKEN_PREFIXES = ["ghp_", "github_pat_"];
|
|
582553
|
+
function resolveCommitAuthor(token, author) {
|
|
582554
|
+
if (author != null) {
|
|
582555
|
+
return author;
|
|
582556
|
+
}
|
|
582557
|
+
if (PAT_TOKEN_PREFIXES.some((prefix2) => token.startsWith(prefix2))) {
|
|
582558
|
+
return { name: constants_1.FERN_BOT_NAME, email: constants_1.FERN_BOT_EMAIL };
|
|
582559
|
+
}
|
|
582560
|
+
return void 0;
|
|
582561
|
+
}
|
|
582407
582562
|
async function pushSignedCommit({ repository, octokit, owner, repo, branch, force, rebaseOnConflict = false, author, logger: logger4 }) {
|
|
582408
582563
|
const tempRef = `refs/temp/fern-${Date.now()}`;
|
|
582409
582564
|
let tempRefPushed = false;
|
|
@@ -582831,7 +582986,7 @@ var require_GithubStep = __commonJS({
|
|
|
582831
582986
|
repo,
|
|
582832
582987
|
branch: prBranch,
|
|
582833
582988
|
force: isUpdatingExistingPR,
|
|
582834
|
-
author: this.config.author,
|
|
582989
|
+
author: (0, pushSignedCommit_1.resolveCommitAuthor)(this.config.token, this.config.author),
|
|
582835
582990
|
logger: this.logger
|
|
582836
582991
|
});
|
|
582837
582992
|
const pushedBranch = await repository.getCurrentBranch();
|
|
@@ -582954,7 +583109,7 @@ var require_GithubStep = __commonJS({
|
|
|
582954
583109
|
branch: baseBranch,
|
|
582955
583110
|
force: false,
|
|
582956
583111
|
rebaseOnConflict: true,
|
|
582957
|
-
author: this.config.author,
|
|
583112
|
+
author: (0, pushSignedCommit_1.resolveCommitAuthor)(this.config.token, this.config.author),
|
|
582958
583113
|
logger: this.logger
|
|
582959
583114
|
});
|
|
582960
583115
|
const pushedBranch = await repository.getCurrentBranch();
|
|
@@ -582996,7 +583151,7 @@ var require_GithubStep = __commonJS({
|
|
|
582996
583151
|
branch: baseBranch,
|
|
582997
583152
|
force: false,
|
|
582998
583153
|
rebaseOnConflict: true,
|
|
582999
|
-
author: this.config.author,
|
|
583154
|
+
author: (0, pushSignedCommit_1.resolveCommitAuthor)(this.config.token, this.config.author),
|
|
583000
583155
|
logger: this.logger
|
|
583001
583156
|
});
|
|
583002
583157
|
const pushedBranch = await repository.getCurrentBranch();
|
|
@@ -585125,7 +585280,7 @@ var require_dist25 = __commonJS({
|
|
|
585125
585280
|
}
|
|
585126
585281
|
});
|
|
585127
585282
|
|
|
585128
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
585283
|
+
// ../../../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
585284
|
var orpc_client_exports = {};
|
|
585130
585285
|
__export(orpc_client_exports, {
|
|
585131
585286
|
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema2,
|
|
@@ -585262,7 +585417,7 @@ __export(orpc_client_exports, {
|
|
|
585262
585417
|
FilenameWithDataSchema: () => FilenameWithDataSchema2,
|
|
585263
585418
|
FindSiteByOrgAndCollectionInputSchema: () => FindSiteByOrgAndCollectionInputSchema2,
|
|
585264
585419
|
FindSiteByOrgAndCollectionResponseSchema: () => FindSiteByOrgAndCollectionResponseSchema2,
|
|
585265
|
-
FinishDocsRegisterV1InputSchema: () =>
|
|
585420
|
+
FinishDocsRegisterV1InputSchema: () => FinishDocsRegisterV1InputSchema,
|
|
585266
585421
|
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema2,
|
|
585267
585422
|
FinishResponseSchema: () => FinishResponseSchema2,
|
|
585268
585423
|
FormDataBodyPropertySchema: () => FormDataBodyPropertySchema2,
|
|
@@ -585320,6 +585475,7 @@ __export(orpc_client_exports, {
|
|
|
585320
585475
|
GetPullRequestInputSchema: () => GetPullRequestInputSchema2,
|
|
585321
585476
|
GetRepositoryInputSchema: () => GetRepositoryInputSchema2,
|
|
585322
585477
|
GetSdkDynamicIrUploadUrlsResponseSchema: () => GetSdkDynamicIrUploadUrlsResponseSchema2,
|
|
585478
|
+
GetSiteMetricsInputSchema: () => GetSiteMetricsInputSchema2,
|
|
585323
585479
|
GetSlugEntriesResponseSchema: () => GetSlugEntriesResponseSchema2,
|
|
585324
585480
|
GetSnapshotInputSchema: () => GetSnapshotInputSchema2,
|
|
585325
585481
|
GetSnapshotResponseSchema: () => GetSnapshotResponseSchema2,
|
|
@@ -585434,6 +585590,7 @@ __export(orpc_client_exports, {
|
|
|
585434
585590
|
LedgerPointerSegmentSchema: () => LedgerPointerSegmentSchema,
|
|
585435
585591
|
LedgerPreviewRegisterInputSchema: () => LedgerPreviewRegisterInputSchema2,
|
|
585436
585592
|
LedgerPreviewRegisterResponseSchema: () => LedgerPreviewRegisterResponseSchema2,
|
|
585593
|
+
LedgerRedirectKindSchema: () => LedgerRedirectKindSchema2,
|
|
585437
585594
|
LedgerRedirectMetadataSchema: () => LedgerRedirectMetadataSchema2,
|
|
585438
585595
|
LedgerRestMetadataSchema: () => LedgerRestMetadataSchema2,
|
|
585439
585596
|
LedgerRouteShardSchema: () => LedgerRouteShardSchema,
|
|
@@ -585442,6 +585599,8 @@ __export(orpc_client_exports, {
|
|
|
585442
585599
|
LedgerShardFileSchema: () => LedgerShardFileSchema,
|
|
585443
585600
|
LedgerSidebarBundleSchema: () => LedgerSidebarBundleSchema,
|
|
585444
585601
|
LedgerSidebarMapEntrySchema: () => LedgerSidebarMapEntrySchema,
|
|
585602
|
+
LedgerSiteArtifactSchema: () => LedgerSiteArtifactSchema,
|
|
585603
|
+
LedgerStructuralRedirectKindSchema: () => LedgerStructuralRedirectKindSchema2,
|
|
585445
585604
|
LedgerWebSocketMetadataSchema: () => LedgerWebSocketMetadataSchema2,
|
|
585446
585605
|
LedgerWebhookMetadataSchema: () => LedgerWebhookMetadataSchema2,
|
|
585447
585606
|
LibraryDocsBaseConfigSchema: () => LibraryDocsBaseConfigSchema2,
|
|
@@ -585609,6 +585768,7 @@ __export(orpc_client_exports, {
|
|
|
585609
585768
|
SetEditorRepoUrlInputSchema: () => SetEditorRepoUrlInputSchema2,
|
|
585610
585769
|
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema2,
|
|
585611
585770
|
SetSnapshotInputSchema: () => SetSnapshotInputSchema2,
|
|
585771
|
+
SiteMetricsSchema: () => SiteMetricsSchema2,
|
|
585612
585772
|
SlugEntrySchema: () => SlugEntrySchema2,
|
|
585613
585773
|
SlugsInputSchema: () => SlugsInputSchema2,
|
|
585614
585774
|
SnippetInfoSchema: () => SnippetInfoSchema2,
|
|
@@ -585621,8 +585781,8 @@ __export(orpc_client_exports, {
|
|
|
585621
585781
|
SourceUploadSchema: () => SourceUploadSchema2,
|
|
585622
585782
|
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema2,
|
|
585623
585783
|
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema2,
|
|
585624
|
-
StartDocsRegisterV1InputSchema: () =>
|
|
585625
|
-
StartDocsRegisterV1ResponseSchema: () =>
|
|
585784
|
+
StartDocsRegisterV1InputSchema: () => StartDocsRegisterV1InputSchema,
|
|
585785
|
+
StartDocsRegisterV1ResponseSchema: () => StartDocsRegisterV1ResponseSchema,
|
|
585626
585786
|
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema2,
|
|
585627
585787
|
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema2,
|
|
585628
585788
|
StartLibraryDocsGenerationInputSchema: () => StartLibraryDocsGenerationInputSchema2,
|
|
@@ -585686,6 +585846,7 @@ __export(orpc_client_exports, {
|
|
|
585686
585846
|
YankSchema: () => YankSchema2,
|
|
585687
585847
|
artifactTypeVariant: () => artifactTypeVariant2,
|
|
585688
585848
|
collectConfigFilePaths: () => collectConfigFilePaths,
|
|
585849
|
+
collectNavFilePaths: () => collectNavFilePaths,
|
|
585689
585850
|
contentContract: () => contentContract,
|
|
585690
585851
|
createApiClient: () => createApiClient2,
|
|
585691
585852
|
createDashboardClient: () => createDashboardClient2,
|
|
@@ -585694,7 +585855,7 @@ __export(orpc_client_exports, {
|
|
|
585694
585855
|
createDocsDeploymentClient: () => createDocsDeploymentClient2,
|
|
585695
585856
|
createDocsLedgerClient: () => createDocsLedgerClient2,
|
|
585696
585857
|
createDocsV1ReadClient: () => createDocsV1ReadClient2,
|
|
585697
|
-
createDocsV1WriteClient: () =>
|
|
585858
|
+
createDocsV1WriteClient: () => createDocsV1WriteClient,
|
|
585698
585859
|
createDocsV2ReadClient: () => createDocsV2ReadClient2,
|
|
585699
585860
|
createDocsV2WriteClient: () => createDocsV2WriteClient2,
|
|
585700
585861
|
createEditorSnapshotClient: () => createEditorSnapshotClient2,
|
|
@@ -585718,7 +585879,7 @@ __export(orpc_client_exports, {
|
|
|
585718
585879
|
docsLedgerContract: () => docsLedgerContract2,
|
|
585719
585880
|
docsLedgerReadContract: () => docsLedgerReadContract2,
|
|
585720
585881
|
docsV1ReadContract: () => docsV1ReadContract2,
|
|
585721
|
-
docsV1WriteContract: () =>
|
|
585882
|
+
docsV1WriteContract: () => docsV1WriteContract,
|
|
585722
585883
|
docsV2ReadContract: () => docsV2ReadContract2,
|
|
585723
585884
|
docsV2WriteContract: () => docsV2WriteContract2,
|
|
585724
585885
|
editorSnapshotContract: () => editorSnapshotContract2,
|
|
@@ -585727,12 +585888,15 @@ __export(orpc_client_exports, {
|
|
|
585727
585888
|
generatorVersionsContract: () => generatorVersionsContract2,
|
|
585728
585889
|
generatorsContract: () => generatorsContract2,
|
|
585729
585890
|
getDocsForUrl: () => getDocsForUrl2,
|
|
585891
|
+
getGraphqlOperationIds: () => getGraphqlOperationIds2,
|
|
585730
585892
|
gitContract: () => gitContract2,
|
|
585731
585893
|
isFernFileRef: () => isFernFileRef,
|
|
585894
|
+
ledgerSegmentIdentity: () => ledgerSegmentIdentity,
|
|
585732
585895
|
libraryDocsContract: () => libraryDocsContract2,
|
|
585733
585896
|
organizationContract: () => organizationContract2,
|
|
585734
585897
|
pdfExportContract: () => pdfExportContract2,
|
|
585735
585898
|
sdksContract: () => sdksContract2,
|
|
585899
|
+
selectLedgerSegmentsForLocale: () => selectLedgerSegmentsForLocale,
|
|
585736
585900
|
slugsContract: () => slugsContract2,
|
|
585737
585901
|
snippetsContract: () => snippetsContract2,
|
|
585738
585902
|
snippetsFactoryContract: () => snippetsFactoryContract2,
|
|
@@ -585785,6 +585949,11 @@ function WebhookId16(value2) {
|
|
|
585785
585949
|
function GraphQlOperationId2(value2) {
|
|
585786
585950
|
return value2;
|
|
585787
585951
|
}
|
|
585952
|
+
function getGraphqlOperationIds2(node4) {
|
|
585953
|
+
const ids = new Set(node4.graphqlOperationIds ?? []);
|
|
585954
|
+
ids.add(node4.graphqlOperationId);
|
|
585955
|
+
return [...ids];
|
|
585956
|
+
}
|
|
585788
585957
|
function EnvironmentId23(value2) {
|
|
585789
585958
|
return value2;
|
|
585790
585959
|
}
|
|
@@ -585868,17 +586037,6 @@ function createDocsV1ReadClient2(options2) {
|
|
|
585868
586037
|
});
|
|
585869
586038
|
return createORPCClient(link3);
|
|
585870
586039
|
}
|
|
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
586040
|
function createLibraryDocsClient3(options2) {
|
|
585883
586041
|
const link3 = new OpenAPILink(libraryDocsContract2, {
|
|
585884
586042
|
url: `${options2.baseUrl}/v2/registry/docs`,
|
|
@@ -585929,8 +586087,7 @@ function createDocsV2WriteClient2(options2) {
|
|
|
585929
586087
|
function createDocsClient2(options2) {
|
|
585930
586088
|
return {
|
|
585931
586089
|
v1: {
|
|
585932
|
-
read: createDocsV1ReadClient2(options2)
|
|
585933
|
-
write: createDocsV1WriteClient2(options2)
|
|
586090
|
+
read: createDocsV1ReadClient2(options2)
|
|
585934
586091
|
},
|
|
585935
586092
|
v2: {
|
|
585936
586093
|
read: createDocsV2ReadClient2(options2),
|
|
@@ -586150,12 +586307,73 @@ function createFdrORPCClient2(options2) {
|
|
|
586150
586307
|
tokens: createTokensClient2(normalizedOptions)
|
|
586151
586308
|
};
|
|
586152
586309
|
}
|
|
586310
|
+
function createDocsV1WriteClient(options2) {
|
|
586311
|
+
const link3 = new OpenAPILink(docsV1WriteContract, {
|
|
586312
|
+
url: `${options2.baseUrl}/registry/docs`,
|
|
586313
|
+
headers: () => ({
|
|
586314
|
+
Authorization: `Bearer ${options2.token}`,
|
|
586315
|
+
...options2.headers
|
|
586316
|
+
}),
|
|
586317
|
+
...options2.fetch != null ? { fetch: options2.fetch } : {}
|
|
586318
|
+
});
|
|
586319
|
+
return createORPCClient(link3);
|
|
586320
|
+
}
|
|
586153
586321
|
function isDarkAndLight(colors19) {
|
|
586154
586322
|
return colors19.type === "darkAndLight";
|
|
586155
586323
|
}
|
|
586324
|
+
function addFileTokenPath(paths, value2) {
|
|
586325
|
+
if (typeof value2 === "string") {
|
|
586326
|
+
if (value2.startsWith(NAV_ICON_FILE_PREFIX) && value2.length > NAV_ICON_FILE_PREFIX.length) {
|
|
586327
|
+
paths.add(value2.slice(NAV_ICON_FILE_PREFIX.length));
|
|
586328
|
+
}
|
|
586329
|
+
return;
|
|
586330
|
+
}
|
|
586331
|
+
if (Array.isArray(value2)) {
|
|
586332
|
+
for (const item of value2) {
|
|
586333
|
+
addFileTokenPath(paths, item);
|
|
586334
|
+
}
|
|
586335
|
+
return;
|
|
586336
|
+
}
|
|
586337
|
+
if (value2 !== null && typeof value2 === "object") {
|
|
586338
|
+
for (const item of Object.values(value2)) {
|
|
586339
|
+
addFileTokenPath(paths, item);
|
|
586340
|
+
}
|
|
586341
|
+
}
|
|
586342
|
+
}
|
|
586343
|
+
function collectNavFilePaths(segments) {
|
|
586344
|
+
const paths = /* @__PURE__ */ new Set();
|
|
586345
|
+
const addIcon = (v3) => {
|
|
586346
|
+
if (v3?.startsWith(NAV_ICON_FILE_PREFIX)) {
|
|
586347
|
+
paths.add(v3.slice(NAV_ICON_FILE_PREFIX.length));
|
|
586348
|
+
}
|
|
586349
|
+
};
|
|
586350
|
+
const addImage = (v3) => {
|
|
586351
|
+
if (v3 != null && v3.length > 0) {
|
|
586352
|
+
paths.add(v3.startsWith(NAV_ICON_FILE_PREFIX) ? v3.slice(NAV_ICON_FILE_PREFIX.length) : v3);
|
|
586353
|
+
}
|
|
586354
|
+
};
|
|
586355
|
+
for (const raw of segments) {
|
|
586356
|
+
const seg = SegmentIconViewSchema.nullish().catch(void 0).parse(raw);
|
|
586357
|
+
if (seg == null) {
|
|
586358
|
+
continue;
|
|
586359
|
+
}
|
|
586360
|
+
addIcon(seg.metadata?.icon);
|
|
586361
|
+
addImage(seg.metadata?.image);
|
|
586362
|
+
for (const d2 of [seg.product, seg.version, seg.variant, seg.tab]) {
|
|
586363
|
+
addIcon(d2?.icon);
|
|
586364
|
+
addIcon(d2?.metadata?.icon);
|
|
586365
|
+
addImage(d2?.metadata?.image);
|
|
586366
|
+
}
|
|
586367
|
+
}
|
|
586368
|
+
return [...paths];
|
|
586369
|
+
}
|
|
586156
586370
|
function collectConfigFilePaths(config5) {
|
|
586157
586371
|
const paths = /* @__PURE__ */ new Set();
|
|
586158
586372
|
const view = ConfigViewSchema.parse(config5);
|
|
586373
|
+
const fileTokenView = ConfigFileTokenViewSchema.parse(config5);
|
|
586374
|
+
if (fileTokenView.landingPage != null) {
|
|
586375
|
+
addFileTokenPath(paths, fileTokenView.landingPage);
|
|
586376
|
+
}
|
|
586159
586377
|
if (view.favicon != null) {
|
|
586160
586378
|
paths.add(view.favicon);
|
|
586161
586379
|
}
|
|
@@ -586197,6 +586415,46 @@ function collectConfigFilePaths(config5) {
|
|
|
586197
586415
|
}
|
|
586198
586416
|
return [...paths];
|
|
586199
586417
|
}
|
|
586418
|
+
function detailSlug(metadata) {
|
|
586419
|
+
if (metadata == null || typeof metadata !== "object" || !("slug" in metadata)) {
|
|
586420
|
+
return void 0;
|
|
586421
|
+
}
|
|
586422
|
+
const slug = metadata.slug;
|
|
586423
|
+
return typeof slug === "string" ? slug : void 0;
|
|
586424
|
+
}
|
|
586425
|
+
function detailIdentity(dimension, detail) {
|
|
586426
|
+
if (detail == null) {
|
|
586427
|
+
return `${dimension}:none`;
|
|
586428
|
+
}
|
|
586429
|
+
const slug = detailSlug(detail.metadata);
|
|
586430
|
+
if (slug != null && slug !== "") {
|
|
586431
|
+
return `${dimension}:slug:${slug}`;
|
|
586432
|
+
}
|
|
586433
|
+
return detail.sortOrder != null ? `${dimension}:sort-order:${detail.sortOrder}` : `${dimension}:id:${detail.id ?? ""}`;
|
|
586434
|
+
}
|
|
586435
|
+
function ledgerSegmentIdentity(segment) {
|
|
586436
|
+
return [
|
|
586437
|
+
segment.section,
|
|
586438
|
+
segment.sortOrder,
|
|
586439
|
+
detailIdentity("product", segment.product),
|
|
586440
|
+
detailIdentity("version", segment.version),
|
|
586441
|
+
detailIdentity("variant", segment.variant),
|
|
586442
|
+
detailIdentity("tab", segment.tab)
|
|
586443
|
+
].join("|");
|
|
586444
|
+
}
|
|
586445
|
+
function selectLedgerSegmentsForLocale(segments, locale, defaultLocale) {
|
|
586446
|
+
const byIdentity = /* @__PURE__ */ new Map();
|
|
586447
|
+
for (const segment of segments) {
|
|
586448
|
+
const identity5 = ledgerSegmentIdentity(segment);
|
|
586449
|
+
const existing = byIdentity.get(identity5);
|
|
586450
|
+
const prefersRequestedLocale = segment.locale === locale && existing?.locale !== locale;
|
|
586451
|
+
const prefersDefaultLocale = segment.locale === defaultLocale && existing?.locale !== locale && existing?.locale !== defaultLocale;
|
|
586452
|
+
if (existing == null || prefersRequestedLocale || prefersDefaultLocale) {
|
|
586453
|
+
byIdentity.set(identity5, segment);
|
|
586454
|
+
}
|
|
586455
|
+
}
|
|
586456
|
+
return [...byIdentity.values()];
|
|
586457
|
+
}
|
|
586200
586458
|
function stableStringify(value2) {
|
|
586201
586459
|
return JSON.stringify(value2, (_key, val) => {
|
|
586202
586460
|
if (val != null && typeof val === "object" && !Array.isArray(val)) {
|
|
@@ -586216,9 +586474,9 @@ function isFernFileRef(value2) {
|
|
|
586216
586474
|
const hash5 = value2[FERN_FILE_REF_KEY];
|
|
586217
586475
|
return typeof hash5 === "string" && SHA256_RE.test(hash5);
|
|
586218
586476
|
}
|
|
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;
|
|
586477
|
+
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
586478
|
var init_orpc_client = __esm({
|
|
586221
|
-
"../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.
|
|
586479
|
+
"../../../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
586480
|
"use strict";
|
|
586223
586481
|
init_dist5();
|
|
586224
586482
|
init_dist5();
|
|
@@ -586248,8 +586506,6 @@ var init_orpc_client = __esm({
|
|
|
586248
586506
|
init_fetch3();
|
|
586249
586507
|
init_dist7();
|
|
586250
586508
|
init_zod2();
|
|
586251
|
-
init_zod2();
|
|
586252
|
-
init_zod2();
|
|
586253
586509
|
init_dist5();
|
|
586254
586510
|
init_fetch3();
|
|
586255
586511
|
init_dist7();
|
|
@@ -586262,9 +586518,7 @@ var init_orpc_client = __esm({
|
|
|
586262
586518
|
init_fetch3();
|
|
586263
586519
|
init_dist7();
|
|
586264
586520
|
init_zod2();
|
|
586265
|
-
|
|
586266
|
-
init_fetch3();
|
|
586267
|
-
init_dist7();
|
|
586521
|
+
init_zod2();
|
|
586268
586522
|
init_zod2();
|
|
586269
586523
|
init_dist5();
|
|
586270
586524
|
init_fetch3();
|
|
@@ -586316,6 +586570,10 @@ var init_orpc_client = __esm({
|
|
|
586316
586570
|
init_fetch3();
|
|
586317
586571
|
init_dist7();
|
|
586318
586572
|
init_zod2();
|
|
586573
|
+
init_dist5();
|
|
586574
|
+
init_fetch3();
|
|
586575
|
+
init_dist7();
|
|
586576
|
+
init_zod2();
|
|
586319
586577
|
init_zod2();
|
|
586320
586578
|
init_zod2();
|
|
586321
586579
|
init_dist7();
|
|
@@ -586999,6 +587257,7 @@ var init_orpc_client = __esm({
|
|
|
586999
587257
|
RegisterExampleEndpointCallSchema2 = objectType({
|
|
587000
587258
|
description: stringType().nullish(),
|
|
587001
587259
|
name: stringType().nullish(),
|
|
587260
|
+
contentType: stringType().nullish(),
|
|
587002
587261
|
path: stringType(),
|
|
587003
587262
|
pathParameters: recordType(PropertyKeySchema2, unknownType()),
|
|
587004
587263
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -587186,6 +587445,7 @@ var init_orpc_client = __esm({
|
|
|
587186
587445
|
RegisterApiDefinitionSchema2 = objectType({
|
|
587187
587446
|
rootPackage: RegisterApiDefinitionPackageSchema2,
|
|
587188
587447
|
apiName: stringType().nullish(),
|
|
587448
|
+
specVersion: stringType().nullish(),
|
|
587189
587449
|
types: recordType(TypeIdSchema2, RegisterTypeDefinitionSchema2),
|
|
587190
587450
|
subpackages: recordType(SubpackageIdSchema3, RegisterApiDefinitionSubpackageSchema2),
|
|
587191
587451
|
auth: ApiAuthSchema4.nullish(),
|
|
@@ -587565,6 +587825,7 @@ var init_orpc_client = __esm({
|
|
|
587565
587825
|
path: stringType(),
|
|
587566
587826
|
responseStatusCode: numberType().int(),
|
|
587567
587827
|
name: stringType().nullish(),
|
|
587828
|
+
contentType: stringType().nullish(),
|
|
587568
587829
|
pathParameters: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
587569
587830
|
queryParameters: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
587570
587831
|
headers: recordType(PropertyKeySchema2, unknownType()).nullish(),
|
|
@@ -587709,6 +587970,7 @@ var init_orpc_client = __esm({
|
|
|
587709
587970
|
LatestApiDefinitionSchema2 = objectType({
|
|
587710
587971
|
id: stringType(),
|
|
587711
587972
|
apiName: stringType().nullish(),
|
|
587973
|
+
specVersion: stringType().nullish(),
|
|
587712
587974
|
endpoints: recordType(EndpointIdSchema3, LatestEndpointDefinitionSchema2),
|
|
587713
587975
|
websockets: recordType(WebSocketIdSchema3, LatestWebSocketChannelSchema2),
|
|
587714
587976
|
webhooks: recordType(WebhookIdSchema3, LatestWebhookDefinitionSchema2),
|
|
@@ -587834,6 +588096,7 @@ var init_orpc_client = __esm({
|
|
|
587834
588096
|
ReadExampleEndpointCallSchema2 = objectType({
|
|
587835
588097
|
description: stringType().nullish(),
|
|
587836
588098
|
name: stringType().nullish(),
|
|
588099
|
+
contentType: stringType().nullish(),
|
|
587837
588100
|
path: stringType(),
|
|
587838
588101
|
pathParameters: recordType(PropertyKeySchema2, unknownType()),
|
|
587839
588102
|
queryParameters: recordType(stringType(), unknownType()),
|
|
@@ -587965,6 +588228,7 @@ var init_orpc_client = __esm({
|
|
|
587965
588228
|
ReadApiDefinitionSchema2 = objectType({
|
|
587966
588229
|
id: ApiDefinitionIdSchema3,
|
|
587967
588230
|
apiName: stringType().nullish(),
|
|
588231
|
+
specVersion: stringType().nullish(),
|
|
587968
588232
|
rootPackage: ReadApiDefinitionPackageSchema2,
|
|
587969
588233
|
types: recordType(TypeIdSchema2, ReadTypeDefinitionSchema2),
|
|
587970
588234
|
subpackages: recordType(SubpackageIdSchema3, ReadApiDefinitionSubpackageSchema2),
|
|
@@ -588081,6 +588345,7 @@ var init_orpc_client = __esm({
|
|
|
588081
588345
|
DbApiDefinitionSchema2 = objectType({
|
|
588082
588346
|
id: ApiDefinitionIdSchema3,
|
|
588083
588347
|
apiName: stringType().nullish(),
|
|
588348
|
+
specVersion: stringType().nullish(),
|
|
588084
588349
|
rootPackage: DbApiDefinitionPackageSchema2,
|
|
588085
588350
|
types: recordType(TypeIdSchema2, RegisterTypeDefinitionSchema2),
|
|
588086
588351
|
subpackages: recordType(SubpackageIdSchema3, DbApiDefinitionSubpackageSchema2),
|
|
@@ -588452,6 +588717,7 @@ var init_orpc_client = __esm({
|
|
|
588452
588717
|
objectType({ type: literalType("rem"), value: numberType() })
|
|
588453
588718
|
]);
|
|
588454
588719
|
TabsAlignmentSchema2 = enumType(["LEFT", "CENTER"]);
|
|
588720
|
+
ChangelogLayoutSchema2 = enumType(["timeline", "classic"]);
|
|
588455
588721
|
DocsLayoutConfigSchema2 = objectType({
|
|
588456
588722
|
pageWidth: PageWidthSizeConfigSchema2.optional(),
|
|
588457
588723
|
contentWidth: SizeConfigSchema2.optional(),
|
|
@@ -588465,7 +588731,8 @@ var init_orpc_client = __esm({
|
|
|
588465
588731
|
disableHeader: booleanType().optional(),
|
|
588466
588732
|
hideNavLinks: booleanType().optional(),
|
|
588467
588733
|
hideFeedback: booleanType().optional(),
|
|
588468
|
-
mobileToc: booleanType().optional()
|
|
588734
|
+
mobileToc: booleanType().optional(),
|
|
588735
|
+
changelogLayout: ChangelogLayoutSchema2.optional()
|
|
588469
588736
|
});
|
|
588470
588737
|
FooterNavConfigSchema2 = enumType(["default", "minimal"]);
|
|
588471
588738
|
DocsSidebarConfigSchema2 = enumType(["default", "minimal"]);
|
|
@@ -588479,7 +588746,7 @@ var init_orpc_client = __esm({
|
|
|
588479
588746
|
DocsTabsConfigSchema2 = unionType([DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2]);
|
|
588480
588747
|
DocsPageActionsConfigSchema2 = enumType(["default", "toolbar"]);
|
|
588481
588748
|
LanguageSwitcherConfigSchema2 = enumType(["default", "minimal"]);
|
|
588482
|
-
ProductSwitcherConfigSchema2 = enumType(["default", "toggle"]);
|
|
588749
|
+
ProductSwitcherConfigSchema2 = enumType(["default", "toggle", "tabs"]);
|
|
588483
588750
|
DocsThemeConfigSchema2 = objectType({
|
|
588484
588751
|
sidebar: DocsSidebarConfigSchema2.optional(),
|
|
588485
588752
|
body: DocsBodyConfigSchema2.optional(),
|
|
@@ -588613,7 +588880,10 @@ var init_orpc_client = __esm({
|
|
|
588613
588880
|
JsScriptStrategySchema2 = enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]);
|
|
588614
588881
|
JsRemoteConfigSchema2 = objectType({
|
|
588615
588882
|
url: UrlSchema22,
|
|
588616
|
-
strategy: JsScriptStrategySchema2.optional()
|
|
588883
|
+
strategy: JsScriptStrategySchema2.optional(),
|
|
588884
|
+
// When true, skip computing a Subresource Integrity (SRI) hash for this
|
|
588885
|
+
// remote script so it is rendered without an `integrity` attribute.
|
|
588886
|
+
disableSri: booleanType().optional()
|
|
588617
588887
|
});
|
|
588618
588888
|
JsFileConfigSchema2 = objectType({
|
|
588619
588889
|
fileId: FileIdSchema22,
|
|
@@ -588693,7 +588963,8 @@ var init_orpc_client = __esm({
|
|
|
588693
588963
|
model: AIModelSchema2.optional(),
|
|
588694
588964
|
systemPrompt: stringType().optional(),
|
|
588695
588965
|
location: arrayType(AIChatLocationSchema2).optional(),
|
|
588696
|
-
datasources: arrayType(AIChatDatasourceSchema2).optional()
|
|
588966
|
+
datasources: arrayType(AIChatDatasourceSchema2).optional(),
|
|
588967
|
+
maskPii: booleanType().optional()
|
|
588697
588968
|
});
|
|
588698
588969
|
PageDescriptionSourceSchema2 = enumType(["description", "subtitle"]);
|
|
588699
588970
|
AgentsConfigSchema2 = objectType({
|
|
@@ -588754,6 +589025,7 @@ var init_orpc_client = __esm({
|
|
|
588754
589025
|
cursor: booleanType().optional(),
|
|
588755
589026
|
claudeCode: booleanType().optional(),
|
|
588756
589027
|
vscode: booleanType().optional(),
|
|
589028
|
+
mcp: booleanType().optional(),
|
|
588757
589029
|
custom: arrayType(CustomPageActionSchema2).optional(),
|
|
588758
589030
|
skills: SkillsConfigSchema2.optional()
|
|
588759
589031
|
});
|
|
@@ -589060,6 +589332,170 @@ var init_orpc_client = __esm({
|
|
|
589060
589332
|
getDocsForDomainLegacy: oc.route({ method: "GET", path: "/load/{domain}" }).input(GetDocsForDomainLegacyInputSchema2).output(DocsDefinitionSchema3),
|
|
589061
589333
|
getDocsForDomain: oc.route({ method: "POST", path: "/load" }).input(GetDocsForDomainInputSchema2).output(DocsDefinitionSchema3)
|
|
589062
589334
|
};
|
|
589335
|
+
ALLOWED_HOSTNAMES2 = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
589336
|
+
GithubUrlSchema2 = stringType().url().describe(
|
|
589337
|
+
"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>."
|
|
589338
|
+
).refine(
|
|
589339
|
+
(url3) => {
|
|
589340
|
+
try {
|
|
589341
|
+
const parsed = new URL(url3);
|
|
589342
|
+
if (parsed.protocol !== "https:") {
|
|
589343
|
+
return false;
|
|
589344
|
+
}
|
|
589345
|
+
if (!ALLOWED_HOSTNAMES2.has(parsed.hostname)) {
|
|
589346
|
+
return false;
|
|
589347
|
+
}
|
|
589348
|
+
if (parsed.username || parsed.password) {
|
|
589349
|
+
return false;
|
|
589350
|
+
}
|
|
589351
|
+
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
589352
|
+
} catch {
|
|
589353
|
+
return false;
|
|
589354
|
+
}
|
|
589355
|
+
},
|
|
589356
|
+
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
589357
|
+
);
|
|
589358
|
+
SafeBranchSchema2 = stringType().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
589359
|
+
SafePackagePathSchema2 = stringType().refine((p6) => !p6.includes("..") && !p6.startsWith("/"), {
|
|
589360
|
+
message: "packagePath must not contain path traversal sequences"
|
|
589361
|
+
}).nullish();
|
|
589362
|
+
LibraryDocsBaseConfigSchema2 = objectType({
|
|
589363
|
+
branch: SafeBranchSchema2,
|
|
589364
|
+
packagePath: SafePackagePathSchema2,
|
|
589365
|
+
title: stringType().nullish(),
|
|
589366
|
+
slug: stringType().nullish()
|
|
589367
|
+
});
|
|
589368
|
+
PythonLibraryDocsConfigSchema2 = LibraryDocsBaseConfigSchema2;
|
|
589369
|
+
CppLibraryDocsConfigSchema2 = LibraryDocsBaseConfigSchema2.extend({
|
|
589370
|
+
doxyfileContent: stringType().nullish()
|
|
589371
|
+
});
|
|
589372
|
+
StartLibraryDocsGenerationInputSchema2 = discriminatedUnionType("language", [
|
|
589373
|
+
objectType({
|
|
589374
|
+
orgId: stringType(),
|
|
589375
|
+
githubUrl: GithubUrlSchema2,
|
|
589376
|
+
language: literalType("PYTHON"),
|
|
589377
|
+
config: PythonLibraryDocsConfigSchema2.nullish()
|
|
589378
|
+
}),
|
|
589379
|
+
objectType({
|
|
589380
|
+
orgId: stringType(),
|
|
589381
|
+
githubUrl: GithubUrlSchema2,
|
|
589382
|
+
language: literalType("CPP"),
|
|
589383
|
+
config: CppLibraryDocsConfigSchema2.nullish()
|
|
589384
|
+
})
|
|
589385
|
+
]);
|
|
589386
|
+
StartLibraryDocsGenerationResponseSchema2 = objectType({
|
|
589387
|
+
jobId: stringType()
|
|
589388
|
+
});
|
|
589389
|
+
GetLibraryDocsStatusInputSchema2 = objectType({
|
|
589390
|
+
jobId: stringType()
|
|
589391
|
+
});
|
|
589392
|
+
LibraryDocsResultSchema2 = objectType({
|
|
589393
|
+
jobId: stringType(),
|
|
589394
|
+
resultUrl: stringType()
|
|
589395
|
+
});
|
|
589396
|
+
LibraryDocsGenerationStatusSchema2 = objectType({
|
|
589397
|
+
jobId: stringType(),
|
|
589398
|
+
status: stringType(),
|
|
589399
|
+
progress: stringType(),
|
|
589400
|
+
error: objectType({
|
|
589401
|
+
code: stringType(),
|
|
589402
|
+
message: stringType()
|
|
589403
|
+
}).optional(),
|
|
589404
|
+
createdAt: stringType(),
|
|
589405
|
+
updatedAt: stringType()
|
|
589406
|
+
});
|
|
589407
|
+
libraryDocsContract2 = {
|
|
589408
|
+
startLibraryDocsGeneration: oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema2).output(StartLibraryDocsGenerationResponseSchema2),
|
|
589409
|
+
getLibraryDocsGenerationStatus: oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema2).output(LibraryDocsGenerationStatusSchema2),
|
|
589410
|
+
getLibraryDocsResult: oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema2).output(LibraryDocsResultSchema2)
|
|
589411
|
+
};
|
|
589412
|
+
GetOrganizationForUrlInputSchema2 = objectType({
|
|
589413
|
+
url: stringType()
|
|
589414
|
+
});
|
|
589415
|
+
organizationContract2 = {
|
|
589416
|
+
getOrganizationForUrl: oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema2).output(stringType())
|
|
589417
|
+
};
|
|
589418
|
+
GetDocsUrlMetadataInputSchema2 = objectType({
|
|
589419
|
+
url: stringType()
|
|
589420
|
+
});
|
|
589421
|
+
GetDocsUrlMetadataResponseSchema2 = objectType({
|
|
589422
|
+
isPreviewUrl: booleanType(),
|
|
589423
|
+
org: stringType(),
|
|
589424
|
+
url: stringType(),
|
|
589425
|
+
gitUrl: stringType().nullish(),
|
|
589426
|
+
enableAlgoliaOnPreview: booleanType().nullish()
|
|
589427
|
+
});
|
|
589428
|
+
GetDocsForUrlInputSchema2 = objectType({
|
|
589429
|
+
url: stringType(),
|
|
589430
|
+
excludeApis: booleanType().nullish()
|
|
589431
|
+
});
|
|
589432
|
+
GetPrivateDocsForUrlInputSchema2 = objectType({
|
|
589433
|
+
url: stringType()
|
|
589434
|
+
});
|
|
589435
|
+
ListAllDocsUrlsInputSchema2 = objectType({
|
|
589436
|
+
limit: numberType().nullish(),
|
|
589437
|
+
page: numberType().nullish(),
|
|
589438
|
+
custom: booleanType().nullish(),
|
|
589439
|
+
preview: booleanType().nullish()
|
|
589440
|
+
});
|
|
589441
|
+
GetDocsConfigByIdInputSchema2 = objectType({
|
|
589442
|
+
docsConfigId: stringType()
|
|
589443
|
+
});
|
|
589444
|
+
GetSiteMetricsInputSchema2 = objectType({
|
|
589445
|
+
url: stringType()
|
|
589446
|
+
});
|
|
589447
|
+
SiteMetricsSchema2 = objectType({
|
|
589448
|
+
orgId: stringType().optional(),
|
|
589449
|
+
domain: stringType(),
|
|
589450
|
+
basepath: stringType().optional(),
|
|
589451
|
+
storageType: enumType(["ledger", "legacy"]),
|
|
589452
|
+
pages: numberType(),
|
|
589453
|
+
endpoints: numberType(),
|
|
589454
|
+
apiSpecs: numberType()
|
|
589455
|
+
});
|
|
589456
|
+
DocsDefinitionField2 = {
|
|
589457
|
+
BaseUrl: "BASE_URL",
|
|
589458
|
+
FilesV2: "FILES_V2",
|
|
589459
|
+
ApisV2: "APIS_V2",
|
|
589460
|
+
Apis: "APIS",
|
|
589461
|
+
Pages: "PAGES",
|
|
589462
|
+
JsFiles: "JS_FILES",
|
|
589463
|
+
Config: "CONFIG",
|
|
589464
|
+
Root: "ROOT"
|
|
589465
|
+
};
|
|
589466
|
+
GetDocsConfigByIdResponseSchema2 = objectType({
|
|
589467
|
+
docsConfig: DocsConfigSchema3,
|
|
589468
|
+
apis: recordType(stringType(), unknownType())
|
|
589469
|
+
});
|
|
589470
|
+
DocsDomainItemSchema2 = objectType({
|
|
589471
|
+
domain: stringType(),
|
|
589472
|
+
basePath: stringType().optional(),
|
|
589473
|
+
organizationId: stringType(),
|
|
589474
|
+
updatedAt: stringType()
|
|
589475
|
+
});
|
|
589476
|
+
ListAllDocsUrlsResponseSchema2 = objectType({
|
|
589477
|
+
urls: arrayType(DocsDomainItemSchema2)
|
|
589478
|
+
});
|
|
589479
|
+
((getDocsForUrl22) => {
|
|
589480
|
+
let Error49;
|
|
589481
|
+
((Error210) => {
|
|
589482
|
+
function _unknown2(fetcherError) {
|
|
589483
|
+
return { error: void 0, content: fetcherError };
|
|
589484
|
+
}
|
|
589485
|
+
Error210._unknown = _unknown2;
|
|
589486
|
+
})(Error49 = getDocsForUrl22.Error || (getDocsForUrl22.Error = {}));
|
|
589487
|
+
})(getDocsForUrl2 || (getDocsForUrl2 = {}));
|
|
589488
|
+
docsV2ReadContract2 = {
|
|
589489
|
+
getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema2).output(GetDocsUrlMetadataResponseSchema2),
|
|
589490
|
+
getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema2).output(LoadDocsForUrlResponseSchema2),
|
|
589491
|
+
getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema2).output(LoadDocsForUrlResponseSchema2),
|
|
589492
|
+
listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema2).output(ListAllDocsUrlsResponseSchema2),
|
|
589493
|
+
getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema2).output(GetDocsConfigByIdResponseSchema2),
|
|
589494
|
+
getSiteMetrics: oc.route({ method: "POST", path: "/admin/site-metrics" }).input(GetSiteMetricsInputSchema2).output(SiteMetricsSchema2),
|
|
589495
|
+
prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(voidType()),
|
|
589496
|
+
ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(voidType()),
|
|
589497
|
+
getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(voidType())
|
|
589498
|
+
};
|
|
589063
589499
|
OrgIdSchema22 = stringType();
|
|
589064
589500
|
FilePathSchema3 = stringType();
|
|
589065
589501
|
DocsRegistrationIdSchema2 = stringType();
|
|
@@ -589371,175 +589807,6 @@ var init_orpc_client = __esm({
|
|
|
589371
589807
|
overlappingDomains: arrayType(arrayType(stringType()))
|
|
589372
589808
|
});
|
|
589373
589809
|
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
|
-
ALLOWED_HOSTNAMES2 = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
589393
|
-
GithubUrlSchema2 = stringType().url().describe(
|
|
589394
|
-
"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>."
|
|
589395
|
-
).refine(
|
|
589396
|
-
(url3) => {
|
|
589397
|
-
try {
|
|
589398
|
-
const parsed = new URL(url3);
|
|
589399
|
-
if (parsed.protocol !== "https:") {
|
|
589400
|
-
return false;
|
|
589401
|
-
}
|
|
589402
|
-
if (!ALLOWED_HOSTNAMES2.has(parsed.hostname)) {
|
|
589403
|
-
return false;
|
|
589404
|
-
}
|
|
589405
|
-
if (parsed.username || parsed.password) {
|
|
589406
|
-
return false;
|
|
589407
|
-
}
|
|
589408
|
-
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
589409
|
-
} catch {
|
|
589410
|
-
return false;
|
|
589411
|
-
}
|
|
589412
|
-
},
|
|
589413
|
-
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
589414
|
-
);
|
|
589415
|
-
SafeBranchSchema2 = stringType().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
589416
|
-
SafePackagePathSchema2 = stringType().refine((p6) => !p6.includes("..") && !p6.startsWith("/"), {
|
|
589417
|
-
message: "packagePath must not contain path traversal sequences"
|
|
589418
|
-
}).nullish();
|
|
589419
|
-
LibraryDocsBaseConfigSchema2 = objectType({
|
|
589420
|
-
branch: SafeBranchSchema2,
|
|
589421
|
-
packagePath: SafePackagePathSchema2,
|
|
589422
|
-
title: stringType().nullish(),
|
|
589423
|
-
slug: stringType().nullish()
|
|
589424
|
-
});
|
|
589425
|
-
PythonLibraryDocsConfigSchema2 = LibraryDocsBaseConfigSchema2;
|
|
589426
|
-
CppLibraryDocsConfigSchema2 = LibraryDocsBaseConfigSchema2.extend({
|
|
589427
|
-
doxyfileContent: stringType().nullish()
|
|
589428
|
-
});
|
|
589429
|
-
StartLibraryDocsGenerationInputSchema2 = discriminatedUnionType("language", [
|
|
589430
|
-
objectType({
|
|
589431
|
-
orgId: stringType(),
|
|
589432
|
-
githubUrl: GithubUrlSchema2,
|
|
589433
|
-
language: literalType("PYTHON"),
|
|
589434
|
-
config: PythonLibraryDocsConfigSchema2.nullish()
|
|
589435
|
-
}),
|
|
589436
|
-
objectType({
|
|
589437
|
-
orgId: stringType(),
|
|
589438
|
-
githubUrl: GithubUrlSchema2,
|
|
589439
|
-
language: literalType("CPP"),
|
|
589440
|
-
config: CppLibraryDocsConfigSchema2.nullish()
|
|
589441
|
-
})
|
|
589442
|
-
]);
|
|
589443
|
-
StartLibraryDocsGenerationResponseSchema2 = objectType({
|
|
589444
|
-
jobId: stringType()
|
|
589445
|
-
});
|
|
589446
|
-
GetLibraryDocsStatusInputSchema2 = objectType({
|
|
589447
|
-
jobId: stringType()
|
|
589448
|
-
});
|
|
589449
|
-
LibraryDocsResultSchema2 = objectType({
|
|
589450
|
-
jobId: stringType(),
|
|
589451
|
-
resultUrl: stringType()
|
|
589452
|
-
});
|
|
589453
|
-
LibraryDocsGenerationStatusSchema2 = objectType({
|
|
589454
|
-
jobId: stringType(),
|
|
589455
|
-
status: stringType(),
|
|
589456
|
-
progress: stringType(),
|
|
589457
|
-
error: objectType({
|
|
589458
|
-
code: stringType(),
|
|
589459
|
-
message: stringType()
|
|
589460
|
-
}).optional(),
|
|
589461
|
-
createdAt: stringType(),
|
|
589462
|
-
updatedAt: stringType()
|
|
589463
|
-
});
|
|
589464
|
-
libraryDocsContract2 = {
|
|
589465
|
-
startLibraryDocsGeneration: oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema2).output(StartLibraryDocsGenerationResponseSchema2),
|
|
589466
|
-
getLibraryDocsGenerationStatus: oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema2).output(LibraryDocsGenerationStatusSchema2),
|
|
589467
|
-
getLibraryDocsResult: oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema2).output(LibraryDocsResultSchema2)
|
|
589468
|
-
};
|
|
589469
|
-
GetOrganizationForUrlInputSchema2 = objectType({
|
|
589470
|
-
url: stringType()
|
|
589471
|
-
});
|
|
589472
|
-
organizationContract2 = {
|
|
589473
|
-
getOrganizationForUrl: oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema2).output(stringType())
|
|
589474
|
-
};
|
|
589475
|
-
GetDocsUrlMetadataInputSchema2 = objectType({
|
|
589476
|
-
url: stringType()
|
|
589477
|
-
});
|
|
589478
|
-
GetDocsUrlMetadataResponseSchema2 = objectType({
|
|
589479
|
-
isPreviewUrl: booleanType(),
|
|
589480
|
-
org: stringType(),
|
|
589481
|
-
url: stringType(),
|
|
589482
|
-
gitUrl: stringType().nullish(),
|
|
589483
|
-
enableAlgoliaOnPreview: booleanType().nullish()
|
|
589484
|
-
});
|
|
589485
|
-
GetDocsForUrlInputSchema2 = objectType({
|
|
589486
|
-
url: stringType(),
|
|
589487
|
-
excludeApis: booleanType().nullish()
|
|
589488
|
-
});
|
|
589489
|
-
GetPrivateDocsForUrlInputSchema2 = objectType({
|
|
589490
|
-
url: stringType()
|
|
589491
|
-
});
|
|
589492
|
-
ListAllDocsUrlsInputSchema2 = objectType({
|
|
589493
|
-
limit: numberType().nullish(),
|
|
589494
|
-
page: numberType().nullish(),
|
|
589495
|
-
custom: booleanType().nullish(),
|
|
589496
|
-
preview: booleanType().nullish()
|
|
589497
|
-
});
|
|
589498
|
-
GetDocsConfigByIdInputSchema2 = objectType({
|
|
589499
|
-
docsConfigId: stringType()
|
|
589500
|
-
});
|
|
589501
|
-
DocsDefinitionField2 = {
|
|
589502
|
-
BaseUrl: "BASE_URL",
|
|
589503
|
-
FilesV2: "FILES_V2",
|
|
589504
|
-
ApisV2: "APIS_V2",
|
|
589505
|
-
Apis: "APIS",
|
|
589506
|
-
Pages: "PAGES",
|
|
589507
|
-
JsFiles: "JS_FILES",
|
|
589508
|
-
Config: "CONFIG",
|
|
589509
|
-
Root: "ROOT"
|
|
589510
|
-
};
|
|
589511
|
-
GetDocsConfigByIdResponseSchema2 = objectType({
|
|
589512
|
-
docsConfig: DocsConfigSchema3,
|
|
589513
|
-
apis: recordType(stringType(), unknownType())
|
|
589514
|
-
});
|
|
589515
|
-
DocsDomainItemSchema2 = objectType({
|
|
589516
|
-
domain: stringType(),
|
|
589517
|
-
basePath: stringType().optional(),
|
|
589518
|
-
organizationId: stringType(),
|
|
589519
|
-
updatedAt: stringType()
|
|
589520
|
-
});
|
|
589521
|
-
ListAllDocsUrlsResponseSchema2 = objectType({
|
|
589522
|
-
urls: arrayType(DocsDomainItemSchema2)
|
|
589523
|
-
});
|
|
589524
|
-
((getDocsForUrl22) => {
|
|
589525
|
-
let Error49;
|
|
589526
|
-
((Error210) => {
|
|
589527
|
-
function _unknown2(fetcherError) {
|
|
589528
|
-
return { error: void 0, content: fetcherError };
|
|
589529
|
-
}
|
|
589530
|
-
Error210._unknown = _unknown2;
|
|
589531
|
-
})(Error49 = getDocsForUrl22.Error || (getDocsForUrl22.Error = {}));
|
|
589532
|
-
})(getDocsForUrl2 || (getDocsForUrl2 = {}));
|
|
589533
|
-
docsV2ReadContract2 = {
|
|
589534
|
-
getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema2).output(GetDocsUrlMetadataResponseSchema2),
|
|
589535
|
-
getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema2).output(LoadDocsForUrlResponseSchema2),
|
|
589536
|
-
getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema2).output(LoadDocsForUrlResponseSchema2),
|
|
589537
|
-
listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema2).output(ListAllDocsUrlsResponseSchema2),
|
|
589538
|
-
getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema2).output(GetDocsConfigByIdResponseSchema2),
|
|
589539
|
-
prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(voidType()),
|
|
589540
|
-
ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(voidType()),
|
|
589541
|
-
getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(voidType())
|
|
589542
|
-
};
|
|
589543
589810
|
FilePathSchema22 = stringType();
|
|
589544
589811
|
FilePathInputSchema2 = unionType([
|
|
589545
589812
|
FilePathSchema22,
|
|
@@ -589809,7 +590076,8 @@ var init_orpc_client = __esm({
|
|
|
589809
590076
|
remote: arrayType(
|
|
589810
590077
|
objectType({
|
|
589811
590078
|
url: stringType(),
|
|
589812
|
-
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
590079
|
+
strategy: enumType(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional(),
|
|
590080
|
+
disableSri: booleanType().optional()
|
|
589813
590081
|
})
|
|
589814
590082
|
).optional(),
|
|
589815
590083
|
files: arrayType(LedgerJsFileSchema2).optional(),
|
|
@@ -589839,6 +590107,7 @@ var init_orpc_client = __esm({
|
|
|
589839
590107
|
});
|
|
589840
590108
|
LedgerConfigSchema2 = objectType({
|
|
589841
590109
|
title: stringType().optional(),
|
|
590110
|
+
rootSlug: stringType().optional(),
|
|
589842
590111
|
defaultLanguage: stringType().optional(),
|
|
589843
590112
|
translations: objectType({
|
|
589844
590113
|
defaultLocale: stringType(),
|
|
@@ -589869,6 +590138,18 @@ var init_orpc_client = __esm({
|
|
|
589869
590138
|
aiChatConfig: AIChatFieldSchema2.optional(),
|
|
589870
590139
|
pageActions: PageActionsFieldSchema2.optional(),
|
|
589871
590140
|
editThisPageLaunch: enumType(["github", "dashboard"]).optional(),
|
|
590141
|
+
/**
|
|
590142
|
+
* Explicit edit-this-page GitHub config from docs.yml (ADR 0012 parity).
|
|
590143
|
+
* When present, the loader synthesises `editThisPageUrl` from these fields
|
|
590144
|
+
* instead of relying on deployment-scoped git provenance. This matches the
|
|
590145
|
+
* v2 behaviour where the CLI derives the URL from the declared config.
|
|
590146
|
+
*/
|
|
590147
|
+
editThisPageGithub: objectType({
|
|
590148
|
+
owner: stringType(),
|
|
590149
|
+
repo: stringType(),
|
|
590150
|
+
branch: stringType().default("main"),
|
|
590151
|
+
host: stringType().default("https://github.com")
|
|
590152
|
+
}).optional(),
|
|
589872
590153
|
header: stringType().optional(),
|
|
589873
590154
|
footer: stringType().optional()
|
|
589874
590155
|
});
|
|
@@ -589918,6 +590199,7 @@ var init_orpc_client = __esm({
|
|
|
589918
590199
|
title: stringType().optional(),
|
|
589919
590200
|
slug: stringType().optional(),
|
|
589920
590201
|
icon: stringType().optional(),
|
|
590202
|
+
authed: booleanType().optional(),
|
|
589921
590203
|
viewers: MetadataStringArraySchema2.optional(),
|
|
589922
590204
|
orphaned: booleanType().optional(),
|
|
589923
590205
|
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
@@ -589948,36 +590230,48 @@ var init_orpc_client = __esm({
|
|
|
589948
590230
|
type: literalType("section"),
|
|
589949
590231
|
title: stringType().optional(),
|
|
589950
590232
|
icon: stringType().optional(),
|
|
590233
|
+
authed: booleanType().optional(),
|
|
589951
590234
|
collapsed: CollapsedSchema2.optional(),
|
|
589952
590235
|
collapsible: booleanType().optional(),
|
|
589953
590236
|
collapsedByDefault: booleanType().optional(),
|
|
589954
590237
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589955
590238
|
overviewPageId: stringType().optional(),
|
|
590239
|
+
noindex: booleanType().optional(),
|
|
589956
590240
|
pointsTo: stringType().optional(),
|
|
589957
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590241
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590242
|
+
orphaned: booleanType().optional(),
|
|
590243
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589958
590244
|
}),
|
|
589959
590245
|
LedgerMetadataBaseSchema2.extend({
|
|
589960
590246
|
type: literalType("apiReference"),
|
|
589961
590247
|
title: stringType().optional(),
|
|
589962
590248
|
icon: stringType().optional(),
|
|
590249
|
+
authed: booleanType().optional(),
|
|
589963
590250
|
apiDefinitionId: stringType().optional(),
|
|
589964
590251
|
overviewPageId: stringType().optional(),
|
|
590252
|
+
noindex: booleanType().optional(),
|
|
589965
590253
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589966
590254
|
pointsTo: stringType().optional(),
|
|
589967
590255
|
paginated: booleanType().optional(),
|
|
589968
590256
|
showErrors: booleanType().optional(),
|
|
589969
590257
|
hideTitle: booleanType().optional(),
|
|
589970
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590258
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590259
|
+
orphaned: booleanType().optional(),
|
|
590260
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589971
590261
|
}),
|
|
589972
590262
|
LedgerMetadataBaseSchema2.extend({
|
|
589973
590263
|
type: literalType("apiPackage"),
|
|
589974
590264
|
title: stringType().optional(),
|
|
589975
590265
|
icon: stringType().optional(),
|
|
590266
|
+
authed: booleanType().optional(),
|
|
589976
590267
|
apiDefinitionId: stringType().optional(),
|
|
589977
590268
|
overviewPageId: stringType().optional(),
|
|
590269
|
+
noindex: booleanType().optional(),
|
|
589978
590270
|
availability: LedgerAvailabilitySchema2.optional(),
|
|
589979
590271
|
pointsTo: stringType().optional(),
|
|
589980
|
-
viewers: MetadataStringArraySchema2.optional()
|
|
590272
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590273
|
+
orphaned: booleanType().optional(),
|
|
590274
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589981
590275
|
}),
|
|
589982
590276
|
LedgerMetadataBaseSchema2.extend({
|
|
589983
590277
|
type: literalType("changelog"),
|
|
@@ -589985,13 +590279,23 @@ var init_orpc_client = __esm({
|
|
|
589985
590279
|
icon: stringType().optional(),
|
|
589986
590280
|
overviewPageId: stringType().optional(),
|
|
589987
590281
|
apiDefinitionId: stringType().optional(),
|
|
589988
|
-
|
|
590282
|
+
noindex: booleanType().optional(),
|
|
590283
|
+
authed: booleanType().optional(),
|
|
590284
|
+
viewers: MetadataStringArraySchema2.optional(),
|
|
590285
|
+
orphaned: booleanType().optional(),
|
|
590286
|
+
featureFlags: FeatureFlagMetadataSchema2.optional()
|
|
589989
590287
|
}),
|
|
589990
590288
|
LedgerMetadataBaseSchema2.extend({
|
|
589991
590289
|
type: literalType("files")
|
|
589992
590290
|
}),
|
|
589993
590291
|
LedgerMetadataBaseSchema2.extend({
|
|
589994
590292
|
type: literalType("redirects")
|
|
590293
|
+
}),
|
|
590294
|
+
LedgerMetadataBaseSchema2.extend({
|
|
590295
|
+
type: literalType("productLink")
|
|
590296
|
+
}),
|
|
590297
|
+
LedgerMetadataBaseSchema2.extend({
|
|
590298
|
+
type: literalType("tabLink")
|
|
589995
590299
|
})
|
|
589996
590300
|
]);
|
|
589997
590301
|
LedgerSegmentMetadataSchema2 = LedgerSegmentMetadataObjectSchema2;
|
|
@@ -590029,10 +590333,9 @@ var init_orpc_client = __esm({
|
|
|
590029
590333
|
operationType: GraphQlOperationTypeSchema2
|
|
590030
590334
|
});
|
|
590031
590335
|
LedgerChangelogEntryMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590032
|
-
|
|
590033
|
-
slug: stringType().optional(),
|
|
590034
|
-
icon: stringType().optional(),
|
|
590336
|
+
...NodeMetadataFields2,
|
|
590035
590337
|
pageId: stringType(),
|
|
590338
|
+
noindex: booleanType().optional(),
|
|
590036
590339
|
date: stringType().optional(),
|
|
590037
590340
|
tags: MetadataStringArraySchema2.optional()
|
|
590038
590341
|
});
|
|
@@ -590045,13 +590348,26 @@ var init_orpc_client = __esm({
|
|
|
590045
590348
|
});
|
|
590046
590349
|
LedgerFileArtifactMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590047
590350
|
contentType: stringType(),
|
|
590351
|
+
contentLength: numberType().optional(),
|
|
590048
590352
|
filename: stringType(),
|
|
590049
590353
|
width: numberType().optional(),
|
|
590050
590354
|
height: numberType().optional(),
|
|
590051
590355
|
blurDataURL: stringType().optional()
|
|
590052
590356
|
});
|
|
590357
|
+
LedgerStructuralRedirectKindSchema2 = enumType([
|
|
590358
|
+
"root",
|
|
590359
|
+
"product",
|
|
590360
|
+
"version",
|
|
590361
|
+
"variant",
|
|
590362
|
+
"tab",
|
|
590363
|
+
"section",
|
|
590364
|
+
"api-section"
|
|
590365
|
+
]);
|
|
590366
|
+
LedgerRedirectKindSchema2 = enumType(["structural", "link"]);
|
|
590053
590367
|
LedgerRedirectMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
|
|
590054
|
-
href: stringType().optional()
|
|
590368
|
+
href: stringType().optional(),
|
|
590369
|
+
redirectKind: LedgerRedirectKindSchema2.optional(),
|
|
590370
|
+
structuralKind: LedgerStructuralRedirectKindSchema2.optional()
|
|
590055
590371
|
});
|
|
590056
590372
|
LedgerArtifactMetadataSchema2 = unionType([
|
|
590057
590373
|
LedgerMarkdownMetadataSchema2,
|
|
@@ -590145,6 +590461,7 @@ var init_orpc_client = __esm({
|
|
|
590145
590461
|
orgId: stringType(),
|
|
590146
590462
|
domain: stringType(),
|
|
590147
590463
|
basepath: stringType().default(""),
|
|
590464
|
+
basepathAware: booleanType().nullish(),
|
|
590148
590465
|
/**
|
|
590149
590466
|
* Additional URLs the deployment should be served from (e.g. a customer's
|
|
590150
590467
|
* vanity hostname `docs.example.com` alongside the canonical fern URL).
|
|
@@ -590169,7 +590486,7 @@ var init_orpc_client = __esm({
|
|
|
590169
590486
|
path: ["defaultLocale"]
|
|
590170
590487
|
});
|
|
590171
590488
|
DocsPublishInputSchema2 = DocsPublishInputSchemaInternal2;
|
|
590172
|
-
LedgerPreviewRegisterInputSchemaInternal2 = DocsContentFieldsSchema2.extend({
|
|
590489
|
+
LedgerPreviewRegisterInputSchemaInternal2 = DocsContentFieldsSchema2.partial().extend({
|
|
590173
590490
|
orgId: stringType(),
|
|
590174
590491
|
/**
|
|
590175
590492
|
* Optional caller-supplied identifier for the preview hostname. Sanitized
|
|
@@ -590184,7 +590501,33 @@ var init_orpc_client = __esm({
|
|
|
590184
590501
|
* Mirrors V2's `basePath` — most preview publishes leave this empty,
|
|
590185
590502
|
* but explicit subpath previews (`/v2`) are supported.
|
|
590186
590503
|
*/
|
|
590187
|
-
basePath: stringType().default("")
|
|
590504
|
+
basePath: stringType().default(""),
|
|
590505
|
+
/** The primary/fallback locale for this preview deployment. */
|
|
590506
|
+
defaultLocale: stringType().optional(),
|
|
590507
|
+
/**
|
|
590508
|
+
* All locales for this preview deployment. Preferred over the legacy
|
|
590509
|
+
* single-locale content fields above.
|
|
590510
|
+
*/
|
|
590511
|
+
locales: arrayType(LocaleEntrySchema2).min(1).optional()
|
|
590512
|
+
}).superRefine((data2, ctx) => {
|
|
590513
|
+
if (data2.locales == null) {
|
|
590514
|
+
if (data2.root == null || data2.pages == null) {
|
|
590515
|
+
ctx.addIssue({
|
|
590516
|
+
code: ZodIssueCode2.custom,
|
|
590517
|
+
message: "Either locales or legacy single-locale content fields must be provided",
|
|
590518
|
+
path: ["locales"]
|
|
590519
|
+
});
|
|
590520
|
+
}
|
|
590521
|
+
return;
|
|
590522
|
+
}
|
|
590523
|
+
const defaultLocale = data2.defaultLocale ?? data2.locales[0]?.locale;
|
|
590524
|
+
if (defaultLocale == null || !data2.locales.some((locale) => locale.locale === defaultLocale)) {
|
|
590525
|
+
ctx.addIssue({
|
|
590526
|
+
code: ZodIssueCode2.custom,
|
|
590527
|
+
message: "defaultLocale must match one of the locales in the locales array",
|
|
590528
|
+
path: ["defaultLocale"]
|
|
590529
|
+
});
|
|
590530
|
+
}
|
|
590188
590531
|
});
|
|
590189
590532
|
LedgerPreviewRegisterInputSchema2 = LedgerPreviewRegisterInputSchemaInternal2;
|
|
590190
590533
|
LedgerPreviewRegisterResponseSchema2 = objectType({
|
|
@@ -590445,6 +590788,7 @@ var init_orpc_client = __esm({
|
|
|
590445
590788
|
fullPath: stringType(),
|
|
590446
590789
|
type: enumType(["file", "image"]),
|
|
590447
590790
|
contentType: stringType(),
|
|
590791
|
+
contentLength: numberType().optional(),
|
|
590448
590792
|
filename: stringType(),
|
|
590449
590793
|
url: stringType(),
|
|
590450
590794
|
width: numberType().optional(),
|
|
@@ -590469,6 +590813,8 @@ var init_orpc_client = __esm({
|
|
|
590469
590813
|
/** Domain under which the file bytes were uploaded in the docs files bucket. */
|
|
590470
590814
|
domain: stringType(),
|
|
590471
590815
|
contentType: stringType(),
|
|
590816
|
+
contentLength: numberType().optional(),
|
|
590817
|
+
filename: stringType().optional(),
|
|
590472
590818
|
width: numberType().optional(),
|
|
590473
590819
|
height: numberType().optional(),
|
|
590474
590820
|
blurDataURL: stringType().optional()
|
|
@@ -591139,6 +591485,24 @@ var init_orpc_client = __esm({
|
|
|
591139
591485
|
generate: oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema2).output(GenerateTokenOutputSchema2),
|
|
591140
591486
|
revoke: oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema2)
|
|
591141
591487
|
};
|
|
591488
|
+
StartDocsRegisterV1InputSchema = objectType({
|
|
591489
|
+
orgId: stringType(),
|
|
591490
|
+
domain: stringType(),
|
|
591491
|
+
filepaths: arrayType(stringType())
|
|
591492
|
+
});
|
|
591493
|
+
StartDocsRegisterV1ResponseSchema = objectType({
|
|
591494
|
+
docsRegistrationId: stringType(),
|
|
591495
|
+
uploadUrls: recordType(stringType(), FileS3UploadUrlSchema2),
|
|
591496
|
+
skippedFiles: arrayType(stringType())
|
|
591497
|
+
});
|
|
591498
|
+
FinishDocsRegisterV1InputSchema = objectType({
|
|
591499
|
+
docsRegistrationId: stringType(),
|
|
591500
|
+
docsDefinition: unknownType()
|
|
591501
|
+
});
|
|
591502
|
+
docsV1WriteContract = {
|
|
591503
|
+
startDocsRegister: oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
591504
|
+
finishDocsRegister: oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(voidType())
|
|
591505
|
+
};
|
|
591142
591506
|
PATH_OR_URL_METADATA_KEYS = [
|
|
591143
591507
|
"og:image",
|
|
591144
591508
|
"og:logo",
|
|
@@ -591182,6 +591546,37 @@ var init_orpc_client = __esm({
|
|
|
591182
591546
|
js: objectType({ files: arrayType(JsFileViewSchema.optional().catch(void 0)).catch([]) }).optional().catch(void 0),
|
|
591183
591547
|
metadata: recordType(stringType(), unknownType()).optional().catch(void 0)
|
|
591184
591548
|
});
|
|
591549
|
+
NAV_ICON_FILE_PREFIX = "file:";
|
|
591550
|
+
FileTokenTreeSchema = lazyType(
|
|
591551
|
+
() => unionType([
|
|
591552
|
+
stringType(),
|
|
591553
|
+
numberType(),
|
|
591554
|
+
booleanType(),
|
|
591555
|
+
nullType(),
|
|
591556
|
+
arrayType(FileTokenTreeSchema),
|
|
591557
|
+
recordType(stringType(), FileTokenTreeSchema)
|
|
591558
|
+
])
|
|
591559
|
+
);
|
|
591560
|
+
ConfigFileTokenViewSchema = objectType({
|
|
591561
|
+
landingPage: FileTokenTreeSchema.optional().catch(void 0)
|
|
591562
|
+
});
|
|
591563
|
+
SegmentDetailIconViewSchema = objectType({
|
|
591564
|
+
icon: stringType().nullish().catch(void 0),
|
|
591565
|
+
metadata: objectType({
|
|
591566
|
+
icon: stringType().nullish().catch(void 0),
|
|
591567
|
+
image: stringType().nullish().catch(void 0)
|
|
591568
|
+
}).nullish().catch(void 0)
|
|
591569
|
+
});
|
|
591570
|
+
SegmentIconViewSchema = objectType({
|
|
591571
|
+
metadata: objectType({
|
|
591572
|
+
icon: stringType().nullish().catch(void 0),
|
|
591573
|
+
image: stringType().nullish().catch(void 0)
|
|
591574
|
+
}).nullish().catch(void 0),
|
|
591575
|
+
product: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591576
|
+
version: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591577
|
+
variant: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
591578
|
+
tab: SegmentDetailIconViewSchema.nullish().catch(void 0)
|
|
591579
|
+
});
|
|
591185
591580
|
LEDGER_MANIFEST_SCHEMA_VERSION = "docsledger/20260601";
|
|
591186
591581
|
LEDGER_SHARD_SCHEMA_VERSION = "docsledger/shard/20260601";
|
|
591187
591582
|
ManifestBlobRefSchema = objectType({
|
|
@@ -591251,6 +591646,7 @@ var init_orpc_client = __esm({
|
|
|
591251
591646
|
ManifestFileSchema = objectType({
|
|
591252
591647
|
type: enumType(["file", "image"]),
|
|
591253
591648
|
contentType: stringType(),
|
|
591649
|
+
contentLength: numberType().optional(),
|
|
591254
591650
|
filename: stringType(),
|
|
591255
591651
|
hash: stringType(),
|
|
591256
591652
|
/** Canonical fern domain the bytes were uploaded under (ADR 0010 file anchor). */
|
|
@@ -591266,6 +591662,7 @@ var init_orpc_client = __esm({
|
|
|
591266
591662
|
/** Fern-host-relative path; equals the `file:<fullPath>` token's suffix. */
|
|
591267
591663
|
fullPath: stringType(),
|
|
591268
591664
|
contentType: stringType(),
|
|
591665
|
+
contentLength: numberType().optional(),
|
|
591269
591666
|
width: numberType().optional(),
|
|
591270
591667
|
height: numberType().optional(),
|
|
591271
591668
|
blurDataURL: stringType().optional(),
|
|
@@ -591406,6 +591803,17 @@ var init_orpc_client = __esm({
|
|
|
591406
591803
|
chrome: LedgerChromeBlobSchema,
|
|
591407
591804
|
locales: recordType(stringType(), LedgerLocaleRoutingSchema)
|
|
591408
591805
|
});
|
|
591806
|
+
LedgerSiteArtifactSchema = unionType([
|
|
591807
|
+
objectType({
|
|
591808
|
+
schema: literalType(LEDGER_MANIFEST_SCHEMA_VERSION),
|
|
591809
|
+
unpublished: literalType(true),
|
|
591810
|
+
orgId: stringType(),
|
|
591811
|
+
domain: stringType(),
|
|
591812
|
+
basepath: stringType(),
|
|
591813
|
+
isPreview: booleanType()
|
|
591814
|
+
}),
|
|
591815
|
+
LedgerManifestSchema
|
|
591816
|
+
]);
|
|
591409
591817
|
PutContentInputSchema = objectType({
|
|
591410
591818
|
contentType: stringType(),
|
|
591411
591819
|
contentLength: numberType().int().positive()
|
|
@@ -678479,7 +678887,8 @@ function validateResponseProperty({ endpointId, typeResolver, file: file4, resol
|
|
|
678479
678887
|
return violations;
|
|
678480
678888
|
}
|
|
678481
678889
|
function isIntegerType({ resolvedType }) {
|
|
678482
|
-
|
|
678890
|
+
const primitiveType2 = maybePrimitiveType(resolvedType);
|
|
678891
|
+
return primitiveType2 === "INTEGER" || primitiveType2 === "LONG";
|
|
678483
678892
|
}
|
|
678484
678893
|
function isStringType({ resolvedType }) {
|
|
678485
678894
|
return maybePrimitiveType(resolvedType) === "STRING";
|
|
@@ -689678,7 +690087,7 @@ var AccessTokenPosthogManager = class {
|
|
|
689678
690087
|
properties: {
|
|
689679
690088
|
...event,
|
|
689680
690089
|
...event.properties,
|
|
689681
|
-
version: "5.
|
|
690090
|
+
version: "5.73.0",
|
|
689682
690091
|
usingAccessToken: true,
|
|
689683
690092
|
...getRunIdProperties()
|
|
689684
690093
|
}
|
|
@@ -689744,7 +690153,7 @@ var UserPosthogManager = class {
|
|
|
689744
690153
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
689745
690154
|
event: "CLI",
|
|
689746
690155
|
properties: {
|
|
689747
|
-
version: "5.
|
|
690156
|
+
version: "5.73.0",
|
|
689748
690157
|
...event,
|
|
689749
690158
|
...event.properties,
|
|
689750
690159
|
usingAccessToken: false,
|
|
@@ -870845,7 +871254,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870845
871254
|
var LOGS_FOLDER_NAME = "logs";
|
|
870846
871255
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870847
871256
|
function getCliSource() {
|
|
870848
|
-
const version7 = "5.
|
|
871257
|
+
const version7 = "5.73.0";
|
|
870849
871258
|
return `cli@${version7}`;
|
|
870850
871259
|
}
|
|
870851
871260
|
var DebugLogger = class {
|
|
@@ -901498,7 +901907,7 @@ function mapJsFiles(js3, fileIdToPath) {
|
|
|
901498
901907
|
files.push({ path: path120, strategy: file4.strategy });
|
|
901499
901908
|
}
|
|
901500
901909
|
return {
|
|
901501
|
-
remote: js3.remote?.map((r4) => ({ url: r4.url, strategy: r4.strategy })),
|
|
901910
|
+
remote: js3.remote?.map((r4) => ({ url: r4.url, strategy: r4.strategy, disableSri: r4.disableSri })),
|
|
901502
901911
|
files,
|
|
901503
901912
|
inline: js3.inline
|
|
901504
901913
|
};
|
|
@@ -903428,7 +903837,7 @@ var LegacyDocsPublisher = class {
|
|
|
903428
903837
|
previewId,
|
|
903429
903838
|
disableTemplates: void 0,
|
|
903430
903839
|
skipUpload,
|
|
903431
|
-
cliVersion: "5.
|
|
903840
|
+
cliVersion: "5.73.0",
|
|
903432
903841
|
loginCommand: "fern auth login"
|
|
903433
903842
|
});
|
|
903434
903843
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -929005,13 +929414,13 @@ var EndpointSnippetGenerator2 = class {
|
|
|
929005
929414
|
}
|
|
929006
929415
|
const args = [];
|
|
929007
929416
|
for (const param of parameters2) {
|
|
929008
|
-
if (
|
|
929417
|
+
if (this.isInferredAuthConstructorParamSkipped(param.typeReference)) {
|
|
929009
929418
|
continue;
|
|
929010
929419
|
}
|
|
929011
929420
|
const wireValue = param.name.wireValue;
|
|
929012
929421
|
const value2 = values2.values?.[wireValue] ?? param.name.name.originalName;
|
|
929013
929422
|
const typeInstantiation = this.context.dynamicTypeInstantiationMapper.convert({
|
|
929014
|
-
typeReference: param.typeReference,
|
|
929423
|
+
typeReference: this.getInferredAuthConstructorTypeReference(param.typeReference),
|
|
929015
929424
|
value: value2
|
|
929016
929425
|
});
|
|
929017
929426
|
if (go_exports.TypeInstantiation.isNop(typeInstantiation)) {
|
|
@@ -929029,6 +929438,57 @@ var EndpointSnippetGenerator2 = class {
|
|
|
929029
929438
|
}
|
|
929030
929439
|
return args;
|
|
929031
929440
|
}
|
|
929441
|
+
isInferredAuthConstructorParamSkipped(typeReference2, seen = /* @__PURE__ */ new Set()) {
|
|
929442
|
+
switch (typeReference2.type) {
|
|
929443
|
+
case "optional":
|
|
929444
|
+
case "literal":
|
|
929445
|
+
return true;
|
|
929446
|
+
case "named": {
|
|
929447
|
+
if (seen.has(typeReference2.value)) {
|
|
929448
|
+
return false;
|
|
929449
|
+
}
|
|
929450
|
+
seen.add(typeReference2.value);
|
|
929451
|
+
const named = this.context.resolveNamedType({ typeId: typeReference2.value });
|
|
929452
|
+
return named?.type === "alias" && this.isInferredAuthConstructorParamSkipped(named.typeReference, seen);
|
|
929453
|
+
}
|
|
929454
|
+
case "list":
|
|
929455
|
+
case "map":
|
|
929456
|
+
case "nullable":
|
|
929457
|
+
case "primitive":
|
|
929458
|
+
case "set":
|
|
929459
|
+
case "unknown":
|
|
929460
|
+
return false;
|
|
929461
|
+
default:
|
|
929462
|
+
assertNever(typeReference2);
|
|
929463
|
+
}
|
|
929464
|
+
}
|
|
929465
|
+
getInferredAuthConstructorTypeReference(typeReference2, seen = /* @__PURE__ */ new Set()) {
|
|
929466
|
+
switch (typeReference2.type) {
|
|
929467
|
+
case "nullable":
|
|
929468
|
+
return this.getInferredAuthConstructorTypeReference(typeReference2.value, seen);
|
|
929469
|
+
case "named": {
|
|
929470
|
+
if (seen.has(typeReference2.value)) {
|
|
929471
|
+
return typeReference2;
|
|
929472
|
+
}
|
|
929473
|
+
seen.add(typeReference2.value);
|
|
929474
|
+
const named = this.context.resolveNamedType({ typeId: typeReference2.value });
|
|
929475
|
+
if (named?.type === "alias" && named.typeReference.type === "nullable") {
|
|
929476
|
+
return this.getInferredAuthConstructorTypeReference(named.typeReference, seen);
|
|
929477
|
+
}
|
|
929478
|
+
return typeReference2;
|
|
929479
|
+
}
|
|
929480
|
+
case "list":
|
|
929481
|
+
case "literal":
|
|
929482
|
+
case "map":
|
|
929483
|
+
case "optional":
|
|
929484
|
+
case "primitive":
|
|
929485
|
+
case "set":
|
|
929486
|
+
case "unknown":
|
|
929487
|
+
return typeReference2;
|
|
929488
|
+
default:
|
|
929489
|
+
assertNever(typeReference2);
|
|
929490
|
+
}
|
|
929491
|
+
}
|
|
929032
929492
|
getConstructorHeaderArgs({ headers: headers2, values: values2 }) {
|
|
929033
929493
|
const args = [];
|
|
929034
929494
|
for (const header of headers2) {
|
|
@@ -969903,7 +970363,7 @@ function getAutomationContextFromEnv() {
|
|
|
969903
970363
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
969904
970364
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
969905
970365
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
969906
|
-
cli_version: "5.
|
|
970366
|
+
cli_version: "5.73.0"
|
|
969907
970367
|
};
|
|
969908
970368
|
}
|
|
969909
970369
|
function isAutomationMode() {
|
|
@@ -970735,7 +971195,7 @@ var CliContext = class _CliContext {
|
|
|
970735
971195
|
if (false) {
|
|
970736
971196
|
this.logger.error("CLI_VERSION is not defined");
|
|
970737
971197
|
}
|
|
970738
|
-
return "5.
|
|
971198
|
+
return "5.73.0";
|
|
970739
971199
|
}
|
|
970740
971200
|
getCliName() {
|
|
970741
971201
|
if (false) {
|