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