@fern-api/fdr-sdk 1.2.53-d8c526632f → 1.2.54-228fd283a3
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/dist/client/docs-types/db.d.ts +61 -0
- package/dist/client/docs-types/db.d.ts.map +1 -1
- package/dist/client/docs-types/latest.d.ts +9 -9
- package/dist/client/docs-types/latest.d.ts.map +1 -1
- package/dist/client/docs-types/latest.js +1 -1
- package/dist/client/docs-types/latest.js.map +1 -1
- package/dist/client/docs-types/read.d.ts +27 -0
- package/dist/client/docs-types/read.d.ts.map +1 -1
- package/dist/client/docs-types/shared.d.ts +8 -0
- package/dist/client/docs-types/shared.d.ts.map +1 -1
- package/dist/client/docs-types/shared.js +1 -0
- package/dist/client/docs-types/shared.js.map +1 -1
- package/dist/client/docs-types/write.d.ts +16 -0
- package/dist/client/docs-types/write.d.ts.map +1 -1
- package/dist/js/client/FdrClient.js +1456 -1495
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1456 -1495
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/client/types.js +2 -1
- package/dist/js/client/types.js.map +1 -1
- package/dist/js/client/types.mjs +2 -1
- package/dist/js/client/types.mjs.map +1 -1
- package/dist/js/converters/index.js +304 -301
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +304 -301
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/docs/index.js +2 -1
- package/dist/js/docs/index.js.map +1 -1
- package/dist/js/docs/index.mjs +2 -1
- package/dist/js/docs/index.mjs.map +1 -1
- package/dist/js/index.js +1785 -1824
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +1784 -1823
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +304 -301
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +304 -301
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +1507 -1507
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1515 -1515
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs/client.d.ts +0 -2
- package/dist/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/orpc-client/docs/client.js +1 -3
- package/dist/orpc-client/docs/client.js.map +1 -1
- package/dist/orpc-client/docs/v1/read/contract.d.ts +18 -0
- package/dist/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v1/write/contract.d.ts +4 -0
- package/dist/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v2/read/contract.d.ts +40 -0
- package/dist/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v2/write/contract.d.ts +14 -6
- package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +56 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts +14 -0
- package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client/docs-types/db.d.ts +61 -0
- package/dist/types/client/docs-types/db.d.ts.map +1 -1
- package/dist/types/client/docs-types/latest.d.ts +9 -9
- package/dist/types/client/docs-types/latest.d.ts.map +1 -1
- package/dist/types/client/docs-types/read.d.ts +27 -0
- package/dist/types/client/docs-types/read.d.ts.map +1 -1
- package/dist/types/client/docs-types/shared.d.ts +8 -0
- package/dist/types/client/docs-types/shared.d.ts.map +1 -1
- package/dist/types/client/docs-types/write.d.ts +16 -0
- package/dist/types/client/docs-types/write.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/client.d.ts +0 -2
- package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v1/read/contract.d.ts +18 -0
- package/dist/types/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v1/write/contract.d.ts +4 -0
- package/dist/types/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/read/contract.d.ts +40 -0
- package/dist/types/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts +14 -6
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +56 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +14 -0
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/index.mjs
CHANGED
|
@@ -435,8 +435,8 @@ function parseMatch(match) {
|
|
|
435
435
|
return match;
|
|
436
436
|
}
|
|
437
437
|
var src_default = (str, options = {}) => {
|
|
438
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset,
|
|
439
|
-
const isLastWord = m.length + offset >=
|
|
438
|
+
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string33) => {
|
|
439
|
+
const isLastWord = m.length + offset >= string33.length;
|
|
440
440
|
const parsedMatch = parseMatch(m);
|
|
441
441
|
if (!parsedMatch) {
|
|
442
442
|
return m;
|
|
@@ -2521,16 +2521,16 @@ function selectDefaultValue(shape, defaults) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
|
|
2524
|
-
function unwrapObjectType(
|
|
2525
|
-
const cached = UnwrapObjectTypeCache.get(
|
|
2524
|
+
function unwrapObjectType(object32, types, parentVisitedTypeIds) {
|
|
2525
|
+
const cached = UnwrapObjectTypeCache.get(object32);
|
|
2526
2526
|
if (cached != null) {
|
|
2527
2527
|
return cached;
|
|
2528
2528
|
}
|
|
2529
|
-
const directProperties =
|
|
2530
|
-
const extraProperties =
|
|
2529
|
+
const directProperties = object32.properties;
|
|
2530
|
+
const extraProperties = object32.extraProperties;
|
|
2531
2531
|
const descriptions = [];
|
|
2532
2532
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2533
|
-
const extendedProperties =
|
|
2533
|
+
const extendedProperties = object32.extends.flatMap((typeId) => {
|
|
2534
2534
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
2535
2535
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
2536
2536
|
return [];
|
|
@@ -2591,10 +2591,10 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
|
|
|
2591
2591
|
extraProperties,
|
|
2592
2592
|
visitedTypeIds
|
|
2593
2593
|
};
|
|
2594
|
-
UnwrapObjectTypeCache.set(
|
|
2594
|
+
UnwrapObjectTypeCache.set(object32, toRet2);
|
|
2595
2595
|
return toRet2;
|
|
2596
2596
|
}
|
|
2597
|
-
const propertyKeys = new Set(
|
|
2597
|
+
const propertyKeys = new Set(object32.properties.map((property) => property.key));
|
|
2598
2598
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
2599
2599
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
2600
2600
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -2612,7 +2612,7 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
|
|
|
2612
2612
|
]
|
|
2613
2613
|
);
|
|
2614
2614
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2615
|
-
UnwrapObjectTypeCache.set(
|
|
2615
|
+
UnwrapObjectTypeCache.set(object32, toRet);
|
|
2616
2616
|
return toRet;
|
|
2617
2617
|
}
|
|
2618
2618
|
function unwrapDiscriminatedUnionVariant(union11, variant, types) {
|
|
@@ -4094,8 +4094,8 @@ function sortKeysByShape(obj, shape, types) {
|
|
|
4094
4094
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
|
|
4095
4095
|
map: ({ valueShape }) => isPlainObject_default(obj) ? mapValues(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
|
|
4096
4096
|
unknown: () => obj,
|
|
4097
|
-
object: (
|
|
4098
|
-
const objectProperties = unwrapObjectType(
|
|
4097
|
+
object: (object32) => {
|
|
4098
|
+
const objectProperties = unwrapObjectType(object32, types).properties;
|
|
4099
4099
|
return isPlainObject_default(obj) ? mapValues(
|
|
4100
4100
|
sortKeysBy(
|
|
4101
4101
|
obj,
|
|
@@ -7724,6 +7724,7 @@ var PageActionOptionsSchema = z9.object({
|
|
|
7724
7724
|
cursor: z9.boolean().optional(),
|
|
7725
7725
|
claudeCode: z9.boolean().optional(),
|
|
7726
7726
|
vscode: z9.boolean().optional(),
|
|
7727
|
+
mcp: z9.boolean().optional(),
|
|
7727
7728
|
custom: z9.array(CustomPageActionSchema).optional(),
|
|
7728
7729
|
skills: SkillsConfigSchema.optional()
|
|
7729
7730
|
});
|
|
@@ -8054,234 +8055,492 @@ function createDocsV1ReadClient(options) {
|
|
|
8054
8055
|
return createORPCClient3(link);
|
|
8055
8056
|
}
|
|
8056
8057
|
|
|
8057
|
-
// src/orpc-client/docs/
|
|
8058
|
+
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
8058
8059
|
import { createORPCClient as createORPCClient4 } from "@orpc/client";
|
|
8059
8060
|
import { OpenAPILink as OpenAPILink4 } from "@orpc/openapi-client/fetch";
|
|
8060
8061
|
|
|
8061
|
-
// src/orpc-client/docs/
|
|
8062
|
+
// src/orpc-client/docs/v2/library-docs/contract.ts
|
|
8062
8063
|
import { oc as oc5 } from "@orpc/contract";
|
|
8064
|
+
import * as z13 from "zod";
|
|
8065
|
+
var ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
8066
|
+
var GithubUrlSchema = z13.string().url().describe(
|
|
8067
|
+
"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>."
|
|
8068
|
+
).refine(
|
|
8069
|
+
(url) => {
|
|
8070
|
+
try {
|
|
8071
|
+
const parsed = new URL(url);
|
|
8072
|
+
if (parsed.protocol !== "https:") {
|
|
8073
|
+
return false;
|
|
8074
|
+
}
|
|
8075
|
+
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
8076
|
+
return false;
|
|
8077
|
+
}
|
|
8078
|
+
if (parsed.username || parsed.password) {
|
|
8079
|
+
return false;
|
|
8080
|
+
}
|
|
8081
|
+
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
8082
|
+
} catch {
|
|
8083
|
+
return false;
|
|
8084
|
+
}
|
|
8085
|
+
},
|
|
8086
|
+
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
8087
|
+
);
|
|
8088
|
+
var SafeBranchSchema = z13.string().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
8089
|
+
var SafePackagePathSchema = z13.string().refine((p) => !p.includes("..") && !p.startsWith("/"), {
|
|
8090
|
+
message: "packagePath must not contain path traversal sequences"
|
|
8091
|
+
}).nullish();
|
|
8092
|
+
var LibraryDocsBaseConfigSchema = z13.object({
|
|
8093
|
+
branch: SafeBranchSchema,
|
|
8094
|
+
packagePath: SafePackagePathSchema,
|
|
8095
|
+
title: z13.string().nullish(),
|
|
8096
|
+
slug: z13.string().nullish()
|
|
8097
|
+
});
|
|
8098
|
+
var PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
8099
|
+
var CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
8100
|
+
doxyfileContent: z13.string().nullish()
|
|
8101
|
+
});
|
|
8102
|
+
var StartLibraryDocsGenerationInputSchema = z13.discriminatedUnion("language", [
|
|
8103
|
+
z13.object({
|
|
8104
|
+
orgId: z13.string(),
|
|
8105
|
+
githubUrl: GithubUrlSchema,
|
|
8106
|
+
language: z13.literal("PYTHON"),
|
|
8107
|
+
config: PythonLibraryDocsConfigSchema.nullish()
|
|
8108
|
+
}),
|
|
8109
|
+
z13.object({
|
|
8110
|
+
orgId: z13.string(),
|
|
8111
|
+
githubUrl: GithubUrlSchema,
|
|
8112
|
+
language: z13.literal("CPP"),
|
|
8113
|
+
config: CppLibraryDocsConfigSchema.nullish()
|
|
8114
|
+
})
|
|
8115
|
+
]);
|
|
8116
|
+
var StartLibraryDocsGenerationResponseSchema = z13.object({
|
|
8117
|
+
jobId: z13.string()
|
|
8118
|
+
});
|
|
8119
|
+
var GetLibraryDocsStatusInputSchema = z13.object({
|
|
8120
|
+
jobId: z13.string()
|
|
8121
|
+
});
|
|
8122
|
+
var LibraryDocsResultSchema = z13.object({
|
|
8123
|
+
jobId: z13.string(),
|
|
8124
|
+
resultUrl: z13.string()
|
|
8125
|
+
});
|
|
8126
|
+
var LibraryDocsGenerationStatusSchema = z13.object({
|
|
8127
|
+
jobId: z13.string(),
|
|
8128
|
+
status: z13.string(),
|
|
8129
|
+
progress: z13.string(),
|
|
8130
|
+
error: z13.object({
|
|
8131
|
+
code: z13.string(),
|
|
8132
|
+
message: z13.string()
|
|
8133
|
+
}).optional(),
|
|
8134
|
+
createdAt: z13.string(),
|
|
8135
|
+
updatedAt: z13.string()
|
|
8136
|
+
});
|
|
8137
|
+
var libraryDocsContract = {
|
|
8138
|
+
startLibraryDocsGeneration: oc5.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
8139
|
+
getLibraryDocsGenerationStatus: oc5.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
8140
|
+
getLibraryDocsResult: oc5.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
8141
|
+
};
|
|
8142
|
+
|
|
8143
|
+
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
8144
|
+
function createLibraryDocsClient(options) {
|
|
8145
|
+
const link = new OpenAPILink4(libraryDocsContract, {
|
|
8146
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8147
|
+
headers: () => ({
|
|
8148
|
+
Authorization: `Bearer ${options.token}`,
|
|
8149
|
+
...options.headers
|
|
8150
|
+
}),
|
|
8151
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8152
|
+
});
|
|
8153
|
+
return createORPCClient4(link);
|
|
8154
|
+
}
|
|
8155
|
+
|
|
8156
|
+
// src/orpc-client/docs/v2/organization/client.ts
|
|
8157
|
+
import { createORPCClient as createORPCClient5 } from "@orpc/client";
|
|
8158
|
+
import { OpenAPILink as OpenAPILink5 } from "@orpc/openapi-client/fetch";
|
|
8159
|
+
|
|
8160
|
+
// src/orpc-client/docs/v2/organization/contract.ts
|
|
8161
|
+
import { oc as oc6 } from "@orpc/contract";
|
|
8162
|
+
import * as z14 from "zod";
|
|
8163
|
+
var GetOrganizationForUrlInputSchema = z14.object({
|
|
8164
|
+
url: z14.string()
|
|
8165
|
+
});
|
|
8166
|
+
var organizationContract = {
|
|
8167
|
+
getOrganizationForUrl: oc6.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(z14.string())
|
|
8168
|
+
};
|
|
8169
|
+
|
|
8170
|
+
// src/orpc-client/docs/v2/organization/client.ts
|
|
8171
|
+
function createOrganizationClient(options) {
|
|
8172
|
+
const link = new OpenAPILink5(organizationContract, {
|
|
8173
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8174
|
+
headers: () => ({
|
|
8175
|
+
Authorization: `Bearer ${options.token}`,
|
|
8176
|
+
...options.headers
|
|
8177
|
+
}),
|
|
8178
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8179
|
+
});
|
|
8180
|
+
return createORPCClient5(link);
|
|
8181
|
+
}
|
|
8182
|
+
|
|
8183
|
+
// src/orpc-client/docs/v2/read/client.ts
|
|
8184
|
+
import { createORPCClient as createORPCClient6 } from "@orpc/client";
|
|
8185
|
+
import { OpenAPILink as OpenAPILink6 } from "@orpc/openapi-client/fetch";
|
|
8186
|
+
|
|
8187
|
+
// src/orpc-client/docs/v2/read/contract.ts
|
|
8188
|
+
var contract_exports = {};
|
|
8189
|
+
__export(contract_exports, {
|
|
8190
|
+
DocsDefinitionField: () => DocsDefinitionField,
|
|
8191
|
+
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
8192
|
+
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
8193
|
+
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
8194
|
+
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
8195
|
+
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
8196
|
+
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
8197
|
+
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
8198
|
+
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
8199
|
+
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
8200
|
+
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
8201
|
+
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
8202
|
+
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
8203
|
+
docsV2ReadContract: () => docsV2ReadContract,
|
|
8204
|
+
getDocsForUrl: () => getDocsForUrl
|
|
8205
|
+
});
|
|
8206
|
+
import { oc as oc7 } from "@orpc/contract";
|
|
8063
8207
|
import * as z15 from "zod";
|
|
8208
|
+
var GetDocsUrlMetadataInputSchema = z15.object({
|
|
8209
|
+
url: z15.string()
|
|
8210
|
+
});
|
|
8211
|
+
var GetDocsUrlMetadataResponseSchema = z15.object({
|
|
8212
|
+
isPreviewUrl: z15.boolean(),
|
|
8213
|
+
org: z15.string(),
|
|
8214
|
+
url: z15.string(),
|
|
8215
|
+
gitUrl: z15.string().nullish(),
|
|
8216
|
+
enableAlgoliaOnPreview: z15.boolean().nullish()
|
|
8217
|
+
});
|
|
8218
|
+
var GetDocsForUrlInputSchema = z15.object({
|
|
8219
|
+
url: z15.string(),
|
|
8220
|
+
excludeApis: z15.boolean().nullish()
|
|
8221
|
+
});
|
|
8222
|
+
var GetPrivateDocsForUrlInputSchema = z15.object({
|
|
8223
|
+
url: z15.string()
|
|
8224
|
+
});
|
|
8225
|
+
var ListAllDocsUrlsInputSchema = z15.object({
|
|
8226
|
+
limit: z15.number().nullish(),
|
|
8227
|
+
page: z15.number().nullish(),
|
|
8228
|
+
custom: z15.boolean().nullish(),
|
|
8229
|
+
preview: z15.boolean().nullish()
|
|
8230
|
+
});
|
|
8231
|
+
var GetDocsConfigByIdInputSchema = z15.object({
|
|
8232
|
+
docsConfigId: z15.string()
|
|
8233
|
+
});
|
|
8234
|
+
var DocsDefinitionField = {
|
|
8235
|
+
BaseUrl: "BASE_URL",
|
|
8236
|
+
FilesV2: "FILES_V2",
|
|
8237
|
+
ApisV2: "APIS_V2",
|
|
8238
|
+
Apis: "APIS",
|
|
8239
|
+
Pages: "PAGES",
|
|
8240
|
+
JsFiles: "JS_FILES",
|
|
8241
|
+
Config: "CONFIG",
|
|
8242
|
+
Root: "ROOT"
|
|
8243
|
+
};
|
|
8244
|
+
var GetDocsConfigByIdResponseSchema = z15.object({
|
|
8245
|
+
docsConfig: DocsConfigSchema,
|
|
8246
|
+
apis: z15.record(z15.string(), z15.unknown())
|
|
8247
|
+
});
|
|
8248
|
+
var DocsDomainItemSchema = z15.object({
|
|
8249
|
+
domain: z15.string(),
|
|
8250
|
+
basePath: z15.string().optional(),
|
|
8251
|
+
organizationId: z15.string(),
|
|
8252
|
+
updatedAt: z15.string()
|
|
8253
|
+
});
|
|
8254
|
+
var ListAllDocsUrlsResponseSchema = z15.object({
|
|
8255
|
+
urls: z15.array(DocsDomainItemSchema)
|
|
8256
|
+
});
|
|
8257
|
+
var getDocsForUrl;
|
|
8258
|
+
((getDocsForUrl2) => {
|
|
8259
|
+
let Error2;
|
|
8260
|
+
((Error3) => {
|
|
8261
|
+
function _unknown(fetcherError) {
|
|
8262
|
+
return { error: void 0, content: fetcherError };
|
|
8263
|
+
}
|
|
8264
|
+
Error3._unknown = _unknown;
|
|
8265
|
+
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
8266
|
+
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
8267
|
+
var docsV2ReadContract = {
|
|
8268
|
+
getDocsUrlMetadata: oc7.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
8269
|
+
getDocsForUrl: oc7.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8270
|
+
getPrivateDocsForUrl: oc7.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8271
|
+
listAllDocsUrls: oc7.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
8272
|
+
getDocsConfigById: oc7.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
8273
|
+
prepopulateFdrReadS3Bucket: oc7.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z15.void()),
|
|
8274
|
+
ensureDocsInS3: oc7.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z15.void()),
|
|
8275
|
+
getDocsFields: oc7.route({ method: "POST", path: "/load-fields" }).output(z15.void())
|
|
8276
|
+
};
|
|
8277
|
+
|
|
8278
|
+
// src/orpc-client/docs/v2/read/client.ts
|
|
8279
|
+
function createDocsV2ReadClient(options) {
|
|
8280
|
+
const link = new OpenAPILink6(docsV2ReadContract, {
|
|
8281
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8282
|
+
headers: () => ({
|
|
8283
|
+
Authorization: `Bearer ${options.token}`,
|
|
8284
|
+
...options.headers
|
|
8285
|
+
}),
|
|
8286
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8287
|
+
});
|
|
8288
|
+
return createORPCClient6(link);
|
|
8289
|
+
}
|
|
8290
|
+
|
|
8291
|
+
// src/orpc-client/docs/v2/write/client.ts
|
|
8292
|
+
import { createORPCClient as createORPCClient7 } from "@orpc/client";
|
|
8293
|
+
import { OpenAPILink as OpenAPILink7 } from "@orpc/openapi-client/fetch";
|
|
8294
|
+
|
|
8295
|
+
// src/orpc-client/docs/v2/write/contract.ts
|
|
8296
|
+
var contract_exports2 = {};
|
|
8297
|
+
__export(contract_exports2, {
|
|
8298
|
+
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
8299
|
+
AuthConfigSchema: () => AuthConfigSchema,
|
|
8300
|
+
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
8301
|
+
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
8302
|
+
FilePath: () => FilePath2,
|
|
8303
|
+
FilePathInputSchema: () => FilePathInputSchema,
|
|
8304
|
+
FilePathSchema: () => FilePathSchema2,
|
|
8305
|
+
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
8306
|
+
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
8307
|
+
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
8308
|
+
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
8309
|
+
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
8310
|
+
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
8311
|
+
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
8312
|
+
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
8313
|
+
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
8314
|
+
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
8315
|
+
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
8316
|
+
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
8317
|
+
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
8318
|
+
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
8319
|
+
docsV2WriteContract: () => docsV2WriteContract
|
|
8320
|
+
});
|
|
8321
|
+
import { oc as oc8 } from "@orpc/contract";
|
|
8322
|
+
import * as z18 from "zod";
|
|
8064
8323
|
|
|
8065
8324
|
// src/client/docs-types/write.ts
|
|
8066
|
-
import * as
|
|
8325
|
+
import * as z17 from "zod";
|
|
8067
8326
|
|
|
8068
8327
|
// src/client/docs-types/write-commons.ts
|
|
8069
|
-
import * as
|
|
8070
|
-
var OrgIdSchema2 =
|
|
8328
|
+
import * as z16 from "zod";
|
|
8329
|
+
var OrgIdSchema2 = z16.string();
|
|
8071
8330
|
function OrgId2(value) {
|
|
8072
8331
|
return value;
|
|
8073
8332
|
}
|
|
8074
8333
|
|
|
8075
8334
|
// src/client/docs-types/write.ts
|
|
8076
|
-
var FilePathSchema =
|
|
8335
|
+
var FilePathSchema = z17.string();
|
|
8077
8336
|
function FilePath(value) {
|
|
8078
8337
|
return value;
|
|
8079
8338
|
}
|
|
8080
|
-
var DocsRegistrationIdSchema =
|
|
8339
|
+
var DocsRegistrationIdSchema = z17.string();
|
|
8081
8340
|
function DocsRegistrationId(value) {
|
|
8082
8341
|
return value;
|
|
8083
8342
|
}
|
|
8084
|
-
var HeightSchema2 =
|
|
8085
|
-
var FileS3UploadUrlSchema =
|
|
8086
|
-
uploadUrl:
|
|
8343
|
+
var HeightSchema2 = z17.number();
|
|
8344
|
+
var FileS3UploadUrlSchema = z17.object({
|
|
8345
|
+
uploadUrl: z17.string(),
|
|
8087
8346
|
fileId: FileIdSchema2
|
|
8088
8347
|
});
|
|
8089
|
-
var StartDocsRegisterResponseSchema =
|
|
8348
|
+
var StartDocsRegisterResponseSchema = z17.object({
|
|
8090
8349
|
docsRegistrationId: DocsRegistrationIdSchema,
|
|
8091
|
-
uploadUrls:
|
|
8092
|
-
skippedFiles:
|
|
8350
|
+
uploadUrls: z17.record(FilePathSchema, FileS3UploadUrlSchema),
|
|
8351
|
+
skippedFiles: z17.array(FilePathSchema)
|
|
8093
8352
|
});
|
|
8094
|
-
var PageContentSchema2 =
|
|
8095
|
-
markdown:
|
|
8353
|
+
var PageContentSchema2 = z17.object({
|
|
8354
|
+
markdown: z17.string(),
|
|
8096
8355
|
editThisPageUrl: UrlSchema2.optional(),
|
|
8097
8356
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
8098
|
-
rawMarkdown:
|
|
8357
|
+
rawMarkdown: z17.string().optional()
|
|
8099
8358
|
});
|
|
8100
|
-
var NavigationNodeMetadataSchema2 =
|
|
8101
|
-
icon:
|
|
8102
|
-
hidden:
|
|
8103
|
-
urlSlugOverride:
|
|
8104
|
-
fullSlug:
|
|
8359
|
+
var NavigationNodeMetadataSchema2 = z17.object({
|
|
8360
|
+
icon: z17.string().optional(),
|
|
8361
|
+
hidden: z17.boolean().optional(),
|
|
8362
|
+
urlSlugOverride: z17.string().optional(),
|
|
8363
|
+
fullSlug: z17.array(z17.string()).optional()
|
|
8105
8364
|
});
|
|
8106
|
-
var PageMetadataSchema2 =
|
|
8365
|
+
var PageMetadataSchema2 = z17.object({
|
|
8107
8366
|
...NavigationNodeMetadataSchema2.shape,
|
|
8108
8367
|
id: PageIdSchema2,
|
|
8109
|
-
title:
|
|
8368
|
+
title: z17.string()
|
|
8110
8369
|
});
|
|
8111
|
-
var LinkMetadataSchema2 =
|
|
8112
|
-
title:
|
|
8113
|
-
icon:
|
|
8370
|
+
var LinkMetadataSchema2 = z17.object({
|
|
8371
|
+
title: z17.string(),
|
|
8372
|
+
icon: z17.string().optional(),
|
|
8114
8373
|
url: UrlSchema2,
|
|
8115
8374
|
target: LinkTargetSchema.optional()
|
|
8116
8375
|
});
|
|
8117
|
-
var ChangelogItemSchema2 =
|
|
8118
|
-
date:
|
|
8376
|
+
var ChangelogItemSchema2 = z17.object({
|
|
8377
|
+
date: z17.string(),
|
|
8119
8378
|
pageId: PageIdSchema2,
|
|
8120
|
-
hidden:
|
|
8121
|
-
tags:
|
|
8122
|
-
});
|
|
8123
|
-
var ChangelogSectionSchema2 =
|
|
8124
|
-
title:
|
|
8125
|
-
icon:
|
|
8126
|
-
hidden:
|
|
8127
|
-
description:
|
|
8379
|
+
hidden: z17.boolean().optional(),
|
|
8380
|
+
tags: z17.array(z17.string()).optional()
|
|
8381
|
+
});
|
|
8382
|
+
var ChangelogSectionSchema2 = z17.object({
|
|
8383
|
+
title: z17.string().optional(),
|
|
8384
|
+
icon: z17.string().optional(),
|
|
8385
|
+
hidden: z17.boolean().optional(),
|
|
8386
|
+
description: z17.string().optional(),
|
|
8128
8387
|
pageId: PageIdSchema2.optional(),
|
|
8129
|
-
items:
|
|
8130
|
-
urlSlug:
|
|
8131
|
-
fullSlug:
|
|
8388
|
+
items: z17.array(ChangelogItemSchema2),
|
|
8389
|
+
urlSlug: z17.string(),
|
|
8390
|
+
fullSlug: z17.array(z17.string()).optional()
|
|
8132
8391
|
});
|
|
8133
|
-
var ChangelogSectionV2Schema =
|
|
8392
|
+
var ChangelogSectionV2Schema = z17.object({
|
|
8134
8393
|
...NavigationNodeMetadataSchema2.shape,
|
|
8135
|
-
title:
|
|
8136
|
-
description:
|
|
8394
|
+
title: z17.string().optional(),
|
|
8395
|
+
description: z17.string().optional(),
|
|
8137
8396
|
pageId: PageIdSchema2.optional(),
|
|
8138
|
-
items:
|
|
8397
|
+
items: z17.array(ChangelogItemSchema2)
|
|
8139
8398
|
});
|
|
8140
|
-
var ChangelogSectionV3Schema2 =
|
|
8141
|
-
node:
|
|
8399
|
+
var ChangelogSectionV3Schema2 = z17.object({
|
|
8400
|
+
node: z17.unknown()
|
|
8142
8401
|
});
|
|
8143
|
-
var NavigationTabLinkSchema2 =
|
|
8144
|
-
title:
|
|
8145
|
-
icon:
|
|
8402
|
+
var NavigationTabLinkSchema2 = z17.object({
|
|
8403
|
+
title: z17.string(),
|
|
8404
|
+
icon: z17.string().optional(),
|
|
8146
8405
|
url: UrlSchema2,
|
|
8147
8406
|
target: LinkTargetSchema.optional()
|
|
8148
8407
|
});
|
|
8149
|
-
var ApiNavigationConfigItemSchema4 =
|
|
8150
|
-
() =>
|
|
8151
|
-
|
|
8152
|
-
type:
|
|
8408
|
+
var ApiNavigationConfigItemSchema4 = z17.lazy(
|
|
8409
|
+
() => z17.discriminatedUnion("type", [
|
|
8410
|
+
z17.object({
|
|
8411
|
+
type: z17.literal("subpackage"),
|
|
8153
8412
|
summaryPageId: PageIdSchema2.optional(),
|
|
8154
8413
|
subpackageId: SubpackageIdSchema2,
|
|
8155
|
-
items:
|
|
8414
|
+
items: z17.array(ApiNavigationConfigItemSchema4)
|
|
8156
8415
|
}),
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8416
|
+
z17.object({ type: z17.literal("endpointId"), value: EndpointIdSchema2 }),
|
|
8417
|
+
z17.object({ type: z17.literal("websocketId"), value: WebSocketIdSchema2 }),
|
|
8418
|
+
z17.object({ type: z17.literal("webhookId"), value: WebhookIdSchema2 }),
|
|
8419
|
+
z17.object({ type: z17.literal("page"), ...PageMetadataSchema2.shape })
|
|
8161
8420
|
])
|
|
8162
8421
|
);
|
|
8163
|
-
var ApiNavigationConfigSubpackageSchema =
|
|
8422
|
+
var ApiNavigationConfigSubpackageSchema = z17.object({
|
|
8164
8423
|
summaryPageId: PageIdSchema2.optional(),
|
|
8165
8424
|
subpackageId: SubpackageIdSchema2,
|
|
8166
|
-
items:
|
|
8425
|
+
items: z17.array(ApiNavigationConfigItemSchema4)
|
|
8167
8426
|
});
|
|
8168
|
-
var ApiNavigationConfigRootSchema4 =
|
|
8427
|
+
var ApiNavigationConfigRootSchema4 = z17.object({
|
|
8169
8428
|
summaryPageId: PageIdSchema2.optional(),
|
|
8170
|
-
items:
|
|
8429
|
+
items: z17.array(ApiNavigationConfigItemSchema4)
|
|
8171
8430
|
});
|
|
8172
|
-
var ApiSectionSchema2 =
|
|
8431
|
+
var ApiSectionSchema2 = z17.object({
|
|
8173
8432
|
...NavigationNodeMetadataSchema2.shape,
|
|
8174
|
-
title:
|
|
8433
|
+
title: z17.string(),
|
|
8175
8434
|
api: ApiDefinitionIdSchema2,
|
|
8176
|
-
artifacts:
|
|
8177
|
-
sdks:
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
type:
|
|
8181
|
-
packageName:
|
|
8182
|
-
githubRepoName:
|
|
8183
|
-
version:
|
|
8435
|
+
artifacts: z17.object({
|
|
8436
|
+
sdks: z17.array(
|
|
8437
|
+
z17.discriminatedUnion("type", [
|
|
8438
|
+
z17.object({
|
|
8439
|
+
type: z17.literal("npm"),
|
|
8440
|
+
packageName: z17.string(),
|
|
8441
|
+
githubRepoName: z17.string(),
|
|
8442
|
+
version: z17.string()
|
|
8184
8443
|
}),
|
|
8185
|
-
|
|
8186
|
-
type:
|
|
8187
|
-
coordinate:
|
|
8188
|
-
githubRepoName:
|
|
8189
|
-
version:
|
|
8444
|
+
z17.object({
|
|
8445
|
+
type: z17.literal("maven"),
|
|
8446
|
+
coordinate: z17.string(),
|
|
8447
|
+
githubRepoName: z17.string(),
|
|
8448
|
+
version: z17.string()
|
|
8190
8449
|
}),
|
|
8191
|
-
|
|
8192
|
-
type:
|
|
8193
|
-
packageName:
|
|
8194
|
-
githubRepoName:
|
|
8195
|
-
version:
|
|
8450
|
+
z17.object({
|
|
8451
|
+
type: z17.literal("pypi"),
|
|
8452
|
+
packageName: z17.string(),
|
|
8453
|
+
githubRepoName: z17.string(),
|
|
8454
|
+
version: z17.string()
|
|
8196
8455
|
})
|
|
8197
8456
|
])
|
|
8198
8457
|
),
|
|
8199
|
-
postman:
|
|
8458
|
+
postman: z17.object({
|
|
8200
8459
|
url: UrlSchema2,
|
|
8201
|
-
githubRepoName:
|
|
8460
|
+
githubRepoName: z17.string().optional()
|
|
8202
8461
|
}).optional()
|
|
8203
8462
|
}).optional(),
|
|
8204
|
-
skipUrlSlug:
|
|
8205
|
-
showErrors:
|
|
8463
|
+
skipUrlSlug: z17.boolean().optional(),
|
|
8464
|
+
showErrors: z17.boolean().optional(),
|
|
8206
8465
|
changelog: ChangelogSectionSchema2.optional(),
|
|
8207
8466
|
changelogV2: ChangelogSectionV2Schema.optional(),
|
|
8208
8467
|
navigation: ApiNavigationConfigRootSchema4.optional(),
|
|
8209
|
-
longScrolling:
|
|
8210
|
-
flattened:
|
|
8468
|
+
longScrolling: z17.boolean().optional(),
|
|
8469
|
+
flattened: z17.boolean().optional()
|
|
8211
8470
|
});
|
|
8212
|
-
var ApiSectionV2Schema2 =
|
|
8213
|
-
node:
|
|
8471
|
+
var ApiSectionV2Schema2 = z17.object({
|
|
8472
|
+
node: z17.unknown()
|
|
8214
8473
|
});
|
|
8215
|
-
var DocsSectionSchema2 =
|
|
8216
|
-
() =>
|
|
8474
|
+
var DocsSectionSchema2 = z17.lazy(
|
|
8475
|
+
() => z17.object({
|
|
8217
8476
|
...NavigationNodeMetadataSchema2.shape,
|
|
8218
|
-
title:
|
|
8219
|
-
items:
|
|
8220
|
-
collapsed:
|
|
8221
|
-
collapsible:
|
|
8222
|
-
collapsedByDefault:
|
|
8223
|
-
skipUrlSlug:
|
|
8477
|
+
title: z17.string(),
|
|
8478
|
+
items: z17.array(NavigationItemSchema2),
|
|
8479
|
+
collapsed: z17.union([z17.boolean(), z17.literal("open-by-default")]).optional(),
|
|
8480
|
+
collapsible: z17.boolean().optional(),
|
|
8481
|
+
collapsedByDefault: z17.boolean().optional(),
|
|
8482
|
+
skipUrlSlug: z17.boolean().optional(),
|
|
8224
8483
|
overviewPageId: PageIdSchema2.optional()
|
|
8225
8484
|
})
|
|
8226
8485
|
);
|
|
8227
|
-
var NavigationItemSchema2 =
|
|
8228
|
-
() =>
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
type:
|
|
8486
|
+
var NavigationItemSchema2 = z17.lazy(
|
|
8487
|
+
() => z17.discriminatedUnion("type", [
|
|
8488
|
+
z17.object({ type: z17.literal("page"), ...PageMetadataSchema2.shape }),
|
|
8489
|
+
z17.object({ type: z17.literal("api"), ...ApiSectionSchema2.shape }),
|
|
8490
|
+
z17.object({ type: z17.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
|
|
8491
|
+
z17.object({
|
|
8492
|
+
type: z17.literal("section"),
|
|
8234
8493
|
...NavigationNodeMetadataSchema2.shape,
|
|
8235
|
-
title:
|
|
8236
|
-
items:
|
|
8237
|
-
collapsed:
|
|
8238
|
-
collapsible:
|
|
8239
|
-
collapsedByDefault:
|
|
8240
|
-
skipUrlSlug:
|
|
8494
|
+
title: z17.string(),
|
|
8495
|
+
items: z17.array(NavigationItemSchema2),
|
|
8496
|
+
collapsed: z17.union([z17.boolean(), z17.literal("open-by-default")]).optional(),
|
|
8497
|
+
collapsible: z17.boolean().optional(),
|
|
8498
|
+
collapsedByDefault: z17.boolean().optional(),
|
|
8499
|
+
skipUrlSlug: z17.boolean().optional(),
|
|
8241
8500
|
overviewPageId: PageIdSchema2.optional()
|
|
8242
8501
|
}),
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8502
|
+
z17.object({ type: z17.literal("link"), ...LinkMetadataSchema2.shape }),
|
|
8503
|
+
z17.object({ type: z17.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
8504
|
+
z17.object({ type: z17.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
8246
8505
|
])
|
|
8247
8506
|
);
|
|
8248
|
-
var NavigationTabGroupSchema2 =
|
|
8507
|
+
var NavigationTabGroupSchema2 = z17.object({
|
|
8249
8508
|
...NavigationNodeMetadataSchema2.shape,
|
|
8250
|
-
title:
|
|
8251
|
-
items:
|
|
8252
|
-
skipUrlSlug:
|
|
8253
|
-
});
|
|
8254
|
-
var NavigationTabSchema2 =
|
|
8255
|
-
var NavigationTabV2Schema =
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8509
|
+
title: z17.string(),
|
|
8510
|
+
items: z17.array(NavigationItemSchema2),
|
|
8511
|
+
skipUrlSlug: z17.boolean().optional()
|
|
8512
|
+
});
|
|
8513
|
+
var NavigationTabSchema2 = z17.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
|
|
8514
|
+
var NavigationTabV2Schema = z17.discriminatedUnion("type", [
|
|
8515
|
+
z17.object({ type: z17.literal("group"), ...NavigationTabGroupSchema2.shape }),
|
|
8516
|
+
z17.object({ type: z17.literal("link"), ...NavigationTabLinkSchema2.shape }),
|
|
8517
|
+
z17.object({ type: z17.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
8518
|
+
z17.object({ type: z17.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
8260
8519
|
]);
|
|
8261
|
-
var UnversionedTabbedNavigationConfigSchema2 =
|
|
8262
|
-
tabs:
|
|
8263
|
-
tabsV2:
|
|
8520
|
+
var UnversionedTabbedNavigationConfigSchema2 = z17.object({
|
|
8521
|
+
tabs: z17.array(NavigationTabSchema2).optional(),
|
|
8522
|
+
tabsV2: z17.array(NavigationTabV2Schema).optional(),
|
|
8264
8523
|
landingPage: PageMetadataSchema2.optional()
|
|
8265
8524
|
});
|
|
8266
|
-
var UnversionedUntabbedNavigationConfigSchema2 =
|
|
8267
|
-
items:
|
|
8525
|
+
var UnversionedUntabbedNavigationConfigSchema2 = z17.object({
|
|
8526
|
+
items: z17.array(NavigationItemSchema2),
|
|
8268
8527
|
landingPage: PageMetadataSchema2.optional()
|
|
8269
8528
|
});
|
|
8270
|
-
var UnversionedNavigationConfigSchema2 =
|
|
8529
|
+
var UnversionedNavigationConfigSchema2 = z17.union([
|
|
8271
8530
|
UnversionedTabbedNavigationConfigSchema2,
|
|
8272
8531
|
UnversionedUntabbedNavigationConfigSchema2
|
|
8273
8532
|
]);
|
|
8274
|
-
var VersionedNavigationConfigDataSchema2 =
|
|
8533
|
+
var VersionedNavigationConfigDataSchema2 = z17.object({
|
|
8275
8534
|
version: VersionIdSchema2,
|
|
8276
|
-
urlSlugOverride:
|
|
8535
|
+
urlSlugOverride: z17.string().optional(),
|
|
8277
8536
|
availability: AvailabilitySchema2.optional(),
|
|
8278
8537
|
config: UnversionedNavigationConfigSchema2
|
|
8279
8538
|
});
|
|
8280
|
-
var VersionedNavigationConfigSchema2 =
|
|
8281
|
-
versions:
|
|
8539
|
+
var VersionedNavigationConfigSchema2 = z17.object({
|
|
8540
|
+
versions: z17.array(VersionedNavigationConfigDataSchema2)
|
|
8282
8541
|
});
|
|
8283
|
-
var NavigationConfigSchema2 =
|
|
8284
|
-
var ThemeConfigSchema2 =
|
|
8542
|
+
var NavigationConfigSchema2 = z17.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
|
|
8543
|
+
var ThemeConfigSchema2 = z17.object({
|
|
8285
8544
|
logo: FileIdSchema2.optional(),
|
|
8286
8545
|
backgroundImage: FileIdSchema2.optional(),
|
|
8287
8546
|
accentPrimary: RgbaColorSchema,
|
|
@@ -8303,37 +8562,37 @@ var ThemeConfigSchema2 = z14.object({
|
|
|
8303
8562
|
accent11: RgbaColorSchema.optional(),
|
|
8304
8563
|
accent12: RgbaColorSchema.optional()
|
|
8305
8564
|
});
|
|
8306
|
-
var DarkAndLightModeConfigSchema2 =
|
|
8565
|
+
var DarkAndLightModeConfigSchema2 = z17.object({
|
|
8307
8566
|
dark: ThemeConfigSchema2,
|
|
8308
8567
|
light: ThemeConfigSchema2
|
|
8309
8568
|
});
|
|
8310
|
-
var ColorsConfigV3Schema2 =
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8569
|
+
var ColorsConfigV3Schema2 = z17.discriminatedUnion("type", [
|
|
8570
|
+
z17.object({ type: z17.literal("dark"), ...ThemeConfigSchema2.shape }),
|
|
8571
|
+
z17.object({ type: z17.literal("light"), ...ThemeConfigSchema2.shape }),
|
|
8572
|
+
z17.object({ type: z17.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
|
|
8314
8573
|
]);
|
|
8315
|
-
var DocsConfigSchema2 =
|
|
8316
|
-
title:
|
|
8574
|
+
var DocsConfigSchema2 = z17.object({
|
|
8575
|
+
title: z17.string().optional(),
|
|
8317
8576
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
8318
|
-
languages:
|
|
8577
|
+
languages: z17.array(LanguageSchema).optional(),
|
|
8319
8578
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
8320
|
-
announcement:
|
|
8579
|
+
announcement: z17.object({ text: z17.string() }).optional(),
|
|
8321
8580
|
navigation: NavigationConfigSchema2.optional(),
|
|
8322
|
-
root:
|
|
8323
|
-
navbarLinks:
|
|
8324
|
-
footerLinks:
|
|
8325
|
-
hideNavLinks:
|
|
8581
|
+
root: z17.custom().optional(),
|
|
8582
|
+
navbarLinks: z17.array(NavbarLinkSchema).optional(),
|
|
8583
|
+
footerLinks: z17.array(FooterLinkSchema).optional(),
|
|
8584
|
+
hideNavLinks: z17.boolean().optional(),
|
|
8326
8585
|
logoHeight: HeightSchema2.optional(),
|
|
8327
8586
|
logoHref: UrlSchema2.optional(),
|
|
8328
|
-
logoRightText:
|
|
8587
|
+
logoRightText: z17.string().optional(),
|
|
8329
8588
|
favicon: FileIdSchema2.optional(),
|
|
8330
8589
|
agents: AgentsConfigSchema.optional(),
|
|
8331
8590
|
metadata: MetadataConfigSchema.optional(),
|
|
8332
|
-
redirects:
|
|
8591
|
+
redirects: z17.array(RedirectConfigSchema).optional(),
|
|
8333
8592
|
colorsV3: ColorsConfigV3Schema2.optional(),
|
|
8334
8593
|
layout: DocsLayoutConfigSchema.optional(),
|
|
8335
8594
|
theme: DocsThemeConfigSchema.optional(),
|
|
8336
|
-
globalTheme:
|
|
8595
|
+
globalTheme: z17.string().optional(),
|
|
8337
8596
|
settings: DocsSettingsConfigSchema.optional(),
|
|
8338
8597
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
8339
8598
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -8343,462 +8602,165 @@ var DocsConfigSchema2 = z14.object({
|
|
|
8343
8602
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
8344
8603
|
pageActions: PageActionsConfigSchema.optional(),
|
|
8345
8604
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
8346
|
-
header:
|
|
8347
|
-
footer:
|
|
8605
|
+
header: z17.string().optional(),
|
|
8606
|
+
footer: z17.string().optional(),
|
|
8348
8607
|
backgroundImage: FileIdSchema2.optional(),
|
|
8349
8608
|
logoV2: ThemedFileIdSchema.optional(),
|
|
8350
8609
|
logo: FileIdSchema2.optional(),
|
|
8351
|
-
colors: ColorsConfigSchema.optional(),
|
|
8352
|
-
colorsV2: ColorsConfigV2Schema.optional(),
|
|
8353
|
-
typography: DocsTypographyConfigSchema.optional()
|
|
8354
|
-
});
|
|
8355
|
-
var DocsDefinitionSchema2 = z14.object({
|
|
8356
|
-
pages: z14.record(PageIdSchema2, PageContentSchema2),
|
|
8357
|
-
config: DocsConfigSchema2,
|
|
8358
|
-
jsFiles: z14.record(z14.string(), z14.string()).optional()
|
|
8359
|
-
});
|
|
8360
|
-
var NpmPackageSchema2 = z14.object({
|
|
8361
|
-
packageName: z14.string(),
|
|
8362
|
-
githubRepoName: z14.string(),
|
|
8363
|
-
version: z14.string()
|
|
8364
|
-
});
|
|
8365
|
-
var MavenPackageSchema2 = z14.object({
|
|
8366
|
-
coordinate: z14.string(),
|
|
8367
|
-
githubRepoName: z14.string(),
|
|
8368
|
-
version: z14.string()
|
|
8369
|
-
});
|
|
8370
|
-
var PypiPackageSchema2 = z14.object({
|
|
8371
|
-
packageName: z14.string(),
|
|
8372
|
-
githubRepoName: z14.string(),
|
|
8373
|
-
version: z14.string()
|
|
8374
|
-
});
|
|
8375
|
-
var PublishedSdkSchema2 = z14.discriminatedUnion("type", [
|
|
8376
|
-
z14.object({ type: z14.literal("npm"), ...NpmPackageSchema2.shape }),
|
|
8377
|
-
z14.object({ type: z14.literal("maven"), ...MavenPackageSchema2.shape }),
|
|
8378
|
-
z14.object({ type: z14.literal("pypi"), ...PypiPackageSchema2.shape })
|
|
8379
|
-
]);
|
|
8380
|
-
var PublishedPostmanCollectionSchema2 = z14.object({
|
|
8381
|
-
url: UrlSchema2,
|
|
8382
|
-
githubRepoName: z14.string().optional()
|
|
8383
|
-
});
|
|
8384
|
-
var ApiArtifactsSchema2 = z14.object({
|
|
8385
|
-
sdks: z14.array(PublishedSdkSchema2),
|
|
8386
|
-
postman: PublishedPostmanCollectionSchema2.optional()
|
|
8387
|
-
});
|
|
8388
|
-
var InvalidCustomDomainErrorBodySchema = z14.object({
|
|
8389
|
-
overlappingDomains: z14.array(z14.array(z14.string()))
|
|
8390
|
-
});
|
|
8391
|
-
var OverlappingCustomDomainsSchema = z14.array(z14.string());
|
|
8392
|
-
|
|
8393
|
-
// src/orpc-client/docs/v1/write/contract.ts
|
|
8394
|
-
var StartDocsRegisterV1InputSchema = z15.object({
|
|
8395
|
-
orgId: z15.string(),
|
|
8396
|
-
domain: z15.string(),
|
|
8397
|
-
filepaths: z15.array(z15.string())
|
|
8398
|
-
});
|
|
8399
|
-
var StartDocsRegisterV1ResponseSchema = z15.object({
|
|
8400
|
-
docsRegistrationId: z15.string(),
|
|
8401
|
-
uploadUrls: z15.record(z15.string(), FileS3UploadUrlSchema),
|
|
8402
|
-
skippedFiles: z15.array(z15.string())
|
|
8403
|
-
});
|
|
8404
|
-
var FinishDocsRegisterV1InputSchema = z15.object({
|
|
8405
|
-
docsRegistrationId: z15.string(),
|
|
8406
|
-
docsDefinition: z15.unknown()
|
|
8407
|
-
});
|
|
8408
|
-
var docsV1WriteContract = {
|
|
8409
|
-
startDocsRegister: oc5.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
8410
|
-
finishDocsRegister: oc5.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z15.void())
|
|
8411
|
-
};
|
|
8412
|
-
|
|
8413
|
-
// src/orpc-client/docs/v1/write/client.ts
|
|
8414
|
-
function createDocsV1WriteClient(options) {
|
|
8415
|
-
const link = new OpenAPILink4(docsV1WriteContract, {
|
|
8416
|
-
url: `${options.baseUrl}/registry/docs`,
|
|
8417
|
-
headers: () => ({
|
|
8418
|
-
Authorization: `Bearer ${options.token}`,
|
|
8419
|
-
...options.headers
|
|
8420
|
-
}),
|
|
8421
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8422
|
-
});
|
|
8423
|
-
return createORPCClient4(link);
|
|
8424
|
-
}
|
|
8425
|
-
|
|
8426
|
-
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
8427
|
-
import { createORPCClient as createORPCClient5 } from "@orpc/client";
|
|
8428
|
-
import { OpenAPILink as OpenAPILink5 } from "@orpc/openapi-client/fetch";
|
|
8429
|
-
|
|
8430
|
-
// src/orpc-client/docs/v2/library-docs/contract.ts
|
|
8431
|
-
import { oc as oc6 } from "@orpc/contract";
|
|
8432
|
-
import * as z16 from "zod";
|
|
8433
|
-
var ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
8434
|
-
var GithubUrlSchema = z16.string().url().describe(
|
|
8435
|
-
"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>."
|
|
8436
|
-
).refine(
|
|
8437
|
-
(url) => {
|
|
8438
|
-
try {
|
|
8439
|
-
const parsed = new URL(url);
|
|
8440
|
-
if (parsed.protocol !== "https:") {
|
|
8441
|
-
return false;
|
|
8442
|
-
}
|
|
8443
|
-
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
8444
|
-
return false;
|
|
8445
|
-
}
|
|
8446
|
-
if (parsed.username || parsed.password) {
|
|
8447
|
-
return false;
|
|
8448
|
-
}
|
|
8449
|
-
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
8450
|
-
} catch {
|
|
8451
|
-
return false;
|
|
8452
|
-
}
|
|
8453
|
-
},
|
|
8454
|
-
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
8455
|
-
);
|
|
8456
|
-
var SafeBranchSchema = z16.string().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
8457
|
-
var SafePackagePathSchema = z16.string().refine((p) => !p.includes("..") && !p.startsWith("/"), {
|
|
8458
|
-
message: "packagePath must not contain path traversal sequences"
|
|
8459
|
-
}).nullish();
|
|
8460
|
-
var LibraryDocsBaseConfigSchema = z16.object({
|
|
8461
|
-
branch: SafeBranchSchema,
|
|
8462
|
-
packagePath: SafePackagePathSchema,
|
|
8463
|
-
title: z16.string().nullish(),
|
|
8464
|
-
slug: z16.string().nullish()
|
|
8465
|
-
});
|
|
8466
|
-
var PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
8467
|
-
var CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
8468
|
-
doxyfileContent: z16.string().nullish()
|
|
8469
|
-
});
|
|
8470
|
-
var StartLibraryDocsGenerationInputSchema = z16.discriminatedUnion("language", [
|
|
8471
|
-
z16.object({
|
|
8472
|
-
orgId: z16.string(),
|
|
8473
|
-
githubUrl: GithubUrlSchema,
|
|
8474
|
-
language: z16.literal("PYTHON"),
|
|
8475
|
-
config: PythonLibraryDocsConfigSchema.nullish()
|
|
8476
|
-
}),
|
|
8477
|
-
z16.object({
|
|
8478
|
-
orgId: z16.string(),
|
|
8479
|
-
githubUrl: GithubUrlSchema,
|
|
8480
|
-
language: z16.literal("CPP"),
|
|
8481
|
-
config: CppLibraryDocsConfigSchema.nullish()
|
|
8482
|
-
})
|
|
8483
|
-
]);
|
|
8484
|
-
var StartLibraryDocsGenerationResponseSchema = z16.object({
|
|
8485
|
-
jobId: z16.string()
|
|
8486
|
-
});
|
|
8487
|
-
var GetLibraryDocsStatusInputSchema = z16.object({
|
|
8488
|
-
jobId: z16.string()
|
|
8489
|
-
});
|
|
8490
|
-
var LibraryDocsResultSchema = z16.object({
|
|
8491
|
-
jobId: z16.string(),
|
|
8492
|
-
resultUrl: z16.string()
|
|
8493
|
-
});
|
|
8494
|
-
var LibraryDocsGenerationStatusSchema = z16.object({
|
|
8495
|
-
jobId: z16.string(),
|
|
8496
|
-
status: z16.string(),
|
|
8497
|
-
progress: z16.string(),
|
|
8498
|
-
error: z16.object({
|
|
8499
|
-
code: z16.string(),
|
|
8500
|
-
message: z16.string()
|
|
8501
|
-
}).optional(),
|
|
8502
|
-
createdAt: z16.string(),
|
|
8503
|
-
updatedAt: z16.string()
|
|
8504
|
-
});
|
|
8505
|
-
var libraryDocsContract = {
|
|
8506
|
-
startLibraryDocsGeneration: oc6.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
8507
|
-
getLibraryDocsGenerationStatus: oc6.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
8508
|
-
getLibraryDocsResult: oc6.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
8509
|
-
};
|
|
8510
|
-
|
|
8511
|
-
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
8512
|
-
function createLibraryDocsClient(options) {
|
|
8513
|
-
const link = new OpenAPILink5(libraryDocsContract, {
|
|
8514
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8515
|
-
headers: () => ({
|
|
8516
|
-
Authorization: `Bearer ${options.token}`,
|
|
8517
|
-
...options.headers
|
|
8518
|
-
}),
|
|
8519
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8520
|
-
});
|
|
8521
|
-
return createORPCClient5(link);
|
|
8522
|
-
}
|
|
8523
|
-
|
|
8524
|
-
// src/orpc-client/docs/v2/organization/client.ts
|
|
8525
|
-
import { createORPCClient as createORPCClient6 } from "@orpc/client";
|
|
8526
|
-
import { OpenAPILink as OpenAPILink6 } from "@orpc/openapi-client/fetch";
|
|
8527
|
-
|
|
8528
|
-
// src/orpc-client/docs/v2/organization/contract.ts
|
|
8529
|
-
import { oc as oc7 } from "@orpc/contract";
|
|
8530
|
-
import * as z17 from "zod";
|
|
8531
|
-
var GetOrganizationForUrlInputSchema = z17.object({
|
|
8532
|
-
url: z17.string()
|
|
8533
|
-
});
|
|
8534
|
-
var organizationContract = {
|
|
8535
|
-
getOrganizationForUrl: oc7.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(z17.string())
|
|
8536
|
-
};
|
|
8537
|
-
|
|
8538
|
-
// src/orpc-client/docs/v2/organization/client.ts
|
|
8539
|
-
function createOrganizationClient(options) {
|
|
8540
|
-
const link = new OpenAPILink6(organizationContract, {
|
|
8541
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8542
|
-
headers: () => ({
|
|
8543
|
-
Authorization: `Bearer ${options.token}`,
|
|
8544
|
-
...options.headers
|
|
8545
|
-
}),
|
|
8546
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8547
|
-
});
|
|
8548
|
-
return createORPCClient6(link);
|
|
8549
|
-
}
|
|
8550
|
-
|
|
8551
|
-
// src/orpc-client/docs/v2/read/client.ts
|
|
8552
|
-
import { createORPCClient as createORPCClient7 } from "@orpc/client";
|
|
8553
|
-
import { OpenAPILink as OpenAPILink7 } from "@orpc/openapi-client/fetch";
|
|
8554
|
-
|
|
8555
|
-
// src/orpc-client/docs/v2/read/contract.ts
|
|
8556
|
-
var contract_exports = {};
|
|
8557
|
-
__export(contract_exports, {
|
|
8558
|
-
DocsDefinitionField: () => DocsDefinitionField,
|
|
8559
|
-
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
8560
|
-
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
8561
|
-
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
8562
|
-
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
8563
|
-
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
8564
|
-
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
8565
|
-
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
8566
|
-
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
8567
|
-
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
8568
|
-
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
8569
|
-
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
8570
|
-
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
8571
|
-
docsV2ReadContract: () => docsV2ReadContract,
|
|
8572
|
-
getDocsForUrl: () => getDocsForUrl
|
|
8573
|
-
});
|
|
8574
|
-
import { oc as oc8 } from "@orpc/contract";
|
|
8575
|
-
import * as z18 from "zod";
|
|
8576
|
-
var GetDocsUrlMetadataInputSchema = z18.object({
|
|
8577
|
-
url: z18.string()
|
|
8578
|
-
});
|
|
8579
|
-
var GetDocsUrlMetadataResponseSchema = z18.object({
|
|
8580
|
-
isPreviewUrl: z18.boolean(),
|
|
8581
|
-
org: z18.string(),
|
|
8582
|
-
url: z18.string(),
|
|
8583
|
-
gitUrl: z18.string().nullish(),
|
|
8584
|
-
enableAlgoliaOnPreview: z18.boolean().nullish()
|
|
8585
|
-
});
|
|
8586
|
-
var GetDocsForUrlInputSchema = z18.object({
|
|
8587
|
-
url: z18.string(),
|
|
8588
|
-
excludeApis: z18.boolean().nullish()
|
|
8589
|
-
});
|
|
8590
|
-
var GetPrivateDocsForUrlInputSchema = z18.object({
|
|
8591
|
-
url: z18.string()
|
|
8592
|
-
});
|
|
8593
|
-
var ListAllDocsUrlsInputSchema = z18.object({
|
|
8594
|
-
limit: z18.number().nullish(),
|
|
8595
|
-
page: z18.number().nullish(),
|
|
8596
|
-
custom: z18.boolean().nullish(),
|
|
8597
|
-
preview: z18.boolean().nullish()
|
|
8598
|
-
});
|
|
8599
|
-
var GetDocsConfigByIdInputSchema = z18.object({
|
|
8600
|
-
docsConfigId: z18.string()
|
|
8601
|
-
});
|
|
8602
|
-
var DocsDefinitionField = {
|
|
8603
|
-
BaseUrl: "BASE_URL",
|
|
8604
|
-
FilesV2: "FILES_V2",
|
|
8605
|
-
ApisV2: "APIS_V2",
|
|
8606
|
-
Apis: "APIS",
|
|
8607
|
-
Pages: "PAGES",
|
|
8608
|
-
JsFiles: "JS_FILES",
|
|
8609
|
-
Config: "CONFIG",
|
|
8610
|
-
Root: "ROOT"
|
|
8611
|
-
};
|
|
8612
|
-
var GetDocsConfigByIdResponseSchema = z18.object({
|
|
8613
|
-
docsConfig: DocsConfigSchema,
|
|
8614
|
-
apis: z18.record(z18.string(), z18.unknown())
|
|
8610
|
+
colors: ColorsConfigSchema.optional(),
|
|
8611
|
+
colorsV2: ColorsConfigV2Schema.optional(),
|
|
8612
|
+
typography: DocsTypographyConfigSchema.optional()
|
|
8615
8613
|
});
|
|
8616
|
-
var
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8614
|
+
var DocsDefinitionSchema2 = z17.object({
|
|
8615
|
+
pages: z17.record(PageIdSchema2, PageContentSchema2),
|
|
8616
|
+
config: DocsConfigSchema2,
|
|
8617
|
+
jsFiles: z17.record(z17.string(), z17.string()).optional()
|
|
8618
|
+
});
|
|
8619
|
+
var NpmPackageSchema2 = z17.object({
|
|
8620
|
+
packageName: z17.string(),
|
|
8621
|
+
githubRepoName: z17.string(),
|
|
8622
|
+
version: z17.string()
|
|
8623
|
+
});
|
|
8624
|
+
var MavenPackageSchema2 = z17.object({
|
|
8625
|
+
coordinate: z17.string(),
|
|
8626
|
+
githubRepoName: z17.string(),
|
|
8627
|
+
version: z17.string()
|
|
8628
|
+
});
|
|
8629
|
+
var PypiPackageSchema2 = z17.object({
|
|
8630
|
+
packageName: z17.string(),
|
|
8631
|
+
githubRepoName: z17.string(),
|
|
8632
|
+
version: z17.string()
|
|
8633
|
+
});
|
|
8634
|
+
var PublishedSdkSchema2 = z17.discriminatedUnion("type", [
|
|
8635
|
+
z17.object({ type: z17.literal("npm"), ...NpmPackageSchema2.shape }),
|
|
8636
|
+
z17.object({ type: z17.literal("maven"), ...MavenPackageSchema2.shape }),
|
|
8637
|
+
z17.object({ type: z17.literal("pypi"), ...PypiPackageSchema2.shape })
|
|
8638
|
+
]);
|
|
8639
|
+
var PublishedPostmanCollectionSchema2 = z17.object({
|
|
8640
|
+
url: UrlSchema2,
|
|
8641
|
+
githubRepoName: z17.string().optional()
|
|
8621
8642
|
});
|
|
8622
|
-
var
|
|
8623
|
-
|
|
8643
|
+
var ApiArtifactsSchema2 = z17.object({
|
|
8644
|
+
sdks: z17.array(PublishedSdkSchema2),
|
|
8645
|
+
postman: PublishedPostmanCollectionSchema2.optional()
|
|
8624
8646
|
});
|
|
8625
|
-
var
|
|
8626
|
-
((
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
function _unknown(fetcherError) {
|
|
8630
|
-
return { error: void 0, content: fetcherError };
|
|
8631
|
-
}
|
|
8632
|
-
Error3._unknown = _unknown;
|
|
8633
|
-
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
8634
|
-
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
8635
|
-
var docsV2ReadContract = {
|
|
8636
|
-
getDocsUrlMetadata: oc8.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
8637
|
-
getDocsForUrl: oc8.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8638
|
-
getPrivateDocsForUrl: oc8.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8639
|
-
listAllDocsUrls: oc8.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
8640
|
-
getDocsConfigById: oc8.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
8641
|
-
prepopulateFdrReadS3Bucket: oc8.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z18.void()),
|
|
8642
|
-
ensureDocsInS3: oc8.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z18.void()),
|
|
8643
|
-
getDocsFields: oc8.route({ method: "POST", path: "/load-fields" }).output(z18.void())
|
|
8644
|
-
};
|
|
8645
|
-
|
|
8646
|
-
// src/orpc-client/docs/v2/read/client.ts
|
|
8647
|
-
function createDocsV2ReadClient(options) {
|
|
8648
|
-
const link = new OpenAPILink7(docsV2ReadContract, {
|
|
8649
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8650
|
-
headers: () => ({
|
|
8651
|
-
Authorization: `Bearer ${options.token}`,
|
|
8652
|
-
...options.headers
|
|
8653
|
-
}),
|
|
8654
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8655
|
-
});
|
|
8656
|
-
return createORPCClient7(link);
|
|
8657
|
-
}
|
|
8658
|
-
|
|
8659
|
-
// src/orpc-client/docs/v2/write/client.ts
|
|
8660
|
-
import { createORPCClient as createORPCClient8 } from "@orpc/client";
|
|
8661
|
-
import { OpenAPILink as OpenAPILink8 } from "@orpc/openapi-client/fetch";
|
|
8647
|
+
var InvalidCustomDomainErrorBodySchema = z17.object({
|
|
8648
|
+
overlappingDomains: z17.array(z17.array(z17.string()))
|
|
8649
|
+
});
|
|
8650
|
+
var OverlappingCustomDomainsSchema = z17.array(z17.string());
|
|
8662
8651
|
|
|
8663
8652
|
// src/orpc-client/docs/v2/write/contract.ts
|
|
8664
|
-
var
|
|
8665
|
-
__export(contract_exports2, {
|
|
8666
|
-
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
8667
|
-
AuthConfigSchema: () => AuthConfigSchema,
|
|
8668
|
-
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
8669
|
-
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
8670
|
-
FilePath: () => FilePath2,
|
|
8671
|
-
FilePathInputSchema: () => FilePathInputSchema,
|
|
8672
|
-
FilePathSchema: () => FilePathSchema2,
|
|
8673
|
-
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
8674
|
-
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
8675
|
-
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
8676
|
-
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
8677
|
-
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
8678
|
-
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
8679
|
-
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
8680
|
-
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
8681
|
-
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
8682
|
-
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
8683
|
-
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
8684
|
-
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
8685
|
-
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
8686
|
-
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
8687
|
-
docsV2WriteContract: () => docsV2WriteContract
|
|
8688
|
-
});
|
|
8689
|
-
import { oc as oc9 } from "@orpc/contract";
|
|
8690
|
-
import * as z19 from "zod";
|
|
8691
|
-
var FilePathSchema2 = z19.string();
|
|
8653
|
+
var FilePathSchema2 = z18.string();
|
|
8692
8654
|
function FilePath2(value) {
|
|
8693
8655
|
return value;
|
|
8694
8656
|
}
|
|
8695
|
-
var FilePathInputSchema =
|
|
8657
|
+
var FilePathInputSchema = z18.union([
|
|
8696
8658
|
FilePathSchema2,
|
|
8697
|
-
|
|
8659
|
+
z18.object({ path: FilePathSchema2, fileHash: z18.string().nullish() })
|
|
8698
8660
|
]);
|
|
8699
|
-
var ImageFilePathSchema =
|
|
8661
|
+
var ImageFilePathSchema = z18.object({
|
|
8700
8662
|
filePath: FilePathSchema2,
|
|
8701
|
-
width:
|
|
8702
|
-
height:
|
|
8703
|
-
blurDataUrl:
|
|
8704
|
-
alt:
|
|
8705
|
-
fileHash:
|
|
8706
|
-
});
|
|
8707
|
-
var AuthConfigSchema = z19.object({
|
|
8708
|
-
type: z19.string()
|
|
8709
|
-
});
|
|
8710
|
-
var StartDocsRegisterV2InputSchema = z19.object({
|
|
8711
|
-
orgId: z19.string(),
|
|
8712
|
-
domain: z19.string(),
|
|
8713
|
-
customDomains: z19.array(z19.string()),
|
|
8714
|
-
filepaths: z19.array(FilePathInputSchema),
|
|
8715
|
-
images: z19.array(ImageFilePathSchema).nullish(),
|
|
8716
|
-
authConfig: AuthConfigSchema.nullish()
|
|
8717
|
-
});
|
|
8718
|
-
var StartDocsRegisterV2ResponseSchema = z19.object({
|
|
8719
|
-
docsRegistrationId: z19.string(),
|
|
8720
|
-
uploadUrls: z19.record(z19.string(), FileS3UploadUrlSchema),
|
|
8721
|
-
skippedFiles: z19.array(z19.string())
|
|
8663
|
+
width: z18.number(),
|
|
8664
|
+
height: z18.number(),
|
|
8665
|
+
blurDataUrl: z18.string().nullish(),
|
|
8666
|
+
alt: z18.string().nullish(),
|
|
8667
|
+
fileHash: z18.string().nullish()
|
|
8722
8668
|
});
|
|
8723
|
-
var
|
|
8724
|
-
|
|
8725
|
-
filepaths: z19.array(FilePathInputSchema),
|
|
8726
|
-
basePath: z19.string().nullish(),
|
|
8727
|
-
images: z19.array(ImageFilePathSchema).nullish(),
|
|
8728
|
-
authConfig: AuthConfigSchema.nullish(),
|
|
8729
|
-
previewId: z19.string().nullish()
|
|
8669
|
+
var AuthConfigSchema = z18.object({
|
|
8670
|
+
type: z18.string()
|
|
8730
8671
|
});
|
|
8731
|
-
var
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8672
|
+
var StartDocsRegisterV2InputSchema = z18.object({
|
|
8673
|
+
orgId: z18.string(),
|
|
8674
|
+
domain: z18.string(),
|
|
8675
|
+
customDomains: z18.array(z18.string()),
|
|
8676
|
+
filepaths: z18.array(FilePathInputSchema),
|
|
8677
|
+
images: z18.array(ImageFilePathSchema).nullish(),
|
|
8678
|
+
authConfig: AuthConfigSchema.nullish()
|
|
8736
8679
|
});
|
|
8737
|
-
var
|
|
8738
|
-
docsRegistrationId:
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
excludeApis: z19.boolean().nullish(),
|
|
8742
|
-
basepathAware: z19.boolean().nullish()
|
|
8680
|
+
var StartDocsRegisterV2ResponseSchema = z18.object({
|
|
8681
|
+
docsRegistrationId: z18.string(),
|
|
8682
|
+
uploadUrls: z18.record(z18.string(), FileS3UploadUrlSchema),
|
|
8683
|
+
skippedFiles: z18.array(z18.string())
|
|
8743
8684
|
});
|
|
8744
|
-
var
|
|
8745
|
-
|
|
8746
|
-
|
|
8685
|
+
var StartDocsPreviewRegisterInputSchema = z18.object({
|
|
8686
|
+
orgId: z18.string(),
|
|
8687
|
+
filepaths: z18.array(FilePathInputSchema),
|
|
8688
|
+
basePath: z18.string().nullish(),
|
|
8689
|
+
images: z18.array(ImageFilePathSchema).nullish(),
|
|
8690
|
+
authConfig: AuthConfigSchema.nullish(),
|
|
8691
|
+
previewId: z18.string().nullish()
|
|
8692
|
+
});
|
|
8693
|
+
var StartDocsPreviewRegisterResponseSchema = z18.object({
|
|
8694
|
+
docsRegistrationId: z18.string(),
|
|
8695
|
+
uploadUrls: z18.record(z18.string(), FileS3UploadUrlSchema),
|
|
8696
|
+
skippedFiles: z18.array(z18.string()),
|
|
8697
|
+
previewUrl: z18.string()
|
|
8698
|
+
});
|
|
8699
|
+
var FinishDocsRegisterV2InputSchema = z18.object({
|
|
8700
|
+
docsRegistrationId: z18.string(),
|
|
8701
|
+
docsDefinition: z18.unknown(),
|
|
8702
|
+
libraryDocs: z18.unknown().nullish(),
|
|
8703
|
+
excludeApis: z18.boolean().nullish(),
|
|
8704
|
+
basepathAware: z18.boolean().nullish()
|
|
8705
|
+
});
|
|
8706
|
+
var TransferOwnershipInputSchema = z18.object({
|
|
8707
|
+
domain: z18.string(),
|
|
8708
|
+
toOrgId: z18.string()
|
|
8747
8709
|
});
|
|
8748
|
-
var SetIsArchivedInputSchema =
|
|
8749
|
-
url:
|
|
8750
|
-
isArchived:
|
|
8710
|
+
var SetIsArchivedInputSchema = z18.object({
|
|
8711
|
+
url: z18.string(),
|
|
8712
|
+
isArchived: z18.boolean()
|
|
8751
8713
|
});
|
|
8752
|
-
var SetDocsUrlMetadataInputSchema =
|
|
8753
|
-
url:
|
|
8754
|
-
githubUrl:
|
|
8714
|
+
var SetDocsUrlMetadataInputSchema = z18.object({
|
|
8715
|
+
url: z18.string(),
|
|
8716
|
+
githubUrl: z18.string().nullish()
|
|
8755
8717
|
});
|
|
8756
|
-
var AlgoliaDomainInputSchema =
|
|
8757
|
-
domain:
|
|
8718
|
+
var AlgoliaDomainInputSchema = z18.object({
|
|
8719
|
+
domain: z18.string()
|
|
8758
8720
|
});
|
|
8759
|
-
var ListAlgoliaPreviewWhitelistResponseSchema =
|
|
8760
|
-
domains:
|
|
8721
|
+
var ListAlgoliaPreviewWhitelistResponseSchema = z18.object({
|
|
8722
|
+
domains: z18.array(z18.string())
|
|
8761
8723
|
});
|
|
8762
|
-
var DeleteDocsSiteInputSchema =
|
|
8763
|
-
url:
|
|
8724
|
+
var DeleteDocsSiteInputSchema = z18.object({
|
|
8725
|
+
url: z18.string()
|
|
8764
8726
|
});
|
|
8765
|
-
var RemoveCustomDomainAliasInputSchema =
|
|
8727
|
+
var RemoveCustomDomainAliasInputSchema = z18.object({
|
|
8766
8728
|
/** The custom-domain URL to remove (e.g. `docs.example.com` or `docs.example.com/api`). */
|
|
8767
|
-
url:
|
|
8729
|
+
url: z18.string()
|
|
8768
8730
|
});
|
|
8769
|
-
var Bcp47LocaleSchema2 =
|
|
8731
|
+
var Bcp47LocaleSchema2 = z18.string().regex(
|
|
8770
8732
|
/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$/,
|
|
8771
8733
|
"Locale must be a valid BCP 47 language tag (e.g. 'en', 'fr', 'pt-BR', 'zh-Hans-CN')"
|
|
8772
8734
|
);
|
|
8773
|
-
var RegisterTranslationInputSchema =
|
|
8774
|
-
domain:
|
|
8735
|
+
var RegisterTranslationInputSchema = z18.object({
|
|
8736
|
+
domain: z18.string(),
|
|
8775
8737
|
/**
|
|
8776
8738
|
* Custom domains that share the docs registration with `domain`. The translation
|
|
8777
8739
|
* blob is written to S3 once per URL (fern URL + each custom domain), mirroring
|
|
8778
8740
|
* the fan-out shape of `finishDocsRegister`. Without this, requests to a custom
|
|
8779
8741
|
* domain hit the translation S3 path under the fern URL prefix and 404.
|
|
8780
8742
|
*/
|
|
8781
|
-
customDomains:
|
|
8782
|
-
orgId:
|
|
8743
|
+
customDomains: z18.array(z18.string()).optional().default([]),
|
|
8744
|
+
orgId: z18.string(),
|
|
8783
8745
|
/** BCP 47 language tag identifying the locale for this translation. */
|
|
8784
8746
|
locale: Bcp47LocaleSchema2,
|
|
8785
8747
|
/** The full docs definition for this locale, same structure as finishDocsRegister. */
|
|
8786
|
-
docsDefinition:
|
|
8748
|
+
docsDefinition: z18.unknown()
|
|
8787
8749
|
});
|
|
8788
|
-
var RegisterTranslationResponseSchema =
|
|
8789
|
-
locale:
|
|
8750
|
+
var RegisterTranslationResponseSchema = z18.object({
|
|
8751
|
+
locale: z18.string()
|
|
8790
8752
|
});
|
|
8791
8753
|
var docsV2WriteContract = {
|
|
8792
|
-
startDocsRegister:
|
|
8793
|
-
startDocsPreviewRegister:
|
|
8794
|
-
finishDocsRegister:
|
|
8795
|
-
transferOwnershipOfDomain:
|
|
8796
|
-
setIsArchived:
|
|
8797
|
-
setDocsUrlMetadata:
|
|
8798
|
-
addAlgoliaPreviewWhitelistEntry:
|
|
8799
|
-
removeAlgoliaPreviewWhitelistEntry:
|
|
8800
|
-
listAlgoliaPreviewWhitelist:
|
|
8801
|
-
deleteDocsSite:
|
|
8754
|
+
startDocsRegister: oc8.route({ method: "POST", path: "/v2/init" }).input(StartDocsRegisterV2InputSchema).output(StartDocsRegisterV2ResponseSchema),
|
|
8755
|
+
startDocsPreviewRegister: oc8.route({ method: "POST", path: "/preview/init" }).input(StartDocsPreviewRegisterInputSchema).output(StartDocsPreviewRegisterResponseSchema),
|
|
8756
|
+
finishDocsRegister: oc8.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV2InputSchema).output(z18.void()),
|
|
8757
|
+
transferOwnershipOfDomain: oc8.route({ method: "POST", path: "/transfer-ownership" }).input(TransferOwnershipInputSchema).output(z18.void()),
|
|
8758
|
+
setIsArchived: oc8.route({ method: "POST", path: "/set-is-archived" }).input(SetIsArchivedInputSchema).output(z18.void()),
|
|
8759
|
+
setDocsUrlMetadata: oc8.route({ method: "POST", path: "/set-metadata-for-url" }).input(SetDocsUrlMetadataInputSchema).output(z18.void()),
|
|
8760
|
+
addAlgoliaPreviewWhitelistEntry: oc8.route({ method: "POST", path: "/algolia-preview-whitelist/add" }).input(AlgoliaDomainInputSchema).output(z18.void()),
|
|
8761
|
+
removeAlgoliaPreviewWhitelistEntry: oc8.route({ method: "POST", path: "/algolia-preview-whitelist/remove" }).input(AlgoliaDomainInputSchema).output(z18.void()),
|
|
8762
|
+
listAlgoliaPreviewWhitelist: oc8.route({ method: "GET", path: "/algolia-preview-whitelist/list" }).output(ListAlgoliaPreviewWhitelistResponseSchema),
|
|
8763
|
+
deleteDocsSite: oc8.route({ method: "POST", path: "/delete" }).input(DeleteDocsSiteInputSchema).output(z18.void()),
|
|
8802
8764
|
/**
|
|
8803
8765
|
* Removes a single custom-domain alias from a docs site, leaving the
|
|
8804
8766
|
* Fern-URL sibling intact. Use this when un-binding a custom domain
|
|
@@ -8807,13 +8769,13 @@ var docsV2WriteContract = {
|
|
|
8807
8769
|
*
|
|
8808
8770
|
* Idempotent: succeeds with no-op if the URL is not registered.
|
|
8809
8771
|
*/
|
|
8810
|
-
removeCustomDomainAlias:
|
|
8811
|
-
registerTranslation:
|
|
8772
|
+
removeCustomDomainAlias: oc8.route({ method: "POST", path: "/remove-custom-domain-alias" }).input(RemoveCustomDomainAliasInputSchema).output(z18.void()),
|
|
8773
|
+
registerTranslation: oc8.route({ method: "POST", path: "/translations/register" }).input(RegisterTranslationInputSchema).output(RegisterTranslationResponseSchema)
|
|
8812
8774
|
};
|
|
8813
8775
|
|
|
8814
8776
|
// src/orpc-client/docs/v2/write/client.ts
|
|
8815
8777
|
function createDocsV2WriteClient(options) {
|
|
8816
|
-
const link = new
|
|
8778
|
+
const link = new OpenAPILink7(docsV2WriteContract, {
|
|
8817
8779
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
8818
8780
|
headers: () => ({
|
|
8819
8781
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -8821,15 +8783,14 @@ function createDocsV2WriteClient(options) {
|
|
|
8821
8783
|
}),
|
|
8822
8784
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8823
8785
|
});
|
|
8824
|
-
return
|
|
8786
|
+
return createORPCClient7(link);
|
|
8825
8787
|
}
|
|
8826
8788
|
|
|
8827
8789
|
// src/orpc-client/docs/client.ts
|
|
8828
8790
|
function createDocsClient(options) {
|
|
8829
8791
|
return {
|
|
8830
8792
|
v1: {
|
|
8831
|
-
read: createDocsV1ReadClient(options)
|
|
8832
|
-
write: createDocsV1WriteClient(options)
|
|
8793
|
+
read: createDocsV1ReadClient(options)
|
|
8833
8794
|
},
|
|
8834
8795
|
v2: {
|
|
8835
8796
|
read: createDocsV2ReadClient(options),
|
|
@@ -8841,22 +8802,22 @@ function createDocsClient(options) {
|
|
|
8841
8802
|
}
|
|
8842
8803
|
|
|
8843
8804
|
// src/orpc-client/docs-cache/client.ts
|
|
8844
|
-
import { createORPCClient as
|
|
8845
|
-
import { OpenAPILink as
|
|
8805
|
+
import { createORPCClient as createORPCClient8 } from "@orpc/client";
|
|
8806
|
+
import { OpenAPILink as OpenAPILink8 } from "@orpc/openapi-client/fetch";
|
|
8846
8807
|
|
|
8847
8808
|
// src/orpc-client/docs-cache/contract.ts
|
|
8848
|
-
import { oc as
|
|
8849
|
-
import * as
|
|
8850
|
-
var InvalidateCachedDocsInputSchema =
|
|
8851
|
-
url:
|
|
8809
|
+
import { oc as oc9 } from "@orpc/contract";
|
|
8810
|
+
import * as z19 from "zod";
|
|
8811
|
+
var InvalidateCachedDocsInputSchema = z19.object({
|
|
8812
|
+
url: z19.string()
|
|
8852
8813
|
});
|
|
8853
8814
|
var docsCacheContract = {
|
|
8854
|
-
invalidate:
|
|
8815
|
+
invalidate: oc9.route({ method: "POST", path: "/invalidate" }).input(InvalidateCachedDocsInputSchema).output(z19.void())
|
|
8855
8816
|
};
|
|
8856
8817
|
|
|
8857
8818
|
// src/orpc-client/docs-cache/client.ts
|
|
8858
8819
|
function createDocsCacheClient(options) {
|
|
8859
|
-
const link = new
|
|
8820
|
+
const link = new OpenAPILink8(docsCacheContract, {
|
|
8860
8821
|
url: `${options.baseUrl}/docs-cache`,
|
|
8861
8822
|
headers: () => ({
|
|
8862
8823
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -8864,14 +8825,14 @@ function createDocsCacheClient(options) {
|
|
|
8864
8825
|
}),
|
|
8865
8826
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8866
8827
|
});
|
|
8867
|
-
return
|
|
8828
|
+
return createORPCClient8(link);
|
|
8868
8829
|
}
|
|
8869
8830
|
|
|
8870
8831
|
// src/orpc-client/docs-deployment/client.ts
|
|
8871
|
-
import { createORPCClient as
|
|
8872
|
-
import { OpenAPILink as
|
|
8832
|
+
import { createORPCClient as createORPCClient9 } from "@orpc/client";
|
|
8833
|
+
import { OpenAPILink as OpenAPILink9 } from "@orpc/openapi-client/fetch";
|
|
8873
8834
|
function createDocsDeploymentClient(options) {
|
|
8874
|
-
const link = new
|
|
8835
|
+
const link = new OpenAPILink9(docsDeploymentContract, {
|
|
8875
8836
|
url: `${options.baseUrl}/docs-deployment`,
|
|
8876
8837
|
headers: () => ({
|
|
8877
8838
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -8879,58 +8840,58 @@ function createDocsDeploymentClient(options) {
|
|
|
8879
8840
|
}),
|
|
8880
8841
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
8881
8842
|
});
|
|
8882
|
-
return
|
|
8843
|
+
return createORPCClient9(link);
|
|
8883
8844
|
}
|
|
8884
8845
|
|
|
8885
8846
|
// src/orpc-client/docs-ledger/client.ts
|
|
8886
|
-
import { createORPCClient as
|
|
8887
|
-
import { OpenAPILink as
|
|
8847
|
+
import { createORPCClient as createORPCClient10 } from "@orpc/client";
|
|
8848
|
+
import { OpenAPILink as OpenAPILink10 } from "@orpc/openapi-client/fetch";
|
|
8888
8849
|
|
|
8889
8850
|
// src/orpc-client/docs-ledger/contract.ts
|
|
8890
|
-
import { oc as
|
|
8891
|
-
import * as
|
|
8892
|
-
var MissingContentSchema =
|
|
8893
|
-
hash:
|
|
8894
|
-
uploadUrl:
|
|
8851
|
+
import { oc as oc10 } from "@orpc/contract";
|
|
8852
|
+
import * as z20 from "zod";
|
|
8853
|
+
var MissingContentSchema = z20.object({
|
|
8854
|
+
hash: z20.string(),
|
|
8855
|
+
uploadUrl: z20.string()
|
|
8895
8856
|
});
|
|
8896
|
-
var RegisterResponseSchema =
|
|
8897
|
-
deploymentHash:
|
|
8898
|
-
missingContent:
|
|
8857
|
+
var RegisterResponseSchema = z20.object({
|
|
8858
|
+
deploymentHash: z20.string(),
|
|
8859
|
+
missingContent: z20.array(MissingContentSchema)
|
|
8899
8860
|
});
|
|
8900
|
-
var FinishResponseSchema =
|
|
8901
|
-
deploymentId:
|
|
8861
|
+
var FinishResponseSchema = z20.object({
|
|
8862
|
+
deploymentId: z20.string(),
|
|
8902
8863
|
/** ID of the canonical (fern URL) site row. */
|
|
8903
|
-
siteId:
|
|
8864
|
+
siteId: z20.string(),
|
|
8904
8865
|
/**
|
|
8905
8866
|
* IDs of any additional site rows created for `customDomains` URLs
|
|
8906
8867
|
* (ADR 0010). Empty when the publish has no `customDomains`. One ID
|
|
8907
8868
|
* per parsed customDomain, in the same order as the input.
|
|
8908
8869
|
*/
|
|
8909
|
-
additionalSiteIds:
|
|
8910
|
-
deploymentHash:
|
|
8911
|
-
reusedDeployment:
|
|
8870
|
+
additionalSiteIds: z20.array(z20.string()).default([]),
|
|
8871
|
+
deploymentHash: z20.string(),
|
|
8872
|
+
reusedDeployment: z20.boolean(),
|
|
8912
8873
|
/**
|
|
8913
8874
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
8914
8875
|
* finish input. Absent when no translations were included.
|
|
8915
8876
|
*/
|
|
8916
|
-
translationsProcessed:
|
|
8877
|
+
translationsProcessed: z20.array(z20.object({ locale: z20.string(), segmentsAdded: z20.number() })).optional()
|
|
8917
8878
|
});
|
|
8918
|
-
var ArchiveSiteInputSchema =
|
|
8919
|
-
siteId:
|
|
8879
|
+
var ArchiveSiteInputSchema = z20.object({
|
|
8880
|
+
siteId: z20.string()
|
|
8920
8881
|
});
|
|
8921
|
-
var ArchiveSiteResponseSchema =
|
|
8922
|
-
status:
|
|
8882
|
+
var ArchiveSiteResponseSchema = z20.object({
|
|
8883
|
+
status: z20.enum(["archived", "already_archived", "not_found"])
|
|
8923
8884
|
});
|
|
8924
|
-
var BlobRefSchema =
|
|
8925
|
-
hash:
|
|
8926
|
-
contentType:
|
|
8927
|
-
contentLength:
|
|
8885
|
+
var BlobRefSchema = z20.object({
|
|
8886
|
+
hash: z20.string(),
|
|
8887
|
+
contentType: z20.string(),
|
|
8888
|
+
contentLength: z20.number()
|
|
8928
8889
|
});
|
|
8929
|
-
var PageBlobRefSchema =
|
|
8890
|
+
var PageBlobRefSchema = z20.object({
|
|
8930
8891
|
/** SHA-256 hex of the page content bytes. */
|
|
8931
|
-
hash:
|
|
8932
|
-
contentType:
|
|
8933
|
-
contentLength:
|
|
8892
|
+
hash: z20.string(),
|
|
8893
|
+
contentType: z20.string().default("text/markdown"),
|
|
8894
|
+
contentLength: z20.number(),
|
|
8934
8895
|
/**
|
|
8935
8896
|
* Bare `fullPath`s of the file/image artifacts this page's rendered
|
|
8936
8897
|
* markdown references (the `<fullPath>` of each `file:<fullPath>` token).
|
|
@@ -8940,35 +8901,35 @@ var PageBlobRefSchema = z21.object({
|
|
|
8940
8901
|
* (ADR 0016, "File metadata on the render path"). Optional — older CLIs
|
|
8941
8902
|
* omit it and the page simply contributes no shard-side file identities.
|
|
8942
8903
|
*/
|
|
8943
|
-
referencedFiles:
|
|
8904
|
+
referencedFiles: z20.array(z20.string()).optional()
|
|
8944
8905
|
});
|
|
8945
|
-
var FileManifestEntrySchema =
|
|
8906
|
+
var FileManifestEntrySchema = z20.object({
|
|
8946
8907
|
/** SHA-256 hex of the file bytes (= CAS content hash). */
|
|
8947
|
-
hash:
|
|
8948
|
-
contentType:
|
|
8949
|
-
contentLength:
|
|
8908
|
+
hash: z20.string(),
|
|
8909
|
+
contentType: z20.string(),
|
|
8910
|
+
contentLength: z20.number(),
|
|
8950
8911
|
/** Original filename (e.g. "logo.png"). Used for Content-Disposition and URL cosmetics. */
|
|
8951
|
-
filename:
|
|
8912
|
+
filename: z20.string(),
|
|
8952
8913
|
/** Image width in pixels (images only). */
|
|
8953
|
-
width:
|
|
8914
|
+
width: z20.number().optional(),
|
|
8954
8915
|
/** Image height in pixels (images only). */
|
|
8955
|
-
height:
|
|
8916
|
+
height: z20.number().optional(),
|
|
8956
8917
|
/** Base64-encoded blur placeholder (images only). */
|
|
8957
|
-
blurDataURL:
|
|
8918
|
+
blurDataURL: z20.string().optional()
|
|
8958
8919
|
});
|
|
8959
|
-
var ImageRefSchema =
|
|
8960
|
-
path:
|
|
8961
|
-
width:
|
|
8962
|
-
height:
|
|
8920
|
+
var ImageRefSchema = z20.object({
|
|
8921
|
+
path: z20.string(),
|
|
8922
|
+
width: z20.number(),
|
|
8923
|
+
height: z20.number()
|
|
8963
8924
|
});
|
|
8964
|
-
var PathOrUrlSchema =
|
|
8965
|
-
|
|
8966
|
-
|
|
8925
|
+
var PathOrUrlSchema = z20.discriminatedUnion("type", [
|
|
8926
|
+
z20.object({ type: z20.literal("path"), value: z20.string() }),
|
|
8927
|
+
z20.object({ type: z20.literal("url"), value: z20.string() })
|
|
8967
8928
|
]);
|
|
8968
|
-
var RgbaSchema =
|
|
8969
|
-
var BackgroundColorSchema =
|
|
8970
|
-
|
|
8971
|
-
|
|
8929
|
+
var RgbaSchema = z20.object({ r: z20.number(), g: z20.number(), b: z20.number(), a: z20.number().optional() });
|
|
8930
|
+
var BackgroundColorSchema = z20.discriminatedUnion("type", [
|
|
8931
|
+
z20.object({ type: z20.literal("solid"), ...RgbaSchema.shape }),
|
|
8932
|
+
z20.object({ type: z20.literal("gradient") })
|
|
8972
8933
|
]);
|
|
8973
8934
|
var ACCENT_SCALE_KEYS = [
|
|
8974
8935
|
"accent1",
|
|
@@ -8985,9 +8946,9 @@ var ACCENT_SCALE_KEYS = [
|
|
|
8985
8946
|
"accent12"
|
|
8986
8947
|
];
|
|
8987
8948
|
var accentScaleShape = Object.fromEntries(ACCENT_SCALE_KEYS.map((key) => [key, RgbaSchema.optional()]));
|
|
8988
|
-
var LedgerThemeConfigSchema =
|
|
8949
|
+
var LedgerThemeConfigSchema = z20.object({
|
|
8989
8950
|
logo: ImageRefSchema.optional(),
|
|
8990
|
-
backgroundImage:
|
|
8951
|
+
backgroundImage: z20.string().optional(),
|
|
8991
8952
|
accentPrimary: RgbaSchema,
|
|
8992
8953
|
background: BackgroundColorSchema.optional(),
|
|
8993
8954
|
border: RgbaSchema.optional(),
|
|
@@ -8996,51 +8957,51 @@ var LedgerThemeConfigSchema = z21.object({
|
|
|
8996
8957
|
cardBackground: RgbaSchema.optional(),
|
|
8997
8958
|
...accentScaleShape
|
|
8998
8959
|
});
|
|
8999
|
-
var LedgerColorsConfigSchema =
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
type:
|
|
8960
|
+
var LedgerColorsConfigSchema = z20.discriminatedUnion("type", [
|
|
8961
|
+
z20.object({ type: z20.literal("dark"), ...LedgerThemeConfigSchema.shape }),
|
|
8962
|
+
z20.object({ type: z20.literal("light"), ...LedgerThemeConfigSchema.shape }),
|
|
8963
|
+
z20.object({
|
|
8964
|
+
type: z20.literal("darkAndLight"),
|
|
9004
8965
|
dark: LedgerThemeConfigSchema,
|
|
9005
8966
|
light: LedgerThemeConfigSchema
|
|
9006
8967
|
})
|
|
9007
8968
|
]);
|
|
9008
|
-
var LedgerFontVariantSchema =
|
|
9009
|
-
fontFile:
|
|
9010
|
-
weight:
|
|
9011
|
-
style:
|
|
9012
|
-
});
|
|
9013
|
-
var LedgerFontConfigSchema =
|
|
9014
|
-
|
|
9015
|
-
type:
|
|
9016
|
-
name:
|
|
9017
|
-
variants:
|
|
9018
|
-
display:
|
|
9019
|
-
fallback:
|
|
9020
|
-
fontVariationSettings:
|
|
8969
|
+
var LedgerFontVariantSchema = z20.object({
|
|
8970
|
+
fontFile: z20.string(),
|
|
8971
|
+
weight: z20.array(z20.string()).optional(),
|
|
8972
|
+
style: z20.array(z20.enum(["normal", "italic"])).optional()
|
|
8973
|
+
});
|
|
8974
|
+
var LedgerFontConfigSchema = z20.discriminatedUnion("type", [
|
|
8975
|
+
z20.object({
|
|
8976
|
+
type: z20.literal("custom"),
|
|
8977
|
+
name: z20.string(),
|
|
8978
|
+
variants: z20.array(LedgerFontVariantSchema),
|
|
8979
|
+
display: z20.enum(["auto", "block", "swap", "fallback", "optional"]).optional(),
|
|
8980
|
+
fallback: z20.array(z20.string()).optional(),
|
|
8981
|
+
fontVariationSettings: z20.string().optional()
|
|
9021
8982
|
})
|
|
9022
8983
|
]);
|
|
9023
|
-
var LedgerTypographySchema =
|
|
8984
|
+
var LedgerTypographySchema = z20.object({
|
|
9024
8985
|
headingsFont: LedgerFontConfigSchema.optional(),
|
|
9025
8986
|
bodyFont: LedgerFontConfigSchema.optional(),
|
|
9026
8987
|
codeFont: LedgerFontConfigSchema.optional()
|
|
9027
8988
|
});
|
|
9028
|
-
var LedgerJsFileSchema =
|
|
9029
|
-
path:
|
|
9030
|
-
strategy:
|
|
8989
|
+
var LedgerJsFileSchema = z20.object({
|
|
8990
|
+
path: z20.string(),
|
|
8991
|
+
strategy: z20.enum(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
9031
8992
|
});
|
|
9032
|
-
var LedgerJsConfigSchema =
|
|
9033
|
-
remote:
|
|
9034
|
-
|
|
9035
|
-
url:
|
|
9036
|
-
strategy:
|
|
8993
|
+
var LedgerJsConfigSchema = z20.object({
|
|
8994
|
+
remote: z20.array(
|
|
8995
|
+
z20.object({
|
|
8996
|
+
url: z20.string(),
|
|
8997
|
+
strategy: z20.enum(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
9037
8998
|
})
|
|
9038
8999
|
).optional(),
|
|
9039
|
-
files:
|
|
9040
|
-
inline:
|
|
9000
|
+
files: z20.array(LedgerJsFileSchema).optional(),
|
|
9001
|
+
inline: z20.array(z20.string()).optional()
|
|
9041
9002
|
});
|
|
9042
|
-
var LedgerMetadataConfigSchema =
|
|
9043
|
-
|
|
9003
|
+
var LedgerMetadataConfigSchema = z20.record(z20.string(), z20.unknown()).and(
|
|
9004
|
+
z20.object({
|
|
9044
9005
|
"og:image": PathOrUrlSchema.optional(),
|
|
9045
9006
|
"og:logo": PathOrUrlSchema.optional(),
|
|
9046
9007
|
"twitter:image": PathOrUrlSchema.optional(),
|
|
@@ -9048,83 +9009,83 @@ var LedgerMetadataConfigSchema = z21.record(z21.string(), z21.unknown()).and(
|
|
|
9048
9009
|
"og:dynamic:background-image": PathOrUrlSchema.optional()
|
|
9049
9010
|
})
|
|
9050
9011
|
);
|
|
9051
|
-
var NavbarLinksFieldSchema =
|
|
9052
|
-
var FooterLinksFieldSchema =
|
|
9012
|
+
var NavbarLinksFieldSchema = z20.array(NavbarLinkSchema);
|
|
9013
|
+
var FooterLinksFieldSchema = z20.array(FooterLinkSchema);
|
|
9053
9014
|
var LayoutFieldSchema = DocsLayoutConfigSchema;
|
|
9054
9015
|
var ThemeFieldSchema = DocsThemeConfigSchema;
|
|
9055
9016
|
var SettingsFieldSchema = DocsSettingsConfigSchema;
|
|
9056
9017
|
var AnalyticsFieldSchema = AnalyticsConfigSchema;
|
|
9057
9018
|
var AIChatFieldSchema = AIChatConfigSchema;
|
|
9058
9019
|
var PageActionsFieldSchema = PageActionsConfigSchema;
|
|
9059
|
-
var LedgerAgentsConfigSchema =
|
|
9060
|
-
pageDirective:
|
|
9061
|
-
pageDescriptionSource:
|
|
9062
|
-
siteDescription:
|
|
9063
|
-
});
|
|
9064
|
-
var LedgerConfigSchema =
|
|
9065
|
-
title:
|
|
9066
|
-
rootSlug:
|
|
9067
|
-
defaultLanguage:
|
|
9068
|
-
translations:
|
|
9069
|
-
defaultLocale:
|
|
9070
|
-
translations:
|
|
9020
|
+
var LedgerAgentsConfigSchema = z20.object({
|
|
9021
|
+
pageDirective: z20.string().optional(),
|
|
9022
|
+
pageDescriptionSource: z20.enum(["description", "subtitle"]).optional(),
|
|
9023
|
+
siteDescription: z20.string().optional()
|
|
9024
|
+
});
|
|
9025
|
+
var LedgerConfigSchema = z20.object({
|
|
9026
|
+
title: z20.string().optional(),
|
|
9027
|
+
rootSlug: z20.string().optional(),
|
|
9028
|
+
defaultLanguage: z20.string().optional(),
|
|
9029
|
+
translations: z20.object({
|
|
9030
|
+
defaultLocale: z20.string(),
|
|
9031
|
+
translations: z20.array(z20.string()).optional()
|
|
9071
9032
|
}).optional(),
|
|
9072
|
-
announcement:
|
|
9033
|
+
announcement: z20.object({ text: z20.string() }).optional(),
|
|
9073
9034
|
navbarLinks: NavbarLinksFieldSchema.optional(),
|
|
9074
9035
|
footerLinks: FooterLinksFieldSchema.optional(),
|
|
9075
|
-
logoHeight:
|
|
9076
|
-
logoHref:
|
|
9077
|
-
logoRightText:
|
|
9036
|
+
logoHeight: z20.number().optional(),
|
|
9037
|
+
logoHref: z20.string().optional(),
|
|
9038
|
+
logoRightText: z20.string().optional(),
|
|
9078
9039
|
/** fullPath of the favicon file artifact (any extension: .svg/.png/.ico). */
|
|
9079
|
-
favicon:
|
|
9040
|
+
favicon: z20.string().nullish(),
|
|
9080
9041
|
agents: LedgerAgentsConfigSchema.optional(),
|
|
9081
9042
|
metadata: LedgerMetadataConfigSchema.optional(),
|
|
9082
|
-
redirects:
|
|
9043
|
+
redirects: z20.array(z20.object({ source: z20.string(), destination: z20.string(), permanent: z20.boolean().optional() })).optional(),
|
|
9083
9044
|
colorsV3: LedgerColorsConfigSchema.optional(),
|
|
9084
9045
|
layout: LayoutFieldSchema.optional(),
|
|
9085
9046
|
theme: ThemeFieldSchema.optional(),
|
|
9086
9047
|
settings: SettingsFieldSchema.optional(),
|
|
9087
9048
|
typographyV2: LedgerTypographySchema.optional(),
|
|
9088
9049
|
analyticsConfig: AnalyticsFieldSchema.optional(),
|
|
9089
|
-
integrations:
|
|
9090
|
-
intercom:
|
|
9050
|
+
integrations: z20.object({
|
|
9051
|
+
intercom: z20.string().optional()
|
|
9091
9052
|
}).optional(),
|
|
9092
|
-
css:
|
|
9053
|
+
css: z20.object({ inline: z20.array(z20.string()).optional() }).optional(),
|
|
9093
9054
|
js: LedgerJsConfigSchema.optional(),
|
|
9094
9055
|
aiChatConfig: AIChatFieldSchema.optional(),
|
|
9095
9056
|
pageActions: PageActionsFieldSchema.optional(),
|
|
9096
|
-
editThisPageLaunch:
|
|
9057
|
+
editThisPageLaunch: z20.enum(["github", "dashboard"]).optional(),
|
|
9097
9058
|
/**
|
|
9098
9059
|
* Explicit edit-this-page GitHub config from docs.yml (ADR 0012 parity).
|
|
9099
9060
|
* When present, the loader synthesises `editThisPageUrl` from these fields
|
|
9100
9061
|
* instead of relying on deployment-scoped git provenance. This matches the
|
|
9101
9062
|
* v2 behaviour where the CLI derives the URL from the declared config.
|
|
9102
9063
|
*/
|
|
9103
|
-
editThisPageGithub:
|
|
9104
|
-
owner:
|
|
9105
|
-
repo:
|
|
9106
|
-
branch:
|
|
9107
|
-
host:
|
|
9064
|
+
editThisPageGithub: z20.object({
|
|
9065
|
+
owner: z20.string(),
|
|
9066
|
+
repo: z20.string(),
|
|
9067
|
+
branch: z20.string().default("main"),
|
|
9068
|
+
host: z20.string().default("https://github.com")
|
|
9108
9069
|
}).optional(),
|
|
9109
|
-
header:
|
|
9110
|
-
footer:
|
|
9111
|
-
});
|
|
9112
|
-
var MetadataStringArraySchema =
|
|
9113
|
-
var FeatureFlagMetadataSchema =
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
flag:
|
|
9118
|
-
fallbackValue:
|
|
9119
|
-
match:
|
|
9070
|
+
header: z20.string().optional(),
|
|
9071
|
+
footer: z20.string().optional()
|
|
9072
|
+
});
|
|
9073
|
+
var MetadataStringArraySchema = z20.array(z20.string());
|
|
9074
|
+
var FeatureFlagMetadataSchema = z20.array(
|
|
9075
|
+
z20.union([
|
|
9076
|
+
z20.string(),
|
|
9077
|
+
z20.object({
|
|
9078
|
+
flag: z20.string(),
|
|
9079
|
+
fallbackValue: z20.unknown().optional(),
|
|
9080
|
+
match: z20.unknown().optional()
|
|
9120
9081
|
})
|
|
9121
9082
|
])
|
|
9122
9083
|
);
|
|
9123
|
-
var LinkTargetSchema2 =
|
|
9124
|
-
var CollapsedSchema =
|
|
9125
|
-
var LedgerAvailabilitySchema =
|
|
9084
|
+
var LinkTargetSchema2 = z20.enum(["_blank", "_self", "_parent", "_top"]);
|
|
9085
|
+
var CollapsedSchema = z20.union([z20.boolean(), z20.literal("open-by-default")]);
|
|
9086
|
+
var LedgerAvailabilitySchema = z20.union([
|
|
9126
9087
|
AvailabilitySchema,
|
|
9127
|
-
|
|
9088
|
+
z20.enum([
|
|
9128
9089
|
"alpha",
|
|
9129
9090
|
"stable",
|
|
9130
9091
|
"generally-available",
|
|
@@ -9136,7 +9097,7 @@ var LedgerAvailabilitySchema = z21.union([
|
|
|
9136
9097
|
"legacy"
|
|
9137
9098
|
])
|
|
9138
9099
|
]);
|
|
9139
|
-
var LedgerArtifactTypeSchema =
|
|
9100
|
+
var LedgerArtifactTypeSchema = z20.enum([
|
|
9140
9101
|
"markdown",
|
|
9141
9102
|
"page",
|
|
9142
9103
|
"rest",
|
|
@@ -9150,170 +9111,170 @@ var LedgerArtifactTypeSchema = z21.enum([
|
|
|
9150
9111
|
"image",
|
|
9151
9112
|
"redirect"
|
|
9152
9113
|
]);
|
|
9153
|
-
var LedgerMetadataBaseSchema =
|
|
9114
|
+
var LedgerMetadataBaseSchema = z20.object({}).passthrough();
|
|
9154
9115
|
var NodeMetadataFields = {
|
|
9155
|
-
title:
|
|
9156
|
-
slug:
|
|
9157
|
-
icon:
|
|
9158
|
-
authed:
|
|
9116
|
+
title: z20.string().optional(),
|
|
9117
|
+
slug: z20.string().optional(),
|
|
9118
|
+
icon: z20.string().optional(),
|
|
9119
|
+
authed: z20.boolean().optional(),
|
|
9159
9120
|
viewers: MetadataStringArraySchema.optional(),
|
|
9160
|
-
orphaned:
|
|
9121
|
+
orphaned: z20.boolean().optional(),
|
|
9161
9122
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
9162
9123
|
};
|
|
9163
9124
|
var ApiNodeMetadataFields = {
|
|
9164
9125
|
...NodeMetadataFields,
|
|
9165
|
-
apiDefinitionId:
|
|
9126
|
+
apiDefinitionId: z20.string(),
|
|
9166
9127
|
availability: LedgerAvailabilitySchema.optional()
|
|
9167
9128
|
};
|
|
9168
9129
|
var LedgerSegmentDetailMetadataObjectSchema = LedgerMetadataBaseSchema.extend({
|
|
9169
|
-
slug:
|
|
9170
|
-
default:
|
|
9171
|
-
subtitle:
|
|
9172
|
-
href:
|
|
9173
|
-
url:
|
|
9130
|
+
slug: z20.string().optional(),
|
|
9131
|
+
default: z20.boolean().optional(),
|
|
9132
|
+
subtitle: z20.string().optional(),
|
|
9133
|
+
href: z20.string().optional(),
|
|
9134
|
+
url: z20.string().optional(),
|
|
9174
9135
|
target: LinkTargetSchema2.optional(),
|
|
9175
|
-
image:
|
|
9176
|
-
pointsTo:
|
|
9136
|
+
image: z20.string().optional(),
|
|
9137
|
+
pointsTo: z20.string().optional(),
|
|
9177
9138
|
availability: LedgerAvailabilitySchema.optional(),
|
|
9178
|
-
tab_type:
|
|
9139
|
+
tab_type: z20.enum(["tab", "link", "changelog"]).optional()
|
|
9179
9140
|
});
|
|
9180
9141
|
var LedgerSegmentDetailMetadataSchema = LedgerSegmentDetailMetadataObjectSchema.nullable();
|
|
9181
|
-
var LedgerSegmentMetadataObjectSchema =
|
|
9142
|
+
var LedgerSegmentMetadataObjectSchema = z20.discriminatedUnion("type", [
|
|
9182
9143
|
LedgerMetadataBaseSchema.extend({
|
|
9183
|
-
type:
|
|
9144
|
+
type: z20.literal("tabRoot")
|
|
9184
9145
|
}),
|
|
9185
9146
|
LedgerMetadataBaseSchema.extend({
|
|
9186
|
-
type:
|
|
9187
|
-
title:
|
|
9188
|
-
icon:
|
|
9189
|
-
authed:
|
|
9147
|
+
type: z20.literal("section"),
|
|
9148
|
+
title: z20.string().optional(),
|
|
9149
|
+
icon: z20.string().optional(),
|
|
9150
|
+
authed: z20.boolean().optional(),
|
|
9190
9151
|
collapsed: CollapsedSchema.optional(),
|
|
9191
|
-
collapsible:
|
|
9192
|
-
collapsedByDefault:
|
|
9152
|
+
collapsible: z20.boolean().optional(),
|
|
9153
|
+
collapsedByDefault: z20.boolean().optional(),
|
|
9193
9154
|
availability: LedgerAvailabilitySchema.optional(),
|
|
9194
|
-
overviewPageId:
|
|
9195
|
-
noindex:
|
|
9196
|
-
pointsTo:
|
|
9155
|
+
overviewPageId: z20.string().optional(),
|
|
9156
|
+
noindex: z20.boolean().optional(),
|
|
9157
|
+
pointsTo: z20.string().optional(),
|
|
9197
9158
|
viewers: MetadataStringArraySchema.optional(),
|
|
9198
|
-
orphaned:
|
|
9159
|
+
orphaned: z20.boolean().optional(),
|
|
9199
9160
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
9200
9161
|
}),
|
|
9201
9162
|
LedgerMetadataBaseSchema.extend({
|
|
9202
|
-
type:
|
|
9203
|
-
title:
|
|
9204
|
-
icon:
|
|
9205
|
-
authed:
|
|
9206
|
-
apiDefinitionId:
|
|
9207
|
-
overviewPageId:
|
|
9208
|
-
noindex:
|
|
9163
|
+
type: z20.literal("apiReference"),
|
|
9164
|
+
title: z20.string().optional(),
|
|
9165
|
+
icon: z20.string().optional(),
|
|
9166
|
+
authed: z20.boolean().optional(),
|
|
9167
|
+
apiDefinitionId: z20.string().optional(),
|
|
9168
|
+
overviewPageId: z20.string().optional(),
|
|
9169
|
+
noindex: z20.boolean().optional(),
|
|
9209
9170
|
availability: LedgerAvailabilitySchema.optional(),
|
|
9210
|
-
pointsTo:
|
|
9211
|
-
paginated:
|
|
9212
|
-
showErrors:
|
|
9213
|
-
hideTitle:
|
|
9171
|
+
pointsTo: z20.string().optional(),
|
|
9172
|
+
paginated: z20.boolean().optional(),
|
|
9173
|
+
showErrors: z20.boolean().optional(),
|
|
9174
|
+
hideTitle: z20.boolean().optional(),
|
|
9214
9175
|
viewers: MetadataStringArraySchema.optional(),
|
|
9215
|
-
orphaned:
|
|
9176
|
+
orphaned: z20.boolean().optional(),
|
|
9216
9177
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
9217
9178
|
}),
|
|
9218
9179
|
LedgerMetadataBaseSchema.extend({
|
|
9219
|
-
type:
|
|
9220
|
-
title:
|
|
9221
|
-
icon:
|
|
9222
|
-
authed:
|
|
9223
|
-
apiDefinitionId:
|
|
9224
|
-
overviewPageId:
|
|
9225
|
-
noindex:
|
|
9180
|
+
type: z20.literal("apiPackage"),
|
|
9181
|
+
title: z20.string().optional(),
|
|
9182
|
+
icon: z20.string().optional(),
|
|
9183
|
+
authed: z20.boolean().optional(),
|
|
9184
|
+
apiDefinitionId: z20.string().optional(),
|
|
9185
|
+
overviewPageId: z20.string().optional(),
|
|
9186
|
+
noindex: z20.boolean().optional(),
|
|
9226
9187
|
availability: LedgerAvailabilitySchema.optional(),
|
|
9227
|
-
pointsTo:
|
|
9188
|
+
pointsTo: z20.string().optional(),
|
|
9228
9189
|
viewers: MetadataStringArraySchema.optional(),
|
|
9229
|
-
orphaned:
|
|
9190
|
+
orphaned: z20.boolean().optional(),
|
|
9230
9191
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
9231
9192
|
}),
|
|
9232
9193
|
LedgerMetadataBaseSchema.extend({
|
|
9233
|
-
type:
|
|
9234
|
-
title:
|
|
9235
|
-
icon:
|
|
9236
|
-
overviewPageId:
|
|
9237
|
-
apiDefinitionId:
|
|
9238
|
-
noindex:
|
|
9239
|
-
authed:
|
|
9194
|
+
type: z20.literal("changelog"),
|
|
9195
|
+
title: z20.string().optional(),
|
|
9196
|
+
icon: z20.string().optional(),
|
|
9197
|
+
overviewPageId: z20.string().optional(),
|
|
9198
|
+
apiDefinitionId: z20.string().optional(),
|
|
9199
|
+
noindex: z20.boolean().optional(),
|
|
9200
|
+
authed: z20.boolean().optional(),
|
|
9240
9201
|
viewers: MetadataStringArraySchema.optional(),
|
|
9241
|
-
orphaned:
|
|
9202
|
+
orphaned: z20.boolean().optional(),
|
|
9242
9203
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
9243
9204
|
}),
|
|
9244
9205
|
LedgerMetadataBaseSchema.extend({
|
|
9245
|
-
type:
|
|
9206
|
+
type: z20.literal("files")
|
|
9246
9207
|
}),
|
|
9247
9208
|
LedgerMetadataBaseSchema.extend({
|
|
9248
|
-
type:
|
|
9209
|
+
type: z20.literal("redirects")
|
|
9249
9210
|
}),
|
|
9250
9211
|
LedgerMetadataBaseSchema.extend({
|
|
9251
|
-
type:
|
|
9212
|
+
type: z20.literal("productLink")
|
|
9252
9213
|
}),
|
|
9253
9214
|
LedgerMetadataBaseSchema.extend({
|
|
9254
|
-
type:
|
|
9215
|
+
type: z20.literal("tabLink")
|
|
9255
9216
|
})
|
|
9256
9217
|
]);
|
|
9257
9218
|
var LedgerSegmentMetadataSchema = LedgerSegmentMetadataObjectSchema;
|
|
9258
9219
|
var LedgerMarkdownMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9259
9220
|
...NodeMetadataFields,
|
|
9260
|
-
pageId:
|
|
9261
|
-
isOverview:
|
|
9262
|
-
noindex:
|
|
9221
|
+
pageId: z20.string().optional(),
|
|
9222
|
+
isOverview: z20.boolean().optional(),
|
|
9223
|
+
noindex: z20.boolean().optional()
|
|
9263
9224
|
});
|
|
9264
9225
|
var LedgerRestMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9265
9226
|
...ApiNodeMetadataFields,
|
|
9266
|
-
endpointId:
|
|
9227
|
+
endpointId: z20.string(),
|
|
9267
9228
|
method: HttpMethodSchema,
|
|
9268
|
-
isResponseStream:
|
|
9269
|
-
endpointPairKey:
|
|
9229
|
+
isResponseStream: z20.boolean().optional(),
|
|
9230
|
+
endpointPairKey: z20.string().optional()
|
|
9270
9231
|
});
|
|
9271
9232
|
var LedgerWebSocketMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9272
9233
|
...ApiNodeMetadataFields,
|
|
9273
|
-
webSocketId:
|
|
9234
|
+
webSocketId: z20.string()
|
|
9274
9235
|
});
|
|
9275
9236
|
var LedgerWebhookMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9276
9237
|
...ApiNodeMetadataFields,
|
|
9277
|
-
webhookId:
|
|
9238
|
+
webhookId: z20.string(),
|
|
9278
9239
|
// V1.WebhookNode carries the full HttpMethod union, so the read model must accept it too.
|
|
9279
9240
|
method: HttpMethodSchema
|
|
9280
9241
|
});
|
|
9281
9242
|
var LedgerGrpcMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9282
9243
|
...ApiNodeMetadataFields,
|
|
9283
|
-
grpcId:
|
|
9244
|
+
grpcId: z20.string(),
|
|
9284
9245
|
method: GrpcMethodSchema
|
|
9285
9246
|
});
|
|
9286
9247
|
var LedgerGraphQlMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9287
9248
|
...ApiNodeMetadataFields,
|
|
9288
|
-
graphqlOperationId:
|
|
9249
|
+
graphqlOperationId: z20.string(),
|
|
9289
9250
|
operationType: GraphQlOperationTypeSchema
|
|
9290
9251
|
});
|
|
9291
9252
|
var LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9292
9253
|
...NodeMetadataFields,
|
|
9293
|
-
pageId:
|
|
9294
|
-
noindex:
|
|
9295
|
-
date:
|
|
9254
|
+
pageId: z20.string(),
|
|
9255
|
+
noindex: z20.boolean().optional(),
|
|
9256
|
+
date: z20.string().optional(),
|
|
9296
9257
|
tags: MetadataStringArraySchema.optional()
|
|
9297
9258
|
});
|
|
9298
9259
|
var LedgerLinkMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9299
|
-
title:
|
|
9300
|
-
slug:
|
|
9301
|
-
icon:
|
|
9302
|
-
url:
|
|
9260
|
+
title: z20.string().optional(),
|
|
9261
|
+
slug: z20.string().optional(),
|
|
9262
|
+
icon: z20.string().optional(),
|
|
9263
|
+
url: z20.string(),
|
|
9303
9264
|
target: LinkTargetSchema2.optional()
|
|
9304
9265
|
});
|
|
9305
9266
|
var LedgerFileArtifactMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9306
|
-
contentType:
|
|
9307
|
-
contentLength:
|
|
9308
|
-
filename:
|
|
9309
|
-
width:
|
|
9310
|
-
height:
|
|
9311
|
-
blurDataURL:
|
|
9267
|
+
contentType: z20.string(),
|
|
9268
|
+
contentLength: z20.number().optional(),
|
|
9269
|
+
filename: z20.string(),
|
|
9270
|
+
width: z20.number().optional(),
|
|
9271
|
+
height: z20.number().optional(),
|
|
9272
|
+
blurDataURL: z20.string().optional()
|
|
9312
9273
|
});
|
|
9313
9274
|
var LedgerRedirectMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
9314
|
-
href:
|
|
9275
|
+
href: z20.string().optional()
|
|
9315
9276
|
});
|
|
9316
|
-
var LedgerArtifactMetadataSchema =
|
|
9277
|
+
var LedgerArtifactMetadataSchema = z20.union([
|
|
9317
9278
|
LedgerMarkdownMetadataSchema,
|
|
9318
9279
|
LedgerRestMetadataSchema,
|
|
9319
9280
|
LedgerWebSocketMetadataSchema,
|
|
@@ -9341,23 +9302,23 @@ var LEDGER_ARTIFACT_METADATA_SCHEMAS = {
|
|
|
9341
9302
|
};
|
|
9342
9303
|
function artifactTypeVariant(base, type) {
|
|
9343
9304
|
return base.extend({
|
|
9344
|
-
artifactType:
|
|
9305
|
+
artifactType: z20.literal(type),
|
|
9345
9306
|
artifactMetadata: LEDGER_ARTIFACT_METADATA_SCHEMAS[type]
|
|
9346
9307
|
});
|
|
9347
9308
|
}
|
|
9348
|
-
var NavRouteBaseSchema =
|
|
9349
|
-
fullPath:
|
|
9350
|
-
artifactId:
|
|
9351
|
-
hidden:
|
|
9352
|
-
displaySortOrder:
|
|
9309
|
+
var NavRouteBaseSchema = z20.object({
|
|
9310
|
+
fullPath: z20.string().nullable(),
|
|
9311
|
+
artifactId: z20.string(),
|
|
9312
|
+
hidden: z20.boolean(),
|
|
9313
|
+
displaySortOrder: z20.number().nullable().optional()
|
|
9353
9314
|
});
|
|
9354
9315
|
function navRouteVariant(type) {
|
|
9355
9316
|
return NavRouteBaseSchema.extend({
|
|
9356
|
-
type:
|
|
9317
|
+
type: z20.literal(type),
|
|
9357
9318
|
metadata: LEDGER_ARTIFACT_METADATA_SCHEMAS[type]
|
|
9358
9319
|
});
|
|
9359
9320
|
}
|
|
9360
|
-
var LedgerNavRouteSchema =
|
|
9321
|
+
var LedgerNavRouteSchema = z20.discriminatedUnion("type", [
|
|
9361
9322
|
navRouteVariant("markdown"),
|
|
9362
9323
|
navRouteVariant("page"),
|
|
9363
9324
|
navRouteVariant("rest"),
|
|
@@ -9371,35 +9332,35 @@ var LedgerNavRouteSchema = z21.discriminatedUnion("type", [
|
|
|
9371
9332
|
navRouteVariant("image"),
|
|
9372
9333
|
navRouteVariant("redirect")
|
|
9373
9334
|
]);
|
|
9374
|
-
var DocsPublishGitInputSchema =
|
|
9335
|
+
var DocsPublishGitInputSchema = z20.object({
|
|
9375
9336
|
/** Full HTTPS URL of the repo (e.g. `https://github.com/acme/docs`). */
|
|
9376
|
-
repoUrl:
|
|
9337
|
+
repoUrl: z20.string(),
|
|
9377
9338
|
/** Branch the publish ran from. Used to build the edit-this-page URL. */
|
|
9378
|
-
branch:
|
|
9339
|
+
branch: z20.string(),
|
|
9379
9340
|
/**
|
|
9380
9341
|
* Optional commit SHA captured when the CLI knows it. Currently surfaced
|
|
9381
9342
|
* on `versionMetadata` for diagnostics but not used in URL synthesis.
|
|
9382
9343
|
*/
|
|
9383
|
-
commitSha:
|
|
9344
|
+
commitSha: z20.string().optional()
|
|
9384
9345
|
});
|
|
9385
|
-
var DocsContentFieldsSchema =
|
|
9386
|
-
root:
|
|
9387
|
-
pages:
|
|
9346
|
+
var DocsContentFieldsSchema = z20.object({
|
|
9347
|
+
root: z20.unknown(),
|
|
9348
|
+
pages: z20.record(z20.string(), PageBlobRefSchema),
|
|
9388
9349
|
apiManifest: BlobRefSchema.nullish(),
|
|
9389
9350
|
config: LedgerConfigSchema.optional(),
|
|
9390
9351
|
/**
|
|
9391
9352
|
* Content-addressable file manifest: maps fullPath → file metadata + CAS blob ref.
|
|
9392
9353
|
* Each entry becomes a file/image artifact in the ledger with nav routing by fullPath.
|
|
9393
9354
|
*/
|
|
9394
|
-
fileManifest:
|
|
9355
|
+
fileManifest: z20.record(z20.string(), FileManifestEntrySchema).optional(),
|
|
9395
9356
|
// TODO: jsFiles is a single blob containing all custom React component bundles.
|
|
9396
9357
|
// These should eventually be individual artifacts so they can be loaded/cached
|
|
9397
9358
|
// independently rather than as a monolithic bundle.
|
|
9398
9359
|
jsFiles: BlobRefSchema.nullish(),
|
|
9399
9360
|
redirects: BlobRefSchema.nullish(),
|
|
9400
|
-
locale:
|
|
9401
|
-
version:
|
|
9402
|
-
repo:
|
|
9361
|
+
locale: z20.string().default("en"),
|
|
9362
|
+
version: z20.string().nullish(),
|
|
9363
|
+
repo: z20.string().nullish(),
|
|
9403
9364
|
/**
|
|
9404
9365
|
* Git provenance for the deployment (ADR 0012 / FER-10489). Optional —
|
|
9405
9366
|
* older CLI versions don't send it and the columns stay NULL. When
|
|
@@ -9410,14 +9371,14 @@ var DocsContentFieldsSchema = z21.object({
|
|
|
9410
9371
|
});
|
|
9411
9372
|
var LocaleEntrySchemaInternal = DocsContentFieldsSchema.extend({
|
|
9412
9373
|
/** Locale identifier (e.g. "en", "es", "ja"). Required — no default. */
|
|
9413
|
-
locale:
|
|
9374
|
+
locale: z20.string()
|
|
9414
9375
|
});
|
|
9415
9376
|
var LocaleEntrySchema = LocaleEntrySchemaInternal;
|
|
9416
|
-
var DocsPublishInputSchemaInternal =
|
|
9417
|
-
orgId:
|
|
9418
|
-
domain:
|
|
9419
|
-
basepath:
|
|
9420
|
-
basepathAware:
|
|
9377
|
+
var DocsPublishInputSchemaInternal = z20.object({
|
|
9378
|
+
orgId: z20.string(),
|
|
9379
|
+
domain: z20.string(),
|
|
9380
|
+
basepath: z20.string().default(""),
|
|
9381
|
+
basepathAware: z20.boolean().nullish(),
|
|
9421
9382
|
/**
|
|
9422
9383
|
* Additional URLs the deployment should be served from (e.g. a customer's
|
|
9423
9384
|
* vanity hostname `docs.example.com` alongside the canonical fern URL).
|
|
@@ -9428,22 +9389,22 @@ var DocsPublishInputSchemaInternal = z21.object({
|
|
|
9428
9389
|
*
|
|
9429
9390
|
* See ADR 0010.
|
|
9430
9391
|
*/
|
|
9431
|
-
customDomains:
|
|
9432
|
-
previewId:
|
|
9392
|
+
customDomains: z20.array(z20.string()).default([]),
|
|
9393
|
+
previewId: z20.string().nullish(),
|
|
9433
9394
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
9434
|
-
defaultLocale:
|
|
9395
|
+
defaultLocale: z20.string().default("en"),
|
|
9435
9396
|
/**
|
|
9436
9397
|
* All locales for this deployment. Each locale goes through the same
|
|
9437
9398
|
* transform → upload → verify → persist pipeline.
|
|
9438
9399
|
*/
|
|
9439
|
-
locales:
|
|
9400
|
+
locales: z20.array(LocaleEntrySchema).min(1)
|
|
9440
9401
|
}).refine((data) => data.locales.some((l) => l.locale === data.defaultLocale), {
|
|
9441
9402
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
9442
9403
|
path: ["defaultLocale"]
|
|
9443
9404
|
});
|
|
9444
9405
|
var DocsPublishInputSchema = DocsPublishInputSchemaInternal;
|
|
9445
9406
|
var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial().extend({
|
|
9446
|
-
orgId:
|
|
9407
|
+
orgId: z20.string(),
|
|
9447
9408
|
/**
|
|
9448
9409
|
* Optional caller-supplied identifier for the preview hostname. Sanitized
|
|
9449
9410
|
* server-side (`[a-z0-9-]+`, no leading/trailing dashes). When absent,
|
|
@@ -9451,25 +9412,25 @@ var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial()
|
|
|
9451
9412
|
* defeats the round-trip use case where the CLI prints the predicted
|
|
9452
9413
|
* URL before the publish completes. CLIs should always send this.
|
|
9453
9414
|
*/
|
|
9454
|
-
previewId:
|
|
9415
|
+
previewId: z20.string().nullish(),
|
|
9455
9416
|
/**
|
|
9456
9417
|
* Optional path segment appended after the server-generated host.
|
|
9457
9418
|
* Mirrors V2's `basePath` — most preview publishes leave this empty,
|
|
9458
9419
|
* but explicit subpath previews (`/v2`) are supported.
|
|
9459
9420
|
*/
|
|
9460
|
-
basePath:
|
|
9421
|
+
basePath: z20.string().default(""),
|
|
9461
9422
|
/** The primary/fallback locale for this preview deployment. */
|
|
9462
|
-
defaultLocale:
|
|
9423
|
+
defaultLocale: z20.string().optional(),
|
|
9463
9424
|
/**
|
|
9464
9425
|
* All locales for this preview deployment. Preferred over the legacy
|
|
9465
9426
|
* single-locale content fields above.
|
|
9466
9427
|
*/
|
|
9467
|
-
locales:
|
|
9428
|
+
locales: z20.array(LocaleEntrySchema).min(1).optional()
|
|
9468
9429
|
}).superRefine((data, ctx) => {
|
|
9469
9430
|
if (data.locales == null) {
|
|
9470
9431
|
if (data.root == null || data.pages == null) {
|
|
9471
9432
|
ctx.addIssue({
|
|
9472
|
-
code:
|
|
9433
|
+
code: z20.ZodIssueCode.custom,
|
|
9473
9434
|
message: "Either locales or legacy single-locale content fields must be provided",
|
|
9474
9435
|
path: ["locales"]
|
|
9475
9436
|
});
|
|
@@ -9479,75 +9440,75 @@ var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial()
|
|
|
9479
9440
|
const defaultLocale = data.defaultLocale ?? data.locales[0]?.locale;
|
|
9480
9441
|
if (defaultLocale == null || !data.locales.some((locale) => locale.locale === defaultLocale)) {
|
|
9481
9442
|
ctx.addIssue({
|
|
9482
|
-
code:
|
|
9443
|
+
code: z20.ZodIssueCode.custom,
|
|
9483
9444
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
9484
9445
|
path: ["defaultLocale"]
|
|
9485
9446
|
});
|
|
9486
9447
|
}
|
|
9487
9448
|
});
|
|
9488
9449
|
var LedgerPreviewRegisterInputSchema = LedgerPreviewRegisterInputSchemaInternal;
|
|
9489
|
-
var LedgerPreviewRegisterResponseSchema =
|
|
9490
|
-
deploymentHash:
|
|
9491
|
-
missingContent:
|
|
9450
|
+
var LedgerPreviewRegisterResponseSchema = z20.object({
|
|
9451
|
+
deploymentHash: z20.string(),
|
|
9452
|
+
missingContent: z20.array(MissingContentSchema),
|
|
9492
9453
|
/** Canonical preview URL, e.g. `https://acme-preview-feature-x.docs.buildwithfern.com`. */
|
|
9493
|
-
previewUrl:
|
|
9454
|
+
previewUrl: z20.string(),
|
|
9494
9455
|
/** Server-generated host portion of `previewUrl` (no scheme, no basepath). */
|
|
9495
|
-
domain:
|
|
9456
|
+
domain: z20.string(),
|
|
9496
9457
|
/** Echoed `basePath` (normalised — empty string when absent). */
|
|
9497
|
-
basepath:
|
|
9458
|
+
basepath: z20.string(),
|
|
9498
9459
|
/** Sanitized identifier the server actually used to compose the host. */
|
|
9499
|
-
previewId:
|
|
9460
|
+
previewId: z20.string()
|
|
9500
9461
|
});
|
|
9501
9462
|
var docsLedgerContract = {
|
|
9502
|
-
register:
|
|
9503
|
-
previewRegister:
|
|
9504
|
-
finish:
|
|
9505
|
-
archiveSite:
|
|
9463
|
+
register: oc10.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
9464
|
+
previewRegister: oc10.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
9465
|
+
finish: oc10.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema).output(FinishResponseSchema),
|
|
9466
|
+
archiveSite: oc10.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema)
|
|
9506
9467
|
};
|
|
9507
|
-
var CurrentVersionInputSchema =
|
|
9508
|
-
domain:
|
|
9509
|
-
basepath:
|
|
9468
|
+
var CurrentVersionInputSchema = z20.object({
|
|
9469
|
+
domain: z20.string(),
|
|
9470
|
+
basepath: z20.string().default("")
|
|
9510
9471
|
});
|
|
9511
9472
|
var CurrentPreviewInputSchema = CurrentVersionInputSchema.extend({
|
|
9512
|
-
previewId:
|
|
9473
|
+
previewId: z20.string()
|
|
9474
|
+
});
|
|
9475
|
+
var CurrentVersionResponseSchema = z20.object({
|
|
9476
|
+
orgId: z20.string(),
|
|
9477
|
+
domain: z20.string(),
|
|
9478
|
+
basepath: z20.string(),
|
|
9479
|
+
deploymentId: z20.string(),
|
|
9480
|
+
deploymentHash: z20.string(),
|
|
9481
|
+
siteId: z20.string(),
|
|
9482
|
+
assignedAt: z20.string(),
|
|
9483
|
+
assignedBy: z20.string().nullable()
|
|
9484
|
+
});
|
|
9485
|
+
var ContentRefSchema = z20.object({
|
|
9486
|
+
hash: z20.string(),
|
|
9487
|
+
s3Key: z20.string(),
|
|
9488
|
+
contentType: z20.string(),
|
|
9489
|
+
url: z20.string()
|
|
9513
9490
|
});
|
|
9514
|
-
var
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
});
|
|
9524
|
-
var ContentRefSchema = z21.object({
|
|
9525
|
-
hash: z21.string(),
|
|
9526
|
-
s3Key: z21.string(),
|
|
9527
|
-
contentType: z21.string(),
|
|
9528
|
-
url: z21.string()
|
|
9529
|
-
});
|
|
9530
|
-
var SegmentDetailSchema = z21.object({
|
|
9531
|
-
id: z21.string(),
|
|
9532
|
-
displayName: z21.string(),
|
|
9533
|
-
icon: z21.string().nullable(),
|
|
9534
|
-
sortOrder: z21.number(),
|
|
9535
|
-
hidden: z21.boolean(),
|
|
9536
|
-
viewers: z21.array(z21.string()),
|
|
9537
|
-
orphaned: z21.boolean(),
|
|
9538
|
-
featureFlags: z21.array(z21.string()),
|
|
9491
|
+
var SegmentDetailSchema = z20.object({
|
|
9492
|
+
id: z20.string(),
|
|
9493
|
+
displayName: z20.string(),
|
|
9494
|
+
icon: z20.string().nullable(),
|
|
9495
|
+
sortOrder: z20.number(),
|
|
9496
|
+
hidden: z20.boolean(),
|
|
9497
|
+
viewers: z20.array(z20.string()),
|
|
9498
|
+
orphaned: z20.boolean(),
|
|
9499
|
+
featureFlags: z20.array(z20.string()),
|
|
9539
9500
|
/** Type-specific fields: slug, default, subtitle, href, target, image, availability, pointsTo, tab_type. */
|
|
9540
9501
|
metadata: LedgerSegmentDetailMetadataSchema
|
|
9541
9502
|
});
|
|
9542
|
-
var SegmentSchema =
|
|
9543
|
-
segmentId:
|
|
9544
|
-
segmentHash:
|
|
9545
|
-
section:
|
|
9546
|
-
locale:
|
|
9503
|
+
var SegmentSchema = z20.object({
|
|
9504
|
+
segmentId: z20.string(),
|
|
9505
|
+
segmentHash: z20.string(),
|
|
9506
|
+
section: z20.string(),
|
|
9507
|
+
locale: z20.string(),
|
|
9547
9508
|
/** Sidebar order across segments (docs_ledger_deployment_segments.sort_order). */
|
|
9548
|
-
sortOrder:
|
|
9509
|
+
sortOrder: z20.number(),
|
|
9549
9510
|
/** Whether the segment is hidden from the sidebar. */
|
|
9550
|
-
hidden:
|
|
9511
|
+
hidden: z20.boolean(),
|
|
9551
9512
|
/** Segment type descriptor (seg.metadata): { type, title, icon, apiDefinitionId, overviewPageId, pointsTo, ... }. */
|
|
9552
9513
|
metadata: LedgerSegmentMetadataSchema,
|
|
9553
9514
|
/** Full product/version/variant/tab detail metadata, or null when the dimension is absent. */
|
|
@@ -9557,26 +9518,26 @@ var SegmentSchema = z21.object({
|
|
|
9557
9518
|
tab: SegmentDetailSchema.nullable(),
|
|
9558
9519
|
// ── Flat name/icon retained for back-compat (derivable from the
|
|
9559
9520
|
// detail objects above). ──
|
|
9560
|
-
productId:
|
|
9561
|
-
productName:
|
|
9562
|
-
productIcon:
|
|
9563
|
-
versionId:
|
|
9564
|
-
versionName:
|
|
9565
|
-
versionIcon:
|
|
9566
|
-
variantId:
|
|
9567
|
-
variantName:
|
|
9568
|
-
variantIcon:
|
|
9569
|
-
tabId:
|
|
9570
|
-
tabName:
|
|
9571
|
-
tabIcon:
|
|
9572
|
-
});
|
|
9573
|
-
var VersionMetadataInputSchema =
|
|
9574
|
-
deploymentId:
|
|
9575
|
-
locale:
|
|
9576
|
-
});
|
|
9577
|
-
var VersionMetadataResponseSchema =
|
|
9578
|
-
deploymentId:
|
|
9579
|
-
version:
|
|
9521
|
+
productId: z20.string().nullable(),
|
|
9522
|
+
productName: z20.string().nullable(),
|
|
9523
|
+
productIcon: z20.string().nullable(),
|
|
9524
|
+
versionId: z20.string().nullable(),
|
|
9525
|
+
versionName: z20.string().nullable(),
|
|
9526
|
+
versionIcon: z20.string().nullable(),
|
|
9527
|
+
variantId: z20.string().nullable(),
|
|
9528
|
+
variantName: z20.string().nullable(),
|
|
9529
|
+
variantIcon: z20.string().nullable(),
|
|
9530
|
+
tabId: z20.string().nullable(),
|
|
9531
|
+
tabName: z20.string().nullable(),
|
|
9532
|
+
tabIcon: z20.string().nullable()
|
|
9533
|
+
});
|
|
9534
|
+
var VersionMetadataInputSchema = z20.object({
|
|
9535
|
+
deploymentId: z20.string(),
|
|
9536
|
+
locale: z20.string().optional()
|
|
9537
|
+
});
|
|
9538
|
+
var VersionMetadataResponseSchema = z20.object({
|
|
9539
|
+
deploymentId: z20.string(),
|
|
9540
|
+
version: z20.string().nullable(),
|
|
9580
9541
|
/**
|
|
9581
9542
|
* Inline structural config (ADR 0009). Contains everything from
|
|
9582
9543
|
* {@link LedgerConfigSchema} except `header`, `footer`, `css.inline`,
|
|
@@ -9595,76 +9556,76 @@ var VersionMetadataResponseSchema = z21.object({
|
|
|
9595
9556
|
/** CAS ref for the joined `config.js.inline` blob (`\n`-separated JS). */
|
|
9596
9557
|
jsInline: ContentRefSchema.nullable(),
|
|
9597
9558
|
jsFiles: ContentRefSchema.nullable(),
|
|
9598
|
-
segments:
|
|
9559
|
+
segments: z20.array(SegmentSchema),
|
|
9599
9560
|
/** Mapping from human-readable API name slug to API definition UUID. */
|
|
9600
|
-
apiNameToId:
|
|
9561
|
+
apiNameToId: z20.record(z20.string(), z20.string()),
|
|
9601
9562
|
/**
|
|
9602
9563
|
* Git provenance for the deployment (ADR 0012 / FER-10489). Optional —
|
|
9603
9564
|
* nullable on CLIs that don't send `git` on the publish input. When
|
|
9604
9565
|
* present, the docs loader synthesises `editThisPageUrl` from `repoUrl`,
|
|
9605
9566
|
* `branch`, and the page `filename` server-side.
|
|
9606
9567
|
*/
|
|
9607
|
-
git:
|
|
9608
|
-
repoUrl:
|
|
9609
|
-
branch:
|
|
9610
|
-
commitSha:
|
|
9568
|
+
git: z20.object({
|
|
9569
|
+
repoUrl: z20.string(),
|
|
9570
|
+
branch: z20.string(),
|
|
9571
|
+
commitSha: z20.string().nullable().optional()
|
|
9611
9572
|
}).optional(),
|
|
9612
9573
|
/**
|
|
9613
9574
|
* Docs deployment status from the legacy `docs_sites` table, resolved
|
|
9614
9575
|
* via Kysely join in the DAO. Null when no matching row exists.
|
|
9615
9576
|
*/
|
|
9616
|
-
docsStatus:
|
|
9617
|
-
});
|
|
9618
|
-
var PageContentInputSchema =
|
|
9619
|
-
deploymentId:
|
|
9620
|
-
fullPath:
|
|
9621
|
-
pageId:
|
|
9622
|
-
locale:
|
|
9623
|
-
});
|
|
9624
|
-
var PageContentResponseSchema =
|
|
9625
|
-
s3Key:
|
|
9626
|
-
segmentHash:
|
|
9627
|
-
url:
|
|
9628
|
-
pageId:
|
|
9629
|
-
});
|
|
9630
|
-
var BatchPageContentInputSchema =
|
|
9631
|
-
deploymentId:
|
|
9632
|
-
pageIds:
|
|
9633
|
-
locale:
|
|
9634
|
-
});
|
|
9635
|
-
var BatchPageContentItemSchema =
|
|
9636
|
-
pageId:
|
|
9637
|
-
s3Key:
|
|
9638
|
-
url:
|
|
9639
|
-
});
|
|
9640
|
-
var BatchPageContentResponseSchema =
|
|
9641
|
-
items:
|
|
9642
|
-
});
|
|
9643
|
-
var NavInputSchema =
|
|
9644
|
-
segmentHash:
|
|
9645
|
-
});
|
|
9646
|
-
var NavResponseSchema =
|
|
9647
|
-
routes:
|
|
9648
|
-
});
|
|
9649
|
-
var RouteContextInputSchema =
|
|
9650
|
-
deploymentId:
|
|
9651
|
-
fullPath:
|
|
9652
|
-
locale:
|
|
9653
|
-
});
|
|
9654
|
-
var RouteContextResponseBaseSchema =
|
|
9655
|
-
artifactId:
|
|
9577
|
+
docsStatus: z20.enum(["PUBLISHING", "LIVE", "UNPUBLISHED", "ERROR"]).nullable().optional()
|
|
9578
|
+
});
|
|
9579
|
+
var PageContentInputSchema = z20.object({
|
|
9580
|
+
deploymentId: z20.string(),
|
|
9581
|
+
fullPath: z20.string().optional(),
|
|
9582
|
+
pageId: z20.string().optional(),
|
|
9583
|
+
locale: z20.string().optional()
|
|
9584
|
+
});
|
|
9585
|
+
var PageContentResponseSchema = z20.object({
|
|
9586
|
+
s3Key: z20.string(),
|
|
9587
|
+
segmentHash: z20.string(),
|
|
9588
|
+
url: z20.string(),
|
|
9589
|
+
pageId: z20.string().optional()
|
|
9590
|
+
});
|
|
9591
|
+
var BatchPageContentInputSchema = z20.object({
|
|
9592
|
+
deploymentId: z20.string(),
|
|
9593
|
+
pageIds: z20.array(z20.string()).min(1).max(2e3),
|
|
9594
|
+
locale: z20.string().optional()
|
|
9595
|
+
});
|
|
9596
|
+
var BatchPageContentItemSchema = z20.object({
|
|
9597
|
+
pageId: z20.string(),
|
|
9598
|
+
s3Key: z20.string(),
|
|
9599
|
+
url: z20.string()
|
|
9600
|
+
});
|
|
9601
|
+
var BatchPageContentResponseSchema = z20.object({
|
|
9602
|
+
items: z20.array(BatchPageContentItemSchema)
|
|
9603
|
+
});
|
|
9604
|
+
var NavInputSchema = z20.object({
|
|
9605
|
+
segmentHash: z20.string()
|
|
9606
|
+
});
|
|
9607
|
+
var NavResponseSchema = z20.object({
|
|
9608
|
+
routes: z20.array(LedgerNavRouteSchema)
|
|
9609
|
+
});
|
|
9610
|
+
var RouteContextInputSchema = z20.object({
|
|
9611
|
+
deploymentId: z20.string(),
|
|
9612
|
+
fullPath: z20.string(),
|
|
9613
|
+
locale: z20.string().optional()
|
|
9614
|
+
});
|
|
9615
|
+
var RouteContextResponseBaseSchema = z20.object({
|
|
9616
|
+
artifactId: z20.string(),
|
|
9656
9617
|
/** Hash of the segment that owns the matched route — feed to `nav`. */
|
|
9657
|
-
segmentHash:
|
|
9618
|
+
segmentHash: z20.string(),
|
|
9658
9619
|
/** Section path of the owning segment (e.g. "models/command"). */
|
|
9659
|
-
section:
|
|
9660
|
-
locale:
|
|
9620
|
+
section: z20.string(),
|
|
9621
|
+
locale: z20.string(),
|
|
9661
9622
|
/**
|
|
9662
9623
|
* Page content reference, or null for non-page artifacts (links/redirects)
|
|
9663
9624
|
* and route-only aliases that carry no content blob.
|
|
9664
9625
|
*/
|
|
9665
|
-
page:
|
|
9666
|
-
s3Key:
|
|
9667
|
-
url:
|
|
9626
|
+
page: z20.object({
|
|
9627
|
+
s3Key: z20.string(),
|
|
9628
|
+
url: z20.string()
|
|
9668
9629
|
}).nullable(),
|
|
9669
9630
|
/** Identity of the owning segment, for switchers + breadcrumbs. */
|
|
9670
9631
|
product: SegmentDetailSchema.nullable(),
|
|
@@ -9672,7 +9633,7 @@ var RouteContextResponseBaseSchema = z21.object({
|
|
|
9672
9633
|
variant: SegmentDetailSchema.nullable(),
|
|
9673
9634
|
tab: SegmentDetailSchema.nullable()
|
|
9674
9635
|
});
|
|
9675
|
-
var RouteContextResponseSchema =
|
|
9636
|
+
var RouteContextResponseSchema = z20.discriminatedUnion("artifactType", [
|
|
9676
9637
|
artifactTypeVariant(RouteContextResponseBaseSchema, "markdown"),
|
|
9677
9638
|
artifactTypeVariant(RouteContextResponseBaseSchema, "page"),
|
|
9678
9639
|
artifactTypeVariant(RouteContextResponseBaseSchema, "rest"),
|
|
@@ -9686,116 +9647,116 @@ var RouteContextResponseSchema = z21.discriminatedUnion("artifactType", [
|
|
|
9686
9647
|
artifactTypeVariant(RouteContextResponseBaseSchema, "image"),
|
|
9687
9648
|
artifactTypeVariant(RouteContextResponseBaseSchema, "redirect")
|
|
9688
9649
|
]);
|
|
9689
|
-
var TopLevelNavigationInputSchema =
|
|
9690
|
-
deploymentId:
|
|
9691
|
-
locale:
|
|
9692
|
-
});
|
|
9693
|
-
var TopLevelNavigationResponseSchema =
|
|
9694
|
-
products:
|
|
9695
|
-
versions:
|
|
9696
|
-
variants:
|
|
9697
|
-
tabs:
|
|
9698
|
-
});
|
|
9699
|
-
var VersionSwitchTargetsInputSchema =
|
|
9700
|
-
deploymentId:
|
|
9701
|
-
fullPath:
|
|
9702
|
-
locale:
|
|
9703
|
-
});
|
|
9704
|
-
var VersionSwitchTargetSchema =
|
|
9650
|
+
var TopLevelNavigationInputSchema = z20.object({
|
|
9651
|
+
deploymentId: z20.string(),
|
|
9652
|
+
locale: z20.string().optional()
|
|
9653
|
+
});
|
|
9654
|
+
var TopLevelNavigationResponseSchema = z20.object({
|
|
9655
|
+
products: z20.array(SegmentDetailSchema),
|
|
9656
|
+
versions: z20.array(SegmentDetailSchema),
|
|
9657
|
+
variants: z20.array(SegmentDetailSchema),
|
|
9658
|
+
tabs: z20.array(SegmentDetailSchema)
|
|
9659
|
+
});
|
|
9660
|
+
var VersionSwitchTargetsInputSchema = z20.object({
|
|
9661
|
+
deploymentId: z20.string(),
|
|
9662
|
+
fullPath: z20.string(),
|
|
9663
|
+
locale: z20.string().optional()
|
|
9664
|
+
});
|
|
9665
|
+
var VersionSwitchTargetSchema = z20.object({
|
|
9705
9666
|
/** The version detail id (matches a `SegmentDetail.id` from `versionMetadata`). */
|
|
9706
|
-
versionId:
|
|
9667
|
+
versionId: z20.string(),
|
|
9707
9668
|
/**
|
|
9708
9669
|
* Slug to navigate to when switching to this version — the equivalent
|
|
9709
9670
|
* route in the target version, or that version's landing/root slug when
|
|
9710
9671
|
* no equivalent exists. The current version maps to `fullPath` itself.
|
|
9711
9672
|
*/
|
|
9712
|
-
targetSlug:
|
|
9673
|
+
targetSlug: z20.string()
|
|
9713
9674
|
});
|
|
9714
|
-
var VersionSwitchTargetsResponseSchema =
|
|
9715
|
-
targets:
|
|
9675
|
+
var VersionSwitchTargetsResponseSchema = z20.object({
|
|
9676
|
+
targets: z20.array(VersionSwitchTargetSchema)
|
|
9716
9677
|
});
|
|
9717
|
-
var ApiDefinitionInputSchema =
|
|
9718
|
-
deploymentId:
|
|
9719
|
-
apiDefinitionId:
|
|
9678
|
+
var ApiDefinitionInputSchema = z20.object({
|
|
9679
|
+
deploymentId: z20.string(),
|
|
9680
|
+
apiDefinitionId: z20.string()
|
|
9720
9681
|
});
|
|
9721
|
-
var ApiDefinitionResponseSchema =
|
|
9722
|
-
s3Key:
|
|
9723
|
-
contentType:
|
|
9724
|
-
url:
|
|
9682
|
+
var ApiDefinitionResponseSchema = z20.object({
|
|
9683
|
+
s3Key: z20.string(),
|
|
9684
|
+
contentType: z20.string(),
|
|
9685
|
+
url: z20.string()
|
|
9725
9686
|
});
|
|
9726
|
-
var PrunedApiDefinitionInputSchema =
|
|
9727
|
-
deploymentId:
|
|
9728
|
-
apiDefinitionId:
|
|
9687
|
+
var PrunedApiDefinitionInputSchema = z20.object({
|
|
9688
|
+
deploymentId: z20.string(),
|
|
9689
|
+
apiDefinitionId: z20.string(),
|
|
9729
9690
|
/** Discriminator matching PruningNodeType.type → artifact metadata field. */
|
|
9730
|
-
nodeType:
|
|
9691
|
+
nodeType: z20.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql"]),
|
|
9731
9692
|
/** The node ID value (endpointId, webSocketId, etc.). */
|
|
9732
|
-
nodeId:
|
|
9733
|
-
});
|
|
9734
|
-
var PrunedApiDefinitionResponseSchema =
|
|
9735
|
-
s3Key:
|
|
9736
|
-
contentType:
|
|
9737
|
-
url:
|
|
9738
|
-
});
|
|
9739
|
-
var FileArtifactInputSchema =
|
|
9740
|
-
deploymentId:
|
|
9741
|
-
fullPath:
|
|
9742
|
-
});
|
|
9743
|
-
var FileArtifactResponseSchema =
|
|
9744
|
-
fullPath:
|
|
9745
|
-
type:
|
|
9746
|
-
contentType:
|
|
9747
|
-
contentLength:
|
|
9748
|
-
filename:
|
|
9749
|
-
url:
|
|
9750
|
-
width:
|
|
9751
|
-
height:
|
|
9752
|
-
blurDataURL:
|
|
9753
|
-
});
|
|
9754
|
-
var PresignedFileDownloadInputSchema =
|
|
9693
|
+
nodeId: z20.string()
|
|
9694
|
+
});
|
|
9695
|
+
var PrunedApiDefinitionResponseSchema = z20.object({
|
|
9696
|
+
s3Key: z20.string(),
|
|
9697
|
+
contentType: z20.string(),
|
|
9698
|
+
url: z20.string()
|
|
9699
|
+
});
|
|
9700
|
+
var FileArtifactInputSchema = z20.object({
|
|
9701
|
+
deploymentId: z20.string(),
|
|
9702
|
+
fullPath: z20.string()
|
|
9703
|
+
});
|
|
9704
|
+
var FileArtifactResponseSchema = z20.object({
|
|
9705
|
+
fullPath: z20.string(),
|
|
9706
|
+
type: z20.enum(["file", "image"]),
|
|
9707
|
+
contentType: z20.string(),
|
|
9708
|
+
contentLength: z20.number().optional(),
|
|
9709
|
+
filename: z20.string(),
|
|
9710
|
+
url: z20.string(),
|
|
9711
|
+
width: z20.number().optional(),
|
|
9712
|
+
height: z20.number().optional(),
|
|
9713
|
+
blurDataURL: z20.string().optional()
|
|
9714
|
+
});
|
|
9715
|
+
var PresignedFileDownloadInputSchema = z20.object({
|
|
9755
9716
|
/** S3 object key in the public docs bucket (format: `{domain}/{hash}/{path}`). */
|
|
9756
|
-
s3Key:
|
|
9717
|
+
s3Key: z20.string().regex(/^[a-zA-Z0-9._-]+(?:\/[^/]+){2,}$/)
|
|
9757
9718
|
});
|
|
9758
|
-
var PresignedFileDownloadResponseSchema =
|
|
9719
|
+
var PresignedFileDownloadResponseSchema = z20.object({
|
|
9759
9720
|
/** Presigned S3 GET URL with long expiry (7 days). */
|
|
9760
|
-
url:
|
|
9721
|
+
url: z20.string()
|
|
9761
9722
|
});
|
|
9762
|
-
var FileMetadataInputSchema =
|
|
9763
|
-
deploymentId:
|
|
9764
|
-
fullPath:
|
|
9723
|
+
var FileMetadataInputSchema = z20.object({
|
|
9724
|
+
deploymentId: z20.string(),
|
|
9725
|
+
fullPath: z20.string()
|
|
9765
9726
|
});
|
|
9766
|
-
var FileMetadataResponseSchema =
|
|
9727
|
+
var FileMetadataResponseSchema = z20.object({
|
|
9767
9728
|
/** Content hash — used by the loader to construct CDN URLs. */
|
|
9768
|
-
hash:
|
|
9729
|
+
hash: z20.string(),
|
|
9769
9730
|
/** Domain under which the file bytes were uploaded in the docs files bucket. */
|
|
9770
|
-
domain:
|
|
9771
|
-
contentType:
|
|
9772
|
-
contentLength:
|
|
9773
|
-
filename:
|
|
9774
|
-
width:
|
|
9775
|
-
height:
|
|
9776
|
-
blurDataURL:
|
|
9731
|
+
domain: z20.string(),
|
|
9732
|
+
contentType: z20.string(),
|
|
9733
|
+
contentLength: z20.number().optional(),
|
|
9734
|
+
filename: z20.string().optional(),
|
|
9735
|
+
width: z20.number().optional(),
|
|
9736
|
+
height: z20.number().optional(),
|
|
9737
|
+
blurDataURL: z20.string().optional()
|
|
9777
9738
|
});
|
|
9778
9739
|
var docsLedgerReadContract = {
|
|
9779
|
-
currentVersion:
|
|
9780
|
-
currentPreview:
|
|
9781
|
-
versionMetadata:
|
|
9782
|
-
pageContent:
|
|
9783
|
-
batchPageContent:
|
|
9784
|
-
nav:
|
|
9785
|
-
routeContext:
|
|
9786
|
-
topLevelNavigation:
|
|
9787
|
-
versionSwitchTargets:
|
|
9788
|
-
apiDefinition:
|
|
9789
|
-
prunedApiDefinition:
|
|
9790
|
-
fileArtifact:
|
|
9791
|
-
fileMetadata:
|
|
9792
|
-
presignedFileDownload:
|
|
9740
|
+
currentVersion: oc10.route({ method: "GET", path: "/current-version" }).input(CurrentVersionInputSchema).output(CurrentVersionResponseSchema),
|
|
9741
|
+
currentPreview: oc10.route({ method: "GET", path: "/current-preview" }).input(CurrentPreviewInputSchema).output(CurrentVersionResponseSchema),
|
|
9742
|
+
versionMetadata: oc10.route({ method: "GET", path: "/version-metadata/{deploymentId}" }).input(VersionMetadataInputSchema).output(VersionMetadataResponseSchema),
|
|
9743
|
+
pageContent: oc10.route({ method: "GET", path: "/page-content/{deploymentId}" }).input(PageContentInputSchema).output(PageContentResponseSchema),
|
|
9744
|
+
batchPageContent: oc10.route({ method: "POST", path: "/batch-page-content/{deploymentId}" }).input(BatchPageContentInputSchema).output(BatchPageContentResponseSchema),
|
|
9745
|
+
nav: oc10.route({ method: "GET", path: "/nav/{segmentHash}" }).input(NavInputSchema).output(NavResponseSchema),
|
|
9746
|
+
routeContext: oc10.route({ method: "GET", path: "/route-context/{deploymentId}" }).input(RouteContextInputSchema).output(RouteContextResponseSchema),
|
|
9747
|
+
topLevelNavigation: oc10.route({ method: "GET", path: "/top-level-navigation/{deploymentId}" }).input(TopLevelNavigationInputSchema).output(TopLevelNavigationResponseSchema),
|
|
9748
|
+
versionSwitchTargets: oc10.route({ method: "GET", path: "/version-switch-targets/{deploymentId}" }).input(VersionSwitchTargetsInputSchema).output(VersionSwitchTargetsResponseSchema),
|
|
9749
|
+
apiDefinition: oc10.route({ method: "GET", path: "/api-definition/{deploymentId}/{apiDefinitionId}" }).input(ApiDefinitionInputSchema).output(ApiDefinitionResponseSchema),
|
|
9750
|
+
prunedApiDefinition: oc10.route({ method: "GET", path: "/pruned-api/{deploymentId}/{apiDefinitionId}" }).input(PrunedApiDefinitionInputSchema).output(PrunedApiDefinitionResponseSchema),
|
|
9751
|
+
fileArtifact: oc10.route({ method: "GET", path: "/file/{deploymentId}" }).input(FileArtifactInputSchema).output(FileArtifactResponseSchema),
|
|
9752
|
+
fileMetadata: oc10.route({ method: "GET", path: "/file-metadata/{deploymentId}" }).input(FileMetadataInputSchema).output(FileMetadataResponseSchema),
|
|
9753
|
+
presignedFileDownload: oc10.route({ method: "POST", path: "/presigned-file-download" }).input(PresignedFileDownloadInputSchema).output(PresignedFileDownloadResponseSchema)
|
|
9793
9754
|
};
|
|
9794
9755
|
|
|
9795
9756
|
// src/orpc-client/docs-ledger/client.ts
|
|
9796
9757
|
function createDocsLedgerClient(options) {
|
|
9797
9758
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
9798
|
-
const link = new
|
|
9759
|
+
const link = new OpenAPILink10(docsLedgerContract, {
|
|
9799
9760
|
url: `${baseUrl}/docs-ledger`,
|
|
9800
9761
|
headers: () => ({
|
|
9801
9762
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -9803,53 +9764,53 @@ function createDocsLedgerClient(options) {
|
|
|
9803
9764
|
}),
|
|
9804
9765
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
9805
9766
|
});
|
|
9806
|
-
return
|
|
9767
|
+
return createORPCClient10(link);
|
|
9807
9768
|
}
|
|
9808
9769
|
|
|
9809
9770
|
// src/orpc-client/editor-snapshot/client.ts
|
|
9810
|
-
import { createORPCClient as
|
|
9811
|
-
import { OpenAPILink as
|
|
9771
|
+
import { createORPCClient as createORPCClient11 } from "@orpc/client";
|
|
9772
|
+
import { OpenAPILink as OpenAPILink11 } from "@orpc/openapi-client/fetch";
|
|
9812
9773
|
|
|
9813
9774
|
// src/orpc-client/editor-snapshot/contract.ts
|
|
9814
|
-
import { oc as
|
|
9815
|
-
import * as
|
|
9816
|
-
var GetSnapshotInputSchema =
|
|
9817
|
-
domain:
|
|
9818
|
-
branchName:
|
|
9775
|
+
import { oc as oc11 } from "@orpc/contract";
|
|
9776
|
+
import * as z21 from "zod";
|
|
9777
|
+
var GetSnapshotInputSchema = z21.object({
|
|
9778
|
+
domain: z21.string(),
|
|
9779
|
+
branchName: z21.string()
|
|
9819
9780
|
});
|
|
9820
|
-
var SetSnapshotInputSchema =
|
|
9821
|
-
domain:
|
|
9822
|
-
branchName:
|
|
9823
|
-
data:
|
|
9781
|
+
var SetSnapshotInputSchema = z21.object({
|
|
9782
|
+
domain: z21.string(),
|
|
9783
|
+
branchName: z21.string(),
|
|
9784
|
+
data: z21.unknown()
|
|
9824
9785
|
});
|
|
9825
|
-
var GetDocumentsForBranchesInputSchema =
|
|
9826
|
-
domain:
|
|
9827
|
-
branchNames:
|
|
9786
|
+
var GetDocumentsForBranchesInputSchema = z21.object({
|
|
9787
|
+
domain: z21.string(),
|
|
9788
|
+
branchNames: z21.array(z21.string())
|
|
9828
9789
|
});
|
|
9829
|
-
var EditorDocumentSchema =
|
|
9830
|
-
id:
|
|
9831
|
-
domain:
|
|
9832
|
-
branchName:
|
|
9833
|
-
data:
|
|
9834
|
-
createdAt:
|
|
9835
|
-
updatedAt:
|
|
9836
|
-
expiresAt:
|
|
9790
|
+
var EditorDocumentSchema = z21.object({
|
|
9791
|
+
id: z21.string(),
|
|
9792
|
+
domain: z21.string(),
|
|
9793
|
+
branchName: z21.string(),
|
|
9794
|
+
data: z21.unknown(),
|
|
9795
|
+
createdAt: z21.string(),
|
|
9796
|
+
updatedAt: z21.string(),
|
|
9797
|
+
expiresAt: z21.string().optional()
|
|
9837
9798
|
});
|
|
9838
|
-
var GetSnapshotResponseSchema =
|
|
9839
|
-
data:
|
|
9799
|
+
var GetSnapshotResponseSchema = z21.object({
|
|
9800
|
+
data: z21.unknown().nullable()
|
|
9840
9801
|
});
|
|
9841
|
-
var GetDocumentsForBranchesResponseSchema =
|
|
9842
|
-
documents:
|
|
9802
|
+
var GetDocumentsForBranchesResponseSchema = z21.object({
|
|
9803
|
+
documents: z21.array(EditorDocumentSchema)
|
|
9843
9804
|
});
|
|
9844
9805
|
var editorSnapshotContract = {
|
|
9845
|
-
getSnapshot:
|
|
9846
|
-
setSnapshot:
|
|
9847
|
-
getDocumentsForBranches:
|
|
9806
|
+
getSnapshot: oc11.route({ method: "POST", path: "/get" }).input(GetSnapshotInputSchema).output(GetSnapshotResponseSchema),
|
|
9807
|
+
setSnapshot: oc11.route({ method: "POST", path: "/set" }).input(SetSnapshotInputSchema).output(z21.object({})),
|
|
9808
|
+
getDocumentsForBranches: oc11.route({ method: "POST", path: "/branches" }).input(GetDocumentsForBranchesInputSchema).output(GetDocumentsForBranchesResponseSchema)
|
|
9848
9809
|
};
|
|
9849
9810
|
|
|
9850
9811
|
// src/orpc-client/editor-snapshot/client.ts
|
|
9851
9812
|
function createEditorSnapshotClient(options) {
|
|
9852
|
-
const link = new
|
|
9813
|
+
const link = new OpenAPILink11(editorSnapshotContract, {
|
|
9853
9814
|
url: `${options.baseUrl.replace(/\/+$/, "")}/editor-snapshot`,
|
|
9854
9815
|
headers: () => ({
|
|
9855
9816
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -9857,17 +9818,17 @@ function createEditorSnapshotClient(options) {
|
|
|
9857
9818
|
}),
|
|
9858
9819
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
9859
9820
|
});
|
|
9860
|
-
return
|
|
9821
|
+
return createORPCClient11(link);
|
|
9861
9822
|
}
|
|
9862
9823
|
|
|
9863
9824
|
// src/orpc-client/generators/cli/client.ts
|
|
9864
|
-
import { createORPCClient as
|
|
9865
|
-
import { OpenAPILink as
|
|
9825
|
+
import { createORPCClient as createORPCClient12 } from "@orpc/client";
|
|
9826
|
+
import { OpenAPILink as OpenAPILink12 } from "@orpc/openapi-client/fetch";
|
|
9866
9827
|
|
|
9867
9828
|
// src/orpc-client/generators/contract.ts
|
|
9868
|
-
import { oc as
|
|
9869
|
-
import * as
|
|
9870
|
-
var GeneratorLanguageSchema =
|
|
9829
|
+
import { oc as oc12 } from "@orpc/contract";
|
|
9830
|
+
import * as z22 from "zod";
|
|
9831
|
+
var GeneratorLanguageSchema = z22.enum([
|
|
9871
9832
|
"python",
|
|
9872
9833
|
"go",
|
|
9873
9834
|
"java",
|
|
@@ -9878,182 +9839,182 @@ var GeneratorLanguageSchema = z23.enum([
|
|
|
9878
9839
|
"swift",
|
|
9879
9840
|
"rust"
|
|
9880
9841
|
]);
|
|
9881
|
-
var ScriptSchema =
|
|
9882
|
-
steps:
|
|
9842
|
+
var ScriptSchema = z22.object({
|
|
9843
|
+
steps: z22.array(z22.string())
|
|
9883
9844
|
});
|
|
9884
|
-
var GeneratorScriptsSchema =
|
|
9845
|
+
var GeneratorScriptsSchema = z22.object({
|
|
9885
9846
|
preInstallScript: ScriptSchema.nullish(),
|
|
9886
9847
|
installScript: ScriptSchema.nullish(),
|
|
9887
9848
|
compileScript: ScriptSchema.nullish(),
|
|
9888
9849
|
testScript: ScriptSchema.nullish()
|
|
9889
9850
|
});
|
|
9890
|
-
var GeneratorTypeSchema =
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9851
|
+
var GeneratorTypeSchema = z22.discriminatedUnion("type", [
|
|
9852
|
+
z22.object({ type: z22.literal("sdk") }),
|
|
9853
|
+
z22.object({ type: z22.literal("model") }),
|
|
9854
|
+
z22.object({ type: z22.literal("server") }),
|
|
9855
|
+
z22.object({ type: z22.literal("other") })
|
|
9895
9856
|
]);
|
|
9896
|
-
var ChangelogEntryTypeSchema =
|
|
9897
|
-
var ChangelogEntrySchema =
|
|
9857
|
+
var ChangelogEntryTypeSchema = z22.enum(["fix", "feat", "chore", "break", "internal"]);
|
|
9858
|
+
var ChangelogEntrySchema = z22.object({
|
|
9898
9859
|
type: ChangelogEntryTypeSchema,
|
|
9899
|
-
summary:
|
|
9900
|
-
links:
|
|
9901
|
-
upgradeNotes:
|
|
9902
|
-
added:
|
|
9903
|
-
changed:
|
|
9904
|
-
deprecated:
|
|
9905
|
-
removed:
|
|
9906
|
-
fixed:
|
|
9907
|
-
});
|
|
9908
|
-
var YankSchema =
|
|
9909
|
-
remediationVerision:
|
|
9910
|
-
});
|
|
9911
|
-
var ReleaseTypeSchema =
|
|
9912
|
-
var VersionRangeSchema =
|
|
9913
|
-
|
|
9914
|
-
|
|
9860
|
+
summary: z22.string(),
|
|
9861
|
+
links: z22.array(z22.string()).nullish(),
|
|
9862
|
+
upgradeNotes: z22.string().nullish(),
|
|
9863
|
+
added: z22.array(z22.string()).nullish(),
|
|
9864
|
+
changed: z22.array(z22.string()).nullish(),
|
|
9865
|
+
deprecated: z22.array(z22.string()).nullish(),
|
|
9866
|
+
removed: z22.array(z22.string()).nullish(),
|
|
9867
|
+
fixed: z22.array(z22.string()).nullish()
|
|
9868
|
+
});
|
|
9869
|
+
var YankSchema = z22.object({
|
|
9870
|
+
remediationVerision: z22.string().nullish()
|
|
9871
|
+
});
|
|
9872
|
+
var ReleaseTypeSchema = z22.enum(["GA", "RC"]);
|
|
9873
|
+
var VersionRangeSchema = z22.discriminatedUnion("type", [
|
|
9874
|
+
z22.object({ type: z22.literal("inclusive"), value: z22.string() }),
|
|
9875
|
+
z22.object({ type: z22.literal("exclusive"), value: z22.string() })
|
|
9915
9876
|
]);
|
|
9916
|
-
var GeneratorSchema =
|
|
9917
|
-
id:
|
|
9918
|
-
displayName:
|
|
9877
|
+
var GeneratorSchema = z22.object({
|
|
9878
|
+
id: z22.string(),
|
|
9879
|
+
displayName: z22.string(),
|
|
9919
9880
|
generatorType: GeneratorTypeSchema,
|
|
9920
9881
|
generatorLanguage: GeneratorLanguageSchema.nullish(),
|
|
9921
|
-
dockerImage:
|
|
9882
|
+
dockerImage: z22.string(),
|
|
9922
9883
|
scripts: GeneratorScriptsSchema.nullish()
|
|
9923
9884
|
});
|
|
9924
|
-
var GeneratorOutputSchema =
|
|
9925
|
-
id:
|
|
9926
|
-
displayName:
|
|
9885
|
+
var GeneratorOutputSchema = z22.object({
|
|
9886
|
+
id: z22.string(),
|
|
9887
|
+
displayName: z22.string(),
|
|
9927
9888
|
generatorType: GeneratorTypeSchema,
|
|
9928
9889
|
generatorLanguage: GeneratorLanguageSchema.nullish(),
|
|
9929
|
-
dockerImage:
|
|
9890
|
+
dockerImage: z22.string(),
|
|
9930
9891
|
scripts: GeneratorScriptsSchema.nullish()
|
|
9931
9892
|
});
|
|
9932
|
-
var GetGeneratorByImageInputSchema =
|
|
9933
|
-
dockerImage:
|
|
9893
|
+
var GetGeneratorByImageInputSchema = z22.object({
|
|
9894
|
+
dockerImage: z22.string()
|
|
9934
9895
|
});
|
|
9935
|
-
var GetGeneratorInputSchema =
|
|
9936
|
-
generatorId:
|
|
9896
|
+
var GetGeneratorInputSchema = z22.object({
|
|
9897
|
+
generatorId: z22.string()
|
|
9937
9898
|
});
|
|
9938
|
-
var GeneratorReleaseSchema =
|
|
9939
|
-
version:
|
|
9940
|
-
createdAt:
|
|
9899
|
+
var GeneratorReleaseSchema = z22.object({
|
|
9900
|
+
version: z22.string(),
|
|
9901
|
+
createdAt: z22.string().nullish(),
|
|
9941
9902
|
isYanked: YankSchema.nullish(),
|
|
9942
|
-
changelogEntry:
|
|
9903
|
+
changelogEntry: z22.array(ChangelogEntrySchema).nullish(),
|
|
9943
9904
|
releaseType: ReleaseTypeSchema,
|
|
9944
|
-
majorVersion:
|
|
9945
|
-
generatorId:
|
|
9946
|
-
irVersion:
|
|
9947
|
-
migration:
|
|
9948
|
-
customConfigSchema:
|
|
9949
|
-
tags:
|
|
9950
|
-
});
|
|
9951
|
-
var GeneratorReleaseRequestSchema =
|
|
9952
|
-
version:
|
|
9953
|
-
createdAt:
|
|
9905
|
+
majorVersion: z22.number(),
|
|
9906
|
+
generatorId: z22.string(),
|
|
9907
|
+
irVersion: z22.number(),
|
|
9908
|
+
migration: z22.string().nullish(),
|
|
9909
|
+
customConfigSchema: z22.string().nullish(),
|
|
9910
|
+
tags: z22.array(z22.string()).nullish()
|
|
9911
|
+
});
|
|
9912
|
+
var GeneratorReleaseRequestSchema = z22.object({
|
|
9913
|
+
version: z22.string(),
|
|
9914
|
+
createdAt: z22.string().nullish(),
|
|
9954
9915
|
isYanked: YankSchema.nullish(),
|
|
9955
|
-
changelogEntry:
|
|
9956
|
-
generatorId:
|
|
9957
|
-
irVersion:
|
|
9958
|
-
migration:
|
|
9959
|
-
customConfigSchema:
|
|
9960
|
-
tags:
|
|
9961
|
-
});
|
|
9962
|
-
var GetLatestGeneratorReleaseInputSchema =
|
|
9963
|
-
generator:
|
|
9964
|
-
cliVersion:
|
|
9965
|
-
irVersion:
|
|
9966
|
-
generatorMajorVersion:
|
|
9967
|
-
releaseTypes:
|
|
9968
|
-
});
|
|
9969
|
-
var GetGeneratorChangelogInputSchema =
|
|
9970
|
-
generator:
|
|
9916
|
+
changelogEntry: z22.array(ChangelogEntrySchema).nullish(),
|
|
9917
|
+
generatorId: z22.string(),
|
|
9918
|
+
irVersion: z22.number(),
|
|
9919
|
+
migration: z22.string().nullish(),
|
|
9920
|
+
customConfigSchema: z22.string().nullish(),
|
|
9921
|
+
tags: z22.array(z22.string()).nullish()
|
|
9922
|
+
});
|
|
9923
|
+
var GetLatestGeneratorReleaseInputSchema = z22.object({
|
|
9924
|
+
generator: z22.string(),
|
|
9925
|
+
cliVersion: z22.string().nullish(),
|
|
9926
|
+
irVersion: z22.number().nullish(),
|
|
9927
|
+
generatorMajorVersion: z22.number().nullish(),
|
|
9928
|
+
releaseTypes: z22.array(ReleaseTypeSchema).nullish()
|
|
9929
|
+
});
|
|
9930
|
+
var GetGeneratorChangelogInputSchema = z22.object({
|
|
9931
|
+
generator: z22.string(),
|
|
9971
9932
|
fromVersion: VersionRangeSchema,
|
|
9972
9933
|
toVersion: VersionRangeSchema
|
|
9973
9934
|
});
|
|
9974
|
-
var ChangelogResponseSchema =
|
|
9975
|
-
version:
|
|
9976
|
-
changelogEntry:
|
|
9935
|
+
var ChangelogResponseSchema = z22.object({
|
|
9936
|
+
version: z22.string(),
|
|
9937
|
+
changelogEntry: z22.array(ChangelogEntrySchema)
|
|
9977
9938
|
});
|
|
9978
|
-
var GetChangelogResponseSchema =
|
|
9979
|
-
entries:
|
|
9939
|
+
var GetChangelogResponseSchema = z22.object({
|
|
9940
|
+
entries: z22.array(ChangelogResponseSchema)
|
|
9980
9941
|
});
|
|
9981
|
-
var GetGeneratorReleaseInputSchema =
|
|
9982
|
-
generator:
|
|
9983
|
-
version:
|
|
9942
|
+
var GetGeneratorReleaseInputSchema = z22.object({
|
|
9943
|
+
generator: z22.string(),
|
|
9944
|
+
version: z22.string()
|
|
9984
9945
|
});
|
|
9985
|
-
var ListGeneratorReleasesInputSchema =
|
|
9986
|
-
generator:
|
|
9987
|
-
page:
|
|
9988
|
-
pageSize:
|
|
9946
|
+
var ListGeneratorReleasesInputSchema = z22.object({
|
|
9947
|
+
generator: z22.string(),
|
|
9948
|
+
page: z22.coerce.number().nullish(),
|
|
9949
|
+
pageSize: z22.coerce.number().nullish()
|
|
9989
9950
|
});
|
|
9990
|
-
var ListGeneratorReleasesResponseSchema =
|
|
9991
|
-
generatorReleases:
|
|
9951
|
+
var ListGeneratorReleasesResponseSchema = z22.object({
|
|
9952
|
+
generatorReleases: z22.array(GeneratorReleaseSchema)
|
|
9992
9953
|
});
|
|
9993
|
-
var CliReleaseSchema =
|
|
9994
|
-
version:
|
|
9995
|
-
createdAt:
|
|
9954
|
+
var CliReleaseSchema = z22.object({
|
|
9955
|
+
version: z22.string(),
|
|
9956
|
+
createdAt: z22.string().nullish(),
|
|
9996
9957
|
isYanked: YankSchema.nullish(),
|
|
9997
|
-
changelogEntry:
|
|
9958
|
+
changelogEntry: z22.array(ChangelogEntrySchema).nullish(),
|
|
9998
9959
|
releaseType: ReleaseTypeSchema,
|
|
9999
|
-
majorVersion:
|
|
10000
|
-
irVersion:
|
|
10001
|
-
tags:
|
|
9960
|
+
majorVersion: z22.number(),
|
|
9961
|
+
irVersion: z22.number(),
|
|
9962
|
+
tags: z22.array(z22.string()).nullish()
|
|
10002
9963
|
});
|
|
10003
|
-
var GetLatestCliReleaseInputSchema =
|
|
10004
|
-
releaseTypes:
|
|
10005
|
-
irVersion:
|
|
9964
|
+
var GetLatestCliReleaseInputSchema = z22.object({
|
|
9965
|
+
releaseTypes: z22.array(ReleaseTypeSchema).nullish(),
|
|
9966
|
+
irVersion: z22.number().nullish()
|
|
10006
9967
|
});
|
|
10007
|
-
var GetCliChangelogInputSchema =
|
|
9968
|
+
var GetCliChangelogInputSchema = z22.object({
|
|
10008
9969
|
fromVersion: VersionRangeSchema,
|
|
10009
9970
|
toVersion: VersionRangeSchema
|
|
10010
9971
|
});
|
|
10011
|
-
var GetMinCliForIrInputSchema =
|
|
10012
|
-
irVersion:
|
|
9972
|
+
var GetMinCliForIrInputSchema = z22.object({
|
|
9973
|
+
irVersion: z22.coerce.number()
|
|
10013
9974
|
});
|
|
10014
|
-
var UpsertCliReleaseInputSchema =
|
|
10015
|
-
version:
|
|
10016
|
-
createdAt:
|
|
9975
|
+
var UpsertCliReleaseInputSchema = z22.object({
|
|
9976
|
+
version: z22.string(),
|
|
9977
|
+
createdAt: z22.string().nullish(),
|
|
10017
9978
|
isYanked: YankSchema.nullish(),
|
|
10018
|
-
changelogEntry:
|
|
10019
|
-
irVersion:
|
|
10020
|
-
tags:
|
|
9979
|
+
changelogEntry: z22.array(ChangelogEntrySchema).nullish(),
|
|
9980
|
+
irVersion: z22.number(),
|
|
9981
|
+
tags: z22.array(z22.string()).nullish()
|
|
10021
9982
|
});
|
|
10022
|
-
var GetCliReleaseInputSchema =
|
|
10023
|
-
cliVersion:
|
|
9983
|
+
var GetCliReleaseInputSchema = z22.object({
|
|
9984
|
+
cliVersion: z22.string()
|
|
10024
9985
|
});
|
|
10025
|
-
var ListCliReleasesInputSchema =
|
|
10026
|
-
page:
|
|
10027
|
-
pageSize:
|
|
9986
|
+
var ListCliReleasesInputSchema = z22.object({
|
|
9987
|
+
page: z22.coerce.number().nullish(),
|
|
9988
|
+
pageSize: z22.coerce.number().nullish()
|
|
10028
9989
|
});
|
|
10029
|
-
var ListCliReleasesResponseSchema =
|
|
10030
|
-
cliReleases:
|
|
9990
|
+
var ListCliReleasesResponseSchema = z22.object({
|
|
9991
|
+
cliReleases: z22.array(CliReleaseSchema)
|
|
10031
9992
|
});
|
|
10032
9993
|
var generatorsContract = {
|
|
10033
|
-
upsertGenerator:
|
|
10034
|
-
getGeneratorByImage:
|
|
10035
|
-
getGenerator:
|
|
10036
|
-
listGenerators:
|
|
9994
|
+
upsertGenerator: oc12.route({ method: "PUT", path: "/" }).input(GeneratorSchema).output(z22.void()),
|
|
9995
|
+
getGeneratorByImage: oc12.route({ method: "POST", path: "/by-image" }).input(GetGeneratorByImageInputSchema).output(GeneratorOutputSchema.nullish()),
|
|
9996
|
+
getGenerator: oc12.route({ method: "GET", path: "/{generatorId}" }).input(GetGeneratorInputSchema).output(GeneratorOutputSchema.nullish()),
|
|
9997
|
+
listGenerators: oc12.route({ method: "GET", path: "/" }).input(z22.object({})).output(z22.array(GeneratorOutputSchema))
|
|
10037
9998
|
};
|
|
10038
9999
|
var generatorVersionsContract = {
|
|
10039
|
-
getLatestGeneratorRelease:
|
|
10040
|
-
getChangelog:
|
|
10041
|
-
upsertGeneratorRelease:
|
|
10042
|
-
getGeneratorRelease:
|
|
10043
|
-
listGeneratorReleases:
|
|
10000
|
+
getLatestGeneratorRelease: oc12.route({ method: "POST", path: "/latest" }).input(GetLatestGeneratorReleaseInputSchema).output(GeneratorReleaseSchema),
|
|
10001
|
+
getChangelog: oc12.route({ method: "POST", path: "/{generator}/changelog" }).input(GetGeneratorChangelogInputSchema).output(GetChangelogResponseSchema),
|
|
10002
|
+
upsertGeneratorRelease: oc12.route({ method: "PUT", path: "/" }).input(GeneratorReleaseRequestSchema).output(z22.void()),
|
|
10003
|
+
getGeneratorRelease: oc12.route({ method: "GET", path: "/{generator}/{version}" }).input(GetGeneratorReleaseInputSchema).output(GeneratorReleaseSchema),
|
|
10004
|
+
listGeneratorReleases: oc12.route({ method: "GET", path: "/{generator}" }).input(ListGeneratorReleasesInputSchema).output(ListGeneratorReleasesResponseSchema)
|
|
10044
10005
|
};
|
|
10045
10006
|
var generatorCliContract = {
|
|
10046
|
-
getLatestCliRelease:
|
|
10047
|
-
getChangelog:
|
|
10048
|
-
getMinCliForIr:
|
|
10049
|
-
upsertCliRelease:
|
|
10050
|
-
getCliRelease:
|
|
10051
|
-
listCliReleases:
|
|
10007
|
+
getLatestCliRelease: oc12.route({ method: "POST", path: "/latest" }).input(GetLatestCliReleaseInputSchema).output(CliReleaseSchema),
|
|
10008
|
+
getChangelog: oc12.route({ method: "POST", path: "/changelog" }).input(GetCliChangelogInputSchema).output(GetChangelogResponseSchema),
|
|
10009
|
+
getMinCliForIr: oc12.route({ method: "GET", path: "/for-ir/{irVersion}" }).input(GetMinCliForIrInputSchema).output(CliReleaseSchema),
|
|
10010
|
+
upsertCliRelease: oc12.route({ method: "PUT", path: "/" }).input(UpsertCliReleaseInputSchema).output(z22.void()),
|
|
10011
|
+
getCliRelease: oc12.route({ method: "GET", path: "/{cliVersion}" }).input(GetCliReleaseInputSchema).output(CliReleaseSchema),
|
|
10012
|
+
listCliReleases: oc12.route({ method: "GET", path: "/" }).input(ListCliReleasesInputSchema).output(ListCliReleasesResponseSchema)
|
|
10052
10013
|
};
|
|
10053
10014
|
|
|
10054
10015
|
// src/orpc-client/generators/cli/client.ts
|
|
10055
10016
|
function createGeneratorCliClient(options) {
|
|
10056
|
-
const link = new
|
|
10017
|
+
const link = new OpenAPILink12(generatorCliContract, {
|
|
10057
10018
|
url: `${options.baseUrl}/generators/cli`,
|
|
10058
10019
|
headers: () => ({
|
|
10059
10020
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10061,14 +10022,14 @@ function createGeneratorCliClient(options) {
|
|
|
10061
10022
|
}),
|
|
10062
10023
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10063
10024
|
});
|
|
10064
|
-
return
|
|
10025
|
+
return createORPCClient12(link);
|
|
10065
10026
|
}
|
|
10066
10027
|
|
|
10067
10028
|
// src/orpc-client/generators/client.ts
|
|
10068
|
-
import { createORPCClient as
|
|
10069
|
-
import { OpenAPILink as
|
|
10029
|
+
import { createORPCClient as createORPCClient13 } from "@orpc/client";
|
|
10030
|
+
import { OpenAPILink as OpenAPILink13 } from "@orpc/openapi-client/fetch";
|
|
10070
10031
|
function createGeneratorsRootClient(options) {
|
|
10071
|
-
const link = new
|
|
10032
|
+
const link = new OpenAPILink13(generatorsContract, {
|
|
10072
10033
|
url: `${options.baseUrl}/generators`,
|
|
10073
10034
|
headers: () => ({
|
|
10074
10035
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10076,14 +10037,14 @@ function createGeneratorsRootClient(options) {
|
|
|
10076
10037
|
}),
|
|
10077
10038
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10078
10039
|
});
|
|
10079
|
-
return
|
|
10040
|
+
return createORPCClient13(link);
|
|
10080
10041
|
}
|
|
10081
10042
|
|
|
10082
10043
|
// src/orpc-client/generators/versions/client.ts
|
|
10083
|
-
import { createORPCClient as
|
|
10084
|
-
import { OpenAPILink as
|
|
10044
|
+
import { createORPCClient as createORPCClient14 } from "@orpc/client";
|
|
10045
|
+
import { OpenAPILink as OpenAPILink14 } from "@orpc/openapi-client/fetch";
|
|
10085
10046
|
function createGeneratorVersionsClient(options) {
|
|
10086
|
-
const link = new
|
|
10047
|
+
const link = new OpenAPILink14(generatorVersionsContract, {
|
|
10087
10048
|
url: `${options.baseUrl}/generators/versions`,
|
|
10088
10049
|
headers: () => ({
|
|
10089
10050
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10091,130 +10052,130 @@ function createGeneratorVersionsClient(options) {
|
|
|
10091
10052
|
}),
|
|
10092
10053
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10093
10054
|
});
|
|
10094
|
-
return
|
|
10055
|
+
return createORPCClient14(link);
|
|
10095
10056
|
}
|
|
10096
10057
|
|
|
10097
10058
|
// src/orpc-client/git/client.ts
|
|
10098
|
-
import { createORPCClient as
|
|
10099
|
-
import { OpenAPILink as
|
|
10059
|
+
import { createORPCClient as createORPCClient15 } from "@orpc/client";
|
|
10060
|
+
import { OpenAPILink as OpenAPILink15 } from "@orpc/openapi-client/fetch";
|
|
10100
10061
|
|
|
10101
10062
|
// src/orpc-client/git/contract.ts
|
|
10102
|
-
import { oc as
|
|
10103
|
-
import * as
|
|
10104
|
-
var CheckRunSchema =
|
|
10105
|
-
checkId:
|
|
10106
|
-
repositoryOwner:
|
|
10107
|
-
repositoryName:
|
|
10108
|
-
ref:
|
|
10109
|
-
name:
|
|
10110
|
-
status:
|
|
10111
|
-
conclusion:
|
|
10112
|
-
checkRunUrl:
|
|
10113
|
-
createdAt:
|
|
10114
|
-
completedAt:
|
|
10115
|
-
rawCheckRun:
|
|
10116
|
-
});
|
|
10117
|
-
var GithubRepositoryIdSchema =
|
|
10118
|
-
id:
|
|
10119
|
-
});
|
|
10120
|
-
var RepositoryIdSchema =
|
|
10121
|
-
|
|
10063
|
+
import { oc as oc13 } from "@orpc/contract";
|
|
10064
|
+
import * as z23 from "zod";
|
|
10065
|
+
var CheckRunSchema = z23.object({
|
|
10066
|
+
checkId: z23.string(),
|
|
10067
|
+
repositoryOwner: z23.string(),
|
|
10068
|
+
repositoryName: z23.string(),
|
|
10069
|
+
ref: z23.string(),
|
|
10070
|
+
name: z23.string(),
|
|
10071
|
+
status: z23.string(),
|
|
10072
|
+
conclusion: z23.string(),
|
|
10073
|
+
checkRunUrl: z23.string(),
|
|
10074
|
+
createdAt: z23.string(),
|
|
10075
|
+
completedAt: z23.string().nullish(),
|
|
10076
|
+
rawCheckRun: z23.unknown()
|
|
10077
|
+
});
|
|
10078
|
+
var GithubRepositoryIdSchema = z23.object({
|
|
10079
|
+
id: z23.string()
|
|
10080
|
+
});
|
|
10081
|
+
var RepositoryIdSchema = z23.discriminatedUnion("type", [
|
|
10082
|
+
z23.object({ type: z23.literal("github") }).merge(GithubRepositoryIdSchema)
|
|
10122
10083
|
]);
|
|
10123
|
-
var BaseRepositorySchema =
|
|
10084
|
+
var BaseRepositorySchema = z23.object({
|
|
10124
10085
|
id: RepositoryIdSchema,
|
|
10125
|
-
name:
|
|
10126
|
-
owner:
|
|
10127
|
-
fullName:
|
|
10128
|
-
url:
|
|
10129
|
-
repositoryOwnerOrganizationId:
|
|
10130
|
-
defaultBranchChecks:
|
|
10086
|
+
name: z23.string(),
|
|
10087
|
+
owner: z23.string(),
|
|
10088
|
+
fullName: z23.string(),
|
|
10089
|
+
url: z23.string(),
|
|
10090
|
+
repositoryOwnerOrganizationId: z23.string(),
|
|
10091
|
+
defaultBranchChecks: z23.array(CheckRunSchema)
|
|
10131
10092
|
});
|
|
10132
10093
|
var SdkRepositorySchema = BaseRepositorySchema.extend({
|
|
10133
|
-
type:
|
|
10134
|
-
sdkLanguage:
|
|
10094
|
+
type: z23.literal("sdk"),
|
|
10095
|
+
sdkLanguage: z23.string()
|
|
10135
10096
|
});
|
|
10136
10097
|
var FernConfigRepositorySchema = BaseRepositorySchema.extend({
|
|
10137
|
-
type:
|
|
10098
|
+
type: z23.literal("config")
|
|
10138
10099
|
});
|
|
10139
|
-
var FernRepositorySchema =
|
|
10140
|
-
var GithubUserSchema =
|
|
10141
|
-
name:
|
|
10142
|
-
email:
|
|
10143
|
-
username:
|
|
10100
|
+
var FernRepositorySchema = z23.discriminatedUnion("type", [SdkRepositorySchema, FernConfigRepositorySchema]);
|
|
10101
|
+
var GithubUserSchema = z23.object({
|
|
10102
|
+
name: z23.string().nullish(),
|
|
10103
|
+
email: z23.string().nullish(),
|
|
10104
|
+
username: z23.string()
|
|
10144
10105
|
});
|
|
10145
|
-
var GithubTeamSchema =
|
|
10146
|
-
name:
|
|
10147
|
-
teamId:
|
|
10106
|
+
var GithubTeamSchema = z23.object({
|
|
10107
|
+
name: z23.string(),
|
|
10108
|
+
teamId: z23.string()
|
|
10148
10109
|
});
|
|
10149
|
-
var PullRequestReviewerSchema =
|
|
10150
|
-
|
|
10151
|
-
|
|
10110
|
+
var PullRequestReviewerSchema = z23.discriminatedUnion("type", [
|
|
10111
|
+
z23.object({ type: z23.literal("user") }).merge(GithubUserSchema),
|
|
10112
|
+
z23.object({ type: z23.literal("team") }).merge(GithubTeamSchema)
|
|
10152
10113
|
]);
|
|
10153
|
-
var PullRequestStateSchema =
|
|
10154
|
-
var PullRequestSchema =
|
|
10155
|
-
pullRequestNumber:
|
|
10156
|
-
repositoryName:
|
|
10157
|
-
repositoryOwner:
|
|
10114
|
+
var PullRequestStateSchema = z23.enum(["open", "closed", "merged"]);
|
|
10115
|
+
var PullRequestSchema = z23.object({
|
|
10116
|
+
pullRequestNumber: z23.number().int(),
|
|
10117
|
+
repositoryName: z23.string(),
|
|
10118
|
+
repositoryOwner: z23.string(),
|
|
10158
10119
|
author: GithubUserSchema.nullish(),
|
|
10159
|
-
reviewers:
|
|
10160
|
-
title:
|
|
10161
|
-
url:
|
|
10162
|
-
checks:
|
|
10120
|
+
reviewers: z23.array(PullRequestReviewerSchema),
|
|
10121
|
+
title: z23.string(),
|
|
10122
|
+
url: z23.string(),
|
|
10123
|
+
checks: z23.array(CheckRunSchema),
|
|
10163
10124
|
state: PullRequestStateSchema,
|
|
10164
|
-
createdAt:
|
|
10165
|
-
updatedAt:
|
|
10166
|
-
mergedAt:
|
|
10167
|
-
closedAt:
|
|
10168
|
-
});
|
|
10169
|
-
var ListRepositoriesResponseSchema =
|
|
10170
|
-
repositories:
|
|
10171
|
-
});
|
|
10172
|
-
var ListPullRequestsResponseSchema =
|
|
10173
|
-
pullRequests:
|
|
10174
|
-
});
|
|
10175
|
-
var GetRepositoryInputSchema =
|
|
10176
|
-
repositoryOwner:
|
|
10177
|
-
repositoryName:
|
|
10178
|
-
});
|
|
10179
|
-
var ListRepositoriesInputSchema =
|
|
10180
|
-
page:
|
|
10181
|
-
pageSize:
|
|
10182
|
-
organizationId:
|
|
10183
|
-
repositoryName:
|
|
10184
|
-
repositoryOwner:
|
|
10185
|
-
});
|
|
10186
|
-
var DeleteRepositoryInputSchema =
|
|
10187
|
-
repositoryOwner:
|
|
10188
|
-
repositoryName:
|
|
10189
|
-
});
|
|
10190
|
-
var GetPullRequestInputSchema =
|
|
10191
|
-
repositoryOwner:
|
|
10192
|
-
repositoryName:
|
|
10193
|
-
pullRequestNumber:
|
|
10194
|
-
});
|
|
10195
|
-
var ListPullRequestsInputSchema =
|
|
10196
|
-
page:
|
|
10197
|
-
pageSize:
|
|
10198
|
-
repositoryName:
|
|
10199
|
-
repositoryOwner:
|
|
10200
|
-
organizationId:
|
|
10201
|
-
state:
|
|
10202
|
-
author:
|
|
10203
|
-
});
|
|
10204
|
-
var DeletePullRequestInputSchema =
|
|
10205
|
-
repositoryOwner:
|
|
10206
|
-
repositoryName:
|
|
10207
|
-
pullRequestNumber:
|
|
10125
|
+
createdAt: z23.string(),
|
|
10126
|
+
updatedAt: z23.string().nullish(),
|
|
10127
|
+
mergedAt: z23.string().nullish(),
|
|
10128
|
+
closedAt: z23.string().nullish()
|
|
10129
|
+
});
|
|
10130
|
+
var ListRepositoriesResponseSchema = z23.object({
|
|
10131
|
+
repositories: z23.array(FernRepositorySchema)
|
|
10132
|
+
});
|
|
10133
|
+
var ListPullRequestsResponseSchema = z23.object({
|
|
10134
|
+
pullRequests: z23.array(PullRequestSchema)
|
|
10135
|
+
});
|
|
10136
|
+
var GetRepositoryInputSchema = z23.object({
|
|
10137
|
+
repositoryOwner: z23.string(),
|
|
10138
|
+
repositoryName: z23.string()
|
|
10139
|
+
});
|
|
10140
|
+
var ListRepositoriesInputSchema = z23.object({
|
|
10141
|
+
page: z23.number().int().nullish(),
|
|
10142
|
+
pageSize: z23.number().int().nullish(),
|
|
10143
|
+
organizationId: z23.string().nullish(),
|
|
10144
|
+
repositoryName: z23.string().nullish(),
|
|
10145
|
+
repositoryOwner: z23.string().nullish()
|
|
10146
|
+
});
|
|
10147
|
+
var DeleteRepositoryInputSchema = z23.object({
|
|
10148
|
+
repositoryOwner: z23.string(),
|
|
10149
|
+
repositoryName: z23.string()
|
|
10150
|
+
});
|
|
10151
|
+
var GetPullRequestInputSchema = z23.object({
|
|
10152
|
+
repositoryOwner: z23.string(),
|
|
10153
|
+
repositoryName: z23.string(),
|
|
10154
|
+
pullRequestNumber: z23.coerce.number().int()
|
|
10155
|
+
});
|
|
10156
|
+
var ListPullRequestsInputSchema = z23.object({
|
|
10157
|
+
page: z23.number().int().nullish(),
|
|
10158
|
+
pageSize: z23.number().int().nullish(),
|
|
10159
|
+
repositoryName: z23.string().nullish(),
|
|
10160
|
+
repositoryOwner: z23.string().nullish(),
|
|
10161
|
+
organizationId: z23.string().nullish(),
|
|
10162
|
+
state: z23.array(PullRequestStateSchema).nullish(),
|
|
10163
|
+
author: z23.array(z23.string()).nullish()
|
|
10164
|
+
});
|
|
10165
|
+
var DeletePullRequestInputSchema = z23.object({
|
|
10166
|
+
repositoryOwner: z23.string(),
|
|
10167
|
+
repositoryName: z23.string(),
|
|
10168
|
+
pullRequestNumber: z23.coerce.number().int()
|
|
10208
10169
|
});
|
|
10209
10170
|
var gitContract = {
|
|
10210
|
-
getRepository:
|
|
10211
|
-
listRepositories:
|
|
10212
|
-
upsertRepository:
|
|
10213
|
-
deleteRepository:
|
|
10214
|
-
getPullRequest:
|
|
10215
|
-
listPullRequests:
|
|
10216
|
-
upsertPullRequest:
|
|
10217
|
-
deletePullRequest:
|
|
10171
|
+
getRepository: oc13.route({ method: "GET", path: "/repository/{repositoryOwner}/{repositoryName}" }).input(GetRepositoryInputSchema).output(FernRepositorySchema),
|
|
10172
|
+
listRepositories: oc13.route({ method: "POST", path: "/repository/list" }).input(ListRepositoriesInputSchema).output(ListRepositoriesResponseSchema),
|
|
10173
|
+
upsertRepository: oc13.route({ method: "PUT", path: "/repository/upsert" }).input(FernRepositorySchema),
|
|
10174
|
+
deleteRepository: oc13.route({ method: "DELETE", path: "/repository/{repositoryOwner}/{repositoryName}/delete" }).input(DeleteRepositoryInputSchema),
|
|
10175
|
+
getPullRequest: oc13.route({ method: "GET", path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}" }).input(GetPullRequestInputSchema).output(PullRequestSchema),
|
|
10176
|
+
listPullRequests: oc13.route({ method: "POST", path: "/pull-request/list" }).input(ListPullRequestsInputSchema).output(ListPullRequestsResponseSchema),
|
|
10177
|
+
upsertPullRequest: oc13.route({ method: "PUT", path: "/pull-request/upsert" }).input(PullRequestSchema),
|
|
10178
|
+
deletePullRequest: oc13.route({
|
|
10218
10179
|
method: "DELETE",
|
|
10219
10180
|
path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}/delete"
|
|
10220
10181
|
}).input(DeletePullRequestInputSchema)
|
|
@@ -10222,7 +10183,7 @@ var gitContract = {
|
|
|
10222
10183
|
|
|
10223
10184
|
// src/orpc-client/git/client.ts
|
|
10224
10185
|
function createGitClient(options) {
|
|
10225
|
-
const link = new
|
|
10186
|
+
const link = new OpenAPILink15(gitContract, {
|
|
10226
10187
|
url: `${options.baseUrl}/generators/github`,
|
|
10227
10188
|
headers: () => ({
|
|
10228
10189
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10230,106 +10191,106 @@ function createGitClient(options) {
|
|
|
10230
10191
|
}),
|
|
10231
10192
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10232
10193
|
});
|
|
10233
|
-
return
|
|
10194
|
+
return createORPCClient15(link);
|
|
10234
10195
|
}
|
|
10235
10196
|
|
|
10236
10197
|
// src/orpc-client/pdf-export/client.ts
|
|
10237
|
-
import { createORPCClient as
|
|
10238
|
-
import { OpenAPILink as
|
|
10198
|
+
import { createORPCClient as createORPCClient16 } from "@orpc/client";
|
|
10199
|
+
import { OpenAPILink as OpenAPILink16 } from "@orpc/openapi-client/fetch";
|
|
10239
10200
|
|
|
10240
10201
|
// src/orpc-client/pdf-export/contract.ts
|
|
10241
|
-
import { oc as
|
|
10242
|
-
import * as
|
|
10243
|
-
var PdfExportScopeSchema =
|
|
10244
|
-
pageSlugs:
|
|
10245
|
-
});
|
|
10246
|
-
var PdfExportOptionsV1Schema =
|
|
10247
|
-
coverTitle:
|
|
10248
|
-
coverSubtitle:
|
|
10249
|
-
hideCoverFooter:
|
|
10250
|
-
headerLeftTemplate:
|
|
10251
|
-
headerRightTemplate:
|
|
10252
|
-
footerLeftTemplate:
|
|
10253
|
-
footerRightTemplate:
|
|
10202
|
+
import { oc as oc14 } from "@orpc/contract";
|
|
10203
|
+
import * as z24 from "zod";
|
|
10204
|
+
var PdfExportScopeSchema = z24.object({
|
|
10205
|
+
pageSlugs: z24.array(z24.string())
|
|
10206
|
+
});
|
|
10207
|
+
var PdfExportOptionsV1Schema = z24.object({
|
|
10208
|
+
coverTitle: z24.string().nullish(),
|
|
10209
|
+
coverSubtitle: z24.string().nullish(),
|
|
10210
|
+
hideCoverFooter: z24.boolean().nullish(),
|
|
10211
|
+
headerLeftTemplate: z24.string().nullish(),
|
|
10212
|
+
headerRightTemplate: z24.string().nullish(),
|
|
10213
|
+
footerLeftTemplate: z24.string().nullish(),
|
|
10214
|
+
footerRightTemplate: z24.string().nullish(),
|
|
10254
10215
|
scope: PdfExportScopeSchema.nullish(),
|
|
10255
|
-
hideCover:
|
|
10256
|
-
hideToc:
|
|
10216
|
+
hideCover: z24.boolean().nullish(),
|
|
10217
|
+
hideToc: z24.boolean().nullish()
|
|
10257
10218
|
});
|
|
10258
|
-
var PdfExportOptionsSchema =
|
|
10259
|
-
|
|
10219
|
+
var PdfExportOptionsSchema = z24.discriminatedUnion("version", [
|
|
10220
|
+
z24.object({ version: z24.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
10260
10221
|
]);
|
|
10261
|
-
var PdfExportTaskStatusSchema =
|
|
10262
|
-
var PdfExportTaskSchema =
|
|
10263
|
-
id:
|
|
10264
|
-
orgId:
|
|
10265
|
-
docsUrl:
|
|
10266
|
-
productId:
|
|
10267
|
-
versionId:
|
|
10268
|
-
requesterName:
|
|
10269
|
-
notifyEmails:
|
|
10222
|
+
var PdfExportTaskStatusSchema = z24.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
10223
|
+
var PdfExportTaskSchema = z24.object({
|
|
10224
|
+
id: z24.string(),
|
|
10225
|
+
orgId: z24.string(),
|
|
10226
|
+
docsUrl: z24.string(),
|
|
10227
|
+
productId: z24.string().nullish(),
|
|
10228
|
+
versionId: z24.string().nullish(),
|
|
10229
|
+
requesterName: z24.string().nullish(),
|
|
10230
|
+
notifyEmails: z24.array(z24.string()).nullish(),
|
|
10270
10231
|
status: PdfExportTaskStatusSchema,
|
|
10271
10232
|
options: PdfExportOptionsSchema.nullish(),
|
|
10272
|
-
createdAt:
|
|
10273
|
-
startedAt:
|
|
10274
|
-
completedAt:
|
|
10275
|
-
fileName:
|
|
10276
|
-
sizeBytes:
|
|
10277
|
-
errorMessage:
|
|
10278
|
-
});
|
|
10279
|
-
var ListPdfExportTasksResponseSchema =
|
|
10280
|
-
tasks:
|
|
10281
|
-
});
|
|
10282
|
-
var PdfExportDownloadResponseSchema =
|
|
10283
|
-
downloadUrl:
|
|
10284
|
-
fileName:
|
|
10285
|
-
sizeBytes:
|
|
10286
|
-
});
|
|
10287
|
-
var CreatePdfExportTaskInputSchema =
|
|
10288
|
-
orgId:
|
|
10289
|
-
docsUrl:
|
|
10290
|
-
productId:
|
|
10291
|
-
versionId:
|
|
10292
|
-
requesterName:
|
|
10233
|
+
createdAt: z24.string(),
|
|
10234
|
+
startedAt: z24.string().nullish(),
|
|
10235
|
+
completedAt: z24.string().nullish(),
|
|
10236
|
+
fileName: z24.string().nullish(),
|
|
10237
|
+
sizeBytes: z24.number().nullish(),
|
|
10238
|
+
errorMessage: z24.string().nullish()
|
|
10239
|
+
});
|
|
10240
|
+
var ListPdfExportTasksResponseSchema = z24.object({
|
|
10241
|
+
tasks: z24.array(PdfExportTaskSchema)
|
|
10242
|
+
});
|
|
10243
|
+
var PdfExportDownloadResponseSchema = z24.object({
|
|
10244
|
+
downloadUrl: z24.string(),
|
|
10245
|
+
fileName: z24.string(),
|
|
10246
|
+
sizeBytes: z24.number()
|
|
10247
|
+
});
|
|
10248
|
+
var CreatePdfExportTaskInputSchema = z24.object({
|
|
10249
|
+
orgId: z24.string(),
|
|
10250
|
+
docsUrl: z24.string(),
|
|
10251
|
+
productId: z24.string().nullish(),
|
|
10252
|
+
versionId: z24.string().nullish(),
|
|
10253
|
+
requesterName: z24.string().nullish(),
|
|
10293
10254
|
options: PdfExportOptionsSchema.nullish()
|
|
10294
10255
|
});
|
|
10295
|
-
var ListPdfExportTasksInputSchema =
|
|
10296
|
-
orgId:
|
|
10297
|
-
docsUrl:
|
|
10298
|
-
limit:
|
|
10256
|
+
var ListPdfExportTasksInputSchema = z24.object({
|
|
10257
|
+
orgId: z24.string(),
|
|
10258
|
+
docsUrl: z24.string(),
|
|
10259
|
+
limit: z24.coerce.number().nullish()
|
|
10299
10260
|
});
|
|
10300
|
-
var GetPdfExportTaskInputSchema =
|
|
10301
|
-
taskId:
|
|
10261
|
+
var GetPdfExportTaskInputSchema = z24.object({
|
|
10262
|
+
taskId: z24.string()
|
|
10302
10263
|
});
|
|
10303
|
-
var UpdatePdfExportTaskInputSchema =
|
|
10304
|
-
taskId:
|
|
10264
|
+
var UpdatePdfExportTaskInputSchema = z24.object({
|
|
10265
|
+
taskId: z24.string(),
|
|
10305
10266
|
status: PdfExportTaskStatusSchema,
|
|
10306
|
-
startedAt:
|
|
10307
|
-
completedAt:
|
|
10308
|
-
s3Key:
|
|
10309
|
-
fileName:
|
|
10310
|
-
sizeBytes:
|
|
10311
|
-
errorMessage:
|
|
10267
|
+
startedAt: z24.string().nullish(),
|
|
10268
|
+
completedAt: z24.string().nullish(),
|
|
10269
|
+
s3Key: z24.string().nullish(),
|
|
10270
|
+
fileName: z24.string().nullish(),
|
|
10271
|
+
sizeBytes: z24.number().nullish(),
|
|
10272
|
+
errorMessage: z24.string().nullish()
|
|
10312
10273
|
});
|
|
10313
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
10314
|
-
taskId:
|
|
10274
|
+
var GetPdfExportDownloadUrlInputSchema = z24.object({
|
|
10275
|
+
taskId: z24.string()
|
|
10315
10276
|
});
|
|
10316
|
-
var CleanupPdfExportsResponseSchema =
|
|
10317
|
-
expiredTasksDeleted:
|
|
10318
|
-
s3ObjectsDeleted:
|
|
10319
|
-
timedOutTasksFailed:
|
|
10277
|
+
var CleanupPdfExportsResponseSchema = z24.object({
|
|
10278
|
+
expiredTasksDeleted: z24.number(),
|
|
10279
|
+
s3ObjectsDeleted: z24.number(),
|
|
10280
|
+
timedOutTasksFailed: z24.number()
|
|
10320
10281
|
});
|
|
10321
10282
|
var pdfExportContract = {
|
|
10322
|
-
createTask:
|
|
10323
|
-
listTasks:
|
|
10324
|
-
getTask:
|
|
10325
|
-
updateTask:
|
|
10326
|
-
getDownloadUrl:
|
|
10327
|
-
cleanup:
|
|
10283
|
+
createTask: oc14.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
10284
|
+
listTasks: oc14.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
10285
|
+
getTask: oc14.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
10286
|
+
updateTask: oc14.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
10287
|
+
getDownloadUrl: oc14.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
10288
|
+
cleanup: oc14.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
10328
10289
|
};
|
|
10329
10290
|
|
|
10330
10291
|
// src/orpc-client/pdf-export/client.ts
|
|
10331
10292
|
function createPdfExportClient(options) {
|
|
10332
|
-
const link = new
|
|
10293
|
+
const link = new OpenAPILink16(pdfExportContract, {
|
|
10333
10294
|
url: `${options.baseUrl}/pdf-export`,
|
|
10334
10295
|
headers: () => ({
|
|
10335
10296
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10337,17 +10298,17 @@ function createPdfExportClient(options) {
|
|
|
10337
10298
|
}),
|
|
10338
10299
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10339
10300
|
});
|
|
10340
|
-
return
|
|
10301
|
+
return createORPCClient16(link);
|
|
10341
10302
|
}
|
|
10342
10303
|
|
|
10343
10304
|
// src/orpc-client/sdks/client.ts
|
|
10344
|
-
import { createORPCClient as
|
|
10345
|
-
import { OpenAPILink as
|
|
10305
|
+
import { createORPCClient as createORPCClient17 } from "@orpc/client";
|
|
10306
|
+
import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
|
|
10346
10307
|
|
|
10347
10308
|
// src/orpc-client/sdks/contract.ts
|
|
10348
|
-
import { oc as
|
|
10349
|
-
import * as
|
|
10350
|
-
var LanguageEnumSchema =
|
|
10309
|
+
import { oc as oc15 } from "@orpc/contract";
|
|
10310
|
+
import * as z25 from "zod";
|
|
10311
|
+
var LanguageEnumSchema = z25.enum([
|
|
10351
10312
|
"Go",
|
|
10352
10313
|
"TypeScript",
|
|
10353
10314
|
"Java",
|
|
@@ -10358,23 +10319,23 @@ var LanguageEnumSchema = z26.enum([
|
|
|
10358
10319
|
"Swift",
|
|
10359
10320
|
"Rust"
|
|
10360
10321
|
]);
|
|
10361
|
-
var VersionBumpEnumSchema =
|
|
10362
|
-
var ComputeSemanticVersionInputSchema =
|
|
10363
|
-
package:
|
|
10322
|
+
var VersionBumpEnumSchema = z25.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
10323
|
+
var ComputeSemanticVersionInputSchema = z25.object({
|
|
10324
|
+
package: z25.string(),
|
|
10364
10325
|
language: LanguageEnumSchema,
|
|
10365
|
-
githubRepository:
|
|
10326
|
+
githubRepository: z25.string().nullish()
|
|
10366
10327
|
});
|
|
10367
|
-
var ComputeSemanticVersionOutputSchema =
|
|
10368
|
-
version:
|
|
10328
|
+
var ComputeSemanticVersionOutputSchema = z25.object({
|
|
10329
|
+
version: z25.string(),
|
|
10369
10330
|
bump: VersionBumpEnumSchema
|
|
10370
10331
|
});
|
|
10371
10332
|
var sdksContract = {
|
|
10372
|
-
computeSemanticVersion:
|
|
10333
|
+
computeSemanticVersion: oc15.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
10373
10334
|
};
|
|
10374
10335
|
|
|
10375
10336
|
// src/orpc-client/sdks/client.ts
|
|
10376
10337
|
function createSdksClient(options) {
|
|
10377
|
-
const link = new
|
|
10338
|
+
const link = new OpenAPILink17(sdksContract, {
|
|
10378
10339
|
url: `${options.baseUrl}/sdks`,
|
|
10379
10340
|
headers: () => ({
|
|
10380
10341
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10382,50 +10343,50 @@ function createSdksClient(options) {
|
|
|
10382
10343
|
}),
|
|
10383
10344
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10384
10345
|
});
|
|
10385
|
-
return
|
|
10346
|
+
return createORPCClient17(link);
|
|
10386
10347
|
}
|
|
10387
10348
|
|
|
10388
10349
|
// src/orpc-client/slugs/client.ts
|
|
10389
|
-
import { createORPCClient as
|
|
10390
|
-
import { OpenAPILink as
|
|
10350
|
+
import { createORPCClient as createORPCClient18 } from "@orpc/client";
|
|
10351
|
+
import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
|
|
10391
10352
|
|
|
10392
10353
|
// src/orpc-client/slugs/contract.ts
|
|
10393
|
-
import { oc as
|
|
10394
|
-
import * as
|
|
10395
|
-
var SlugsInputSchema =
|
|
10396
|
-
domain:
|
|
10397
|
-
basepath:
|
|
10398
|
-
});
|
|
10399
|
-
var SlugEntrySchema =
|
|
10400
|
-
orgId:
|
|
10401
|
-
domain:
|
|
10402
|
-
basepath:
|
|
10403
|
-
slug:
|
|
10404
|
-
lastUpdated:
|
|
10405
|
-
});
|
|
10406
|
-
var MarkdownEntrySchema =
|
|
10407
|
-
orgId:
|
|
10408
|
-
domain:
|
|
10409
|
-
basepath:
|
|
10410
|
-
pageId:
|
|
10411
|
-
slug:
|
|
10412
|
-
hash:
|
|
10413
|
-
lastUpdated:
|
|
10414
|
-
});
|
|
10415
|
-
var GetSlugEntriesResponseSchema =
|
|
10416
|
-
entries:
|
|
10417
|
-
});
|
|
10418
|
-
var GetMarkdownEntriesResponseSchema =
|
|
10419
|
-
entries:
|
|
10354
|
+
import { oc as oc16 } from "@orpc/contract";
|
|
10355
|
+
import * as z26 from "zod";
|
|
10356
|
+
var SlugsInputSchema = z26.object({
|
|
10357
|
+
domain: z26.string(),
|
|
10358
|
+
basepath: z26.string().optional().default("")
|
|
10359
|
+
});
|
|
10360
|
+
var SlugEntrySchema = z26.object({
|
|
10361
|
+
orgId: z26.string(),
|
|
10362
|
+
domain: z26.string(),
|
|
10363
|
+
basepath: z26.string(),
|
|
10364
|
+
slug: z26.string(),
|
|
10365
|
+
lastUpdated: z26.string()
|
|
10366
|
+
});
|
|
10367
|
+
var MarkdownEntrySchema = z26.object({
|
|
10368
|
+
orgId: z26.string(),
|
|
10369
|
+
domain: z26.string(),
|
|
10370
|
+
basepath: z26.string(),
|
|
10371
|
+
pageId: z26.string(),
|
|
10372
|
+
slug: z26.string(),
|
|
10373
|
+
hash: z26.string(),
|
|
10374
|
+
lastUpdated: z26.string()
|
|
10375
|
+
});
|
|
10376
|
+
var GetSlugEntriesResponseSchema = z26.object({
|
|
10377
|
+
entries: z26.array(SlugEntrySchema)
|
|
10378
|
+
});
|
|
10379
|
+
var GetMarkdownEntriesResponseSchema = z26.object({
|
|
10380
|
+
entries: z26.array(MarkdownEntrySchema)
|
|
10420
10381
|
});
|
|
10421
10382
|
var slugsContract = {
|
|
10422
|
-
getSlugEntries:
|
|
10423
|
-
getMarkdownEntries:
|
|
10383
|
+
getSlugEntries: oc16.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
10384
|
+
getMarkdownEntries: oc16.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
10424
10385
|
};
|
|
10425
10386
|
|
|
10426
10387
|
// src/orpc-client/slugs/client.ts
|
|
10427
10388
|
function createSlugsClient(options) {
|
|
10428
|
-
const link = new
|
|
10389
|
+
const link = new OpenAPILink18(slugsContract, {
|
|
10429
10390
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
10430
10391
|
headers: () => ({
|
|
10431
10392
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10433,12 +10394,12 @@ function createSlugsClient(options) {
|
|
|
10433
10394
|
}),
|
|
10434
10395
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10435
10396
|
});
|
|
10436
|
-
return
|
|
10397
|
+
return createORPCClient18(link);
|
|
10437
10398
|
}
|
|
10438
10399
|
|
|
10439
10400
|
// src/orpc-client/snippets/client.ts
|
|
10440
|
-
import { createORPCClient as
|
|
10441
|
-
import { OpenAPILink as
|
|
10401
|
+
import { createORPCClient as createORPCClient19 } from "@orpc/client";
|
|
10402
|
+
import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
|
|
10442
10403
|
|
|
10443
10404
|
// src/orpc-client/snippets/contract.ts
|
|
10444
10405
|
var contract_exports3 = {};
|
|
@@ -10448,110 +10409,110 @@ __export(contract_exports3, {
|
|
|
10448
10409
|
snippetsContract: () => snippetsContract,
|
|
10449
10410
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
10450
10411
|
});
|
|
10451
|
-
import { oc as
|
|
10452
|
-
import * as
|
|
10453
|
-
var TypeScriptSdkSchema =
|
|
10454
|
-
var PythonSdkSchema =
|
|
10455
|
-
var GoSdkSchema =
|
|
10456
|
-
var RubySdkSchema =
|
|
10457
|
-
var JavaSdkSchema =
|
|
10458
|
-
var CsharpSdkSchema =
|
|
10459
|
-
var BaseSnippetCreateSchema =
|
|
10412
|
+
import { oc as oc17 } from "@orpc/contract";
|
|
10413
|
+
import * as z27 from "zod";
|
|
10414
|
+
var TypeScriptSdkSchema = z27.object({ package: z27.string(), version: z27.string() });
|
|
10415
|
+
var PythonSdkSchema = z27.object({ package: z27.string(), version: z27.string() });
|
|
10416
|
+
var GoSdkSchema = z27.object({ githubRepo: z27.string(), version: z27.string() });
|
|
10417
|
+
var RubySdkSchema = z27.object({ gem: z27.string(), version: z27.string() });
|
|
10418
|
+
var JavaSdkSchema = z27.object({ group: z27.string(), artifact: z27.string(), version: z27.string() });
|
|
10419
|
+
var CsharpSdkSchema = z27.object({ package: z27.string(), version: z27.string() });
|
|
10420
|
+
var BaseSnippetCreateSchema = z27.object({
|
|
10460
10421
|
endpoint: EndpointIdentifierSchema,
|
|
10461
|
-
exampleIdentifier:
|
|
10422
|
+
exampleIdentifier: z27.string().nullish()
|
|
10462
10423
|
});
|
|
10463
|
-
var SdkSnippetsCreateSchema =
|
|
10464
|
-
|
|
10465
|
-
type:
|
|
10424
|
+
var SdkSnippetsCreateSchema = z27.discriminatedUnion("type", [
|
|
10425
|
+
z27.object({
|
|
10426
|
+
type: z27.literal("typescript"),
|
|
10466
10427
|
sdk: TypeScriptSdkSchema,
|
|
10467
|
-
snippets:
|
|
10428
|
+
snippets: z27.array(BaseSnippetCreateSchema.extend({ snippet: z27.object({ client: z27.string() }) }))
|
|
10468
10429
|
}),
|
|
10469
|
-
|
|
10470
|
-
type:
|
|
10430
|
+
z27.object({
|
|
10431
|
+
type: z27.literal("python"),
|
|
10471
10432
|
sdk: PythonSdkSchema,
|
|
10472
|
-
snippets:
|
|
10433
|
+
snippets: z27.array(
|
|
10473
10434
|
BaseSnippetCreateSchema.extend({
|
|
10474
|
-
snippet:
|
|
10435
|
+
snippet: z27.object({ async_client: z27.string(), sync_client: z27.string() })
|
|
10475
10436
|
})
|
|
10476
10437
|
)
|
|
10477
10438
|
}),
|
|
10478
|
-
|
|
10479
|
-
type:
|
|
10439
|
+
z27.object({
|
|
10440
|
+
type: z27.literal("go"),
|
|
10480
10441
|
sdk: GoSdkSchema,
|
|
10481
|
-
snippets:
|
|
10442
|
+
snippets: z27.array(BaseSnippetCreateSchema.extend({ snippet: z27.object({ client: z27.string() }) }))
|
|
10482
10443
|
}),
|
|
10483
|
-
|
|
10484
|
-
type:
|
|
10444
|
+
z27.object({
|
|
10445
|
+
type: z27.literal("java"),
|
|
10485
10446
|
sdk: JavaSdkSchema,
|
|
10486
|
-
snippets:
|
|
10447
|
+
snippets: z27.array(
|
|
10487
10448
|
BaseSnippetCreateSchema.extend({
|
|
10488
|
-
snippet:
|
|
10449
|
+
snippet: z27.object({ async_client: z27.string(), sync_client: z27.string() })
|
|
10489
10450
|
})
|
|
10490
10451
|
)
|
|
10491
10452
|
}),
|
|
10492
|
-
|
|
10493
|
-
type:
|
|
10453
|
+
z27.object({
|
|
10454
|
+
type: z27.literal("ruby"),
|
|
10494
10455
|
sdk: RubySdkSchema,
|
|
10495
|
-
snippets:
|
|
10456
|
+
snippets: z27.array(BaseSnippetCreateSchema.extend({ snippet: z27.object({ client: z27.string() }) }))
|
|
10496
10457
|
}),
|
|
10497
|
-
|
|
10498
|
-
type:
|
|
10458
|
+
z27.object({
|
|
10459
|
+
type: z27.literal("csharp"),
|
|
10499
10460
|
sdk: CsharpSdkSchema,
|
|
10500
|
-
snippets:
|
|
10461
|
+
snippets: z27.array(BaseSnippetCreateSchema.extend({ snippet: z27.object({ client: z27.string() }) }))
|
|
10501
10462
|
})
|
|
10502
10463
|
]);
|
|
10503
10464
|
var snippetsFactoryContract = {
|
|
10504
|
-
createSnippetsForSdk:
|
|
10505
|
-
|
|
10506
|
-
orgId:
|
|
10507
|
-
apiId:
|
|
10465
|
+
createSnippetsForSdk: oc17.route({ method: "POST", path: "/create" }).input(
|
|
10466
|
+
z27.object({
|
|
10467
|
+
orgId: z27.string(),
|
|
10468
|
+
apiId: z27.string(),
|
|
10508
10469
|
snippets: SdkSnippetsCreateSchema
|
|
10509
10470
|
})
|
|
10510
10471
|
)
|
|
10511
10472
|
};
|
|
10512
|
-
var ParameterPayloadSchema =
|
|
10513
|
-
name:
|
|
10514
|
-
value:
|
|
10473
|
+
var ParameterPayloadSchema = z27.object({
|
|
10474
|
+
name: z27.string(),
|
|
10475
|
+
value: z27.unknown()
|
|
10515
10476
|
});
|
|
10516
|
-
var AuthPayloadSchema =
|
|
10517
|
-
|
|
10518
|
-
|
|
10477
|
+
var AuthPayloadSchema = z27.discriminatedUnion("type", [
|
|
10478
|
+
z27.object({ type: z27.literal("bearer"), token: z27.string() }),
|
|
10479
|
+
z27.object({ type: z27.literal("basic"), username: z27.string(), password: z27.string() })
|
|
10519
10480
|
]);
|
|
10520
|
-
var CustomSnippetPayloadSchema =
|
|
10521
|
-
headers:
|
|
10522
|
-
pathParameters:
|
|
10523
|
-
queryParameters:
|
|
10524
|
-
requestBody:
|
|
10481
|
+
var CustomSnippetPayloadSchema = z27.object({
|
|
10482
|
+
headers: z27.array(ParameterPayloadSchema).nullish(),
|
|
10483
|
+
pathParameters: z27.array(ParameterPayloadSchema).nullish(),
|
|
10484
|
+
queryParameters: z27.array(ParameterPayloadSchema).nullish(),
|
|
10485
|
+
requestBody: z27.unknown().nullish(),
|
|
10525
10486
|
auth: AuthPayloadSchema.nullish()
|
|
10526
10487
|
});
|
|
10527
10488
|
var snippetsContract = {
|
|
10528
|
-
get:
|
|
10529
|
-
|
|
10530
|
-
orgId:
|
|
10531
|
-
apiId:
|
|
10532
|
-
sdks:
|
|
10489
|
+
get: oc17.route({ method: "POST", path: "/" }).input(
|
|
10490
|
+
z27.object({
|
|
10491
|
+
orgId: z27.string().nullish(),
|
|
10492
|
+
apiId: z27.string().nullish(),
|
|
10493
|
+
sdks: z27.array(SdkRequestSchema).nullish(),
|
|
10533
10494
|
endpoint: EndpointIdentifierSchema,
|
|
10534
|
-
exampleIdentifier:
|
|
10495
|
+
exampleIdentifier: z27.string().nullish(),
|
|
10535
10496
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
10536
10497
|
})
|
|
10537
|
-
).output(
|
|
10538
|
-
load:
|
|
10539
|
-
|
|
10540
|
-
orgId:
|
|
10541
|
-
apiId:
|
|
10542
|
-
sdks:
|
|
10498
|
+
).output(z27.array(z27.unknown())),
|
|
10499
|
+
load: oc17.route({ method: "POST", path: "/load" }).input(
|
|
10500
|
+
z27.object({
|
|
10501
|
+
orgId: z27.string().nullish(),
|
|
10502
|
+
apiId: z27.string().nullish(),
|
|
10503
|
+
sdks: z27.array(SdkRequestSchema).nullish()
|
|
10543
10504
|
})
|
|
10544
10505
|
).output(
|
|
10545
|
-
|
|
10546
|
-
next:
|
|
10547
|
-
snippets:
|
|
10506
|
+
z27.object({
|
|
10507
|
+
next: z27.number().nullish(),
|
|
10508
|
+
snippets: z27.record(z27.string(), z27.unknown())
|
|
10548
10509
|
})
|
|
10549
10510
|
)
|
|
10550
10511
|
};
|
|
10551
10512
|
|
|
10552
10513
|
// src/orpc-client/snippets/client.ts
|
|
10553
10514
|
function createSnippetsFactoryClient(options) {
|
|
10554
|
-
const link = new
|
|
10515
|
+
const link = new OpenAPILink19(snippetsFactoryContract, {
|
|
10555
10516
|
url: `${options.baseUrl}/snippets`,
|
|
10556
10517
|
headers: () => ({
|
|
10557
10518
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10559,10 +10520,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
10559
10520
|
}),
|
|
10560
10521
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10561
10522
|
});
|
|
10562
|
-
return
|
|
10523
|
+
return createORPCClient19(link);
|
|
10563
10524
|
}
|
|
10564
10525
|
function createSnippetsClient(options) {
|
|
10565
|
-
const link = new
|
|
10526
|
+
const link = new OpenAPILink19(snippetsContract, {
|
|
10566
10527
|
url: `${options.baseUrl}/snippets`,
|
|
10567
10528
|
headers: () => ({
|
|
10568
10529
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10570,63 +10531,63 @@ function createSnippetsClient(options) {
|
|
|
10570
10531
|
}),
|
|
10571
10532
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10572
10533
|
});
|
|
10573
|
-
return
|
|
10534
|
+
return createORPCClient19(link);
|
|
10574
10535
|
}
|
|
10575
10536
|
|
|
10576
10537
|
// src/orpc-client/templates/client.ts
|
|
10577
|
-
import { createORPCClient as
|
|
10578
|
-
import { OpenAPILink as
|
|
10538
|
+
import { createORPCClient as createORPCClient20 } from "@orpc/client";
|
|
10539
|
+
import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
|
|
10579
10540
|
|
|
10580
10541
|
// src/orpc-client/templates/contract.ts
|
|
10581
|
-
import { oc as
|
|
10582
|
-
import * as
|
|
10583
|
-
var SnippetRegistryEntrySchema =
|
|
10542
|
+
import { oc as oc18 } from "@orpc/contract";
|
|
10543
|
+
import * as z28 from "zod";
|
|
10544
|
+
var SnippetRegistryEntrySchema = z28.object({
|
|
10584
10545
|
sdk: SdkSchema,
|
|
10585
|
-
endpointId:
|
|
10586
|
-
path:
|
|
10546
|
+
endpointId: z28.object({
|
|
10547
|
+
path: z28.string(),
|
|
10587
10548
|
method: HttpMethodSchema,
|
|
10588
|
-
identifierOverride:
|
|
10549
|
+
identifierOverride: z28.string().nullish()
|
|
10589
10550
|
}),
|
|
10590
|
-
snippetTemplate:
|
|
10591
|
-
type:
|
|
10592
|
-
functionInvocation:
|
|
10593
|
-
clientInstantiation:
|
|
10551
|
+
snippetTemplate: z28.object({
|
|
10552
|
+
type: z28.literal("v1"),
|
|
10553
|
+
functionInvocation: z28.unknown(),
|
|
10554
|
+
clientInstantiation: z28.string()
|
|
10594
10555
|
}),
|
|
10595
|
-
additionalTemplates:
|
|
10556
|
+
additionalTemplates: z28.record(z28.string(), z28.unknown()).nullish()
|
|
10596
10557
|
});
|
|
10597
|
-
var RegisterInputSchema =
|
|
10598
|
-
orgId:
|
|
10599
|
-
apiId:
|
|
10600
|
-
apiDefinitionId:
|
|
10558
|
+
var RegisterInputSchema = z28.object({
|
|
10559
|
+
orgId: z28.string(),
|
|
10560
|
+
apiId: z28.string(),
|
|
10561
|
+
apiDefinitionId: z28.string(),
|
|
10601
10562
|
snippet: SnippetRegistryEntrySchema
|
|
10602
10563
|
});
|
|
10603
|
-
var RegisterBatchInputSchema =
|
|
10604
|
-
orgId:
|
|
10605
|
-
apiId:
|
|
10606
|
-
apiDefinitionId:
|
|
10607
|
-
snippets:
|
|
10564
|
+
var RegisterBatchInputSchema = z28.object({
|
|
10565
|
+
orgId: z28.string(),
|
|
10566
|
+
apiId: z28.string(),
|
|
10567
|
+
apiDefinitionId: z28.string(),
|
|
10568
|
+
snippets: z28.array(SnippetRegistryEntrySchema)
|
|
10608
10569
|
});
|
|
10609
|
-
var GetInputSchema =
|
|
10610
|
-
orgId:
|
|
10611
|
-
apiId:
|
|
10570
|
+
var GetInputSchema = z28.object({
|
|
10571
|
+
orgId: z28.string(),
|
|
10572
|
+
apiId: z28.string(),
|
|
10612
10573
|
sdk: SdkSchema,
|
|
10613
|
-
endpointId:
|
|
10614
|
-
path:
|
|
10574
|
+
endpointId: z28.object({
|
|
10575
|
+
path: z28.string(),
|
|
10615
10576
|
method: HttpMethodSchema,
|
|
10616
|
-
identifierOverride:
|
|
10577
|
+
identifierOverride: z28.string().nullish()
|
|
10617
10578
|
})
|
|
10618
10579
|
});
|
|
10619
|
-
var EndpointSnippetTemplateSchema =
|
|
10580
|
+
var EndpointSnippetTemplateSchema = z28.record(z28.string(), z28.unknown());
|
|
10620
10581
|
var templatesContract = {
|
|
10621
|
-
register:
|
|
10622
|
-
registerBatch:
|
|
10623
|
-
get:
|
|
10582
|
+
register: oc18.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
10583
|
+
registerBatch: oc18.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
10584
|
+
get: oc18.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
10624
10585
|
};
|
|
10625
10586
|
|
|
10626
10587
|
// src/orpc-client/templates/client.ts
|
|
10627
10588
|
function createTemplatesClient(options) {
|
|
10628
10589
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
10629
|
-
const link = new
|
|
10590
|
+
const link = new OpenAPILink20(templatesContract, {
|
|
10630
10591
|
url: `${baseUrl}/snippet-template`,
|
|
10631
10592
|
headers: () => ({
|
|
10632
10593
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10634,36 +10595,36 @@ function createTemplatesClient(options) {
|
|
|
10634
10595
|
}),
|
|
10635
10596
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10636
10597
|
});
|
|
10637
|
-
return
|
|
10598
|
+
return createORPCClient20(link);
|
|
10638
10599
|
}
|
|
10639
10600
|
|
|
10640
10601
|
// src/orpc-client/tokens/client.ts
|
|
10641
|
-
import { createORPCClient as
|
|
10642
|
-
import { OpenAPILink as
|
|
10602
|
+
import { createORPCClient as createORPCClient21 } from "@orpc/client";
|
|
10603
|
+
import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
|
|
10643
10604
|
|
|
10644
10605
|
// src/orpc-client/tokens/contract.ts
|
|
10645
|
-
import { oc as
|
|
10646
|
-
import * as
|
|
10647
|
-
var GenerateTokenInputSchema =
|
|
10648
|
-
orgId:
|
|
10649
|
-
scope:
|
|
10606
|
+
import { oc as oc19 } from "@orpc/contract";
|
|
10607
|
+
import * as z29 from "zod";
|
|
10608
|
+
var GenerateTokenInputSchema = z29.object({
|
|
10609
|
+
orgId: z29.string(),
|
|
10610
|
+
scope: z29.string()
|
|
10650
10611
|
});
|
|
10651
|
-
var RevokeTokenInputSchema =
|
|
10652
|
-
orgId:
|
|
10653
|
-
tokenId:
|
|
10612
|
+
var RevokeTokenInputSchema = z29.object({
|
|
10613
|
+
orgId: z29.string(),
|
|
10614
|
+
tokenId: z29.string()
|
|
10654
10615
|
});
|
|
10655
|
-
var GenerateTokenOutputSchema =
|
|
10656
|
-
token:
|
|
10657
|
-
id:
|
|
10616
|
+
var GenerateTokenOutputSchema = z29.object({
|
|
10617
|
+
token: z29.string(),
|
|
10618
|
+
id: z29.string()
|
|
10658
10619
|
});
|
|
10659
10620
|
var tokensContract = {
|
|
10660
|
-
generate:
|
|
10661
|
-
revoke:
|
|
10621
|
+
generate: oc19.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
10622
|
+
revoke: oc19.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
10662
10623
|
};
|
|
10663
10624
|
|
|
10664
10625
|
// src/orpc-client/tokens/client.ts
|
|
10665
10626
|
function createTokensClient(options) {
|
|
10666
|
-
const link = new
|
|
10627
|
+
const link = new OpenAPILink21(tokensContract, {
|
|
10667
10628
|
url: `${options.baseUrl}/tokens`,
|
|
10668
10629
|
headers: () => ({
|
|
10669
10630
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -10671,7 +10632,7 @@ function createTokensClient(options) {
|
|
|
10671
10632
|
}),
|
|
10672
10633
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
10673
10634
|
});
|
|
10674
|
-
return
|
|
10635
|
+
return createORPCClient21(link);
|
|
10675
10636
|
}
|
|
10676
10637
|
|
|
10677
10638
|
// src/orpc-client/client.ts
|
|
@@ -10929,85 +10890,85 @@ __export(APIV1Db_exports, {
|
|
|
10929
10890
|
});
|
|
10930
10891
|
|
|
10931
10892
|
// src/orpc-client/api/contract-db.ts
|
|
10932
|
-
import * as
|
|
10933
|
-
var EndpointSnippetTemplatesSchema =
|
|
10934
|
-
typescript:
|
|
10935
|
-
python:
|
|
10893
|
+
import * as z30 from "zod";
|
|
10894
|
+
var EndpointSnippetTemplatesSchema = z30.object({
|
|
10895
|
+
typescript: z30.unknown().nullish(),
|
|
10896
|
+
python: z30.unknown().nullish()
|
|
10936
10897
|
});
|
|
10937
|
-
var DbHttpRequestSchema =
|
|
10938
|
-
description:
|
|
10939
|
-
contentType:
|
|
10898
|
+
var DbHttpRequestSchema = z30.object({
|
|
10899
|
+
description: z30.string().nullish(),
|
|
10900
|
+
contentType: z30.string().nullish(),
|
|
10940
10901
|
type: RegisterHttpRequestBodyShapeSchema
|
|
10941
10902
|
});
|
|
10942
|
-
var DbHttpRequestsV2Schema =
|
|
10943
|
-
requests:
|
|
10903
|
+
var DbHttpRequestsV2Schema = z30.object({
|
|
10904
|
+
requests: z30.array(DbHttpRequestSchema).nullish()
|
|
10944
10905
|
});
|
|
10945
|
-
var DbEndpointDefinitionSchema =
|
|
10946
|
-
description:
|
|
10947
|
-
subtitle:
|
|
10906
|
+
var DbEndpointDefinitionSchema = z30.object({
|
|
10907
|
+
description: z30.string().nullish(),
|
|
10908
|
+
subtitle: z30.string().nullish(),
|
|
10948
10909
|
availability: AvailabilitySchema.nullish(),
|
|
10949
|
-
authed:
|
|
10950
|
-
authV2:
|
|
10951
|
-
multiAuth:
|
|
10910
|
+
authed: z30.boolean().nullish(),
|
|
10911
|
+
authV2: z30.array(AuthSchemeIdSchema).nullish(),
|
|
10912
|
+
multiAuth: z30.array(MultipleAuthTypeSchema).nullish(),
|
|
10952
10913
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
10953
|
-
environments:
|
|
10914
|
+
environments: z30.array(EnvironmentSchema).nullish(),
|
|
10954
10915
|
method: HttpMethodSchema,
|
|
10955
10916
|
id: EndpointIdSchema,
|
|
10956
|
-
originalEndpointId:
|
|
10957
|
-
urlSlug:
|
|
10958
|
-
migratedFromUrlSlugs:
|
|
10959
|
-
name:
|
|
10917
|
+
originalEndpointId: z30.string().nullish(),
|
|
10918
|
+
urlSlug: z30.string(),
|
|
10919
|
+
migratedFromUrlSlugs: z30.array(z30.string()).nullish(),
|
|
10920
|
+
name: z30.string().nullish(),
|
|
10960
10921
|
path: EndpointPathSchema,
|
|
10961
|
-
queryParameters:
|
|
10962
|
-
headers:
|
|
10963
|
-
responseHeaders:
|
|
10922
|
+
queryParameters: z30.array(QueryParameterSchema),
|
|
10923
|
+
headers: z30.array(HeaderSchema),
|
|
10924
|
+
responseHeaders: z30.array(HeaderSchema).nullish(),
|
|
10964
10925
|
request: DbHttpRequestSchema.nullish(),
|
|
10965
10926
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
10966
10927
|
response: RegisterHttpResponseSchema.nullish(),
|
|
10967
10928
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
10968
|
-
errors:
|
|
10969
|
-
errorsV2:
|
|
10970
|
-
examples:
|
|
10929
|
+
errors: z30.array(ErrorDeclarationSchema).nullish(),
|
|
10930
|
+
errorsV2: z30.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
10931
|
+
examples: z30.array(RegisterExampleEndpointCallSchema),
|
|
10971
10932
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
10972
10933
|
protocol: ProtocolSchema.nullish(),
|
|
10973
|
-
includeInApiExplorer:
|
|
10974
|
-
});
|
|
10975
|
-
var DbApiDefinitionPackageSchema =
|
|
10976
|
-
endpoints:
|
|
10977
|
-
websockets:
|
|
10978
|
-
webhooks:
|
|
10979
|
-
graphqlOperations:
|
|
10980
|
-
types:
|
|
10981
|
-
subpackages:
|
|
10934
|
+
includeInApiExplorer: z30.boolean().nullish()
|
|
10935
|
+
});
|
|
10936
|
+
var DbApiDefinitionPackageSchema = z30.object({
|
|
10937
|
+
endpoints: z30.array(DbEndpointDefinitionSchema),
|
|
10938
|
+
websockets: z30.array(RegisterWebSocketChannelSchema).nullish(),
|
|
10939
|
+
webhooks: z30.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
10940
|
+
graphqlOperations: z30.array(GraphQlOperationSchema).nullish(),
|
|
10941
|
+
types: z30.array(TypeIdSchema),
|
|
10942
|
+
subpackages: z30.array(SubpackageIdSchema),
|
|
10982
10943
|
pointsTo: SubpackageIdSchema.nullish()
|
|
10983
10944
|
});
|
|
10984
|
-
var DbApiDefinitionSubpackageSchema =
|
|
10945
|
+
var DbApiDefinitionSubpackageSchema = z30.object({
|
|
10985
10946
|
...DbApiDefinitionPackageSchema.shape,
|
|
10986
|
-
description:
|
|
10947
|
+
description: z30.string().nullish(),
|
|
10987
10948
|
parent: SubpackageIdSchema.nullish(),
|
|
10988
10949
|
subpackageId: SubpackageIdSchema,
|
|
10989
|
-
name:
|
|
10990
|
-
urlSlug:
|
|
10991
|
-
displayName:
|
|
10950
|
+
name: z30.string(),
|
|
10951
|
+
urlSlug: z30.string(),
|
|
10952
|
+
displayName: z30.string().nullish()
|
|
10992
10953
|
});
|
|
10993
|
-
var DbApiDefinitionSchema =
|
|
10954
|
+
var DbApiDefinitionSchema = z30.object({
|
|
10994
10955
|
id: ApiDefinitionIdSchema,
|
|
10995
|
-
apiName:
|
|
10996
|
-
specVersion:
|
|
10956
|
+
apiName: z30.string().nullish(),
|
|
10957
|
+
specVersion: z30.string().nullish(),
|
|
10997
10958
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
10998
|
-
types:
|
|
10999
|
-
subpackages:
|
|
10959
|
+
types: z30.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
10960
|
+
subpackages: z30.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
11000
10961
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
11001
10962
|
auth: ApiAuthSchema.nullish(),
|
|
11002
|
-
authSchemes:
|
|
11003
|
-
hasMultipleBaseUrls:
|
|
10963
|
+
authSchemes: z30.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
10964
|
+
hasMultipleBaseUrls: z30.boolean(),
|
|
11004
10965
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
11005
|
-
globalHeaders:
|
|
10966
|
+
globalHeaders: z30.array(HeaderSchema).nullish()
|
|
11006
10967
|
});
|
|
11007
|
-
var DbEndpointWithContextSchema =
|
|
10968
|
+
var DbEndpointWithContextSchema = z30.object({
|
|
11008
10969
|
endpoint: DbEndpointDefinitionSchema,
|
|
11009
|
-
authSchemes:
|
|
11010
|
-
globalHeaders:
|
|
10970
|
+
authSchemes: z30.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
10971
|
+
globalHeaders: z30.array(HeaderSchema).nullish()
|
|
11011
10972
|
});
|
|
11012
10973
|
|
|
11013
10974
|
// src/client/APIV1Read.ts
|
|
@@ -11583,15 +11544,15 @@ __export(DocsV1Db_exports, {
|
|
|
11583
11544
|
});
|
|
11584
11545
|
|
|
11585
11546
|
// src/client/docs-types/db.ts
|
|
11586
|
-
import * as
|
|
11547
|
+
import * as z32 from "zod";
|
|
11587
11548
|
|
|
11588
11549
|
// src/client/docs-types/db-docsRead.ts
|
|
11589
|
-
import * as
|
|
11590
|
-
var BackgroundSchema2 =
|
|
11591
|
-
|
|
11592
|
-
|
|
11550
|
+
import * as z31 from "zod";
|
|
11551
|
+
var BackgroundSchema2 = z31.discriminatedUnion("type", [
|
|
11552
|
+
z31.object({ type: z31.literal("solid"), ...RgbaColorSchema.shape }),
|
|
11553
|
+
z31.object({ type: z31.literal("gradient") })
|
|
11593
11554
|
]);
|
|
11594
|
-
var ThemeConfigSchema3 =
|
|
11555
|
+
var ThemeConfigSchema3 = z31.object({
|
|
11595
11556
|
logo: FileIdSchema2.optional(),
|
|
11596
11557
|
backgroundImage: FileIdSchema2.optional(),
|
|
11597
11558
|
accentPrimary: RgbaColorSchema,
|
|
@@ -11613,174 +11574,174 @@ var ThemeConfigSchema3 = z32.object({
|
|
|
11613
11574
|
accent11: RgbaColorSchema.optional(),
|
|
11614
11575
|
accent12: RgbaColorSchema.optional()
|
|
11615
11576
|
});
|
|
11616
|
-
var DarkAndLightModeConfigSchema3 =
|
|
11577
|
+
var DarkAndLightModeConfigSchema3 = z31.object({
|
|
11617
11578
|
dark: ThemeConfigSchema3,
|
|
11618
11579
|
light: ThemeConfigSchema3
|
|
11619
11580
|
});
|
|
11620
|
-
var ColorsConfigV3Schema3 =
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11581
|
+
var ColorsConfigV3Schema3 = z31.discriminatedUnion("type", [
|
|
11582
|
+
z31.object({ type: z31.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
11583
|
+
z31.object({ type: z31.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
11584
|
+
z31.object({ type: z31.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
11624
11585
|
]);
|
|
11625
11586
|
|
|
11626
11587
|
// src/client/docs-types/db.ts
|
|
11627
|
-
var DbFileInfoSchema =
|
|
11628
|
-
s3Key:
|
|
11629
|
-
});
|
|
11630
|
-
var DbImageFileInfoSchema =
|
|
11631
|
-
s3Key:
|
|
11632
|
-
width:
|
|
11633
|
-
height:
|
|
11634
|
-
blurDataUrl:
|
|
11635
|
-
alt:
|
|
11636
|
-
});
|
|
11637
|
-
var DbFileInfoV2Schema =
|
|
11638
|
-
|
|
11639
|
-
|
|
11588
|
+
var DbFileInfoSchema = z32.object({
|
|
11589
|
+
s3Key: z32.string()
|
|
11590
|
+
});
|
|
11591
|
+
var DbImageFileInfoSchema = z32.object({
|
|
11592
|
+
s3Key: z32.string(),
|
|
11593
|
+
width: z32.number(),
|
|
11594
|
+
height: z32.number(),
|
|
11595
|
+
blurDataUrl: z32.string().optional(),
|
|
11596
|
+
alt: z32.string().optional()
|
|
11597
|
+
});
|
|
11598
|
+
var DbFileInfoV2Schema = z32.discriminatedUnion("type", [
|
|
11599
|
+
z32.object({ type: z32.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
11600
|
+
z32.object({ type: z32.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
11640
11601
|
]);
|
|
11641
|
-
var NavigationTabGroupSchema3 =
|
|
11642
|
-
() =>
|
|
11643
|
-
title:
|
|
11644
|
-
icon:
|
|
11645
|
-
items:
|
|
11646
|
-
urlSlug:
|
|
11647
|
-
skipUrlSlug:
|
|
11602
|
+
var NavigationTabGroupSchema3 = z32.lazy(
|
|
11603
|
+
() => z32.object({
|
|
11604
|
+
title: z32.string(),
|
|
11605
|
+
icon: z32.string().optional(),
|
|
11606
|
+
items: z32.array(NavigationItemSchema3),
|
|
11607
|
+
urlSlug: z32.string(),
|
|
11608
|
+
skipUrlSlug: z32.boolean().optional()
|
|
11648
11609
|
})
|
|
11649
11610
|
);
|
|
11650
|
-
var NavigationTabSchema3 =
|
|
11651
|
-
var NavigationTabV2Schema2 =
|
|
11652
|
-
() =>
|
|
11653
|
-
|
|
11654
|
-
type:
|
|
11655
|
-
title:
|
|
11656
|
-
icon:
|
|
11657
|
-
items:
|
|
11658
|
-
urlSlug:
|
|
11659
|
-
skipUrlSlug:
|
|
11611
|
+
var NavigationTabSchema3 = z32.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
11612
|
+
var NavigationTabV2Schema2 = z32.lazy(
|
|
11613
|
+
() => z32.discriminatedUnion("type", [
|
|
11614
|
+
z32.object({
|
|
11615
|
+
type: z32.literal("group"),
|
|
11616
|
+
title: z32.string(),
|
|
11617
|
+
icon: z32.string().optional(),
|
|
11618
|
+
items: z32.array(NavigationItemSchema3),
|
|
11619
|
+
urlSlug: z32.string(),
|
|
11620
|
+
skipUrlSlug: z32.boolean().optional()
|
|
11660
11621
|
}),
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11622
|
+
z32.object({ type: z32.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
11623
|
+
z32.object({ type: z32.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
11624
|
+
z32.object({ type: z32.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
11664
11625
|
])
|
|
11665
11626
|
);
|
|
11666
|
-
var ApiSectionSchema3 =
|
|
11667
|
-
title:
|
|
11668
|
-
icon:
|
|
11627
|
+
var ApiSectionSchema3 = z32.object({
|
|
11628
|
+
title: z32.string(),
|
|
11629
|
+
icon: z32.string().optional(),
|
|
11669
11630
|
api: ApiDefinitionIdSchema2,
|
|
11670
|
-
urlSlug:
|
|
11671
|
-
skipUrlSlug:
|
|
11631
|
+
urlSlug: z32.string(),
|
|
11632
|
+
skipUrlSlug: z32.boolean(),
|
|
11672
11633
|
artifacts: ApiArtifactsSchema.optional(),
|
|
11673
|
-
showErrors:
|
|
11634
|
+
showErrors: z32.boolean().optional(),
|
|
11674
11635
|
changelog: ChangelogSectionSchema.optional(),
|
|
11675
|
-
hidden:
|
|
11676
|
-
fullSlug:
|
|
11636
|
+
hidden: z32.boolean().optional(),
|
|
11637
|
+
fullSlug: z32.array(z32.string()).optional(),
|
|
11677
11638
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
11678
|
-
longScrolling:
|
|
11679
|
-
flattened:
|
|
11680
|
-
});
|
|
11681
|
-
var DocsSectionSchema3 =
|
|
11682
|
-
() =>
|
|
11683
|
-
title:
|
|
11684
|
-
icon:
|
|
11685
|
-
items:
|
|
11686
|
-
urlSlug:
|
|
11687
|
-
skipUrlSlug:
|
|
11688
|
-
collapsed:
|
|
11689
|
-
collapsible:
|
|
11690
|
-
collapsedByDefault:
|
|
11691
|
-
hidden:
|
|
11692
|
-
fullSlug:
|
|
11639
|
+
longScrolling: z32.boolean().optional(),
|
|
11640
|
+
flattened: z32.boolean().optional()
|
|
11641
|
+
});
|
|
11642
|
+
var DocsSectionSchema3 = z32.lazy(
|
|
11643
|
+
() => z32.object({
|
|
11644
|
+
title: z32.string(),
|
|
11645
|
+
icon: z32.string().optional(),
|
|
11646
|
+
items: z32.array(NavigationItemSchema3),
|
|
11647
|
+
urlSlug: z32.string(),
|
|
11648
|
+
skipUrlSlug: z32.boolean(),
|
|
11649
|
+
collapsed: z32.union([z32.boolean(), z32.literal("open-by-default")]),
|
|
11650
|
+
collapsible: z32.boolean().optional(),
|
|
11651
|
+
collapsedByDefault: z32.boolean().optional(),
|
|
11652
|
+
hidden: z32.boolean().optional(),
|
|
11653
|
+
fullSlug: z32.array(z32.string()).optional(),
|
|
11693
11654
|
overviewPageId: PageIdSchema2.optional()
|
|
11694
11655
|
})
|
|
11695
11656
|
);
|
|
11696
|
-
var NavigationItemSchema3 =
|
|
11697
|
-
() =>
|
|
11698
|
-
|
|
11699
|
-
type:
|
|
11657
|
+
var NavigationItemSchema3 = z32.lazy(
|
|
11658
|
+
() => z32.discriminatedUnion("type", [
|
|
11659
|
+
z32.object({
|
|
11660
|
+
type: z32.literal("page"),
|
|
11700
11661
|
...PageMetadataSchema.shape
|
|
11701
11662
|
}),
|
|
11702
|
-
|
|
11703
|
-
type:
|
|
11663
|
+
z32.object({
|
|
11664
|
+
type: z32.literal("api"),
|
|
11704
11665
|
...ApiSectionSchema3.shape
|
|
11705
11666
|
}),
|
|
11706
|
-
|
|
11707
|
-
type:
|
|
11667
|
+
z32.object({
|
|
11668
|
+
type: z32.literal("apiV2"),
|
|
11708
11669
|
...ApiSectionV2Schema.shape
|
|
11709
11670
|
}),
|
|
11710
|
-
|
|
11711
|
-
type:
|
|
11712
|
-
title:
|
|
11713
|
-
icon:
|
|
11714
|
-
items:
|
|
11715
|
-
urlSlug:
|
|
11716
|
-
skipUrlSlug:
|
|
11717
|
-
collapsed:
|
|
11718
|
-
collapsible:
|
|
11719
|
-
collapsedByDefault:
|
|
11720
|
-
hidden:
|
|
11721
|
-
fullSlug:
|
|
11671
|
+
z32.object({
|
|
11672
|
+
type: z32.literal("section"),
|
|
11673
|
+
title: z32.string(),
|
|
11674
|
+
icon: z32.string().optional(),
|
|
11675
|
+
items: z32.array(NavigationItemSchema3),
|
|
11676
|
+
urlSlug: z32.string(),
|
|
11677
|
+
skipUrlSlug: z32.boolean(),
|
|
11678
|
+
collapsed: z32.union([z32.boolean(), z32.literal("open-by-default")]),
|
|
11679
|
+
collapsible: z32.boolean().optional(),
|
|
11680
|
+
collapsedByDefault: z32.boolean().optional(),
|
|
11681
|
+
hidden: z32.boolean().optional(),
|
|
11682
|
+
fullSlug: z32.array(z32.string()).optional(),
|
|
11722
11683
|
overviewPageId: PageIdSchema2.optional()
|
|
11723
11684
|
}),
|
|
11724
|
-
|
|
11725
|
-
type:
|
|
11685
|
+
z32.object({
|
|
11686
|
+
type: z32.literal("link"),
|
|
11726
11687
|
...LinkMetadataSchema.shape
|
|
11727
11688
|
}),
|
|
11728
|
-
|
|
11729
|
-
type:
|
|
11689
|
+
z32.object({
|
|
11690
|
+
type: z32.literal("changelog"),
|
|
11730
11691
|
...ChangelogSectionSchema.shape
|
|
11731
11692
|
}),
|
|
11732
|
-
|
|
11733
|
-
type:
|
|
11693
|
+
z32.object({
|
|
11694
|
+
type: z32.literal("changelogV3"),
|
|
11734
11695
|
...ChangelogSectionV3Schema.shape
|
|
11735
11696
|
})
|
|
11736
11697
|
])
|
|
11737
11698
|
);
|
|
11738
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
11739
|
-
tabs:
|
|
11740
|
-
tabsV2:
|
|
11699
|
+
var UnversionedTabbedNavigationConfigSchema3 = z32.object({
|
|
11700
|
+
tabs: z32.array(NavigationTabSchema3).optional(),
|
|
11701
|
+
tabsV2: z32.array(NavigationTabV2Schema2).optional(),
|
|
11741
11702
|
landingPage: PageMetadataSchema.optional()
|
|
11742
11703
|
});
|
|
11743
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
11744
|
-
items:
|
|
11704
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z32.object({
|
|
11705
|
+
items: z32.array(NavigationItemSchema3),
|
|
11745
11706
|
landingPage: PageMetadataSchema.optional()
|
|
11746
11707
|
});
|
|
11747
|
-
var UnversionedNavigationConfigSchema3 =
|
|
11708
|
+
var UnversionedNavigationConfigSchema3 = z32.union([
|
|
11748
11709
|
UnversionedTabbedNavigationConfigSchema3,
|
|
11749
11710
|
UnversionedUntabbedNavigationConfigSchema3
|
|
11750
11711
|
]);
|
|
11751
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
11712
|
+
var VersionedNavigationConfigDataSchema3 = z32.object({
|
|
11752
11713
|
version: VersionIdSchema2,
|
|
11753
|
-
urlSlug:
|
|
11714
|
+
urlSlug: z32.string().optional(),
|
|
11754
11715
|
availability: AvailabilitySchema2.optional(),
|
|
11755
11716
|
config: UnversionedNavigationConfigSchema3
|
|
11756
11717
|
});
|
|
11757
|
-
var VersionedNavigationConfigSchema3 =
|
|
11758
|
-
versions:
|
|
11718
|
+
var VersionedNavigationConfigSchema3 = z32.object({
|
|
11719
|
+
versions: z32.array(VersionedNavigationConfigDataSchema3)
|
|
11759
11720
|
});
|
|
11760
|
-
var NavigationConfigSchema3 =
|
|
11761
|
-
var DocsDbConfigSchema =
|
|
11762
|
-
title:
|
|
11721
|
+
var NavigationConfigSchema3 = z32.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
11722
|
+
var DocsDbConfigSchema = z32.object({
|
|
11723
|
+
title: z32.string().optional(),
|
|
11763
11724
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
11764
|
-
languages:
|
|
11725
|
+
languages: z32.array(LanguageSchema).optional(),
|
|
11765
11726
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
11766
11727
|
announcement: AnnouncementConfigSchema.optional(),
|
|
11767
11728
|
navigation: NavigationConfigSchema3.optional(),
|
|
11768
|
-
root:
|
|
11769
|
-
navbarLinks:
|
|
11770
|
-
footerLinks:
|
|
11771
|
-
hideNavLinks:
|
|
11729
|
+
root: z32.custom().optional(),
|
|
11730
|
+
navbarLinks: z32.array(NavbarLinkSchema).optional(),
|
|
11731
|
+
footerLinks: z32.array(FooterLinkSchema).optional(),
|
|
11732
|
+
hideNavLinks: z32.boolean().optional(),
|
|
11772
11733
|
logoHeight: HeightSchema.optional(),
|
|
11773
11734
|
logoHref: UrlSchema2.optional(),
|
|
11774
|
-
logoRightText:
|
|
11735
|
+
logoRightText: z32.string().optional(),
|
|
11775
11736
|
favicon: FileIdSchema2.optional(),
|
|
11776
11737
|
agents: AgentsConfigSchema.optional(),
|
|
11777
11738
|
metadata: MetadataConfigSchema.optional(),
|
|
11778
|
-
redirects:
|
|
11739
|
+
redirects: z32.array(RedirectConfigSchema).optional(),
|
|
11779
11740
|
backgroundImage: FileIdSchema2.optional(),
|
|
11780
11741
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
11781
11742
|
layout: DocsLayoutConfigSchema.optional(),
|
|
11782
11743
|
theme: DocsThemeConfigSchema.optional(),
|
|
11783
|
-
globalTheme:
|
|
11744
|
+
globalTheme: z32.string().optional(),
|
|
11784
11745
|
settings: DocsSettingsConfigSchema.optional(),
|
|
11785
11746
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
11786
11747
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -11790,40 +11751,40 @@ var DocsDbConfigSchema = z33.object({
|
|
|
11790
11751
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
11791
11752
|
pageActions: PageActionsConfigSchema.optional(),
|
|
11792
11753
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
11793
|
-
header:
|
|
11794
|
-
footer:
|
|
11754
|
+
header: z32.string().optional(),
|
|
11755
|
+
footer: z32.string().optional(),
|
|
11795
11756
|
logo: FileIdSchema2.optional(),
|
|
11796
11757
|
logoV2: ThemedFileIdSchema.optional(),
|
|
11797
11758
|
colors: ColorsConfigSchema.optional(),
|
|
11798
11759
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
11799
11760
|
typography: DocsTypographyConfigSchema.optional()
|
|
11800
11761
|
});
|
|
11801
|
-
var DocsDefinitionDbV1Schema =
|
|
11802
|
-
pages:
|
|
11803
|
-
referencedApis:
|
|
11804
|
-
files:
|
|
11762
|
+
var DocsDefinitionDbV1Schema = z32.object({
|
|
11763
|
+
pages: z32.record(PageIdSchema2, PageContentSchema),
|
|
11764
|
+
referencedApis: z32.array(ApiDefinitionIdSchema2),
|
|
11765
|
+
files: z32.record(FileIdSchema2, DbFileInfoSchema),
|
|
11805
11766
|
config: DocsDbConfigSchema,
|
|
11806
11767
|
colors: ColorsConfigSchema.optional()
|
|
11807
11768
|
});
|
|
11808
|
-
var DocsDefinitionDbV2Schema =
|
|
11809
|
-
pages:
|
|
11810
|
-
referencedApis:
|
|
11811
|
-
files:
|
|
11769
|
+
var DocsDefinitionDbV2Schema = z32.object({
|
|
11770
|
+
pages: z32.record(PageIdSchema2, PageContentSchema),
|
|
11771
|
+
referencedApis: z32.array(ApiDefinitionIdSchema2),
|
|
11772
|
+
files: z32.record(FileIdSchema2, DbFileInfoSchema),
|
|
11812
11773
|
config: DocsDbConfigSchema,
|
|
11813
11774
|
colors: ColorsConfigSchema.optional(),
|
|
11814
11775
|
typography: DocsTypographyConfigSchema.optional()
|
|
11815
11776
|
});
|
|
11816
|
-
var DocsDefinitionDbV3Schema =
|
|
11817
|
-
pages:
|
|
11818
|
-
referencedApis:
|
|
11819
|
-
files:
|
|
11777
|
+
var DocsDefinitionDbV3Schema = z32.object({
|
|
11778
|
+
pages: z32.record(PageIdSchema2, PageContentSchema),
|
|
11779
|
+
referencedApis: z32.array(ApiDefinitionIdSchema2),
|
|
11780
|
+
files: z32.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
11820
11781
|
config: DocsDbConfigSchema,
|
|
11821
|
-
jsFiles:
|
|
11782
|
+
jsFiles: z32.record(z32.string(), z32.string()).optional()
|
|
11822
11783
|
});
|
|
11823
|
-
var DocsDefinitionDbSchema =
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11784
|
+
var DocsDefinitionDbSchema = z32.discriminatedUnion("type", [
|
|
11785
|
+
z32.object({ type: z32.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
11786
|
+
z32.object({ type: z32.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
11787
|
+
z32.object({ type: z32.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
11827
11788
|
]);
|
|
11828
11789
|
|
|
11829
11790
|
// src/client/DocsV1Read.ts
|
|
@@ -12597,94 +12558,94 @@ __export(DocsLatest_exports, {
|
|
|
12597
12558
|
});
|
|
12598
12559
|
|
|
12599
12560
|
// src/client/docs-types/latest.ts
|
|
12600
|
-
import * as
|
|
12601
|
-
var StringOrStringListSchema =
|
|
12602
|
-
var TwitterCardSettingSchema2 =
|
|
12603
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
12604
|
-
"@type":
|
|
12605
|
-
position:
|
|
12606
|
-
name:
|
|
12607
|
-
item:
|
|
12608
|
-
});
|
|
12609
|
-
var JsonLdBreadcrumbListSchema =
|
|
12610
|
-
"@context":
|
|
12611
|
-
"@type":
|
|
12612
|
-
itemListElement:
|
|
12613
|
-
});
|
|
12614
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
12561
|
+
import * as z33 from "zod";
|
|
12562
|
+
var StringOrStringListSchema = z33.union([z33.string(), z33.array(z33.string())]);
|
|
12563
|
+
var TwitterCardSettingSchema2 = z33.enum(["summary", "summary_large_image", "app", "player"]);
|
|
12564
|
+
var JsonLdBreadcrumbListElementSchema = z33.object({
|
|
12565
|
+
"@type": z33.literal("ListItem"),
|
|
12566
|
+
position: z33.number(),
|
|
12567
|
+
name: z33.string(),
|
|
12568
|
+
item: z33.string().optional()
|
|
12569
|
+
});
|
|
12570
|
+
var JsonLdBreadcrumbListSchema = z33.object({
|
|
12571
|
+
"@context": z33.literal("https://schema.org"),
|
|
12572
|
+
"@type": z33.literal("BreadcrumbList"),
|
|
12573
|
+
itemListElement: z33.array(JsonLdBreadcrumbListElementSchema)
|
|
12574
|
+
});
|
|
12575
|
+
var WithJsonLdBreadcrumbsSchema = z33.object({
|
|
12615
12576
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
12616
12577
|
});
|
|
12617
|
-
var WithMetadataConfigSchema =
|
|
12618
|
-
"og:site_name":
|
|
12619
|
-
"og:title":
|
|
12620
|
-
"og:description":
|
|
12621
|
-
"og:url":
|
|
12578
|
+
var WithMetadataConfigSchema = z33.object({
|
|
12579
|
+
"og:site_name": z33.string().optional(),
|
|
12580
|
+
"og:title": z33.string().optional(),
|
|
12581
|
+
"og:description": z33.string().optional(),
|
|
12582
|
+
"og:url": z33.string().optional(),
|
|
12622
12583
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
12623
|
-
"og:image:width":
|
|
12624
|
-
"og:image:height":
|
|
12625
|
-
"og:locale":
|
|
12584
|
+
"og:image:width": z33.number().optional(),
|
|
12585
|
+
"og:image:height": z33.number().optional(),
|
|
12586
|
+
"og:locale": z33.string().optional(),
|
|
12626
12587
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
12627
|
-
"twitter:title":
|
|
12628
|
-
"twitter:description":
|
|
12629
|
-
"twitter:handle":
|
|
12588
|
+
"twitter:title": z33.string().optional(),
|
|
12589
|
+
"twitter:description": z33.string().optional(),
|
|
12590
|
+
"twitter:handle": z33.string().optional(),
|
|
12630
12591
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
12631
|
-
"twitter:site":
|
|
12632
|
-
"twitter:url":
|
|
12592
|
+
"twitter:site": z33.string().optional(),
|
|
12593
|
+
"twitter:url": z33.string().optional(),
|
|
12633
12594
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
12634
12595
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
12635
|
-
"og:dynamic":
|
|
12596
|
+
"og:dynamic": z33.boolean().optional(),
|
|
12636
12597
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
12637
|
-
"og:dynamic:text-color":
|
|
12638
|
-
"og:dynamic:background-color":
|
|
12639
|
-
"og:dynamic:show-logo":
|
|
12640
|
-
"og:dynamic:show-section":
|
|
12641
|
-
"og:dynamic:show-description":
|
|
12642
|
-
"og:dynamic:show-url":
|
|
12643
|
-
"og:dynamic:show-gradient":
|
|
12644
|
-
noindex:
|
|
12645
|
-
nofollow:
|
|
12598
|
+
"og:dynamic:text-color": z33.string().optional(),
|
|
12599
|
+
"og:dynamic:background-color": z33.string().optional(),
|
|
12600
|
+
"og:dynamic:show-logo": z33.boolean().optional(),
|
|
12601
|
+
"og:dynamic:show-section": z33.boolean().optional(),
|
|
12602
|
+
"og:dynamic:show-description": z33.boolean().optional(),
|
|
12603
|
+
"og:dynamic:show-url": z33.boolean().optional(),
|
|
12604
|
+
"og:dynamic:show-gradient": z33.boolean().optional(),
|
|
12605
|
+
noindex: z33.boolean().optional(),
|
|
12606
|
+
nofollow: z33.boolean().optional(),
|
|
12646
12607
|
keywords: StringOrStringListSchema.optional()
|
|
12647
12608
|
});
|
|
12648
|
-
var LayoutSchema =
|
|
12649
|
-
var LogoConfigurationSchema =
|
|
12609
|
+
var LayoutSchema = z33.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
12610
|
+
var LogoConfigurationSchema = z33.object({
|
|
12650
12611
|
light: FileIdOrUrlSchema.optional(),
|
|
12651
12612
|
dark: FileIdOrUrlSchema.optional()
|
|
12652
12613
|
});
|
|
12653
|
-
var LogoSchema =
|
|
12654
|
-
var BreadcrumbItemSchema =
|
|
12655
|
-
title:
|
|
12656
|
-
pointsTo:
|
|
12614
|
+
var LogoSchema = z33.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
12615
|
+
var BreadcrumbItemSchema = z33.object({
|
|
12616
|
+
title: z33.string(),
|
|
12617
|
+
pointsTo: z33.string().optional()
|
|
12657
12618
|
});
|
|
12658
12619
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
12659
|
-
|
|
12620
|
+
z33.object({
|
|
12660
12621
|
layout: LayoutSchema.optional(),
|
|
12661
|
-
slug:
|
|
12662
|
-
title:
|
|
12663
|
-
headline:
|
|
12664
|
-
description:
|
|
12665
|
-
subtitle:
|
|
12622
|
+
slug: z33.string().optional(),
|
|
12623
|
+
title: z33.string().optional(),
|
|
12624
|
+
headline: z33.string().optional(),
|
|
12625
|
+
description: z33.string().optional(),
|
|
12626
|
+
subtitle: z33.string().optional(),
|
|
12666
12627
|
logo: LogoSchema.optional(),
|
|
12667
12628
|
image: FileIdOrUrlSchema.optional(),
|
|
12668
|
-
"edit-this-page-url":
|
|
12669
|
-
"hide-toc":
|
|
12670
|
-
"force-toc":
|
|
12671
|
-
"hide-nav-links":
|
|
12672
|
-
"max-toc-depth":
|
|
12673
|
-
"hide-feedback":
|
|
12674
|
-
"hide-page-actions":
|
|
12675
|
-
"no-image-zoom":
|
|
12676
|
-
breadcrumb:
|
|
12677
|
-
excerpt:
|
|
12678
|
-
"canonical-url":
|
|
12629
|
+
"edit-this-page-url": z33.string().optional(),
|
|
12630
|
+
"hide-toc": z33.boolean().optional(),
|
|
12631
|
+
"force-toc": z33.boolean().optional(),
|
|
12632
|
+
"hide-nav-links": z33.boolean().optional(),
|
|
12633
|
+
"max-toc-depth": z33.number().optional(),
|
|
12634
|
+
"hide-feedback": z33.boolean().optional(),
|
|
12635
|
+
"hide-page-actions": z33.boolean().optional(),
|
|
12636
|
+
"no-image-zoom": z33.boolean().optional(),
|
|
12637
|
+
breadcrumb: z33.array(BreadcrumbItemSchema).optional(),
|
|
12638
|
+
excerpt: z33.string().optional(),
|
|
12639
|
+
"canonical-url": z33.string().optional(),
|
|
12679
12640
|
tags: StringOrStringListSchema.optional(),
|
|
12680
|
-
"last-updated":
|
|
12641
|
+
"last-updated": z33.string().optional()
|
|
12681
12642
|
})
|
|
12682
12643
|
);
|
|
12683
|
-
var ResolvedMdxSchema =
|
|
12684
|
-
code:
|
|
12644
|
+
var ResolvedMdxSchema = z33.object({
|
|
12645
|
+
code: z33.string(),
|
|
12685
12646
|
frontmatter: FrontmatterSchema,
|
|
12686
|
-
scope:
|
|
12687
|
-
jsxRefs:
|
|
12647
|
+
scope: z33.record(z33.string(), z33.unknown()),
|
|
12648
|
+
jsxRefs: z33.array(z33.string()).optional()
|
|
12688
12649
|
});
|
|
12689
12650
|
|
|
12690
12651
|
// src/client/DocsV1Commons.ts
|
|
@@ -13124,9 +13085,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
13124
13085
|
}
|
|
13125
13086
|
}
|
|
13126
13087
|
}
|
|
13127
|
-
function generateExampleObject(
|
|
13088
|
+
function generateExampleObject(object32, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
13128
13089
|
const example = {};
|
|
13129
|
-
for (const property of getAllObjectProperties(
|
|
13090
|
+
for (const property of getAllObjectProperties(object32, resolveTypeById)) {
|
|
13130
13091
|
const value = generateExampleFromTypeReference(
|
|
13131
13092
|
property.valueType,
|
|
13132
13093
|
resolveTypeById,
|
|
@@ -13310,10 +13271,10 @@ function generateExamplePrimitive(reference) {
|
|
|
13310
13271
|
return reference.name;
|
|
13311
13272
|
}
|
|
13312
13273
|
}
|
|
13313
|
-
function getAllObjectProperties(
|
|
13274
|
+
function getAllObjectProperties(object32, resolveTypeById) {
|
|
13314
13275
|
return [
|
|
13315
|
-
...
|
|
13316
|
-
...
|
|
13276
|
+
...object32.properties,
|
|
13277
|
+
...object32.extends.flatMap((typeId) => {
|
|
13317
13278
|
let type = resolveTypeById(typeId);
|
|
13318
13279
|
if (type == null) {
|
|
13319
13280
|
return [];
|