@gitbook/api 0.60.0 → 0.61.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
@@ -1207,6 +1207,11 @@ export interface SpaceTrackPageView {
1207
1207
  /** The URL of referrer that linked to the page. */
1208
1208
  referrer: string;
1209
1209
  }
1210
+ export interface InviteEmailsUsersTeamsToSpace {
1211
+ teams: string[];
1212
+ /** Role to set on the team. */
1213
+ role: MemberRoleOrGuest;
1214
+ }
1210
1215
  export declare type RevisionPageGroup = RevisionPageBase & {
1211
1216
  /** @deprecated */
1212
1217
  kind: 'group';
@@ -1424,8 +1429,6 @@ export interface Organization {
1424
1429
  sso?: boolean;
1425
1430
  /** If true, the organization is configured to use all our AI features. */
1426
1431
  ai?: boolean;
1427
- /** If true, the organization is configured to run content audits on any space update */
1428
- aiInsights?: boolean;
1429
1432
  /** URLs associated with the object */
1430
1433
  urls: {
1431
1434
  /**
@@ -1819,6 +1822,11 @@ export interface SyncedBlock {
1819
1822
  * @maxLength 100
1820
1823
  */
1821
1824
  title?: string;
1825
+ /** Usage of synced block */
1826
+ usage: {
1827
+ /** Number of spaces where the synced block is used in */
1828
+ spaces: number;
1829
+ };
1822
1830
  /** URLs associated with the object */
1823
1831
  urls: {
1824
1832
  /** URL of the synced block in the API */
@@ -2232,6 +2240,7 @@ export declare enum CustomizationLocale {
2232
2240
  Zh = "zh",
2233
2241
  Ja = "ja",
2234
2242
  De = "de",
2243
+ Nl = "nl",
2235
2244
  PtBr = "pt-br"
2236
2245
  }
2237
2246
  export interface CustomizationThemedURL {
@@ -2333,26 +2342,6 @@ export interface CustomizationSettings {
2333
2342
  url?: URL;
2334
2343
  };
2335
2344
  }
2336
- export interface ContentPublishingAuth {
2337
- /** Type of Object, always equals to "publishing-auth" */
2338
- object: 'publishing-auth';
2339
- /** Unique identifier for the content. */
2340
- id: string;
2341
- /** Private key used to sign JWT tokens. */
2342
- privateKey: string;
2343
- /**
2344
- * URL to redirect to when the visitor auth secret is invalid.
2345
- * @format uri
2346
- */
2347
- fallbackURL?: string;
2348
- }
2349
- export interface UpdateContentPublishingAuth {
2350
- /**
2351
- * A fallback URL that will be used if authentication fails.
2352
- * @format uri
2353
- */
2354
- fallbackURL?: string;
2355
- }
2356
2345
  export declare type SpaceIntegrationBlocks = {
2357
2346
  /** Unique named identifier for the integration */
2358
2347
  name: string;
@@ -3397,6 +3386,12 @@ export interface UpgradeOrganizationBilling {
3397
3386
  product: BillingProduct;
3398
3387
  /** Interval for a billing subscription */
3399
3388
  interval: BillingInterval;
3389
+ /** Members to remove or sites to unpublish before upgrading */
3390
+ exclude?: {
3391
+ members?: string[];
3392
+ premiumSites?: string[];
3393
+ audienceSites?: string[];
3394
+ };
3400
3395
  /** Reason that triggered the billing upgrade */
3401
3396
  reason?: string;
3402
3397
  /** Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned */
@@ -3458,6 +3453,52 @@ export interface OrganizationExperimentalFeature {
3458
3453
  enabled: boolean;
3459
3454
  stage: 'alpha' | 'beta';
3460
3455
  }
3456
+ /**
3457
+ * @minLength 1
3458
+ * @maxLength 30
3459
+ */
3460
+ export declare type SAMLProviderLabel = string;
3461
+ /** @maxLength 1024 */
3462
+ export declare type SAMLProviderEntityID = string;
3463
+ /** @maxLength 10000 */
3464
+ export declare type SAMLProviderCertificate = string;
3465
+ export interface OrganizationSAMLProvider {
3466
+ /** Type of Object, always equals to "saml-provider" */
3467
+ object: 'saml-provider';
3468
+ /** Unique identifier for the provider. */
3469
+ id: string;
3470
+ label: SAMLProviderLabel;
3471
+ ssoURL: URL;
3472
+ entityID: SAMLProviderEntityID;
3473
+ certificate: SAMLProviderCertificate;
3474
+ defaultTeam?: OrganizationTeam;
3475
+ /** The role of a member in an organization, null for guests */
3476
+ defaultRole: MemberRoleOrGuest;
3477
+ /** Date at which the provider was created. */
3478
+ createdAt: Timestamp;
3479
+ /** Metadata about the service provider. */
3480
+ service: {
3481
+ /**
3482
+ * Assertion Consumer Service (ACS) URL
3483
+ * @format uri
3484
+ */
3485
+ acsURL: string;
3486
+ /**
3487
+ * Start URL for the Identity Provider
3488
+ * @format uri
3489
+ */
3490
+ startURL: string;
3491
+ entityID: SAMLProviderEntityID;
3492
+ };
3493
+ /** URLs associated with the object */
3494
+ urls: {
3495
+ /**
3496
+ * URL of the SAML Provider in the API
3497
+ * @format uri
3498
+ */
3499
+ location: string;
3500
+ };
3501
+ }
3461
3502
  /** Spaces usage metrics of an organization */
3462
3503
  export interface OrganizationUsageSpaces {
3463
3504
  /** Count of all spaces */
@@ -3640,47 +3681,11 @@ export interface UpdateSnippetSchema {
3640
3681
  /** A new title for the snippet. */
3641
3682
  title?: string;
3642
3683
  }
3643
- /** Status of the audit relation to filter on */
3644
- export declare enum ContentAuditRelationStatus {
3645
- Pending = "pending",
3646
- Rejected = "rejected"
3647
- }
3648
- /** The type of the relation between the sources */
3649
- export declare enum ContentAuditRelationType {
3650
- Contradiction = "contradiction",
3651
- Duplicate = "duplicate"
3652
- }
3653
- /** A GitBook section source */
3654
- export interface ContentAuditSourceSection {
3655
- id: string;
3656
- type: 'section';
3657
- space: Space;
3658
- page: RevisionPageDocument;
3659
- }
3660
- export declare type ContentAuditSource = ContentAuditSourceSection;
3661
- /** Content audit relation */
3662
- export interface ContentAuditRelation {
3663
- id: string;
3664
- /** The sources that are related */
3665
- sources: ContentAuditSource[];
3666
- /** The type of the relation between the sources */
3667
- type: ContentAuditRelationType;
3668
- /** A human readable description of the reason for the relation */
3669
- reason?: string;
3670
- /** The status of the relation */
3671
- status: ContentAuditRelationStatus;
3672
- /** The date at which the relation was created */
3673
- createdAt: Timestamp;
3674
- }
3675
- export interface ContentAuditRelationStatusUpdate {
3676
- /** Status of the audit relation to filter on */
3677
- status: ContentAuditRelationStatus;
3678
- }
3679
3684
  /** The type of the site */
3680
3685
  export declare enum SiteType {
3681
3686
  Basic = "basic",
3682
- Standard = "standard",
3683
3687
  Premium = "premium",
3688
+ Audience = "audience",
3684
3689
  LegacyBasic = "legacy-basic",
3685
3690
  LegacyPremium = "legacy-premium"
3686
3691
  }
@@ -3727,8 +3732,6 @@ export declare type SiteAds = {
3727
3732
  status: 'in-review';
3728
3733
  /** Topic of the content */
3729
3734
  topic: SiteAdsTopic;
3730
- /** The email address linked to the Ads partner account */
3731
- accountEmail: string;
3732
3735
  } | {
3733
3736
  status: 'rejected';
3734
3737
  } | {
@@ -3737,8 +3740,6 @@ export declare type SiteAds = {
3737
3740
  topic: SiteAdsTopic;
3738
3741
  /** The ad network zone ID */
3739
3742
  zoneId: string;
3740
- /** The email address linked to the Ads partner account */
3741
- accountEmail: string;
3742
3743
  };
3743
3744
  export interface Site {
3744
3745
  object: 'site';
@@ -3785,6 +3786,27 @@ export interface Site {
3785
3786
  published?: string;
3786
3787
  };
3787
3788
  }
3789
+ /** 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. */
3790
+ export declare type BillingOperationPreviewResponse = {
3791
+ /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
3792
+ type: 'go-ahead';
3793
+ } | {
3794
+ /** By going ahead with this operation, the user will be starting a trial in GitBook. */
3795
+ type: 'trial-available';
3796
+ } | {
3797
+ /** User must checkout to complete the operation. */
3798
+ type: 'checkout';
3799
+ invoice?: BillingInvoicePreview;
3800
+ } | {
3801
+ /** User cannot proceed with the operation due to lack of permissions. */
3802
+ type: 'no-permissions';
3803
+ } | {
3804
+ /** User needs to go through the legacy upgrade flow. */
3805
+ type: 'legacy-upgrade';
3806
+ /** The plan the user must upgrade to. */
3807
+ plan: BillingProduct;
3808
+ invoice?: BillingInvoicePreview;
3809
+ };
3788
3810
  export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
3789
3811
  /** Type of Object, always equals to "publishing-auth" */
3790
3812
  object: 'publishing-auth';
@@ -4067,6 +4089,17 @@ export interface SiteTrackPageView {
4067
4089
  /** The URL of referrer that linked to the page. */
4068
4090
  referrer: string;
4069
4091
  }
4092
+ export interface SiteAdsStats {
4093
+ impressions: number;
4094
+ clicks: number;
4095
+ revenue: string;
4096
+ account: {
4097
+ /** Email address on the Ads platform. */
4098
+ email: string;
4099
+ /** URL to configure payout. */
4100
+ url: string;
4101
+ };
4102
+ }
4070
4103
  export declare enum CustomHostnameDnsStatus {
4071
4104
  DnsPassed = "dns_passed",
4072
4105
  DnsWrongCname = "dns_wrong_cname",
@@ -4192,28 +4225,6 @@ export interface StaffUserInfo {
4192
4225
  id: string;
4193
4226
  searchKey: string;
4194
4227
  }
4195
- /** The GitBook User risk evaluation. */
4196
- export interface UserRiskEvaluation {
4197
- /** True if the user was originally considered as risky */
4198
- wasRisky: boolean;
4199
- /** True if the user is currently considered as risky */
4200
- isRisky: boolean;
4201
- /** True if the user went through the verification process */
4202
- isVerified: boolean;
4203
- /** Risk score of the user */
4204
- riskScore: number;
4205
- /** Number of verification steps completed by the user */
4206
- completedSteps: number;
4207
- /** Total number of verification steps expected */
4208
- expectedSteps: number;
4209
- /** User completed the Google Account verification step */
4210
- googleLogin: boolean;
4211
- /** User completed the GitHub Account verification step */
4212
- githubLogin: boolean;
4213
- /** User completed the Email verification step */
4214
- emailVerified: boolean;
4215
- activeDaysRemaining: number;
4216
- }
4217
4228
  /** The User Firebase Auth Info. */
4218
4229
  export interface FirebaseUserInfo {
4219
4230
  uid: string;
@@ -4226,8 +4237,6 @@ export interface FirebaseUserInfo {
4226
4237
  /** The GitBook User info shown in the BackOffice. */
4227
4238
  export interface UserBackOfficeInfo {
4228
4239
  id: string;
4229
- /** The GitBook User risk evaluation. */
4230
- riskEvaluation: UserRiskEvaluation;
4231
4240
  authProviders: FirebaseUserInfo[];
4232
4241
  createdAt: string;
4233
4242
  lastSignInAt: string;
@@ -4297,24 +4306,6 @@ export declare type BackOfficeSite = Site & {
4297
4306
  /** ID of the organization owning this site */
4298
4307
  organization: string;
4299
4308
  };
4300
- export declare type PublishedContentLookup = {
4301
- /** Type of target for the redirect */
4302
- target: 'application' | 'content' | 'external';
4303
- redirect: URL;
4304
- } | {
4305
- /** ID of the space matching. */
4306
- space: string;
4307
- /** Identifier of the change request being previewed in this URL. */
4308
- changeRequest?: string;
4309
- /** Identifier of the revision being previewed in this URL. */
4310
- revision?: string;
4311
- /** Path of the content relative to the space */
4312
- pathname: string;
4313
- /** Prefix of the path in the URL dedicated to the space */
4314
- basePath: string;
4315
- /** Short-lived API token to fetch content related to the space in the context of the URL. */
4316
- apiToken: string;
4317
- };
4318
4309
  export declare type PublishedSiteContentLookup = {
4319
4310
  /** Type of target for the redirect */
4320
4311
  target: 'application' | 'content' | 'external';
@@ -4341,6 +4332,13 @@ export declare type PublishedSiteContentLookup = {
4341
4332
  /** Share link key of the site in case the site was published with share-links. */
4342
4333
  shareKey?: string;
4343
4334
  };
4335
+ export interface UpdateContentPublishingAuth {
4336
+ /**
4337
+ * A fallback URL that will be used if authentication fails.
4338
+ * @format uri
4339
+ */
4340
+ fallbackURL?: string;
4341
+ }
4344
4342
  /** The context to send when triggering a content indexing. */
4345
4343
  export interface TriggerContentIndexingContext {
4346
4344
  /** The unique identifier of the Space to index. */
@@ -4348,6 +4346,19 @@ export interface TriggerContentIndexingContext {
4348
4346
  /** Whether to force a complete re-indexing of the Space. */
4349
4347
  force: boolean;
4350
4348
  }
4349
+ export interface ContentPublishingAuth {
4350
+ /** Type of Object, always equals to "publishing-auth" */
4351
+ object: 'publishing-auth';
4352
+ /** Unique identifier for the content. */
4353
+ id: string;
4354
+ /** Private key used to sign JWT tokens. */
4355
+ privateKey: string;
4356
+ /**
4357
+ * URL to redirect to when the visitor auth secret is invalid.
4358
+ * @format uri
4359
+ */
4360
+ fallbackURL?: string;
4361
+ }
4351
4362
  export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
4352
4363
  /** The type of semantic change. */
4353
4364
  export declare enum RevisionSemanticChangeType {
@@ -4406,6 +4417,13 @@ export interface IntegrationEnvironment {
4406
4417
  installation?: string;
4407
4418
  };
4408
4419
  }
4420
+ export declare enum BillingTrialStatus {
4421
+ Notapplicable = "notapplicable",
4422
+ None = "none",
4423
+ Active = "active",
4424
+ Ended = "ended",
4425
+ Expired = "expired"
4426
+ }
4409
4427
  export declare enum APIIntegrationScope {
4410
4428
  IntegrationRead = "integration:read",
4411
4429
  IntegrationUpdate = "integration:update",
@@ -4501,6 +4519,10 @@ export interface OrganizationMemberChannel {
4501
4519
  organization: string;
4502
4520
  user: string;
4503
4521
  }
4522
+ export interface OrganizationSAMLChannel {
4523
+ channel: 'organization-saml';
4524
+ organization: string;
4525
+ }
4504
4526
  export interface OrganizationTeamsChannel {
4505
4527
  channel: 'organization-teams';
4506
4528
  organization: string;
@@ -4535,10 +4557,6 @@ export interface OrganizationCapturesChannel {
4535
4557
  channel: 'organization-captures';
4536
4558
  organization: string;
4537
4559
  }
4538
- export interface OrganizationContentAuditsChannel {
4539
- channel: 'organization-content-audits';
4540
- organization: string;
4541
- }
4542
4560
  export interface OrganizationIntegrationsChannel {
4543
4561
  channel: 'organization-integrations';
4544
4562
  organization: string;
@@ -4556,6 +4574,11 @@ export interface OrganizationExperimentalFeaturesChannel {
4556
4574
  channel: 'organization-experimental-features';
4557
4575
  organization: string;
4558
4576
  }
4577
+ /** Subscription channel for changes in synced blocks in an organization. */
4578
+ export interface OrganizationSyncedBlocksChannel {
4579
+ channel: 'organization-synced-blocks';
4580
+ organization: string;
4581
+ }
4559
4582
  export interface OrganizationSyncedBlockChannel {
4560
4583
  channel: 'organization-synced-block';
4561
4584
  organization: string;
@@ -4662,7 +4685,7 @@ export interface CustomHostnameChannel {
4662
4685
  customHostname: string;
4663
4686
  }
4664
4687
  /** Channel to subscribe to for API updates. */
4665
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
4688
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
4666
4689
  /** The status of ads on the site */
4667
4690
  export declare enum SiteAdsStatus {
4668
4691
  Pending = "pending",
@@ -4917,18 +4940,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4917
4940
  editMode?: SpaceEditMode;
4918
4941
  /** Title of the space */
4919
4942
  title?: SpaceTitle;
4920
- /**
4921
- * * `public`: Anyone can access the content, and the content is indexed by search engines.
4922
- * * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
4923
- * * `share-link`: Anyone with a secret token in the url can access the content.
4924
- * * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
4925
- * * `in-collection`: Anyone who can access the parent collection can access the content.
4926
- * Only available for spaces in a collection.
4927
- * * `private`: Authorized members can access the content.
4928
- */
4929
- visibility?: ContentVisibility;
4930
- /** The integration property, if set, is ignored. */
4931
- visitorAuth?: VisitorAuth;
4932
4943
  /** Default level for a piece of content */
4933
4944
  defaultLevel?: DefaultLevel;
4934
4945
  } & ({
@@ -5227,6 +5238,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5227
5238
  * @secure
5228
5239
  */
5229
5240
  trackViewInSpaceById: (spaceId: string, data: SpaceTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5241
+ /**
5242
+ * No description
5243
+ *
5244
+ * @tags spaces
5245
+ * @name InviteToSpace
5246
+ * @summary Invite to a space (only teams supported for now)
5247
+ * @request POST:/spaces/{spaceId}/permissions
5248
+ * @secure
5249
+ */
5250
+ inviteToSpace: (spaceId: string, data: InviteEmailsUsersTeamsToSpace, params?: RequestParams) => Promise<HttpResponse<void, Error | {
5251
+ error: {
5252
+ /** @format int32 */
5253
+ code: 404;
5254
+ message: string;
5255
+ };
5256
+ }>>;
5257
+ /**
5258
+ * No description
5259
+ *
5260
+ * @tags spaces
5261
+ * @name RemoveTeamFromSpace
5262
+ * @summary Remove a team from a space
5263
+ * @request DELETE:/spaces/{spaceId}/permissions/teams/{teamId}
5264
+ * @secure
5265
+ */
5266
+ removeTeamFromSpace: (spaceId: string, teamId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
5267
+ error: {
5268
+ /** @format int32 */
5269
+ code: 400;
5270
+ message: string;
5271
+ };
5272
+ } | {
5273
+ error: {
5274
+ /** @format int32 */
5275
+ code: 404;
5276
+ message: string;
5277
+ };
5278
+ }>>;
5230
5279
  /**
5231
5280
  * No description
5232
5281
  *
@@ -6309,56 +6358,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6309
6358
  message: string;
6310
6359
  };
6311
6360
  }>>;
6312
- /**
6313
- * No description
6314
- *
6315
- * @tags spaces
6316
- * @name GetSpacePublishingAuthById
6317
- * @summary Get the publishing authentication configuration for a space.
6318
- * @request GET:/spaces/{spaceId}/publishing/auth
6319
- * @secure
6320
- */
6321
- getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
6322
- error: {
6323
- /** @format int32 */
6324
- code: 400;
6325
- message: string;
6326
- };
6327
- }>>;
6328
- /**
6329
- * No description
6330
- *
6331
- * @tags spaces
6332
- * @name UpdateSpacePublishingAuthById
6333
- * @summary Update the publishing authentication configuration for a space.
6334
- * @request POST:/spaces/{spaceId}/publishing/auth
6335
- * @secure
6336
- */
6337
- updateSpacePublishingAuthById: (spaceId: string, data: UpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
6338
- error: {
6339
- /** @format int32 */
6340
- code: 400;
6341
- message: string;
6342
- };
6343
- }>>;
6344
- /**
6345
- * No description
6346
- *
6347
- * @tags spaces
6348
- * @name GetSpacePublishingPreviewById
6349
- * @summary Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
6350
- * @request GET:/spaces/{spaceId}/publishing/preview
6351
- * @secure
6352
- */
6353
- getSpacePublishingPreviewById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
6354
- url: URL;
6355
- }, Error | {
6356
- error: {
6357
- /** @format int32 */
6358
- code: 400;
6359
- message: string;
6360
- };
6361
- }>>;
6362
6361
  /**
6363
6362
  * No description
6364
6363
  *
@@ -6695,38 +6694,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6695
6694
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6696
6695
  items: UserContentPermission[];
6697
6696
  }, Error>>;
6698
- /**
6699
- * No description
6700
- *
6701
- * @tags collections
6702
- * @name GetCollectionPublishingAuthById
6703
- * @summary Get the publishing authentication configuration for a collection.
6704
- * @request GET:/collections/{collectionId}/publishing/auth
6705
- * @secure
6706
- */
6707
- getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
6708
- error: {
6709
- /** @format int32 */
6710
- code: 400;
6711
- message: string;
6712
- };
6713
- }>>;
6714
- /**
6715
- * No description
6716
- *
6717
- * @tags collections
6718
- * @name UpdateCollectionPublishingAuthById
6719
- * @summary Update the publishing authentication configuration for a collection.
6720
- * @request POST:/collections/{collectionId}/publishing/auth
6721
- * @secure
6722
- */
6723
- updateCollectionPublishingAuthById: (collectionId: string, data: UpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
6724
- error: {
6725
- /** @format int32 */
6726
- code: 400;
6727
- message: string;
6728
- };
6729
- }>>;
6730
6697
  /**
6731
6698
  * No description
6732
6699
  *
@@ -7349,7 +7316,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7349
7316
  logo?: URL | null;
7350
7317
  sso?: boolean;
7351
7318
  ai?: boolean;
7352
- aiInsights?: boolean;
7353
7319
  }, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
7354
7320
  error: {
7355
7321
  /** @format int32 */
@@ -7384,6 +7350,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7384
7350
  role?: MemberRole | 'guest';
7385
7351
  /** A query to filter the member list (displayName and email) */
7386
7352
  search?: string;
7353
+ /**
7354
+ * The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
7355
+ * @default "joinedAt"
7356
+ */
7357
+ sort?: 'joinedAt' | 'lastSeenAt';
7387
7358
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7388
7359
  items: OrganizationMember[];
7389
7360
  }, Error>>;
@@ -7705,6 +7676,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7705
7676
  * @secure
7706
7677
  */
7707
7678
  getOrganizationBillingPortal: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<BillingPortal, Error>>;
7679
+ /**
7680
+ * No description
7681
+ *
7682
+ * @tags organizations
7683
+ * @name PreviewBillingInvoice
7684
+ * @summary Generates a billing invoice preview for organizations without an active subscription
7685
+ * @request GET:/orgs/{organizationId}/billing/preview
7686
+ * @secure
7687
+ */
7688
+ previewBillingInvoice: (organizationId: string, query: {
7689
+ /** The desired billing interval plan */
7690
+ interval: BillingInterval;
7691
+ /** The desired core plan */
7692
+ product: BillingProduct;
7693
+ /** The desired amount of members in the organization */
7694
+ members?: number;
7695
+ /** The desired amount of published premium sites */
7696
+ premiumSites?: number;
7697
+ /** The desired amount of published audience sites */
7698
+ audienceSites?: number;
7699
+ }, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
7708
7700
  /**
7709
7701
  * No description
7710
7702
  *
@@ -8027,6 +8019,89 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8027
8019
  * @secure
8028
8020
  */
8029
8021
  updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8022
+ /**
8023
+ * @description Lists SAML providers configured for the specified organization.
8024
+ *
8025
+ * @tags organizations
8026
+ * @name ListSamlProvidersInOrganizationById
8027
+ * @summary List organization SAML providers
8028
+ * @request GET:/orgs/{organizationId}/saml
8029
+ * @secure
8030
+ */
8031
+ listSamlProvidersInOrganizationById: (organizationId: string, query?: {
8032
+ /** Identifier of the page results to fetch. */
8033
+ page?: string;
8034
+ /**
8035
+ * The number of results per page
8036
+ * @min 0
8037
+ * @max 1000
8038
+ */
8039
+ limit?: number;
8040
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8041
+ items: OrganizationSAMLProvider[];
8042
+ }, Error>>;
8043
+ /**
8044
+ * No description
8045
+ *
8046
+ * @tags organizations
8047
+ * @name CreateOrganizationSamlProvider
8048
+ * @summary Create a new SAML provider in an orgamization
8049
+ * @request POST:/orgs/{organizationId}/saml
8050
+ * @secure
8051
+ */
8052
+ createOrganizationSamlProvider: (organizationId: string, data: {
8053
+ label: SAMLProviderLabel;
8054
+ entityID?: SAMLProviderEntityID;
8055
+ certificate?: SAMLProviderCertificate;
8056
+ ssoURL?: URL;
8057
+ defaultTeam?: string;
8058
+ /** The role of a member in an organization, null for guests */
8059
+ defaultRole?: MemberRoleOrGuest;
8060
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error>>;
8061
+ /**
8062
+ * No description
8063
+ *
8064
+ * @tags organizations
8065
+ * @name GetOrganizationSamlProviderById
8066
+ * @summary Get a SAML provider in an organization by its ID
8067
+ * @request GET:/orgs/{organizationId}/saml/{samlProviderId}
8068
+ * @secure
8069
+ */
8070
+ getOrganizationSamlProviderById: (organizationId: string, samlProviderId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error | {
8071
+ error: {
8072
+ /** @format int32 */
8073
+ code: 404;
8074
+ message: string;
8075
+ };
8076
+ }>>;
8077
+ /**
8078
+ * No description
8079
+ *
8080
+ * @tags organizations
8081
+ * @name UpdateOrganizationSamlProvider
8082
+ * @summary Update a SAML provider in an organization
8083
+ * @request PATCH:/orgs/{organizationId}/saml/{samlProviderId}
8084
+ * @secure
8085
+ */
8086
+ updateOrganizationSamlProvider: (organizationId: string, samlProviderId: string, data: {
8087
+ label?: SAMLProviderLabel;
8088
+ entityID?: SAMLProviderEntityID;
8089
+ certificate?: SAMLProviderCertificate;
8090
+ ssoURL?: URL;
8091
+ defaultTeam?: string;
8092
+ /** The role of a member in an organization, null for guests */
8093
+ defaultRole?: MemberRoleOrGuest;
8094
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error>>;
8095
+ /**
8096
+ * No description
8097
+ *
8098
+ * @tags organizations
8099
+ * @name DeleteOrganizationSamlProvider
8100
+ * @summary Delete a SAML provider in an organization
8101
+ * @request DELETE:/orgs/{organizationId}/saml/{samlProviderId}
8102
+ * @secure
8103
+ */
8104
+ deleteOrganizationSamlProvider: (organizationId: string, samlProviderId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
8030
8105
  /**
8031
8106
  * No description
8032
8107
  *
@@ -8326,6 +8401,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8326
8401
  parentPage?: RevisionPageDocument | RevisionPageGroup;
8327
8402
  }[];
8328
8403
  }, Error>>;
8404
+ /**
8405
+ * No description
8406
+ *
8407
+ * @tags organizations
8408
+ * @name ListSyncedBlocks
8409
+ * @summary List all the synced blocks created in an organization
8410
+ * @request GET:/orgs/{organizationId}/synced-blocks
8411
+ * @secure
8412
+ */
8413
+ listSyncedBlocks: (organizationId: string, query?: {
8414
+ /** Identifier of the page results to fetch. */
8415
+ page?: string;
8416
+ /**
8417
+ * The number of results per page
8418
+ * @min 0
8419
+ * @max 1000
8420
+ */
8421
+ limit?: number;
8422
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8423
+ items: SyncedBlock[];
8424
+ }, Error>>;
8329
8425
  /**
8330
8426
  * No description
8331
8427
  *
@@ -8397,6 +8493,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8397
8493
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8398
8494
  items: ContentLocation[];
8399
8495
  }, Error>>;
8496
+ /**
8497
+ * No description
8498
+ *
8499
+ * @tags organizations
8500
+ * @name ListSyncedBlockSpaces
8501
+ * @summary Get a list of spaces that reference this synced block.
8502
+ * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces
8503
+ * @secure
8504
+ */
8505
+ listSyncedBlockSpaces: (organizationId: string, syncedBlockId: string, query?: {
8506
+ /** Identifier of the page results to fetch. */
8507
+ page?: string;
8508
+ /**
8509
+ * The number of results per page
8510
+ * @min 0
8511
+ * @max 1000
8512
+ */
8513
+ limit?: number;
8514
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8515
+ items: Space[];
8516
+ }, Error>>;
8400
8517
  /**
8401
8518
  * No description
8402
8519
  *
@@ -8447,90 +8564,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8447
8564
  /** Return query details in the result */
8448
8565
  details?: boolean;
8449
8566
  }, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
8450
- /**
8451
- * No description
8452
- *
8453
- * @tags ai, spaces
8454
- * @name ListContentAuditRelations
8455
- * @summary List the content relations for in a given organization.
8456
- * @request GET:/orgs/{organizationId}/insights/audit-relations
8457
- * @secure
8458
- */
8459
- listContentAuditRelations: (organizationId: string, query?: {
8460
- /** Identifier of the page results to fetch. */
8461
- page?: string;
8462
- /**
8463
- * The number of results per page
8464
- * @min 0
8465
- * @max 1000
8466
- */
8467
- limit?: number;
8468
- /**
8469
- * Status of the audit relation to filter on
8470
- * @default "pending"
8471
- */
8472
- status?: ContentAuditRelationStatus | 'all';
8473
- /** Space concerned by the relation */
8474
- space?: string;
8475
- /**
8476
- * Type of the audit relation to filter on
8477
- * @default "all"
8478
- */
8479
- type?: ContentAuditRelationType | 'all';
8480
- }, params?: RequestParams) => Promise<HttpResponse<List & {
8481
- items: ContentAuditRelation[];
8482
- }, Error>>;
8483
- /**
8484
- * No description
8485
- *
8486
- * @tags organizations
8487
- * @name GetContentAuditRelationById
8488
- * @summary Get an audit relation by ID
8489
- * @request GET:/orgs/{organizationId}/insights/audit-relations/{relationId}
8490
- * @secure
8491
- */
8492
- getContentAuditRelationById: (organizationId: string, relationId: string, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
8493
- error: {
8494
- /** @format int32 */
8495
- code: 404;
8496
- message: string;
8497
- };
8498
- }>>;
8499
- /**
8500
- * No description
8501
- *
8502
- * @tags organizations
8503
- * @name UpdateContentAuditRelationStatusById
8504
- * @summary Update an audit relation status
8505
- * @request PATCH:/orgs/{organizationId}/insights/audit-relations/{relationId}
8506
- * @secure
8507
- */
8508
- updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
8509
- error: {
8510
- /** @format int32 */
8511
- code: 404;
8512
- message: string;
8513
- };
8514
- }>>;
8515
- /**
8516
- * No description
8517
- *
8518
- * @tags organizations
8519
- * @name GetContentAuditSourceContentById
8520
- * @summary Get the content of an audit source
8521
- * @request GET:/orgs/{organizationId}/insights/audit-sources/{sourceId}/content
8522
- * @secure
8523
- */
8524
- getContentAuditSourceContentById: (organizationId: string, sourceId: string, query?: {
8525
- /** Output format for the content. */
8526
- format?: 'document' | 'markdown';
8527
- }, params?: RequestParams) => Promise<HttpResponse<Document, Error | {
8528
- error: {
8529
- /** @format int32 */
8530
- code: 404;
8531
- message: string;
8532
- };
8533
- }>>;
8534
8567
  /**
8535
8568
  * No description
8536
8569
  *
@@ -8551,6 +8584,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8551
8584
  limit?: number;
8552
8585
  /** Identifier of the space to filter the sites by */
8553
8586
  space?: string;
8587
+ /** Filter sites by their title */
8588
+ title?: string;
8589
+ /** Filter sites by their published status */
8590
+ published?: boolean;
8554
8591
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8555
8592
  items: Site[];
8556
8593
  }, Error>>;
@@ -8579,6 +8616,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8579
8616
  /** ID of spaces to be added to the site */
8580
8617
  spaces?: string[] | 'sample' | 'empty';
8581
8618
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8619
+ /**
8620
+ * No description
8621
+ *
8622
+ * @tags sites
8623
+ * @name PreviewSitePublishCheckout
8624
+ * @summary Preview checkout information upon publishing a site in the organization.
8625
+ * @request GET:/orgs/{organizationId}/sites/publishing/checkout
8626
+ * @secure
8627
+ */
8628
+ previewSitePublishCheckout: (organizationId: string, query: {
8629
+ /** The plan of the site to preview the checkout information for. */
8630
+ plan: SiteType;
8631
+ }, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error>>;
8582
8632
  /**
8583
8633
  * No description
8584
8634
  *
@@ -8757,47 +8807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8757
8807
  previewSitePlanUpdate: (organizationId: string, siteId: string, query: {
8758
8808
  /** The desired site plan */
8759
8809
  plan: SiteType;
8760
- }, params?: RequestParams) => Promise<HttpResponse<{
8761
- /** User can go ahead with the update without any billing. */
8762
- type: 'update';
8763
- } | {
8764
- /** User must checkout to complete the update. */
8765
- type: 'checkout';
8766
- } | {
8767
- /** User cannot proceed with the update due to lack of permissions. */
8768
- type: 'no-permissions';
8769
- } | {
8770
- /** User needs to go through the legacy update flow. */
8771
- type: 'legacy-upgrade';
8772
- /** The plan the user must upgrade to. */
8773
- plan: BillingProduct;
8774
- invoice?: BillingInvoicePreview;
8775
- }, Error | {
8776
- error: {
8777
- /** @format int32 */
8778
- code: 404;
8779
- message: string;
8780
- };
8781
- }>>;
8782
- /**
8783
- * No description
8784
- *
8785
- * @tags sites
8786
- * @name PreviewSitePublish
8787
- * @summary Preview publishing a site, returning checkout information.
8788
- * @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/checkout
8789
- * @secure
8790
- */
8791
- previewSitePublish: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
8792
- /** User can publish the site without any billing. */
8793
- type: 'publish';
8794
- } | {
8795
- /** User must complete a checkout before publishing. */
8796
- type: 'checkout';
8797
- } | {
8798
- /** User cannot publish due to lack of permissions. */
8799
- type: 'no-permissions';
8800
- }, Error | {
8810
+ }, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error | {
8801
8811
  error: {
8802
8812
  /** @format int32 */
8803
8813
  code: 404;
@@ -8992,6 +9002,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8992
9002
  * @max 1000
8993
9003
  */
8994
9004
  limit?: number;
9005
+ /** If true, only the default site space will be returned. If false, only the non-default site spaces are returned. If undefined, all site spaces are returned. */
9006
+ default?: boolean;
8995
9007
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8996
9008
  items: SiteSpace[];
8997
9009
  }, Error>>;
@@ -9192,6 +9204,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9192
9204
  /** Topic of the content */
9193
9205
  topic?: SiteAdsTopic;
9194
9206
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9207
+ /**
9208
+ * No description
9209
+ *
9210
+ * @tags sites
9211
+ * @name GetSiteAdsStatsById
9212
+ * @summary Get the stats about Ads on a site.
9213
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/ads/stats
9214
+ * @secure
9215
+ */
9216
+ getSiteAdsStatsById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteAdsStats, Error>>;
9195
9217
  };
9196
9218
  customHostnames: {
9197
9219
  /**
@@ -9296,7 +9318,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9296
9318
  items: {
9297
9319
  id: string;
9298
9320
  url: string;
9299
- ads: SiteAds;
9321
+ email: string;
9322
+ /** Topic of the content */
9323
+ topic: SiteAdsTopic;
9300
9324
  }[];
9301
9325
  }, Error>>;
9302
9326
  /**
@@ -9383,7 +9407,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9383
9407
  url: URL;
9384
9408
  /** JWT token generated for a visitor auth session */
9385
9409
  visitorAuthToken?: string;
9386
- }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup | PublishedSiteContentLookup, Error | {
9410
+ }, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
9387
9411
  error: {
9388
9412
  /** @format int32 */
9389
9413
  code: 404;