netlify-api 1.3.1 → 1.4.1

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.
@@ -291,6 +291,7 @@ const siteSchema = z__namespace.object({
291
291
  required: z__namespace.array(z__namespace.string()).optional(),
292
292
  required_functions: z__namespace.array(z__namespace.string()).optional(),
293
293
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
294
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
294
295
  error_message: z__namespace.string().optional(),
295
296
  branch: z__namespace.string().optional(),
296
297
  commit_ref: z__namespace.string().optional(),
@@ -393,6 +394,7 @@ const siteSetupSchema = z__namespace.object({
393
394
  required: z__namespace.array(z__namespace.string()).optional(),
394
395
  required_functions: z__namespace.array(z__namespace.string()).optional(),
395
396
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
397
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
396
398
  error_message: z__namespace.string().optional(),
397
399
  branch: z__namespace.string().optional(),
398
400
  commit_ref: z__namespace.string().optional(),
@@ -491,7 +493,7 @@ const repoInfoSchema = z__namespace.object({
491
493
  });
492
494
  const submissionSchema = z__namespace.object({
493
495
  id: z__namespace.string().optional(),
494
- number: z__namespace.int().optional(),
496
+ number: z__namespace.int32().optional(),
495
497
  email: z__namespace.string().optional(),
496
498
  name: z__namespace.string().optional(),
497
499
  first_name: z__namespace.string().optional(),
@@ -559,7 +561,7 @@ const formSchema = z__namespace.object({
559
561
  site_id: z__namespace.string().optional(),
560
562
  name: z__namespace.string().optional(),
561
563
  paths: z__namespace.array(z__namespace.string()).optional(),
562
- submission_count: z__namespace.int().optional(),
564
+ submission_count: z__namespace.int32().optional(),
563
565
  fields: z__namespace.array(z__namespace.object({})).optional(),
564
566
  created_at: z__namespace.string().optional()
565
567
  });
@@ -592,7 +594,7 @@ const functionSchema = z__namespace.object({
592
594
  region: z__namespace.string().optional()
593
595
  });
594
596
  const snippetSchema = z__namespace.object({
595
- id: z__namespace.int().optional(),
597
+ id: z__namespace.int32().optional(),
596
598
  site_id: z__namespace.string().optional(),
597
599
  title: z__namespace.string().optional(),
598
600
  general: z__namespace.string().optional(),
@@ -623,6 +625,7 @@ const deploySchema = z__namespace.object({
623
625
  required: z__namespace.array(z__namespace.string()).optional(),
624
626
  required_functions: z__namespace.array(z__namespace.string()).optional(),
625
627
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
628
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
626
629
  error_message: z__namespace.string().optional(),
627
630
  branch: z__namespace.string().optional(),
628
631
  commit_ref: z__namespace.string().optional(),
@@ -660,11 +663,15 @@ const deployEnvironmentVariableSchema = z__namespace.object({
660
663
  });
661
664
  const deployFilesSchema = z__namespace.object({
662
665
  files: z__namespace.object({}).optional().describe("A hash mapping file paths to SHA1 digests of the file contents."),
663
- zip: z__namespace.unknown().optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
666
+ zip: z__namespace.instanceof(File).optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
664
667
  draft: z__namespace.boolean().optional(),
665
668
  async: z__namespace.boolean().optional(),
666
669
  functions: z__namespace.object({}).optional(),
667
670
  edge_functions: z__namespace.object({}).optional().describe("A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"),
671
+ server: z__namespace.object({
672
+ sha: z__namespace.string().describe("The SHA256 digest of the server bundle."),
673
+ region: z__namespace.string().optional().describe("Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n")
674
+ }).optional().describe("The deploy's Netlify Server. A deploy has at most one. The response's\nrequired_server says whether it still needs to be uploaded.\n"),
668
675
  function_schedules: z__namespace.array(z__namespace.object({
669
676
  name: z__namespace.string().optional(),
670
677
  cron: z__namespace.string().optional()
@@ -1413,8 +1420,8 @@ const listSitesQueryFilterSchema = z__namespace.enum([
1413
1420
  "owner",
1414
1421
  "guest"
1415
1422
  ]).optional();
1416
- const listSitesQueryPageSchema = z__namespace.int().optional();
1417
- const listSitesQueryPerPageSchema = z__namespace.int().optional();
1423
+ const listSitesQueryPageSchema = z__namespace.int32().optional();
1424
+ const listSitesQueryPerPageSchema = z__namespace.int32().optional();
1418
1425
  const listSitesStatus200Schema = z__namespace.array(z__namespace.object({
1419
1426
  id: z__namespace.string().optional(),
1420
1427
  state: z__namespace.string().optional(),
@@ -1456,6 +1463,7 @@ const listSitesStatus200Schema = z__namespace.array(z__namespace.object({
1456
1463
  required: z__namespace.array(z__namespace.string()).optional(),
1457
1464
  required_functions: z__namespace.array(z__namespace.string()).optional(),
1458
1465
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
1466
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
1459
1467
  error_message: z__namespace.string().optional(),
1460
1468
  branch: z__namespace.string().optional(),
1461
1469
  commit_ref: z__namespace.string().optional(),
@@ -1565,6 +1573,7 @@ const createSiteStatus201Schema = z__namespace.object({
1565
1573
  required: z__namespace.array(z__namespace.string()).optional(),
1566
1574
  required_functions: z__namespace.array(z__namespace.string()).optional(),
1567
1575
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
1576
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
1568
1577
  error_message: z__namespace.string().optional(),
1569
1578
  branch: z__namespace.string().optional(),
1570
1579
  commit_ref: z__namespace.string().optional(),
@@ -1673,6 +1682,7 @@ const createSiteBodySchema = z__namespace.object({
1673
1682
  required: z__namespace.array(z__namespace.string()).optional(),
1674
1683
  required_functions: z__namespace.array(z__namespace.string()).optional(),
1675
1684
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
1685
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
1676
1686
  error_message: z__namespace.string().optional(),
1677
1687
  branch: z__namespace.string().optional(),
1678
1688
  commit_ref: z__namespace.string().optional(),
@@ -1795,6 +1805,7 @@ const getSiteStatus200Schema = z__namespace.object({
1795
1805
  required: z__namespace.array(z__namespace.string()).optional(),
1796
1806
  required_functions: z__namespace.array(z__namespace.string()).optional(),
1797
1807
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
1808
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
1798
1809
  error_message: z__namespace.string().optional(),
1799
1810
  branch: z__namespace.string().optional(),
1800
1811
  commit_ref: z__namespace.string().optional(),
@@ -1904,6 +1915,7 @@ const updateSiteStatus200Schema = z__namespace.object({
1904
1915
  required: z__namespace.array(z__namespace.string()).optional(),
1905
1916
  required_functions: z__namespace.array(z__namespace.string()).optional(),
1906
1917
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
1918
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
1907
1919
  error_message: z__namespace.string().optional(),
1908
1920
  branch: z__namespace.string().optional(),
1909
1921
  commit_ref: z__namespace.string().optional(),
@@ -2012,6 +2024,7 @@ const updateSiteBodySchema = z__namespace.object({
2012
2024
  required: z__namespace.array(z__namespace.string()).optional(),
2013
2025
  required_functions: z__namespace.array(z__namespace.string()).optional(),
2014
2026
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
2027
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
2015
2028
  error_message: z__namespace.string().optional(),
2016
2029
  branch: z__namespace.string().optional(),
2017
2030
  commit_ref: z__namespace.string().optional(),
@@ -2518,7 +2531,7 @@ const listSiteFormsStatus200Schema = z__namespace.array(z__namespace.object({
2518
2531
  site_id: z__namespace.string().optional(),
2519
2532
  name: z__namespace.string().optional(),
2520
2533
  paths: z__namespace.array(z__namespace.string()).optional(),
2521
- submission_count: z__namespace.int().optional(),
2534
+ submission_count: z__namespace.int32().optional(),
2522
2535
  fields: z__namespace.array(z__namespace.object({})).optional(),
2523
2536
  created_at: z__namespace.string().optional()
2524
2537
  }));
@@ -2538,11 +2551,11 @@ const deleteSiteFormStatusDefaultSchema = z__namespace.object({
2538
2551
  const deleteSiteFormResponseSchema = deleteSiteFormStatus204Schema;
2539
2552
  const deleteSiteFormErrorSchema = deleteSiteFormStatusDefaultSchema;
2540
2553
  const listSiteSubmissionsPathSiteIdSchema = z__namespace.string();
2541
- const listSiteSubmissionsQueryPageSchema = z__namespace.int().optional();
2542
- const listSiteSubmissionsQueryPerPageSchema = z__namespace.int().optional();
2554
+ const listSiteSubmissionsQueryPageSchema = z__namespace.int32().optional();
2555
+ const listSiteSubmissionsQueryPerPageSchema = z__namespace.int32().optional();
2543
2556
  const listSiteSubmissionsStatus200Schema = z__namespace.array(z__namespace.object({
2544
2557
  id: z__namespace.string().optional(),
2545
- number: z__namespace.int().optional(),
2558
+ number: z__namespace.int32().optional(),
2546
2559
  email: z__namespace.string().optional(),
2547
2560
  name: z__namespace.string().optional(),
2548
2561
  first_name: z__namespace.string().optional(),
@@ -2721,7 +2734,7 @@ const purgeCacheBodySchema = z__namespace.object({
2721
2734
  });
2722
2735
  const listSiteSnippetsPathSiteIdSchema = z__namespace.string();
2723
2736
  const listSiteSnippetsStatus200Schema = z__namespace.array(z__namespace.object({
2724
- id: z__namespace.int().optional(),
2737
+ id: z__namespace.int32().optional(),
2725
2738
  site_id: z__namespace.string().optional(),
2726
2739
  title: z__namespace.string().optional(),
2727
2740
  general: z__namespace.string().optional(),
@@ -2737,7 +2750,7 @@ const listSiteSnippetsResponseSchema = listSiteSnippetsStatus200Schema;
2737
2750
  const listSiteSnippetsErrorSchema = listSiteSnippetsStatusDefaultSchema;
2738
2751
  const createSiteSnippetPathSiteIdSchema = z__namespace.string();
2739
2752
  const createSiteSnippetStatus201Schema = z__namespace.object({
2740
- id: z__namespace.int().optional(),
2753
+ id: z__namespace.int32().optional(),
2741
2754
  site_id: z__namespace.string().optional(),
2742
2755
  title: z__namespace.string().optional(),
2743
2756
  general: z__namespace.string().optional(),
@@ -2752,7 +2765,7 @@ const createSiteSnippetStatusDefaultSchema = z__namespace.object({
2752
2765
  const createSiteSnippetResponseSchema = createSiteSnippetStatus201Schema;
2753
2766
  const createSiteSnippetErrorSchema = createSiteSnippetStatusDefaultSchema;
2754
2767
  const createSiteSnippetBodySchema = z__namespace.object({
2755
- id: z__namespace.int().optional(),
2768
+ id: z__namespace.int32().optional(),
2756
2769
  site_id: z__namespace.string().optional(),
2757
2770
  title: z__namespace.string().optional(),
2758
2771
  general: z__namespace.string().optional(),
@@ -2763,7 +2776,7 @@ const createSiteSnippetBodySchema = z__namespace.object({
2763
2776
  const getSiteSnippetPathSiteIdSchema = z__namespace.string();
2764
2777
  const getSiteSnippetPathSnippetIdSchema = z__namespace.string();
2765
2778
  const getSiteSnippetStatus200Schema = z__namespace.object({
2766
- id: z__namespace.int().optional(),
2779
+ id: z__namespace.int32().optional(),
2767
2780
  site_id: z__namespace.string().optional(),
2768
2781
  title: z__namespace.string().optional(),
2769
2782
  general: z__namespace.string().optional(),
@@ -2787,7 +2800,7 @@ const updateSiteSnippetStatusDefaultSchema = z__namespace.object({
2787
2800
  const updateSiteSnippetResponseSchema = updateSiteSnippetStatus204Schema;
2788
2801
  const updateSiteSnippetErrorSchema = updateSiteSnippetStatusDefaultSchema;
2789
2802
  const updateSiteSnippetBodySchema = z__namespace.object({
2790
- id: z__namespace.int().optional(),
2803
+ id: z__namespace.int32().optional(),
2791
2804
  site_id: z__namespace.string().optional(),
2792
2805
  title: z__namespace.string().optional(),
2793
2806
  general: z__namespace.string().optional(),
@@ -2915,8 +2928,8 @@ const listSiteDeploysQueryStateSchema = z__namespace.enum([
2915
2928
  ]).optional();
2916
2929
  const listSiteDeploysQueryBranchSchema = z__namespace.string().optional();
2917
2930
  const listSiteDeploysQueryLatestPublishedSchema = z__namespace.boolean().optional();
2918
- const listSiteDeploysQueryPageSchema = z__namespace.int().optional();
2919
- const listSiteDeploysQueryPerPageSchema = z__namespace.int().optional();
2931
+ const listSiteDeploysQueryPageSchema = z__namespace.int32().optional();
2932
+ const listSiteDeploysQueryPerPageSchema = z__namespace.int32().optional();
2920
2933
  const listSiteDeploysStatus200Schema = z__namespace.array(z__namespace.object({
2921
2934
  id: z__namespace.string().optional(),
2922
2935
  site_id: z__namespace.string().optional(),
@@ -2935,6 +2948,7 @@ const listSiteDeploysStatus200Schema = z__namespace.array(z__namespace.object({
2935
2948
  required: z__namespace.array(z__namespace.string()).optional(),
2936
2949
  required_functions: z__namespace.array(z__namespace.string()).optional(),
2937
2950
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
2951
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
2938
2952
  error_message: z__namespace.string().optional(),
2939
2953
  branch: z__namespace.string().optional(),
2940
2954
  commit_ref: z__namespace.string().optional(),
@@ -3006,6 +3020,7 @@ const createSiteDeployStatus200Schema = z__namespace.object({
3006
3020
  required: z__namespace.array(z__namespace.string()).optional(),
3007
3021
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3008
3022
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3023
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3009
3024
  error_message: z__namespace.string().optional(),
3010
3025
  branch: z__namespace.string().optional(),
3011
3026
  commit_ref: z__namespace.string().optional(),
@@ -3038,11 +3053,15 @@ const createSiteDeployResponseSchema = createSiteDeployStatus200Schema;
3038
3053
  const createSiteDeployErrorSchema = createSiteDeployStatusDefaultSchema;
3039
3054
  const createSiteDeployBodySchema = z__namespace.object({
3040
3055
  files: z__namespace.object({}).optional().describe("A hash mapping file paths to SHA1 digests of the file contents."),
3041
- zip: z__namespace.unknown().optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
3056
+ zip: z__namespace.instanceof(File).optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
3042
3057
  draft: z__namespace.boolean().optional(),
3043
3058
  async: z__namespace.boolean().optional(),
3044
3059
  functions: z__namespace.object({}).optional(),
3045
3060
  edge_functions: z__namespace.object({}).optional().describe("A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"),
3061
+ server: z__namespace.object({
3062
+ sha: z__namespace.string().describe("The SHA256 digest of the server bundle."),
3063
+ region: z__namespace.string().optional().describe("Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n")
3064
+ }).optional().describe("The deploy's Netlify Server. A deploy has at most one. The response's\nrequired_server says whether it still needs to be uploaded.\n"),
3046
3065
  function_schedules: z__namespace.array(z__namespace.object({
3047
3066
  name: z__namespace.string().optional(),
3048
3067
  cron: z__namespace.string().optional()
@@ -3134,6 +3153,7 @@ const getSiteDeployStatus200Schema = z__namespace.object({
3134
3153
  required: z__namespace.array(z__namespace.string()).optional(),
3135
3154
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3136
3155
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3156
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3137
3157
  error_message: z__namespace.string().optional(),
3138
3158
  branch: z__namespace.string().optional(),
3139
3159
  commit_ref: z__namespace.string().optional(),
@@ -3185,6 +3205,7 @@ const updateSiteDeployStatus200Schema = z__namespace.object({
3185
3205
  required: z__namespace.array(z__namespace.string()).optional(),
3186
3206
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3187
3207
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3208
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3188
3209
  error_message: z__namespace.string().optional(),
3189
3210
  branch: z__namespace.string().optional(),
3190
3211
  commit_ref: z__namespace.string().optional(),
@@ -3217,11 +3238,15 @@ const updateSiteDeployResponseSchema = updateSiteDeployStatus200Schema;
3217
3238
  const updateSiteDeployErrorSchema = updateSiteDeployStatusDefaultSchema;
3218
3239
  const updateSiteDeployBodySchema = z__namespace.object({
3219
3240
  files: z__namespace.object({}).optional().describe("A hash mapping file paths to SHA1 digests of the file contents."),
3220
- zip: z__namespace.unknown().optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
3241
+ zip: z__namespace.instanceof(File).optional().describe("A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"),
3221
3242
  draft: z__namespace.boolean().optional(),
3222
3243
  async: z__namespace.boolean().optional(),
3223
3244
  functions: z__namespace.object({}).optional(),
3224
3245
  edge_functions: z__namespace.object({}).optional().describe("A hash mapping edge-function bundle formats to the code_sha of each bundle. The\nresponse's required_edge_functions lists which of these still need to be uploaded.\n"),
3246
+ server: z__namespace.object({
3247
+ sha: z__namespace.string().describe("The SHA256 digest of the server bundle."),
3248
+ region: z__namespace.string().optional().describe("Where the server runs. Defaults to the region configured at the site level\nwhen absent.\n")
3249
+ }).optional().describe("The deploy's Netlify Server. A deploy has at most one. The response's\nrequired_server says whether it still needs to be uploaded.\n"),
3225
3250
  function_schedules: z__namespace.array(z__namespace.object({
3226
3251
  name: z__namespace.string().optional(),
3227
3252
  cron: z__namespace.string().optional()
@@ -3321,6 +3346,7 @@ const cancelSiteDeployStatus201Schema = z__namespace.object({
3321
3346
  required: z__namespace.array(z__namespace.string()).optional(),
3322
3347
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3323
3348
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3349
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3324
3350
  error_message: z__namespace.string().optional(),
3325
3351
  branch: z__namespace.string().optional(),
3326
3352
  commit_ref: z__namespace.string().optional(),
@@ -3371,6 +3397,7 @@ const restoreSiteDeployStatus201Schema = z__namespace.object({
3371
3397
  required: z__namespace.array(z__namespace.string()).optional(),
3372
3398
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3373
3399
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3400
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3374
3401
  error_message: z__namespace.string().optional(),
3375
3402
  branch: z__namespace.string().optional(),
3376
3403
  commit_ref: z__namespace.string().optional(),
@@ -3402,8 +3429,8 @@ const restoreSiteDeployStatusDefaultSchema = z__namespace.object({
3402
3429
  const restoreSiteDeployResponseSchema = restoreSiteDeployStatus201Schema;
3403
3430
  const restoreSiteDeployErrorSchema = restoreSiteDeployStatusDefaultSchema;
3404
3431
  const listSiteBuildsPathSiteIdSchema = z__namespace.string();
3405
- const listSiteBuildsQueryPageSchema = z__namespace.int().optional();
3406
- const listSiteBuildsQueryPerPageSchema = z__namespace.int().optional();
3432
+ const listSiteBuildsQueryPageSchema = z__namespace.int32().optional();
3433
+ const listSiteBuildsQueryPerPageSchema = z__namespace.int32().optional();
3407
3434
  const listSiteBuildsStatus200Schema = z__namespace.array(z__namespace.object({
3408
3435
  id: z__namespace.string().optional(),
3409
3436
  deploy_id: z__namespace.string().optional(),
@@ -3503,6 +3530,7 @@ const unlinkSiteRepoStatus200Schema = z__namespace.object({
3503
3530
  required: z__namespace.array(z__namespace.string()).optional(),
3504
3531
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3505
3532
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3533
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3506
3534
  error_message: z__namespace.string().optional(),
3507
3535
  branch: z__namespace.string().optional(),
3508
3536
  commit_ref: z__namespace.string().optional(),
@@ -3760,6 +3788,7 @@ const getDeployStatus200Schema = z__namespace.object({
3760
3788
  required: z__namespace.array(z__namespace.string()).optional(),
3761
3789
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3762
3790
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3791
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3763
3792
  error_message: z__namespace.string().optional(),
3764
3793
  branch: z__namespace.string().optional(),
3765
3794
  commit_ref: z__namespace.string().optional(),
@@ -3830,6 +3859,7 @@ const lockDeployStatus200Schema = z__namespace.object({
3830
3859
  required: z__namespace.array(z__namespace.string()).optional(),
3831
3860
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3832
3861
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3862
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3833
3863
  error_message: z__namespace.string().optional(),
3834
3864
  branch: z__namespace.string().optional(),
3835
3865
  commit_ref: z__namespace.string().optional(),
@@ -3879,6 +3909,7 @@ const unlockDeployStatus200Schema = z__namespace.object({
3879
3909
  required: z__namespace.array(z__namespace.string()).optional(),
3880
3910
  required_functions: z__namespace.array(z__namespace.string()).optional(),
3881
3911
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
3912
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
3882
3913
  error_message: z__namespace.string().optional(),
3883
3914
  branch: z__namespace.string().optional(),
3884
3915
  commit_ref: z__namespace.string().optional(),
@@ -3944,6 +3975,17 @@ const uploadDeployFunctionStatusDefaultSchema = z__namespace.object({
3944
3975
  });
3945
3976
  const uploadDeployFunctionResponseSchema = uploadDeployFunctionStatus200Schema;
3946
3977
  const uploadDeployFunctionErrorSchema = uploadDeployFunctionStatusDefaultSchema;
3978
+ const uploadDeployServerPathDeployIdSchema = z__namespace.string();
3979
+ const uploadDeployServerPathCodeShaSchema = z__namespace.string();
3980
+ const uploadDeployServerQuerySizeSchema = z__namespace.int().optional();
3981
+ const uploadDeployServerHeaderXNfRetryCountSchema = z__namespace.int().optional();
3982
+ const uploadDeployServerStatus200Schema = z__namespace.unknown();
3983
+ const uploadDeployServerStatusDefaultSchema = z__namespace.object({
3984
+ code: z__namespace.coerce.bigint().optional(),
3985
+ message: z__namespace.string()
3986
+ });
3987
+ const uploadDeployServerResponseSchema = uploadDeployServerStatus200Schema;
3988
+ const uploadDeployServerErrorSchema = uploadDeployServerStatusDefaultSchema;
3947
3989
  const uploadDeployEdgeFunctionPathDeployIdSchema = z__namespace.string();
3948
3990
  const uploadDeployEdgeFunctionPathCodeShaSchema = z__namespace.string();
3949
3991
  const uploadDeployEdgeFunctionHeaderXNfRetryCountSchema = z__namespace.int().optional();
@@ -4002,11 +4044,11 @@ const createPluginRunBodySchema = z__namespace.object({
4002
4044
  text: z__namespace.string().optional()
4003
4045
  }).optional();
4004
4046
  const listFormSubmissionsPathFormIdSchema = z__namespace.string();
4005
- const listFormSubmissionsQueryPageSchema = z__namespace.int().optional();
4006
- const listFormSubmissionsQueryPerPageSchema = z__namespace.int().optional();
4047
+ const listFormSubmissionsQueryPageSchema = z__namespace.int32().optional();
4048
+ const listFormSubmissionsQueryPerPageSchema = z__namespace.int32().optional();
4007
4049
  const listFormSubmissionsStatus200Schema = z__namespace.array(z__namespace.object({
4008
4050
  id: z__namespace.string().optional(),
4009
- number: z__namespace.int().optional(),
4051
+ number: z__namespace.int32().optional(),
4010
4052
  email: z__namespace.string().optional(),
4011
4053
  name: z__namespace.string().optional(),
4012
4054
  first_name: z__namespace.string().optional(),
@@ -4283,6 +4325,7 @@ const createSiteInTeamStatus201Schema = z__namespace.object({
4283
4325
  required: z__namespace.array(z__namespace.string()).optional(),
4284
4326
  required_functions: z__namespace.array(z__namespace.string()).optional(),
4285
4327
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
4328
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
4286
4329
  error_message: z__namespace.string().optional(),
4287
4330
  branch: z__namespace.string().optional(),
4288
4331
  commit_ref: z__namespace.string().optional(),
@@ -4391,6 +4434,7 @@ const createSiteInTeamBodySchema = z__namespace.object({
4391
4434
  required: z__namespace.array(z__namespace.string()).optional(),
4392
4435
  required_functions: z__namespace.array(z__namespace.string()).optional(),
4393
4436
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
4437
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
4394
4438
  error_message: z__namespace.string().optional(),
4395
4439
  branch: z__namespace.string().optional(),
4396
4440
  commit_ref: z__namespace.string().optional(),
@@ -4472,8 +4516,8 @@ const createSiteInTeamBodySchema = z__namespace.object({
4472
4516
  }).optional();
4473
4517
  const listSitesForAccountQueryNameSchema = z__namespace.string().optional();
4474
4518
  const listSitesForAccountPathAccountSlugSchema = z__namespace.string();
4475
- const listSitesForAccountQueryPageSchema = z__namespace.int().optional();
4476
- const listSitesForAccountQueryPerPageSchema = z__namespace.int().optional();
4519
+ const listSitesForAccountQueryPageSchema = z__namespace.int32().optional();
4520
+ const listSitesForAccountQueryPerPageSchema = z__namespace.int32().optional();
4477
4521
  const listSitesForAccountStatus200Schema = z__namespace.array(z__namespace.object({
4478
4522
  id: z__namespace.string().optional(),
4479
4523
  state: z__namespace.string().optional(),
@@ -4515,6 +4559,7 @@ const listSitesForAccountStatus200Schema = z__namespace.array(z__namespace.objec
4515
4559
  required: z__namespace.array(z__namespace.string()).optional(),
4516
4560
  required_functions: z__namespace.array(z__namespace.string()).optional(),
4517
4561
  required_edge_functions: z__namespace.array(z__namespace.string()).optional().describe("An array of code_shas for the edge-function bundles that need to be uploaded to\ncomplete the deploy.\n"),
4562
+ required_server: z__namespace.array(z__namespace.string()).optional().describe("The SHA256 digest of the deploy's Netlify Server bundle, when it still needs to\nbe uploaded to complete the deploy. A deploy has at most one server, so this\nholds either nothing or a single digest.\n"),
4518
4563
  error_message: z__namespace.string().optional(),
4519
4564
  branch: z__namespace.string().optional(),
4520
4565
  commit_ref: z__namespace.string().optional(),
@@ -4872,8 +4917,8 @@ const cancelAccountErrorSchema = cancelAccountStatusDefaultSchema;
4872
4917
  const listAccountAuditEventsPathAccountIdSchema = z__namespace.string();
4873
4918
  const listAccountAuditEventsQueryQuerySchema = z__namespace.string().optional();
4874
4919
  const listAccountAuditEventsQueryLogTypeSchema = z__namespace.string().optional();
4875
- const listAccountAuditEventsQueryPageSchema = z__namespace.int().optional();
4876
- const listAccountAuditEventsQueryPerPageSchema = z__namespace.int().optional();
4920
+ const listAccountAuditEventsQueryPageSchema = z__namespace.int32().optional();
4921
+ const listAccountAuditEventsQueryPerPageSchema = z__namespace.int32().optional();
4877
4922
  const listAccountAuditEventsStatus200Schema = z__namespace.array(z__namespace.object({
4878
4923
  id: z__namespace.string().optional(),
4879
4924
  account_id: z__namespace.string().optional(),
@@ -4894,8 +4939,8 @@ const listAccountAuditEventsResponseSchema = listAccountAuditEventsStatus200Sche
4894
4939
  const listAccountAuditEventsErrorSchema = listAccountAuditEventsStatusDefaultSchema;
4895
4940
  const listAgentRunnersQueryAccountIdSchema = z__namespace.string();
4896
4941
  const listAgentRunnersQuerySiteIdSchema = z__namespace.string();
4897
- const listAgentRunnersQueryPageSchema = z__namespace.int().optional();
4898
- const listAgentRunnersQueryPerPageSchema = z__namespace.int().optional();
4942
+ const listAgentRunnersQueryPageSchema = z__namespace.int32().optional();
4943
+ const listAgentRunnersQueryPerPageSchema = z__namespace.int32().optional();
4899
4944
  const listAgentRunnersQueryStateSchema = z__namespace.enum([
4900
4945
  "live",
4901
4946
  "error"
@@ -5158,8 +5203,8 @@ const agentRunnerCommitToBranchErrorSchema = z__namespace.union([
5158
5203
  agentRunnerCommitToBranchStatusDefaultSchema
5159
5204
  ]);
5160
5205
  const listAgentRunnerSessionsPathAgentRunnerIdSchema = z__namespace.string();
5161
- const listAgentRunnerSessionsQueryPageSchema = z__namespace.int().optional();
5162
- const listAgentRunnerSessionsQueryPerPageSchema = z__namespace.int().optional();
5206
+ const listAgentRunnerSessionsQueryPageSchema = z__namespace.int32().optional();
5207
+ const listAgentRunnerSessionsQueryPerPageSchema = z__namespace.int32().optional();
5163
5208
  const listAgentRunnerSessionsQueryStateSchema = z__namespace.enum([
5164
5209
  "live",
5165
5210
  "error"
@@ -5357,11 +5402,11 @@ const deleteAgentRunnerSessionResponseSchema = deleteAgentRunnerSessionStatus202
5357
5402
  const deleteAgentRunnerSessionErrorSchema = deleteAgentRunnerSessionStatusDefaultSchema;
5358
5403
  const listFormSubmissionPathSubmissionIdSchema = z__namespace.string();
5359
5404
  const listFormSubmissionQueryQuerySchema = z__namespace.string().optional();
5360
- const listFormSubmissionQueryPageSchema = z__namespace.int().optional();
5361
- const listFormSubmissionQueryPerPageSchema = z__namespace.int().optional();
5405
+ const listFormSubmissionQueryPageSchema = z__namespace.int32().optional();
5406
+ const listFormSubmissionQueryPerPageSchema = z__namespace.int32().optional();
5362
5407
  const listFormSubmissionStatus200Schema = z__namespace.array(z__namespace.object({
5363
5408
  id: z__namespace.string().optional(),
5364
- number: z__namespace.int().optional(),
5409
+ number: z__namespace.int32().optional(),
5365
5410
  email: z__namespace.string().optional(),
5366
5411
  name: z__namespace.string().optional(),
5367
5412
  first_name: z__namespace.string().optional(),
@@ -5891,8 +5936,8 @@ const deleteDnsRecordStatusDefaultSchema = z__namespace.object({
5891
5936
  const deleteDnsRecordResponseSchema = deleteDnsRecordStatus204Schema;
5892
5937
  const deleteDnsRecordErrorSchema = deleteDnsRecordStatusDefaultSchema;
5893
5938
  const listSiteDevServersPathSiteIdSchema = z__namespace.string();
5894
- const listSiteDevServersQueryPageSchema = z__namespace.int().optional();
5895
- const listSiteDevServersQueryPerPageSchema = z__namespace.int().optional();
5939
+ const listSiteDevServersQueryPageSchema = z__namespace.int32().optional();
5940
+ const listSiteDevServersQueryPerPageSchema = z__namespace.int32().optional();
5896
5941
  const listSiteDevServersStatus200Schema = z__namespace.array(z__namespace.object({
5897
5942
  id: z__namespace.string().optional(),
5898
5943
  site_id: z__namespace.string().optional(),
@@ -7840,4 +7885,12 @@ exports.uploadDeployFunctionQueryTimeoutSchema = uploadDeployFunctionQueryTimeou
7840
7885
  exports.uploadDeployFunctionResponseSchema = uploadDeployFunctionResponseSchema;
7841
7886
  exports.uploadDeployFunctionStatus200Schema = uploadDeployFunctionStatus200Schema;
7842
7887
  exports.uploadDeployFunctionStatusDefaultSchema = uploadDeployFunctionStatusDefaultSchema;
7888
+ exports.uploadDeployServerErrorSchema = uploadDeployServerErrorSchema;
7889
+ exports.uploadDeployServerHeaderXNfRetryCountSchema = uploadDeployServerHeaderXNfRetryCountSchema;
7890
+ exports.uploadDeployServerPathCodeShaSchema = uploadDeployServerPathCodeShaSchema;
7891
+ exports.uploadDeployServerPathDeployIdSchema = uploadDeployServerPathDeployIdSchema;
7892
+ exports.uploadDeployServerQuerySizeSchema = uploadDeployServerQuerySizeSchema;
7893
+ exports.uploadDeployServerResponseSchema = uploadDeployServerResponseSchema;
7894
+ exports.uploadDeployServerStatus200Schema = uploadDeployServerStatus200Schema;
7895
+ exports.uploadDeployServerStatusDefaultSchema = uploadDeployServerStatusDefaultSchema;
7843
7896
  exports.userSchema = userSchema;