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

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