@gitbook/api 0.59.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 +446 -333
- package/dist/index.cjs +147 -93
- package/dist/index.js +144 -91
- package/package.json +1 -1
- package/spec/openapi.json +1567 -1137
- package/spec/openapi.yaml +930 -668
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
|
}
|
|
@@ -3714,11 +3719,28 @@ export declare enum SiteVisibility {
|
|
|
3714
3719
|
ShareLink = "share-link",
|
|
3715
3720
|
VisitorAuth = "visitor-auth"
|
|
3716
3721
|
}
|
|
3717
|
-
/**
|
|
3718
|
-
export
|
|
3719
|
-
|
|
3720
|
-
|
|
3722
|
+
/** Topic of the content */
|
|
3723
|
+
export declare enum SiteAdsTopic {
|
|
3724
|
+
Webdev = "webdev",
|
|
3725
|
+
Crypto = "crypto"
|
|
3721
3726
|
}
|
|
3727
|
+
export declare type SiteAds = {
|
|
3728
|
+
status: 'pending';
|
|
3729
|
+
/** True if the user can submit the site for review. */
|
|
3730
|
+
submittable: boolean;
|
|
3731
|
+
} | {
|
|
3732
|
+
status: 'in-review';
|
|
3733
|
+
/** Topic of the content */
|
|
3734
|
+
topic: SiteAdsTopic;
|
|
3735
|
+
} | {
|
|
3736
|
+
status: 'rejected';
|
|
3737
|
+
} | {
|
|
3738
|
+
status: 'live' | 'disabled';
|
|
3739
|
+
/** Topic of the content */
|
|
3740
|
+
topic: SiteAdsTopic;
|
|
3741
|
+
/** The ad network zone ID */
|
|
3742
|
+
zoneId: string;
|
|
3743
|
+
};
|
|
3722
3744
|
export interface Site {
|
|
3723
3745
|
object: 'site';
|
|
3724
3746
|
/** Unique identifier of the site */
|
|
@@ -3744,8 +3766,7 @@ export interface Site {
|
|
|
3744
3766
|
siteSpaces: number;
|
|
3745
3767
|
/** @format date-time */
|
|
3746
3768
|
createdAt: string;
|
|
3747
|
-
|
|
3748
|
-
ads?: SiteAdsConfig;
|
|
3769
|
+
ads?: SiteAds;
|
|
3749
3770
|
/** URLs associated with the object */
|
|
3750
3771
|
urls: {
|
|
3751
3772
|
/**
|
|
@@ -3765,6 +3786,27 @@ export interface Site {
|
|
|
3765
3786
|
published?: string;
|
|
3766
3787
|
};
|
|
3767
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
|
+
};
|
|
3768
3810
|
export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3769
3811
|
/** Type of Object, always equals to "publishing-auth" */
|
|
3770
3812
|
object: 'publishing-auth';
|
|
@@ -4047,6 +4089,17 @@ export interface SiteTrackPageView {
|
|
|
4047
4089
|
/** The URL of referrer that linked to the page. */
|
|
4048
4090
|
referrer: string;
|
|
4049
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
|
+
}
|
|
4050
4103
|
export declare enum CustomHostnameDnsStatus {
|
|
4051
4104
|
DnsPassed = "dns_passed",
|
|
4052
4105
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -4172,28 +4225,6 @@ export interface StaffUserInfo {
|
|
|
4172
4225
|
id: string;
|
|
4173
4226
|
searchKey: string;
|
|
4174
4227
|
}
|
|
4175
|
-
/** The GitBook User risk evaluation. */
|
|
4176
|
-
export interface UserRiskEvaluation {
|
|
4177
|
-
/** True if the user was originally considered as risky */
|
|
4178
|
-
wasRisky: boolean;
|
|
4179
|
-
/** True if the user is currently considered as risky */
|
|
4180
|
-
isRisky: boolean;
|
|
4181
|
-
/** True if the user went through the verification process */
|
|
4182
|
-
isVerified: boolean;
|
|
4183
|
-
/** Risk score of the user */
|
|
4184
|
-
riskScore: number;
|
|
4185
|
-
/** Number of verification steps completed by the user */
|
|
4186
|
-
completedSteps: number;
|
|
4187
|
-
/** Total number of verification steps expected */
|
|
4188
|
-
expectedSteps: number;
|
|
4189
|
-
/** User completed the Google Account verification step */
|
|
4190
|
-
googleLogin: boolean;
|
|
4191
|
-
/** User completed the GitHub Account verification step */
|
|
4192
|
-
githubLogin: boolean;
|
|
4193
|
-
/** User completed the Email verification step */
|
|
4194
|
-
emailVerified: boolean;
|
|
4195
|
-
activeDaysRemaining: number;
|
|
4196
|
-
}
|
|
4197
4228
|
/** The User Firebase Auth Info. */
|
|
4198
4229
|
export interface FirebaseUserInfo {
|
|
4199
4230
|
uid: string;
|
|
@@ -4206,8 +4237,6 @@ export interface FirebaseUserInfo {
|
|
|
4206
4237
|
/** The GitBook User info shown in the BackOffice. */
|
|
4207
4238
|
export interface UserBackOfficeInfo {
|
|
4208
4239
|
id: string;
|
|
4209
|
-
/** The GitBook User risk evaluation. */
|
|
4210
|
-
riskEvaluation: UserRiskEvaluation;
|
|
4211
4240
|
authProviders: FirebaseUserInfo[];
|
|
4212
4241
|
createdAt: string;
|
|
4213
4242
|
lastSignInAt: string;
|
|
@@ -4277,24 +4306,6 @@ export declare type BackOfficeSite = Site & {
|
|
|
4277
4306
|
/** ID of the organization owning this site */
|
|
4278
4307
|
organization: string;
|
|
4279
4308
|
};
|
|
4280
|
-
export declare type PublishedContentLookup = {
|
|
4281
|
-
/** Type of target for the redirect */
|
|
4282
|
-
target: 'application' | 'content' | 'external';
|
|
4283
|
-
redirect: URL;
|
|
4284
|
-
} | {
|
|
4285
|
-
/** ID of the space matching. */
|
|
4286
|
-
space: string;
|
|
4287
|
-
/** Identifier of the change request being previewed in this URL. */
|
|
4288
|
-
changeRequest?: string;
|
|
4289
|
-
/** Identifier of the revision being previewed in this URL. */
|
|
4290
|
-
revision?: string;
|
|
4291
|
-
/** Path of the content relative to the space */
|
|
4292
|
-
pathname: string;
|
|
4293
|
-
/** Prefix of the path in the URL dedicated to the space */
|
|
4294
|
-
basePath: string;
|
|
4295
|
-
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
4296
|
-
apiToken: string;
|
|
4297
|
-
};
|
|
4298
4309
|
export declare type PublishedSiteContentLookup = {
|
|
4299
4310
|
/** Type of target for the redirect */
|
|
4300
4311
|
target: 'application' | 'content' | 'external';
|
|
@@ -4321,6 +4332,13 @@ export declare type PublishedSiteContentLookup = {
|
|
|
4321
4332
|
/** Share link key of the site in case the site was published with share-links. */
|
|
4322
4333
|
shareKey?: string;
|
|
4323
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
|
+
}
|
|
4324
4342
|
/** The context to send when triggering a content indexing. */
|
|
4325
4343
|
export interface TriggerContentIndexingContext {
|
|
4326
4344
|
/** The unique identifier of the Space to index. */
|
|
@@ -4328,6 +4346,19 @@ export interface TriggerContentIndexingContext {
|
|
|
4328
4346
|
/** Whether to force a complete re-indexing of the Space. */
|
|
4329
4347
|
force: boolean;
|
|
4330
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
|
+
}
|
|
4331
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;
|
|
4332
4363
|
/** The type of semantic change. */
|
|
4333
4364
|
export declare enum RevisionSemanticChangeType {
|
|
@@ -4386,6 +4417,13 @@ export interface IntegrationEnvironment {
|
|
|
4386
4417
|
installation?: string;
|
|
4387
4418
|
};
|
|
4388
4419
|
}
|
|
4420
|
+
export declare enum BillingTrialStatus {
|
|
4421
|
+
Notapplicable = "notapplicable",
|
|
4422
|
+
None = "none",
|
|
4423
|
+
Active = "active",
|
|
4424
|
+
Ended = "ended",
|
|
4425
|
+
Expired = "expired"
|
|
4426
|
+
}
|
|
4389
4427
|
export declare enum APIIntegrationScope {
|
|
4390
4428
|
IntegrationRead = "integration:read",
|
|
4391
4429
|
IntegrationUpdate = "integration:update",
|
|
@@ -4481,6 +4519,10 @@ export interface OrganizationMemberChannel {
|
|
|
4481
4519
|
organization: string;
|
|
4482
4520
|
user: string;
|
|
4483
4521
|
}
|
|
4522
|
+
export interface OrganizationSAMLChannel {
|
|
4523
|
+
channel: 'organization-saml';
|
|
4524
|
+
organization: string;
|
|
4525
|
+
}
|
|
4484
4526
|
export interface OrganizationTeamsChannel {
|
|
4485
4527
|
channel: 'organization-teams';
|
|
4486
4528
|
organization: string;
|
|
@@ -4515,10 +4557,6 @@ export interface OrganizationCapturesChannel {
|
|
|
4515
4557
|
channel: 'organization-captures';
|
|
4516
4558
|
organization: string;
|
|
4517
4559
|
}
|
|
4518
|
-
export interface OrganizationContentAuditsChannel {
|
|
4519
|
-
channel: 'organization-content-audits';
|
|
4520
|
-
organization: string;
|
|
4521
|
-
}
|
|
4522
4560
|
export interface OrganizationIntegrationsChannel {
|
|
4523
4561
|
channel: 'organization-integrations';
|
|
4524
4562
|
organization: string;
|
|
@@ -4536,6 +4574,11 @@ export interface OrganizationExperimentalFeaturesChannel {
|
|
|
4536
4574
|
channel: 'organization-experimental-features';
|
|
4537
4575
|
organization: string;
|
|
4538
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
|
+
}
|
|
4539
4582
|
export interface OrganizationSyncedBlockChannel {
|
|
4540
4583
|
channel: 'organization-synced-block';
|
|
4541
4584
|
organization: string;
|
|
@@ -4642,7 +4685,15 @@ export interface CustomHostnameChannel {
|
|
|
4642
4685
|
customHostname: string;
|
|
4643
4686
|
}
|
|
4644
4687
|
/** Channel to subscribe to for API updates. */
|
|
4645
|
-
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 |
|
|
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;
|
|
4689
|
+
/** The status of ads on the site */
|
|
4690
|
+
export declare enum SiteAdsStatus {
|
|
4691
|
+
Pending = "pending",
|
|
4692
|
+
InReview = "in-review",
|
|
4693
|
+
Live = "live",
|
|
4694
|
+
Rejected = "rejected",
|
|
4695
|
+
Disabled = "disabled"
|
|
4696
|
+
}
|
|
4646
4697
|
export interface Seat {
|
|
4647
4698
|
object: 'seat';
|
|
4648
4699
|
/** The unique ID of the organization */
|
|
@@ -4889,18 +4940,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4889
4940
|
editMode?: SpaceEditMode;
|
|
4890
4941
|
/** Title of the space */
|
|
4891
4942
|
title?: SpaceTitle;
|
|
4892
|
-
/**
|
|
4893
|
-
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
4894
|
-
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
4895
|
-
* * `share-link`: Anyone with a secret token in the url can access the content.
|
|
4896
|
-
* * `visitor-auth`: Anyone authenticated through a JWT token can access the content.
|
|
4897
|
-
* * `in-collection`: Anyone who can access the parent collection can access the content.
|
|
4898
|
-
* Only available for spaces in a collection.
|
|
4899
|
-
* * `private`: Authorized members can access the content.
|
|
4900
|
-
*/
|
|
4901
|
-
visibility?: ContentVisibility;
|
|
4902
|
-
/** The integration property, if set, is ignored. */
|
|
4903
|
-
visitorAuth?: VisitorAuth;
|
|
4904
4943
|
/** Default level for a piece of content */
|
|
4905
4944
|
defaultLevel?: DefaultLevel;
|
|
4906
4945
|
} & ({
|
|
@@ -5199,6 +5238,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5199
5238
|
* @secure
|
|
5200
5239
|
*/
|
|
5201
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
|
+
}>>;
|
|
5202
5279
|
/**
|
|
5203
5280
|
* No description
|
|
5204
5281
|
*
|
|
@@ -6281,56 +6358,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6281
6358
|
message: string;
|
|
6282
6359
|
};
|
|
6283
6360
|
}>>;
|
|
6284
|
-
/**
|
|
6285
|
-
* No description
|
|
6286
|
-
*
|
|
6287
|
-
* @tags spaces
|
|
6288
|
-
* @name GetSpacePublishingAuthById
|
|
6289
|
-
* @summary Get the publishing authentication configuration for a space.
|
|
6290
|
-
* @request GET:/spaces/{spaceId}/publishing/auth
|
|
6291
|
-
* @secure
|
|
6292
|
-
*/
|
|
6293
|
-
getSpacePublishingAuthById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
6294
|
-
error: {
|
|
6295
|
-
/** @format int32 */
|
|
6296
|
-
code: 400;
|
|
6297
|
-
message: string;
|
|
6298
|
-
};
|
|
6299
|
-
}>>;
|
|
6300
|
-
/**
|
|
6301
|
-
* No description
|
|
6302
|
-
*
|
|
6303
|
-
* @tags spaces
|
|
6304
|
-
* @name UpdateSpacePublishingAuthById
|
|
6305
|
-
* @summary Update the publishing authentication configuration for a space.
|
|
6306
|
-
* @request POST:/spaces/{spaceId}/publishing/auth
|
|
6307
|
-
* @secure
|
|
6308
|
-
*/
|
|
6309
|
-
updateSpacePublishingAuthById: (spaceId: string, data: UpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
6310
|
-
error: {
|
|
6311
|
-
/** @format int32 */
|
|
6312
|
-
code: 400;
|
|
6313
|
-
message: string;
|
|
6314
|
-
};
|
|
6315
|
-
}>>;
|
|
6316
|
-
/**
|
|
6317
|
-
* No description
|
|
6318
|
-
*
|
|
6319
|
-
* @tags spaces
|
|
6320
|
-
* @name GetSpacePublishingPreviewById
|
|
6321
|
-
* @summary Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
|
|
6322
|
-
* @request GET:/spaces/{spaceId}/publishing/preview
|
|
6323
|
-
* @secure
|
|
6324
|
-
*/
|
|
6325
|
-
getSpacePublishingPreviewById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
6326
|
-
url: URL;
|
|
6327
|
-
}, Error | {
|
|
6328
|
-
error: {
|
|
6329
|
-
/** @format int32 */
|
|
6330
|
-
code: 400;
|
|
6331
|
-
message: string;
|
|
6332
|
-
};
|
|
6333
|
-
}>>;
|
|
6334
6361
|
/**
|
|
6335
6362
|
* No description
|
|
6336
6363
|
*
|
|
@@ -6667,38 +6694,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6667
6694
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6668
6695
|
items: UserContentPermission[];
|
|
6669
6696
|
}, Error>>;
|
|
6670
|
-
/**
|
|
6671
|
-
* No description
|
|
6672
|
-
*
|
|
6673
|
-
* @tags collections
|
|
6674
|
-
* @name GetCollectionPublishingAuthById
|
|
6675
|
-
* @summary Get the publishing authentication configuration for a collection.
|
|
6676
|
-
* @request GET:/collections/{collectionId}/publishing/auth
|
|
6677
|
-
* @secure
|
|
6678
|
-
*/
|
|
6679
|
-
getCollectionPublishingAuthById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
6680
|
-
error: {
|
|
6681
|
-
/** @format int32 */
|
|
6682
|
-
code: 400;
|
|
6683
|
-
message: string;
|
|
6684
|
-
};
|
|
6685
|
-
}>>;
|
|
6686
|
-
/**
|
|
6687
|
-
* No description
|
|
6688
|
-
*
|
|
6689
|
-
* @tags collections
|
|
6690
|
-
* @name UpdateCollectionPublishingAuthById
|
|
6691
|
-
* @summary Update the publishing authentication configuration for a collection.
|
|
6692
|
-
* @request POST:/collections/{collectionId}/publishing/auth
|
|
6693
|
-
* @secure
|
|
6694
|
-
*/
|
|
6695
|
-
updateCollectionPublishingAuthById: (collectionId: string, data: UpdateContentPublishingAuth, params?: RequestParams) => Promise<HttpResponse<ContentPublishingAuth, Error | {
|
|
6696
|
-
error: {
|
|
6697
|
-
/** @format int32 */
|
|
6698
|
-
code: 400;
|
|
6699
|
-
message: string;
|
|
6700
|
-
};
|
|
6701
|
-
}>>;
|
|
6702
6697
|
/**
|
|
6703
6698
|
* No description
|
|
6704
6699
|
*
|
|
@@ -7321,7 +7316,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7321
7316
|
logo?: URL | null;
|
|
7322
7317
|
sso?: boolean;
|
|
7323
7318
|
ai?: boolean;
|
|
7324
|
-
aiInsights?: boolean;
|
|
7325
7319
|
}, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
7326
7320
|
error: {
|
|
7327
7321
|
/** @format int32 */
|
|
@@ -7356,6 +7350,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7356
7350
|
role?: MemberRole | 'guest';
|
|
7357
7351
|
/** A query to filter the member list (displayName and email) */
|
|
7358
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';
|
|
7359
7358
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7360
7359
|
items: OrganizationMember[];
|
|
7361
7360
|
}, Error>>;
|
|
@@ -7677,6 +7676,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7677
7676
|
* @secure
|
|
7678
7677
|
*/
|
|
7679
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>>;
|
|
7680
7700
|
/**
|
|
7681
7701
|
* No description
|
|
7682
7702
|
*
|
|
@@ -7999,6 +8019,89 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7999
8019
|
* @secure
|
|
8000
8020
|
*/
|
|
8001
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>>;
|
|
8002
8105
|
/**
|
|
8003
8106
|
* No description
|
|
8004
8107
|
*
|
|
@@ -8298,6 +8401,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8298
8401
|
parentPage?: RevisionPageDocument | RevisionPageGroup;
|
|
8299
8402
|
}[];
|
|
8300
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>>;
|
|
8301
8425
|
/**
|
|
8302
8426
|
* No description
|
|
8303
8427
|
*
|
|
@@ -8369,6 +8493,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8369
8493
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8370
8494
|
items: ContentLocation[];
|
|
8371
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>>;
|
|
8372
8517
|
/**
|
|
8373
8518
|
* No description
|
|
8374
8519
|
*
|
|
@@ -8419,90 +8564,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8419
8564
|
/** Return query details in the result */
|
|
8420
8565
|
details?: boolean;
|
|
8421
8566
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
8422
|
-
/**
|
|
8423
|
-
* No description
|
|
8424
|
-
*
|
|
8425
|
-
* @tags ai, spaces
|
|
8426
|
-
* @name ListContentAuditRelations
|
|
8427
|
-
* @summary List the content relations for in a given organization.
|
|
8428
|
-
* @request GET:/orgs/{organizationId}/insights/audit-relations
|
|
8429
|
-
* @secure
|
|
8430
|
-
*/
|
|
8431
|
-
listContentAuditRelations: (organizationId: string, query?: {
|
|
8432
|
-
/** Identifier of the page results to fetch. */
|
|
8433
|
-
page?: string;
|
|
8434
|
-
/**
|
|
8435
|
-
* The number of results per page
|
|
8436
|
-
* @min 0
|
|
8437
|
-
* @max 1000
|
|
8438
|
-
*/
|
|
8439
|
-
limit?: number;
|
|
8440
|
-
/**
|
|
8441
|
-
* Status of the audit relation to filter on
|
|
8442
|
-
* @default "pending"
|
|
8443
|
-
*/
|
|
8444
|
-
status?: ContentAuditRelationStatus | 'all';
|
|
8445
|
-
/** Space concerned by the relation */
|
|
8446
|
-
space?: string;
|
|
8447
|
-
/**
|
|
8448
|
-
* Type of the audit relation to filter on
|
|
8449
|
-
* @default "all"
|
|
8450
|
-
*/
|
|
8451
|
-
type?: ContentAuditRelationType | 'all';
|
|
8452
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8453
|
-
items: ContentAuditRelation[];
|
|
8454
|
-
}, Error>>;
|
|
8455
|
-
/**
|
|
8456
|
-
* No description
|
|
8457
|
-
*
|
|
8458
|
-
* @tags organizations
|
|
8459
|
-
* @name GetContentAuditRelationById
|
|
8460
|
-
* @summary Get an audit relation by ID
|
|
8461
|
-
* @request GET:/orgs/{organizationId}/insights/audit-relations/{relationId}
|
|
8462
|
-
* @secure
|
|
8463
|
-
*/
|
|
8464
|
-
getContentAuditRelationById: (organizationId: string, relationId: string, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
|
|
8465
|
-
error: {
|
|
8466
|
-
/** @format int32 */
|
|
8467
|
-
code: 404;
|
|
8468
|
-
message: string;
|
|
8469
|
-
};
|
|
8470
|
-
}>>;
|
|
8471
|
-
/**
|
|
8472
|
-
* No description
|
|
8473
|
-
*
|
|
8474
|
-
* @tags organizations
|
|
8475
|
-
* @name UpdateContentAuditRelationStatusById
|
|
8476
|
-
* @summary Update an audit relation status
|
|
8477
|
-
* @request PATCH:/orgs/{organizationId}/insights/audit-relations/{relationId}
|
|
8478
|
-
* @secure
|
|
8479
|
-
*/
|
|
8480
|
-
updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
|
|
8481
|
-
error: {
|
|
8482
|
-
/** @format int32 */
|
|
8483
|
-
code: 404;
|
|
8484
|
-
message: string;
|
|
8485
|
-
};
|
|
8486
|
-
}>>;
|
|
8487
|
-
/**
|
|
8488
|
-
* No description
|
|
8489
|
-
*
|
|
8490
|
-
* @tags organizations
|
|
8491
|
-
* @name GetContentAuditSourceContentById
|
|
8492
|
-
* @summary Get the content of an audit source
|
|
8493
|
-
* @request GET:/orgs/{organizationId}/insights/audit-sources/{sourceId}/content
|
|
8494
|
-
* @secure
|
|
8495
|
-
*/
|
|
8496
|
-
getContentAuditSourceContentById: (organizationId: string, sourceId: string, query?: {
|
|
8497
|
-
/** Output format for the content. */
|
|
8498
|
-
format?: 'document' | 'markdown';
|
|
8499
|
-
}, params?: RequestParams) => Promise<HttpResponse<Document, Error | {
|
|
8500
|
-
error: {
|
|
8501
|
-
/** @format int32 */
|
|
8502
|
-
code: 404;
|
|
8503
|
-
message: string;
|
|
8504
|
-
};
|
|
8505
|
-
}>>;
|
|
8506
8567
|
/**
|
|
8507
8568
|
* No description
|
|
8508
8569
|
*
|
|
@@ -8523,6 +8584,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8523
8584
|
limit?: number;
|
|
8524
8585
|
/** Identifier of the space to filter the sites by */
|
|
8525
8586
|
space?: string;
|
|
8587
|
+
/** Filter sites by their title */
|
|
8588
|
+
title?: string;
|
|
8589
|
+
/** Filter sites by their published status */
|
|
8590
|
+
published?: boolean;
|
|
8526
8591
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8527
8592
|
items: Site[];
|
|
8528
8593
|
}, Error>>;
|
|
@@ -8551,6 +8616,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8551
8616
|
/** ID of spaces to be added to the site */
|
|
8552
8617
|
spaces?: string[] | 'sample' | 'empty';
|
|
8553
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>>;
|
|
8554
8632
|
/**
|
|
8555
8633
|
* No description
|
|
8556
8634
|
*
|
|
@@ -8729,47 +8807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8729
8807
|
previewSitePlanUpdate: (organizationId: string, siteId: string, query: {
|
|
8730
8808
|
/** The desired site plan */
|
|
8731
8809
|
plan: SiteType;
|
|
8732
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8733
|
-
/** User can go ahead with the update without any billing. */
|
|
8734
|
-
type: 'update';
|
|
8735
|
-
} | {
|
|
8736
|
-
/** User must checkout to complete the update. */
|
|
8737
|
-
type: 'checkout';
|
|
8738
|
-
} | {
|
|
8739
|
-
/** User cannot proceed with the update due to lack of permissions. */
|
|
8740
|
-
type: 'no-permissions';
|
|
8741
|
-
} | {
|
|
8742
|
-
/** User needs to go through the legacy update flow. */
|
|
8743
|
-
type: 'legacy-upgrade';
|
|
8744
|
-
/** The plan the user must upgrade to. */
|
|
8745
|
-
plan: BillingProduct;
|
|
8746
|
-
invoice?: BillingInvoicePreview;
|
|
8747
|
-
}, Error | {
|
|
8748
|
-
error: {
|
|
8749
|
-
/** @format int32 */
|
|
8750
|
-
code: 404;
|
|
8751
|
-
message: string;
|
|
8752
|
-
};
|
|
8753
|
-
}>>;
|
|
8754
|
-
/**
|
|
8755
|
-
* No description
|
|
8756
|
-
*
|
|
8757
|
-
* @tags sites
|
|
8758
|
-
* @name PreviewSitePublish
|
|
8759
|
-
* @summary Preview publishing a site, returning checkout information.
|
|
8760
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/checkout
|
|
8761
|
-
* @secure
|
|
8762
|
-
*/
|
|
8763
|
-
previewSitePublish: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
8764
|
-
/** User can publish the site without any billing. */
|
|
8765
|
-
type: 'publish';
|
|
8766
|
-
} | {
|
|
8767
|
-
/** User must complete a checkout before publishing. */
|
|
8768
|
-
type: 'checkout';
|
|
8769
|
-
} | {
|
|
8770
|
-
/** User cannot publish due to lack of permissions. */
|
|
8771
|
-
type: 'no-permissions';
|
|
8772
|
-
}, Error | {
|
|
8810
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error | {
|
|
8773
8811
|
error: {
|
|
8774
8812
|
/** @format int32 */
|
|
8775
8813
|
code: 404;
|
|
@@ -8964,6 +9002,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8964
9002
|
* @max 1000
|
|
8965
9003
|
*/
|
|
8966
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;
|
|
8967
9007
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8968
9008
|
items: SiteSpace[];
|
|
8969
9009
|
}, Error>>;
|
|
@@ -9150,6 +9190,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9150
9190
|
* @secure
|
|
9151
9191
|
*/
|
|
9152
9192
|
trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9193
|
+
/**
|
|
9194
|
+
* No description
|
|
9195
|
+
*
|
|
9196
|
+
* @tags sites
|
|
9197
|
+
* @name UpdateSiteAdsById
|
|
9198
|
+
* @summary Enable, disable, or submit for review Ads on a site.
|
|
9199
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/ads
|
|
9200
|
+
* @secure
|
|
9201
|
+
*/
|
|
9202
|
+
updateSiteAdsById: (organizationId: string, siteId: string, data?: {
|
|
9203
|
+
status?: 'in-review' | 'disabled';
|
|
9204
|
+
/** Topic of the content */
|
|
9205
|
+
topic?: SiteAdsTopic;
|
|
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>>;
|
|
9153
9217
|
};
|
|
9154
9218
|
customHostnames: {
|
|
9155
9219
|
/**
|
|
@@ -9231,6 +9295,55 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9231
9295
|
};
|
|
9232
9296
|
}>>;
|
|
9233
9297
|
};
|
|
9298
|
+
ads: {
|
|
9299
|
+
/**
|
|
9300
|
+
* No description
|
|
9301
|
+
*
|
|
9302
|
+
* @tags ads
|
|
9303
|
+
* @name AdsListSites
|
|
9304
|
+
* @summary List all the sites with ads configured
|
|
9305
|
+
* @request GET:/ads/sites
|
|
9306
|
+
* @secure
|
|
9307
|
+
*/
|
|
9308
|
+
adsListSites: (query?: {
|
|
9309
|
+
/** Identifier of the page results to fetch. */
|
|
9310
|
+
page?: string;
|
|
9311
|
+
/**
|
|
9312
|
+
* The number of results per page
|
|
9313
|
+
* @min 0
|
|
9314
|
+
* @max 1000
|
|
9315
|
+
*/
|
|
9316
|
+
limit?: number;
|
|
9317
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9318
|
+
items: {
|
|
9319
|
+
id: string;
|
|
9320
|
+
url: string;
|
|
9321
|
+
email: string;
|
|
9322
|
+
/** Topic of the content */
|
|
9323
|
+
topic: SiteAdsTopic;
|
|
9324
|
+
}[];
|
|
9325
|
+
}, Error>>;
|
|
9326
|
+
/**
|
|
9327
|
+
* No description
|
|
9328
|
+
*
|
|
9329
|
+
* @tags ads
|
|
9330
|
+
* @name AdsUpdateSite
|
|
9331
|
+
* @summary Update the Ads configuration for a site
|
|
9332
|
+
* @request PATCH:/ads/sites/{siteId}
|
|
9333
|
+
* @secure
|
|
9334
|
+
*/
|
|
9335
|
+
adsUpdateSite: (siteId: string, data: {
|
|
9336
|
+
status: 'live';
|
|
9337
|
+
/** ID of the zone */
|
|
9338
|
+
zoneId: string;
|
|
9339
|
+
/** ID to fetch reporting data */
|
|
9340
|
+
reportingId: string;
|
|
9341
|
+
} | {
|
|
9342
|
+
status: 'rejected';
|
|
9343
|
+
} | {
|
|
9344
|
+
status: 'pending';
|
|
9345
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9346
|
+
};
|
|
9234
9347
|
internal: {
|
|
9235
9348
|
/**
|
|
9236
9349
|
* No description
|
|
@@ -9294,7 +9407,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9294
9407
|
url: URL;
|
|
9295
9408
|
/** JWT token generated for a visitor auth session */
|
|
9296
9409
|
visitorAuthToken?: string;
|
|
9297
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
9410
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
9298
9411
|
error: {
|
|
9299
9412
|
/** @format int32 */
|
|
9300
9413
|
code: 404;
|