@gitbook/api 0.76.0 → 0.78.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
@@ -741,6 +741,7 @@ export type UserAPITokenExtended = UserAPIToken & {
741
741
  export type SpaceTitle = string;
742
742
  /**
743
743
  * Unicode codepoint or character of the emoji
744
+ * @format emoji
744
745
  * @maxLength 50
745
746
  * @example "🎉"
746
747
  */
@@ -903,6 +904,13 @@ export interface Space {
903
904
  revision: string;
904
905
  /** Default level for a piece of content */
905
906
  defaultLevel: DefaultLevel;
907
+ /** The set of permissions for the space */
908
+ permissions: {
909
+ /** Can the user edit the title, install integrations, and manage the space. */
910
+ admin: boolean;
911
+ /** Can the user edit the content of the space by creating a change request. */
912
+ edit: boolean;
913
+ };
906
914
  }
907
915
  export interface SpacePointer {
908
916
  type: 'space';
@@ -1022,6 +1030,7 @@ export interface ExportToGitRepository {
1022
1030
  }
1023
1031
  /**
1024
1032
  * Name of the icon
1033
+ * @format icon
1025
1034
  * @maxLength 50
1026
1035
  * @example "gear"
1027
1036
  */
@@ -1474,7 +1483,7 @@ export interface SitePointer {
1474
1483
  site: string;
1475
1484
  }
1476
1485
  /** The default content for the organization */
1477
- export type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
1486
+ export type OrganizationDefaultContent = SitePointer;
1478
1487
  /** Name of the product */
1479
1488
  export declare enum BillingProduct {
1480
1489
  Free2024 = "free_2024",
@@ -1597,28 +1606,10 @@ export interface Collection {
1597
1606
  title: CollectionTitle;
1598
1607
  /** Description of the collection */
1599
1608
  description?: CollectionDescription;
1600
- /** Path in the published URL */
1601
- path?: string;
1602
- /**
1603
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
1604
- * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
1605
- * * `share-link`: Anyone with a secret token in the url can access the content.
1606
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
1607
- * * `in-collection`: Anyone who can access the parent collection can access the content.
1608
- * Only available for spaces in a collection.
1609
- * * `private`: Authorized members can access the content.
1610
- */
1611
- visibility: ContentVisibility;
1612
- publishingType?: 'variants';
1613
1609
  /** ID of the organization owning this collection */
1614
1610
  organization: string;
1615
1611
  /** ID of the parent collection, if any */
1616
1612
  parent?: string;
1617
- /**
1618
- * ID of the parent collection, if any
1619
- * @deprecated
1620
- */
1621
- collection?: string;
1622
1613
  /** Default level for a piece of content */
1623
1614
  defaultLevel: DefaultLevel;
1624
1615
  /** URLs associated with the object */
@@ -1634,6 +1625,13 @@ export interface Collection {
1634
1625
  */
1635
1626
  app: string;
1636
1627
  };
1628
+ /** The set of permissions for the collection */
1629
+ permissions: {
1630
+ /** Can the user edit the title/description. */
1631
+ admin: boolean;
1632
+ /** Can the user create spaces/collections in this collection. */
1633
+ create: boolean;
1634
+ };
1637
1635
  }
1638
1636
  export interface ContentLocationCollection {
1639
1637
  kind: 'collection';
@@ -2568,36 +2566,6 @@ export interface PageFeedback {
2568
2566
  location: string;
2569
2567
  };
2570
2568
  }
2571
- /**
2572
- * Name of the share link
2573
- * @minLength 0
2574
- * @maxLength 50
2575
- */
2576
- export type ShareLinkName = string;
2577
- export interface ShareLink {
2578
- /** Type of Object, always equals to "share-link" */
2579
- object: 'share-link';
2580
- /** Unique identifier for the share-link */
2581
- id: string;
2582
- createdAt: Timestamp;
2583
- /** Name of the share link */
2584
- name?: ShareLinkName;
2585
- active?: boolean;
2586
- /** URLs associated with the object */
2587
- urls: {
2588
- /**
2589
- * URL of the published version of the share-link.
2590
- * @format uri
2591
- */
2592
- published?: string;
2593
- };
2594
- }
2595
- export type CustomizationCollectionSettings = CustomizationSettings & {
2596
- collection: {
2597
- /** ID of the space used by default in the collection */
2598
- defaultSpace?: string;
2599
- };
2600
- };
2601
2569
  /** Secrets stored on the integration and passed at runtime. */
2602
2570
  export type IntegrationSecrets = Record<string, string>;
2603
2571
  export interface PublishIntegration {
@@ -3584,6 +3552,8 @@ export interface SiteSection {
3584
3552
  */
3585
3553
  published?: string;
3586
3554
  };
3555
+ /** Name of the icon */
3556
+ icon?: Icon;
3587
3557
  }
3588
3558
  export type SiteStructure = {
3589
3559
  type: 'sections';
@@ -4185,6 +4155,30 @@ export interface PublishedContentSite {
4185
4155
  };
4186
4156
  scripts: SiteIntegrationScript[];
4187
4157
  }
4158
+ /**
4159
+ * Name of the share link
4160
+ * @minLength 0
4161
+ * @maxLength 50
4162
+ */
4163
+ export type ShareLinkName = string;
4164
+ export interface ShareLink {
4165
+ /** Type of Object, always equals to "share-link" */
4166
+ object: 'share-link';
4167
+ /** Unique identifier for the share-link */
4168
+ id: string;
4169
+ createdAt: Timestamp;
4170
+ /** Name of the share link */
4171
+ name?: ShareLinkName;
4172
+ active?: boolean;
4173
+ /** URLs associated with the object */
4174
+ urls: {
4175
+ /**
4176
+ * URL of the published version of the share-link.
4177
+ * @format uri
4178
+ */
4179
+ published?: string;
4180
+ };
4181
+ }
4188
4182
  export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4189
4183
  /** Type of Object, always equals to "publishing-auth" */
4190
4184
  object: 'publishing-auth';
@@ -4305,6 +4299,45 @@ export interface InsightsContentPage {
4305
4299
  /** Icon of the page, if one has been set. */
4306
4300
  icon?: Icon;
4307
4301
  }
4302
+ /** Analytics entry for an ask. */
4303
+ export interface AnalyticsAsk {
4304
+ /** The question that was asked. */
4305
+ ask: string;
4306
+ /** Number of times this question was asked. */
4307
+ count: number;
4308
+ }
4309
+ /**
4310
+ * The source path to redirect from.
4311
+ * @maxLength 512
4312
+ * @pattern ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
4313
+ */
4314
+ export type SiteRedirectSourcePath = string;
4315
+ export interface SiteRedirectDestinationSiteSection {
4316
+ kind: 'site-section';
4317
+ /** Unique identifier for the site section to redirect to */
4318
+ siteSectionId: string;
4319
+ }
4320
+ export interface SiteRedirectDestinationSiteSpace {
4321
+ kind: 'site-space';
4322
+ /** Unique identifier for the site space to redirect to */
4323
+ siteSpaceId: string;
4324
+ }
4325
+ export interface SiteRedirectDestinationPage {
4326
+ kind: 'site-page';
4327
+ /** Unique identifier for the site space of the page */
4328
+ siteSpaceId: string;
4329
+ /** Unique identifier for the page within the site space to redirect to */
4330
+ pageId: string;
4331
+ }
4332
+ export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage;
4333
+ export interface SiteRedirect {
4334
+ object: 'site-redirect';
4335
+ /** The unique identifier for the redirect. */
4336
+ id: string;
4337
+ /** The source path to redirect from. */
4338
+ source: SiteRedirectSourcePath;
4339
+ destination: SiteRedirectDestination;
4340
+ }
4308
4341
  export declare enum CustomHostnameDnsStatus {
4309
4342
  DnsPassed = "dns_passed",
4310
4343
  DnsWrongCname = "dns_wrong_cname",
@@ -4328,7 +4361,7 @@ export interface CustomHostname {
4328
4361
  object: 'custom-hostname';
4329
4362
  /** Custom hostname for the site, for e.g. docs.mycompany.com */
4330
4363
  hostname: SiteHostname;
4331
- target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
4364
+ target: OrganizationPointer | SitePointer;
4332
4365
  isActive: boolean;
4333
4366
  status?: CustomHostnameStatus;
4334
4367
  /** URLs associated with the object */
@@ -4537,6 +4570,8 @@ export interface PublishedSiteContent {
4537
4570
  shareKey?: string;
4538
4571
  /** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
4539
4572
  complete: boolean;
4573
+ /** Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation). */
4574
+ contextId?: string;
4540
4575
  }
4541
4576
  export type PublishedSiteContentLookup = {
4542
4577
  /** Type of target for the redirect */
@@ -4736,6 +4771,8 @@ export interface ContentAPIBaseToken {
4736
4771
  organization: string;
4737
4772
  /** List of spaces that the token is allowed to access. */
4738
4773
  spaces: string[];
4774
+ /** Attributes or assertions that provide specific details about the visitor for which the token was generated. */
4775
+ claims: Record<string, any>;
4739
4776
  /** Multiplier for the rate limit applied to the token. */
4740
4777
  rateLimitMultiplier?: number;
4741
4778
  }
@@ -4970,6 +5007,10 @@ export interface PublishedContentSiteChannel {
4970
5007
  channel: 'published-content-site';
4971
5008
  site: string;
4972
5009
  }
5010
+ export interface SiteRedirectsChannel {
5011
+ channel: 'site-redirects';
5012
+ site: string;
5013
+ }
4973
5014
  export interface SiteChannel {
4974
5015
  channel: 'site';
4975
5016
  site: string;
@@ -5029,7 +5070,7 @@ export interface GitSyncOperationChannel {
5029
5070
  space: string;
5030
5071
  }
5031
5072
  /** Channel to subscribe to for realtime updates. */
5032
- 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 | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5073
+ 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 | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | 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;
5033
5074
  export interface GitSyncOperationChannelData {
5034
5075
  channel: 'space-gitsync-operation';
5035
5076
  /** Data passed on the channel messages for GitSync running in a space. */
@@ -5120,6 +5161,7 @@ export type SpaceVisitorAuth = VisitorAuth;
5120
5161
  export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
5121
5162
  export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
5122
5163
  export type UserPermissions = Index;
5164
+ export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
5123
5165
  import { EventIterator } from 'event-iterator';
5124
5166
  export type QueryParamsType = Record<string | number, any>;
5125
5167
  export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -5211,6 +5253,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5211
5253
  * @secure
5212
5254
  */
5213
5255
  searchContent: (query: {
5256
+ /** @maxLength 512 */
5214
5257
  query: string;
5215
5258
  /** Identifier of the page results to fetch. */
5216
5259
  page?: string;
@@ -5459,6 +5502,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5459
5502
  * @secure
5460
5503
  */
5461
5504
  searchSpaceContent: (spaceId: string, query: {
5505
+ /** @maxLength 512 */
5462
5506
  query: string;
5463
5507
  /** Identifier of the page results to fetch. */
5464
5508
  page?: string;
@@ -6937,6 +6981,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6937
6981
  * @name GetSpacePublishingCustomizationById
6938
6982
  * @summary Get the publishing customization configuration for a space.
6939
6983
  * @request GET:/spaces/{spaceId}/publishing/customization
6984
+ * @deprecated
6940
6985
  * @secure
6941
6986
  */
6942
6987
  getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
@@ -6953,6 +6998,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6953
6998
  * @name UpdateSpacePublishingCustomizationById
6954
6999
  * @summary Update the publishing customization configuration for a space.
6955
7000
  * @request PUT:/spaces/{spaceId}/publishing/customization
7001
+ * @deprecated
6956
7002
  * @secure
6957
7003
  */
6958
7004
  updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
@@ -7069,43 +7115,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7069
7115
  /** Temporary URL to print the content. The URL will work for 1h. */
7070
7116
  url: URL;
7071
7117
  }, Error>>;
7072
- /**
7073
- * No description
7074
- *
7075
- * @tags spaces
7076
- * @name CreateSpaceShareLink
7077
- * @summary Creates a new space share link
7078
- * @request POST:/spaces/{spaceId}/share-links
7079
- * @secure
7080
- */
7081
- createSpaceShareLink: (spaceId: string, data: {
7082
- /** Name of the share link */
7083
- name: ShareLinkName;
7084
- }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
7085
- /**
7086
- * No description
7087
- *
7088
- * @tags spaces
7089
- * @name UpdateSpaceShareLinkById
7090
- * @summary Update the details of a space share link
7091
- * @request PATCH:/spaces/{spaceId}/share-links/{shareLinkId}
7092
- * @secure
7093
- */
7094
- updateSpaceShareLinkById: (spaceId: string, shareLinkId: string, data: {
7095
- active?: boolean;
7096
- /** Name of the share link */
7097
- name?: ShareLinkName;
7098
- }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
7099
- /**
7100
- * No description
7101
- *
7102
- * @tags spaces
7103
- * @name DeleteSpaceShareLinkById
7104
- * @summary Deletes a space share link
7105
- * @request DELETE:/spaces/{spaceId}/share-links/{shareLinkId}
7106
- * @secure
7107
- */
7108
- deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7109
7118
  /**
7110
7119
  * No description
7111
7120
  *
@@ -7163,16 +7172,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7163
7172
  * @secure
7164
7173
  */
7165
7174
  updateCollectionById: (collectionId: string, data: {
7166
- /**
7167
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
7168
- * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
7169
- * * `share-link`: Anyone with a secret token in the url can access the content.
7170
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
7171
- * * `in-collection`: Anyone who can access the parent collection can access the content.
7172
- * Only available for spaces in a collection.
7173
- * * `private`: Authorized members can access the content.
7174
- */
7175
- visibility?: ContentVisibility;
7176
7175
  /** Title of the collection */
7177
7176
  title?: CollectionTitle;
7178
7177
  /** Description of the collection */
@@ -7298,75 +7297,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7298
7297
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7299
7298
  items: UserContentPermission[];
7300
7299
  }, Error>>;
7301
- /**
7302
- * No description
7303
- *
7304
- * @tags collections
7305
- * @name GetCollectionPublishingCustomizationById
7306
- * @summary Get the publishing customization configuration for a collection.
7307
- * @request GET:/collections/{collectionId}/publishing/customization
7308
- * @secure
7309
- */
7310
- getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
7311
- error: {
7312
- /** @format int32 */
7313
- code: 400;
7314
- message: string;
7315
- };
7316
- }>>;
7317
- /**
7318
- * No description
7319
- *
7320
- * @tags collections
7321
- * @name UpdateCollectionPublishingCustomizationById
7322
- * @summary Update the publishing customization configuration for a collection.
7323
- * @request PUT:/collections/{collectionId}/publishing/customization
7324
- * @secure
7325
- */
7326
- updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
7327
- error: {
7328
- /** @format int32 */
7329
- code: 400;
7330
- message: string;
7331
- };
7332
- }>>;
7333
- /**
7334
- * No description
7335
- *
7336
- * @tags collections
7337
- * @name CreateCollectionShareLink
7338
- * @summary Creates a new collection share link
7339
- * @request POST:/collections/{collectionId}/share-links
7340
- * @secure
7341
- */
7342
- createCollectionShareLink: (collectionId: string, data: {
7343
- /** Name of the share link */
7344
- name: ShareLinkName;
7345
- }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
7346
- /**
7347
- * No description
7348
- *
7349
- * @tags collections
7350
- * @name UpdateCollectionShareLinkById
7351
- * @summary Update the details of a collection share link
7352
- * @request PATCH:/collections/{collectionId}/share-links/{shareLinkId}
7353
- * @secure
7354
- */
7355
- updateCollectionShareLinkById: (collectionId: string, shareLinkId: string, data: {
7356
- active?: boolean;
7357
- /** Name of the share link */
7358
- name?: ShareLinkName;
7359
- }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
7360
- /**
7361
- * No description
7362
- *
7363
- * @tags collections
7364
- * @name DeleteCollectionShareLinkById
7365
- * @summary Deletes a collection share link
7366
- * @request DELETE:/collections/{collectionId}/share-links/{shareLinkId}
7367
- * @secure
7368
- */
7369
- deleteCollectionShareLinkById: (collectionId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7370
7300
  };
7371
7301
  integrations: {
7372
7302
  /**
@@ -7983,7 +7913,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7983
7913
  /**
7984
7914
  * @description Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.
7985
7915
  *
7986
- * @tags organizations
7916
+ * @tags organizations, critical
7987
7917
  * @name GetOrganizationAllContent
7988
7918
  * @summary List all content in an organization
7989
7919
  * @request GET:/orgs/{organizationId}/content
@@ -8435,6 +8365,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8435
8365
  * @secure
8436
8366
  */
8437
8367
  searchOrganizationContent: (organizationId: string, query: {
8368
+ /** @maxLength 512 */
8438
8369
  query: string;
8439
8370
  /** Identifier of the page results to fetch. */
8440
8371
  page?: string;
@@ -9719,6 +9650,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9719
9650
  path?: SiteSectionPath;
9720
9651
  /** ID of the site-space to be used as the default in this section. */
9721
9652
  defaultSiteSpace?: string;
9653
+ icon?: Icon | null;
9722
9654
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
9723
9655
  /**
9724
9656
  * No description
@@ -9743,15 +9675,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9743
9675
  mode?: "specific";
9744
9676
  /** @minLength 1 */
9745
9677
  siteSpaceIds: string[];
9678
+ /** @maxLength 512 */
9746
9679
  query: string;
9747
9680
  } | {
9748
9681
  /** Search in the current site space and all section's defaults */
9749
9682
  mode: "current";
9750
9683
  siteSpaceId: string;
9684
+ /** @maxLength 512 */
9751
9685
  query: string;
9752
9686
  } | {
9753
9687
  /** search in all site-spaces */
9754
9688
  mode: "all";
9689
+ /** @maxLength 512 */
9755
9690
  query: string;
9756
9691
  }, query?: {
9757
9692
  /** Identifier of the page results to fetch. */
@@ -10105,6 +10040,90 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10105
10040
  /** Topic of the content */
10106
10041
  topic?: SiteAdsTopic;
10107
10042
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10043
+ /**
10044
+ * No description
10045
+ *
10046
+ * @tags sites
10047
+ * @name CreateSiteRedirect
10048
+ * @summary Configure a redirect explicitly for a site.
10049
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/redirects
10050
+ * @secure
10051
+ */
10052
+ createSiteRedirect: (organizationId: string, siteId: string, data: {
10053
+ /** The source path to redirect from. */
10054
+ source: SiteRedirectSourcePath;
10055
+ destination: SiteRedirectDestination;
10056
+ }, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, Error>>;
10057
+ /**
10058
+ * No description
10059
+ *
10060
+ * @tags sites
10061
+ * @name ListSiteRedirects
10062
+ * @summary List the redirects configured for a site.
10063
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/redirects
10064
+ * @secure
10065
+ */
10066
+ listSiteRedirects: (organizationId: string, siteId: string, query?: {
10067
+ /** Identifier of the page results to fetch. */
10068
+ page?: string;
10069
+ /**
10070
+ * The number of results per page
10071
+ * @min 0
10072
+ * @max 1000
10073
+ */
10074
+ limit?: number;
10075
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10076
+ items: SiteRedirect[];
10077
+ }, Error>>;
10078
+ /**
10079
+ * No description
10080
+ *
10081
+ * @tags sites
10082
+ * @name UpdateSiteRedirectById
10083
+ * @summary Update a redirect for a site
10084
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}
10085
+ * @secure
10086
+ */
10087
+ updateSiteRedirectById: (organizationId: string, siteId: string, siteRedirectId: string, data: {
10088
+ /** The source path to redirect from. */
10089
+ source?: SiteRedirectSourcePath;
10090
+ destination?: SiteRedirectDestination;
10091
+ }, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, Error>>;
10092
+ /**
10093
+ * No description
10094
+ *
10095
+ * @tags sites
10096
+ * @name DeleteSiteRedirectById
10097
+ * @summary Delete a redirect for a site
10098
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}
10099
+ * @secure
10100
+ */
10101
+ deleteSiteRedirectById: (organizationId: string, siteId: string, siteRedirectId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10102
+ /**
10103
+ * No description
10104
+ *
10105
+ * @tags sites
10106
+ * @name GetSiteRedirectBySource
10107
+ * @summary Resolve a redirect in a site by its source path.
10108
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/redirect
10109
+ * @secure
10110
+ */
10111
+ getSiteRedirectBySource: (organizationId: string, siteId: string, query: {
10112
+ /** For sites published via share-links, the share key is useful to resolve published URLs. */
10113
+ shareKey?: string;
10114
+ /** The source path of the redirect. */
10115
+ source: SiteRedirectSourcePath;
10116
+ }, params?: RequestParams) => Promise<HttpResponse<{
10117
+ redirect: SiteRedirect;
10118
+ /** URL of the destination of the redirect. */
10119
+ target: string;
10120
+ }, Error | {
10121
+ error: {
10122
+ /** @format int32 */
10123
+ code: 404;
10124
+ message: string;
10125
+ };
10126
+ }>>;
10108
10127
  };
10109
10128
  customHostnames: {
10110
10129
  /**
@@ -10122,12 +10141,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10122
10141
  *
10123
10142
  * @tags custom-hostnames
10124
10143
  * @name SetupCustomHostname
10125
- * @summary Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
10144
+ * @summary Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
10126
10145
  * @request POST:/custom-hostnames/{hostname}
10127
10146
  * @secure
10128
10147
  */
10129
10148
  setupCustomHostname: (hostname: string, data: {
10130
- target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
10149
+ target: OrganizationPointer | SitePointer;
10131
10150
  }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
10132
10151
  error: {
10133
10152
  /** @format int32 */
@@ -10166,12 +10185,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10166
10185
  *
10167
10186
  * @tags custom-hostnames
10168
10187
  * @name TestCustomHostname
10169
- * @summary Test if a custom hostname can be used for a content or organization.
10188
+ * @summary Test if a custom hostname can be used for a site or organization.
10170
10189
  * @request POST:/custom-hostnames/{hostname}/test
10171
10190
  * @secure
10172
10191
  */
10173
10192
  testCustomHostname: (hostname: string, data: {
10174
- target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
10193
+ target: OrganizationPointer | SitePointer;
10175
10194
  }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
10176
10195
  error: {
10177
10196
  /** @format int32 */