@gitbook/api 0.100.0 → 0.102.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/client.d.ts CHANGED
@@ -571,14 +571,31 @@ export interface DocumentInlineMath {
571
571
  };
572
572
  isVoid: true;
573
573
  }
574
- export type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
575
- export interface DocumentFragment {
576
- object: 'fragment';
574
+ export interface DocumentBlockParagraph {
575
+ object: 'block';
576
+ type: 'paragraph';
577
577
  key?: string;
578
- fragment?: string;
579
- type?: string;
580
- nodes: DocumentBlocksEssentials[];
578
+ nodes: (DocumentInline | DocumentText)[];
579
+ isVoid?: false;
580
+ data?: object;
581
+ }
582
+ export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
583
+ export interface DocumentBlockHeading {
584
+ object: 'block';
585
+ type: 'heading-1' | 'heading-2' | 'heading-3';
586
+ key?: string;
587
+ nodes: (DocumentInline | DocumentText)[];
588
+ data: {
589
+ /** @pattern ^[-a-z0-9.+_]+$ */
590
+ id?: string;
591
+ };
592
+ meta?: {
593
+ /** Unique ID to be used in an URL for the block. */
594
+ id: string;
595
+ };
596
+ isVoid?: false;
581
597
  }
598
+ export type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
582
599
  export interface DocumentInlineAnnotation {
583
600
  object: 'inline';
584
601
  type: 'annotation';
@@ -617,40 +634,6 @@ export interface DocumentBlockCode {
617
634
  nodes: DocumentBlockCodeLine[];
618
635
  isVoid?: false;
619
636
  }
620
- export interface DocumentInlineMention {
621
- object: 'inline';
622
- type: 'mention';
623
- key?: string;
624
- data: {
625
- /** A relative reference to content in GitBook. */
626
- ref: ContentRef;
627
- };
628
- isVoid: true;
629
- }
630
- export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
631
- export interface DocumentBlockParagraph {
632
- object: 'block';
633
- type: 'paragraph';
634
- key?: string;
635
- nodes: (DocumentInline | DocumentText)[];
636
- isVoid?: false;
637
- data?: object;
638
- }
639
- export interface DocumentBlockHeading {
640
- object: 'block';
641
- type: 'heading-1' | 'heading-2' | 'heading-3';
642
- key?: string;
643
- nodes: (DocumentInline | DocumentText)[];
644
- data: {
645
- /** @pattern ^[-a-z0-9.+_]+$ */
646
- id?: string;
647
- };
648
- meta?: {
649
- /** Unique ID to be used in an URL for the block. */
650
- id: string;
651
- };
652
- isVoid?: false;
653
- }
654
637
  export interface DocumentBlockHint {
655
638
  object: 'block';
656
639
  type: 'hint';
@@ -759,6 +742,13 @@ export type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
759
742
  type: 'content-ref';
760
743
  };
761
744
  export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
745
+ export interface DocumentFragment {
746
+ object: 'fragment';
747
+ key?: string;
748
+ fragment?: string;
749
+ type?: string;
750
+ nodes: DocumentBlock[];
751
+ }
762
752
  export interface DocumentBlockTable {
763
753
  object: 'block';
764
754
  type: 'table';
@@ -877,6 +867,15 @@ export interface DocumentBlockEmbed {
877
867
  };
878
868
  isVoid: true;
879
869
  }
870
+ export interface DocumentBlockReusableContent {
871
+ object: 'block';
872
+ type: 'reusable-content';
873
+ key?: string;
874
+ data: {
875
+ ref: ContentRefReusableContent;
876
+ };
877
+ isVoid: true;
878
+ }
880
879
  export interface DocumentBlockExpandable {
881
880
  object: 'block';
882
881
  type: 'expandable';
@@ -895,7 +894,7 @@ export interface DocumentBlockExpandable {
895
894
  fragment: 'expandable-body';
896
895
  type: 'expandable-body';
897
896
  /** @minItems 1 */
898
- nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
897
+ nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
899
898
  }))[];
900
899
  meta?: {
901
900
  /** Unique ID to be used in an URL for the block. */
@@ -1035,15 +1034,6 @@ export interface DocumentBlockOpenAPISchemas {
1035
1034
  id: string;
1036
1035
  };
1037
1036
  }
1038
- export interface DocumentBlockReusableContent {
1039
- object: 'block';
1040
- type: 'reusable-content';
1041
- key?: string;
1042
- data: {
1043
- ref: ContentRefReusableContent;
1044
- };
1045
- isVoid: true;
1046
- }
1047
1037
  export interface DocumentBlockStepperStep {
1048
1038
  object: 'block';
1049
1039
  type: 'stepper-step';
@@ -1062,6 +1052,17 @@ export interface DocumentBlockStepper {
1062
1052
  isVoid?: false;
1063
1053
  data?: object;
1064
1054
  }
1055
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
1056
+ export interface DocumentInlineMention {
1057
+ object: 'inline';
1058
+ type: 'mention';
1059
+ key?: string;
1060
+ data: {
1061
+ /** A relative reference to content in GitBook. */
1062
+ ref: ContentRef;
1063
+ };
1064
+ isVoid: true;
1065
+ }
1065
1066
  export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1066
1067
  export interface JSONDocument {
1067
1068
  object: 'document';
@@ -1109,9 +1110,15 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
1109
1110
  * @default false
1110
1111
  */
1111
1112
  noRobotsIndex?: boolean;
1112
- /** Defined when the page was generated by a computed content. */
1113
- computed?: ComputedContentSource;
1114
- };
1113
+ } & ({
1114
+ /** Parameters for a computed content */
1115
+ computed: ComputedContentSource;
1116
+ /** Seed to use for the generation of IDs. */
1117
+ computedSeed: string;
1118
+ } | {
1119
+ /** ID of the document with the page body. If undefined, the page is empty. */
1120
+ documentId?: string;
1121
+ });
1115
1122
  export type RevisionPageLink = RevisionPageBase & {
1116
1123
  /** @deprecated */
1117
1124
  kind: 'link';
@@ -4043,6 +4050,95 @@ export interface SearchAIAnswerStream {
4043
4050
  /** Answer from AI for a question asked on a content. */
4044
4051
  answer: SearchAIAnswer;
4045
4052
  }
4053
+ export interface OpenAPISpecVersion {
4054
+ /** The object type, which is always "openapi-spec-version" */
4055
+ object: 'openapi-spec-version';
4056
+ /** Unique identifier */
4057
+ id: string;
4058
+ /** Date of creation */
4059
+ createdAt?: Timestamp;
4060
+ /** URL where the specification is accessible. */
4061
+ url: URL;
4062
+ /** URLs associated with the object */
4063
+ urls: {
4064
+ /** URL of the OpenAPI specification version in the API */
4065
+ location: URL;
4066
+ /** URL of the OpenAPI specification version in the application */
4067
+ app: URL;
4068
+ };
4069
+ }
4070
+ /** Content of the specification available through filesystem or public URL. */
4071
+ export interface OpenAPISpecContent {
4072
+ /** Filesystem containing all specifications. */
4073
+ filesystem: object;
4074
+ url: URL;
4075
+ }
4076
+ export interface StorageFileMetadata {
4077
+ /** Original filename */
4078
+ name: string;
4079
+ /** MIME type of the file */
4080
+ type: string;
4081
+ /** Size of the file in bytes */
4082
+ size: number;
4083
+ }
4084
+ export declare enum StorageUploadKind {
4085
+ CustomizationFont = "customization_font"
4086
+ }
4087
+ export interface StorageUploadURL {
4088
+ /** The kind of file to upload */
4089
+ object: 'storage-signed-url';
4090
+ /** Presigned URL for uploading the file */
4091
+ url: URL;
4092
+ /** The bucket object key for the file */
4093
+ key: string;
4094
+ }
4095
+ /**
4096
+ * The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
4097
+ * @minLength 1
4098
+ * @maxLength 50
4099
+ */
4100
+ export type FontFamily = string;
4101
+ /**
4102
+ * Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black).
4103
+ * @min 1
4104
+ * @max 1000
4105
+ */
4106
+ export type FontWeight = number;
4107
+ /** A font file referenced within a font-face declaration, specifying the file's location and format. */
4108
+ export interface FontSource {
4109
+ /** The absolute or relative URL pointing to the font file. */
4110
+ url: URL;
4111
+ /** The format of the font file. Prefer 'woff2' for modern browsers. */
4112
+ format?: 'woff2' | 'woff';
4113
+ }
4114
+ /** A single font-face declaration specifying the weight and source files for a particular variation of the font. */
4115
+ export interface FontFace {
4116
+ /** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
4117
+ weight: FontWeight;
4118
+ /**
4119
+ * Font source files provided in supported formats (e.g., woff2, woff).
4120
+ * @minItems 1
4121
+ */
4122
+ sources: FontSource[];
4123
+ }
4124
+ /** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
4125
+ export interface CustomizationFontDefinition {
4126
+ /** A globally unique identifier for the font definition. */
4127
+ id: string;
4128
+ /** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
4129
+ fontFamily: FontFamily;
4130
+ /**
4131
+ * A list of font-face definitions, specifying variations such as weight and style.
4132
+ * @minItems 1
4133
+ */
4134
+ fontFaces: FontFace[];
4135
+ }
4136
+ /**
4137
+ * The path of the file in the storage bucket
4138
+ * @minLength 1
4139
+ * @maxLength 512
4140
+ */
4141
+ export type StorageFileKey = string;
4046
4142
  /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
4047
4143
  export type BillingOperationPreviewResponse = {
4048
4144
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
@@ -4116,47 +4212,6 @@ export declare enum CustomizationDefaultFont {
4116
4212
  Poppins = "Poppins",
4117
4213
  FiraSans = "FiraSans"
4118
4214
  }
4119
- /**
4120
- * The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
4121
- * @minLength 1
4122
- * @maxLength 50
4123
- */
4124
- export type FontFamily = string;
4125
- /**
4126
- * Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black).
4127
- * @min 1
4128
- * @max 1000
4129
- */
4130
- export type FontWeight = number;
4131
- /** A font file referenced within a font-face declaration, specifying the file's location and format. */
4132
- export interface FontSource {
4133
- /** The absolute or relative URL pointing to the font file. */
4134
- url: URL;
4135
- /** The format of the font file. Prefer 'woff2' for modern browsers. */
4136
- format?: 'woff2' | 'woff';
4137
- }
4138
- /** A single font-face declaration specifying the weight and source files for a particular variation of the font. */
4139
- export interface FontFace {
4140
- /** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
4141
- weight: FontWeight;
4142
- /**
4143
- * Font source files provided in supported formats (e.g., woff2, woff).
4144
- * @minItems 1
4145
- */
4146
- sources: FontSource[];
4147
- }
4148
- /** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
4149
- export interface CustomizationFontDefinition {
4150
- /** A globally unique identifier for the font definition. */
4151
- id: string;
4152
- /** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
4153
- fontFamily: FontFamily;
4154
- /**
4155
- * A list of font-face definitions, specifying variations such as weight and style.
4156
- * @minItems 1
4157
- */
4158
- fontFaces: FontFace[];
4159
- }
4160
4215
  export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinition;
4161
4216
  /**
4162
4217
  * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
@@ -4242,6 +4297,20 @@ export interface CustomizationFooterGroup {
4242
4297
  title: string;
4243
4298
  links: CustomizationContentLink[];
4244
4299
  }
4300
+ export interface CustomizationAnnouncement {
4301
+ /** Whether to show the site's announcement. */
4302
+ enabled: boolean;
4303
+ /**
4304
+ * The text content of the announcement.
4305
+ * @minLength 2
4306
+ * @maxLength 128
4307
+ */
4308
+ message: string;
4309
+ /** The content or URL the announcement links to when clicked. */
4310
+ link?: CustomizationContentLink;
4311
+ /** The style of the announcement. Used to style the banner with the right semantic color and enable/disable features like hiding the banner. */
4312
+ style: 'info' | 'warning' | 'danger' | 'success';
4313
+ }
4245
4314
  export declare enum CustomizationThemeMode {
4246
4315
  Light = "light",
4247
4316
  Dark = "dark"
@@ -4330,6 +4399,7 @@ export interface SiteCustomizationSettings {
4330
4399
  /** @maxLength 300 */
4331
4400
  copyright?: string;
4332
4401
  };
4402
+ announcement?: CustomizationAnnouncement;
4333
4403
  /** Customization options for the dark/light theme modes. */
4334
4404
  themes: {
4335
4405
  default: CustomizationThemeMode;
@@ -4522,10 +4592,15 @@ export interface SiteInsightsEventSession {
4522
4592
  /** Referrer of the session */
4523
4593
  referrer: '' | null | URL;
4524
4594
  /**
4525
- * Authentication token of the visitor.
4526
- * This is used to identify the visitor with adaptive content.
4595
+ * Deprecated, use visitorAuthClaims instead.
4596
+ * @deprecated
4527
4597
  */
4528
4598
  visitorAuthToken?: string | null;
4599
+ /**
4600
+ * Claims of the visitor.
4601
+ * This is used to identify the visitor with adaptive content.
4602
+ */
4603
+ visitorAuthClaims?: PlainObject;
4529
4604
  }
4530
4605
  /** Location of the event. */
4531
4606
  export interface SiteInsightsEventLocation {
@@ -5003,25 +5078,6 @@ export interface SiteRedirect {
5003
5078
  source: SiteRedirectSourcePath;
5004
5079
  destination: SiteRedirectDestination;
5005
5080
  }
5006
- export interface StorageFileMetadata {
5007
- /** Original filename */
5008
- name: string;
5009
- /** MIME type of the file */
5010
- type: string;
5011
- /** Size of the file in bytes */
5012
- size: number;
5013
- }
5014
- export declare enum StorageUploadKind {
5015
- CustomizationFont = "customization_font"
5016
- }
5017
- export interface StorageUploadURL {
5018
- /** The kind of file to upload */
5019
- object: 'storage-signed-url';
5020
- /** Presigned URL for uploading the file */
5021
- url: URL;
5022
- /** The bucket object key for the file */
5023
- key: string;
5024
- }
5025
5081
  export declare enum CustomHostnameDnsStatus {
5026
5082
  DnsPassed = "dns_passed",
5027
5083
  DnsWrongCname = "dns_wrong_cname",
@@ -5231,6 +5287,8 @@ export interface PublishedSiteContent {
5231
5287
  pathname: string;
5232
5288
  /** Prefix of the path in the URL dedicated to the space */
5233
5289
  basePath: string;
5290
+ /** Prefix of the path in the URL dedicated to the site */
5291
+ siteBasePath: string;
5234
5292
  /** Short-lived API token to fetch content related to the space in the context of the URL. */
5235
5293
  apiToken: string;
5236
5294
  /** ID of the organization. */
@@ -5247,29 +5305,6 @@ export type PublishedSiteContentLookup = {
5247
5305
  target: 'application' | 'content' | 'external';
5248
5306
  redirect: URL;
5249
5307
  } | PublishedSiteContent;
5250
- export interface OpenAPISpecVersion {
5251
- /** The object type, which is always "openapi-spec-version" */
5252
- object: 'openapi-spec-version';
5253
- /** Unique identifier */
5254
- id: string;
5255
- /** Date of creation */
5256
- createdAt?: Timestamp;
5257
- /** URL where the specification is accessible. */
5258
- url: URL;
5259
- /** URLs associated with the object */
5260
- urls: {
5261
- /** URL of the OpenAPI specification version in the API */
5262
- location: URL;
5263
- /** URL of the OpenAPI specification version in the application */
5264
- app: URL;
5265
- };
5266
- }
5267
- /** Content of the specification available through filesystem or public URL. */
5268
- export interface OpenAPISpecContent {
5269
- /** Filesystem containing all specifications. */
5270
- filesystem: object;
5271
- url: URL;
5272
- }
5273
5308
  /**
5274
5309
  * @minLength 64
5275
5310
  * @maxLength 64
@@ -5368,7 +5403,6 @@ export interface ContentPublishingAuth {
5368
5403
  */
5369
5404
  fallbackURL?: string;
5370
5405
  }
5371
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5372
5406
  /** Dependency for a computation, before its resolution. */
5373
5407
  export interface ComputedContentDependency {
5374
5408
  ref: ComputedContentDependencyRef;
@@ -5753,6 +5787,11 @@ export interface OrganizationOpenAPISpecsChannel {
5753
5787
  channel: 'organization-openapi-specs';
5754
5788
  organization: string;
5755
5789
  }
5790
+ /** Subscription channel for changes in custom fonts in an organization. */
5791
+ export interface OrganizationCustomFontsChannel {
5792
+ channel: 'organization-fonts';
5793
+ organization: string;
5794
+ }
5756
5795
  export interface SpaceCommentsChannel {
5757
5796
  channel: 'space-comments';
5758
5797
  space: string;
@@ -5881,7 +5920,7 @@ export interface OpenAPISpecChannel {
5881
5920
  openAPISpec: string;
5882
5921
  }
5883
5922
  /** Channel to subscribe to for realtime updates. */
5884
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel;
5923
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel;
5885
5924
  export interface GitSyncOperationChannelData {
5886
5925
  channel: 'space-gitsync-operation';
5887
5926
  data: GitSyncOperation;
@@ -6003,12 +6042,6 @@ export declare enum SiteAdsStatus {
6003
6042
  Rejected = "rejected",
6004
6043
  Disabled = "disabled"
6005
6044
  }
6006
- /**
6007
- * The path of the file in the storage bucket
6008
- * @minLength 1
6009
- * @maxLength 512
6010
- */
6011
- export type StorageFileKey = string;
6012
6045
  export interface Seat {
6013
6046
  object: 'seat';
6014
6047
  /** The unique ID of the organization */
@@ -6781,6 +6814,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6781
6814
  getComputedDocument: (spaceId: string, data: {
6782
6815
  /** Parameters for a computed content */
6783
6816
  source: ComputedContentSource;
6817
+ /** Seed to use for the generation of IDs. */
6818
+ seed: string;
6784
6819
  }, query?: {
6785
6820
  /** Version of the schema used for the document. */
6786
6821
  schema?: "current" | "next";
@@ -6797,6 +6832,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6797
6832
  getComputedRevision: (spaceId: string, data: {
6798
6833
  /** Parameters for a computed content */
6799
6834
  source: ComputedContentSource;
6835
+ /** Seed to use for the generation of IDs. */
6836
+ seed: string;
6800
6837
  }, params?: RequestParams) => Promise<HttpResponse<{
6801
6838
  pages: RevisionPage[];
6802
6839
  files: RevisionFile[];
@@ -9644,6 +9681,260 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9644
9681
  /** Return query details in the result */
9645
9682
  details?: boolean;
9646
9683
  }, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
9684
+ /**
9685
+ * No description
9686
+ *
9687
+ * @tags openapi
9688
+ * @name ListOpenApiSpecs
9689
+ * @summary List all the OpenAPI specifications in the organization
9690
+ * @request GET:/orgs/{organizationId}/openapi
9691
+ * @secure
9692
+ */
9693
+ listOpenApiSpecs: (organizationId: string, query?: {
9694
+ /** Identifier of the page results to fetch. */
9695
+ page?: string;
9696
+ /**
9697
+ * The number of results per page
9698
+ * @min 0
9699
+ * @max 1000
9700
+ */
9701
+ limit?: number;
9702
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9703
+ items: OpenAPISpec[];
9704
+ }, Error>>;
9705
+ /**
9706
+ * No description
9707
+ *
9708
+ * @tags openapi
9709
+ * @name GetOpenApiSpecBySlug
9710
+ * @summary Get an organization OpenAPI specification by its slug
9711
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}
9712
+ * @secure
9713
+ */
9714
+ getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
9715
+ error: {
9716
+ /** @format int32 */
9717
+ code: 404;
9718
+ message: string;
9719
+ };
9720
+ }>>;
9721
+ /**
9722
+ * No description
9723
+ *
9724
+ * @tags openapi
9725
+ * @name CreateOrUpdateOpenApiSpecBySlug
9726
+ * @summary Create or update an organization OpenAPI specification by its slug
9727
+ * @request PUT:/orgs/{organizationId}/openapi/{specSlug}
9728
+ * @secure
9729
+ */
9730
+ createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
9731
+ /** Create a specification from an URL */
9732
+ source: {
9733
+ url: URL;
9734
+ } | {
9735
+ /**
9736
+ * OpenAPI specification as text
9737
+ * @minLength 1
9738
+ */
9739
+ text: string;
9740
+ };
9741
+ }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
9742
+ error: {
9743
+ /** @format int32 */
9744
+ code: 400;
9745
+ message: string;
9746
+ };
9747
+ }>>;
9748
+ /**
9749
+ * No description
9750
+ *
9751
+ * @tags openapi
9752
+ * @name DeleteOpenApiSpecBySlug
9753
+ * @summary Delete an organization OpenAPI specification by its slug
9754
+ * @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
9755
+ * @secure
9756
+ */
9757
+ deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9758
+ /**
9759
+ * No description
9760
+ *
9761
+ * @tags openapi
9762
+ * @name ListOpenApiSpecVersions
9763
+ * @summary List all the OpenAPI specification versions
9764
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
9765
+ * @secure
9766
+ */
9767
+ listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
9768
+ /** Identifier of the page results to fetch. */
9769
+ page?: string;
9770
+ /**
9771
+ * The number of results per page
9772
+ * @min 0
9773
+ * @max 1000
9774
+ */
9775
+ limit?: number;
9776
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9777
+ items: OpenAPISpecVersion[];
9778
+ }, Error | {
9779
+ error: {
9780
+ /** @format int32 */
9781
+ code: 404;
9782
+ message: string;
9783
+ };
9784
+ }>>;
9785
+ /**
9786
+ * No description
9787
+ *
9788
+ * @tags openapi
9789
+ * @name GetLatestOpenApiSpecVersion
9790
+ * @summary Get the latest OpenAPI specification version
9791
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
9792
+ * @secure
9793
+ */
9794
+ getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
9795
+ error: {
9796
+ /** @format int32 */
9797
+ code: 404;
9798
+ message: string;
9799
+ };
9800
+ }>>;
9801
+ /**
9802
+ * No description
9803
+ *
9804
+ * @tags openapi
9805
+ * @name GetLatestOpenApiSpecVersionContent
9806
+ * @summary Get the latest OpenAPI specification version content
9807
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
9808
+ * @secure
9809
+ */
9810
+ getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
9811
+ error: {
9812
+ /** @format int32 */
9813
+ code: 404;
9814
+ message: string;
9815
+ };
9816
+ }>>;
9817
+ /**
9818
+ * No description
9819
+ *
9820
+ * @tags openapi
9821
+ * @name GetOpenApiSpecVersionById
9822
+ * @summary Get an OpenAPI specification version by its ID
9823
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
9824
+ * @secure
9825
+ */
9826
+ getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
9827
+ error: {
9828
+ /** @format int32 */
9829
+ code: 404;
9830
+ message: string;
9831
+ };
9832
+ }>>;
9833
+ /**
9834
+ * No description
9835
+ *
9836
+ * @tags openapi
9837
+ * @name GetOpenApiSpecVersionContentById
9838
+ * @summary Get an OpenAPI specification version content by its ID
9839
+ * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
9840
+ * @secure
9841
+ */
9842
+ getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
9843
+ error: {
9844
+ /** @format int32 */
9845
+ code: 404;
9846
+ message: string;
9847
+ };
9848
+ }>>;
9849
+ /**
9850
+ * @description Generate a pre-signed URL that can be used to upload a file to storage
9851
+ *
9852
+ * @tags organizations
9853
+ * @name GenerateStorageUploadUrl
9854
+ * @summary Create a signed URL to upload a file
9855
+ * @request POST:/orgs/{organizationId}/storage/upload
9856
+ * @secure
9857
+ */
9858
+ generateStorageUploadUrl: (organizationId: string, data: {
9859
+ file: StorageFileMetadata;
9860
+ kind: StorageUploadKind;
9861
+ }, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
9862
+ error: {
9863
+ /** @format int32 */
9864
+ code: 400;
9865
+ message: string;
9866
+ };
9867
+ }>>;
9868
+ /**
9869
+ * No description
9870
+ *
9871
+ * @tags organizations
9872
+ * @name ListCustomFonts
9873
+ * @summary List custom fonts in organization
9874
+ * @request GET:/orgs/{organizationId}/fonts
9875
+ * @secure
9876
+ */
9877
+ listCustomFonts: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
9878
+ items: CustomizationFontDefinition[];
9879
+ }, Error | {
9880
+ error: {
9881
+ /** @format int32 */
9882
+ code: 404;
9883
+ message: string;
9884
+ };
9885
+ }>>;
9886
+ /**
9887
+ * No description
9888
+ *
9889
+ * @tags organizations
9890
+ * @name CreateCustomFont
9891
+ * @summary Create a custom font in organization
9892
+ * @request PUT:/orgs/{organizationId}/fonts
9893
+ * @secure
9894
+ */
9895
+ createCustomFont: (organizationId: string, data: {
9896
+ /** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
9897
+ fontFamily: FontFamily;
9898
+ /**
9899
+ * Array of font faces specifying weights and their corresponding storage keys.
9900
+ * At least one font face with weight 400 (regular) must be provided.
9901
+ * @minItems 1
9902
+ */
9903
+ fontFaces: {
9904
+ /** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
9905
+ weight: FontWeight;
9906
+ /** The path of the file in the storage bucket */
9907
+ storageKey: StorageFileKey;
9908
+ }[];
9909
+ }, params?: RequestParams) => Promise<HttpResponse<CustomizationFontDefinition, Error | {
9910
+ error: {
9911
+ /** @format int32 */
9912
+ code: 404;
9913
+ message: string;
9914
+ };
9915
+ } | {
9916
+ error: {
9917
+ /** @format int32 */
9918
+ code: 412;
9919
+ message: string;
9920
+ };
9921
+ }>>;
9922
+ /**
9923
+ * No description
9924
+ *
9925
+ * @tags organizations
9926
+ * @name DeleteCustomFont
9927
+ * @summary Delete a custom font from an organization
9928
+ * @request DELETE:/orgs/{organizationId}/fonts/{fontId}
9929
+ * @secure
9930
+ */
9931
+ deleteCustomFont: (organizationId: string, fontId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
9932
+ error: {
9933
+ /** @format int32 */
9934
+ code: 404;
9935
+ message: string;
9936
+ };
9937
+ }>>;
9647
9938
  /**
9648
9939
  * No description
9649
9940
  *
@@ -10397,6 +10688,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10397
10688
  /** Unicode codepoint or character of the emoji */
10398
10689
  emoji: Emoji;
10399
10690
  } | object | null;
10691
+ announcement?: CustomizationAnnouncement;
10400
10692
  header?: {
10401
10693
  /** The theme preset to use. Set to null to reset the override. */
10402
10694
  preset?: CustomizationHeaderPreset | null;
@@ -10709,190 +11001,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10709
11001
  message: string;
10710
11002
  };
10711
11003
  }>>;
10712
- /**
10713
- * @description Generate a pre-signed URL that can be used to upload a file to storage
10714
- *
10715
- * @tags organization
10716
- * @name GenerateSiteStorageUploadUrl
10717
- * @summary Create a signed URL to upload a file
10718
- * @request POST:/orgs/{organizationId}/sites/{siteId}/storage/upload
10719
- * @secure
10720
- */
10721
- generateSiteStorageUploadUrl: (organizationId: string, siteId: string, data: {
10722
- file: StorageFileMetadata;
10723
- kind: StorageUploadKind;
10724
- }, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
10725
- error: {
10726
- /** @format int32 */
10727
- code: 400;
10728
- message: string;
10729
- };
10730
- }>>;
10731
- /**
10732
- * No description
10733
- *
10734
- * @tags openapi
10735
- * @name ListOpenApiSpecs
10736
- * @summary List all the OpenAPI specifications in the organization
10737
- * @request GET:/orgs/{organizationId}/openapi
10738
- * @secure
10739
- */
10740
- listOpenApiSpecs: (organizationId: string, query?: {
10741
- /** Identifier of the page results to fetch. */
10742
- page?: string;
10743
- /**
10744
- * The number of results per page
10745
- * @min 0
10746
- * @max 1000
10747
- */
10748
- limit?: number;
10749
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10750
- items: OpenAPISpec[];
10751
- }, Error>>;
10752
- /**
10753
- * No description
10754
- *
10755
- * @tags openapi
10756
- * @name GetOpenApiSpecBySlug
10757
- * @summary Get an organization OpenAPI specification by its slug
10758
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}
10759
- * @secure
10760
- */
10761
- getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
10762
- error: {
10763
- /** @format int32 */
10764
- code: 404;
10765
- message: string;
10766
- };
10767
- }>>;
10768
- /**
10769
- * No description
10770
- *
10771
- * @tags openapi
10772
- * @name CreateOrUpdateOpenApiSpecBySlug
10773
- * @summary Create or update an organization OpenAPI specification by its slug
10774
- * @request PUT:/orgs/{organizationId}/openapi/{specSlug}
10775
- * @secure
10776
- */
10777
- createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
10778
- /** Create a specification from an URL */
10779
- source: {
10780
- url: URL;
10781
- } | {
10782
- /**
10783
- * OpenAPI specification as text
10784
- * @minLength 1
10785
- */
10786
- text: string;
10787
- };
10788
- }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
10789
- error: {
10790
- /** @format int32 */
10791
- code: 400;
10792
- message: string;
10793
- };
10794
- }>>;
10795
- /**
10796
- * No description
10797
- *
10798
- * @tags openapi
10799
- * @name DeleteOpenApiSpecBySlug
10800
- * @summary Delete an organization OpenAPI specification by its slug
10801
- * @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
10802
- * @secure
10803
- */
10804
- deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10805
- /**
10806
- * No description
10807
- *
10808
- * @tags openapi
10809
- * @name ListOpenApiSpecVersions
10810
- * @summary List all the OpenAPI specification versions
10811
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
10812
- * @secure
10813
- */
10814
- listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
10815
- /** Identifier of the page results to fetch. */
10816
- page?: string;
10817
- /**
10818
- * The number of results per page
10819
- * @min 0
10820
- * @max 1000
10821
- */
10822
- limit?: number;
10823
- }, params?: RequestParams) => Promise<HttpResponse<List & {
10824
- items: OpenAPISpecVersion[];
10825
- }, Error | {
10826
- error: {
10827
- /** @format int32 */
10828
- code: 404;
10829
- message: string;
10830
- };
10831
- }>>;
10832
- /**
10833
- * No description
10834
- *
10835
- * @tags openapi
10836
- * @name GetLatestOpenApiSpecVersion
10837
- * @summary Get the latest OpenAPI specification version
10838
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
10839
- * @secure
10840
- */
10841
- getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
10842
- error: {
10843
- /** @format int32 */
10844
- code: 404;
10845
- message: string;
10846
- };
10847
- }>>;
10848
- /**
10849
- * No description
10850
- *
10851
- * @tags openapi
10852
- * @name GetLatestOpenApiSpecVersionContent
10853
- * @summary Get the latest OpenAPI specification version content
10854
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
10855
- * @secure
10856
- */
10857
- getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
10858
- error: {
10859
- /** @format int32 */
10860
- code: 404;
10861
- message: string;
10862
- };
10863
- }>>;
10864
- /**
10865
- * No description
10866
- *
10867
- * @tags openapi
10868
- * @name GetOpenApiSpecVersionById
10869
- * @summary Get an OpenAPI specification version by its ID
10870
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
10871
- * @secure
10872
- */
10873
- getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
10874
- error: {
10875
- /** @format int32 */
10876
- code: 404;
10877
- message: string;
10878
- };
10879
- }>>;
10880
- /**
10881
- * No description
10882
- *
10883
- * @tags openapi
10884
- * @name GetOpenApiSpecVersionContentById
10885
- * @summary Get an OpenAPI specification version content by its ID
10886
- * @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
10887
- * @secure
10888
- */
10889
- getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
10890
- error: {
10891
- /** @format int32 */
10892
- code: 404;
10893
- message: string;
10894
- };
10895
- }>>;
10896
11004
  };
10897
11005
  customHostnames: {
10898
11006
  /**