@fern-api/fdr-sdk 1.2.53-df48a7112c → 1.2.54-228fd283a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/docs-types/latest.d.ts +9 -9
- package/dist/client/docs-types/latest.d.ts.map +1 -1
- package/dist/client/docs-types/latest.js +1 -1
- package/dist/client/docs-types/latest.js.map +1 -1
- package/dist/js/client/FdrClient.js +1455 -1495
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1455 -1495
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/client/types.js +1 -1
- package/dist/js/client/types.js.map +1 -1
- package/dist/js/client/types.mjs +1 -1
- package/dist/js/client/types.mjs.map +1 -1
- package/dist/js/converters/index.js +303 -301
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +303 -301
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/docs/index.js +1 -1
- package/dist/js/docs/index.js.map +1 -1
- package/dist/js/docs/index.mjs +1 -1
- package/dist/js/docs/index.mjs.map +1 -1
- package/dist/js/index.js +1784 -1824
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +1783 -1823
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +303 -301
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +303 -301
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +1506 -1507
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1514 -1515
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs/client.d.ts +0 -2
- package/dist/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/orpc-client/docs/client.js +1 -3
- package/dist/orpc-client/docs/client.js.map +1 -1
- package/dist/orpc-client/docs/v2/write/contract.d.ts +6 -6
- package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client/docs-types/latest.d.ts +9 -9
- package/dist/types/client/docs-types/latest.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/client.d.ts +0 -2
- package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts +6 -6
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3202,226 +3202,346 @@ 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
|
+
|
|
3205
3325
|
// src/client/docs-types/write.ts
|
|
3206
|
-
var
|
|
3326
|
+
var z11 = __toESM(require("zod"), 1);
|
|
3207
3327
|
|
|
3208
3328
|
// src/client/docs-types/write-commons.ts
|
|
3209
|
-
var
|
|
3210
|
-
var OrgIdSchema2 =
|
|
3329
|
+
var z10 = __toESM(require("zod"), 1);
|
|
3330
|
+
var OrgIdSchema2 = z10.string();
|
|
3211
3331
|
function OrgId2(value) {
|
|
3212
3332
|
return value;
|
|
3213
3333
|
}
|
|
3214
3334
|
|
|
3215
3335
|
// src/client/docs-types/write.ts
|
|
3216
|
-
var FilePathSchema =
|
|
3336
|
+
var FilePathSchema = z11.string();
|
|
3217
3337
|
function FilePath(value) {
|
|
3218
3338
|
return value;
|
|
3219
3339
|
}
|
|
3220
|
-
var DocsRegistrationIdSchema =
|
|
3340
|
+
var DocsRegistrationIdSchema = z11.string();
|
|
3221
3341
|
function DocsRegistrationId(value) {
|
|
3222
3342
|
return value;
|
|
3223
3343
|
}
|
|
3224
|
-
var HeightSchema2 =
|
|
3225
|
-
var FileS3UploadUrlSchema =
|
|
3226
|
-
uploadUrl:
|
|
3344
|
+
var HeightSchema2 = z11.number();
|
|
3345
|
+
var FileS3UploadUrlSchema = z11.object({
|
|
3346
|
+
uploadUrl: z11.string(),
|
|
3227
3347
|
fileId: FileIdSchema2
|
|
3228
3348
|
});
|
|
3229
|
-
var StartDocsRegisterResponseSchema =
|
|
3349
|
+
var StartDocsRegisterResponseSchema = z11.object({
|
|
3230
3350
|
docsRegistrationId: DocsRegistrationIdSchema,
|
|
3231
|
-
uploadUrls:
|
|
3232
|
-
skippedFiles:
|
|
3351
|
+
uploadUrls: z11.record(FilePathSchema, FileS3UploadUrlSchema),
|
|
3352
|
+
skippedFiles: z11.array(FilePathSchema)
|
|
3233
3353
|
});
|
|
3234
|
-
var PageContentSchema2 =
|
|
3235
|
-
markdown:
|
|
3354
|
+
var PageContentSchema2 = z11.object({
|
|
3355
|
+
markdown: z11.string(),
|
|
3236
3356
|
editThisPageUrl: UrlSchema2.optional(),
|
|
3237
3357
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
3238
|
-
rawMarkdown:
|
|
3358
|
+
rawMarkdown: z11.string().optional()
|
|
3239
3359
|
});
|
|
3240
|
-
var NavigationNodeMetadataSchema2 =
|
|
3241
|
-
icon:
|
|
3242
|
-
hidden:
|
|
3243
|
-
urlSlugOverride:
|
|
3244
|
-
fullSlug:
|
|
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()
|
|
3245
3365
|
});
|
|
3246
|
-
var PageMetadataSchema2 =
|
|
3366
|
+
var PageMetadataSchema2 = z11.object({
|
|
3247
3367
|
...NavigationNodeMetadataSchema2.shape,
|
|
3248
3368
|
id: PageIdSchema2,
|
|
3249
|
-
title:
|
|
3369
|
+
title: z11.string()
|
|
3250
3370
|
});
|
|
3251
|
-
var LinkMetadataSchema2 =
|
|
3252
|
-
title:
|
|
3253
|
-
icon:
|
|
3371
|
+
var LinkMetadataSchema2 = z11.object({
|
|
3372
|
+
title: z11.string(),
|
|
3373
|
+
icon: z11.string().optional(),
|
|
3254
3374
|
url: UrlSchema2,
|
|
3255
3375
|
target: LinkTargetSchema.optional()
|
|
3256
3376
|
});
|
|
3257
|
-
var ChangelogItemSchema2 =
|
|
3258
|
-
date:
|
|
3377
|
+
var ChangelogItemSchema2 = z11.object({
|
|
3378
|
+
date: z11.string(),
|
|
3259
3379
|
pageId: PageIdSchema2,
|
|
3260
|
-
hidden:
|
|
3261
|
-
tags:
|
|
3262
|
-
});
|
|
3263
|
-
var ChangelogSectionSchema2 =
|
|
3264
|
-
title:
|
|
3265
|
-
icon:
|
|
3266
|
-
hidden:
|
|
3267
|
-
description:
|
|
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(),
|
|
3268
3388
|
pageId: PageIdSchema2.optional(),
|
|
3269
|
-
items:
|
|
3270
|
-
urlSlug:
|
|
3271
|
-
fullSlug:
|
|
3389
|
+
items: z11.array(ChangelogItemSchema2),
|
|
3390
|
+
urlSlug: z11.string(),
|
|
3391
|
+
fullSlug: z11.array(z11.string()).optional()
|
|
3272
3392
|
});
|
|
3273
|
-
var ChangelogSectionV2Schema =
|
|
3393
|
+
var ChangelogSectionV2Schema = z11.object({
|
|
3274
3394
|
...NavigationNodeMetadataSchema2.shape,
|
|
3275
|
-
title:
|
|
3276
|
-
description:
|
|
3395
|
+
title: z11.string().optional(),
|
|
3396
|
+
description: z11.string().optional(),
|
|
3277
3397
|
pageId: PageIdSchema2.optional(),
|
|
3278
|
-
items:
|
|
3398
|
+
items: z11.array(ChangelogItemSchema2)
|
|
3279
3399
|
});
|
|
3280
|
-
var ChangelogSectionV3Schema2 =
|
|
3281
|
-
node:
|
|
3400
|
+
var ChangelogSectionV3Schema2 = z11.object({
|
|
3401
|
+
node: z11.unknown()
|
|
3282
3402
|
});
|
|
3283
|
-
var NavigationTabLinkSchema2 =
|
|
3284
|
-
title:
|
|
3285
|
-
icon:
|
|
3403
|
+
var NavigationTabLinkSchema2 = z11.object({
|
|
3404
|
+
title: z11.string(),
|
|
3405
|
+
icon: z11.string().optional(),
|
|
3286
3406
|
url: UrlSchema2,
|
|
3287
3407
|
target: LinkTargetSchema.optional()
|
|
3288
3408
|
});
|
|
3289
|
-
var ApiNavigationConfigItemSchema4 =
|
|
3290
|
-
() =>
|
|
3291
|
-
|
|
3292
|
-
type:
|
|
3409
|
+
var ApiNavigationConfigItemSchema4 = z11.lazy(
|
|
3410
|
+
() => z11.discriminatedUnion("type", [
|
|
3411
|
+
z11.object({
|
|
3412
|
+
type: z11.literal("subpackage"),
|
|
3293
3413
|
summaryPageId: PageIdSchema2.optional(),
|
|
3294
3414
|
subpackageId: SubpackageIdSchema2,
|
|
3295
|
-
items:
|
|
3415
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
3296
3416
|
}),
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
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 })
|
|
3301
3421
|
])
|
|
3302
3422
|
);
|
|
3303
|
-
var ApiNavigationConfigSubpackageSchema =
|
|
3423
|
+
var ApiNavigationConfigSubpackageSchema = z11.object({
|
|
3304
3424
|
summaryPageId: PageIdSchema2.optional(),
|
|
3305
3425
|
subpackageId: SubpackageIdSchema2,
|
|
3306
|
-
items:
|
|
3426
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
3307
3427
|
});
|
|
3308
|
-
var ApiNavigationConfigRootSchema4 =
|
|
3428
|
+
var ApiNavigationConfigRootSchema4 = z11.object({
|
|
3309
3429
|
summaryPageId: PageIdSchema2.optional(),
|
|
3310
|
-
items:
|
|
3430
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
3311
3431
|
});
|
|
3312
|
-
var ApiSectionSchema2 =
|
|
3432
|
+
var ApiSectionSchema2 = z11.object({
|
|
3313
3433
|
...NavigationNodeMetadataSchema2.shape,
|
|
3314
|
-
title:
|
|
3434
|
+
title: z11.string(),
|
|
3315
3435
|
api: ApiDefinitionIdSchema2,
|
|
3316
|
-
artifacts:
|
|
3317
|
-
sdks:
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
type:
|
|
3321
|
-
packageName:
|
|
3322
|
-
githubRepoName:
|
|
3323
|
-
version:
|
|
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()
|
|
3324
3444
|
}),
|
|
3325
|
-
|
|
3326
|
-
type:
|
|
3327
|
-
coordinate:
|
|
3328
|
-
githubRepoName:
|
|
3329
|
-
version:
|
|
3445
|
+
z11.object({
|
|
3446
|
+
type: z11.literal("maven"),
|
|
3447
|
+
coordinate: z11.string(),
|
|
3448
|
+
githubRepoName: z11.string(),
|
|
3449
|
+
version: z11.string()
|
|
3330
3450
|
}),
|
|
3331
|
-
|
|
3332
|
-
type:
|
|
3333
|
-
packageName:
|
|
3334
|
-
githubRepoName:
|
|
3335
|
-
version:
|
|
3451
|
+
z11.object({
|
|
3452
|
+
type: z11.literal("pypi"),
|
|
3453
|
+
packageName: z11.string(),
|
|
3454
|
+
githubRepoName: z11.string(),
|
|
3455
|
+
version: z11.string()
|
|
3336
3456
|
})
|
|
3337
3457
|
])
|
|
3338
3458
|
),
|
|
3339
|
-
postman:
|
|
3459
|
+
postman: z11.object({
|
|
3340
3460
|
url: UrlSchema2,
|
|
3341
|
-
githubRepoName:
|
|
3461
|
+
githubRepoName: z11.string().optional()
|
|
3342
3462
|
}).optional()
|
|
3343
3463
|
}).optional(),
|
|
3344
|
-
skipUrlSlug:
|
|
3345
|
-
showErrors:
|
|
3464
|
+
skipUrlSlug: z11.boolean().optional(),
|
|
3465
|
+
showErrors: z11.boolean().optional(),
|
|
3346
3466
|
changelog: ChangelogSectionSchema2.optional(),
|
|
3347
3467
|
changelogV2: ChangelogSectionV2Schema.optional(),
|
|
3348
3468
|
navigation: ApiNavigationConfigRootSchema4.optional(),
|
|
3349
|
-
longScrolling:
|
|
3350
|
-
flattened:
|
|
3469
|
+
longScrolling: z11.boolean().optional(),
|
|
3470
|
+
flattened: z11.boolean().optional()
|
|
3351
3471
|
});
|
|
3352
|
-
var ApiSectionV2Schema2 =
|
|
3353
|
-
node:
|
|
3472
|
+
var ApiSectionV2Schema2 = z11.object({
|
|
3473
|
+
node: z11.unknown()
|
|
3354
3474
|
});
|
|
3355
|
-
var DocsSectionSchema2 =
|
|
3356
|
-
() =>
|
|
3475
|
+
var DocsSectionSchema2 = z11.lazy(
|
|
3476
|
+
() => z11.object({
|
|
3357
3477
|
...NavigationNodeMetadataSchema2.shape,
|
|
3358
|
-
title:
|
|
3359
|
-
items:
|
|
3360
|
-
collapsed:
|
|
3361
|
-
collapsible:
|
|
3362
|
-
collapsedByDefault:
|
|
3363
|
-
skipUrlSlug:
|
|
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(),
|
|
3364
3484
|
overviewPageId: PageIdSchema2.optional()
|
|
3365
3485
|
})
|
|
3366
3486
|
);
|
|
3367
|
-
var NavigationItemSchema2 =
|
|
3368
|
-
() =>
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
type:
|
|
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"),
|
|
3374
3494
|
...NavigationNodeMetadataSchema2.shape,
|
|
3375
|
-
title:
|
|
3376
|
-
items:
|
|
3377
|
-
collapsed:
|
|
3378
|
-
collapsible:
|
|
3379
|
-
collapsedByDefault:
|
|
3380
|
-
skipUrlSlug:
|
|
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(),
|
|
3381
3501
|
overviewPageId: PageIdSchema2.optional()
|
|
3382
3502
|
}),
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
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 })
|
|
3386
3506
|
])
|
|
3387
3507
|
);
|
|
3388
|
-
var NavigationTabGroupSchema2 =
|
|
3508
|
+
var NavigationTabGroupSchema2 = z11.object({
|
|
3389
3509
|
...NavigationNodeMetadataSchema2.shape,
|
|
3390
|
-
title:
|
|
3391
|
-
items:
|
|
3392
|
-
skipUrlSlug:
|
|
3393
|
-
});
|
|
3394
|
-
var NavigationTabSchema2 =
|
|
3395
|
-
var NavigationTabV2Schema =
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
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 })
|
|
3400
3520
|
]);
|
|
3401
|
-
var UnversionedTabbedNavigationConfigSchema2 =
|
|
3402
|
-
tabs:
|
|
3403
|
-
tabsV2:
|
|
3521
|
+
var UnversionedTabbedNavigationConfigSchema2 = z11.object({
|
|
3522
|
+
tabs: z11.array(NavigationTabSchema2).optional(),
|
|
3523
|
+
tabsV2: z11.array(NavigationTabV2Schema).optional(),
|
|
3404
3524
|
landingPage: PageMetadataSchema2.optional()
|
|
3405
3525
|
});
|
|
3406
|
-
var UnversionedUntabbedNavigationConfigSchema2 =
|
|
3407
|
-
items:
|
|
3526
|
+
var UnversionedUntabbedNavigationConfigSchema2 = z11.object({
|
|
3527
|
+
items: z11.array(NavigationItemSchema2),
|
|
3408
3528
|
landingPage: PageMetadataSchema2.optional()
|
|
3409
3529
|
});
|
|
3410
|
-
var UnversionedNavigationConfigSchema2 =
|
|
3530
|
+
var UnversionedNavigationConfigSchema2 = z11.union([
|
|
3411
3531
|
UnversionedTabbedNavigationConfigSchema2,
|
|
3412
3532
|
UnversionedUntabbedNavigationConfigSchema2
|
|
3413
3533
|
]);
|
|
3414
|
-
var VersionedNavigationConfigDataSchema2 =
|
|
3534
|
+
var VersionedNavigationConfigDataSchema2 = z11.object({
|
|
3415
3535
|
version: VersionIdSchema2,
|
|
3416
|
-
urlSlugOverride:
|
|
3536
|
+
urlSlugOverride: z11.string().optional(),
|
|
3417
3537
|
availability: AvailabilitySchema2.optional(),
|
|
3418
3538
|
config: UnversionedNavigationConfigSchema2
|
|
3419
3539
|
});
|
|
3420
|
-
var VersionedNavigationConfigSchema2 =
|
|
3421
|
-
versions:
|
|
3540
|
+
var VersionedNavigationConfigSchema2 = z11.object({
|
|
3541
|
+
versions: z11.array(VersionedNavigationConfigDataSchema2)
|
|
3422
3542
|
});
|
|
3423
|
-
var NavigationConfigSchema2 =
|
|
3424
|
-
var ThemeConfigSchema2 =
|
|
3543
|
+
var NavigationConfigSchema2 = z11.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
|
|
3544
|
+
var ThemeConfigSchema2 = z11.object({
|
|
3425
3545
|
logo: FileIdSchema2.optional(),
|
|
3426
3546
|
backgroundImage: FileIdSchema2.optional(),
|
|
3427
3547
|
accentPrimary: RgbaColorSchema,
|
|
@@ -3443,37 +3563,37 @@ var ThemeConfigSchema2 = z10.object({
|
|
|
3443
3563
|
accent11: RgbaColorSchema.optional(),
|
|
3444
3564
|
accent12: RgbaColorSchema.optional()
|
|
3445
3565
|
});
|
|
3446
|
-
var DarkAndLightModeConfigSchema2 =
|
|
3566
|
+
var DarkAndLightModeConfigSchema2 = z11.object({
|
|
3447
3567
|
dark: ThemeConfigSchema2,
|
|
3448
3568
|
light: ThemeConfigSchema2
|
|
3449
3569
|
});
|
|
3450
|
-
var ColorsConfigV3Schema2 =
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
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 })
|
|
3454
3574
|
]);
|
|
3455
|
-
var DocsConfigSchema2 =
|
|
3456
|
-
title:
|
|
3575
|
+
var DocsConfigSchema2 = z11.object({
|
|
3576
|
+
title: z11.string().optional(),
|
|
3457
3577
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
3458
|
-
languages:
|
|
3578
|
+
languages: z11.array(LanguageSchema).optional(),
|
|
3459
3579
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
3460
|
-
announcement:
|
|
3580
|
+
announcement: z11.object({ text: z11.string() }).optional(),
|
|
3461
3581
|
navigation: NavigationConfigSchema2.optional(),
|
|
3462
|
-
root:
|
|
3463
|
-
navbarLinks:
|
|
3464
|
-
footerLinks:
|
|
3465
|
-
hideNavLinks:
|
|
3582
|
+
root: z11.custom().optional(),
|
|
3583
|
+
navbarLinks: z11.array(NavbarLinkSchema).optional(),
|
|
3584
|
+
footerLinks: z11.array(FooterLinkSchema).optional(),
|
|
3585
|
+
hideNavLinks: z11.boolean().optional(),
|
|
3466
3586
|
logoHeight: HeightSchema2.optional(),
|
|
3467
3587
|
logoHref: UrlSchema2.optional(),
|
|
3468
|
-
logoRightText:
|
|
3588
|
+
logoRightText: z11.string().optional(),
|
|
3469
3589
|
favicon: FileIdSchema2.optional(),
|
|
3470
3590
|
agents: AgentsConfigSchema.optional(),
|
|
3471
3591
|
metadata: MetadataConfigSchema.optional(),
|
|
3472
|
-
redirects:
|
|
3592
|
+
redirects: z11.array(RedirectConfigSchema).optional(),
|
|
3473
3593
|
colorsV3: ColorsConfigV3Schema2.optional(),
|
|
3474
3594
|
layout: DocsLayoutConfigSchema.optional(),
|
|
3475
3595
|
theme: DocsThemeConfigSchema.optional(),
|
|
3476
|
-
globalTheme:
|
|
3596
|
+
globalTheme: z11.string().optional(),
|
|
3477
3597
|
settings: DocsSettingsConfigSchema.optional(),
|
|
3478
3598
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
3479
3599
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -3483,8 +3603,8 @@ var DocsConfigSchema2 = z10.object({
|
|
|
3483
3603
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
3484
3604
|
pageActions: PageActionsConfigSchema.optional(),
|
|
3485
3605
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
3486
|
-
header:
|
|
3487
|
-
footer:
|
|
3606
|
+
header: z11.string().optional(),
|
|
3607
|
+
footer: z11.string().optional(),
|
|
3488
3608
|
backgroundImage: FileIdSchema2.optional(),
|
|
3489
3609
|
logoV2: ThemedFileIdSchema.optional(),
|
|
3490
3610
|
logo: FileIdSchema2.optional(),
|
|
@@ -3492,163 +3612,45 @@ var DocsConfigSchema2 = z10.object({
|
|
|
3492
3612
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
3493
3613
|
typography: DocsTypographyConfigSchema.optional()
|
|
3494
3614
|
});
|
|
3495
|
-
var DocsDefinitionSchema2 =
|
|
3496
|
-
pages:
|
|
3615
|
+
var DocsDefinitionSchema2 = z11.object({
|
|
3616
|
+
pages: z11.record(PageIdSchema2, PageContentSchema2),
|
|
3497
3617
|
config: DocsConfigSchema2,
|
|
3498
|
-
jsFiles:
|
|
3499
|
-
});
|
|
3500
|
-
var NpmPackageSchema2 =
|
|
3501
|
-
packageName:
|
|
3502
|
-
githubRepoName:
|
|
3503
|
-
version:
|
|
3504
|
-
});
|
|
3505
|
-
var MavenPackageSchema2 =
|
|
3506
|
-
coordinate:
|
|
3507
|
-
githubRepoName:
|
|
3508
|
-
version:
|
|
3509
|
-
});
|
|
3510
|
-
var PypiPackageSchema2 =
|
|
3511
|
-
packageName:
|
|
3512
|
-
githubRepoName:
|
|
3513
|
-
version:
|
|
3514
|
-
});
|
|
3515
|
-
var PublishedSdkSchema2 =
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
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 })
|
|
3519
3639
|
]);
|
|
3520
|
-
var PublishedPostmanCollectionSchema2 =
|
|
3640
|
+
var PublishedPostmanCollectionSchema2 = z11.object({
|
|
3521
3641
|
url: UrlSchema2,
|
|
3522
|
-
githubRepoName:
|
|
3642
|
+
githubRepoName: z11.string().optional()
|
|
3523
3643
|
});
|
|
3524
|
-
var ApiArtifactsSchema2 =
|
|
3525
|
-
sdks:
|
|
3644
|
+
var ApiArtifactsSchema2 = z11.object({
|
|
3645
|
+
sdks: z11.array(PublishedSdkSchema2),
|
|
3526
3646
|
postman: PublishedPostmanCollectionSchema2.optional()
|
|
3527
3647
|
});
|
|
3528
|
-
var InvalidCustomDomainErrorBodySchema =
|
|
3529
|
-
overlappingDomains:
|
|
3648
|
+
var InvalidCustomDomainErrorBodySchema = z11.object({
|
|
3649
|
+
overlappingDomains: z11.array(z11.array(z11.string()))
|
|
3530
3650
|
});
|
|
3531
|
-
var OverlappingCustomDomainsSchema =
|
|
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
|
-
};
|
|
3651
|
+
var OverlappingCustomDomainsSchema = z11.array(z11.string());
|
|
3623
3652
|
|
|
3624
3653
|
// 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);
|
|
3652
3654
|
var FilePathSchema2 = z12.string();
|
|
3653
3655
|
function FilePath2(value) {
|
|
3654
3656
|
return value;
|
|
@@ -5735,7 +5737,7 @@ var WithMetadataConfigSchema = z18.object({
|
|
|
5735
5737
|
nofollow: z18.boolean().optional(),
|
|
5736
5738
|
keywords: StringOrStringListSchema.optional()
|
|
5737
5739
|
});
|
|
5738
|
-
var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom"]);
|
|
5740
|
+
var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
5739
5741
|
var LogoConfigurationSchema = z18.object({
|
|
5740
5742
|
light: FileIdOrUrlSchema.optional(),
|
|
5741
5743
|
dark: FileIdOrUrlSchema.optional()
|