@gitbook/api 0.121.0 → 0.123.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 +85 -33
- package/dist/index.cjs +22 -1
- package/dist/index.js +20 -1
- package/package.json +1 -1
- package/spec/openapi.json +223 -75
- package/spec/openapi.yaml +145 -56
package/dist/client.d.ts
CHANGED
|
@@ -109,18 +109,18 @@ export interface GitSyncState {
|
|
|
109
109
|
/** When the Git provider details were last updated */
|
|
110
110
|
updatedAt?: Timestamp;
|
|
111
111
|
}
|
|
112
|
-
/** Custom backend for
|
|
112
|
+
/** Custom backend for authenticated access */
|
|
113
113
|
export interface VisitorAuthCustomBackend {
|
|
114
|
-
/** Custom backend for
|
|
114
|
+
/** Custom backend for authenticated access */
|
|
115
115
|
backend: 'custom';
|
|
116
116
|
}
|
|
117
|
-
/** Integration backend for
|
|
117
|
+
/** Integration backend for authenticated access */
|
|
118
118
|
export interface VisitorAuthIntegrationBackend {
|
|
119
|
-
/** Integration as backend for
|
|
119
|
+
/** Integration as backend for authenticated access */
|
|
120
120
|
backend: 'integration';
|
|
121
121
|
}
|
|
122
122
|
export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
|
|
123
|
-
/** Name of integration being used as the backend for
|
|
123
|
+
/** Name of integration being used as the backend for authenticated access */
|
|
124
124
|
integration: string;
|
|
125
125
|
});
|
|
126
126
|
/**
|
|
@@ -613,9 +613,16 @@ export interface DocumentBlockParagraph {
|
|
|
613
613
|
key?: string;
|
|
614
614
|
nodes: (DocumentInline | DocumentText)[];
|
|
615
615
|
isVoid?: false;
|
|
616
|
-
data?:
|
|
616
|
+
data?: {
|
|
617
|
+
align?: TextAlignment;
|
|
618
|
+
};
|
|
617
619
|
}
|
|
618
620
|
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineIcon | DocumentInlineExpression | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
|
|
621
|
+
export declare enum TextAlignment {
|
|
622
|
+
Start = "start",
|
|
623
|
+
Center = "center",
|
|
624
|
+
End = "end"
|
|
625
|
+
}
|
|
619
626
|
export interface DocumentBlockHeading {
|
|
620
627
|
object: 'block';
|
|
621
628
|
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
@@ -624,6 +631,7 @@ export interface DocumentBlockHeading {
|
|
|
624
631
|
data: {
|
|
625
632
|
/** @pattern ^[-a-z0-9.+_]+$ */
|
|
626
633
|
id?: string;
|
|
634
|
+
align?: TextAlignment;
|
|
627
635
|
};
|
|
628
636
|
meta?: {
|
|
629
637
|
/** Unique ID to be used in an URL for the block. */
|
|
@@ -1123,7 +1131,7 @@ export interface DocumentBlockColumn {
|
|
|
1123
1131
|
object: 'block';
|
|
1124
1132
|
type: 'column';
|
|
1125
1133
|
key?: string;
|
|
1126
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockImages)[];
|
|
1134
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote)[];
|
|
1127
1135
|
isVoid?: false;
|
|
1128
1136
|
data: {
|
|
1129
1137
|
width?: Length;
|
|
@@ -1157,6 +1165,8 @@ export interface DocumentInlineButton {
|
|
|
1157
1165
|
data: {
|
|
1158
1166
|
label: string;
|
|
1159
1167
|
kind: 'primary' | 'secondary';
|
|
1168
|
+
/** Name of the icon */
|
|
1169
|
+
icon?: Icon;
|
|
1160
1170
|
} & {
|
|
1161
1171
|
/** A relative reference to content in GitBook. */
|
|
1162
1172
|
ref: ContentRef;
|
|
@@ -2350,6 +2360,8 @@ export interface RevisionSemanticChangeReusableContentEdited {
|
|
|
2350
2360
|
}
|
|
2351
2361
|
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeVariablesEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
|
|
2352
2362
|
export interface RevisionSemanticChanges {
|
|
2363
|
+
/** The change request object that initiated the changes in the case of a merge revision. */
|
|
2364
|
+
mergedFrom?: ChangeRequest;
|
|
2353
2365
|
changes: RevisionSemanticChange[];
|
|
2354
2366
|
/** How many changes were omitted because above the result limit */
|
|
2355
2367
|
more?: number;
|
|
@@ -2942,7 +2954,7 @@ export type FetchEvent = BaseEvent & {
|
|
|
2942
2954
|
export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
|
|
2943
2955
|
type: 'fetch_published_script';
|
|
2944
2956
|
};
|
|
2945
|
-
/** Common properties for all events related to
|
|
2957
|
+
/** Common properties for all events related to authenticated access from an installation */
|
|
2946
2958
|
export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
|
|
2947
2959
|
type: 'fetch_visitor_authentication';
|
|
2948
2960
|
location?: string;
|
|
@@ -3916,12 +3928,34 @@ export interface CreateInviteToCollection {
|
|
|
3916
3928
|
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3917
3929
|
/** An invite link created in an organization */
|
|
3918
3930
|
export type OrganizationInviteLink = InviteLinkToOrganization | InviteLinkToSpace | InviteLinkToCollection;
|
|
3931
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3932
|
+
export interface SubscriptionChanges {
|
|
3933
|
+
/** A list of member identifiers to be removed */
|
|
3934
|
+
removeMembers: string[];
|
|
3935
|
+
/** A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type. */
|
|
3936
|
+
updateSites: ({
|
|
3937
|
+
/** The site identifier */
|
|
3938
|
+
id: string;
|
|
3939
|
+
/** The site type to migrate to */
|
|
3940
|
+
type: SiteType;
|
|
3941
|
+
} | {
|
|
3942
|
+
/** The site identifier */
|
|
3943
|
+
id: string;
|
|
3944
|
+
/** Can be set to `false` to unpublish a site */
|
|
3945
|
+
isPublished: false;
|
|
3946
|
+
})[];
|
|
3947
|
+
}
|
|
3919
3948
|
export interface UpgradeOrganizationBilling {
|
|
3920
3949
|
/** Name of the product */
|
|
3921
3950
|
product: BillingProduct;
|
|
3922
3951
|
/** Interval for a billing subscription */
|
|
3923
3952
|
interval: BillingInterval;
|
|
3924
|
-
/**
|
|
3953
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3954
|
+
changes?: SubscriptionChanges;
|
|
3955
|
+
/**
|
|
3956
|
+
* Deprecated. Use `changes` instead.
|
|
3957
|
+
* @deprecated
|
|
3958
|
+
*/
|
|
3925
3959
|
exclude?: {
|
|
3926
3960
|
/** A list of member identifiers to be removed, `all` to remove all members but the current admin */
|
|
3927
3961
|
members?: string[] | 'all';
|
|
@@ -3976,23 +4010,8 @@ export interface MigrateOrganizationParameters {
|
|
|
3976
4010
|
interval: BillingInterval;
|
|
3977
4011
|
/** The new product to upgrade to */
|
|
3978
4012
|
product: 'free_2024' | 'plus_2024' | 'pro_2024';
|
|
3979
|
-
/** Changes to apply
|
|
3980
|
-
changes:
|
|
3981
|
-
/** A list of member identifiers to be removed */
|
|
3982
|
-
removeMembers: string[];
|
|
3983
|
-
/** A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type. */
|
|
3984
|
-
updateSites: ({
|
|
3985
|
-
/** The site identifier */
|
|
3986
|
-
id: string;
|
|
3987
|
-
/** The site type to migrate to */
|
|
3988
|
-
type: SiteType;
|
|
3989
|
-
} | {
|
|
3990
|
-
/** The site identifier */
|
|
3991
|
-
id: string;
|
|
3992
|
-
/** Can be set to `false` to unpublish a site */
|
|
3993
|
-
isPublished: false;
|
|
3994
|
-
})[];
|
|
3995
|
-
};
|
|
4013
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
4014
|
+
changes: SubscriptionChanges;
|
|
3996
4015
|
}
|
|
3997
4016
|
export interface Error {
|
|
3998
4017
|
error: {
|
|
@@ -4785,6 +4804,8 @@ export interface CustomizationHeaderItem {
|
|
|
4785
4804
|
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
4786
4805
|
to: ContentRef | null;
|
|
4787
4806
|
links: CustomizationContentLink[];
|
|
4807
|
+
/** Conditional expression used to evaluate whether the header item should be shown to the site's visitor. */
|
|
4808
|
+
condition?: Condition;
|
|
4788
4809
|
}
|
|
4789
4810
|
export interface CustomizationFooterGroup {
|
|
4790
4811
|
title: string;
|
|
@@ -4810,6 +4831,15 @@ export declare enum CustomizationThemeMode {
|
|
|
4810
4831
|
Light = "light",
|
|
4811
4832
|
Dark = "dark"
|
|
4812
4833
|
}
|
|
4834
|
+
/**
|
|
4835
|
+
* How external links should open when clicked.
|
|
4836
|
+
* - `self`: External links open in the current tab.
|
|
4837
|
+
* - `blank`: External links open in a new browser tab.
|
|
4838
|
+
*/
|
|
4839
|
+
export declare enum SiteExternalLinksTarget {
|
|
4840
|
+
Self = "self",
|
|
4841
|
+
Blank = "blank"
|
|
4842
|
+
}
|
|
4813
4843
|
export interface SiteCustomizationSettings {
|
|
4814
4844
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
4815
4845
|
title?: SiteTitle;
|
|
@@ -4928,6 +4958,14 @@ export interface SiteCustomizationSettings {
|
|
|
4928
4958
|
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
|
|
4929
4959
|
showEditLink: boolean;
|
|
4930
4960
|
};
|
|
4961
|
+
externalLinks: {
|
|
4962
|
+
/**
|
|
4963
|
+
* How external links should open when clicked.
|
|
4964
|
+
* - `self`: External links open in the current tab.
|
|
4965
|
+
* - `blank`: External links open in a new browser tab.
|
|
4966
|
+
*/
|
|
4967
|
+
target: SiteExternalLinksTarget;
|
|
4968
|
+
};
|
|
4931
4969
|
pagination: {
|
|
4932
4970
|
/** Whether the pagination navigation should be displayed on pages. */
|
|
4933
4971
|
enabled: boolean;
|
|
@@ -5016,12 +5054,12 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
|
|
|
5016
5054
|
/** Private key used to sign JWT tokens. */
|
|
5017
5055
|
privateKey: string;
|
|
5018
5056
|
/**
|
|
5019
|
-
* URL to redirect to when the
|
|
5057
|
+
* URL to redirect to when the authenticated access secret is invalid.
|
|
5020
5058
|
* @format uri
|
|
5021
5059
|
*/
|
|
5022
5060
|
fallbackURL?: string;
|
|
5023
5061
|
/**
|
|
5024
|
-
* Name of the
|
|
5062
|
+
* Name of the authenticated access integration installed on the site (if any).
|
|
5025
5063
|
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
5026
5064
|
*/
|
|
5027
5065
|
integration?: string;
|
|
@@ -6041,7 +6079,7 @@ export interface PublishedSiteContent {
|
|
|
6041
6079
|
shareKey?: string;
|
|
6042
6080
|
/** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
|
|
6043
6081
|
complete: boolean;
|
|
6044
|
-
/** Context returned only for a
|
|
6082
|
+
/** Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation). */
|
|
6045
6083
|
contextId?: string;
|
|
6046
6084
|
/** The canonical URL of the resolution. */
|
|
6047
6085
|
canonicalUrl: string;
|
|
@@ -6053,7 +6091,7 @@ export type PublishedSiteContentLookup = {
|
|
|
6053
6091
|
} | PublishedSiteContent;
|
|
6054
6092
|
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
6055
6093
|
export interface SiteVisitorPayload {
|
|
6056
|
-
/** JWT token generated for a
|
|
6094
|
+
/** JWT token generated for a authenticated access session. */
|
|
6057
6095
|
jwtToken?: string;
|
|
6058
6096
|
unsignedClaims?: PlainObject;
|
|
6059
6097
|
}
|
|
@@ -11986,6 +12024,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11986
12024
|
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
|
|
11987
12025
|
showEditLink: boolean | null;
|
|
11988
12026
|
};
|
|
12027
|
+
externalLinks?: {
|
|
12028
|
+
/** How external links should open. Set to null to reset the override. */
|
|
12029
|
+
target: SiteExternalLinksTarget | null;
|
|
12030
|
+
};
|
|
11989
12031
|
pagination?: {
|
|
11990
12032
|
/** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
|
|
11991
12033
|
enabled: boolean | null;
|
|
@@ -12144,6 +12186,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12144
12186
|
/** Tools provided to the AI */
|
|
12145
12187
|
tools?: AIToolCapabilities;
|
|
12146
12188
|
}, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
12189
|
+
/**
|
|
12190
|
+
* @description Experimental operation to get an existing AI response in a site.
|
|
12191
|
+
*
|
|
12192
|
+
* @tags sites
|
|
12193
|
+
* @name StreamExistingAiResponseInSite
|
|
12194
|
+
* @summary Get an existing AI response in a site
|
|
12195
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}
|
|
12196
|
+
* @secure
|
|
12197
|
+
*/
|
|
12198
|
+
streamExistingAiResponseInSite: (organizationId: string, siteId: string, responseId: string, params?: RequestParams) => EventIterator<AIStreamResponse>;
|
|
12147
12199
|
/**
|
|
12148
12200
|
* No description
|
|
12149
12201
|
*
|
|
@@ -12456,10 +12508,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12456
12508
|
getPublishedContentByUrl: (query: {
|
|
12457
12509
|
/** URL to resolve */
|
|
12458
12510
|
url: URL;
|
|
12459
|
-
/** JWT token generated for a
|
|
12511
|
+
/** JWT token generated for a authenticated access session */
|
|
12460
12512
|
visitorAuthToken?: string;
|
|
12461
12513
|
/**
|
|
12462
|
-
* When true redirects the user to the authentication/fallback URL if the
|
|
12514
|
+
* When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
12463
12515
|
* @default false
|
|
12464
12516
|
*/
|
|
12465
12517
|
redirectOnError?: boolean;
|
|
@@ -12483,7 +12535,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12483
12535
|
/** URL to resolve */
|
|
12484
12536
|
url: URL;
|
|
12485
12537
|
/**
|
|
12486
|
-
* When true redirects the user to the authentication/fallback URL if the
|
|
12538
|
+
* When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
12487
12539
|
* @default false
|
|
12488
12540
|
*/
|
|
12489
12541
|
redirectOnError?: boolean;
|
package/dist/index.cjs
CHANGED
|
@@ -249,6 +249,7 @@ __export(src_exports, {
|
|
|
249
249
|
SiteAdsTopic: () => SiteAdsTopic,
|
|
250
250
|
SiteAgentsContext: () => SiteAgentsContext,
|
|
251
251
|
SiteCustomizationFeature: () => SiteCustomizationFeature,
|
|
252
|
+
SiteExternalLinksTarget: () => SiteExternalLinksTarget,
|
|
252
253
|
SiteFeatureKey: () => SiteFeatureKey,
|
|
253
254
|
SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
|
|
254
255
|
SiteInsightsEventType: () => SiteInsightsEventType,
|
|
@@ -265,13 +266,14 @@ __export(src_exports, {
|
|
|
265
266
|
SpaceEditMode: () => SpaceEditMode,
|
|
266
267
|
StorageUploadKind: () => StorageUploadKind,
|
|
267
268
|
TeamMemberRole: () => TeamMemberRole,
|
|
269
|
+
TextAlignment: () => TextAlignment,
|
|
268
270
|
TranslationLanguage: () => TranslationLanguage
|
|
269
271
|
});
|
|
270
272
|
module.exports = __toCommonJS(src_exports);
|
|
271
273
|
|
|
272
274
|
// package.json
|
|
273
275
|
var name = "@gitbook/api";
|
|
274
|
-
var version = "0.
|
|
276
|
+
var version = "0.123.0";
|
|
275
277
|
|
|
276
278
|
// src/client.ts
|
|
277
279
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -400,6 +402,12 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
400
402
|
MemberRole2["Read"] = "read";
|
|
401
403
|
return MemberRole2;
|
|
402
404
|
})(MemberRole || {});
|
|
405
|
+
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
406
|
+
TextAlignment2["Start"] = "start";
|
|
407
|
+
TextAlignment2["Center"] = "center";
|
|
408
|
+
TextAlignment2["End"] = "end";
|
|
409
|
+
return TextAlignment2;
|
|
410
|
+
})(TextAlignment || {});
|
|
403
411
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
404
412
|
TranslationLanguage2["En"] = "en";
|
|
405
413
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -839,6 +847,11 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
839
847
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
840
848
|
return CustomizationThemeMode2;
|
|
841
849
|
})(CustomizationThemeMode || {});
|
|
850
|
+
var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
851
|
+
SiteExternalLinksTarget2["Self"] = "self";
|
|
852
|
+
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
853
|
+
return SiteExternalLinksTarget2;
|
|
854
|
+
})(SiteExternalLinksTarget || {});
|
|
842
855
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
843
856
|
AIMessageRole2["User"] = "user";
|
|
844
857
|
AIMessageRole2["Assistant"] = "assistant";
|
|
@@ -3421,6 +3434,12 @@ var Api = class extends HttpClient {
|
|
|
3421
3434
|
type: "application/json" /* Json */,
|
|
3422
3435
|
...params
|
|
3423
3436
|
}),
|
|
3437
|
+
streamExistingAiResponseInSite: (organizationId, siteId, responseId, params = {}) => this.streamRequest({
|
|
3438
|
+
path: `/orgs/${organizationId}/sites/${siteId}/ai/response/${responseId}`,
|
|
3439
|
+
method: "GET",
|
|
3440
|
+
secure: true,
|
|
3441
|
+
...params
|
|
3442
|
+
}),
|
|
3424
3443
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
3425
3444
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
3426
3445
|
method: "POST",
|
|
@@ -3742,6 +3761,7 @@ var GitBookAPI = class extends Api {
|
|
|
3742
3761
|
SiteAdsTopic,
|
|
3743
3762
|
SiteAgentsContext,
|
|
3744
3763
|
SiteCustomizationFeature,
|
|
3764
|
+
SiteExternalLinksTarget,
|
|
3745
3765
|
SiteFeatureKey,
|
|
3746
3766
|
SiteInsightsAdPlacement,
|
|
3747
3767
|
SiteInsightsEventType,
|
|
@@ -3758,5 +3778,6 @@ var GitBookAPI = class extends Api {
|
|
|
3758
3778
|
SpaceEditMode,
|
|
3759
3779
|
StorageUploadKind,
|
|
3760
3780
|
TeamMemberRole,
|
|
3781
|
+
TextAlignment,
|
|
3761
3782
|
TranslationLanguage
|
|
3762
3783
|
});
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.123.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -301,6 +301,12 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
301
301
|
MemberRole2["Read"] = "read";
|
|
302
302
|
return MemberRole2;
|
|
303
303
|
})(MemberRole || {});
|
|
304
|
+
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
305
|
+
TextAlignment2["Start"] = "start";
|
|
306
|
+
TextAlignment2["Center"] = "center";
|
|
307
|
+
TextAlignment2["End"] = "end";
|
|
308
|
+
return TextAlignment2;
|
|
309
|
+
})(TextAlignment || {});
|
|
304
310
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
305
311
|
TranslationLanguage2["En"] = "en";
|
|
306
312
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -740,6 +746,11 @@ var CustomizationThemeMode = /* @__PURE__ */ ((CustomizationThemeMode2) => {
|
|
|
740
746
|
CustomizationThemeMode2["Dark"] = "dark";
|
|
741
747
|
return CustomizationThemeMode2;
|
|
742
748
|
})(CustomizationThemeMode || {});
|
|
749
|
+
var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
750
|
+
SiteExternalLinksTarget2["Self"] = "self";
|
|
751
|
+
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
752
|
+
return SiteExternalLinksTarget2;
|
|
753
|
+
})(SiteExternalLinksTarget || {});
|
|
743
754
|
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
744
755
|
AIMessageRole2["User"] = "user";
|
|
745
756
|
AIMessageRole2["Assistant"] = "assistant";
|
|
@@ -3322,6 +3333,12 @@ var Api = class extends HttpClient {
|
|
|
3322
3333
|
type: "application/json" /* Json */,
|
|
3323
3334
|
...params
|
|
3324
3335
|
}),
|
|
3336
|
+
streamExistingAiResponseInSite: (organizationId, siteId, responseId, params = {}) => this.streamRequest({
|
|
3337
|
+
path: `/orgs/${organizationId}/sites/${siteId}/ai/response/${responseId}`,
|
|
3338
|
+
method: "GET",
|
|
3339
|
+
secure: true,
|
|
3340
|
+
...params
|
|
3341
|
+
}),
|
|
3325
3342
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
3326
3343
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
3327
3344
|
method: "POST",
|
|
@@ -3642,6 +3659,7 @@ export {
|
|
|
3642
3659
|
SiteAdsTopic,
|
|
3643
3660
|
SiteAgentsContext,
|
|
3644
3661
|
SiteCustomizationFeature,
|
|
3662
|
+
SiteExternalLinksTarget,
|
|
3645
3663
|
SiteFeatureKey,
|
|
3646
3664
|
SiteInsightsAdPlacement,
|
|
3647
3665
|
SiteInsightsEventType,
|
|
@@ -3658,5 +3676,6 @@ export {
|
|
|
3658
3676
|
SpaceEditMode,
|
|
3659
3677
|
StorageUploadKind,
|
|
3660
3678
|
TeamMemberRole,
|
|
3679
|
+
TextAlignment,
|
|
3661
3680
|
TranslationLanguage
|
|
3662
3681
|
};
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -14373,6 +14373,29 @@
|
|
|
14373
14373
|
"showEditLink"
|
|
14374
14374
|
]
|
|
14375
14375
|
},
|
|
14376
|
+
"externalLinks": {
|
|
14377
|
+
"type": "object",
|
|
14378
|
+
"properties": {
|
|
14379
|
+
"target": {
|
|
14380
|
+
"description": "How external links should open. Set to null to reset the override.",
|
|
14381
|
+
"oneOf": [
|
|
14382
|
+
{
|
|
14383
|
+
"$ref": "#/components/schemas/SiteExternalLinksTarget"
|
|
14384
|
+
},
|
|
14385
|
+
{
|
|
14386
|
+
"type": "string",
|
|
14387
|
+
"nullable": true,
|
|
14388
|
+
"enum": [
|
|
14389
|
+
null
|
|
14390
|
+
]
|
|
14391
|
+
}
|
|
14392
|
+
]
|
|
14393
|
+
}
|
|
14394
|
+
},
|
|
14395
|
+
"required": [
|
|
14396
|
+
"target"
|
|
14397
|
+
]
|
|
14398
|
+
},
|
|
14376
14399
|
"pagination": {
|
|
14377
14400
|
"type": "object",
|
|
14378
14401
|
"properties": {
|
|
@@ -14808,6 +14831,51 @@
|
|
|
14808
14831
|
}
|
|
14809
14832
|
}
|
|
14810
14833
|
},
|
|
14834
|
+
"/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}": {
|
|
14835
|
+
"get": {
|
|
14836
|
+
"operationId": "streamExistingAIResponseInSite",
|
|
14837
|
+
"summary": "Get an existing AI response in a site",
|
|
14838
|
+
"description": "Experimental operation to get an existing AI response in a site.\n",
|
|
14839
|
+
"tags": [
|
|
14840
|
+
"sites"
|
|
14841
|
+
],
|
|
14842
|
+
"x-internal": true,
|
|
14843
|
+
"security": [
|
|
14844
|
+
{
|
|
14845
|
+
"user": []
|
|
14846
|
+
}
|
|
14847
|
+
],
|
|
14848
|
+
"parameters": [
|
|
14849
|
+
{
|
|
14850
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14851
|
+
},
|
|
14852
|
+
{
|
|
14853
|
+
"$ref": "#/components/parameters/siteId"
|
|
14854
|
+
},
|
|
14855
|
+
{
|
|
14856
|
+
"name": "responseId",
|
|
14857
|
+
"in": "path",
|
|
14858
|
+
"required": true,
|
|
14859
|
+
"description": "The unique id of the AI response",
|
|
14860
|
+
"schema": {
|
|
14861
|
+
"type": "string"
|
|
14862
|
+
}
|
|
14863
|
+
}
|
|
14864
|
+
],
|
|
14865
|
+
"responses": {
|
|
14866
|
+
"200": {
|
|
14867
|
+
"description": "OK",
|
|
14868
|
+
"content": {
|
|
14869
|
+
"text/event-stream": {
|
|
14870
|
+
"schema": {
|
|
14871
|
+
"$ref": "#/components/schemas/AIStreamResponse"
|
|
14872
|
+
}
|
|
14873
|
+
}
|
|
14874
|
+
}
|
|
14875
|
+
}
|
|
14876
|
+
}
|
|
14877
|
+
}
|
|
14878
|
+
},
|
|
14811
14879
|
"/orgs/{organizationId}/sites/{siteId}/insights/events": {
|
|
14812
14880
|
"post": {
|
|
14813
14881
|
"operationId": "trackEventsInSiteById",
|
|
@@ -15769,7 +15837,7 @@
|
|
|
15769
15837
|
"name": "visitorAuthToken",
|
|
15770
15838
|
"in": "query",
|
|
15771
15839
|
"required": false,
|
|
15772
|
-
"description": "JWT token generated for a
|
|
15840
|
+
"description": "JWT token generated for a authenticated access session",
|
|
15773
15841
|
"schema": {
|
|
15774
15842
|
"type": "string"
|
|
15775
15843
|
}
|
|
@@ -15778,7 +15846,7 @@
|
|
|
15778
15846
|
"name": "redirectOnError",
|
|
15779
15847
|
"in": "query",
|
|
15780
15848
|
"required": false,
|
|
15781
|
-
"description": "When true redirects the user to the authentication/fallback URL if the
|
|
15849
|
+
"description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
|
|
15782
15850
|
"schema": {
|
|
15783
15851
|
"type": "boolean",
|
|
15784
15852
|
"default": false
|
|
@@ -15821,7 +15889,7 @@
|
|
|
15821
15889
|
},
|
|
15822
15890
|
"redirectOnError": {
|
|
15823
15891
|
"type": "boolean",
|
|
15824
|
-
"description": "When true redirects the user to the authentication/fallback URL if the
|
|
15892
|
+
"description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
|
|
15825
15893
|
"default": false
|
|
15826
15894
|
},
|
|
15827
15895
|
"visitor": {
|
|
@@ -16642,11 +16710,11 @@
|
|
|
16642
16710
|
},
|
|
16643
16711
|
"VisitorAuthCustomBackend": {
|
|
16644
16712
|
"type": "object",
|
|
16645
|
-
"title": "Custom backend for
|
|
16713
|
+
"title": "Custom backend for authenticated access",
|
|
16646
16714
|
"properties": {
|
|
16647
16715
|
"backend": {
|
|
16648
16716
|
"type": "string",
|
|
16649
|
-
"description": "Custom backend for
|
|
16717
|
+
"description": "Custom backend for authenticated access",
|
|
16650
16718
|
"enum": [
|
|
16651
16719
|
"custom"
|
|
16652
16720
|
]
|
|
@@ -16658,11 +16726,11 @@
|
|
|
16658
16726
|
},
|
|
16659
16727
|
"VisitorAuthIntegrationBackend": {
|
|
16660
16728
|
"type": "object",
|
|
16661
|
-
"title": "Integration backend for
|
|
16729
|
+
"title": "Integration backend for authenticated access",
|
|
16662
16730
|
"properties": {
|
|
16663
16731
|
"backend": {
|
|
16664
16732
|
"type": "string",
|
|
16665
|
-
"description": "Integration as backend for
|
|
16733
|
+
"description": "Integration as backend for authenticated access",
|
|
16666
16734
|
"enum": [
|
|
16667
16735
|
"integration"
|
|
16668
16736
|
]
|
|
@@ -16687,7 +16755,7 @@
|
|
|
16687
16755
|
"properties": {
|
|
16688
16756
|
"integration": {
|
|
16689
16757
|
"type": "string",
|
|
16690
|
-
"description": "Name of integration being used as the backend for
|
|
16758
|
+
"description": "Name of integration being used as the backend for authenticated access"
|
|
16691
16759
|
}
|
|
16692
16760
|
},
|
|
16693
16761
|
"required": [
|
|
@@ -18330,7 +18398,11 @@
|
|
|
18330
18398
|
},
|
|
18331
18399
|
"data": {
|
|
18332
18400
|
"type": "object",
|
|
18333
|
-
"properties": {
|
|
18401
|
+
"properties": {
|
|
18402
|
+
"align": {
|
|
18403
|
+
"$ref": "#/components/schemas/TextAlignment"
|
|
18404
|
+
}
|
|
18405
|
+
},
|
|
18334
18406
|
"additionalProperties": false
|
|
18335
18407
|
}
|
|
18336
18408
|
},
|
|
@@ -18371,6 +18443,14 @@
|
|
|
18371
18443
|
}
|
|
18372
18444
|
]
|
|
18373
18445
|
},
|
|
18446
|
+
"TextAlignment": {
|
|
18447
|
+
"type": "string",
|
|
18448
|
+
"enum": [
|
|
18449
|
+
"start",
|
|
18450
|
+
"center",
|
|
18451
|
+
"end"
|
|
18452
|
+
]
|
|
18453
|
+
},
|
|
18374
18454
|
"DocumentBlockHeading": {
|
|
18375
18455
|
"type": "object",
|
|
18376
18456
|
"properties": {
|
|
@@ -18410,6 +18490,9 @@
|
|
|
18410
18490
|
"id": {
|
|
18411
18491
|
"type": "string",
|
|
18412
18492
|
"pattern": "^[-a-z0-9.+_]+$"
|
|
18493
|
+
},
|
|
18494
|
+
"align": {
|
|
18495
|
+
"$ref": "#/components/schemas/TextAlignment"
|
|
18413
18496
|
}
|
|
18414
18497
|
}
|
|
18415
18498
|
},
|
|
@@ -20939,6 +21022,33 @@
|
|
|
20939
21022
|
},
|
|
20940
21023
|
{
|
|
20941
21024
|
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
21025
|
+
},
|
|
21026
|
+
{
|
|
21027
|
+
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
21028
|
+
},
|
|
21029
|
+
{
|
|
21030
|
+
"$ref": "#/components/schemas/DocumentBlockHint"
|
|
21031
|
+
},
|
|
21032
|
+
{
|
|
21033
|
+
"$ref": "#/components/schemas/DocumentBlockContentRef"
|
|
21034
|
+
},
|
|
21035
|
+
{
|
|
21036
|
+
"$ref": "#/components/schemas/DocumentBlockDrawing"
|
|
21037
|
+
},
|
|
21038
|
+
{
|
|
21039
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
21040
|
+
},
|
|
21041
|
+
{
|
|
21042
|
+
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
21043
|
+
},
|
|
21044
|
+
{
|
|
21045
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
21046
|
+
},
|
|
21047
|
+
{
|
|
21048
|
+
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
21049
|
+
},
|
|
21050
|
+
{
|
|
21051
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
20942
21052
|
}
|
|
20943
21053
|
]
|
|
20944
21054
|
}
|
|
@@ -21188,6 +21298,9 @@
|
|
|
21188
21298
|
"primary",
|
|
21189
21299
|
"secondary"
|
|
21190
21300
|
]
|
|
21301
|
+
},
|
|
21302
|
+
"icon": {
|
|
21303
|
+
"$ref": "#/components/schemas/Icon"
|
|
21191
21304
|
}
|
|
21192
21305
|
},
|
|
21193
21306
|
"required": [
|
|
@@ -24858,6 +24971,10 @@
|
|
|
24858
24971
|
"RevisionSemanticChanges": {
|
|
24859
24972
|
"type": "object",
|
|
24860
24973
|
"properties": {
|
|
24974
|
+
"mergedFrom": {
|
|
24975
|
+
"description": "The change request object that initiated the changes in the case of a merge revision.",
|
|
24976
|
+
"$ref": "#/components/schemas/ChangeRequest"
|
|
24977
|
+
},
|
|
24861
24978
|
"changes": {
|
|
24862
24979
|
"type": "array",
|
|
24863
24980
|
"items": {
|
|
@@ -26449,7 +26566,7 @@
|
|
|
26449
26566
|
},
|
|
26450
26567
|
{
|
|
26451
26568
|
"type": "object",
|
|
26452
|
-
"description": "Common properties for all events related to
|
|
26569
|
+
"description": "Common properties for all events related to authenticated access from an installation",
|
|
26453
26570
|
"properties": {
|
|
26454
26571
|
"type": {
|
|
26455
26572
|
"type": "string",
|
|
@@ -29497,6 +29614,68 @@
|
|
|
29497
29614
|
}
|
|
29498
29615
|
]
|
|
29499
29616
|
},
|
|
29617
|
+
"SubscriptionChanges": {
|
|
29618
|
+
"type": "object",
|
|
29619
|
+
"description": "Changes to apply during a subscription upgrade or downgrade",
|
|
29620
|
+
"properties": {
|
|
29621
|
+
"removeMembers": {
|
|
29622
|
+
"description": "A list of member identifiers to be removed",
|
|
29623
|
+
"type": "array",
|
|
29624
|
+
"items": {
|
|
29625
|
+
"type": "string"
|
|
29626
|
+
}
|
|
29627
|
+
},
|
|
29628
|
+
"updateSites": {
|
|
29629
|
+
"description": "A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.\n",
|
|
29630
|
+
"type": "array",
|
|
29631
|
+
"items": {
|
|
29632
|
+
"oneOf": [
|
|
29633
|
+
{
|
|
29634
|
+
"type": "object",
|
|
29635
|
+
"properties": {
|
|
29636
|
+
"id": {
|
|
29637
|
+
"description": "The site identifier",
|
|
29638
|
+
"type": "string"
|
|
29639
|
+
},
|
|
29640
|
+
"type": {
|
|
29641
|
+
"description": "The site type to migrate to",
|
|
29642
|
+
"$ref": "#/components/schemas/SiteType"
|
|
29643
|
+
}
|
|
29644
|
+
},
|
|
29645
|
+
"required": [
|
|
29646
|
+
"id",
|
|
29647
|
+
"type"
|
|
29648
|
+
]
|
|
29649
|
+
},
|
|
29650
|
+
{
|
|
29651
|
+
"type": "object",
|
|
29652
|
+
"properties": {
|
|
29653
|
+
"id": {
|
|
29654
|
+
"description": "The site identifier",
|
|
29655
|
+
"type": "string"
|
|
29656
|
+
},
|
|
29657
|
+
"isPublished": {
|
|
29658
|
+
"description": "Can be set to `false` to unpublish a site",
|
|
29659
|
+
"type": "boolean",
|
|
29660
|
+
"enum": [
|
|
29661
|
+
false
|
|
29662
|
+
]
|
|
29663
|
+
}
|
|
29664
|
+
},
|
|
29665
|
+
"required": [
|
|
29666
|
+
"id",
|
|
29667
|
+
"isPublished"
|
|
29668
|
+
]
|
|
29669
|
+
}
|
|
29670
|
+
]
|
|
29671
|
+
}
|
|
29672
|
+
}
|
|
29673
|
+
},
|
|
29674
|
+
"required": [
|
|
29675
|
+
"removeMembers",
|
|
29676
|
+
"updateSites"
|
|
29677
|
+
]
|
|
29678
|
+
},
|
|
29500
29679
|
"UpgradeOrganizationBilling": {
|
|
29501
29680
|
"type": "object",
|
|
29502
29681
|
"properties": {
|
|
@@ -29506,9 +29685,13 @@
|
|
|
29506
29685
|
"interval": {
|
|
29507
29686
|
"$ref": "#/components/schemas/BillingInterval"
|
|
29508
29687
|
},
|
|
29688
|
+
"changes": {
|
|
29689
|
+
"$ref": "#/components/schemas/SubscriptionChanges"
|
|
29690
|
+
},
|
|
29509
29691
|
"exclude": {
|
|
29692
|
+
"deprecated": true,
|
|
29510
29693
|
"type": "object",
|
|
29511
|
-
"description": "
|
|
29694
|
+
"description": "Deprecated. Use `changes` instead.",
|
|
29512
29695
|
"minProperties": 1,
|
|
29513
29696
|
"properties": {
|
|
29514
29697
|
"members": {
|
|
@@ -29739,66 +29922,7 @@
|
|
|
29739
29922
|
]
|
|
29740
29923
|
},
|
|
29741
29924
|
"changes": {
|
|
29742
|
-
"
|
|
29743
|
-
"description": "Changes to apply to the organization and its sites before upgrading",
|
|
29744
|
-
"properties": {
|
|
29745
|
-
"removeMembers": {
|
|
29746
|
-
"description": "A list of member identifiers to be removed",
|
|
29747
|
-
"type": "array",
|
|
29748
|
-
"items": {
|
|
29749
|
-
"type": "string"
|
|
29750
|
-
}
|
|
29751
|
-
},
|
|
29752
|
-
"updateSites": {
|
|
29753
|
-
"description": "A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.\n",
|
|
29754
|
-
"type": "array",
|
|
29755
|
-
"items": {
|
|
29756
|
-
"oneOf": [
|
|
29757
|
-
{
|
|
29758
|
-
"type": "object",
|
|
29759
|
-
"properties": {
|
|
29760
|
-
"id": {
|
|
29761
|
-
"description": "The site identifier",
|
|
29762
|
-
"type": "string"
|
|
29763
|
-
},
|
|
29764
|
-
"type": {
|
|
29765
|
-
"description": "The site type to migrate to",
|
|
29766
|
-
"$ref": "#/components/schemas/SiteType"
|
|
29767
|
-
}
|
|
29768
|
-
},
|
|
29769
|
-
"required": [
|
|
29770
|
-
"id",
|
|
29771
|
-
"type"
|
|
29772
|
-
]
|
|
29773
|
-
},
|
|
29774
|
-
{
|
|
29775
|
-
"type": "object",
|
|
29776
|
-
"properties": {
|
|
29777
|
-
"id": {
|
|
29778
|
-
"description": "The site identifier",
|
|
29779
|
-
"type": "string"
|
|
29780
|
-
},
|
|
29781
|
-
"isPublished": {
|
|
29782
|
-
"description": "Can be set to `false` to unpublish a site",
|
|
29783
|
-
"type": "boolean",
|
|
29784
|
-
"enum": [
|
|
29785
|
-
false
|
|
29786
|
-
]
|
|
29787
|
-
}
|
|
29788
|
-
},
|
|
29789
|
-
"required": [
|
|
29790
|
-
"id",
|
|
29791
|
-
"isPublished"
|
|
29792
|
-
]
|
|
29793
|
-
}
|
|
29794
|
-
]
|
|
29795
|
-
}
|
|
29796
|
-
}
|
|
29797
|
-
},
|
|
29798
|
-
"required": [
|
|
29799
|
-
"removeMembers",
|
|
29800
|
-
"updateSites"
|
|
29801
|
-
]
|
|
29925
|
+
"$ref": "#/components/schemas/SubscriptionChanges"
|
|
29802
29926
|
}
|
|
29803
29927
|
},
|
|
29804
29928
|
"required": [
|
|
@@ -31788,6 +31912,10 @@
|
|
|
31788
31912
|
"items": {
|
|
31789
31913
|
"$ref": "#/components/schemas/CustomizationContentLink"
|
|
31790
31914
|
}
|
|
31915
|
+
},
|
|
31916
|
+
"condition": {
|
|
31917
|
+
"description": "Conditional expression used to evaluate whether the header item should be shown to the site's visitor.",
|
|
31918
|
+
"$ref": "#/components/schemas/Condition"
|
|
31791
31919
|
}
|
|
31792
31920
|
},
|
|
31793
31921
|
"required": [
|
|
@@ -31858,6 +31986,14 @@
|
|
|
31858
31986
|
"dark"
|
|
31859
31987
|
]
|
|
31860
31988
|
},
|
|
31989
|
+
"SiteExternalLinksTarget": {
|
|
31990
|
+
"type": "string",
|
|
31991
|
+
"description": "How external links should open when clicked.\n- `self`: External links open in the current tab.\n- `blank`: External links open in a new browser tab.\n",
|
|
31992
|
+
"enum": [
|
|
31993
|
+
"self",
|
|
31994
|
+
"blank"
|
|
31995
|
+
]
|
|
31996
|
+
},
|
|
31861
31997
|
"SiteCustomizationSettings": {
|
|
31862
31998
|
"type": "object",
|
|
31863
31999
|
"properties": {
|
|
@@ -32110,6 +32246,17 @@
|
|
|
32110
32246
|
"showEditLink"
|
|
32111
32247
|
]
|
|
32112
32248
|
},
|
|
32249
|
+
"externalLinks": {
|
|
32250
|
+
"type": "object",
|
|
32251
|
+
"properties": {
|
|
32252
|
+
"target": {
|
|
32253
|
+
"$ref": "#/components/schemas/SiteExternalLinksTarget"
|
|
32254
|
+
}
|
|
32255
|
+
},
|
|
32256
|
+
"required": [
|
|
32257
|
+
"target"
|
|
32258
|
+
]
|
|
32259
|
+
},
|
|
32113
32260
|
"pagination": {
|
|
32114
32261
|
"type": "object",
|
|
32115
32262
|
"properties": {
|
|
@@ -32176,6 +32323,7 @@
|
|
|
32176
32323
|
"aiSearch",
|
|
32177
32324
|
"advancedCustomization",
|
|
32178
32325
|
"trademark",
|
|
32326
|
+
"externalLinks",
|
|
32179
32327
|
"pagination",
|
|
32180
32328
|
"git",
|
|
32181
32329
|
"privacyPolicy",
|
|
@@ -32396,11 +32544,11 @@
|
|
|
32396
32544
|
"fallbackURL": {
|
|
32397
32545
|
"type": "string",
|
|
32398
32546
|
"format": "uri",
|
|
32399
|
-
"description": "URL to redirect to when the
|
|
32547
|
+
"description": "URL to redirect to when the authenticated access secret is invalid."
|
|
32400
32548
|
},
|
|
32401
32549
|
"integration": {
|
|
32402
32550
|
"type": "string",
|
|
32403
|
-
"description": "Name of the
|
|
32551
|
+
"description": "Name of the authenticated access integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
|
|
32404
32552
|
}
|
|
32405
32553
|
},
|
|
32406
32554
|
"required": [
|
|
@@ -36437,7 +36585,7 @@
|
|
|
36437
36585
|
},
|
|
36438
36586
|
"contextId": {
|
|
36439
36587
|
"type": "string",
|
|
36440
|
-
"description": "Context returned only for a
|
|
36588
|
+
"description": "Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation)."
|
|
36441
36589
|
},
|
|
36442
36590
|
"canonicalUrl": {
|
|
36443
36591
|
"type": "string",
|
|
@@ -36492,7 +36640,7 @@
|
|
|
36492
36640
|
"properties": {
|
|
36493
36641
|
"jwtToken": {
|
|
36494
36642
|
"type": "string",
|
|
36495
|
-
"description": "JWT token generated for a
|
|
36643
|
+
"description": "JWT token generated for a authenticated access session."
|
|
36496
36644
|
},
|
|
36497
36645
|
"unsignedClaims": {
|
|
36498
36646
|
"$ref": "#/components/schemas/PlainObject"
|
package/spec/openapi.yaml
CHANGED
|
@@ -8108,6 +8108,19 @@ paths:
|
|
|
8108
8108
|
nullable: true
|
|
8109
8109
|
required:
|
|
8110
8110
|
- showEditLink
|
|
8111
|
+
externalLinks:
|
|
8112
|
+
type: object
|
|
8113
|
+
properties:
|
|
8114
|
+
target:
|
|
8115
|
+
description: How external links should open. Set to null to reset the override.
|
|
8116
|
+
oneOf:
|
|
8117
|
+
- $ref: "#/components/schemas/SiteExternalLinksTarget"
|
|
8118
|
+
- type: string
|
|
8119
|
+
nullable: true
|
|
8120
|
+
enum:
|
|
8121
|
+
- null
|
|
8122
|
+
required:
|
|
8123
|
+
- target
|
|
8111
8124
|
pagination:
|
|
8112
8125
|
type: object
|
|
8113
8126
|
properties:
|
|
@@ -8354,6 +8367,33 @@ paths:
|
|
|
8354
8367
|
text/event-stream:
|
|
8355
8368
|
schema:
|
|
8356
8369
|
$ref: "#/components/schemas/AIStreamResponse"
|
|
8370
|
+
"/orgs/{organizationId}/sites/{siteId}/ai/response/{responseId}":
|
|
8371
|
+
get:
|
|
8372
|
+
operationId: streamExistingAIResponseInSite
|
|
8373
|
+
summary: Get an existing AI response in a site
|
|
8374
|
+
description: |
|
|
8375
|
+
Experimental operation to get an existing AI response in a site.
|
|
8376
|
+
tags:
|
|
8377
|
+
- sites
|
|
8378
|
+
x-internal: true
|
|
8379
|
+
security:
|
|
8380
|
+
- user: []
|
|
8381
|
+
parameters:
|
|
8382
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8383
|
+
- $ref: "#/components/parameters/siteId"
|
|
8384
|
+
- name: responseId
|
|
8385
|
+
in: path
|
|
8386
|
+
required: true
|
|
8387
|
+
description: The unique id of the AI response
|
|
8388
|
+
schema:
|
|
8389
|
+
type: string
|
|
8390
|
+
responses:
|
|
8391
|
+
"200":
|
|
8392
|
+
description: OK
|
|
8393
|
+
content:
|
|
8394
|
+
text/event-stream:
|
|
8395
|
+
schema:
|
|
8396
|
+
$ref: "#/components/schemas/AIStreamResponse"
|
|
8357
8397
|
"/orgs/{organizationId}/sites/{siteId}/insights/events":
|
|
8358
8398
|
post:
|
|
8359
8399
|
operationId: trackEventsInSiteById
|
|
@@ -8903,13 +8943,13 @@ paths:
|
|
|
8903
8943
|
- name: visitorAuthToken
|
|
8904
8944
|
in: query
|
|
8905
8945
|
required: false
|
|
8906
|
-
description: JWT token generated for a
|
|
8946
|
+
description: JWT token generated for a authenticated access session
|
|
8907
8947
|
schema:
|
|
8908
8948
|
type: string
|
|
8909
8949
|
- name: redirectOnError
|
|
8910
8950
|
in: query
|
|
8911
8951
|
required: false
|
|
8912
|
-
description: When true redirects the user to the authentication/fallback URL if the
|
|
8952
|
+
description: When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
8913
8953
|
schema:
|
|
8914
8954
|
type: boolean
|
|
8915
8955
|
default: false
|
|
@@ -8940,7 +8980,7 @@ paths:
|
|
|
8940
8980
|
$ref: "#/components/schemas/URL"
|
|
8941
8981
|
redirectOnError:
|
|
8942
8982
|
type: boolean
|
|
8943
|
-
description: When true redirects the user to the authentication/fallback URL if the
|
|
8983
|
+
description: When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
8944
8984
|
default: false
|
|
8945
8985
|
visitor:
|
|
8946
8986
|
$ref: "#/components/schemas/SiteVisitorPayload"
|
|
@@ -9564,22 +9604,22 @@ components:
|
|
|
9564
9604
|
$ref: "#/components/schemas/Timestamp"
|
|
9565
9605
|
VisitorAuthCustomBackend:
|
|
9566
9606
|
type: object
|
|
9567
|
-
title: Custom backend for
|
|
9607
|
+
title: Custom backend for authenticated access
|
|
9568
9608
|
properties:
|
|
9569
9609
|
backend:
|
|
9570
9610
|
type: string
|
|
9571
|
-
description: Custom backend for
|
|
9611
|
+
description: Custom backend for authenticated access
|
|
9572
9612
|
enum:
|
|
9573
9613
|
- custom
|
|
9574
9614
|
required:
|
|
9575
9615
|
- backend
|
|
9576
9616
|
VisitorAuthIntegrationBackend:
|
|
9577
9617
|
type: object
|
|
9578
|
-
title: Integration backend for
|
|
9618
|
+
title: Integration backend for authenticated access
|
|
9579
9619
|
properties:
|
|
9580
9620
|
backend:
|
|
9581
9621
|
type: string
|
|
9582
|
-
description: Integration as backend for
|
|
9622
|
+
description: Integration as backend for authenticated access
|
|
9583
9623
|
enum:
|
|
9584
9624
|
- integration
|
|
9585
9625
|
required:
|
|
@@ -9593,7 +9633,7 @@ components:
|
|
|
9593
9633
|
properties:
|
|
9594
9634
|
integration:
|
|
9595
9635
|
type: string
|
|
9596
|
-
description: Name of integration being used as the backend for
|
|
9636
|
+
description: Name of integration being used as the backend for authenticated access
|
|
9597
9637
|
required:
|
|
9598
9638
|
- integration
|
|
9599
9639
|
MemberRole:
|
|
@@ -10701,7 +10741,9 @@ components:
|
|
|
10701
10741
|
- false
|
|
10702
10742
|
data:
|
|
10703
10743
|
type: object
|
|
10704
|
-
properties:
|
|
10744
|
+
properties:
|
|
10745
|
+
align:
|
|
10746
|
+
$ref: "#/components/schemas/TextAlignment"
|
|
10705
10747
|
additionalProperties: false
|
|
10706
10748
|
required:
|
|
10707
10749
|
- object
|
|
@@ -10718,6 +10760,12 @@ components:
|
|
|
10718
10760
|
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
10719
10761
|
- $ref: "#/components/schemas/DocumentInlineMention"
|
|
10720
10762
|
- $ref: "#/components/schemas/DocumentInlineButton"
|
|
10763
|
+
TextAlignment:
|
|
10764
|
+
type: string
|
|
10765
|
+
enum:
|
|
10766
|
+
- start
|
|
10767
|
+
- center
|
|
10768
|
+
- end
|
|
10721
10769
|
DocumentBlockHeading:
|
|
10722
10770
|
type: object
|
|
10723
10771
|
properties:
|
|
@@ -10745,6 +10793,8 @@ components:
|
|
|
10745
10793
|
id:
|
|
10746
10794
|
type: string
|
|
10747
10795
|
pattern: ^[-a-z0-9.+_]+$
|
|
10796
|
+
align:
|
|
10797
|
+
$ref: "#/components/schemas/TextAlignment"
|
|
10748
10798
|
meta:
|
|
10749
10799
|
type: object
|
|
10750
10800
|
properties:
|
|
@@ -12325,6 +12375,15 @@ components:
|
|
|
12325
12375
|
oneOf:
|
|
12326
12376
|
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
12327
12377
|
- $ref: "#/components/schemas/DocumentBlockImages"
|
|
12378
|
+
- $ref: "#/components/schemas/DocumentBlockCode"
|
|
12379
|
+
- $ref: "#/components/schemas/DocumentBlockHint"
|
|
12380
|
+
- $ref: "#/components/schemas/DocumentBlockContentRef"
|
|
12381
|
+
- $ref: "#/components/schemas/DocumentBlockDrawing"
|
|
12382
|
+
- $ref: "#/components/schemas/DocumentBlockEmbed"
|
|
12383
|
+
- $ref: "#/components/schemas/DocumentBlockFile"
|
|
12384
|
+
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
12385
|
+
- $ref: "#/components/schemas/DocumentBlockMath"
|
|
12386
|
+
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
12328
12387
|
isVoid:
|
|
12329
12388
|
type: boolean
|
|
12330
12389
|
enum:
|
|
@@ -12459,6 +12518,8 @@ components:
|
|
|
12459
12518
|
enum:
|
|
12460
12519
|
- primary
|
|
12461
12520
|
- secondary
|
|
12521
|
+
icon:
|
|
12522
|
+
$ref: "#/components/schemas/Icon"
|
|
12462
12523
|
required:
|
|
12463
12524
|
- label
|
|
12464
12525
|
- kind
|
|
@@ -14888,6 +14949,9 @@ components:
|
|
|
14888
14949
|
RevisionSemanticChanges:
|
|
14889
14950
|
type: object
|
|
14890
14951
|
properties:
|
|
14952
|
+
mergedFrom:
|
|
14953
|
+
description: The change request object that initiated the changes in the case of a merge revision.
|
|
14954
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
14891
14955
|
changes:
|
|
14892
14956
|
type: array
|
|
14893
14957
|
items:
|
|
@@ -15960,7 +16024,7 @@ components:
|
|
|
15960
16024
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
15961
16025
|
- $ref: "#/components/schemas/SiteEvent"
|
|
15962
16026
|
- type: object
|
|
15963
|
-
description: Common properties for all events related to
|
|
16027
|
+
description: Common properties for all events related to authenticated access from an installation
|
|
15964
16028
|
properties:
|
|
15965
16029
|
type:
|
|
15966
16030
|
type: string
|
|
@@ -17937,6 +18001,48 @@ components:
|
|
|
17937
18001
|
- $ref: "#/components/schemas/InviteLinkToOrganization"
|
|
17938
18002
|
- $ref: "#/components/schemas/InviteLinkToSpace"
|
|
17939
18003
|
- $ref: "#/components/schemas/InviteLinkToCollection"
|
|
18004
|
+
SubscriptionChanges:
|
|
18005
|
+
type: object
|
|
18006
|
+
description: Changes to apply during a subscription upgrade or downgrade
|
|
18007
|
+
properties:
|
|
18008
|
+
removeMembers:
|
|
18009
|
+
description: A list of member identifiers to be removed
|
|
18010
|
+
type: array
|
|
18011
|
+
items:
|
|
18012
|
+
type: string
|
|
18013
|
+
updateSites:
|
|
18014
|
+
description: |
|
|
18015
|
+
A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.
|
|
18016
|
+
type: array
|
|
18017
|
+
items:
|
|
18018
|
+
oneOf:
|
|
18019
|
+
- type: object
|
|
18020
|
+
properties:
|
|
18021
|
+
id:
|
|
18022
|
+
description: The site identifier
|
|
18023
|
+
type: string
|
|
18024
|
+
type:
|
|
18025
|
+
description: The site type to migrate to
|
|
18026
|
+
$ref: "#/components/schemas/SiteType"
|
|
18027
|
+
required:
|
|
18028
|
+
- id
|
|
18029
|
+
- type
|
|
18030
|
+
- type: object
|
|
18031
|
+
properties:
|
|
18032
|
+
id:
|
|
18033
|
+
description: The site identifier
|
|
18034
|
+
type: string
|
|
18035
|
+
isPublished:
|
|
18036
|
+
description: Can be set to `false` to unpublish a site
|
|
18037
|
+
type: boolean
|
|
18038
|
+
enum:
|
|
18039
|
+
- false
|
|
18040
|
+
required:
|
|
18041
|
+
- id
|
|
18042
|
+
- isPublished
|
|
18043
|
+
required:
|
|
18044
|
+
- removeMembers
|
|
18045
|
+
- updateSites
|
|
17940
18046
|
UpgradeOrganizationBilling:
|
|
17941
18047
|
type: object
|
|
17942
18048
|
properties:
|
|
@@ -17944,9 +18050,12 @@ components:
|
|
|
17944
18050
|
$ref: "#/components/schemas/BillingProduct"
|
|
17945
18051
|
interval:
|
|
17946
18052
|
$ref: "#/components/schemas/BillingInterval"
|
|
18053
|
+
changes:
|
|
18054
|
+
$ref: "#/components/schemas/SubscriptionChanges"
|
|
17947
18055
|
exclude:
|
|
18056
|
+
deprecated: true
|
|
17948
18057
|
type: object
|
|
17949
|
-
description:
|
|
18058
|
+
description: Deprecated. Use `changes` instead.
|
|
17950
18059
|
minProperties: 1
|
|
17951
18060
|
properties:
|
|
17952
18061
|
members:
|
|
@@ -18097,47 +18206,7 @@ components:
|
|
|
18097
18206
|
- plus_2024
|
|
18098
18207
|
- pro_2024
|
|
18099
18208
|
changes:
|
|
18100
|
-
|
|
18101
|
-
description: Changes to apply to the organization and its sites before upgrading
|
|
18102
|
-
properties:
|
|
18103
|
-
removeMembers:
|
|
18104
|
-
description: A list of member identifiers to be removed
|
|
18105
|
-
type: array
|
|
18106
|
-
items:
|
|
18107
|
-
type: string
|
|
18108
|
-
updateSites:
|
|
18109
|
-
description: |
|
|
18110
|
-
A list of site 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. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.
|
|
18111
|
-
type: array
|
|
18112
|
-
items:
|
|
18113
|
-
oneOf:
|
|
18114
|
-
- type: object
|
|
18115
|
-
properties:
|
|
18116
|
-
id:
|
|
18117
|
-
description: The site identifier
|
|
18118
|
-
type: string
|
|
18119
|
-
type:
|
|
18120
|
-
description: The site type to migrate to
|
|
18121
|
-
$ref: "#/components/schemas/SiteType"
|
|
18122
|
-
required:
|
|
18123
|
-
- id
|
|
18124
|
-
- type
|
|
18125
|
-
- type: object
|
|
18126
|
-
properties:
|
|
18127
|
-
id:
|
|
18128
|
-
description: The site identifier
|
|
18129
|
-
type: string
|
|
18130
|
-
isPublished:
|
|
18131
|
-
description: Can be set to `false` to unpublish a site
|
|
18132
|
-
type: boolean
|
|
18133
|
-
enum:
|
|
18134
|
-
- false
|
|
18135
|
-
required:
|
|
18136
|
-
- id
|
|
18137
|
-
- isPublished
|
|
18138
|
-
required:
|
|
18139
|
-
- removeMembers
|
|
18140
|
-
- updateSites
|
|
18209
|
+
$ref: "#/components/schemas/SubscriptionChanges"
|
|
18141
18210
|
required:
|
|
18142
18211
|
- product
|
|
18143
18212
|
- interval
|
|
@@ -19580,6 +19649,9 @@ components:
|
|
|
19580
19649
|
type: array
|
|
19581
19650
|
items:
|
|
19582
19651
|
$ref: "#/components/schemas/CustomizationContentLink"
|
|
19652
|
+
condition:
|
|
19653
|
+
description: Conditional expression used to evaluate whether the header item should be shown to the site's visitor.
|
|
19654
|
+
$ref: "#/components/schemas/Condition"
|
|
19583
19655
|
required:
|
|
19584
19656
|
- title
|
|
19585
19657
|
- links
|
|
@@ -19629,6 +19701,15 @@ components:
|
|
|
19629
19701
|
enum:
|
|
19630
19702
|
- light
|
|
19631
19703
|
- dark
|
|
19704
|
+
SiteExternalLinksTarget:
|
|
19705
|
+
type: string
|
|
19706
|
+
description: |
|
|
19707
|
+
How external links should open when clicked.
|
|
19708
|
+
- `self`: External links open in the current tab.
|
|
19709
|
+
- `blank`: External links open in a new browser tab.
|
|
19710
|
+
enum:
|
|
19711
|
+
- self
|
|
19712
|
+
- blank
|
|
19632
19713
|
SiteCustomizationSettings:
|
|
19633
19714
|
type: object
|
|
19634
19715
|
properties:
|
|
@@ -19805,6 +19886,13 @@ components:
|
|
|
19805
19886
|
description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync
|
|
19806
19887
|
required:
|
|
19807
19888
|
- showEditLink
|
|
19889
|
+
externalLinks:
|
|
19890
|
+
type: object
|
|
19891
|
+
properties:
|
|
19892
|
+
target:
|
|
19893
|
+
$ref: "#/components/schemas/SiteExternalLinksTarget"
|
|
19894
|
+
required:
|
|
19895
|
+
- target
|
|
19808
19896
|
pagination:
|
|
19809
19897
|
type: object
|
|
19810
19898
|
properties:
|
|
@@ -19852,6 +19940,7 @@ components:
|
|
|
19852
19940
|
- aiSearch
|
|
19853
19941
|
- advancedCustomization
|
|
19854
19942
|
- trademark
|
|
19943
|
+
- externalLinks
|
|
19855
19944
|
- pagination
|
|
19856
19945
|
- git
|
|
19857
19946
|
- privacyPolicy
|
|
@@ -20002,11 +20091,11 @@ components:
|
|
|
20002
20091
|
fallbackURL:
|
|
20003
20092
|
type: string
|
|
20004
20093
|
format: uri
|
|
20005
|
-
description: URL to redirect to when the
|
|
20094
|
+
description: URL to redirect to when the authenticated access secret is invalid.
|
|
20006
20095
|
integration:
|
|
20007
20096
|
type: string
|
|
20008
20097
|
description: |
|
|
20009
|
-
Name of the
|
|
20098
|
+
Name of the authenticated access integration installed on the site (if any).
|
|
20010
20099
|
It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
20011
20100
|
required:
|
|
20012
20101
|
- object
|
|
@@ -22621,7 +22710,7 @@ components:
|
|
|
22621
22710
|
description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
|
|
22622
22711
|
contextId:
|
|
22623
22712
|
type: string
|
|
22624
|
-
description: Context returned only for a
|
|
22713
|
+
description: Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
|
|
22625
22714
|
canonicalUrl:
|
|
22626
22715
|
type: string
|
|
22627
22716
|
description: The canonical URL of the resolution.
|
|
@@ -22660,7 +22749,7 @@ components:
|
|
|
22660
22749
|
properties:
|
|
22661
22750
|
jwtToken:
|
|
22662
22751
|
type: string
|
|
22663
|
-
description: JWT token generated for a
|
|
22752
|
+
description: JWT token generated for a authenticated access session.
|
|
22664
22753
|
unsignedClaims:
|
|
22665
22754
|
$ref: "#/components/schemas/PlainObject"
|
|
22666
22755
|
SHA256:
|