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