@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.
@@ -408,6 +408,7 @@ __export(orpc_client_exports, {
408
408
  ObjectPropertySchema: () => ObjectPropertySchema,
409
409
  ObjectTypeSchema: () => ObjectTypeSchema,
410
410
  OpenRpcProtocolSchema: () => OpenRpcProtocolSchema,
411
+ OrgConfigResponseSchema: () => OrgConfigResponseSchema,
411
412
  OrgDocDomainsResponseSchema: () => OrgDocDomainsResponseSchema,
412
413
  OrgId: () => OrgId,
413
414
  OrgIdSchema: () => OrgIdSchema,
@@ -592,6 +593,7 @@ __export(orpc_client_exports, {
592
593
  UpdateDeploymentStatusResponseSchema: () => UpdateDeploymentStatusResponseSchema,
593
594
  UpdatePdfExportTaskInputSchema: () => UpdatePdfExportTaskInputSchema,
594
595
  UpsertCliReleaseInputSchema: () => UpsertCliReleaseInputSchema,
596
+ UpsertOrgConfigBodySchema: () => UpsertOrgConfigBodySchema,
595
597
  UpsertThemeBodySchema: () => UpsertThemeBodySchema,
596
598
  Url: () => Url,
597
599
  UrlSchema: () => UrlSchema,
@@ -7025,8 +7027,24 @@ var filesContract = {
7025
7027
  getFile: import_contract46.oc.route({ method: "GET", path: "/" }).output(FileResponseSchema)
7026
7028
  };
7027
7029
 
7028
- // src/orpc-client/themes/contract.ts
7030
+ // src/orpc-client/org-config/contract.ts
7029
7031
  var z36 = __toESM(require("zod"), 1);
7032
+ var SEMVER_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/;
7033
+ var UpsertOrgConfigBodySchema = z36.object({
7034
+ // A semver string sets the bound; `null` clears it; omitting leaves it unchanged.
7035
+ cliVersionMin: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMin must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional(),
7036
+ cliVersionMax: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMax must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional()
7037
+ });
7038
+ var OrgConfigResponseSchema = z36.object({
7039
+ orgId: z36.string(),
7040
+ cliVersionMin: z36.string().optional(),
7041
+ cliVersionMax: z36.string().optional(),
7042
+ // Absent when no config has been stored for the org yet.
7043
+ updatedAt: z36.string().optional()
7044
+ });
7045
+
7046
+ // src/orpc-client/themes/contract.ts
7047
+ var z37 = __toESM(require("zod"), 1);
7030
7048
  var FERN_FILE_REF_KEY = "hash";
7031
7049
  var SHA256_RE = /^[0-9a-f]{64}$/;
7032
7050
  function isFernFileRef(value) {
@@ -7041,26 +7059,26 @@ function isFernFileRef(value) {
7041
7059
  return typeof hash === "string" && SHA256_RE.test(hash);
7042
7060
  }
7043
7061
  var THEME_NAME_RE = /^[a-zA-Z0-9_-]{1,64}$/;
7044
- var ThemeResponseSchema = z36.object({
7045
- id: z36.string(),
7046
- orgId: z36.string(),
7047
- name: z36.string(),
7048
- config: z36.unknown(),
7049
- updatedAt: z36.string()
7062
+ var ThemeResponseSchema = z37.object({
7063
+ id: z37.string(),
7064
+ orgId: z37.string(),
7065
+ name: z37.string(),
7066
+ config: z37.unknown(),
7067
+ updatedAt: z37.string()
7050
7068
  // ISO 8601 timestamp
7051
7069
  });
7052
- var ThemeListItemSchema = z36.object({
7053
- id: z36.string(),
7054
- orgId: z36.string(),
7055
- name: z36.string(),
7056
- updatedAt: z36.string()
7070
+ var ThemeListItemSchema = z37.object({
7071
+ id: z37.string(),
7072
+ orgId: z37.string(),
7073
+ name: z37.string(),
7074
+ updatedAt: z37.string()
7057
7075
  });
7058
- var ThemeListResponseSchema = z36.object({
7059
- themes: z36.array(ThemeListItemSchema)
7076
+ var ThemeListResponseSchema = z37.object({
7077
+ themes: z37.array(ThemeListItemSchema)
7060
7078
  });
7061
- var UpsertThemeBodySchema = z36.object({
7062
- name: z36.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
7063
- config: z36.unknown()
7079
+ var UpsertThemeBodySchema = z37.object({
7080
+ name: z37.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
7081
+ config: z37.unknown()
7064
7082
  });
7065
7083
  // Annotate the CommonJS export names for ESM import in node:
7066
7084
  0 && (module.exports = {
@@ -7442,6 +7460,7 @@ var UpsertThemeBodySchema = z36.object({
7442
7460
  ObjectPropertySchema,
7443
7461
  ObjectTypeSchema,
7444
7462
  OpenRpcProtocolSchema,
7463
+ OrgConfigResponseSchema,
7445
7464
  OrgDocDomainsResponseSchema,
7446
7465
  OrgId,
7447
7466
  OrgIdSchema,
@@ -7626,6 +7645,7 @@ var UpsertThemeBodySchema = z36.object({
7626
7645
  UpdateDeploymentStatusResponseSchema,
7627
7646
  UpdatePdfExportTaskInputSchema,
7628
7647
  UpsertCliReleaseInputSchema,
7648
+ UpsertOrgConfigBodySchema,
7629
7649
  UpsertThemeBodySchema,
7630
7650
  Url,
7631
7651
  UrlSchema,