@fern-api/fdr-sdk 1.2.53-df48a7112c → 1.2.54-228fd283a3

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