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