@gitbook/api 0.89.0 → 0.91.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 +436 -136
- package/dist/index.cjs +91 -3
- package/dist/index.js +90 -3
- package/package.json +1 -1
- package/spec/openapi.json +1565 -824
- package/spec/openapi.yaml +940 -495
package/dist/client.d.ts
CHANGED
|
@@ -660,39 +660,29 @@ export interface JSONDocument {
|
|
|
660
660
|
export type Document = MarkdownDocument | {
|
|
661
661
|
document: JSONDocument;
|
|
662
662
|
} | object;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
663
|
+
/**
|
|
664
|
+
* Page source
|
|
665
|
+
* The source points to a page in a space.
|
|
666
|
+
*/
|
|
667
|
+
export interface SearchAIAnswerSource {
|
|
666
668
|
type: 'page';
|
|
669
|
+
/** Short explanation of how the source was used to answer. */
|
|
670
|
+
reason?: string;
|
|
671
|
+
/** The page ID of the source. */
|
|
667
672
|
page: string;
|
|
673
|
+
/** The revision ID where the page was extracted from. */
|
|
668
674
|
revision: string;
|
|
675
|
+
/** The space ID owning the page. */
|
|
669
676
|
space: string;
|
|
677
|
+
/** The IDs of the sections of the page that were used to answer the question. */
|
|
670
678
|
sections: string[];
|
|
671
|
-
}
|
|
672
|
-
type: 'capture';
|
|
673
|
-
/** ID of the capture */
|
|
674
|
-
captureId: string;
|
|
675
|
-
/** Source of the capture */
|
|
676
|
-
source: string;
|
|
677
|
-
});
|
|
679
|
+
}
|
|
678
680
|
/** Answer from AI for a question asked on a content. */
|
|
679
681
|
export interface SearchAIAnswer {
|
|
680
|
-
/** @deprecated */
|
|
681
|
-
text?: string;
|
|
682
682
|
answer?: Document;
|
|
683
683
|
followupQuestions: string[];
|
|
684
684
|
/** The sources used to generate the answer. */
|
|
685
685
|
sources: SearchAIAnswerSource[];
|
|
686
|
-
/**
|
|
687
|
-
* The pages used to generate the answer. Deprecated - use sources instead.
|
|
688
|
-
* @deprecated
|
|
689
|
-
*/
|
|
690
|
-
pages: {
|
|
691
|
-
page: string;
|
|
692
|
-
revision: string;
|
|
693
|
-
space: string;
|
|
694
|
-
sections: string[];
|
|
695
|
-
}[];
|
|
696
686
|
}
|
|
697
687
|
export interface SearchAIQuery {
|
|
698
688
|
query: string;
|
|
@@ -1268,6 +1258,40 @@ export type InviteUsersAndTeams = ({
|
|
|
1268
1258
|
/** Role to set. */
|
|
1269
1259
|
role: MemberRoleOrGuest;
|
|
1270
1260
|
};
|
|
1261
|
+
/** Permission of a user in a content. */
|
|
1262
|
+
export interface UserContentPermission {
|
|
1263
|
+
/**
|
|
1264
|
+
* "The role of a member in an organization.
|
|
1265
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
1266
|
+
* "create": Can create content.
|
|
1267
|
+
* "review": Can review content.
|
|
1268
|
+
* "edit": Can edit the content (live or change requests).
|
|
1269
|
+
* "comment": Can access the content and its discussions.
|
|
1270
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
1271
|
+
*/
|
|
1272
|
+
permission: MemberRole;
|
|
1273
|
+
user: User;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* Title of the team
|
|
1277
|
+
* @minLength 1
|
|
1278
|
+
* @maxLength 64
|
|
1279
|
+
*/
|
|
1280
|
+
export type OrganizationTeamTitle = string;
|
|
1281
|
+
export interface OrganizationTeam {
|
|
1282
|
+
/** Type of Object, always equals to "team" */
|
|
1283
|
+
object: 'team';
|
|
1284
|
+
/** Unique identifier for the team. */
|
|
1285
|
+
id: string;
|
|
1286
|
+
/** Title of the team */
|
|
1287
|
+
title: OrganizationTeamTitle;
|
|
1288
|
+
/** Count of members in this team. */
|
|
1289
|
+
members: number;
|
|
1290
|
+
/** Count of spaces this team has access to. */
|
|
1291
|
+
spaces: number;
|
|
1292
|
+
/** Date at which the team was created. */
|
|
1293
|
+
createdAt: Timestamp;
|
|
1294
|
+
}
|
|
1271
1295
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1272
1296
|
/** @deprecated */
|
|
1273
1297
|
kind: 'group';
|
|
@@ -2482,20 +2506,6 @@ export interface UpdateCommentReplySchema {
|
|
|
2482
2506
|
/** Reactions to remove from the comment. */
|
|
2483
2507
|
removedReactions?: string[];
|
|
2484
2508
|
}
|
|
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
2509
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
2500
2510
|
export type Color = string;
|
|
2501
2511
|
export interface CustomizationThemedColor {
|
|
@@ -3809,26 +3819,6 @@ export interface MemberContentPermission {
|
|
|
3809
3819
|
permission: MemberRole;
|
|
3810
3820
|
space: Space;
|
|
3811
3821
|
}
|
|
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
3822
|
/**
|
|
3833
3823
|
* "The role of a team member.
|
|
3834
3824
|
* "owner": Can manage team members.
|
|
@@ -4280,6 +4270,19 @@ export type BillingOperationPreviewResponse = {
|
|
|
4280
4270
|
plan: BillingProduct;
|
|
4281
4271
|
invoice?: BillingInvoicePreview;
|
|
4282
4272
|
};
|
|
4273
|
+
/**
|
|
4274
|
+
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
4275
|
+
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
4276
|
+
* - `muted`: Sophisticated theme with decreased contrast between elements.
|
|
4277
|
+
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
4278
|
+
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
4279
|
+
*/
|
|
4280
|
+
export declare enum CustomizationTheme {
|
|
4281
|
+
Clean = "clean",
|
|
4282
|
+
Muted = "muted",
|
|
4283
|
+
Bold = "bold",
|
|
4284
|
+
Gradient = "gradient"
|
|
4285
|
+
}
|
|
4283
4286
|
export interface CustomizationTint {
|
|
4284
4287
|
color: CustomizationThemedColor;
|
|
4285
4288
|
}
|
|
@@ -4312,6 +4315,14 @@ export interface SiteCustomizationSettings {
|
|
|
4312
4315
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4313
4316
|
title?: SiteTitle;
|
|
4314
4317
|
styling: {
|
|
4318
|
+
/**
|
|
4319
|
+
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
4320
|
+
* - `clean`: Modern theme featuring translucency and minimally-styled elements.
|
|
4321
|
+
* - `muted`: Sophisticated theme with decreased contrast between elements.
|
|
4322
|
+
* - `bold`: High-impact theme with prominent colors and strong contrasts.
|
|
4323
|
+
* - `gradient`: Trendy theme featuring colorful gradients and splashes of color.
|
|
4324
|
+
*/
|
|
4325
|
+
theme?: CustomizationTheme;
|
|
4315
4326
|
primaryColor: CustomizationThemedColor;
|
|
4316
4327
|
tint?: CustomizationTint;
|
|
4317
4328
|
corners: CustomizationCorners;
|
|
@@ -4359,6 +4370,7 @@ export interface SiteCustomizationSettings {
|
|
|
4359
4370
|
/** @maxLength 300 */
|
|
4360
4371
|
copyright?: string;
|
|
4361
4372
|
};
|
|
4373
|
+
/** Customization options for the dark/light theme modes. */
|
|
4362
4374
|
themes: {
|
|
4363
4375
|
default: CustomizationThemeMode;
|
|
4364
4376
|
/** Should the reader be able to switch between dark and light mode */
|
|
@@ -4695,7 +4707,8 @@ export type SiteInsightsEventAPIClientRequest = SiteInsightsEventBase & {
|
|
|
4695
4707
|
export declare enum SiteInsightsTrademarkPlacement {
|
|
4696
4708
|
Sidebar = "sidebar",
|
|
4697
4709
|
Ad = "ad",
|
|
4698
|
-
Footer = "footer"
|
|
4710
|
+
Footer = "footer",
|
|
4711
|
+
Pdf = "pdf"
|
|
4699
4712
|
}
|
|
4700
4713
|
export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
|
|
4701
4714
|
type: 'trademark_click';
|
|
@@ -4718,6 +4731,91 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
4718
4731
|
ad: SiteInsightsAd;
|
|
4719
4732
|
};
|
|
4720
4733
|
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
|
|
4734
|
+
export interface SiteInsightsQueryDateTimeColumn {
|
|
4735
|
+
column: 'datetime';
|
|
4736
|
+
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
4737
|
+
}
|
|
4738
|
+
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
4739
|
+
column: 'eventType';
|
|
4740
|
+
} | {
|
|
4741
|
+
column: 'eventsCount';
|
|
4742
|
+
} | {
|
|
4743
|
+
column: 'sessionsCount';
|
|
4744
|
+
} | {
|
|
4745
|
+
column: 'visitorsCount';
|
|
4746
|
+
} | {
|
|
4747
|
+
column: 'siteSection';
|
|
4748
|
+
} | {
|
|
4749
|
+
column: 'siteSpace';
|
|
4750
|
+
} | {
|
|
4751
|
+
column: 'siteShareKey';
|
|
4752
|
+
} | {
|
|
4753
|
+
column: 'page';
|
|
4754
|
+
} | {
|
|
4755
|
+
column: 'visitorGeoCountry';
|
|
4756
|
+
} | {
|
|
4757
|
+
column: 'visitorGeoPoint';
|
|
4758
|
+
/**
|
|
4759
|
+
* @min 0
|
|
4760
|
+
* @max 15
|
|
4761
|
+
*/
|
|
4762
|
+
precision?: number;
|
|
4763
|
+
} | {
|
|
4764
|
+
column: 'visitorDevice';
|
|
4765
|
+
} | {
|
|
4766
|
+
column: 'visitorBrowser';
|
|
4767
|
+
} | {
|
|
4768
|
+
column: 'visitorOS';
|
|
4769
|
+
} | {
|
|
4770
|
+
column: 'visitorBot';
|
|
4771
|
+
} | {
|
|
4772
|
+
column: 'visitorLanguage';
|
|
4773
|
+
} | {
|
|
4774
|
+
column: 'eventLinkTargetValue';
|
|
4775
|
+
} | {
|
|
4776
|
+
column: 'eventLinkTargetKind';
|
|
4777
|
+
} | {
|
|
4778
|
+
column: 'eventLinkTargetDomain';
|
|
4779
|
+
} | {
|
|
4780
|
+
column: 'eventLinkPosition';
|
|
4781
|
+
} | {
|
|
4782
|
+
column: 'eventAPIOperationPath';
|
|
4783
|
+
} | {
|
|
4784
|
+
column: 'eventAPIOperationMethod';
|
|
4785
|
+
} | {
|
|
4786
|
+
column: 'eventSearchQuery';
|
|
4787
|
+
} | {
|
|
4788
|
+
column: 'eventPageFeedbackRating';
|
|
4789
|
+
} | {
|
|
4790
|
+
column: 'eventPageFeedbackComment';
|
|
4791
|
+
} | {
|
|
4792
|
+
column: 'pageFeedbackRating';
|
|
4793
|
+
} | {
|
|
4794
|
+
column: 'referrer';
|
|
4795
|
+
} | {
|
|
4796
|
+
column: 'referrerDomain';
|
|
4797
|
+
} | {
|
|
4798
|
+
column: 'utmSource';
|
|
4799
|
+
} | {
|
|
4800
|
+
column: 'utmMedium';
|
|
4801
|
+
} | {
|
|
4802
|
+
column: 'utmCampaign';
|
|
4803
|
+
} | {
|
|
4804
|
+
column: 'utmTerm';
|
|
4805
|
+
} | {
|
|
4806
|
+
column: 'utmContent';
|
|
4807
|
+
} | {
|
|
4808
|
+
column: 'visitorClaimProperty';
|
|
4809
|
+
} | {
|
|
4810
|
+
column: 'visitorClaim';
|
|
4811
|
+
claim: string;
|
|
4812
|
+
} | {
|
|
4813
|
+
column: 'eventAdDomain';
|
|
4814
|
+
} | {
|
|
4815
|
+
column: 'eventAdPlacement';
|
|
4816
|
+
} | {
|
|
4817
|
+
column: 'eventTrademarkPlacement';
|
|
4818
|
+
};
|
|
4721
4819
|
export declare enum SiteInsightsEventType {
|
|
4722
4820
|
PageView = "page_view",
|
|
4723
4821
|
SearchOpen = "search_open",
|
|
@@ -4820,13 +4918,20 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
4820
4918
|
values: (string | null)[];
|
|
4821
4919
|
} | {
|
|
4822
4920
|
column: 'page';
|
|
4823
|
-
values: {
|
|
4921
|
+
values: (null | {
|
|
4824
4922
|
page: string | null;
|
|
4825
4923
|
space: string;
|
|
4826
|
-
}[];
|
|
4924
|
+
})[];
|
|
4827
4925
|
} | {
|
|
4828
4926
|
column: 'visitorGeoCountry';
|
|
4829
4927
|
values: (string | null)[];
|
|
4928
|
+
} | {
|
|
4929
|
+
column: 'visitorGeoPoint';
|
|
4930
|
+
values: ({
|
|
4931
|
+
latitude: number;
|
|
4932
|
+
longitude: number;
|
|
4933
|
+
h3: string;
|
|
4934
|
+
} | null)[];
|
|
4830
4935
|
} | {
|
|
4831
4936
|
column: 'visitorLanguage';
|
|
4832
4937
|
values: (string | null)[];
|
|
@@ -4849,6 +4954,12 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
4849
4954
|
good: number;
|
|
4850
4955
|
bad: number;
|
|
4851
4956
|
}[];
|
|
4957
|
+
} | {
|
|
4958
|
+
column: 'eventPageFeedbackRating';
|
|
4959
|
+
values: PageFeedbackRating[];
|
|
4960
|
+
} | {
|
|
4961
|
+
column: 'eventPageFeedbackComment';
|
|
4962
|
+
values: string[];
|
|
4852
4963
|
} | {
|
|
4853
4964
|
column: 'referrer';
|
|
4854
4965
|
values: string[];
|
|
@@ -4891,80 +5002,6 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
4891
5002
|
export type SiteInsightsQueryEventsFilter = SiteInsightsQueryEventsValues & {
|
|
4892
5003
|
operator?: SiteInsightsQueryOperator;
|
|
4893
5004
|
};
|
|
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
5005
|
export declare enum SiteInsightsQueryRange {
|
|
4969
5006
|
LastYear = "lastYear",
|
|
4970
5007
|
Last3Months = "last3Months",
|
|
@@ -4973,18 +5010,36 @@ export declare enum SiteInsightsQueryRange {
|
|
|
4973
5010
|
Last24Hours = "last24Hours"
|
|
4974
5011
|
}
|
|
4975
5012
|
export interface SiteInsightsQueryEventsAggregation {
|
|
5013
|
+
select?: SiteInsightsQueryEventsColumn[];
|
|
4976
5014
|
where?: SiteInsightsQueryEventsFilter[];
|
|
4977
|
-
|
|
4978
|
-
groupBy: SiteInsightsQueryEventsColumn[];
|
|
5015
|
+
groupBy?: SiteInsightsQueryEventsColumn[];
|
|
4979
5016
|
order?: {
|
|
4980
5017
|
by: SiteInsightsQueryEventsColumn;
|
|
4981
5018
|
direction: 'asc' | 'desc';
|
|
4982
5019
|
};
|
|
4983
5020
|
range: SiteInsightsQueryRange;
|
|
5021
|
+
/**
|
|
5022
|
+
* @min 1
|
|
5023
|
+
* @max 1000
|
|
5024
|
+
* @default 1000
|
|
5025
|
+
*/
|
|
5026
|
+
limit?: number;
|
|
4984
5027
|
}
|
|
4985
5028
|
export interface SiteInsightsQueryEventsAggregationResult {
|
|
4986
5029
|
columns: SiteInsightsQueryEventsValues[];
|
|
4987
5030
|
}
|
|
5031
|
+
/** A segment of visitors with the same characteristics. */
|
|
5032
|
+
export interface SiteInsightsVisitorSegment {
|
|
5033
|
+
/** The title of the visitor profile. */
|
|
5034
|
+
title: string;
|
|
5035
|
+
claims: PlainObject;
|
|
5036
|
+
/** The number of events for this visitor profile. */
|
|
5037
|
+
events: number;
|
|
5038
|
+
/** The number of visitors for this visitor profile. */
|
|
5039
|
+
visitors: number;
|
|
5040
|
+
/** The number of sessions for this visitor profile. */
|
|
5041
|
+
sessions: number;
|
|
5042
|
+
}
|
|
4988
5043
|
/**
|
|
4989
5044
|
* The interval for grouping the results
|
|
4990
5045
|
* @default "week"
|
|
@@ -6441,6 +6496,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6441
6496
|
message: string;
|
|
6442
6497
|
};
|
|
6443
6498
|
}>>;
|
|
6499
|
+
/**
|
|
6500
|
+
* No description
|
|
6501
|
+
*
|
|
6502
|
+
* @tags spaces
|
|
6503
|
+
* @name UpdateTeamPermissionInSpace
|
|
6504
|
+
* @summary Update a team's permission in a space
|
|
6505
|
+
* @request PATCH:/spaces/{spaceId}/permissions/teams/{teamId}
|
|
6506
|
+
* @secure
|
|
6507
|
+
*/
|
|
6508
|
+
updateTeamPermissionInSpace: (spaceId: string, teamId: string, data: {
|
|
6509
|
+
/** The role of a member in an organization, null for guests */
|
|
6510
|
+
role?: MemberRoleOrGuest;
|
|
6511
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
6512
|
+
error: {
|
|
6513
|
+
/** @format int32 */
|
|
6514
|
+
code: 404;
|
|
6515
|
+
message: string;
|
|
6516
|
+
};
|
|
6517
|
+
}>>;
|
|
6444
6518
|
/**
|
|
6445
6519
|
* No description
|
|
6446
6520
|
*
|
|
@@ -6463,6 +6537,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6463
6537
|
message: string;
|
|
6464
6538
|
};
|
|
6465
6539
|
}>>;
|
|
6540
|
+
/**
|
|
6541
|
+
* No description
|
|
6542
|
+
*
|
|
6543
|
+
* @tags permissions, spaces
|
|
6544
|
+
* @name ListUserPermissionsInSpace
|
|
6545
|
+
* @summary List permissions for users in a space.
|
|
6546
|
+
* @request GET:/spaces/{spaceId}/permissions/users
|
|
6547
|
+
* @secure
|
|
6548
|
+
*/
|
|
6549
|
+
listUserPermissionsInSpace: (spaceId: string, query?: {
|
|
6550
|
+
/** Identifier of the page results to fetch. */
|
|
6551
|
+
page?: string;
|
|
6552
|
+
/**
|
|
6553
|
+
* The number of results per page
|
|
6554
|
+
* @min 0
|
|
6555
|
+
* @max 1000
|
|
6556
|
+
*/
|
|
6557
|
+
limit?: number;
|
|
6558
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6559
|
+
items: UserContentPermission[];
|
|
6560
|
+
}, Error | {
|
|
6561
|
+
error: {
|
|
6562
|
+
/** @format int32 */
|
|
6563
|
+
code: 404;
|
|
6564
|
+
message: string;
|
|
6565
|
+
};
|
|
6566
|
+
}>>;
|
|
6567
|
+
/**
|
|
6568
|
+
* No description
|
|
6569
|
+
*
|
|
6570
|
+
* @tags spaces
|
|
6571
|
+
* @name UpdateUserPermissionInSpace
|
|
6572
|
+
* @summary Update a user's permission a space
|
|
6573
|
+
* @request PATCH:/spaces/{spaceId}/permissions/users/{userId}
|
|
6574
|
+
* @secure
|
|
6575
|
+
*/
|
|
6576
|
+
updateUserPermissionInSpace: (spaceId: string, userId: string, data: {
|
|
6577
|
+
/** The role of a member in an organization, null for guests */
|
|
6578
|
+
role?: MemberRoleOrGuest;
|
|
6579
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
6580
|
+
error: {
|
|
6581
|
+
/** @format int32 */
|
|
6582
|
+
code: 404;
|
|
6583
|
+
message: string;
|
|
6584
|
+
};
|
|
6585
|
+
}>>;
|
|
6466
6586
|
/**
|
|
6467
6587
|
* No description
|
|
6468
6588
|
*
|
|
@@ -6479,6 +6599,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6479
6599
|
message: string;
|
|
6480
6600
|
};
|
|
6481
6601
|
}>>;
|
|
6602
|
+
/**
|
|
6603
|
+
* No description
|
|
6604
|
+
*
|
|
6605
|
+
* @tags permissions, spaces
|
|
6606
|
+
* @name ListTeamPermissionsInSpace
|
|
6607
|
+
* @summary List permissions for teams in a space.
|
|
6608
|
+
* @request GET:/spaces/{spaceId}/permissions/teams
|
|
6609
|
+
* @secure
|
|
6610
|
+
*/
|
|
6611
|
+
listTeamPermissionsInSpace: (spaceId: string, query?: {
|
|
6612
|
+
/** Identifier of the page results to fetch. */
|
|
6613
|
+
page?: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* The number of results per page
|
|
6616
|
+
* @min 0
|
|
6617
|
+
* @max 1000
|
|
6618
|
+
*/
|
|
6619
|
+
limit?: number;
|
|
6620
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6621
|
+
items: {
|
|
6622
|
+
/**
|
|
6623
|
+
* "The role of a member in an organization.
|
|
6624
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
6625
|
+
* "create": Can create content.
|
|
6626
|
+
* "review": Can review content.
|
|
6627
|
+
* "edit": Can edit the content (live or change requests).
|
|
6628
|
+
* "comment": Can access the content and its discussions.
|
|
6629
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
6630
|
+
*/
|
|
6631
|
+
permission: MemberRole;
|
|
6632
|
+
team: OrganizationTeam;
|
|
6633
|
+
}[];
|
|
6634
|
+
}, Error | {
|
|
6635
|
+
error: {
|
|
6636
|
+
/** @format int32 */
|
|
6637
|
+
code: 404;
|
|
6638
|
+
message: string;
|
|
6639
|
+
};
|
|
6640
|
+
}>>;
|
|
6482
6641
|
/**
|
|
6483
6642
|
* No description
|
|
6484
6643
|
*
|
|
@@ -8093,6 +8252,58 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8093
8252
|
message: string;
|
|
8094
8253
|
};
|
|
8095
8254
|
}>>;
|
|
8255
|
+
/**
|
|
8256
|
+
* No description
|
|
8257
|
+
*
|
|
8258
|
+
* @tags permissions, collections
|
|
8259
|
+
* @name ListTeamPermissionsInCollection
|
|
8260
|
+
* @summary List permissions for teams in a collection.
|
|
8261
|
+
* @request GET:/collections/{collectionId}/permissions/teams
|
|
8262
|
+
* @secure
|
|
8263
|
+
*/
|
|
8264
|
+
listTeamPermissionsInCollection: (collectionId: string, query?: {
|
|
8265
|
+
/** Identifier of the page results to fetch. */
|
|
8266
|
+
page?: string;
|
|
8267
|
+
/**
|
|
8268
|
+
* The number of results per page
|
|
8269
|
+
* @min 0
|
|
8270
|
+
* @max 1000
|
|
8271
|
+
*/
|
|
8272
|
+
limit?: number;
|
|
8273
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8274
|
+
items: {
|
|
8275
|
+
/**
|
|
8276
|
+
* "The role of a member in an organization.
|
|
8277
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
8278
|
+
* "create": Can create content.
|
|
8279
|
+
* "review": Can review content.
|
|
8280
|
+
* "edit": Can edit the content (live or change requests).
|
|
8281
|
+
* "comment": Can access the content and its discussions.
|
|
8282
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
8283
|
+
*/
|
|
8284
|
+
permission: MemberRole;
|
|
8285
|
+
team: OrganizationTeam;
|
|
8286
|
+
}[];
|
|
8287
|
+
}, Error>>;
|
|
8288
|
+
/**
|
|
8289
|
+
* No description
|
|
8290
|
+
*
|
|
8291
|
+
* @tags collections
|
|
8292
|
+
* @name UpdateTeamPermissionInCollection
|
|
8293
|
+
* @summary Update a team's permission a collection
|
|
8294
|
+
* @request PATCH:/collections/{collectionId}/permissions/teams/{teamId}
|
|
8295
|
+
* @secure
|
|
8296
|
+
*/
|
|
8297
|
+
updateTeamPermissionInCollection: (collectionId: string, teamId: string, data: {
|
|
8298
|
+
/** The role of a member in an organization, null for guests */
|
|
8299
|
+
role?: MemberRoleOrGuest;
|
|
8300
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8301
|
+
error: {
|
|
8302
|
+
/** @format int32 */
|
|
8303
|
+
code: 404;
|
|
8304
|
+
message: string;
|
|
8305
|
+
};
|
|
8306
|
+
}>>;
|
|
8096
8307
|
/**
|
|
8097
8308
|
* No description
|
|
8098
8309
|
*
|
|
@@ -8109,6 +8320,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8109
8320
|
message: string;
|
|
8110
8321
|
};
|
|
8111
8322
|
}>>;
|
|
8323
|
+
/**
|
|
8324
|
+
* No description
|
|
8325
|
+
*
|
|
8326
|
+
* @tags permissions, collections
|
|
8327
|
+
* @name ListUserPermissionsInCollection
|
|
8328
|
+
* @summary List permissions for users in a collection.
|
|
8329
|
+
* @request GET:/collections/{collectionId}/permissions/users
|
|
8330
|
+
* @secure
|
|
8331
|
+
*/
|
|
8332
|
+
listUserPermissionsInCollection: (collectionId: string, query?: {
|
|
8333
|
+
/** Identifier of the page results to fetch. */
|
|
8334
|
+
page?: string;
|
|
8335
|
+
/**
|
|
8336
|
+
* The number of results per page
|
|
8337
|
+
* @min 0
|
|
8338
|
+
* @max 1000
|
|
8339
|
+
*/
|
|
8340
|
+
limit?: number;
|
|
8341
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8342
|
+
items: UserContentPermission[];
|
|
8343
|
+
}, Error | {
|
|
8344
|
+
error: {
|
|
8345
|
+
/** @format int32 */
|
|
8346
|
+
code: 404;
|
|
8347
|
+
message: string;
|
|
8348
|
+
};
|
|
8349
|
+
}>>;
|
|
8350
|
+
/**
|
|
8351
|
+
* No description
|
|
8352
|
+
*
|
|
8353
|
+
* @tags collections
|
|
8354
|
+
* @name UpdateUserPermissionInCollection
|
|
8355
|
+
* @summary Update a user's permission a collection
|
|
8356
|
+
* @request PATCH:/collections/{collectionId}/permissions/users/{userId}
|
|
8357
|
+
* @secure
|
|
8358
|
+
*/
|
|
8359
|
+
updateUserPermissionInCollection: (collectionId: string, userId: string, data: {
|
|
8360
|
+
/** The role of a member in an organization, null for guests */
|
|
8361
|
+
role?: MemberRoleOrGuest;
|
|
8362
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8363
|
+
error: {
|
|
8364
|
+
/** @format int32 */
|
|
8365
|
+
code: 404;
|
|
8366
|
+
message: string;
|
|
8367
|
+
};
|
|
8368
|
+
}>>;
|
|
8112
8369
|
/**
|
|
8113
8370
|
* No description
|
|
8114
8371
|
*
|
|
@@ -9182,11 +9439,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9182
9439
|
* @request POST:/orgs/{organizationId}/billing/migrate
|
|
9183
9440
|
* @secure
|
|
9184
9441
|
*/
|
|
9185
|
-
migrateOrganizationPlan: (organizationId: string,
|
|
9442
|
+
migrateOrganizationPlan: (organizationId: string, data: {
|
|
9186
9443
|
/** The desired billing interval */
|
|
9187
9444
|
interval: BillingInterval;
|
|
9188
9445
|
/** The new product to upgrade to */
|
|
9189
9446
|
product: "free_2024" | "plus_2024" | "pro_2024";
|
|
9447
|
+
/** Changes to apply to the organization and its sites before upgrading */
|
|
9448
|
+
changes?: {
|
|
9449
|
+
/** A list of member identifiers to be removed */
|
|
9450
|
+
removeMembers?: string[];
|
|
9451
|
+
/** 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. */
|
|
9452
|
+
updateSiteTypes?: {
|
|
9453
|
+
/** The site identifier */
|
|
9454
|
+
id: string;
|
|
9455
|
+
/** The new site type */
|
|
9456
|
+
type: "basic" | "premium" | "ultimate";
|
|
9457
|
+
}[];
|
|
9458
|
+
};
|
|
9190
9459
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9191
9460
|
/**
|
|
9192
9461
|
* No description
|
|
@@ -9202,7 +9471,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9202
9471
|
interval: BillingInterval;
|
|
9203
9472
|
/** The new product to upgrade to */
|
|
9204
9473
|
product: "free_2024" | "plus_2024" | "pro_2024";
|
|
9474
|
+
/** How many members have been deselected by the user */
|
|
9475
|
+
removedMembersCount: number;
|
|
9205
9476
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
9477
|
+
totals: {
|
|
9478
|
+
/** Count of all members */
|
|
9479
|
+
members: number;
|
|
9480
|
+
/** Count of all premium sites */
|
|
9481
|
+
premiumSites: number;
|
|
9482
|
+
/** Count of all ultimate sites */
|
|
9483
|
+
ultimateSites: number;
|
|
9484
|
+
};
|
|
9206
9485
|
invoice?: BillingInvoicePreview;
|
|
9207
9486
|
}, Error>>;
|
|
9208
9487
|
/**
|
|
@@ -10659,6 +10938,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10659
10938
|
/** Output format for the content. */
|
|
10660
10939
|
format?: "document" | "markdown";
|
|
10661
10940
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
10941
|
+
/**
|
|
10942
|
+
* No description
|
|
10943
|
+
*
|
|
10944
|
+
* @name StreamRecommendedQuestionsInSite
|
|
10945
|
+
* @summary Stream a list of questions that can be asked in a site.
|
|
10946
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
|
|
10947
|
+
* @secure
|
|
10948
|
+
*/
|
|
10949
|
+
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
10662
10950
|
/**
|
|
10663
10951
|
* No description
|
|
10664
10952
|
*
|
|
@@ -10977,6 +11265,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10977
11265
|
* @secure
|
|
10978
11266
|
*/
|
|
10979
11267
|
aggregateSiteEvents: (organizationId: string, siteId: string, data: SiteInsightsQueryEventsAggregation, params?: RequestParams) => Promise<HttpResponse<SiteInsightsQueryEventsAggregationResult, any>>;
|
|
11268
|
+
/**
|
|
11269
|
+
* No description
|
|
11270
|
+
*
|
|
11271
|
+
* @tags sites
|
|
11272
|
+
* @name ListSiteVisitorSegments
|
|
11273
|
+
* @summary List visitor segments in a site.
|
|
11274
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/visitor-segments
|
|
11275
|
+
* @secure
|
|
11276
|
+
*/
|
|
11277
|
+
listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11278
|
+
items: SiteInsightsVisitorSegment[];
|
|
11279
|
+
}, any>>;
|
|
10980
11280
|
/**
|
|
10981
11281
|
* No description
|
|
10982
11282
|
*
|