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