@fern-api/fdr-sdk 1.2.54-6737dc66b0 → 1.2.54-efc419b23b

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