@gitbook/api 0.89.0 → 0.90.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 +424 -114
- package/dist/index.cjs +91 -3
- package/dist/index.js +90 -3
- package/package.json +1 -1
- package/spec/openapi.json +1475 -657
- package/spec/openapi.yaml +909 -417
package/dist/client.d.ts
CHANGED
|
@@ -1268,6 +1268,40 @@ export type InviteUsersAndTeams = ({
|
|
|
1268
1268
|
/** Role to set. */
|
|
1269
1269
|
role: MemberRoleOrGuest;
|
|
1270
1270
|
};
|
|
1271
|
+
/** Permission of a user in a content. */
|
|
1272
|
+
export interface UserContentPermission {
|
|
1273
|
+
/**
|
|
1274
|
+
* "The role of a member in an organization.
|
|
1275
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
1276
|
+
* "create": Can create content.
|
|
1277
|
+
* "review": Can review content.
|
|
1278
|
+
* "edit": Can edit the content (live or change requests).
|
|
1279
|
+
* "comment": Can access the content and its discussions.
|
|
1280
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
1281
|
+
*/
|
|
1282
|
+
permission: MemberRole;
|
|
1283
|
+
user: User;
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Title of the team
|
|
1287
|
+
* @minLength 1
|
|
1288
|
+
* @maxLength 64
|
|
1289
|
+
*/
|
|
1290
|
+
export type OrganizationTeamTitle = string;
|
|
1291
|
+
export interface OrganizationTeam {
|
|
1292
|
+
/** Type of Object, always equals to "team" */
|
|
1293
|
+
object: 'team';
|
|
1294
|
+
/** Unique identifier for the team. */
|
|
1295
|
+
id: string;
|
|
1296
|
+
/** Title of the team */
|
|
1297
|
+
title: OrganizationTeamTitle;
|
|
1298
|
+
/** Count of members in this team. */
|
|
1299
|
+
members: number;
|
|
1300
|
+
/** Count of spaces this team has access to. */
|
|
1301
|
+
spaces: number;
|
|
1302
|
+
/** Date at which the team was created. */
|
|
1303
|
+
createdAt: Timestamp;
|
|
1304
|
+
}
|
|
1271
1305
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1272
1306
|
/** @deprecated */
|
|
1273
1307
|
kind: 'group';
|
|
@@ -2482,20 +2516,6 @@ export interface UpdateCommentReplySchema {
|
|
|
2482
2516
|
/** Reactions to remove from the comment. */
|
|
2483
2517
|
removedReactions?: string[];
|
|
2484
2518
|
}
|
|
2485
|
-
/** Permission of a user in a content. */
|
|
2486
|
-
export interface UserContentPermission {
|
|
2487
|
-
/**
|
|
2488
|
-
* "The role of a member in an organization.
|
|
2489
|
-
* "admin": Can administrate the content: create, delete spaces, ...
|
|
2490
|
-
* "create": Can create content.
|
|
2491
|
-
* "review": Can review content.
|
|
2492
|
-
* "edit": Can edit the content (live or change requests).
|
|
2493
|
-
* "comment": Can access the content and its discussions.
|
|
2494
|
-
* "read": Can access the content, but cannot update it in any way.
|
|
2495
|
-
*/
|
|
2496
|
-
permission: MemberRole;
|
|
2497
|
-
user: User;
|
|
2498
|
-
}
|
|
2499
2519
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
2500
2520
|
export type Color = string;
|
|
2501
2521
|
export interface CustomizationThemedColor {
|
|
@@ -3809,26 +3829,6 @@ export interface MemberContentPermission {
|
|
|
3809
3829
|
permission: MemberRole;
|
|
3810
3830
|
space: Space;
|
|
3811
3831
|
}
|
|
3812
|
-
/**
|
|
3813
|
-
* Title of the team
|
|
3814
|
-
* @minLength 1
|
|
3815
|
-
* @maxLength 64
|
|
3816
|
-
*/
|
|
3817
|
-
export type OrganizationTeamTitle = string;
|
|
3818
|
-
export interface OrganizationTeam {
|
|
3819
|
-
/** Type of Object, always equals to "team" */
|
|
3820
|
-
object: 'team';
|
|
3821
|
-
/** Unique identifier for the team. */
|
|
3822
|
-
id: string;
|
|
3823
|
-
/** Title of the team */
|
|
3824
|
-
title: OrganizationTeamTitle;
|
|
3825
|
-
/** Count of members in this team. */
|
|
3826
|
-
members: number;
|
|
3827
|
-
/** Count of spaces this team has access to. */
|
|
3828
|
-
spaces: number;
|
|
3829
|
-
/** Date at which the team was created. */
|
|
3830
|
-
createdAt: Timestamp;
|
|
3831
|
-
}
|
|
3832
3832
|
/**
|
|
3833
3833
|
* "The role of a team member.
|
|
3834
3834
|
* "owner": Can manage team members.
|
|
@@ -4280,6 +4280,19 @@ export type BillingOperationPreviewResponse = {
|
|
|
4280
4280
|
plan: BillingProduct;
|
|
4281
4281
|
invoice?: BillingInvoicePreview;
|
|
4282
4282
|
};
|
|
4283
|
+
/**
|
|
4284
|
+
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
4285
|
+
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
4286
|
+
* - `muted`: Sophisticated theme with decreased contrast between elements.
|
|
4287
|
+
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
4288
|
+
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
4289
|
+
*/
|
|
4290
|
+
export declare enum CustomizationTheme {
|
|
4291
|
+
Clean = "clean",
|
|
4292
|
+
Muted = "muted",
|
|
4293
|
+
Bold = "bold",
|
|
4294
|
+
Gradient = "gradient"
|
|
4295
|
+
}
|
|
4283
4296
|
export interface CustomizationTint {
|
|
4284
4297
|
color: CustomizationThemedColor;
|
|
4285
4298
|
}
|
|
@@ -4312,6 +4325,14 @@ export interface SiteCustomizationSettings {
|
|
|
4312
4325
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4313
4326
|
title?: SiteTitle;
|
|
4314
4327
|
styling: {
|
|
4328
|
+
/**
|
|
4329
|
+
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
4330
|
+
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
4331
|
+
* - `muted`: Sophisticated theme with decreased contrast between elements.
|
|
4332
|
+
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
4333
|
+
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
4334
|
+
*/
|
|
4335
|
+
theme?: CustomizationTheme;
|
|
4315
4336
|
primaryColor: CustomizationThemedColor;
|
|
4316
4337
|
tint?: CustomizationTint;
|
|
4317
4338
|
corners: CustomizationCorners;
|
|
@@ -4359,6 +4380,7 @@ export interface SiteCustomizationSettings {
|
|
|
4359
4380
|
/** @maxLength 300 */
|
|
4360
4381
|
copyright?: string;
|
|
4361
4382
|
};
|
|
4383
|
+
/** Customization options for the dark/light theme modes. */
|
|
4362
4384
|
themes: {
|
|
4363
4385
|
default: CustomizationThemeMode;
|
|
4364
4386
|
/** Should the reader be able to switch between dark and light mode */
|
|
@@ -4695,7 +4717,8 @@ export type SiteInsightsEventAPIClientRequest = SiteInsightsEventBase & {
|
|
|
4695
4717
|
export declare enum SiteInsightsTrademarkPlacement {
|
|
4696
4718
|
Sidebar = "sidebar",
|
|
4697
4719
|
Ad = "ad",
|
|
4698
|
-
Footer = "footer"
|
|
4720
|
+
Footer = "footer",
|
|
4721
|
+
Pdf = "pdf"
|
|
4699
4722
|
}
|
|
4700
4723
|
export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
|
|
4701
4724
|
type: 'trademark_click';
|
|
@@ -4718,6 +4741,91 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
4718
4741
|
ad: SiteInsightsAd;
|
|
4719
4742
|
};
|
|
4720
4743
|
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
|
|
4744
|
+
export interface SiteInsightsQueryDateTimeColumn {
|
|
4745
|
+
column: 'datetime';
|
|
4746
|
+
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
4747
|
+
}
|
|
4748
|
+
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
4749
|
+
column: 'eventType';
|
|
4750
|
+
} | {
|
|
4751
|
+
column: 'eventsCount';
|
|
4752
|
+
} | {
|
|
4753
|
+
column: 'sessionsCount';
|
|
4754
|
+
} | {
|
|
4755
|
+
column: 'visitorsCount';
|
|
4756
|
+
} | {
|
|
4757
|
+
column: 'siteSection';
|
|
4758
|
+
} | {
|
|
4759
|
+
column: 'siteSpace';
|
|
4760
|
+
} | {
|
|
4761
|
+
column: 'siteShareKey';
|
|
4762
|
+
} | {
|
|
4763
|
+
column: 'page';
|
|
4764
|
+
} | {
|
|
4765
|
+
column: 'visitorGeoCountry';
|
|
4766
|
+
} | {
|
|
4767
|
+
column: 'visitorGeoPoint';
|
|
4768
|
+
/**
|
|
4769
|
+
* @min 0
|
|
4770
|
+
* @max 15
|
|
4771
|
+
*/
|
|
4772
|
+
precision?: number;
|
|
4773
|
+
} | {
|
|
4774
|
+
column: 'visitorDevice';
|
|
4775
|
+
} | {
|
|
4776
|
+
column: 'visitorBrowser';
|
|
4777
|
+
} | {
|
|
4778
|
+
column: 'visitorOS';
|
|
4779
|
+
} | {
|
|
4780
|
+
column: 'visitorBot';
|
|
4781
|
+
} | {
|
|
4782
|
+
column: 'visitorLanguage';
|
|
4783
|
+
} | {
|
|
4784
|
+
column: 'eventLinkTargetValue';
|
|
4785
|
+
} | {
|
|
4786
|
+
column: 'eventLinkTargetKind';
|
|
4787
|
+
} | {
|
|
4788
|
+
column: 'eventLinkTargetDomain';
|
|
4789
|
+
} | {
|
|
4790
|
+
column: 'eventLinkPosition';
|
|
4791
|
+
} | {
|
|
4792
|
+
column: 'eventAPIOperationPath';
|
|
4793
|
+
} | {
|
|
4794
|
+
column: 'eventAPIOperationMethod';
|
|
4795
|
+
} | {
|
|
4796
|
+
column: 'eventSearchQuery';
|
|
4797
|
+
} | {
|
|
4798
|
+
column: 'eventPageFeedbackRating';
|
|
4799
|
+
} | {
|
|
4800
|
+
column: 'eventPageFeedbackComment';
|
|
4801
|
+
} | {
|
|
4802
|
+
column: 'pageFeedbackRating';
|
|
4803
|
+
} | {
|
|
4804
|
+
column: 'referrer';
|
|
4805
|
+
} | {
|
|
4806
|
+
column: 'referrerDomain';
|
|
4807
|
+
} | {
|
|
4808
|
+
column: 'utmSource';
|
|
4809
|
+
} | {
|
|
4810
|
+
column: 'utmMedium';
|
|
4811
|
+
} | {
|
|
4812
|
+
column: 'utmCampaign';
|
|
4813
|
+
} | {
|
|
4814
|
+
column: 'utmTerm';
|
|
4815
|
+
} | {
|
|
4816
|
+
column: 'utmContent';
|
|
4817
|
+
} | {
|
|
4818
|
+
column: 'visitorClaimProperty';
|
|
4819
|
+
} | {
|
|
4820
|
+
column: 'visitorClaim';
|
|
4821
|
+
claim: string;
|
|
4822
|
+
} | {
|
|
4823
|
+
column: 'eventAdDomain';
|
|
4824
|
+
} | {
|
|
4825
|
+
column: 'eventAdPlacement';
|
|
4826
|
+
} | {
|
|
4827
|
+
column: 'eventTrademarkPlacement';
|
|
4828
|
+
};
|
|
4721
4829
|
export declare enum SiteInsightsEventType {
|
|
4722
4830
|
PageView = "page_view",
|
|
4723
4831
|
SearchOpen = "search_open",
|
|
@@ -4820,13 +4928,20 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
4820
4928
|
values: (string | null)[];
|
|
4821
4929
|
} | {
|
|
4822
4930
|
column: 'page';
|
|
4823
|
-
values: {
|
|
4931
|
+
values: (null | {
|
|
4824
4932
|
page: string | null;
|
|
4825
4933
|
space: string;
|
|
4826
|
-
}[];
|
|
4934
|
+
})[];
|
|
4827
4935
|
} | {
|
|
4828
4936
|
column: 'visitorGeoCountry';
|
|
4829
4937
|
values: (string | null)[];
|
|
4938
|
+
} | {
|
|
4939
|
+
column: 'visitorGeoPoint';
|
|
4940
|
+
values: ({
|
|
4941
|
+
latitude: number;
|
|
4942
|
+
longitude: number;
|
|
4943
|
+
h3: string;
|
|
4944
|
+
} | null)[];
|
|
4830
4945
|
} | {
|
|
4831
4946
|
column: 'visitorLanguage';
|
|
4832
4947
|
values: (string | null)[];
|
|
@@ -4849,6 +4964,12 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
4849
4964
|
good: number;
|
|
4850
4965
|
bad: number;
|
|
4851
4966
|
}[];
|
|
4967
|
+
} | {
|
|
4968
|
+
column: 'eventPageFeedbackRating';
|
|
4969
|
+
values: PageFeedbackRating[];
|
|
4970
|
+
} | {
|
|
4971
|
+
column: 'eventPageFeedbackComment';
|
|
4972
|
+
values: string[];
|
|
4852
4973
|
} | {
|
|
4853
4974
|
column: 'referrer';
|
|
4854
4975
|
values: string[];
|
|
@@ -4891,80 +5012,6 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
4891
5012
|
export type SiteInsightsQueryEventsFilter = SiteInsightsQueryEventsValues & {
|
|
4892
5013
|
operator?: SiteInsightsQueryOperator;
|
|
4893
5014
|
};
|
|
4894
|
-
export interface SiteInsightsQueryDateTimeColumn {
|
|
4895
|
-
column: 'datetime';
|
|
4896
|
-
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
4897
|
-
}
|
|
4898
|
-
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
4899
|
-
column: 'eventType';
|
|
4900
|
-
} | {
|
|
4901
|
-
column: 'eventsCount';
|
|
4902
|
-
} | {
|
|
4903
|
-
column: 'sessionsCount';
|
|
4904
|
-
} | {
|
|
4905
|
-
column: 'visitorsCount';
|
|
4906
|
-
} | {
|
|
4907
|
-
column: 'siteSection';
|
|
4908
|
-
} | {
|
|
4909
|
-
column: 'siteSpace';
|
|
4910
|
-
} | {
|
|
4911
|
-
column: 'siteShareKey';
|
|
4912
|
-
} | {
|
|
4913
|
-
column: 'page';
|
|
4914
|
-
} | {
|
|
4915
|
-
column: 'visitorGeoCountry';
|
|
4916
|
-
} | {
|
|
4917
|
-
column: 'visitorDevice';
|
|
4918
|
-
} | {
|
|
4919
|
-
column: 'visitorBrowser';
|
|
4920
|
-
} | {
|
|
4921
|
-
column: 'visitorOS';
|
|
4922
|
-
} | {
|
|
4923
|
-
column: 'visitorBot';
|
|
4924
|
-
} | {
|
|
4925
|
-
column: 'visitorLanguage';
|
|
4926
|
-
} | {
|
|
4927
|
-
column: 'eventLinkTargetValue';
|
|
4928
|
-
} | {
|
|
4929
|
-
column: 'eventLinkTargetKind';
|
|
4930
|
-
} | {
|
|
4931
|
-
column: 'eventLinkTargetDomain';
|
|
4932
|
-
} | {
|
|
4933
|
-
column: 'eventLinkPosition';
|
|
4934
|
-
} | {
|
|
4935
|
-
column: 'eventAPIOperationPath';
|
|
4936
|
-
} | {
|
|
4937
|
-
column: 'eventAPIOperationMethod';
|
|
4938
|
-
} | {
|
|
4939
|
-
column: 'eventSearchQuery';
|
|
4940
|
-
} | {
|
|
4941
|
-
column: 'pageFeedbackRating';
|
|
4942
|
-
} | {
|
|
4943
|
-
column: 'referrer';
|
|
4944
|
-
} | {
|
|
4945
|
-
column: 'referrerDomain';
|
|
4946
|
-
} | {
|
|
4947
|
-
column: 'utmSource';
|
|
4948
|
-
} | {
|
|
4949
|
-
column: 'utmMedium';
|
|
4950
|
-
} | {
|
|
4951
|
-
column: 'utmCampaign';
|
|
4952
|
-
} | {
|
|
4953
|
-
column: 'utmTerm';
|
|
4954
|
-
} | {
|
|
4955
|
-
column: 'utmContent';
|
|
4956
|
-
} | {
|
|
4957
|
-
column: 'visitorClaimProperty';
|
|
4958
|
-
} | {
|
|
4959
|
-
column: 'visitorClaim';
|
|
4960
|
-
claim: string;
|
|
4961
|
-
} | {
|
|
4962
|
-
column: 'eventAdDomain';
|
|
4963
|
-
} | {
|
|
4964
|
-
column: 'eventAdPlacement';
|
|
4965
|
-
} | {
|
|
4966
|
-
column: 'eventTrademarkPlacement';
|
|
4967
|
-
};
|
|
4968
5015
|
export declare enum SiteInsightsQueryRange {
|
|
4969
5016
|
LastYear = "lastYear",
|
|
4970
5017
|
Last3Months = "last3Months",
|
|
@@ -4973,18 +5020,36 @@ export declare enum SiteInsightsQueryRange {
|
|
|
4973
5020
|
Last24Hours = "last24Hours"
|
|
4974
5021
|
}
|
|
4975
5022
|
export interface SiteInsightsQueryEventsAggregation {
|
|
5023
|
+
select?: SiteInsightsQueryEventsColumn[];
|
|
4976
5024
|
where?: SiteInsightsQueryEventsFilter[];
|
|
4977
|
-
|
|
4978
|
-
groupBy: SiteInsightsQueryEventsColumn[];
|
|
5025
|
+
groupBy?: SiteInsightsQueryEventsColumn[];
|
|
4979
5026
|
order?: {
|
|
4980
5027
|
by: SiteInsightsQueryEventsColumn;
|
|
4981
5028
|
direction: 'asc' | 'desc';
|
|
4982
5029
|
};
|
|
4983
5030
|
range: SiteInsightsQueryRange;
|
|
5031
|
+
/**
|
|
5032
|
+
* @min 1
|
|
5033
|
+
* @max 1000
|
|
5034
|
+
* @default 1000
|
|
5035
|
+
*/
|
|
5036
|
+
limit?: number;
|
|
4984
5037
|
}
|
|
4985
5038
|
export interface SiteInsightsQueryEventsAggregationResult {
|
|
4986
5039
|
columns: SiteInsightsQueryEventsValues[];
|
|
4987
5040
|
}
|
|
5041
|
+
/** A segment of visitors with the same characteristics. */
|
|
5042
|
+
export interface SiteInsightsVisitorSegment {
|
|
5043
|
+
/** The title of the visitor profile. */
|
|
5044
|
+
title: string;
|
|
5045
|
+
claims: PlainObject;
|
|
5046
|
+
/** The number of events for this visitor profile. */
|
|
5047
|
+
events: number;
|
|
5048
|
+
/** The number of visitors for this visitor profile. */
|
|
5049
|
+
visitors: number;
|
|
5050
|
+
/** The number of sessions for this visitor profile. */
|
|
5051
|
+
sessions: number;
|
|
5052
|
+
}
|
|
4988
5053
|
/**
|
|
4989
5054
|
* The interval for grouping the results
|
|
4990
5055
|
* @default "week"
|
|
@@ -6441,6 +6506,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6441
6506
|
message: string;
|
|
6442
6507
|
};
|
|
6443
6508
|
}>>;
|
|
6509
|
+
/**
|
|
6510
|
+
* No description
|
|
6511
|
+
*
|
|
6512
|
+
* @tags spaces
|
|
6513
|
+
* @name UpdateTeamPermissionInSpace
|
|
6514
|
+
* @summary Update a team's permission in a space
|
|
6515
|
+
* @request PATCH:/spaces/{spaceId}/permissions/teams/{teamId}
|
|
6516
|
+
* @secure
|
|
6517
|
+
*/
|
|
6518
|
+
updateTeamPermissionInSpace: (spaceId: string, teamId: string, data: {
|
|
6519
|
+
/** The role of a member in an organization, null for guests */
|
|
6520
|
+
role?: MemberRoleOrGuest;
|
|
6521
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
6522
|
+
error: {
|
|
6523
|
+
/** @format int32 */
|
|
6524
|
+
code: 404;
|
|
6525
|
+
message: string;
|
|
6526
|
+
};
|
|
6527
|
+
}>>;
|
|
6444
6528
|
/**
|
|
6445
6529
|
* No description
|
|
6446
6530
|
*
|
|
@@ -6463,6 +6547,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6463
6547
|
message: string;
|
|
6464
6548
|
};
|
|
6465
6549
|
}>>;
|
|
6550
|
+
/**
|
|
6551
|
+
* No description
|
|
6552
|
+
*
|
|
6553
|
+
* @tags permissions, spaces
|
|
6554
|
+
* @name ListUserPermissionsInSpace
|
|
6555
|
+
* @summary List permissions for users in a space.
|
|
6556
|
+
* @request GET:/spaces/{spaceId}/permissions/users
|
|
6557
|
+
* @secure
|
|
6558
|
+
*/
|
|
6559
|
+
listUserPermissionsInSpace: (spaceId: string, query?: {
|
|
6560
|
+
/** Identifier of the page results to fetch. */
|
|
6561
|
+
page?: string;
|
|
6562
|
+
/**
|
|
6563
|
+
* The number of results per page
|
|
6564
|
+
* @min 0
|
|
6565
|
+
* @max 1000
|
|
6566
|
+
*/
|
|
6567
|
+
limit?: number;
|
|
6568
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6569
|
+
items: UserContentPermission[];
|
|
6570
|
+
}, Error | {
|
|
6571
|
+
error: {
|
|
6572
|
+
/** @format int32 */
|
|
6573
|
+
code: 404;
|
|
6574
|
+
message: string;
|
|
6575
|
+
};
|
|
6576
|
+
}>>;
|
|
6577
|
+
/**
|
|
6578
|
+
* No description
|
|
6579
|
+
*
|
|
6580
|
+
* @tags spaces
|
|
6581
|
+
* @name UpdateUserPermissionInSpace
|
|
6582
|
+
* @summary Update a user's permission a space
|
|
6583
|
+
* @request PATCH:/spaces/{spaceId}/permissions/users/{userId}
|
|
6584
|
+
* @secure
|
|
6585
|
+
*/
|
|
6586
|
+
updateUserPermissionInSpace: (spaceId: string, userId: string, data: {
|
|
6587
|
+
/** The role of a member in an organization, null for guests */
|
|
6588
|
+
role?: MemberRoleOrGuest;
|
|
6589
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
6590
|
+
error: {
|
|
6591
|
+
/** @format int32 */
|
|
6592
|
+
code: 404;
|
|
6593
|
+
message: string;
|
|
6594
|
+
};
|
|
6595
|
+
}>>;
|
|
6466
6596
|
/**
|
|
6467
6597
|
* No description
|
|
6468
6598
|
*
|
|
@@ -6479,6 +6609,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6479
6609
|
message: string;
|
|
6480
6610
|
};
|
|
6481
6611
|
}>>;
|
|
6612
|
+
/**
|
|
6613
|
+
* No description
|
|
6614
|
+
*
|
|
6615
|
+
* @tags permissions, spaces
|
|
6616
|
+
* @name ListTeamPermissionsInSpace
|
|
6617
|
+
* @summary List permissions for teams in a space.
|
|
6618
|
+
* @request GET:/spaces/{spaceId}/permissions/teams
|
|
6619
|
+
* @secure
|
|
6620
|
+
*/
|
|
6621
|
+
listTeamPermissionsInSpace: (spaceId: string, query?: {
|
|
6622
|
+
/** Identifier of the page results to fetch. */
|
|
6623
|
+
page?: string;
|
|
6624
|
+
/**
|
|
6625
|
+
* The number of results per page
|
|
6626
|
+
* @min 0
|
|
6627
|
+
* @max 1000
|
|
6628
|
+
*/
|
|
6629
|
+
limit?: number;
|
|
6630
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6631
|
+
items: {
|
|
6632
|
+
/**
|
|
6633
|
+
* "The role of a member in an organization.
|
|
6634
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
6635
|
+
* "create": Can create content.
|
|
6636
|
+
* "review": Can review content.
|
|
6637
|
+
* "edit": Can edit the content (live or change requests).
|
|
6638
|
+
* "comment": Can access the content and its discussions.
|
|
6639
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
6640
|
+
*/
|
|
6641
|
+
permission: MemberRole;
|
|
6642
|
+
team: OrganizationTeam;
|
|
6643
|
+
}[];
|
|
6644
|
+
}, Error | {
|
|
6645
|
+
error: {
|
|
6646
|
+
/** @format int32 */
|
|
6647
|
+
code: 404;
|
|
6648
|
+
message: string;
|
|
6649
|
+
};
|
|
6650
|
+
}>>;
|
|
6482
6651
|
/**
|
|
6483
6652
|
* No description
|
|
6484
6653
|
*
|
|
@@ -8093,6 +8262,58 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8093
8262
|
message: string;
|
|
8094
8263
|
};
|
|
8095
8264
|
}>>;
|
|
8265
|
+
/**
|
|
8266
|
+
* No description
|
|
8267
|
+
*
|
|
8268
|
+
* @tags permissions, collections
|
|
8269
|
+
* @name ListTeamPermissionsInCollection
|
|
8270
|
+
* @summary List permissions for teams in a collection.
|
|
8271
|
+
* @request GET:/collections/{collectionId}/permissions/teams
|
|
8272
|
+
* @secure
|
|
8273
|
+
*/
|
|
8274
|
+
listTeamPermissionsInCollection: (collectionId: string, query?: {
|
|
8275
|
+
/** Identifier of the page results to fetch. */
|
|
8276
|
+
page?: string;
|
|
8277
|
+
/**
|
|
8278
|
+
* The number of results per page
|
|
8279
|
+
* @min 0
|
|
8280
|
+
* @max 1000
|
|
8281
|
+
*/
|
|
8282
|
+
limit?: number;
|
|
8283
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8284
|
+
items: {
|
|
8285
|
+
/**
|
|
8286
|
+
* "The role of a member in an organization.
|
|
8287
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
8288
|
+
* "create": Can create content.
|
|
8289
|
+
* "review": Can review content.
|
|
8290
|
+
* "edit": Can edit the content (live or change requests).
|
|
8291
|
+
* "comment": Can access the content and its discussions.
|
|
8292
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
8293
|
+
*/
|
|
8294
|
+
permission: MemberRole;
|
|
8295
|
+
team: OrganizationTeam;
|
|
8296
|
+
}[];
|
|
8297
|
+
}, Error>>;
|
|
8298
|
+
/**
|
|
8299
|
+
* No description
|
|
8300
|
+
*
|
|
8301
|
+
* @tags collections
|
|
8302
|
+
* @name UpdateTeamPermissionInCollection
|
|
8303
|
+
* @summary Update a team's permission a collection
|
|
8304
|
+
* @request PATCH:/collections/{collectionId}/permissions/teams/{teamId}
|
|
8305
|
+
* @secure
|
|
8306
|
+
*/
|
|
8307
|
+
updateTeamPermissionInCollection: (collectionId: string, teamId: string, data: {
|
|
8308
|
+
/** The role of a member in an organization, null for guests */
|
|
8309
|
+
role?: MemberRoleOrGuest;
|
|
8310
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8311
|
+
error: {
|
|
8312
|
+
/** @format int32 */
|
|
8313
|
+
code: 404;
|
|
8314
|
+
message: string;
|
|
8315
|
+
};
|
|
8316
|
+
}>>;
|
|
8096
8317
|
/**
|
|
8097
8318
|
* No description
|
|
8098
8319
|
*
|
|
@@ -8109,6 +8330,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8109
8330
|
message: string;
|
|
8110
8331
|
};
|
|
8111
8332
|
}>>;
|
|
8333
|
+
/**
|
|
8334
|
+
* No description
|
|
8335
|
+
*
|
|
8336
|
+
* @tags permissions, collections
|
|
8337
|
+
* @name ListUserPermissionsInCollection
|
|
8338
|
+
* @summary List permissions for users in a collection.
|
|
8339
|
+
* @request GET:/collections/{collectionId}/permissions/users
|
|
8340
|
+
* @secure
|
|
8341
|
+
*/
|
|
8342
|
+
listUserPermissionsInCollection: (collectionId: string, query?: {
|
|
8343
|
+
/** Identifier of the page results to fetch. */
|
|
8344
|
+
page?: string;
|
|
8345
|
+
/**
|
|
8346
|
+
* The number of results per page
|
|
8347
|
+
* @min 0
|
|
8348
|
+
* @max 1000
|
|
8349
|
+
*/
|
|
8350
|
+
limit?: number;
|
|
8351
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8352
|
+
items: UserContentPermission[];
|
|
8353
|
+
}, Error | {
|
|
8354
|
+
error: {
|
|
8355
|
+
/** @format int32 */
|
|
8356
|
+
code: 404;
|
|
8357
|
+
message: string;
|
|
8358
|
+
};
|
|
8359
|
+
}>>;
|
|
8360
|
+
/**
|
|
8361
|
+
* No description
|
|
8362
|
+
*
|
|
8363
|
+
* @tags collections
|
|
8364
|
+
* @name UpdateUserPermissionInCollection
|
|
8365
|
+
* @summary Update a user's permission a collection
|
|
8366
|
+
* @request PATCH:/collections/{collectionId}/permissions/users/{userId}
|
|
8367
|
+
* @secure
|
|
8368
|
+
*/
|
|
8369
|
+
updateUserPermissionInCollection: (collectionId: string, userId: string, data: {
|
|
8370
|
+
/** The role of a member in an organization, null for guests */
|
|
8371
|
+
role?: MemberRoleOrGuest;
|
|
8372
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8373
|
+
error: {
|
|
8374
|
+
/** @format int32 */
|
|
8375
|
+
code: 404;
|
|
8376
|
+
message: string;
|
|
8377
|
+
};
|
|
8378
|
+
}>>;
|
|
8112
8379
|
/**
|
|
8113
8380
|
* No description
|
|
8114
8381
|
*
|
|
@@ -9182,11 +9449,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9182
9449
|
* @request POST:/orgs/{organizationId}/billing/migrate
|
|
9183
9450
|
* @secure
|
|
9184
9451
|
*/
|
|
9185
|
-
migrateOrganizationPlan: (organizationId: string,
|
|
9452
|
+
migrateOrganizationPlan: (organizationId: string, data: {
|
|
9186
9453
|
/** The desired billing interval */
|
|
9187
9454
|
interval: BillingInterval;
|
|
9188
9455
|
/** The new product to upgrade to */
|
|
9189
9456
|
product: "free_2024" | "plus_2024" | "pro_2024";
|
|
9457
|
+
/** Changes to apply to the organization and its sites before upgrading */
|
|
9458
|
+
changes?: {
|
|
9459
|
+
/** A list of member identifiers to be removed */
|
|
9460
|
+
removeMembers?: string[];
|
|
9461
|
+
/** A list of site type updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. */
|
|
9462
|
+
updateSiteTypes?: {
|
|
9463
|
+
/** The site identifier */
|
|
9464
|
+
id: string;
|
|
9465
|
+
/** The new site type */
|
|
9466
|
+
type: "basic" | "premium" | "ultimate";
|
|
9467
|
+
}[];
|
|
9468
|
+
};
|
|
9190
9469
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9191
9470
|
/**
|
|
9192
9471
|
* No description
|
|
@@ -9202,7 +9481,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9202
9481
|
interval: BillingInterval;
|
|
9203
9482
|
/** The new product to upgrade to */
|
|
9204
9483
|
product: "free_2024" | "plus_2024" | "pro_2024";
|
|
9484
|
+
/** How many members have been deselected by the user */
|
|
9485
|
+
removedMembersCount: number;
|
|
9205
9486
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
9487
|
+
totals: {
|
|
9488
|
+
/** Count of all members */
|
|
9489
|
+
members: number;
|
|
9490
|
+
/** Count of all premium sites */
|
|
9491
|
+
premiumSites: number;
|
|
9492
|
+
/** Count of all ultimate sites */
|
|
9493
|
+
ultimateSites: number;
|
|
9494
|
+
};
|
|
9206
9495
|
invoice?: BillingInvoicePreview;
|
|
9207
9496
|
}, Error>>;
|
|
9208
9497
|
/**
|
|
@@ -10659,6 +10948,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10659
10948
|
/** Output format for the content. */
|
|
10660
10949
|
format?: "document" | "markdown";
|
|
10661
10950
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
10951
|
+
/**
|
|
10952
|
+
* No description
|
|
10953
|
+
*
|
|
10954
|
+
* @name StreamRecommendedQuestionsInSite
|
|
10955
|
+
* @summary Stream a list of questions that can be asked in a site.
|
|
10956
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
|
|
10957
|
+
* @secure
|
|
10958
|
+
*/
|
|
10959
|
+
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
10662
10960
|
/**
|
|
10663
10961
|
* No description
|
|
10664
10962
|
*
|
|
@@ -10977,6 +11275,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10977
11275
|
* @secure
|
|
10978
11276
|
*/
|
|
10979
11277
|
aggregateSiteEvents: (organizationId: string, siteId: string, data: SiteInsightsQueryEventsAggregation, params?: RequestParams) => Promise<HttpResponse<SiteInsightsQueryEventsAggregationResult, any>>;
|
|
11278
|
+
/**
|
|
11279
|
+
* No description
|
|
11280
|
+
*
|
|
11281
|
+
* @tags sites
|
|
11282
|
+
* @name ListSiteVisitorSegments
|
|
11283
|
+
* @summary List visitor segments in a site.
|
|
11284
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/visitor-segments
|
|
11285
|
+
* @secure
|
|
11286
|
+
*/
|
|
11287
|
+
listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11288
|
+
items: SiteInsightsVisitorSegment[];
|
|
11289
|
+
}, any>>;
|
|
10980
11290
|
/**
|
|
10981
11291
|
* No description
|
|
10982
11292
|
*
|