@gitbook/api 0.60.0 → 0.62.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 +389 -334
- package/dist/index.cjs +104 -93
- package/dist/index.js +103 -91
- package/package.json +1 -1
- package/spec/openapi.json +1275 -1135
- package/spec/openapi.yaml +735 -643
package/dist/client.d.ts
CHANGED
|
@@ -1068,8 +1068,21 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1068
1068
|
git?: GitSyncBlob;
|
|
1069
1069
|
layout: RevisionPageLayoutOptions;
|
|
1070
1070
|
cover?: RevisionPageDocumentCover;
|
|
1071
|
-
/**
|
|
1071
|
+
/**
|
|
1072
|
+
* If true, the page is not displayed in the navigation, while still being accessible.
|
|
1073
|
+
* @default false
|
|
1074
|
+
*/
|
|
1072
1075
|
hidden?: boolean;
|
|
1076
|
+
/**
|
|
1077
|
+
* If true, the page is not indexable in the search and ask features.
|
|
1078
|
+
* @default false
|
|
1079
|
+
*/
|
|
1080
|
+
noIndex?: boolean;
|
|
1081
|
+
/**
|
|
1082
|
+
* If true, the page is not indexable by search engine robots.
|
|
1083
|
+
* @default false
|
|
1084
|
+
*/
|
|
1085
|
+
noRobotsIndex?: boolean;
|
|
1073
1086
|
};
|
|
1074
1087
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
1075
1088
|
/** @deprecated */
|
|
@@ -1078,6 +1091,11 @@ export declare type RevisionPageLink = RevisionPageBase & {
|
|
|
1078
1091
|
/** A relative reference to content in GitBook. */
|
|
1079
1092
|
target: ContentRef;
|
|
1080
1093
|
href?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* If true, the page is not displayed in the navigation, while still being accessible.
|
|
1096
|
+
* @default false
|
|
1097
|
+
*/
|
|
1098
|
+
hidden?: boolean;
|
|
1081
1099
|
};
|
|
1082
1100
|
export interface GitSyncBlob {
|
|
1083
1101
|
/** SHA for the blob */
|
|
@@ -1207,6 +1225,11 @@ export interface SpaceTrackPageView {
|
|
|
1207
1225
|
/** The URL of referrer that linked to the page. */
|
|
1208
1226
|
referrer: string;
|
|
1209
1227
|
}
|
|
1228
|
+
export interface InviteEmailsUsersTeamsToSpace {
|
|
1229
|
+
teams: string[];
|
|
1230
|
+
/** Role to set on the team. */
|
|
1231
|
+
role: MemberRoleOrGuest;
|
|
1232
|
+
}
|
|
1210
1233
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
1211
1234
|
/** @deprecated */
|
|
1212
1235
|
kind: 'group';
|
|
@@ -1215,8 +1238,21 @@ export declare type RevisionPageGroup = RevisionPageBase & {
|
|
|
1215
1238
|
slug: string;
|
|
1216
1239
|
/** Complete path to access the page in the revision. */
|
|
1217
1240
|
path: string;
|
|
1218
|
-
/**
|
|
1241
|
+
/**
|
|
1242
|
+
* If true, the page is not displayed in the navigation, while still being accessible.
|
|
1243
|
+
* @default false
|
|
1244
|
+
*/
|
|
1219
1245
|
hidden?: boolean;
|
|
1246
|
+
/**
|
|
1247
|
+
* If true, the page is not indexable in the search and ask features.
|
|
1248
|
+
* @default false
|
|
1249
|
+
*/
|
|
1250
|
+
noIndex?: boolean;
|
|
1251
|
+
/**
|
|
1252
|
+
* If true, the page is not indexable by search engine robots.
|
|
1253
|
+
* @default false
|
|
1254
|
+
*/
|
|
1255
|
+
noRobotsIndex?: boolean;
|
|
1220
1256
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1221
1257
|
};
|
|
1222
1258
|
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
@@ -1424,8 +1460,6 @@ export interface Organization {
|
|
|
1424
1460
|
sso?: boolean;
|
|
1425
1461
|
/** If true, the organization is configured to use all our AI features. */
|
|
1426
1462
|
ai?: boolean;
|
|
1427
|
-
/** If true, the organization is configured to run content audits on any space update */
|
|
1428
|
-
aiInsights?: boolean;
|
|
1429
1463
|
/** URLs associated with the object */
|
|
1430
1464
|
urls: {
|
|
1431
1465
|
/**
|
|
@@ -1819,6 +1853,11 @@ export interface SyncedBlock {
|
|
|
1819
1853
|
* @maxLength 100
|
|
1820
1854
|
*/
|
|
1821
1855
|
title?: string;
|
|
1856
|
+
/** Usage of synced block */
|
|
1857
|
+
usage: {
|
|
1858
|
+
/** Number of spaces where the synced block is used in */
|
|
1859
|
+
spaces: number;
|
|
1860
|
+
};
|
|
1822
1861
|
/** URLs associated with the object */
|
|
1823
1862
|
urls: {
|
|
1824
1863
|
/** URL of the synced block in the API */
|
|
@@ -2232,6 +2271,7 @@ export declare enum CustomizationLocale {
|
|
|
2232
2271
|
Zh = "zh",
|
|
2233
2272
|
Ja = "ja",
|
|
2234
2273
|
De = "de",
|
|
2274
|
+
Nl = "nl",
|
|
2235
2275
|
PtBr = "pt-br"
|
|
2236
2276
|
}
|
|
2237
2277
|
export interface CustomizationThemedURL {
|
|
@@ -2333,26 +2373,6 @@ export interface CustomizationSettings {
|
|
|
2333
2373
|
url?: URL;
|
|
2334
2374
|
};
|
|
2335
2375
|
}
|
|
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
2376
|
export declare type SpaceIntegrationBlocks = {
|
|
2357
2377
|
/** Unique named identifier for the integration */
|
|
2358
2378
|
name: string;
|
|
@@ -3397,6 +3417,12 @@ export interface UpgradeOrganizationBilling {
|
|
|
3397
3417
|
product: BillingProduct;
|
|
3398
3418
|
/** Interval for a billing subscription */
|
|
3399
3419
|
interval: BillingInterval;
|
|
3420
|
+
/** Members to remove or sites to unpublish before upgrading */
|
|
3421
|
+
exclude?: {
|
|
3422
|
+
members?: string[];
|
|
3423
|
+
premiumSites?: string[];
|
|
3424
|
+
audienceSites?: string[];
|
|
3425
|
+
};
|
|
3400
3426
|
/** Reason that triggered the billing upgrade */
|
|
3401
3427
|
reason?: string;
|
|
3402
3428
|
/** 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 +3484,52 @@ export interface OrganizationExperimentalFeature {
|
|
|
3458
3484
|
enabled: boolean;
|
|
3459
3485
|
stage: 'alpha' | 'beta';
|
|
3460
3486
|
}
|
|
3487
|
+
/**
|
|
3488
|
+
* @minLength 1
|
|
3489
|
+
* @maxLength 30
|
|
3490
|
+
*/
|
|
3491
|
+
export declare type SAMLProviderLabel = string;
|
|
3492
|
+
/** @maxLength 1024 */
|
|
3493
|
+
export declare type SAMLProviderEntityID = string;
|
|
3494
|
+
/** @maxLength 10000 */
|
|
3495
|
+
export declare type SAMLProviderCertificate = string;
|
|
3496
|
+
export interface OrganizationSAMLProvider {
|
|
3497
|
+
/** Type of Object, always equals to "saml-provider" */
|
|
3498
|
+
object: 'saml-provider';
|
|
3499
|
+
/** Unique identifier for the provider. */
|
|
3500
|
+
id: string;
|
|
3501
|
+
label: SAMLProviderLabel;
|
|
3502
|
+
ssoURL: URL;
|
|
3503
|
+
entityID: SAMLProviderEntityID;
|
|
3504
|
+
certificate: SAMLProviderCertificate;
|
|
3505
|
+
defaultTeam?: OrganizationTeam;
|
|
3506
|
+
/** The role of a member in an organization, null for guests */
|
|
3507
|
+
defaultRole: MemberRoleOrGuest;
|
|
3508
|
+
/** Date at which the provider was created. */
|
|
3509
|
+
createdAt: Timestamp;
|
|
3510
|
+
/** Metadata about the service provider. */
|
|
3511
|
+
service: {
|
|
3512
|
+
/**
|
|
3513
|
+
* Assertion Consumer Service (ACS) URL
|
|
3514
|
+
* @format uri
|
|
3515
|
+
*/
|
|
3516
|
+
acsURL: string;
|
|
3517
|
+
/**
|
|
3518
|
+
* Start URL for the Identity Provider
|
|
3519
|
+
* @format uri
|
|
3520
|
+
*/
|
|
3521
|
+
startURL: string;
|
|
3522
|
+
entityID: SAMLProviderEntityID;
|
|
3523
|
+
};
|
|
3524
|
+
/** URLs associated with the object */
|
|
3525
|
+
urls: {
|
|
3526
|
+
/**
|
|
3527
|
+
* URL of the SAML Provider in the API
|
|
3528
|
+
* @format uri
|
|
3529
|
+
*/
|
|
3530
|
+
location: string;
|
|
3531
|
+
};
|
|
3532
|
+
}
|
|
3461
3533
|
/** Spaces usage metrics of an organization */
|
|
3462
3534
|
export interface OrganizationUsageSpaces {
|
|
3463
3535
|
/** Count of all spaces */
|
|
@@ -3640,47 +3712,11 @@ export interface UpdateSnippetSchema {
|
|
|
3640
3712
|
/** A new title for the snippet. */
|
|
3641
3713
|
title?: string;
|
|
3642
3714
|
}
|
|
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
3715
|
/** The type of the site */
|
|
3680
3716
|
export declare enum SiteType {
|
|
3681
3717
|
Basic = "basic",
|
|
3682
|
-
Standard = "standard",
|
|
3683
3718
|
Premium = "premium",
|
|
3719
|
+
Audience = "audience",
|
|
3684
3720
|
LegacyBasic = "legacy-basic",
|
|
3685
3721
|
LegacyPremium = "legacy-premium"
|
|
3686
3722
|
}
|
|
@@ -3727,8 +3763,6 @@ export declare type SiteAds = {
|
|
|
3727
3763
|
status: 'in-review';
|
|
3728
3764
|
/** Topic of the content */
|
|
3729
3765
|
topic: SiteAdsTopic;
|
|
3730
|
-
/** The email address linked to the Ads partner account */
|
|
3731
|
-
accountEmail: string;
|
|
3732
3766
|
} | {
|
|
3733
3767
|
status: 'rejected';
|
|
3734
3768
|
} | {
|
|
@@ -3737,8 +3771,6 @@ export declare type SiteAds = {
|
|
|
3737
3771
|
topic: SiteAdsTopic;
|
|
3738
3772
|
/** The ad network zone ID */
|
|
3739
3773
|
zoneId: string;
|
|
3740
|
-
/** The email address linked to the Ads partner account */
|
|
3741
|
-
accountEmail: string;
|
|
3742
3774
|
};
|
|
3743
3775
|
export interface Site {
|
|
3744
3776
|
object: 'site';
|
|
@@ -3785,6 +3817,27 @@ export interface Site {
|
|
|
3785
3817
|
published?: string;
|
|
3786
3818
|
};
|
|
3787
3819
|
}
|
|
3820
|
+
/** 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. */
|
|
3821
|
+
export declare type BillingOperationPreviewResponse = {
|
|
3822
|
+
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
3823
|
+
type: 'go-ahead';
|
|
3824
|
+
} | {
|
|
3825
|
+
/** By going ahead with this operation, the user will be starting a trial in GitBook. */
|
|
3826
|
+
type: 'trial-available';
|
|
3827
|
+
} | {
|
|
3828
|
+
/** User must checkout to complete the operation. */
|
|
3829
|
+
type: 'checkout';
|
|
3830
|
+
invoice?: BillingInvoicePreview;
|
|
3831
|
+
} | {
|
|
3832
|
+
/** User cannot proceed with the operation due to lack of permissions. */
|
|
3833
|
+
type: 'no-permissions';
|
|
3834
|
+
} | {
|
|
3835
|
+
/** User needs to go through the legacy upgrade flow. */
|
|
3836
|
+
type: 'legacy-upgrade';
|
|
3837
|
+
/** The plan the user must upgrade to. */
|
|
3838
|
+
plan: BillingProduct;
|
|
3839
|
+
invoice?: BillingInvoicePreview;
|
|
3840
|
+
};
|
|
3788
3841
|
export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3789
3842
|
/** Type of Object, always equals to "publishing-auth" */
|
|
3790
3843
|
object: 'publishing-auth';
|
|
@@ -4067,6 +4120,17 @@ export interface SiteTrackPageView {
|
|
|
4067
4120
|
/** The URL of referrer that linked to the page. */
|
|
4068
4121
|
referrer: string;
|
|
4069
4122
|
}
|
|
4123
|
+
export interface SiteAdsStats {
|
|
4124
|
+
impressions: number;
|
|
4125
|
+
clicks: number;
|
|
4126
|
+
revenue: string;
|
|
4127
|
+
account: {
|
|
4128
|
+
/** Email address on the Ads platform. */
|
|
4129
|
+
email: string;
|
|
4130
|
+
/** URL to configure payout. */
|
|
4131
|
+
url: string;
|
|
4132
|
+
};
|
|
4133
|
+
}
|
|
4070
4134
|
export declare enum CustomHostnameDnsStatus {
|
|
4071
4135
|
DnsPassed = "dns_passed",
|
|
4072
4136
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -4192,28 +4256,6 @@ export interface StaffUserInfo {
|
|
|
4192
4256
|
id: string;
|
|
4193
4257
|
searchKey: string;
|
|
4194
4258
|
}
|
|
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
4259
|
/** The User Firebase Auth Info. */
|
|
4218
4260
|
export interface FirebaseUserInfo {
|
|
4219
4261
|
uid: string;
|
|
@@ -4226,8 +4268,6 @@ export interface FirebaseUserInfo {
|
|
|
4226
4268
|
/** The GitBook User info shown in the BackOffice. */
|
|
4227
4269
|
export interface UserBackOfficeInfo {
|
|
4228
4270
|
id: string;
|
|
4229
|
-
/** The GitBook User risk evaluation. */
|
|
4230
|
-
riskEvaluation: UserRiskEvaluation;
|
|
4231
4271
|
authProviders: FirebaseUserInfo[];
|
|
4232
4272
|
createdAt: string;
|
|
4233
4273
|
lastSignInAt: string;
|
|
@@ -4297,24 +4337,6 @@ export declare type BackOfficeSite = Site & {
|
|
|
4297
4337
|
/** ID of the organization owning this site */
|
|
4298
4338
|
organization: string;
|
|
4299
4339
|
};
|
|
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
4340
|
export declare type PublishedSiteContentLookup = {
|
|
4319
4341
|
/** Type of target for the redirect */
|
|
4320
4342
|
target: 'application' | 'content' | 'external';
|
|
@@ -4341,6 +4363,13 @@ export declare type PublishedSiteContentLookup = {
|
|
|
4341
4363
|
/** Share link key of the site in case the site was published with share-links. */
|
|
4342
4364
|
shareKey?: string;
|
|
4343
4365
|
};
|
|
4366
|
+
export interface UpdateContentPublishingAuth {
|
|
4367
|
+
/**
|
|
4368
|
+
* A fallback URL that will be used if authentication fails.
|
|
4369
|
+
* @format uri
|
|
4370
|
+
*/
|
|
4371
|
+
fallbackURL?: string;
|
|
4372
|
+
}
|
|
4344
4373
|
/** The context to send when triggering a content indexing. */
|
|
4345
4374
|
export interface TriggerContentIndexingContext {
|
|
4346
4375
|
/** The unique identifier of the Space to index. */
|
|
@@ -4348,6 +4377,19 @@ export interface TriggerContentIndexingContext {
|
|
|
4348
4377
|
/** Whether to force a complete re-indexing of the Space. */
|
|
4349
4378
|
force: boolean;
|
|
4350
4379
|
}
|
|
4380
|
+
export interface ContentPublishingAuth {
|
|
4381
|
+
/** Type of Object, always equals to "publishing-auth" */
|
|
4382
|
+
object: 'publishing-auth';
|
|
4383
|
+
/** Unique identifier for the content. */
|
|
4384
|
+
id: string;
|
|
4385
|
+
/** Private key used to sign JWT tokens. */
|
|
4386
|
+
privateKey: string;
|
|
4387
|
+
/**
|
|
4388
|
+
* URL to redirect to when the visitor auth secret is invalid.
|
|
4389
|
+
* @format uri
|
|
4390
|
+
*/
|
|
4391
|
+
fallbackURL?: string;
|
|
4392
|
+
}
|
|
4351
4393
|
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
4394
|
/** The type of semantic change. */
|
|
4353
4395
|
export declare enum RevisionSemanticChangeType {
|
|
@@ -4406,6 +4448,13 @@ export interface IntegrationEnvironment {
|
|
|
4406
4448
|
installation?: string;
|
|
4407
4449
|
};
|
|
4408
4450
|
}
|
|
4451
|
+
export declare enum BillingTrialStatus {
|
|
4452
|
+
Notapplicable = "notapplicable",
|
|
4453
|
+
None = "none",
|
|
4454
|
+
Active = "active",
|
|
4455
|
+
Ended = "ended",
|
|
4456
|
+
Expired = "expired"
|
|
4457
|
+
}
|
|
4409
4458
|
export declare enum APIIntegrationScope {
|
|
4410
4459
|
IntegrationRead = "integration:read",
|
|
4411
4460
|
IntegrationUpdate = "integration:update",
|
|
@@ -4501,6 +4550,10 @@ export interface OrganizationMemberChannel {
|
|
|
4501
4550
|
organization: string;
|
|
4502
4551
|
user: string;
|
|
4503
4552
|
}
|
|
4553
|
+
export interface OrganizationSAMLChannel {
|
|
4554
|
+
channel: 'organization-saml';
|
|
4555
|
+
organization: string;
|
|
4556
|
+
}
|
|
4504
4557
|
export interface OrganizationTeamsChannel {
|
|
4505
4558
|
channel: 'organization-teams';
|
|
4506
4559
|
organization: string;
|
|
@@ -4535,10 +4588,6 @@ export interface OrganizationCapturesChannel {
|
|
|
4535
4588
|
channel: 'organization-captures';
|
|
4536
4589
|
organization: string;
|
|
4537
4590
|
}
|
|
4538
|
-
export interface OrganizationContentAuditsChannel {
|
|
4539
|
-
channel: 'organization-content-audits';
|
|
4540
|
-
organization: string;
|
|
4541
|
-
}
|
|
4542
4591
|
export interface OrganizationIntegrationsChannel {
|
|
4543
4592
|
channel: 'organization-integrations';
|
|
4544
4593
|
organization: string;
|
|
@@ -4556,6 +4605,11 @@ export interface OrganizationExperimentalFeaturesChannel {
|
|
|
4556
4605
|
channel: 'organization-experimental-features';
|
|
4557
4606
|
organization: string;
|
|
4558
4607
|
}
|
|
4608
|
+
/** Subscription channel for changes in synced blocks in an organization. */
|
|
4609
|
+
export interface OrganizationSyncedBlocksChannel {
|
|
4610
|
+
channel: 'organization-synced-blocks';
|
|
4611
|
+
organization: string;
|
|
4612
|
+
}
|
|
4559
4613
|
export interface OrganizationSyncedBlockChannel {
|
|
4560
4614
|
channel: 'organization-synced-block';
|
|
4561
4615
|
organization: string;
|
|
@@ -4662,7 +4716,7 @@ export interface CustomHostnameChannel {
|
|
|
4662
4716
|
customHostname: string;
|
|
4663
4717
|
}
|
|
4664
4718
|
/** 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 |
|
|
4719
|
+
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
4720
|
/** The status of ads on the site */
|
|
4667
4721
|
export declare enum SiteAdsStatus {
|
|
4668
4722
|
Pending = "pending",
|
|
@@ -4917,18 +4971,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4917
4971
|
editMode?: SpaceEditMode;
|
|
4918
4972
|
/** Title of the space */
|
|
4919
4973
|
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
4974
|
/** Default level for a piece of content */
|
|
4933
4975
|
defaultLevel?: DefaultLevel;
|
|
4934
4976
|
} & ({
|
|
@@ -5227,6 +5269,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5227
5269
|
* @secure
|
|
5228
5270
|
*/
|
|
5229
5271
|
trackViewInSpaceById: (spaceId: string, data: SpaceTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5272
|
+
/**
|
|
5273
|
+
* No description
|
|
5274
|
+
*
|
|
5275
|
+
* @tags spaces
|
|
5276
|
+
* @name InviteToSpace
|
|
5277
|
+
* @summary Invite to a space (only teams supported for now)
|
|
5278
|
+
* @request POST:/spaces/{spaceId}/permissions
|
|
5279
|
+
* @secure
|
|
5280
|
+
*/
|
|
5281
|
+
inviteToSpace: (spaceId: string, data: InviteEmailsUsersTeamsToSpace, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
5282
|
+
error: {
|
|
5283
|
+
/** @format int32 */
|
|
5284
|
+
code: 404;
|
|
5285
|
+
message: string;
|
|
5286
|
+
};
|
|
5287
|
+
}>>;
|
|
5288
|
+
/**
|
|
5289
|
+
* No description
|
|
5290
|
+
*
|
|
5291
|
+
* @tags spaces
|
|
5292
|
+
* @name RemoveTeamFromSpace
|
|
5293
|
+
* @summary Remove a team from a space
|
|
5294
|
+
* @request DELETE:/spaces/{spaceId}/permissions/teams/{teamId}
|
|
5295
|
+
* @secure
|
|
5296
|
+
*/
|
|
5297
|
+
removeTeamFromSpace: (spaceId: string, teamId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
5298
|
+
error: {
|
|
5299
|
+
/** @format int32 */
|
|
5300
|
+
code: 400;
|
|
5301
|
+
message: string;
|
|
5302
|
+
};
|
|
5303
|
+
} | {
|
|
5304
|
+
error: {
|
|
5305
|
+
/** @format int32 */
|
|
5306
|
+
code: 404;
|
|
5307
|
+
message: string;
|
|
5308
|
+
};
|
|
5309
|
+
}>>;
|
|
5230
5310
|
/**
|
|
5231
5311
|
* No description
|
|
5232
5312
|
*
|
|
@@ -6309,56 +6389,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6309
6389
|
message: string;
|
|
6310
6390
|
};
|
|
6311
6391
|
}>>;
|
|
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
6392
|
/**
|
|
6363
6393
|
* No description
|
|
6364
6394
|
*
|
|
@@ -6695,38 +6725,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6695
6725
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6696
6726
|
items: UserContentPermission[];
|
|
6697
6727
|
}, 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
6728
|
/**
|
|
6731
6729
|
* No description
|
|
6732
6730
|
*
|
|
@@ -7349,7 +7347,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7349
7347
|
logo?: URL | null;
|
|
7350
7348
|
sso?: boolean;
|
|
7351
7349
|
ai?: boolean;
|
|
7352
|
-
aiInsights?: boolean;
|
|
7353
7350
|
}, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
7354
7351
|
error: {
|
|
7355
7352
|
/** @format int32 */
|
|
@@ -7384,6 +7381,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7384
7381
|
role?: MemberRole | 'guest';
|
|
7385
7382
|
/** A query to filter the member list (displayName and email) */
|
|
7386
7383
|
search?: string;
|
|
7384
|
+
/**
|
|
7385
|
+
* The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
|
|
7386
|
+
* @default "joinedAt"
|
|
7387
|
+
*/
|
|
7388
|
+
sort?: 'joinedAt' | 'lastSeenAt';
|
|
7387
7389
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7388
7390
|
items: OrganizationMember[];
|
|
7389
7391
|
}, Error>>;
|
|
@@ -7705,6 +7707,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7705
7707
|
* @secure
|
|
7706
7708
|
*/
|
|
7707
7709
|
getOrganizationBillingPortal: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<BillingPortal, Error>>;
|
|
7710
|
+
/**
|
|
7711
|
+
* No description
|
|
7712
|
+
*
|
|
7713
|
+
* @tags organizations
|
|
7714
|
+
* @name PreviewBillingInvoice
|
|
7715
|
+
* @summary Generates a billing invoice preview for organizations without an active subscription
|
|
7716
|
+
* @request GET:/orgs/{organizationId}/billing/preview
|
|
7717
|
+
* @secure
|
|
7718
|
+
*/
|
|
7719
|
+
previewBillingInvoice: (organizationId: string, query: {
|
|
7720
|
+
/** The desired billing interval plan */
|
|
7721
|
+
interval: BillingInterval;
|
|
7722
|
+
/** The desired core plan */
|
|
7723
|
+
product: BillingProduct;
|
|
7724
|
+
/** The desired amount of members in the organization */
|
|
7725
|
+
members?: number;
|
|
7726
|
+
/** The desired amount of published premium sites */
|
|
7727
|
+
premiumSites?: number;
|
|
7728
|
+
/** The desired amount of published audience sites */
|
|
7729
|
+
audienceSites?: number;
|
|
7730
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
|
|
7708
7731
|
/**
|
|
7709
7732
|
* No description
|
|
7710
7733
|
*
|
|
@@ -8027,6 +8050,89 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8027
8050
|
* @secure
|
|
8028
8051
|
*/
|
|
8029
8052
|
updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8053
|
+
/**
|
|
8054
|
+
* @description Lists SAML providers configured for the specified organization.
|
|
8055
|
+
*
|
|
8056
|
+
* @tags organizations
|
|
8057
|
+
* @name ListSamlProvidersInOrganizationById
|
|
8058
|
+
* @summary List organization SAML providers
|
|
8059
|
+
* @request GET:/orgs/{organizationId}/saml
|
|
8060
|
+
* @secure
|
|
8061
|
+
*/
|
|
8062
|
+
listSamlProvidersInOrganizationById: (organizationId: string, query?: {
|
|
8063
|
+
/** Identifier of the page results to fetch. */
|
|
8064
|
+
page?: string;
|
|
8065
|
+
/**
|
|
8066
|
+
* The number of results per page
|
|
8067
|
+
* @min 0
|
|
8068
|
+
* @max 1000
|
|
8069
|
+
*/
|
|
8070
|
+
limit?: number;
|
|
8071
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8072
|
+
items: OrganizationSAMLProvider[];
|
|
8073
|
+
}, Error>>;
|
|
8074
|
+
/**
|
|
8075
|
+
* No description
|
|
8076
|
+
*
|
|
8077
|
+
* @tags organizations
|
|
8078
|
+
* @name CreateOrganizationSamlProvider
|
|
8079
|
+
* @summary Create a new SAML provider in an orgamization
|
|
8080
|
+
* @request POST:/orgs/{organizationId}/saml
|
|
8081
|
+
* @secure
|
|
8082
|
+
*/
|
|
8083
|
+
createOrganizationSamlProvider: (organizationId: string, data: {
|
|
8084
|
+
label: SAMLProviderLabel;
|
|
8085
|
+
entityID?: SAMLProviderEntityID;
|
|
8086
|
+
certificate?: SAMLProviderCertificate;
|
|
8087
|
+
ssoURL?: URL;
|
|
8088
|
+
defaultTeam?: string;
|
|
8089
|
+
/** The role of a member in an organization, null for guests */
|
|
8090
|
+
defaultRole?: MemberRoleOrGuest;
|
|
8091
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error>>;
|
|
8092
|
+
/**
|
|
8093
|
+
* No description
|
|
8094
|
+
*
|
|
8095
|
+
* @tags organizations
|
|
8096
|
+
* @name GetOrganizationSamlProviderById
|
|
8097
|
+
* @summary Get a SAML provider in an organization by its ID
|
|
8098
|
+
* @request GET:/orgs/{organizationId}/saml/{samlProviderId}
|
|
8099
|
+
* @secure
|
|
8100
|
+
*/
|
|
8101
|
+
getOrganizationSamlProviderById: (organizationId: string, samlProviderId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error | {
|
|
8102
|
+
error: {
|
|
8103
|
+
/** @format int32 */
|
|
8104
|
+
code: 404;
|
|
8105
|
+
message: string;
|
|
8106
|
+
};
|
|
8107
|
+
}>>;
|
|
8108
|
+
/**
|
|
8109
|
+
* No description
|
|
8110
|
+
*
|
|
8111
|
+
* @tags organizations
|
|
8112
|
+
* @name UpdateOrganizationSamlProvider
|
|
8113
|
+
* @summary Update a SAML provider in an organization
|
|
8114
|
+
* @request PATCH:/orgs/{organizationId}/saml/{samlProviderId}
|
|
8115
|
+
* @secure
|
|
8116
|
+
*/
|
|
8117
|
+
updateOrganizationSamlProvider: (organizationId: string, samlProviderId: string, data: {
|
|
8118
|
+
label?: SAMLProviderLabel;
|
|
8119
|
+
entityID?: SAMLProviderEntityID;
|
|
8120
|
+
certificate?: SAMLProviderCertificate;
|
|
8121
|
+
ssoURL?: URL;
|
|
8122
|
+
defaultTeam?: string;
|
|
8123
|
+
/** The role of a member in an organization, null for guests */
|
|
8124
|
+
defaultRole?: MemberRoleOrGuest;
|
|
8125
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationSAMLProvider, Error>>;
|
|
8126
|
+
/**
|
|
8127
|
+
* No description
|
|
8128
|
+
*
|
|
8129
|
+
* @tags organizations
|
|
8130
|
+
* @name DeleteOrganizationSamlProvider
|
|
8131
|
+
* @summary Delete a SAML provider in an organization
|
|
8132
|
+
* @request DELETE:/orgs/{organizationId}/saml/{samlProviderId}
|
|
8133
|
+
* @secure
|
|
8134
|
+
*/
|
|
8135
|
+
deleteOrganizationSamlProvider: (organizationId: string, samlProviderId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8030
8136
|
/**
|
|
8031
8137
|
* No description
|
|
8032
8138
|
*
|
|
@@ -8326,6 +8432,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8326
8432
|
parentPage?: RevisionPageDocument | RevisionPageGroup;
|
|
8327
8433
|
}[];
|
|
8328
8434
|
}, Error>>;
|
|
8435
|
+
/**
|
|
8436
|
+
* No description
|
|
8437
|
+
*
|
|
8438
|
+
* @tags organizations
|
|
8439
|
+
* @name ListSyncedBlocks
|
|
8440
|
+
* @summary List all the synced blocks created in an organization
|
|
8441
|
+
* @request GET:/orgs/{organizationId}/synced-blocks
|
|
8442
|
+
* @secure
|
|
8443
|
+
*/
|
|
8444
|
+
listSyncedBlocks: (organizationId: string, query?: {
|
|
8445
|
+
/** Identifier of the page results to fetch. */
|
|
8446
|
+
page?: string;
|
|
8447
|
+
/**
|
|
8448
|
+
* The number of results per page
|
|
8449
|
+
* @min 0
|
|
8450
|
+
* @max 1000
|
|
8451
|
+
*/
|
|
8452
|
+
limit?: number;
|
|
8453
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8454
|
+
items: SyncedBlock[];
|
|
8455
|
+
}, Error>>;
|
|
8329
8456
|
/**
|
|
8330
8457
|
* No description
|
|
8331
8458
|
*
|
|
@@ -8397,6 +8524,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8397
8524
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8398
8525
|
items: ContentLocation[];
|
|
8399
8526
|
}, Error>>;
|
|
8527
|
+
/**
|
|
8528
|
+
* No description
|
|
8529
|
+
*
|
|
8530
|
+
* @tags organizations
|
|
8531
|
+
* @name ListSyncedBlockSpaces
|
|
8532
|
+
* @summary Get a list of spaces that reference this synced block.
|
|
8533
|
+
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces
|
|
8534
|
+
* @secure
|
|
8535
|
+
*/
|
|
8536
|
+
listSyncedBlockSpaces: (organizationId: string, syncedBlockId: string, query?: {
|
|
8537
|
+
/** Identifier of the page results to fetch. */
|
|
8538
|
+
page?: string;
|
|
8539
|
+
/**
|
|
8540
|
+
* The number of results per page
|
|
8541
|
+
* @min 0
|
|
8542
|
+
* @max 1000
|
|
8543
|
+
*/
|
|
8544
|
+
limit?: number;
|
|
8545
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8546
|
+
items: Space[];
|
|
8547
|
+
}, Error>>;
|
|
8400
8548
|
/**
|
|
8401
8549
|
* No description
|
|
8402
8550
|
*
|
|
@@ -8447,90 +8595,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8447
8595
|
/** Return query details in the result */
|
|
8448
8596
|
details?: boolean;
|
|
8449
8597
|
}, 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
8598
|
/**
|
|
8535
8599
|
* No description
|
|
8536
8600
|
*
|
|
@@ -8551,6 +8615,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8551
8615
|
limit?: number;
|
|
8552
8616
|
/** Identifier of the space to filter the sites by */
|
|
8553
8617
|
space?: string;
|
|
8618
|
+
/** Filter sites by their title */
|
|
8619
|
+
title?: string;
|
|
8620
|
+
/** Filter sites by their published status */
|
|
8621
|
+
published?: boolean;
|
|
8554
8622
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8555
8623
|
items: Site[];
|
|
8556
8624
|
}, Error>>;
|
|
@@ -8579,6 +8647,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8579
8647
|
/** ID of spaces to be added to the site */
|
|
8580
8648
|
spaces?: string[] | 'sample' | 'empty';
|
|
8581
8649
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8650
|
+
/**
|
|
8651
|
+
* No description
|
|
8652
|
+
*
|
|
8653
|
+
* @tags sites
|
|
8654
|
+
* @name PreviewSitePublishCheckout
|
|
8655
|
+
* @summary Preview checkout information upon publishing a site in the organization.
|
|
8656
|
+
* @request GET:/orgs/{organizationId}/sites/publishing/checkout
|
|
8657
|
+
* @secure
|
|
8658
|
+
*/
|
|
8659
|
+
previewSitePublishCheckout: (organizationId: string, query: {
|
|
8660
|
+
/** The plan of the site to preview the checkout information for. */
|
|
8661
|
+
plan: SiteType;
|
|
8662
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error>>;
|
|
8582
8663
|
/**
|
|
8583
8664
|
* No description
|
|
8584
8665
|
*
|
|
@@ -8757,47 +8838,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8757
8838
|
previewSitePlanUpdate: (organizationId: string, siteId: string, query: {
|
|
8758
8839
|
/** The desired site plan */
|
|
8759
8840
|
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 | {
|
|
8841
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error | {
|
|
8801
8842
|
error: {
|
|
8802
8843
|
/** @format int32 */
|
|
8803
8844
|
code: 404;
|
|
@@ -8992,6 +9033,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8992
9033
|
* @max 1000
|
|
8993
9034
|
*/
|
|
8994
9035
|
limit?: number;
|
|
9036
|
+
/** 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. */
|
|
9037
|
+
default?: boolean;
|
|
8995
9038
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8996
9039
|
items: SiteSpace[];
|
|
8997
9040
|
}, Error>>;
|
|
@@ -9192,6 +9235,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9192
9235
|
/** Topic of the content */
|
|
9193
9236
|
topic?: SiteAdsTopic;
|
|
9194
9237
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9238
|
+
/**
|
|
9239
|
+
* No description
|
|
9240
|
+
*
|
|
9241
|
+
* @tags sites
|
|
9242
|
+
* @name GetSiteAdsStatsById
|
|
9243
|
+
* @summary Get the stats about Ads on a site.
|
|
9244
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/ads/stats
|
|
9245
|
+
* @secure
|
|
9246
|
+
*/
|
|
9247
|
+
getSiteAdsStatsById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteAdsStats, Error>>;
|
|
9195
9248
|
};
|
|
9196
9249
|
customHostnames: {
|
|
9197
9250
|
/**
|
|
@@ -9296,7 +9349,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9296
9349
|
items: {
|
|
9297
9350
|
id: string;
|
|
9298
9351
|
url: string;
|
|
9299
|
-
|
|
9352
|
+
email: string;
|
|
9353
|
+
/** Topic of the content */
|
|
9354
|
+
topic: SiteAdsTopic;
|
|
9300
9355
|
}[];
|
|
9301
9356
|
}, Error>>;
|
|
9302
9357
|
/**
|
|
@@ -9383,7 +9438,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9383
9438
|
url: URL;
|
|
9384
9439
|
/** JWT token generated for a visitor auth session */
|
|
9385
9440
|
visitorAuthToken?: string;
|
|
9386
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
9441
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedSiteContentLookup, Error | {
|
|
9387
9442
|
error: {
|
|
9388
9443
|
/** @format int32 */
|
|
9389
9444
|
code: 404;
|