@gitbook/api 0.51.0 → 0.52.0

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/index.cjs CHANGED
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
238
238
 
239
239
  // package.json
240
240
  var name = "@gitbook/api";
241
- var version = "0.51.0";
241
+ var version = "0.52.0";
242
242
 
243
243
  // src/client.ts
244
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -378,23 +378,45 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
378
378
  SpaceEditMode2["Locked"] = "locked";
379
379
  return SpaceEditMode2;
380
380
  })(SpaceEditMode || {});
381
+ var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
382
+ GitSyncOperationState2["Running"] = "running";
383
+ GitSyncOperationState2["Failure"] = "failure";
384
+ GitSyncOperationState2["Success"] = "success";
385
+ return GitSyncOperationState2;
386
+ })(GitSyncOperationState || {});
387
+ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
388
+ MemberRole2["Admin"] = "admin";
389
+ MemberRole2["Create"] = "create";
390
+ MemberRole2["Edit"] = "edit";
391
+ MemberRole2["Review"] = "review";
392
+ MemberRole2["Comment"] = "comment";
393
+ MemberRole2["Read"] = "read";
394
+ return MemberRole2;
395
+ })(MemberRole || {});
381
396
  var RevisionPageLayoutOptionsCoverSize = /* @__PURE__ */ ((RevisionPageLayoutOptionsCoverSize2) => {
382
397
  RevisionPageLayoutOptionsCoverSize2["Hero"] = "hero";
383
398
  RevisionPageLayoutOptionsCoverSize2["Full"] = "full";
384
399
  return RevisionPageLayoutOptionsCoverSize2;
385
400
  })(RevisionPageLayoutOptionsCoverSize || {});
386
- var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
387
- RevisionPageLayoutPreset2["Docs"] = "docs";
388
- RevisionPageLayoutPreset2["Editorial"] = "editorial";
389
- RevisionPageLayoutPreset2["Landing"] = "landing";
390
- return RevisionPageLayoutPreset2;
391
- })(RevisionPageLayoutPreset || {});
392
- var RevisionPageType = /* @__PURE__ */ ((RevisionPageType2) => {
393
- RevisionPageType2["Document"] = "document";
394
- RevisionPageType2["Group"] = "group";
395
- RevisionPageType2["Link"] = "link";
396
- return RevisionPageType2;
397
- })(RevisionPageType || {});
401
+ var AnalyticsSearchPeriod = /* @__PURE__ */ ((AnalyticsSearchPeriod2) => {
402
+ AnalyticsSearchPeriod2["LastMonth"] = "last_month";
403
+ AnalyticsSearchPeriod2["LastWeek"] = "last_week";
404
+ AnalyticsSearchPeriod2["LastYear"] = "last_year";
405
+ return AnalyticsSearchPeriod2;
406
+ })(AnalyticsSearchPeriod || {});
407
+ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
408
+ AnalyticsTrafficInterval2["Daily"] = "daily";
409
+ AnalyticsTrafficInterval2["Weekly"] = "weekly";
410
+ AnalyticsTrafficInterval2["Monthly"] = "monthly";
411
+ return AnalyticsTrafficInterval2;
412
+ })(AnalyticsTrafficInterval || {});
413
+ var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
414
+ ChangeRequestStatus2["Draft"] = "draft";
415
+ ChangeRequestStatus2["Open"] = "open";
416
+ ChangeRequestStatus2["Archived"] = "archived";
417
+ ChangeRequestStatus2["Merged"] = "merged";
418
+ return ChangeRequestStatus2;
419
+ })(ChangeRequestStatus || {});
398
420
  var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
399
421
  ImportContentSource2["Website"] = "website";
400
422
  ImportContentSource2["Docx"] = "docx";
@@ -410,23 +432,6 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
410
432
  ImportContentSource2["OpenApi"] = "open-api";
411
433
  return ImportContentSource2;
412
434
  })(ImportContentSource || {});
413
- var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
414
- RevisionSemanticChangeType2["PageCreated"] = "page_created";
415
- RevisionSemanticChangeType2["PageEdited"] = "page_edited";
416
- RevisionSemanticChangeType2["PageDeleted"] = "page_deleted";
417
- RevisionSemanticChangeType2["PageMoved"] = "page_moved";
418
- RevisionSemanticChangeType2["FileCreated"] = "file_created";
419
- RevisionSemanticChangeType2["FileEdited"] = "file_edited";
420
- RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
421
- RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
422
- return RevisionSemanticChangeType2;
423
- })(RevisionSemanticChangeType || {});
424
- var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
425
- GitSyncOperationState2["Running"] = "running";
426
- GitSyncOperationState2["Failure"] = "failure";
427
- GitSyncOperationState2["Success"] = "success";
428
- return GitSyncOperationState2;
429
- })(GitSyncOperationState || {});
430
435
  var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
431
436
  OrganizationType2["Business"] = "business";
432
437
  OrganizationType2["Community"] = "community";
@@ -450,60 +455,17 @@ var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) =>
450
455
  OrganizationCommunityType2["Education"] = "education";
451
456
  return OrganizationCommunityType2;
452
457
  })(OrganizationCommunityType || {});
453
- var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
454
- MemberRole2["Admin"] = "admin";
455
- MemberRole2["Create"] = "create";
456
- MemberRole2["Edit"] = "edit";
457
- MemberRole2["Review"] = "review";
458
- MemberRole2["Comment"] = "comment";
459
- MemberRole2["Read"] = "read";
460
- return MemberRole2;
461
- })(MemberRole || {});
462
- var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
463
- TeamMemberRole2["Owner"] = "owner";
464
- TeamMemberRole2["Member"] = "member";
465
- return TeamMemberRole2;
466
- })(TeamMemberRole || {});
467
- var ContentAuditRelationType = /* @__PURE__ */ ((ContentAuditRelationType2) => {
468
- ContentAuditRelationType2["Contradiction"] = "contradiction";
469
- ContentAuditRelationType2["Duplicate"] = "duplicate";
470
- return ContentAuditRelationType2;
471
- })(ContentAuditRelationType || {});
472
- var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2) => {
473
- ContentAuditRelationStatus2["Pending"] = "pending";
474
- ContentAuditRelationStatus2["Rejected"] = "rejected";
475
- return ContentAuditRelationStatus2;
476
- })(ContentAuditRelationStatus || {});
477
- var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
478
- ContentReferenceStatus2["Ok"] = "ok";
479
- ContentReferenceStatus2["Broken"] = "broken";
480
- ContentReferenceStatus2["InApp"] = "in-app";
481
- return ContentReferenceStatus2;
482
- })(ContentReferenceStatus || {});
483
- var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
484
- ChangeRequestStatus2["Draft"] = "draft";
485
- ChangeRequestStatus2["Open"] = "open";
486
- ChangeRequestStatus2["Archived"] = "archived";
487
- ChangeRequestStatus2["Merged"] = "merged";
488
- return ChangeRequestStatus2;
489
- })(ChangeRequestStatus || {});
490
- var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
491
- ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
492
- ChangeRequestReviewStatus2["Approved"] = "approved";
493
- return ChangeRequestReviewStatus2;
494
- })(ChangeRequestReviewStatus || {});
495
- var AnalyticsSearchPeriod = /* @__PURE__ */ ((AnalyticsSearchPeriod2) => {
496
- AnalyticsSearchPeriod2["LastMonth"] = "last_month";
497
- AnalyticsSearchPeriod2["LastWeek"] = "last_week";
498
- AnalyticsSearchPeriod2["LastYear"] = "last_year";
499
- return AnalyticsSearchPeriod2;
500
- })(AnalyticsSearchPeriod || {});
501
- var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
502
- AnalyticsTrafficInterval2["Daily"] = "daily";
503
- AnalyticsTrafficInterval2["Weekly"] = "weekly";
504
- AnalyticsTrafficInterval2["Monthly"] = "monthly";
505
- return AnalyticsTrafficInterval2;
506
- })(AnalyticsTrafficInterval || {});
458
+ var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
459
+ IntegrationTarget2["Organization"] = "organization";
460
+ IntegrationTarget2["All"] = "all";
461
+ return IntegrationTarget2;
462
+ })(IntegrationTarget || {});
463
+ var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
464
+ IntegrationVisibility2["Public"] = "public";
465
+ IntegrationVisibility2["Private"] = "private";
466
+ IntegrationVisibility2["Unlisted"] = "unlisted";
467
+ return IntegrationVisibility2;
468
+ })(IntegrationVisibility || {});
507
469
  var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
508
470
  IntegrationScope2["EntitiesWrite"] = "entities:write";
509
471
  IntegrationScope2["SnippetsRead"] = "snippets:read";
@@ -524,16 +486,6 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
524
486
  IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
525
487
  return IntegrationScope2;
526
488
  })(IntegrationScope || {});
527
- var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
528
- IntegrationInstallationSpaceSelection2["All"] = "all";
529
- IntegrationInstallationSpaceSelection2["Selected"] = "selected";
530
- return IntegrationInstallationSpaceSelection2;
531
- })(IntegrationInstallationSpaceSelection || {});
532
- var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
533
- IntegrationInstallationSiteSelection2["All"] = "all";
534
- IntegrationInstallationSiteSelection2["Selected"] = "selected";
535
- return IntegrationInstallationSiteSelection2;
536
- })(IntegrationInstallationSiteSelection || {});
537
489
  var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
538
490
  IntegrationCategory2["Analytics"] = "analytics";
539
491
  IntegrationCategory2["Captures"] = "captures";
@@ -545,125 +497,34 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
545
497
  IntegrationCategory2["Other"] = "other";
546
498
  return IntegrationCategory2;
547
499
  })(IntegrationCategory || {});
548
- var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
549
- IntegrationVisibility2["Public"] = "public";
550
- IntegrationVisibility2["Private"] = "private";
551
- IntegrationVisibility2["Unlisted"] = "unlisted";
552
- return IntegrationVisibility2;
553
- })(IntegrationVisibility || {});
554
- var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationStatus2) => {
555
- IntegrationInstallationStatus2["Active"] = "active";
556
- IntegrationInstallationStatus2["Pending"] = "pending";
557
- IntegrationInstallationStatus2["Paused"] = "paused";
558
- return IntegrationInstallationStatus2;
559
- })(IntegrationInstallationStatus || {});
560
- var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
561
- IntegrationTarget2["Organization"] = "organization";
562
- IntegrationTarget2["All"] = "all";
563
- return IntegrationTarget2;
564
- })(IntegrationTarget || {});
565
- var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
566
- BillingInterval2["Monthly"] = "monthly";
567
- BillingInterval2["Yearly"] = "yearly";
568
- return BillingInterval2;
569
- })(BillingInterval || {});
570
- var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
571
- BillingProduct2["Free2024"] = "free_2024";
572
- BillingProduct2["Plus2024"] = "plus_2024";
573
- BillingProduct2["Pro2024"] = "pro_2024";
574
- BillingProduct2["Enterprise2024"] = "enterprise_2024";
575
- BillingProduct2["Free"] = "free";
576
- BillingProduct2["Plus"] = "plus";
577
- BillingProduct2["Pro"] = "pro";
578
- BillingProduct2["Team"] = "team";
579
- BillingProduct2["Business"] = "business";
580
- BillingProduct2["Legacy"] = "legacy";
581
- BillingProduct2["Startup"] = "startup";
582
- BillingProduct2["Enterprise"] = "enterprise";
583
- return BillingProduct2;
584
- })(BillingProduct || {});
585
- var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
586
- APIIntegrationScope2["IntegrationRead"] = "integration:read";
587
- APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
588
- APIIntegrationScope2["IntegrationInstallationRead"] = "integration:installation:read";
589
- APIIntegrationScope2["IntegrationInstallationUpdate"] = "integration:installation:update";
590
- return APIIntegrationScope2;
591
- })(APIIntegrationScope || {});
592
- var CloudflareHostnameStatus = /* @__PURE__ */ ((CloudflareHostnameStatus2) => {
593
- CloudflareHostnameStatus2["Pending"] = "pending";
594
- CloudflareHostnameStatus2["Active"] = "active";
595
- CloudflareHostnameStatus2["Blocked"] = "blocked";
596
- CloudflareHostnameStatus2["Moved"] = "moved";
597
- CloudflareHostnameStatus2["Deleted"] = "deleted";
598
- return CloudflareHostnameStatus2;
599
- })(CloudflareHostnameStatus || {});
600
- var CloudflareHostnameTLSStatus = /* @__PURE__ */ ((CloudflareHostnameTLSStatus2) => {
601
- CloudflareHostnameTLSStatus2["Initializing"] = "initializing";
602
- CloudflareHostnameTLSStatus2["PendingValidation"] = "pending_validation";
603
- CloudflareHostnameTLSStatus2["PendingIssuance"] = "pending_issuance";
604
- CloudflareHostnameTLSStatus2["PendingDeployment"] = "pending_deployment";
605
- CloudflareHostnameTLSStatus2["Active"] = "active";
606
- CloudflareHostnameTLSStatus2["PendingDeletion"] = "pending_deletion";
607
- CloudflareHostnameTLSStatus2["PendingCleanup"] = "pending_cleanup";
608
- CloudflareHostnameTLSStatus2["Deleted"] = "deleted";
609
- return CloudflareHostnameTLSStatus2;
610
- })(CloudflareHostnameTLSStatus || {});
611
- var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostnameTLSValidationMethod2) => {
612
- CloudflareHostnameTLSValidationMethod2["Http"] = "http";
613
- CloudflareHostnameTLSValidationMethod2["Txt"] = "txt";
614
- CloudflareHostnameTLSValidationMethod2["Email"] = "email";
615
- return CloudflareHostnameTLSValidationMethod2;
616
- })(CloudflareHostnameTLSValidationMethod || {});
617
- var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
618
- PurgeCDNCacheContextType2["Tags"] = "tags";
619
- PurgeCDNCacheContextType2["Hosts"] = "hosts";
620
- return PurgeCDNCacheContextType2;
621
- })(PurgeCDNCacheContextType || {});
622
- var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
623
- SpaceBlockReason2["DMCA"] = "DMCA";
624
- SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
625
- SpaceBlockReason2["MALWARE"] = "MALWARE";
626
- SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
627
- SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
628
- return SpaceBlockReason2;
629
- })(SpaceBlockReason || {});
630
- var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
631
- ContentKitIcon2["Close"] = "close";
632
- ContentKitIcon2["Edit"] = "edit";
633
- ContentKitIcon2["Github"] = "github";
634
- ContentKitIcon2["Gitlab"] = "gitlab";
635
- ContentKitIcon2["Maximize"] = "maximize";
636
- ContentKitIcon2["Email"] = "email";
637
- ContentKitIcon2["Settings"] = "settings";
638
- ContentKitIcon2["Search"] = "search";
639
- ContentKitIcon2["Delete"] = "delete";
640
- ContentKitIcon2["Star"] = "star";
641
- ContentKitIcon2["Warning"] = "warning";
642
- ContentKitIcon2["Link"] = "link";
643
- ContentKitIcon2["LinkExternal"] = "link-external";
644
- ContentKitIcon2["Eye"] = "eye";
645
- ContentKitIcon2["Lock"] = "lock";
646
- return ContentKitIcon2;
647
- })(ContentKitIcon || {});
648
- var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
649
- CustomFieldType2["Text"] = "text";
650
- CustomFieldType2["Number"] = "number";
651
- CustomFieldType2["Boolean"] = "boolean";
652
- CustomFieldType2["Tags"] = "tags";
653
- CustomFieldType2["SelectMulti"] = "select:multi";
654
- CustomFieldType2["SelectSingle"] = "select:single";
655
- return CustomFieldType2;
656
- })(CustomFieldType || {});
657
- var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
658
- CustomizationLocale2["En"] = "en";
659
- CustomizationLocale2["Fr"] = "fr";
660
- CustomizationLocale2["Es"] = "es";
661
- CustomizationLocale2["Zh"] = "zh";
662
- CustomizationLocale2["Ja"] = "ja";
663
- CustomizationLocale2["De"] = "de";
664
- CustomizationLocale2["PtBr"] = "pt-br";
665
- return CustomizationLocale2;
666
- })(CustomizationLocale || {});
500
+ var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
501
+ ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
502
+ ChangeRequestReviewStatus2["Approved"] = "approved";
503
+ return ChangeRequestReviewStatus2;
504
+ })(ChangeRequestReviewStatus || {});
505
+ var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
506
+ ContentReferenceStatus2["Ok"] = "ok";
507
+ ContentReferenceStatus2["Broken"] = "broken";
508
+ ContentReferenceStatus2["InApp"] = "in-app";
509
+ return ContentReferenceStatus2;
510
+ })(ContentReferenceStatus || {});
511
+ var RevisionPageType = /* @__PURE__ */ ((RevisionPageType2) => {
512
+ RevisionPageType2["Document"] = "document";
513
+ RevisionPageType2["Group"] = "group";
514
+ RevisionPageType2["Link"] = "link";
515
+ return RevisionPageType2;
516
+ })(RevisionPageType || {});
517
+ var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
518
+ RevisionPageLayoutPreset2["Docs"] = "docs";
519
+ RevisionPageLayoutPreset2["Editorial"] = "editorial";
520
+ RevisionPageLayoutPreset2["Landing"] = "landing";
521
+ return RevisionPageLayoutPreset2;
522
+ })(RevisionPageLayoutPreset || {});
523
+ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
524
+ CustomizationCorners2["Straight"] = "straight";
525
+ CustomizationCorners2["Rounded"] = "rounded";
526
+ return CustomizationCorners2;
527
+ })(CustomizationCorners || {});
667
528
  var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
668
529
  CustomizationFont2["ABCFavorit"] = "ABCFavorit";
669
530
  CustomizationFont2["Inter"] = "Inter";
@@ -682,6 +543,21 @@ var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
682
543
  CustomizationFont2["FiraSans"] = "FiraSans";
683
544
  return CustomizationFont2;
684
545
  })(CustomizationFont || {});
546
+ var CustomizationBackground = /* @__PURE__ */ ((CustomizationBackground2) => {
547
+ CustomizationBackground2["Plain"] = "plain";
548
+ CustomizationBackground2["Match"] = "match";
549
+ return CustomizationBackground2;
550
+ })(CustomizationBackground || {});
551
+ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
552
+ CustomizationLocale2["En"] = "en";
553
+ CustomizationLocale2["Fr"] = "fr";
554
+ CustomizationLocale2["Es"] = "es";
555
+ CustomizationLocale2["Zh"] = "zh";
556
+ CustomizationLocale2["Ja"] = "ja";
557
+ CustomizationLocale2["De"] = "de";
558
+ CustomizationLocale2["PtBr"] = "pt-br";
559
+ return CustomizationLocale2;
560
+ })(CustomizationLocale || {});
685
561
  var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
686
562
  CustomizationHeaderPreset2["Default"] = "default";
687
563
  CustomizationHeaderPreset2["Bold"] = "bold";
@@ -695,26 +571,96 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
695
571
  CustomizationThemeMode2["Dark"] = "dark";
696
572
  return CustomizationThemeMode2;
697
573
  })(CustomizationThemeMode || {});
698
- var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
699
- CustomizationCorners2["Straight"] = "straight";
700
- CustomizationCorners2["Rounded"] = "rounded";
701
- return CustomizationCorners2;
702
- })(CustomizationCorners || {});
703
- var CustomizationBackground = /* @__PURE__ */ ((CustomizationBackground2) => {
704
- CustomizationBackground2["Plain"] = "plain";
705
- CustomizationBackground2["Match"] = "match";
706
- return CustomizationBackground2;
707
- })(CustomizationBackground || {});
574
+ var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
575
+ CustomFieldType2["Text"] = "text";
576
+ CustomFieldType2["Number"] = "number";
577
+ CustomFieldType2["Boolean"] = "boolean";
578
+ CustomFieldType2["Tags"] = "tags";
579
+ CustomFieldType2["SelectMulti"] = "select:multi";
580
+ CustomFieldType2["SelectSingle"] = "select:single";
581
+ return CustomFieldType2;
582
+ })(CustomFieldType || {});
708
583
  var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
709
584
  PageFeedbackRating2["Bad"] = "bad";
710
585
  PageFeedbackRating2["Ok"] = "ok";
711
586
  PageFeedbackRating2["Good"] = "good";
712
587
  return PageFeedbackRating2;
713
588
  })(PageFeedbackRating || {});
589
+ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationStatus2) => {
590
+ IntegrationInstallationStatus2["Active"] = "active";
591
+ IntegrationInstallationStatus2["Pending"] = "pending";
592
+ IntegrationInstallationStatus2["Paused"] = "paused";
593
+ return IntegrationInstallationStatus2;
594
+ })(IntegrationInstallationStatus || {});
595
+ var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
596
+ IntegrationInstallationSpaceSelection2["All"] = "all";
597
+ IntegrationInstallationSpaceSelection2["Selected"] = "selected";
598
+ return IntegrationInstallationSpaceSelection2;
599
+ })(IntegrationInstallationSpaceSelection || {});
600
+ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
601
+ IntegrationInstallationSiteSelection2["All"] = "all";
602
+ IntegrationInstallationSiteSelection2["Selected"] = "selected";
603
+ return IntegrationInstallationSiteSelection2;
604
+ })(IntegrationInstallationSiteSelection || {});
605
+ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
606
+ ContentKitIcon2["Close"] = "close";
607
+ ContentKitIcon2["Edit"] = "edit";
608
+ ContentKitIcon2["Github"] = "github";
609
+ ContentKitIcon2["Gitlab"] = "gitlab";
610
+ ContentKitIcon2["Maximize"] = "maximize";
611
+ ContentKitIcon2["Email"] = "email";
612
+ ContentKitIcon2["Settings"] = "settings";
613
+ ContentKitIcon2["Search"] = "search";
614
+ ContentKitIcon2["Delete"] = "delete";
615
+ ContentKitIcon2["Star"] = "star";
616
+ ContentKitIcon2["Warning"] = "warning";
617
+ ContentKitIcon2["Link"] = "link";
618
+ ContentKitIcon2["LinkExternal"] = "link-external";
619
+ ContentKitIcon2["Eye"] = "eye";
620
+ ContentKitIcon2["Lock"] = "lock";
621
+ return ContentKitIcon2;
622
+ })(ContentKitIcon || {});
623
+ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
624
+ TeamMemberRole2["Owner"] = "owner";
625
+ TeamMemberRole2["Member"] = "member";
626
+ return TeamMemberRole2;
627
+ })(TeamMemberRole || {});
628
+ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
629
+ BillingProduct2["Free2024"] = "free_2024";
630
+ BillingProduct2["Plus2024"] = "plus_2024";
631
+ BillingProduct2["Pro2024"] = "pro_2024";
632
+ BillingProduct2["Enterprise2024"] = "enterprise_2024";
633
+ BillingProduct2["Free"] = "free";
634
+ BillingProduct2["Plus"] = "plus";
635
+ BillingProduct2["Pro"] = "pro";
636
+ BillingProduct2["Team"] = "team";
637
+ BillingProduct2["Business"] = "business";
638
+ BillingProduct2["Legacy"] = "legacy";
639
+ BillingProduct2["Startup"] = "startup";
640
+ BillingProduct2["Enterprise"] = "enterprise";
641
+ return BillingProduct2;
642
+ })(BillingProduct || {});
643
+ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
644
+ BillingInterval2["Monthly"] = "monthly";
645
+ BillingInterval2["Yearly"] = "yearly";
646
+ return BillingInterval2;
647
+ })(BillingInterval || {});
648
+ var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2) => {
649
+ ContentAuditRelationStatus2["Pending"] = "pending";
650
+ ContentAuditRelationStatus2["Rejected"] = "rejected";
651
+ return ContentAuditRelationStatus2;
652
+ })(ContentAuditRelationStatus || {});
653
+ var ContentAuditRelationType = /* @__PURE__ */ ((ContentAuditRelationType2) => {
654
+ ContentAuditRelationType2["Contradiction"] = "contradiction";
655
+ ContentAuditRelationType2["Duplicate"] = "duplicate";
656
+ return ContentAuditRelationType2;
657
+ })(ContentAuditRelationType || {});
714
658
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
715
659
  SiteType2["Basic"] = "basic";
716
660
  SiteType2["Standard"] = "standard";
717
661
  SiteType2["Premium"] = "premium";
662
+ SiteType2["LegacyBasic"] = "legacy-basic";
663
+ SiteType2["LegacyPremium"] = "legacy-premium";
718
664
  return SiteType2;
719
665
  })(SiteType || {});
720
666
  var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
@@ -745,6 +691,62 @@ var CustomHostnameErrorStatus = /* @__PURE__ */ ((CustomHostnameErrorStatus2) =>
745
691
  CustomHostnameErrorStatus2["InternalError"] = "internal_error";
746
692
  return CustomHostnameErrorStatus2;
747
693
  })(CustomHostnameErrorStatus || {});
694
+ var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
695
+ PurgeCDNCacheContextType2["Tags"] = "tags";
696
+ PurgeCDNCacheContextType2["Hosts"] = "hosts";
697
+ return PurgeCDNCacheContextType2;
698
+ })(PurgeCDNCacheContextType || {});
699
+ var CloudflareHostnameStatus = /* @__PURE__ */ ((CloudflareHostnameStatus2) => {
700
+ CloudflareHostnameStatus2["Pending"] = "pending";
701
+ CloudflareHostnameStatus2["Active"] = "active";
702
+ CloudflareHostnameStatus2["Blocked"] = "blocked";
703
+ CloudflareHostnameStatus2["Moved"] = "moved";
704
+ CloudflareHostnameStatus2["Deleted"] = "deleted";
705
+ return CloudflareHostnameStatus2;
706
+ })(CloudflareHostnameStatus || {});
707
+ var CloudflareHostnameTLSStatus = /* @__PURE__ */ ((CloudflareHostnameTLSStatus2) => {
708
+ CloudflareHostnameTLSStatus2["Initializing"] = "initializing";
709
+ CloudflareHostnameTLSStatus2["PendingValidation"] = "pending_validation";
710
+ CloudflareHostnameTLSStatus2["PendingIssuance"] = "pending_issuance";
711
+ CloudflareHostnameTLSStatus2["PendingDeployment"] = "pending_deployment";
712
+ CloudflareHostnameTLSStatus2["Active"] = "active";
713
+ CloudflareHostnameTLSStatus2["PendingDeletion"] = "pending_deletion";
714
+ CloudflareHostnameTLSStatus2["PendingCleanup"] = "pending_cleanup";
715
+ CloudflareHostnameTLSStatus2["Deleted"] = "deleted";
716
+ return CloudflareHostnameTLSStatus2;
717
+ })(CloudflareHostnameTLSStatus || {});
718
+ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostnameTLSValidationMethod2) => {
719
+ CloudflareHostnameTLSValidationMethod2["Http"] = "http";
720
+ CloudflareHostnameTLSValidationMethod2["Txt"] = "txt";
721
+ CloudflareHostnameTLSValidationMethod2["Email"] = "email";
722
+ return CloudflareHostnameTLSValidationMethod2;
723
+ })(CloudflareHostnameTLSValidationMethod || {});
724
+ var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
725
+ SpaceBlockReason2["DMCA"] = "DMCA";
726
+ SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
727
+ SpaceBlockReason2["MALWARE"] = "MALWARE";
728
+ SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
729
+ SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
730
+ return SpaceBlockReason2;
731
+ })(SpaceBlockReason || {});
732
+ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
733
+ RevisionSemanticChangeType2["PageCreated"] = "page_created";
734
+ RevisionSemanticChangeType2["PageEdited"] = "page_edited";
735
+ RevisionSemanticChangeType2["PageDeleted"] = "page_deleted";
736
+ RevisionSemanticChangeType2["PageMoved"] = "page_moved";
737
+ RevisionSemanticChangeType2["FileCreated"] = "file_created";
738
+ RevisionSemanticChangeType2["FileEdited"] = "file_edited";
739
+ RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
740
+ RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
741
+ return RevisionSemanticChangeType2;
742
+ })(RevisionSemanticChangeType || {});
743
+ var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
744
+ APIIntegrationScope2["IntegrationRead"] = "integration:read";
745
+ APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
746
+ APIIntegrationScope2["IntegrationInstallationRead"] = "integration:installation:read";
747
+ APIIntegrationScope2["IntegrationInstallationUpdate"] = "integration:installation:update";
748
+ return APIIntegrationScope2;
749
+ })(APIIntegrationScope || {});
748
750
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
749
751
  ContentType2["Json"] = "application/json";
750
752
  ContentType2["FormData"] = "multipart/form-data";
@@ -2859,22 +2861,6 @@ var Api = class extends HttpClient {
2859
2861
  secure: true,
2860
2862
  ...params
2861
2863
  }),
2862
- checkoutSite: (organizationId, siteId, data, params = {}) => this.request({
2863
- path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2864
- method: "POST",
2865
- body: data,
2866
- secure: true,
2867
- type: "application/json" /* Json */,
2868
- format: "json",
2869
- ...params
2870
- }),
2871
- getSiteCheckoutById: (organizationId, siteId, params = {}) => this.request({
2872
- path: `/orgs/${organizationId}/sites/${siteId}/checkout`,
2873
- method: "GET",
2874
- secure: true,
2875
- format: "json",
2876
- ...params
2877
- }),
2878
2864
  publishSite: (organizationId, siteId, params = {}) => this.request({
2879
2865
  path: `/orgs/${organizationId}/sites/${siteId}/publish`,
2880
2866
  method: "POST",
@@ -2921,6 +2907,30 @@ var Api = class extends HttpClient {
2921
2907
  secure: true,
2922
2908
  ...params
2923
2909
  }),
2910
+ updateSitePlan: (organizationId, siteId, data, params = {}) => this.request({
2911
+ path: `/orgs/${organizationId}/sites/${siteId}/plan`,
2912
+ method: "POST",
2913
+ body: data,
2914
+ secure: true,
2915
+ type: "application/json" /* Json */,
2916
+ format: "json",
2917
+ ...params
2918
+ }),
2919
+ previewSitePlanUpdate: (organizationId, siteId, query, params = {}) => this.request({
2920
+ path: `/orgs/${organizationId}/sites/${siteId}/plan`,
2921
+ method: "GET",
2922
+ query,
2923
+ secure: true,
2924
+ format: "json",
2925
+ ...params
2926
+ }),
2927
+ previewSitePublish: (organizationId, siteId, params = {}) => this.request({
2928
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/checkout`,
2929
+ method: "GET",
2930
+ secure: true,
2931
+ format: "json",
2932
+ ...params
2933
+ }),
2924
2934
  getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
2925
2935
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2926
2936
  method: "GET",