@fern-api/fdr-sdk 1.2.76-0ab42fc4bc → 1.2.76-2942df3aab

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.
@@ -6340,8 +6340,24 @@ var filesContract = {
6340
6340
  getFile: oc22.route({ method: "GET", path: "/" }).output(FileResponseSchema)
6341
6341
  };
6342
6342
 
6343
- // src/orpc-client/themes/contract.ts
6343
+ // src/orpc-client/org-config/contract.ts
6344
6344
  import * as z36 from "zod";
6345
+ var SEMVER_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/;
6346
+ var UpsertOrgConfigBodySchema = z36.object({
6347
+ // A semver string sets the bound; `null` clears it; omitting leaves it unchanged.
6348
+ cliVersionMin: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMin must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional(),
6349
+ cliVersionMax: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMax must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional()
6350
+ });
6351
+ var OrgConfigResponseSchema = z36.object({
6352
+ orgId: z36.string(),
6353
+ cliVersionMin: z36.string().optional(),
6354
+ cliVersionMax: z36.string().optional(),
6355
+ // Absent when no config has been stored for the org yet.
6356
+ updatedAt: z36.string().optional()
6357
+ });
6358
+
6359
+ // src/orpc-client/themes/contract.ts
6360
+ import * as z37 from "zod";
6345
6361
  var FERN_FILE_REF_KEY = "hash";
6346
6362
  var SHA256_RE = /^[0-9a-f]{64}$/;
6347
6363
  function isFernFileRef(value) {
@@ -6356,26 +6372,26 @@ function isFernFileRef(value) {
6356
6372
  return typeof hash === "string" && SHA256_RE.test(hash);
6357
6373
  }
6358
6374
  var THEME_NAME_RE = /^[a-zA-Z0-9_-]{1,64}$/;
6359
- var ThemeResponseSchema = z36.object({
6360
- id: z36.string(),
6361
- orgId: z36.string(),
6362
- name: z36.string(),
6363
- config: z36.unknown(),
6364
- updatedAt: z36.string()
6375
+ var ThemeResponseSchema = z37.object({
6376
+ id: z37.string(),
6377
+ orgId: z37.string(),
6378
+ name: z37.string(),
6379
+ config: z37.unknown(),
6380
+ updatedAt: z37.string()
6365
6381
  // ISO 8601 timestamp
6366
6382
  });
6367
- var ThemeListItemSchema = z36.object({
6368
- id: z36.string(),
6369
- orgId: z36.string(),
6370
- name: z36.string(),
6371
- updatedAt: z36.string()
6383
+ var ThemeListItemSchema = z37.object({
6384
+ id: z37.string(),
6385
+ orgId: z37.string(),
6386
+ name: z37.string(),
6387
+ updatedAt: z37.string()
6372
6388
  });
6373
- var ThemeListResponseSchema = z36.object({
6374
- themes: z36.array(ThemeListItemSchema)
6389
+ var ThemeListResponseSchema = z37.object({
6390
+ themes: z37.array(ThemeListItemSchema)
6375
6391
  });
6376
- var UpsertThemeBodySchema = z36.object({
6377
- name: z36.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
6378
- config: z36.unknown()
6392
+ var UpsertThemeBodySchema = z37.object({
6393
+ name: z37.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
6394
+ config: z37.unknown()
6379
6395
  });
6380
6396
  export {
6381
6397
  AlgoliaDomainInputSchema,
@@ -6756,6 +6772,7 @@ export {
6756
6772
  ObjectPropertySchema,
6757
6773
  ObjectTypeSchema,
6758
6774
  OpenRpcProtocolSchema,
6775
+ OrgConfigResponseSchema,
6759
6776
  OrgDocDomainsResponseSchema,
6760
6777
  OrgId,
6761
6778
  OrgIdSchema,
@@ -6940,6 +6957,7 @@ export {
6940
6957
  UpdateDeploymentStatusResponseSchema,
6941
6958
  UpdatePdfExportTaskInputSchema,
6942
6959
  UpsertCliReleaseInputSchema,
6960
+ UpsertOrgConfigBodySchema,
6943
6961
  UpsertThemeBodySchema,
6944
6962
  Url,
6945
6963
  UrlSchema,