@gitbook/api 0.46.0 → 0.48.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 +189 -66
- package/dist/index.cjs +68 -27
- package/dist/index.js +67 -25
- package/package.json +1 -1
- package/spec/openapi.json +617 -173
- package/spec/openapi.yaml +338 -100
package/dist/client.d.ts
CHANGED
|
@@ -147,6 +147,8 @@ export interface RequestUpdateIntegrationInstallation {
|
|
|
147
147
|
configuration?: IntegrationInstallationConfiguration;
|
|
148
148
|
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
149
149
|
space_selection?: IntegrationInstallationSpaceSelection;
|
|
150
|
+
/** Describe whether all sites have been selected or there's a selection involved */
|
|
151
|
+
site_selection?: IntegrationInstallationSiteSelection;
|
|
150
152
|
}
|
|
151
153
|
export interface RequestUpdateIntegrationSpaceInstallation {
|
|
152
154
|
/** External IDs assigned by the integration. */
|
|
@@ -1148,8 +1150,7 @@ export interface ContentLocationFile {
|
|
|
1148
1150
|
kind: 'file';
|
|
1149
1151
|
organization: Organization;
|
|
1150
1152
|
space: Space;
|
|
1151
|
-
|
|
1152
|
-
revision?: Revision;
|
|
1153
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
1153
1154
|
file: RevisionFile;
|
|
1154
1155
|
}
|
|
1155
1156
|
export interface ContentLocationPage {
|
|
@@ -1157,12 +1158,16 @@ export interface ContentLocationPage {
|
|
|
1157
1158
|
organization: Organization;
|
|
1158
1159
|
page: RevisionPage;
|
|
1159
1160
|
space: Space;
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1161
|
+
versionContext?: ContentLocationRevisionContext | ContentLocationChangeRequestContext;
|
|
1162
|
+
internalLocation?: {
|
|
1163
|
+
type: 'anchor';
|
|
1164
|
+
/** The anchor within the page. */
|
|
1165
|
+
anchor: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
type: 'node';
|
|
1168
|
+
/** The node id within the page. */
|
|
1169
|
+
node: string;
|
|
1170
|
+
};
|
|
1166
1171
|
}
|
|
1167
1172
|
export interface ContentLocationUser {
|
|
1168
1173
|
kind: 'user';
|
|
@@ -1188,6 +1193,14 @@ export interface ContentLocationSyncedBlock {
|
|
|
1188
1193
|
organization: Organization;
|
|
1189
1194
|
syncedBlock: SyncedBlock;
|
|
1190
1195
|
}
|
|
1196
|
+
export interface ContentLocationChangeRequestContext {
|
|
1197
|
+
type: 'changeRequest';
|
|
1198
|
+
changeRequest: ChangeRequest;
|
|
1199
|
+
}
|
|
1200
|
+
export interface ContentLocationRevisionContext {
|
|
1201
|
+
type: 'revision';
|
|
1202
|
+
revision: Revision;
|
|
1203
|
+
}
|
|
1191
1204
|
export interface Space {
|
|
1192
1205
|
/** Type of Object, always equals to "space" */
|
|
1193
1206
|
object: 'space';
|
|
@@ -1851,8 +1864,6 @@ export interface OrganizationUsageSites {
|
|
|
1851
1864
|
shareLink: number;
|
|
1852
1865
|
/** Count of all visitor-authenticated sites */
|
|
1853
1866
|
visitorAuth: number;
|
|
1854
|
-
/** Count of all unpublished sites */
|
|
1855
|
-
unpublished: number;
|
|
1856
1867
|
}
|
|
1857
1868
|
/** Members usage metrics of an organization */
|
|
1858
1869
|
export interface OrganizationUsageMembers {
|
|
@@ -2104,26 +2115,9 @@ export interface ContentReferenceUsage {
|
|
|
2104
2115
|
*/
|
|
2105
2116
|
status: ContentReferenceStatus;
|
|
2106
2117
|
/** The reference target where a list of pages are pointing at */
|
|
2107
|
-
targetReference
|
|
2108
|
-
/**
|
|
2109
|
-
locationReferences:
|
|
2110
|
-
}
|
|
2111
|
-
export interface ContentReferenceResolved {
|
|
2112
|
-
/** Text to display to represent the reference */
|
|
2113
|
-
text: string;
|
|
2114
|
-
/** The type of the content reference */
|
|
2115
|
-
type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
|
|
2116
|
-
/** Target in-app url for the reference */
|
|
2117
|
-
url: string;
|
|
2118
|
-
extra: {
|
|
2119
|
-
collection?: Collection;
|
|
2120
|
-
space?: Space;
|
|
2121
|
-
page?: RevisionPage;
|
|
2122
|
-
anchor?: RevisionPage;
|
|
2123
|
-
file?: RevisionFile;
|
|
2124
|
-
snippet?: Snippet;
|
|
2125
|
-
user?: User;
|
|
2126
|
-
};
|
|
2118
|
+
targetReference?: ContentLocation;
|
|
2119
|
+
/** Pages locations where a link to the target is found. */
|
|
2120
|
+
locationReferences: ContentLocation[];
|
|
2127
2121
|
}
|
|
2128
2122
|
/**
|
|
2129
2123
|
* Text to display to represent the reference. Possible values include:
|
|
@@ -2695,6 +2689,7 @@ export declare enum IntegrationCategory {
|
|
|
2695
2689
|
Content = "content",
|
|
2696
2690
|
Gitsync = "gitsync",
|
|
2697
2691
|
Marketing = "marketing",
|
|
2692
|
+
VisitorAuth = "visitor-auth",
|
|
2698
2693
|
Other = "other"
|
|
2699
2694
|
}
|
|
2700
2695
|
export interface IntegrationConfigurations {
|
|
@@ -3282,14 +3277,15 @@ export declare enum BillingProduct {
|
|
|
3282
3277
|
Free2024 = "free_2024",
|
|
3283
3278
|
Plus2024 = "plus_2024",
|
|
3284
3279
|
Pro2024 = "pro_2024",
|
|
3285
|
-
|
|
3280
|
+
Enterprise2024 = "enterprise_2024",
|
|
3286
3281
|
Free = "free",
|
|
3287
3282
|
Plus = "plus",
|
|
3288
3283
|
Pro = "pro",
|
|
3289
3284
|
Team = "team",
|
|
3290
3285
|
Business = "business",
|
|
3291
3286
|
Legacy = "legacy",
|
|
3292
|
-
Startup = "startup"
|
|
3287
|
+
Startup = "startup",
|
|
3288
|
+
Enterprise = "enterprise"
|
|
3293
3289
|
}
|
|
3294
3290
|
export declare type BillingUpgrade = {
|
|
3295
3291
|
result: 'checkout';
|
|
@@ -4360,6 +4356,8 @@ export interface Site {
|
|
|
4360
4356
|
object: 'site';
|
|
4361
4357
|
/** Unique identifier of the site */
|
|
4362
4358
|
id: string;
|
|
4359
|
+
/** The type of the site */
|
|
4360
|
+
type: SiteType;
|
|
4363
4361
|
/** Title of the site */
|
|
4364
4362
|
title: SiteTitle;
|
|
4365
4363
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
@@ -4367,17 +4365,18 @@ export interface Site {
|
|
|
4367
4365
|
/** Basename for the site. For e.g. api */
|
|
4368
4366
|
basename?: SiteBasename;
|
|
4369
4367
|
/**
|
|
4368
|
+
* The visibility setting of the site determines the audience of the site.
|
|
4370
4369
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
4371
4370
|
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
4372
4371
|
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
4373
4372
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4374
|
-
* * `unpublished`: The site is not accessible to anyone.
|
|
4375
4373
|
*/
|
|
4376
4374
|
visibility: SiteVisibility;
|
|
4375
|
+
/** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
|
|
4376
|
+
published: boolean;
|
|
4377
4377
|
siteSpaces: number;
|
|
4378
4378
|
/** @format date-time */
|
|
4379
4379
|
createdAt: string;
|
|
4380
|
-
subscription: SiteSubscription;
|
|
4381
4380
|
/** URLs associated with the object */
|
|
4382
4381
|
urls: {
|
|
4383
4382
|
/**
|
|
@@ -4391,12 +4390,18 @@ export interface Site {
|
|
|
4391
4390
|
*/
|
|
4392
4391
|
app: string;
|
|
4393
4392
|
/**
|
|
4394
|
-
* URL of the published version of the site. Only defined when
|
|
4393
|
+
* URL of the published version of the site. Only defined when site is published.
|
|
4395
4394
|
* @format uri
|
|
4396
4395
|
*/
|
|
4397
4396
|
published?: string;
|
|
4398
4397
|
};
|
|
4399
4398
|
}
|
|
4399
|
+
/** The type of the site */
|
|
4400
|
+
export declare enum SiteType {
|
|
4401
|
+
Basic = "basic",
|
|
4402
|
+
Standard = "standard",
|
|
4403
|
+
Premium = "premium"
|
|
4404
|
+
}
|
|
4400
4405
|
/**
|
|
4401
4406
|
* Title of the site
|
|
4402
4407
|
* @minLength 2
|
|
@@ -4452,6 +4457,10 @@ export interface SiteCustomizationSettings {
|
|
|
4452
4457
|
/** If true, AI search is enabled */
|
|
4453
4458
|
enabled: boolean;
|
|
4454
4459
|
};
|
|
4460
|
+
advancedCustomization: {
|
|
4461
|
+
/** If true, Advanced customization is enabled */
|
|
4462
|
+
enabled: boolean;
|
|
4463
|
+
};
|
|
4455
4464
|
git: {
|
|
4456
4465
|
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
|
|
4457
4466
|
showEditLink: boolean;
|
|
@@ -4558,20 +4567,19 @@ export interface SiteSpaceCustomizationOverrides {
|
|
|
4558
4567
|
};
|
|
4559
4568
|
}
|
|
4560
4569
|
/**
|
|
4570
|
+
* The visibility setting of the site determines the audience of the site.
|
|
4561
4571
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
4562
4572
|
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
4563
4573
|
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
4564
4574
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4565
|
-
* * `unpublished`: The site is not accessible to anyone.
|
|
4566
4575
|
*/
|
|
4567
4576
|
export declare enum SiteVisibility {
|
|
4568
4577
|
Public = "public",
|
|
4569
4578
|
Unlisted = "unlisted",
|
|
4570
4579
|
ShareLink = "share-link",
|
|
4571
|
-
VisitorAuth = "visitor-auth"
|
|
4572
|
-
Unpublished = "unpublished"
|
|
4580
|
+
VisitorAuth = "visitor-auth"
|
|
4573
4581
|
}
|
|
4574
|
-
export declare type SitePublishingAuth = {
|
|
4582
|
+
export declare type SitePublishingAuth = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
|
|
4575
4583
|
/** Type of Object, always equals to "publishing-auth" */
|
|
4576
4584
|
object: 'publishing-auth';
|
|
4577
4585
|
/** Private key used to sign JWT tokens. */
|
|
@@ -4581,7 +4589,12 @@ export declare type SitePublishingAuth = {
|
|
|
4581
4589
|
* @format uri
|
|
4582
4590
|
*/
|
|
4583
4591
|
fallbackURL?: string;
|
|
4584
|
-
|
|
4592
|
+
/**
|
|
4593
|
+
* Name of the Visitor Authentication integration installed on the site (if any).
|
|
4594
|
+
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
4595
|
+
*/
|
|
4596
|
+
integration?: string;
|
|
4597
|
+
};
|
|
4585
4598
|
export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
|
|
4586
4599
|
/**
|
|
4587
4600
|
* A fallback URL that will be used if authentication fails.
|
|
@@ -4610,10 +4623,12 @@ export interface SiteSpace {
|
|
|
4610
4623
|
space: Space;
|
|
4611
4624
|
/** Whether this is the default space for the site */
|
|
4612
4625
|
default?: boolean;
|
|
4626
|
+
/** Whether the space has advanced customization feature enabled */
|
|
4627
|
+
hasAdvancedCustomizationFeature?: boolean;
|
|
4613
4628
|
/** URLs associated with the object */
|
|
4614
4629
|
urls: {
|
|
4615
4630
|
/**
|
|
4616
|
-
* URL of the published version of the site-space. Only defined when site is
|
|
4631
|
+
* URL of the published version of the site-space. Only defined when site is published.
|
|
4617
4632
|
* @format uri
|
|
4618
4633
|
*/
|
|
4619
4634
|
published?: string;
|
|
@@ -4635,19 +4650,6 @@ export interface SiteSpacePointer {
|
|
|
4635
4650
|
/** Unique identifier for the site space */
|
|
4636
4651
|
siteSpace: string;
|
|
4637
4652
|
}
|
|
4638
|
-
export declare enum SiteSubscriptionStatus {
|
|
4639
|
-
Active = "active",
|
|
4640
|
-
Inactive = "inactive"
|
|
4641
|
-
}
|
|
4642
|
-
export declare enum SiteSubscriptionType {
|
|
4643
|
-
Basic = "basic",
|
|
4644
|
-
Premium = "premium",
|
|
4645
|
-
PremiumVa = "premium_va"
|
|
4646
|
-
}
|
|
4647
|
-
export interface SiteSubscription {
|
|
4648
|
-
type: SiteSubscriptionType;
|
|
4649
|
-
status: SiteSubscriptionStatus;
|
|
4650
|
-
}
|
|
4651
4653
|
export interface CustomHostname {
|
|
4652
4654
|
object: 'custom-hostname';
|
|
4653
4655
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
@@ -7924,6 +7926,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7924
7926
|
integration: Integration;
|
|
7925
7927
|
}[];
|
|
7926
7928
|
}, Error>>;
|
|
7929
|
+
/**
|
|
7930
|
+
* No description
|
|
7931
|
+
*
|
|
7932
|
+
* @tags integrations
|
|
7933
|
+
* @name ListOrganizationIntegrationsStatus
|
|
7934
|
+
* @summary List the statuses of all integrations installed in an organization
|
|
7935
|
+
* @request GET:/orgs/{organizationId}/integrations/installations-status
|
|
7936
|
+
* @secure
|
|
7937
|
+
*/
|
|
7938
|
+
listOrganizationIntegrationsStatus: (organizationId: string, query?: {
|
|
7939
|
+
/** Identifier of the page results to fetch. */
|
|
7940
|
+
page?: string;
|
|
7941
|
+
/**
|
|
7942
|
+
* The number of results per page
|
|
7943
|
+
* @min 0
|
|
7944
|
+
* @max 1000
|
|
7945
|
+
*/
|
|
7946
|
+
limit?: number;
|
|
7947
|
+
/** A search string to filter integrations by name */
|
|
7948
|
+
search?: any;
|
|
7949
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7950
|
+
items: {
|
|
7951
|
+
status: IntegrationInstallationStatus;
|
|
7952
|
+
integration: Integration;
|
|
7953
|
+
}[];
|
|
7954
|
+
}, Error>>;
|
|
7927
7955
|
/**
|
|
7928
7956
|
* No description
|
|
7929
7957
|
*
|
|
@@ -8579,11 +8607,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8579
8607
|
/** Title of the site */
|
|
8580
8608
|
title?: SiteTitle;
|
|
8581
8609
|
/**
|
|
8610
|
+
* The visibility setting of the site determines the audience of the site.
|
|
8582
8611
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
8583
8612
|
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
8584
8613
|
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
8585
8614
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
8586
|
-
* * `unpublished`: The site is not accessible to anyone.
|
|
8587
8615
|
*/
|
|
8588
8616
|
visibility?: SiteVisibility;
|
|
8589
8617
|
/** ID of spaces to be added to the site */
|
|
@@ -8618,11 +8646,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8618
8646
|
/** Title of the site */
|
|
8619
8647
|
title?: SiteTitle;
|
|
8620
8648
|
/**
|
|
8649
|
+
* The visibility setting of the site determines the audience of the site.
|
|
8621
8650
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
8622
8651
|
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
8623
8652
|
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
8624
8653
|
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
8625
|
-
* * `unpublished`: The site is not accessible to anyone.
|
|
8626
8654
|
*/
|
|
8627
8655
|
visibility?: SiteVisibility;
|
|
8628
8656
|
/** Basename for the site. For e.g. api */
|
|
@@ -8640,6 +8668,73 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8640
8668
|
* @secure
|
|
8641
8669
|
*/
|
|
8642
8670
|
deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8671
|
+
/**
|
|
8672
|
+
* No description
|
|
8673
|
+
*
|
|
8674
|
+
* @tags sites
|
|
8675
|
+
* @name CheckoutSite
|
|
8676
|
+
* @summary Initiate a payment checkout for a site
|
|
8677
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/checkout
|
|
8678
|
+
* @secure
|
|
8679
|
+
*/
|
|
8680
|
+
checkoutSite: (organizationId: string, siteId: string, data: {
|
|
8681
|
+
/** Reason leading to the site checkout */
|
|
8682
|
+
reason: string;
|
|
8683
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8684
|
+
result: 'success' | 'failure';
|
|
8685
|
+
} | {
|
|
8686
|
+
result: 'checkout';
|
|
8687
|
+
/** Stripe payment session ID */
|
|
8688
|
+
sessionId: string;
|
|
8689
|
+
}, Error>>;
|
|
8690
|
+
/**
|
|
8691
|
+
* No description
|
|
8692
|
+
*
|
|
8693
|
+
* @tags sites
|
|
8694
|
+
* @name GetSiteCheckoutById
|
|
8695
|
+
* @summary Returns checkout information about a site prior to publishing.
|
|
8696
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/checkout
|
|
8697
|
+
* @secure
|
|
8698
|
+
*/
|
|
8699
|
+
getSiteCheckoutById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
8700
|
+
downgrade?: boolean;
|
|
8701
|
+
} & ({
|
|
8702
|
+
type: 'simple-checkout';
|
|
8703
|
+
} | {
|
|
8704
|
+
type: 'advanced-checkout';
|
|
8705
|
+
} | {
|
|
8706
|
+
type: 'no-permissions';
|
|
8707
|
+
} | {
|
|
8708
|
+
type: 'publish';
|
|
8709
|
+
} | {
|
|
8710
|
+
type: 'legacy-upgrade';
|
|
8711
|
+
}), Error | {
|
|
8712
|
+
error: {
|
|
8713
|
+
/** @format int32 */
|
|
8714
|
+
code: 404;
|
|
8715
|
+
message: string;
|
|
8716
|
+
};
|
|
8717
|
+
}>>;
|
|
8718
|
+
/**
|
|
8719
|
+
* No description
|
|
8720
|
+
*
|
|
8721
|
+
* @tags sites
|
|
8722
|
+
* @name PublishSite
|
|
8723
|
+
* @summary Publishes the site to the audience defined in the site's visibility setting.
|
|
8724
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/publish
|
|
8725
|
+
* @secure
|
|
8726
|
+
*/
|
|
8727
|
+
publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8728
|
+
/**
|
|
8729
|
+
* No description
|
|
8730
|
+
*
|
|
8731
|
+
* @tags sites
|
|
8732
|
+
* @name UnpublishSite
|
|
8733
|
+
* @summary Unpublishes the site.
|
|
8734
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/unpublish
|
|
8735
|
+
* @secure
|
|
8736
|
+
*/
|
|
8737
|
+
unpublishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8643
8738
|
/**
|
|
8644
8739
|
* No description
|
|
8645
8740
|
*
|
|
@@ -8730,6 +8825,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8730
8825
|
message: string;
|
|
8731
8826
|
};
|
|
8732
8827
|
}>>;
|
|
8828
|
+
/**
|
|
8829
|
+
* No description
|
|
8830
|
+
*
|
|
8831
|
+
* @tags sites
|
|
8832
|
+
* @name RegenerateSitePublishingAuthById
|
|
8833
|
+
* @summary Regenerate the publishing authentication settings for a site. This will re-generate the private key.
|
|
8834
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate
|
|
8835
|
+
* @secure
|
|
8836
|
+
*/
|
|
8837
|
+
regenerateSitePublishingAuthById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
|
|
8838
|
+
error: {
|
|
8839
|
+
/** @format int32 */
|
|
8840
|
+
code: 400;
|
|
8841
|
+
message: string;
|
|
8842
|
+
};
|
|
8843
|
+
}>>;
|
|
8733
8844
|
/**
|
|
8734
8845
|
* No description
|
|
8735
8846
|
*
|
|
@@ -8760,7 +8871,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8760
8871
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/customization
|
|
8761
8872
|
* @secure
|
|
8762
8873
|
*/
|
|
8763
|
-
getSiteCustomizationById: (organizationId: string, siteId: string,
|
|
8874
|
+
getSiteCustomizationById: (organizationId: string, siteId: string, query?: {
|
|
8875
|
+
/**
|
|
8876
|
+
* Access the customization settings without applying any masking from the advanced customization flag.
|
|
8877
|
+
* @default false
|
|
8878
|
+
*/
|
|
8879
|
+
unmasked?: boolean;
|
|
8880
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
8764
8881
|
error: {
|
|
8765
8882
|
/** @format int32 */
|
|
8766
8883
|
code: 400;
|
|
@@ -8820,7 +8937,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8820
8937
|
* @tags sites
|
|
8821
8938
|
* @name AddSpaceToSite
|
|
8822
8939
|
* @summary Add a space to a site in an organization
|
|
8823
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8940
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
8824
8941
|
* @secure
|
|
8825
8942
|
*/
|
|
8826
8943
|
addSpaceToSite: (organizationId: string, siteId: string, data: {
|
|
@@ -8833,7 +8950,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8833
8950
|
* @tags sites
|
|
8834
8951
|
* @name ListSiteSpaces
|
|
8835
8952
|
* @summary List all the site spaces under a site in an organization
|
|
8836
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8953
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces
|
|
8837
8954
|
* @secure
|
|
8838
8955
|
*/
|
|
8839
8956
|
listSiteSpaces: (organizationId: string, siteId: string, query?: {
|
|
@@ -8854,7 +8971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8854
8971
|
* @tags sites
|
|
8855
8972
|
* @name UpdateSiteSpaceById
|
|
8856
8973
|
* @summary Update a space on a site in an organization
|
|
8857
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8974
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
8858
8975
|
* @secure
|
|
8859
8976
|
*/
|
|
8860
8977
|
updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
@@ -8867,7 +8984,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8867
8984
|
* @tags sites
|
|
8868
8985
|
* @name DeleteSiteSpaceById
|
|
8869
8986
|
* @summary Delete a space on a site in an organization
|
|
8870
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8987
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}
|
|
8871
8988
|
* @secure
|
|
8872
8989
|
*/
|
|
8873
8990
|
deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
@@ -8877,10 +8994,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8877
8994
|
* @tags sites
|
|
8878
8995
|
* @name GetSiteSpaceCustomizationById
|
|
8879
8996
|
* @summary Get the customization configuration for a site space.
|
|
8880
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
|
|
8997
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
8881
8998
|
* @secure
|
|
8882
8999
|
*/
|
|
8883
|
-
getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string,
|
|
9000
|
+
getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
|
|
9001
|
+
/**
|
|
9002
|
+
* Access the customization settings without applying any masking from the advanced customization flag.
|
|
9003
|
+
* @default false
|
|
9004
|
+
*/
|
|
9005
|
+
unmasked?: boolean;
|
|
9006
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
8884
9007
|
error: {
|
|
8885
9008
|
/** @format int32 */
|
|
8886
9009
|
code: 400;
|
|
@@ -8893,7 +9016,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8893
9016
|
* @tags sites
|
|
8894
9017
|
* @name OverrideSiteSpaceCustomizationById
|
|
8895
9018
|
* @summary Override the customization configuration for a site space.
|
|
8896
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
|
|
9019
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
8897
9020
|
* @secure
|
|
8898
9021
|
*/
|
|
8899
9022
|
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: SiteSpaceCustomizationOverrides, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
@@ -8909,7 +9032,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8909
9032
|
* @tags sites
|
|
8910
9033
|
* @name MoveSiteSpace
|
|
8911
9034
|
* @summary Move a site space to a new position in the site.
|
|
8912
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move
|
|
9035
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move
|
|
8913
9036
|
* @secure
|
|
8914
9037
|
*/
|
|
8915
9038
|
moveSiteSpace: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
@@ -8962,7 +9085,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8962
9085
|
permission: MemberRole;
|
|
8963
9086
|
user: User;
|
|
8964
9087
|
/** The content or organization that enforced this permission level. */
|
|
8965
|
-
origin: SpacePointer;
|
|
9088
|
+
origin: SpacePointer | OrganizationPointer;
|
|
8966
9089
|
}[];
|
|
8967
9090
|
}, Error>>;
|
|
8968
9091
|
/**
|