@fern-api/fdr-sdk 1.2.54-efc419b23b → 1.2.55-46f658b255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/client/docs-types/latest.d.ts +9 -9
  2. package/dist/client/docs-types/latest.d.ts.map +1 -1
  3. package/dist/client/docs-types/latest.js +1 -1
  4. package/dist/client/docs-types/latest.js.map +1 -1
  5. package/dist/js/client/FdrClient.js +1455 -1495
  6. package/dist/js/client/FdrClient.js.map +1 -1
  7. package/dist/js/client/FdrClient.mjs +1455 -1495
  8. package/dist/js/client/FdrClient.mjs.map +1 -1
  9. package/dist/js/client/types.js +1 -1
  10. package/dist/js/client/types.js.map +1 -1
  11. package/dist/js/client/types.mjs +1 -1
  12. package/dist/js/client/types.mjs.map +1 -1
  13. package/dist/js/converters/index.js +303 -301
  14. package/dist/js/converters/index.js.map +1 -1
  15. package/dist/js/converters/index.mjs +303 -301
  16. package/dist/js/converters/index.mjs.map +1 -1
  17. package/dist/js/docs/index.js +1 -1
  18. package/dist/js/docs/index.js.map +1 -1
  19. package/dist/js/docs/index.mjs +1 -1
  20. package/dist/js/docs/index.mjs.map +1 -1
  21. package/dist/js/index.js +1784 -1824
  22. package/dist/js/index.js.map +1 -1
  23. package/dist/js/index.mjs +1783 -1823
  24. package/dist/js/index.mjs.map +1 -1
  25. package/dist/js/navigation/index.js +303 -301
  26. package/dist/js/navigation/index.js.map +1 -1
  27. package/dist/js/navigation/index.mjs +303 -301
  28. package/dist/js/navigation/index.mjs.map +1 -1
  29. package/dist/js/orpc-client.js +1506 -1507
  30. package/dist/js/orpc-client.js.map +1 -1
  31. package/dist/js/orpc-client.mjs +1514 -1515
  32. package/dist/js/orpc-client.mjs.map +1 -1
  33. package/dist/orpc-client/docs/client.d.ts +0 -2
  34. package/dist/orpc-client/docs/client.d.ts.map +1 -1
  35. package/dist/orpc-client/docs/client.js +1 -3
  36. package/dist/orpc-client/docs/client.js.map +1 -1
  37. package/dist/orpc-client/docs/v2/write/contract.d.ts +6 -6
  38. package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/dist/types/client/docs-types/latest.d.ts +9 -9
  41. package/dist/types/client/docs-types/latest.d.ts.map +1 -1
  42. package/dist/types/orpc-client/docs/client.d.ts +0 -2
  43. package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
  44. package/dist/types/orpc-client/docs/v2/write/contract.d.ts +6 -6
  45. package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  46. package/package.json +1 -1
@@ -3163,226 +3163,346 @@ var LoadDocsForUrlResponseSchema = z8.object({
3163
3163
  translations: z8.array(z8.string()).optional()
3164
3164
  });
3165
3165
 
3166
+ // src/orpc-client/docs/v2/read/contract.ts
3167
+ var contract_exports = {};
3168
+ __export(contract_exports, {
3169
+ DocsDefinitionField: () => DocsDefinitionField,
3170
+ DocsDomainItemSchema: () => DocsDomainItemSchema,
3171
+ DocsReadConfigSchema: () => DocsConfigSchema,
3172
+ DocsReadDefinitionSchema: () => DocsDefinitionSchema,
3173
+ GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
3174
+ GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
3175
+ GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
3176
+ GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
3177
+ GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
3178
+ GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
3179
+ ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
3180
+ ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
3181
+ LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
3182
+ docsV2ReadContract: () => docsV2ReadContract,
3183
+ getDocsForUrl: () => getDocsForUrl
3184
+ });
3185
+ import { oc } from "@orpc/contract";
3186
+ import * as z9 from "zod";
3187
+ var GetDocsUrlMetadataInputSchema = z9.object({
3188
+ url: z9.string()
3189
+ });
3190
+ var GetDocsUrlMetadataResponseSchema = z9.object({
3191
+ isPreviewUrl: z9.boolean(),
3192
+ org: z9.string(),
3193
+ url: z9.string(),
3194
+ gitUrl: z9.string().nullish(),
3195
+ enableAlgoliaOnPreview: z9.boolean().nullish()
3196
+ });
3197
+ var GetDocsForUrlInputSchema = z9.object({
3198
+ url: z9.string(),
3199
+ excludeApis: z9.boolean().nullish()
3200
+ });
3201
+ var GetPrivateDocsForUrlInputSchema = z9.object({
3202
+ url: z9.string()
3203
+ });
3204
+ var ListAllDocsUrlsInputSchema = z9.object({
3205
+ limit: z9.number().nullish(),
3206
+ page: z9.number().nullish(),
3207
+ custom: z9.boolean().nullish(),
3208
+ preview: z9.boolean().nullish()
3209
+ });
3210
+ var GetDocsConfigByIdInputSchema = z9.object({
3211
+ docsConfigId: z9.string()
3212
+ });
3213
+ var DocsDefinitionField = {
3214
+ BaseUrl: "BASE_URL",
3215
+ FilesV2: "FILES_V2",
3216
+ ApisV2: "APIS_V2",
3217
+ Apis: "APIS",
3218
+ Pages: "PAGES",
3219
+ JsFiles: "JS_FILES",
3220
+ Config: "CONFIG",
3221
+ Root: "ROOT"
3222
+ };
3223
+ var GetDocsConfigByIdResponseSchema = z9.object({
3224
+ docsConfig: DocsConfigSchema,
3225
+ apis: z9.record(z9.string(), z9.unknown())
3226
+ });
3227
+ var DocsDomainItemSchema = z9.object({
3228
+ domain: z9.string(),
3229
+ basePath: z9.string().optional(),
3230
+ organizationId: z9.string(),
3231
+ updatedAt: z9.string()
3232
+ });
3233
+ var ListAllDocsUrlsResponseSchema = z9.object({
3234
+ urls: z9.array(DocsDomainItemSchema)
3235
+ });
3236
+ var getDocsForUrl;
3237
+ ((getDocsForUrl2) => {
3238
+ let Error2;
3239
+ ((Error3) => {
3240
+ function _unknown(fetcherError) {
3241
+ return { error: void 0, content: fetcherError };
3242
+ }
3243
+ Error3._unknown = _unknown;
3244
+ })(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
3245
+ })(getDocsForUrl || (getDocsForUrl = {}));
3246
+ var docsV2ReadContract = {
3247
+ getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
3248
+ getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
3249
+ getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
3250
+ listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
3251
+ getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
3252
+ prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z9.void()),
3253
+ ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z9.void()),
3254
+ getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(z9.void())
3255
+ };
3256
+
3257
+ // src/orpc-client/docs/v2/write/contract.ts
3258
+ var contract_exports2 = {};
3259
+ __export(contract_exports2, {
3260
+ AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
3261
+ AuthConfigSchema: () => AuthConfigSchema,
3262
+ Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
3263
+ DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
3264
+ FilePath: () => FilePath2,
3265
+ FilePathInputSchema: () => FilePathInputSchema,
3266
+ FilePathSchema: () => FilePathSchema2,
3267
+ FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
3268
+ FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
3269
+ ImageFilePathSchema: () => ImageFilePathSchema,
3270
+ ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
3271
+ RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
3272
+ RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
3273
+ RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
3274
+ SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
3275
+ SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
3276
+ StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
3277
+ StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
3278
+ StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
3279
+ StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
3280
+ TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
3281
+ docsV2WriteContract: () => docsV2WriteContract
3282
+ });
3283
+ import { oc as oc2 } from "@orpc/contract";
3284
+ import * as z12 from "zod";
3285
+
3166
3286
  // src/client/docs-types/write.ts
3167
- import * as z10 from "zod";
3287
+ import * as z11 from "zod";
3168
3288
 
3169
3289
  // src/client/docs-types/write-commons.ts
3170
- import * as z9 from "zod";
3171
- var OrgIdSchema2 = z9.string();
3290
+ import * as z10 from "zod";
3291
+ var OrgIdSchema2 = z10.string();
3172
3292
  function OrgId2(value) {
3173
3293
  return value;
3174
3294
  }
3175
3295
 
3176
3296
  // src/client/docs-types/write.ts
3177
- var FilePathSchema = z10.string();
3297
+ var FilePathSchema = z11.string();
3178
3298
  function FilePath(value) {
3179
3299
  return value;
3180
3300
  }
3181
- var DocsRegistrationIdSchema = z10.string();
3301
+ var DocsRegistrationIdSchema = z11.string();
3182
3302
  function DocsRegistrationId(value) {
3183
3303
  return value;
3184
3304
  }
3185
- var HeightSchema2 = z10.number();
3186
- var FileS3UploadUrlSchema = z10.object({
3187
- uploadUrl: z10.string(),
3305
+ var HeightSchema2 = z11.number();
3306
+ var FileS3UploadUrlSchema = z11.object({
3307
+ uploadUrl: z11.string(),
3188
3308
  fileId: FileIdSchema2
3189
3309
  });
3190
- var StartDocsRegisterResponseSchema = z10.object({
3310
+ var StartDocsRegisterResponseSchema = z11.object({
3191
3311
  docsRegistrationId: DocsRegistrationIdSchema,
3192
- uploadUrls: z10.record(FilePathSchema, FileS3UploadUrlSchema),
3193
- skippedFiles: z10.array(FilePathSchema)
3312
+ uploadUrls: z11.record(FilePathSchema, FileS3UploadUrlSchema),
3313
+ skippedFiles: z11.array(FilePathSchema)
3194
3314
  });
3195
- var PageContentSchema2 = z10.object({
3196
- markdown: z10.string(),
3315
+ var PageContentSchema2 = z11.object({
3316
+ markdown: z11.string(),
3197
3317
  editThisPageUrl: UrlSchema2.optional(),
3198
3318
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
3199
- rawMarkdown: z10.string().optional()
3319
+ rawMarkdown: z11.string().optional()
3200
3320
  });
3201
- var NavigationNodeMetadataSchema2 = z10.object({
3202
- icon: z10.string().optional(),
3203
- hidden: z10.boolean().optional(),
3204
- urlSlugOverride: z10.string().optional(),
3205
- fullSlug: z10.array(z10.string()).optional()
3321
+ var NavigationNodeMetadataSchema2 = z11.object({
3322
+ icon: z11.string().optional(),
3323
+ hidden: z11.boolean().optional(),
3324
+ urlSlugOverride: z11.string().optional(),
3325
+ fullSlug: z11.array(z11.string()).optional()
3206
3326
  });
3207
- var PageMetadataSchema2 = z10.object({
3327
+ var PageMetadataSchema2 = z11.object({
3208
3328
  ...NavigationNodeMetadataSchema2.shape,
3209
3329
  id: PageIdSchema2,
3210
- title: z10.string()
3330
+ title: z11.string()
3211
3331
  });
3212
- var LinkMetadataSchema2 = z10.object({
3213
- title: z10.string(),
3214
- icon: z10.string().optional(),
3332
+ var LinkMetadataSchema2 = z11.object({
3333
+ title: z11.string(),
3334
+ icon: z11.string().optional(),
3215
3335
  url: UrlSchema2,
3216
3336
  target: LinkTargetSchema.optional()
3217
3337
  });
3218
- var ChangelogItemSchema2 = z10.object({
3219
- date: z10.string(),
3338
+ var ChangelogItemSchema2 = z11.object({
3339
+ date: z11.string(),
3220
3340
  pageId: PageIdSchema2,
3221
- hidden: z10.boolean().optional(),
3222
- tags: z10.array(z10.string()).optional()
3223
- });
3224
- var ChangelogSectionSchema2 = z10.object({
3225
- title: z10.string().optional(),
3226
- icon: z10.string().optional(),
3227
- hidden: z10.boolean().optional(),
3228
- description: z10.string().optional(),
3341
+ hidden: z11.boolean().optional(),
3342
+ tags: z11.array(z11.string()).optional()
3343
+ });
3344
+ var ChangelogSectionSchema2 = z11.object({
3345
+ title: z11.string().optional(),
3346
+ icon: z11.string().optional(),
3347
+ hidden: z11.boolean().optional(),
3348
+ description: z11.string().optional(),
3229
3349
  pageId: PageIdSchema2.optional(),
3230
- items: z10.array(ChangelogItemSchema2),
3231
- urlSlug: z10.string(),
3232
- fullSlug: z10.array(z10.string()).optional()
3350
+ items: z11.array(ChangelogItemSchema2),
3351
+ urlSlug: z11.string(),
3352
+ fullSlug: z11.array(z11.string()).optional()
3233
3353
  });
3234
- var ChangelogSectionV2Schema = z10.object({
3354
+ var ChangelogSectionV2Schema = z11.object({
3235
3355
  ...NavigationNodeMetadataSchema2.shape,
3236
- title: z10.string().optional(),
3237
- description: z10.string().optional(),
3356
+ title: z11.string().optional(),
3357
+ description: z11.string().optional(),
3238
3358
  pageId: PageIdSchema2.optional(),
3239
- items: z10.array(ChangelogItemSchema2)
3359
+ items: z11.array(ChangelogItemSchema2)
3240
3360
  });
3241
- var ChangelogSectionV3Schema2 = z10.object({
3242
- node: z10.unknown()
3361
+ var ChangelogSectionV3Schema2 = z11.object({
3362
+ node: z11.unknown()
3243
3363
  });
3244
- var NavigationTabLinkSchema2 = z10.object({
3245
- title: z10.string(),
3246
- icon: z10.string().optional(),
3364
+ var NavigationTabLinkSchema2 = z11.object({
3365
+ title: z11.string(),
3366
+ icon: z11.string().optional(),
3247
3367
  url: UrlSchema2,
3248
3368
  target: LinkTargetSchema.optional()
3249
3369
  });
3250
- var ApiNavigationConfigItemSchema4 = z10.lazy(
3251
- () => z10.discriminatedUnion("type", [
3252
- z10.object({
3253
- type: z10.literal("subpackage"),
3370
+ var ApiNavigationConfigItemSchema4 = z11.lazy(
3371
+ () => z11.discriminatedUnion("type", [
3372
+ z11.object({
3373
+ type: z11.literal("subpackage"),
3254
3374
  summaryPageId: PageIdSchema2.optional(),
3255
3375
  subpackageId: SubpackageIdSchema2,
3256
- items: z10.array(ApiNavigationConfigItemSchema4)
3376
+ items: z11.array(ApiNavigationConfigItemSchema4)
3257
3377
  }),
3258
- z10.object({ type: z10.literal("endpointId"), value: EndpointIdSchema2 }),
3259
- z10.object({ type: z10.literal("websocketId"), value: WebSocketIdSchema2 }),
3260
- z10.object({ type: z10.literal("webhookId"), value: WebhookIdSchema2 }),
3261
- z10.object({ type: z10.literal("page"), ...PageMetadataSchema2.shape })
3378
+ z11.object({ type: z11.literal("endpointId"), value: EndpointIdSchema2 }),
3379
+ z11.object({ type: z11.literal("websocketId"), value: WebSocketIdSchema2 }),
3380
+ z11.object({ type: z11.literal("webhookId"), value: WebhookIdSchema2 }),
3381
+ z11.object({ type: z11.literal("page"), ...PageMetadataSchema2.shape })
3262
3382
  ])
3263
3383
  );
3264
- var ApiNavigationConfigSubpackageSchema = z10.object({
3384
+ var ApiNavigationConfigSubpackageSchema = z11.object({
3265
3385
  summaryPageId: PageIdSchema2.optional(),
3266
3386
  subpackageId: SubpackageIdSchema2,
3267
- items: z10.array(ApiNavigationConfigItemSchema4)
3387
+ items: z11.array(ApiNavigationConfigItemSchema4)
3268
3388
  });
3269
- var ApiNavigationConfigRootSchema4 = z10.object({
3389
+ var ApiNavigationConfigRootSchema4 = z11.object({
3270
3390
  summaryPageId: PageIdSchema2.optional(),
3271
- items: z10.array(ApiNavigationConfigItemSchema4)
3391
+ items: z11.array(ApiNavigationConfigItemSchema4)
3272
3392
  });
3273
- var ApiSectionSchema2 = z10.object({
3393
+ var ApiSectionSchema2 = z11.object({
3274
3394
  ...NavigationNodeMetadataSchema2.shape,
3275
- title: z10.string(),
3395
+ title: z11.string(),
3276
3396
  api: ApiDefinitionIdSchema2,
3277
- artifacts: z10.object({
3278
- sdks: z10.array(
3279
- z10.discriminatedUnion("type", [
3280
- z10.object({
3281
- type: z10.literal("npm"),
3282
- packageName: z10.string(),
3283
- githubRepoName: z10.string(),
3284
- version: z10.string()
3397
+ artifacts: z11.object({
3398
+ sdks: z11.array(
3399
+ z11.discriminatedUnion("type", [
3400
+ z11.object({
3401
+ type: z11.literal("npm"),
3402
+ packageName: z11.string(),
3403
+ githubRepoName: z11.string(),
3404
+ version: z11.string()
3285
3405
  }),
3286
- z10.object({
3287
- type: z10.literal("maven"),
3288
- coordinate: z10.string(),
3289
- githubRepoName: z10.string(),
3290
- version: z10.string()
3406
+ z11.object({
3407
+ type: z11.literal("maven"),
3408
+ coordinate: z11.string(),
3409
+ githubRepoName: z11.string(),
3410
+ version: z11.string()
3291
3411
  }),
3292
- z10.object({
3293
- type: z10.literal("pypi"),
3294
- packageName: z10.string(),
3295
- githubRepoName: z10.string(),
3296
- version: z10.string()
3412
+ z11.object({
3413
+ type: z11.literal("pypi"),
3414
+ packageName: z11.string(),
3415
+ githubRepoName: z11.string(),
3416
+ version: z11.string()
3297
3417
  })
3298
3418
  ])
3299
3419
  ),
3300
- postman: z10.object({
3420
+ postman: z11.object({
3301
3421
  url: UrlSchema2,
3302
- githubRepoName: z10.string().optional()
3422
+ githubRepoName: z11.string().optional()
3303
3423
  }).optional()
3304
3424
  }).optional(),
3305
- skipUrlSlug: z10.boolean().optional(),
3306
- showErrors: z10.boolean().optional(),
3425
+ skipUrlSlug: z11.boolean().optional(),
3426
+ showErrors: z11.boolean().optional(),
3307
3427
  changelog: ChangelogSectionSchema2.optional(),
3308
3428
  changelogV2: ChangelogSectionV2Schema.optional(),
3309
3429
  navigation: ApiNavigationConfigRootSchema4.optional(),
3310
- longScrolling: z10.boolean().optional(),
3311
- flattened: z10.boolean().optional()
3430
+ longScrolling: z11.boolean().optional(),
3431
+ flattened: z11.boolean().optional()
3312
3432
  });
3313
- var ApiSectionV2Schema2 = z10.object({
3314
- node: z10.unknown()
3433
+ var ApiSectionV2Schema2 = z11.object({
3434
+ node: z11.unknown()
3315
3435
  });
3316
- var DocsSectionSchema2 = z10.lazy(
3317
- () => z10.object({
3436
+ var DocsSectionSchema2 = z11.lazy(
3437
+ () => z11.object({
3318
3438
  ...NavigationNodeMetadataSchema2.shape,
3319
- title: z10.string(),
3320
- items: z10.array(NavigationItemSchema2),
3321
- collapsed: z10.union([z10.boolean(), z10.literal("open-by-default")]).optional(),
3322
- collapsible: z10.boolean().optional(),
3323
- collapsedByDefault: z10.boolean().optional(),
3324
- skipUrlSlug: z10.boolean().optional(),
3439
+ title: z11.string(),
3440
+ items: z11.array(NavigationItemSchema2),
3441
+ collapsed: z11.union([z11.boolean(), z11.literal("open-by-default")]).optional(),
3442
+ collapsible: z11.boolean().optional(),
3443
+ collapsedByDefault: z11.boolean().optional(),
3444
+ skipUrlSlug: z11.boolean().optional(),
3325
3445
  overviewPageId: PageIdSchema2.optional()
3326
3446
  })
3327
3447
  );
3328
- var NavigationItemSchema2 = z10.lazy(
3329
- () => z10.discriminatedUnion("type", [
3330
- z10.object({ type: z10.literal("page"), ...PageMetadataSchema2.shape }),
3331
- z10.object({ type: z10.literal("api"), ...ApiSectionSchema2.shape }),
3332
- z10.object({ type: z10.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
3333
- z10.object({
3334
- type: z10.literal("section"),
3448
+ var NavigationItemSchema2 = z11.lazy(
3449
+ () => z11.discriminatedUnion("type", [
3450
+ z11.object({ type: z11.literal("page"), ...PageMetadataSchema2.shape }),
3451
+ z11.object({ type: z11.literal("api"), ...ApiSectionSchema2.shape }),
3452
+ z11.object({ type: z11.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
3453
+ z11.object({
3454
+ type: z11.literal("section"),
3335
3455
  ...NavigationNodeMetadataSchema2.shape,
3336
- title: z10.string(),
3337
- items: z10.array(NavigationItemSchema2),
3338
- collapsed: z10.union([z10.boolean(), z10.literal("open-by-default")]).optional(),
3339
- collapsible: z10.boolean().optional(),
3340
- collapsedByDefault: z10.boolean().optional(),
3341
- skipUrlSlug: z10.boolean().optional(),
3456
+ title: z11.string(),
3457
+ items: z11.array(NavigationItemSchema2),
3458
+ collapsed: z11.union([z11.boolean(), z11.literal("open-by-default")]).optional(),
3459
+ collapsible: z11.boolean().optional(),
3460
+ collapsedByDefault: z11.boolean().optional(),
3461
+ skipUrlSlug: z11.boolean().optional(),
3342
3462
  overviewPageId: PageIdSchema2.optional()
3343
3463
  }),
3344
- z10.object({ type: z10.literal("link"), ...LinkMetadataSchema2.shape }),
3345
- z10.object({ type: z10.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
3346
- z10.object({ type: z10.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
3464
+ z11.object({ type: z11.literal("link"), ...LinkMetadataSchema2.shape }),
3465
+ z11.object({ type: z11.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
3466
+ z11.object({ type: z11.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
3347
3467
  ])
3348
3468
  );
3349
- var NavigationTabGroupSchema2 = z10.object({
3469
+ var NavigationTabGroupSchema2 = z11.object({
3350
3470
  ...NavigationNodeMetadataSchema2.shape,
3351
- title: z10.string(),
3352
- items: z10.array(NavigationItemSchema2),
3353
- skipUrlSlug: z10.boolean().optional()
3354
- });
3355
- var NavigationTabSchema2 = z10.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
3356
- var NavigationTabV2Schema = z10.discriminatedUnion("type", [
3357
- z10.object({ type: z10.literal("group"), ...NavigationTabGroupSchema2.shape }),
3358
- z10.object({ type: z10.literal("link"), ...NavigationTabLinkSchema2.shape }),
3359
- z10.object({ type: z10.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
3360
- z10.object({ type: z10.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
3471
+ title: z11.string(),
3472
+ items: z11.array(NavigationItemSchema2),
3473
+ skipUrlSlug: z11.boolean().optional()
3474
+ });
3475
+ var NavigationTabSchema2 = z11.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
3476
+ var NavigationTabV2Schema = z11.discriminatedUnion("type", [
3477
+ z11.object({ type: z11.literal("group"), ...NavigationTabGroupSchema2.shape }),
3478
+ z11.object({ type: z11.literal("link"), ...NavigationTabLinkSchema2.shape }),
3479
+ z11.object({ type: z11.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
3480
+ z11.object({ type: z11.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
3361
3481
  ]);
3362
- var UnversionedTabbedNavigationConfigSchema2 = z10.object({
3363
- tabs: z10.array(NavigationTabSchema2).optional(),
3364
- tabsV2: z10.array(NavigationTabV2Schema).optional(),
3482
+ var UnversionedTabbedNavigationConfigSchema2 = z11.object({
3483
+ tabs: z11.array(NavigationTabSchema2).optional(),
3484
+ tabsV2: z11.array(NavigationTabV2Schema).optional(),
3365
3485
  landingPage: PageMetadataSchema2.optional()
3366
3486
  });
3367
- var UnversionedUntabbedNavigationConfigSchema2 = z10.object({
3368
- items: z10.array(NavigationItemSchema2),
3487
+ var UnversionedUntabbedNavigationConfigSchema2 = z11.object({
3488
+ items: z11.array(NavigationItemSchema2),
3369
3489
  landingPage: PageMetadataSchema2.optional()
3370
3490
  });
3371
- var UnversionedNavigationConfigSchema2 = z10.union([
3491
+ var UnversionedNavigationConfigSchema2 = z11.union([
3372
3492
  UnversionedTabbedNavigationConfigSchema2,
3373
3493
  UnversionedUntabbedNavigationConfigSchema2
3374
3494
  ]);
3375
- var VersionedNavigationConfigDataSchema2 = z10.object({
3495
+ var VersionedNavigationConfigDataSchema2 = z11.object({
3376
3496
  version: VersionIdSchema2,
3377
- urlSlugOverride: z10.string().optional(),
3497
+ urlSlugOverride: z11.string().optional(),
3378
3498
  availability: AvailabilitySchema2.optional(),
3379
3499
  config: UnversionedNavigationConfigSchema2
3380
3500
  });
3381
- var VersionedNavigationConfigSchema2 = z10.object({
3382
- versions: z10.array(VersionedNavigationConfigDataSchema2)
3501
+ var VersionedNavigationConfigSchema2 = z11.object({
3502
+ versions: z11.array(VersionedNavigationConfigDataSchema2)
3383
3503
  });
3384
- var NavigationConfigSchema2 = z10.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
3385
- var ThemeConfigSchema2 = z10.object({
3504
+ var NavigationConfigSchema2 = z11.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
3505
+ var ThemeConfigSchema2 = z11.object({
3386
3506
  logo: FileIdSchema2.optional(),
3387
3507
  backgroundImage: FileIdSchema2.optional(),
3388
3508
  accentPrimary: RgbaColorSchema,
@@ -3404,37 +3524,37 @@ var ThemeConfigSchema2 = z10.object({
3404
3524
  accent11: RgbaColorSchema.optional(),
3405
3525
  accent12: RgbaColorSchema.optional()
3406
3526
  });
3407
- var DarkAndLightModeConfigSchema2 = z10.object({
3527
+ var DarkAndLightModeConfigSchema2 = z11.object({
3408
3528
  dark: ThemeConfigSchema2,
3409
3529
  light: ThemeConfigSchema2
3410
3530
  });
3411
- var ColorsConfigV3Schema2 = z10.discriminatedUnion("type", [
3412
- z10.object({ type: z10.literal("dark"), ...ThemeConfigSchema2.shape }),
3413
- z10.object({ type: z10.literal("light"), ...ThemeConfigSchema2.shape }),
3414
- z10.object({ type: z10.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
3531
+ var ColorsConfigV3Schema2 = z11.discriminatedUnion("type", [
3532
+ z11.object({ type: z11.literal("dark"), ...ThemeConfigSchema2.shape }),
3533
+ z11.object({ type: z11.literal("light"), ...ThemeConfigSchema2.shape }),
3534
+ z11.object({ type: z11.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
3415
3535
  ]);
3416
- var DocsConfigSchema2 = z10.object({
3417
- title: z10.string().optional(),
3536
+ var DocsConfigSchema2 = z11.object({
3537
+ title: z11.string().optional(),
3418
3538
  defaultLanguage: ProgrammingLanguageSchema.optional(),
3419
- languages: z10.array(LanguageSchema).optional(),
3539
+ languages: z11.array(LanguageSchema).optional(),
3420
3540
  translations: DocsTranslationsConfigSchema.optional(),
3421
- announcement: z10.object({ text: z10.string() }).optional(),
3541
+ announcement: z11.object({ text: z11.string() }).optional(),
3422
3542
  navigation: NavigationConfigSchema2.optional(),
3423
- root: z10.custom().optional(),
3424
- navbarLinks: z10.array(NavbarLinkSchema).optional(),
3425
- footerLinks: z10.array(FooterLinkSchema).optional(),
3426
- hideNavLinks: z10.boolean().optional(),
3543
+ root: z11.custom().optional(),
3544
+ navbarLinks: z11.array(NavbarLinkSchema).optional(),
3545
+ footerLinks: z11.array(FooterLinkSchema).optional(),
3546
+ hideNavLinks: z11.boolean().optional(),
3427
3547
  logoHeight: HeightSchema2.optional(),
3428
3548
  logoHref: UrlSchema2.optional(),
3429
- logoRightText: z10.string().optional(),
3549
+ logoRightText: z11.string().optional(),
3430
3550
  favicon: FileIdSchema2.optional(),
3431
3551
  agents: AgentsConfigSchema.optional(),
3432
3552
  metadata: MetadataConfigSchema.optional(),
3433
- redirects: z10.array(RedirectConfigSchema).optional(),
3553
+ redirects: z11.array(RedirectConfigSchema).optional(),
3434
3554
  colorsV3: ColorsConfigV3Schema2.optional(),
3435
3555
  layout: DocsLayoutConfigSchema.optional(),
3436
3556
  theme: DocsThemeConfigSchema.optional(),
3437
- globalTheme: z10.string().optional(),
3557
+ globalTheme: z11.string().optional(),
3438
3558
  settings: DocsSettingsConfigSchema.optional(),
3439
3559
  typographyV2: DocsTypographyConfigV2Schema.optional(),
3440
3560
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -3444,8 +3564,8 @@ var DocsConfigSchema2 = z10.object({
3444
3564
  aiChatConfig: AIChatConfigSchema.optional(),
3445
3565
  pageActions: PageActionsConfigSchema.optional(),
3446
3566
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
3447
- header: z10.string().optional(),
3448
- footer: z10.string().optional(),
3567
+ header: z11.string().optional(),
3568
+ footer: z11.string().optional(),
3449
3569
  backgroundImage: FileIdSchema2.optional(),
3450
3570
  logoV2: ThemedFileIdSchema.optional(),
3451
3571
  logo: FileIdSchema2.optional(),
@@ -3453,163 +3573,45 @@ var DocsConfigSchema2 = z10.object({
3453
3573
  colorsV2: ColorsConfigV2Schema.optional(),
3454
3574
  typography: DocsTypographyConfigSchema.optional()
3455
3575
  });
3456
- var DocsDefinitionSchema2 = z10.object({
3457
- pages: z10.record(PageIdSchema2, PageContentSchema2),
3576
+ var DocsDefinitionSchema2 = z11.object({
3577
+ pages: z11.record(PageIdSchema2, PageContentSchema2),
3458
3578
  config: DocsConfigSchema2,
3459
- jsFiles: z10.record(z10.string(), z10.string()).optional()
3460
- });
3461
- var NpmPackageSchema2 = z10.object({
3462
- packageName: z10.string(),
3463
- githubRepoName: z10.string(),
3464
- version: z10.string()
3465
- });
3466
- var MavenPackageSchema2 = z10.object({
3467
- coordinate: z10.string(),
3468
- githubRepoName: z10.string(),
3469
- version: z10.string()
3470
- });
3471
- var PypiPackageSchema2 = z10.object({
3472
- packageName: z10.string(),
3473
- githubRepoName: z10.string(),
3474
- version: z10.string()
3475
- });
3476
- var PublishedSdkSchema2 = z10.discriminatedUnion("type", [
3477
- z10.object({ type: z10.literal("npm"), ...NpmPackageSchema2.shape }),
3478
- z10.object({ type: z10.literal("maven"), ...MavenPackageSchema2.shape }),
3479
- z10.object({ type: z10.literal("pypi"), ...PypiPackageSchema2.shape })
3579
+ jsFiles: z11.record(z11.string(), z11.string()).optional()
3580
+ });
3581
+ var NpmPackageSchema2 = z11.object({
3582
+ packageName: z11.string(),
3583
+ githubRepoName: z11.string(),
3584
+ version: z11.string()
3585
+ });
3586
+ var MavenPackageSchema2 = z11.object({
3587
+ coordinate: z11.string(),
3588
+ githubRepoName: z11.string(),
3589
+ version: z11.string()
3590
+ });
3591
+ var PypiPackageSchema2 = z11.object({
3592
+ packageName: z11.string(),
3593
+ githubRepoName: z11.string(),
3594
+ version: z11.string()
3595
+ });
3596
+ var PublishedSdkSchema2 = z11.discriminatedUnion("type", [
3597
+ z11.object({ type: z11.literal("npm"), ...NpmPackageSchema2.shape }),
3598
+ z11.object({ type: z11.literal("maven"), ...MavenPackageSchema2.shape }),
3599
+ z11.object({ type: z11.literal("pypi"), ...PypiPackageSchema2.shape })
3480
3600
  ]);
3481
- var PublishedPostmanCollectionSchema2 = z10.object({
3601
+ var PublishedPostmanCollectionSchema2 = z11.object({
3482
3602
  url: UrlSchema2,
3483
- githubRepoName: z10.string().optional()
3603
+ githubRepoName: z11.string().optional()
3484
3604
  });
3485
- var ApiArtifactsSchema2 = z10.object({
3486
- sdks: z10.array(PublishedSdkSchema2),
3605
+ var ApiArtifactsSchema2 = z11.object({
3606
+ sdks: z11.array(PublishedSdkSchema2),
3487
3607
  postman: PublishedPostmanCollectionSchema2.optional()
3488
3608
  });
3489
- var InvalidCustomDomainErrorBodySchema = z10.object({
3490
- overlappingDomains: z10.array(z10.array(z10.string()))
3609
+ var InvalidCustomDomainErrorBodySchema = z11.object({
3610
+ overlappingDomains: z11.array(z11.array(z11.string()))
3491
3611
  });
3492
- var OverlappingCustomDomainsSchema = z10.array(z10.string());
3493
-
3494
- // src/orpc-client/docs/v2/read/contract.ts
3495
- var contract_exports = {};
3496
- __export(contract_exports, {
3497
- DocsDefinitionField: () => DocsDefinitionField,
3498
- DocsDomainItemSchema: () => DocsDomainItemSchema,
3499
- DocsReadConfigSchema: () => DocsConfigSchema,
3500
- DocsReadDefinitionSchema: () => DocsDefinitionSchema,
3501
- GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
3502
- GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
3503
- GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
3504
- GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
3505
- GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
3506
- GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
3507
- ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
3508
- ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
3509
- LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
3510
- docsV2ReadContract: () => docsV2ReadContract,
3511
- getDocsForUrl: () => getDocsForUrl
3512
- });
3513
- import { oc } from "@orpc/contract";
3514
- import * as z11 from "zod";
3515
- var GetDocsUrlMetadataInputSchema = z11.object({
3516
- url: z11.string()
3517
- });
3518
- var GetDocsUrlMetadataResponseSchema = z11.object({
3519
- isPreviewUrl: z11.boolean(),
3520
- org: z11.string(),
3521
- url: z11.string(),
3522
- gitUrl: z11.string().nullish(),
3523
- enableAlgoliaOnPreview: z11.boolean().nullish()
3524
- });
3525
- var GetDocsForUrlInputSchema = z11.object({
3526
- url: z11.string(),
3527
- excludeApis: z11.boolean().nullish()
3528
- });
3529
- var GetPrivateDocsForUrlInputSchema = z11.object({
3530
- url: z11.string()
3531
- });
3532
- var ListAllDocsUrlsInputSchema = z11.object({
3533
- limit: z11.number().nullish(),
3534
- page: z11.number().nullish(),
3535
- custom: z11.boolean().nullish(),
3536
- preview: z11.boolean().nullish()
3537
- });
3538
- var GetDocsConfigByIdInputSchema = z11.object({
3539
- docsConfigId: z11.string()
3540
- });
3541
- var DocsDefinitionField = {
3542
- BaseUrl: "BASE_URL",
3543
- FilesV2: "FILES_V2",
3544
- ApisV2: "APIS_V2",
3545
- Apis: "APIS",
3546
- Pages: "PAGES",
3547
- JsFiles: "JS_FILES",
3548
- Config: "CONFIG",
3549
- Root: "ROOT"
3550
- };
3551
- var GetDocsConfigByIdResponseSchema = z11.object({
3552
- docsConfig: DocsConfigSchema,
3553
- apis: z11.record(z11.string(), z11.unknown())
3554
- });
3555
- var DocsDomainItemSchema = z11.object({
3556
- domain: z11.string(),
3557
- basePath: z11.string().optional(),
3558
- organizationId: z11.string(),
3559
- updatedAt: z11.string()
3560
- });
3561
- var ListAllDocsUrlsResponseSchema = z11.object({
3562
- urls: z11.array(DocsDomainItemSchema)
3563
- });
3564
- var getDocsForUrl;
3565
- ((getDocsForUrl2) => {
3566
- let Error2;
3567
- ((Error3) => {
3568
- function _unknown(fetcherError) {
3569
- return { error: void 0, content: fetcherError };
3570
- }
3571
- Error3._unknown = _unknown;
3572
- })(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
3573
- })(getDocsForUrl || (getDocsForUrl = {}));
3574
- var docsV2ReadContract = {
3575
- getDocsUrlMetadata: oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
3576
- getDocsForUrl: oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
3577
- getPrivateDocsForUrl: oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
3578
- listAllDocsUrls: oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
3579
- getDocsConfigById: oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
3580
- prepopulateFdrReadS3Bucket: oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z11.void()),
3581
- ensureDocsInS3: oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z11.void()),
3582
- getDocsFields: oc.route({ method: "POST", path: "/load-fields" }).output(z11.void())
3583
- };
3612
+ var OverlappingCustomDomainsSchema = z11.array(z11.string());
3584
3613
 
3585
3614
  // src/orpc-client/docs/v2/write/contract.ts
3586
- var contract_exports2 = {};
3587
- __export(contract_exports2, {
3588
- AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
3589
- AuthConfigSchema: () => AuthConfigSchema,
3590
- Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
3591
- DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
3592
- FilePath: () => FilePath2,
3593
- FilePathInputSchema: () => FilePathInputSchema,
3594
- FilePathSchema: () => FilePathSchema2,
3595
- FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
3596
- FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
3597
- ImageFilePathSchema: () => ImageFilePathSchema,
3598
- ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
3599
- RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
3600
- RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
3601
- RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
3602
- SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
3603
- SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
3604
- StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
3605
- StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
3606
- StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
3607
- StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
3608
- TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
3609
- docsV2WriteContract: () => docsV2WriteContract
3610
- });
3611
- import { oc as oc2 } from "@orpc/contract";
3612
- import * as z12 from "zod";
3613
3615
  var FilePathSchema2 = z12.string();
3614
3616
  function FilePath2(value) {
3615
3617
  return value;
@@ -5696,7 +5698,7 @@ var WithMetadataConfigSchema = z18.object({
5696
5698
  nofollow: z18.boolean().optional(),
5697
5699
  keywords: StringOrStringListSchema.optional()
5698
5700
  });
5699
- var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom"]);
5701
+ var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
5700
5702
  var LogoConfigurationSchema = z18.object({
5701
5703
  light: FileIdOrUrlSchema.optional(),
5702
5704
  dark: FileIdOrUrlSchema.optional()