@gitbook/api 0.121.0 → 0.122.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 +52 -33
- package/dist/index.cjs +9 -1
- package/dist/index.js +8 -1
- package/package.json +1 -1
- package/spec/openapi.json +131 -75
- package/spec/openapi.yaml +85 -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;
|
|
@@ -2942,7 +2952,7 @@ export type FetchEvent = BaseEvent & {
|
|
|
2942
2952
|
export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
|
|
2943
2953
|
type: 'fetch_published_script';
|
|
2944
2954
|
};
|
|
2945
|
-
/** Common properties for all events related to
|
|
2955
|
+
/** Common properties for all events related to authenticated access from an installation */
|
|
2946
2956
|
export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
|
|
2947
2957
|
type: 'fetch_visitor_authentication';
|
|
2948
2958
|
location?: string;
|
|
@@ -3916,12 +3926,34 @@ export interface CreateInviteToCollection {
|
|
|
3916
3926
|
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3917
3927
|
/** An invite link created in an organization */
|
|
3918
3928
|
export type OrganizationInviteLink = InviteLinkToOrganization | InviteLinkToSpace | InviteLinkToCollection;
|
|
3929
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3930
|
+
export interface SubscriptionChanges {
|
|
3931
|
+
/** A list of member identifiers to be removed */
|
|
3932
|
+
removeMembers: string[];
|
|
3933
|
+
/** 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. */
|
|
3934
|
+
updateSites: ({
|
|
3935
|
+
/** The site identifier */
|
|
3936
|
+
id: string;
|
|
3937
|
+
/** The site type to migrate to */
|
|
3938
|
+
type: SiteType;
|
|
3939
|
+
} | {
|
|
3940
|
+
/** The site identifier */
|
|
3941
|
+
id: string;
|
|
3942
|
+
/** Can be set to `false` to unpublish a site */
|
|
3943
|
+
isPublished: false;
|
|
3944
|
+
})[];
|
|
3945
|
+
}
|
|
3919
3946
|
export interface UpgradeOrganizationBilling {
|
|
3920
3947
|
/** Name of the product */
|
|
3921
3948
|
product: BillingProduct;
|
|
3922
3949
|
/** Interval for a billing subscription */
|
|
3923
3950
|
interval: BillingInterval;
|
|
3924
|
-
/**
|
|
3951
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3952
|
+
changes?: SubscriptionChanges;
|
|
3953
|
+
/**
|
|
3954
|
+
* Deprecated. Use `changes` instead.
|
|
3955
|
+
* @deprecated
|
|
3956
|
+
*/
|
|
3925
3957
|
exclude?: {
|
|
3926
3958
|
/** A list of member identifiers to be removed, `all` to remove all members but the current admin */
|
|
3927
3959
|
members?: string[] | 'all';
|
|
@@ -3976,23 +4008,8 @@ export interface MigrateOrganizationParameters {
|
|
|
3976
4008
|
interval: BillingInterval;
|
|
3977
4009
|
/** The new product to upgrade to */
|
|
3978
4010
|
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
|
-
};
|
|
4011
|
+
/** Changes to apply during a subscription upgrade or downgrade */
|
|
4012
|
+
changes: SubscriptionChanges;
|
|
3996
4013
|
}
|
|
3997
4014
|
export interface Error {
|
|
3998
4015
|
error: {
|
|
@@ -4785,6 +4802,8 @@ export interface CustomizationHeaderItem {
|
|
|
4785
4802
|
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
4786
4803
|
to: ContentRef | null;
|
|
4787
4804
|
links: CustomizationContentLink[];
|
|
4805
|
+
/** Conditional expression used to evaluate whether the header item should be shown to the site's visitor. */
|
|
4806
|
+
condition?: Condition;
|
|
4788
4807
|
}
|
|
4789
4808
|
export interface CustomizationFooterGroup {
|
|
4790
4809
|
title: string;
|
|
@@ -5016,12 +5035,12 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
|
|
|
5016
5035
|
/** Private key used to sign JWT tokens. */
|
|
5017
5036
|
privateKey: string;
|
|
5018
5037
|
/**
|
|
5019
|
-
* URL to redirect to when the
|
|
5038
|
+
* URL to redirect to when the authenticated access secret is invalid.
|
|
5020
5039
|
* @format uri
|
|
5021
5040
|
*/
|
|
5022
5041
|
fallbackURL?: string;
|
|
5023
5042
|
/**
|
|
5024
|
-
* Name of the
|
|
5043
|
+
* Name of the authenticated access integration installed on the site (if any).
|
|
5025
5044
|
* It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
5026
5045
|
*/
|
|
5027
5046
|
integration?: string;
|
|
@@ -6041,7 +6060,7 @@ export interface PublishedSiteContent {
|
|
|
6041
6060
|
shareKey?: string;
|
|
6042
6061
|
/** 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
6062
|
complete: boolean;
|
|
6044
|
-
/** Context returned only for a
|
|
6063
|
+
/** 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
6064
|
contextId?: string;
|
|
6046
6065
|
/** The canonical URL of the resolution. */
|
|
6047
6066
|
canonicalUrl: string;
|
|
@@ -6053,7 +6072,7 @@ export type PublishedSiteContentLookup = {
|
|
|
6053
6072
|
} | PublishedSiteContent;
|
|
6054
6073
|
/** 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
6074
|
export interface SiteVisitorPayload {
|
|
6056
|
-
/** JWT token generated for a
|
|
6075
|
+
/** JWT token generated for a authenticated access session. */
|
|
6057
6076
|
jwtToken?: string;
|
|
6058
6077
|
unsignedClaims?: PlainObject;
|
|
6059
6078
|
}
|
|
@@ -12456,10 +12475,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12456
12475
|
getPublishedContentByUrl: (query: {
|
|
12457
12476
|
/** URL to resolve */
|
|
12458
12477
|
url: URL;
|
|
12459
|
-
/** JWT token generated for a
|
|
12478
|
+
/** JWT token generated for a authenticated access session */
|
|
12460
12479
|
visitorAuthToken?: string;
|
|
12461
12480
|
/**
|
|
12462
|
-
* When true redirects the user to the authentication/fallback URL if the
|
|
12481
|
+
* When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
12463
12482
|
* @default false
|
|
12464
12483
|
*/
|
|
12465
12484
|
redirectOnError?: boolean;
|
|
@@ -12483,7 +12502,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12483
12502
|
/** URL to resolve */
|
|
12484
12503
|
url: URL;
|
|
12485
12504
|
/**
|
|
12486
|
-
* When true redirects the user to the authentication/fallback URL if the
|
|
12505
|
+
* When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
12487
12506
|
* @default false
|
|
12488
12507
|
*/
|
|
12489
12508
|
redirectOnError?: boolean;
|
package/dist/index.cjs
CHANGED
|
@@ -265,13 +265,14 @@ __export(src_exports, {
|
|
|
265
265
|
SpaceEditMode: () => SpaceEditMode,
|
|
266
266
|
StorageUploadKind: () => StorageUploadKind,
|
|
267
267
|
TeamMemberRole: () => TeamMemberRole,
|
|
268
|
+
TextAlignment: () => TextAlignment,
|
|
268
269
|
TranslationLanguage: () => TranslationLanguage
|
|
269
270
|
});
|
|
270
271
|
module.exports = __toCommonJS(src_exports);
|
|
271
272
|
|
|
272
273
|
// package.json
|
|
273
274
|
var name = "@gitbook/api";
|
|
274
|
-
var version = "0.
|
|
275
|
+
var version = "0.122.0";
|
|
275
276
|
|
|
276
277
|
// src/client.ts
|
|
277
278
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -400,6 +401,12 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
400
401
|
MemberRole2["Read"] = "read";
|
|
401
402
|
return MemberRole2;
|
|
402
403
|
})(MemberRole || {});
|
|
404
|
+
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
405
|
+
TextAlignment2["Start"] = "start";
|
|
406
|
+
TextAlignment2["Center"] = "center";
|
|
407
|
+
TextAlignment2["End"] = "end";
|
|
408
|
+
return TextAlignment2;
|
|
409
|
+
})(TextAlignment || {});
|
|
403
410
|
var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
404
411
|
TranslationLanguage2["En"] = "en";
|
|
405
412
|
TranslationLanguage2["Fr"] = "fr";
|
|
@@ -3758,5 +3765,6 @@ var GitBookAPI = class extends Api {
|
|
|
3758
3765
|
SpaceEditMode,
|
|
3759
3766
|
StorageUploadKind,
|
|
3760
3767
|
TeamMemberRole,
|
|
3768
|
+
TextAlignment,
|
|
3761
3769
|
TranslationLanguage
|
|
3762
3770
|
});
|
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.122.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";
|
|
@@ -3658,5 +3664,6 @@ export {
|
|
|
3658
3664
|
SpaceEditMode,
|
|
3659
3665
|
StorageUploadKind,
|
|
3660
3666
|
TeamMemberRole,
|
|
3667
|
+
TextAlignment,
|
|
3661
3668
|
TranslationLanguage
|
|
3662
3669
|
};
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -15769,7 +15769,7 @@
|
|
|
15769
15769
|
"name": "visitorAuthToken",
|
|
15770
15770
|
"in": "query",
|
|
15771
15771
|
"required": false,
|
|
15772
|
-
"description": "JWT token generated for a
|
|
15772
|
+
"description": "JWT token generated for a authenticated access session",
|
|
15773
15773
|
"schema": {
|
|
15774
15774
|
"type": "string"
|
|
15775
15775
|
}
|
|
@@ -15778,7 +15778,7 @@
|
|
|
15778
15778
|
"name": "redirectOnError",
|
|
15779
15779
|
"in": "query",
|
|
15780
15780
|
"required": false,
|
|
15781
|
-
"description": "When true redirects the user to the authentication/fallback URL if the
|
|
15781
|
+
"description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
|
|
15782
15782
|
"schema": {
|
|
15783
15783
|
"type": "boolean",
|
|
15784
15784
|
"default": false
|
|
@@ -15821,7 +15821,7 @@
|
|
|
15821
15821
|
},
|
|
15822
15822
|
"redirectOnError": {
|
|
15823
15823
|
"type": "boolean",
|
|
15824
|
-
"description": "When true redirects the user to the authentication/fallback URL if the
|
|
15824
|
+
"description": "When true redirects the user to the authentication/fallback URL if the access token is invalid",
|
|
15825
15825
|
"default": false
|
|
15826
15826
|
},
|
|
15827
15827
|
"visitor": {
|
|
@@ -16642,11 +16642,11 @@
|
|
|
16642
16642
|
},
|
|
16643
16643
|
"VisitorAuthCustomBackend": {
|
|
16644
16644
|
"type": "object",
|
|
16645
|
-
"title": "Custom backend for
|
|
16645
|
+
"title": "Custom backend for authenticated access",
|
|
16646
16646
|
"properties": {
|
|
16647
16647
|
"backend": {
|
|
16648
16648
|
"type": "string",
|
|
16649
|
-
"description": "Custom backend for
|
|
16649
|
+
"description": "Custom backend for authenticated access",
|
|
16650
16650
|
"enum": [
|
|
16651
16651
|
"custom"
|
|
16652
16652
|
]
|
|
@@ -16658,11 +16658,11 @@
|
|
|
16658
16658
|
},
|
|
16659
16659
|
"VisitorAuthIntegrationBackend": {
|
|
16660
16660
|
"type": "object",
|
|
16661
|
-
"title": "Integration backend for
|
|
16661
|
+
"title": "Integration backend for authenticated access",
|
|
16662
16662
|
"properties": {
|
|
16663
16663
|
"backend": {
|
|
16664
16664
|
"type": "string",
|
|
16665
|
-
"description": "Integration as backend for
|
|
16665
|
+
"description": "Integration as backend for authenticated access",
|
|
16666
16666
|
"enum": [
|
|
16667
16667
|
"integration"
|
|
16668
16668
|
]
|
|
@@ -16687,7 +16687,7 @@
|
|
|
16687
16687
|
"properties": {
|
|
16688
16688
|
"integration": {
|
|
16689
16689
|
"type": "string",
|
|
16690
|
-
"description": "Name of integration being used as the backend for
|
|
16690
|
+
"description": "Name of integration being used as the backend for authenticated access"
|
|
16691
16691
|
}
|
|
16692
16692
|
},
|
|
16693
16693
|
"required": [
|
|
@@ -18330,7 +18330,11 @@
|
|
|
18330
18330
|
},
|
|
18331
18331
|
"data": {
|
|
18332
18332
|
"type": "object",
|
|
18333
|
-
"properties": {
|
|
18333
|
+
"properties": {
|
|
18334
|
+
"align": {
|
|
18335
|
+
"$ref": "#/components/schemas/TextAlignment"
|
|
18336
|
+
}
|
|
18337
|
+
},
|
|
18334
18338
|
"additionalProperties": false
|
|
18335
18339
|
}
|
|
18336
18340
|
},
|
|
@@ -18371,6 +18375,14 @@
|
|
|
18371
18375
|
}
|
|
18372
18376
|
]
|
|
18373
18377
|
},
|
|
18378
|
+
"TextAlignment": {
|
|
18379
|
+
"type": "string",
|
|
18380
|
+
"enum": [
|
|
18381
|
+
"start",
|
|
18382
|
+
"center",
|
|
18383
|
+
"end"
|
|
18384
|
+
]
|
|
18385
|
+
},
|
|
18374
18386
|
"DocumentBlockHeading": {
|
|
18375
18387
|
"type": "object",
|
|
18376
18388
|
"properties": {
|
|
@@ -18410,6 +18422,9 @@
|
|
|
18410
18422
|
"id": {
|
|
18411
18423
|
"type": "string",
|
|
18412
18424
|
"pattern": "^[-a-z0-9.+_]+$"
|
|
18425
|
+
},
|
|
18426
|
+
"align": {
|
|
18427
|
+
"$ref": "#/components/schemas/TextAlignment"
|
|
18413
18428
|
}
|
|
18414
18429
|
}
|
|
18415
18430
|
},
|
|
@@ -20939,6 +20954,33 @@
|
|
|
20939
20954
|
},
|
|
20940
20955
|
{
|
|
20941
20956
|
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
20957
|
+
},
|
|
20958
|
+
{
|
|
20959
|
+
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
20960
|
+
},
|
|
20961
|
+
{
|
|
20962
|
+
"$ref": "#/components/schemas/DocumentBlockHint"
|
|
20963
|
+
},
|
|
20964
|
+
{
|
|
20965
|
+
"$ref": "#/components/schemas/DocumentBlockContentRef"
|
|
20966
|
+
},
|
|
20967
|
+
{
|
|
20968
|
+
"$ref": "#/components/schemas/DocumentBlockDrawing"
|
|
20969
|
+
},
|
|
20970
|
+
{
|
|
20971
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
20972
|
+
},
|
|
20973
|
+
{
|
|
20974
|
+
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
20975
|
+
},
|
|
20976
|
+
{
|
|
20977
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
20978
|
+
},
|
|
20979
|
+
{
|
|
20980
|
+
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
20981
|
+
},
|
|
20982
|
+
{
|
|
20983
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
20942
20984
|
}
|
|
20943
20985
|
]
|
|
20944
20986
|
}
|
|
@@ -21188,6 +21230,9 @@
|
|
|
21188
21230
|
"primary",
|
|
21189
21231
|
"secondary"
|
|
21190
21232
|
]
|
|
21233
|
+
},
|
|
21234
|
+
"icon": {
|
|
21235
|
+
"$ref": "#/components/schemas/Icon"
|
|
21191
21236
|
}
|
|
21192
21237
|
},
|
|
21193
21238
|
"required": [
|
|
@@ -26449,7 +26494,7 @@
|
|
|
26449
26494
|
},
|
|
26450
26495
|
{
|
|
26451
26496
|
"type": "object",
|
|
26452
|
-
"description": "Common properties for all events related to
|
|
26497
|
+
"description": "Common properties for all events related to authenticated access from an installation",
|
|
26453
26498
|
"properties": {
|
|
26454
26499
|
"type": {
|
|
26455
26500
|
"type": "string",
|
|
@@ -29497,6 +29542,68 @@
|
|
|
29497
29542
|
}
|
|
29498
29543
|
]
|
|
29499
29544
|
},
|
|
29545
|
+
"SubscriptionChanges": {
|
|
29546
|
+
"type": "object",
|
|
29547
|
+
"description": "Changes to apply during a subscription upgrade or downgrade",
|
|
29548
|
+
"properties": {
|
|
29549
|
+
"removeMembers": {
|
|
29550
|
+
"description": "A list of member identifiers to be removed",
|
|
29551
|
+
"type": "array",
|
|
29552
|
+
"items": {
|
|
29553
|
+
"type": "string"
|
|
29554
|
+
}
|
|
29555
|
+
},
|
|
29556
|
+
"updateSites": {
|
|
29557
|
+
"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",
|
|
29558
|
+
"type": "array",
|
|
29559
|
+
"items": {
|
|
29560
|
+
"oneOf": [
|
|
29561
|
+
{
|
|
29562
|
+
"type": "object",
|
|
29563
|
+
"properties": {
|
|
29564
|
+
"id": {
|
|
29565
|
+
"description": "The site identifier",
|
|
29566
|
+
"type": "string"
|
|
29567
|
+
},
|
|
29568
|
+
"type": {
|
|
29569
|
+
"description": "The site type to migrate to",
|
|
29570
|
+
"$ref": "#/components/schemas/SiteType"
|
|
29571
|
+
}
|
|
29572
|
+
},
|
|
29573
|
+
"required": [
|
|
29574
|
+
"id",
|
|
29575
|
+
"type"
|
|
29576
|
+
]
|
|
29577
|
+
},
|
|
29578
|
+
{
|
|
29579
|
+
"type": "object",
|
|
29580
|
+
"properties": {
|
|
29581
|
+
"id": {
|
|
29582
|
+
"description": "The site identifier",
|
|
29583
|
+
"type": "string"
|
|
29584
|
+
},
|
|
29585
|
+
"isPublished": {
|
|
29586
|
+
"description": "Can be set to `false` to unpublish a site",
|
|
29587
|
+
"type": "boolean",
|
|
29588
|
+
"enum": [
|
|
29589
|
+
false
|
|
29590
|
+
]
|
|
29591
|
+
}
|
|
29592
|
+
},
|
|
29593
|
+
"required": [
|
|
29594
|
+
"id",
|
|
29595
|
+
"isPublished"
|
|
29596
|
+
]
|
|
29597
|
+
}
|
|
29598
|
+
]
|
|
29599
|
+
}
|
|
29600
|
+
}
|
|
29601
|
+
},
|
|
29602
|
+
"required": [
|
|
29603
|
+
"removeMembers",
|
|
29604
|
+
"updateSites"
|
|
29605
|
+
]
|
|
29606
|
+
},
|
|
29500
29607
|
"UpgradeOrganizationBilling": {
|
|
29501
29608
|
"type": "object",
|
|
29502
29609
|
"properties": {
|
|
@@ -29506,9 +29613,13 @@
|
|
|
29506
29613
|
"interval": {
|
|
29507
29614
|
"$ref": "#/components/schemas/BillingInterval"
|
|
29508
29615
|
},
|
|
29616
|
+
"changes": {
|
|
29617
|
+
"$ref": "#/components/schemas/SubscriptionChanges"
|
|
29618
|
+
},
|
|
29509
29619
|
"exclude": {
|
|
29620
|
+
"deprecated": true,
|
|
29510
29621
|
"type": "object",
|
|
29511
|
-
"description": "
|
|
29622
|
+
"description": "Deprecated. Use `changes` instead.",
|
|
29512
29623
|
"minProperties": 1,
|
|
29513
29624
|
"properties": {
|
|
29514
29625
|
"members": {
|
|
@@ -29739,66 +29850,7 @@
|
|
|
29739
29850
|
]
|
|
29740
29851
|
},
|
|
29741
29852
|
"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
|
-
]
|
|
29853
|
+
"$ref": "#/components/schemas/SubscriptionChanges"
|
|
29802
29854
|
}
|
|
29803
29855
|
},
|
|
29804
29856
|
"required": [
|
|
@@ -31788,6 +31840,10 @@
|
|
|
31788
31840
|
"items": {
|
|
31789
31841
|
"$ref": "#/components/schemas/CustomizationContentLink"
|
|
31790
31842
|
}
|
|
31843
|
+
},
|
|
31844
|
+
"condition": {
|
|
31845
|
+
"description": "Conditional expression used to evaluate whether the header item should be shown to the site's visitor.",
|
|
31846
|
+
"$ref": "#/components/schemas/Condition"
|
|
31791
31847
|
}
|
|
31792
31848
|
},
|
|
31793
31849
|
"required": [
|
|
@@ -32396,11 +32452,11 @@
|
|
|
32396
32452
|
"fallbackURL": {
|
|
32397
32453
|
"type": "string",
|
|
32398
32454
|
"format": "uri",
|
|
32399
|
-
"description": "URL to redirect to when the
|
|
32455
|
+
"description": "URL to redirect to when the authenticated access secret is invalid."
|
|
32400
32456
|
},
|
|
32401
32457
|
"integration": {
|
|
32402
32458
|
"type": "string",
|
|
32403
|
-
"description": "Name of the
|
|
32459
|
+
"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
32460
|
}
|
|
32405
32461
|
},
|
|
32406
32462
|
"required": [
|
|
@@ -36437,7 +36493,7 @@
|
|
|
36437
36493
|
},
|
|
36438
36494
|
"contextId": {
|
|
36439
36495
|
"type": "string",
|
|
36440
|
-
"description": "Context returned only for a
|
|
36496
|
+
"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
36497
|
},
|
|
36442
36498
|
"canonicalUrl": {
|
|
36443
36499
|
"type": "string",
|
|
@@ -36492,7 +36548,7 @@
|
|
|
36492
36548
|
"properties": {
|
|
36493
36549
|
"jwtToken": {
|
|
36494
36550
|
"type": "string",
|
|
36495
|
-
"description": "JWT token generated for a
|
|
36551
|
+
"description": "JWT token generated for a authenticated access session."
|
|
36496
36552
|
},
|
|
36497
36553
|
"unsignedClaims": {
|
|
36498
36554
|
"$ref": "#/components/schemas/PlainObject"
|
package/spec/openapi.yaml
CHANGED
|
@@ -8903,13 +8903,13 @@ paths:
|
|
|
8903
8903
|
- name: visitorAuthToken
|
|
8904
8904
|
in: query
|
|
8905
8905
|
required: false
|
|
8906
|
-
description: JWT token generated for a
|
|
8906
|
+
description: JWT token generated for a authenticated access session
|
|
8907
8907
|
schema:
|
|
8908
8908
|
type: string
|
|
8909
8909
|
- name: redirectOnError
|
|
8910
8910
|
in: query
|
|
8911
8911
|
required: false
|
|
8912
|
-
description: When true redirects the user to the authentication/fallback URL if the
|
|
8912
|
+
description: When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
8913
8913
|
schema:
|
|
8914
8914
|
type: boolean
|
|
8915
8915
|
default: false
|
|
@@ -8940,7 +8940,7 @@ paths:
|
|
|
8940
8940
|
$ref: "#/components/schemas/URL"
|
|
8941
8941
|
redirectOnError:
|
|
8942
8942
|
type: boolean
|
|
8943
|
-
description: When true redirects the user to the authentication/fallback URL if the
|
|
8943
|
+
description: When true redirects the user to the authentication/fallback URL if the access token is invalid
|
|
8944
8944
|
default: false
|
|
8945
8945
|
visitor:
|
|
8946
8946
|
$ref: "#/components/schemas/SiteVisitorPayload"
|
|
@@ -9564,22 +9564,22 @@ components:
|
|
|
9564
9564
|
$ref: "#/components/schemas/Timestamp"
|
|
9565
9565
|
VisitorAuthCustomBackend:
|
|
9566
9566
|
type: object
|
|
9567
|
-
title: Custom backend for
|
|
9567
|
+
title: Custom backend for authenticated access
|
|
9568
9568
|
properties:
|
|
9569
9569
|
backend:
|
|
9570
9570
|
type: string
|
|
9571
|
-
description: Custom backend for
|
|
9571
|
+
description: Custom backend for authenticated access
|
|
9572
9572
|
enum:
|
|
9573
9573
|
- custom
|
|
9574
9574
|
required:
|
|
9575
9575
|
- backend
|
|
9576
9576
|
VisitorAuthIntegrationBackend:
|
|
9577
9577
|
type: object
|
|
9578
|
-
title: Integration backend for
|
|
9578
|
+
title: Integration backend for authenticated access
|
|
9579
9579
|
properties:
|
|
9580
9580
|
backend:
|
|
9581
9581
|
type: string
|
|
9582
|
-
description: Integration as backend for
|
|
9582
|
+
description: Integration as backend for authenticated access
|
|
9583
9583
|
enum:
|
|
9584
9584
|
- integration
|
|
9585
9585
|
required:
|
|
@@ -9593,7 +9593,7 @@ components:
|
|
|
9593
9593
|
properties:
|
|
9594
9594
|
integration:
|
|
9595
9595
|
type: string
|
|
9596
|
-
description: Name of integration being used as the backend for
|
|
9596
|
+
description: Name of integration being used as the backend for authenticated access
|
|
9597
9597
|
required:
|
|
9598
9598
|
- integration
|
|
9599
9599
|
MemberRole:
|
|
@@ -10701,7 +10701,9 @@ components:
|
|
|
10701
10701
|
- false
|
|
10702
10702
|
data:
|
|
10703
10703
|
type: object
|
|
10704
|
-
properties:
|
|
10704
|
+
properties:
|
|
10705
|
+
align:
|
|
10706
|
+
$ref: "#/components/schemas/TextAlignment"
|
|
10705
10707
|
additionalProperties: false
|
|
10706
10708
|
required:
|
|
10707
10709
|
- object
|
|
@@ -10718,6 +10720,12 @@ components:
|
|
|
10718
10720
|
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
10719
10721
|
- $ref: "#/components/schemas/DocumentInlineMention"
|
|
10720
10722
|
- $ref: "#/components/schemas/DocumentInlineButton"
|
|
10723
|
+
TextAlignment:
|
|
10724
|
+
type: string
|
|
10725
|
+
enum:
|
|
10726
|
+
- start
|
|
10727
|
+
- center
|
|
10728
|
+
- end
|
|
10721
10729
|
DocumentBlockHeading:
|
|
10722
10730
|
type: object
|
|
10723
10731
|
properties:
|
|
@@ -10745,6 +10753,8 @@ components:
|
|
|
10745
10753
|
id:
|
|
10746
10754
|
type: string
|
|
10747
10755
|
pattern: ^[-a-z0-9.+_]+$
|
|
10756
|
+
align:
|
|
10757
|
+
$ref: "#/components/schemas/TextAlignment"
|
|
10748
10758
|
meta:
|
|
10749
10759
|
type: object
|
|
10750
10760
|
properties:
|
|
@@ -12325,6 +12335,15 @@ components:
|
|
|
12325
12335
|
oneOf:
|
|
12326
12336
|
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
12327
12337
|
- $ref: "#/components/schemas/DocumentBlockImages"
|
|
12338
|
+
- $ref: "#/components/schemas/DocumentBlockCode"
|
|
12339
|
+
- $ref: "#/components/schemas/DocumentBlockHint"
|
|
12340
|
+
- $ref: "#/components/schemas/DocumentBlockContentRef"
|
|
12341
|
+
- $ref: "#/components/schemas/DocumentBlockDrawing"
|
|
12342
|
+
- $ref: "#/components/schemas/DocumentBlockEmbed"
|
|
12343
|
+
- $ref: "#/components/schemas/DocumentBlockFile"
|
|
12344
|
+
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
12345
|
+
- $ref: "#/components/schemas/DocumentBlockMath"
|
|
12346
|
+
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
12328
12347
|
isVoid:
|
|
12329
12348
|
type: boolean
|
|
12330
12349
|
enum:
|
|
@@ -12459,6 +12478,8 @@ components:
|
|
|
12459
12478
|
enum:
|
|
12460
12479
|
- primary
|
|
12461
12480
|
- secondary
|
|
12481
|
+
icon:
|
|
12482
|
+
$ref: "#/components/schemas/Icon"
|
|
12462
12483
|
required:
|
|
12463
12484
|
- label
|
|
12464
12485
|
- kind
|
|
@@ -15960,7 +15981,7 @@ components:
|
|
|
15960
15981
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
15961
15982
|
- $ref: "#/components/schemas/SiteEvent"
|
|
15962
15983
|
- type: object
|
|
15963
|
-
description: Common properties for all events related to
|
|
15984
|
+
description: Common properties for all events related to authenticated access from an installation
|
|
15964
15985
|
properties:
|
|
15965
15986
|
type:
|
|
15966
15987
|
type: string
|
|
@@ -17937,6 +17958,48 @@ components:
|
|
|
17937
17958
|
- $ref: "#/components/schemas/InviteLinkToOrganization"
|
|
17938
17959
|
- $ref: "#/components/schemas/InviteLinkToSpace"
|
|
17939
17960
|
- $ref: "#/components/schemas/InviteLinkToCollection"
|
|
17961
|
+
SubscriptionChanges:
|
|
17962
|
+
type: object
|
|
17963
|
+
description: Changes to apply during a subscription upgrade or downgrade
|
|
17964
|
+
properties:
|
|
17965
|
+
removeMembers:
|
|
17966
|
+
description: A list of member identifiers to be removed
|
|
17967
|
+
type: array
|
|
17968
|
+
items:
|
|
17969
|
+
type: string
|
|
17970
|
+
updateSites:
|
|
17971
|
+
description: |
|
|
17972
|
+
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.
|
|
17973
|
+
type: array
|
|
17974
|
+
items:
|
|
17975
|
+
oneOf:
|
|
17976
|
+
- type: object
|
|
17977
|
+
properties:
|
|
17978
|
+
id:
|
|
17979
|
+
description: The site identifier
|
|
17980
|
+
type: string
|
|
17981
|
+
type:
|
|
17982
|
+
description: The site type to migrate to
|
|
17983
|
+
$ref: "#/components/schemas/SiteType"
|
|
17984
|
+
required:
|
|
17985
|
+
- id
|
|
17986
|
+
- type
|
|
17987
|
+
- type: object
|
|
17988
|
+
properties:
|
|
17989
|
+
id:
|
|
17990
|
+
description: The site identifier
|
|
17991
|
+
type: string
|
|
17992
|
+
isPublished:
|
|
17993
|
+
description: Can be set to `false` to unpublish a site
|
|
17994
|
+
type: boolean
|
|
17995
|
+
enum:
|
|
17996
|
+
- false
|
|
17997
|
+
required:
|
|
17998
|
+
- id
|
|
17999
|
+
- isPublished
|
|
18000
|
+
required:
|
|
18001
|
+
- removeMembers
|
|
18002
|
+
- updateSites
|
|
17940
18003
|
UpgradeOrganizationBilling:
|
|
17941
18004
|
type: object
|
|
17942
18005
|
properties:
|
|
@@ -17944,9 +18007,12 @@ components:
|
|
|
17944
18007
|
$ref: "#/components/schemas/BillingProduct"
|
|
17945
18008
|
interval:
|
|
17946
18009
|
$ref: "#/components/schemas/BillingInterval"
|
|
18010
|
+
changes:
|
|
18011
|
+
$ref: "#/components/schemas/SubscriptionChanges"
|
|
17947
18012
|
exclude:
|
|
18013
|
+
deprecated: true
|
|
17948
18014
|
type: object
|
|
17949
|
-
description:
|
|
18015
|
+
description: Deprecated. Use `changes` instead.
|
|
17950
18016
|
minProperties: 1
|
|
17951
18017
|
properties:
|
|
17952
18018
|
members:
|
|
@@ -18097,47 +18163,7 @@ components:
|
|
|
18097
18163
|
- plus_2024
|
|
18098
18164
|
- pro_2024
|
|
18099
18165
|
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
|
|
18166
|
+
$ref: "#/components/schemas/SubscriptionChanges"
|
|
18141
18167
|
required:
|
|
18142
18168
|
- product
|
|
18143
18169
|
- interval
|
|
@@ -19580,6 +19606,9 @@ components:
|
|
|
19580
19606
|
type: array
|
|
19581
19607
|
items:
|
|
19582
19608
|
$ref: "#/components/schemas/CustomizationContentLink"
|
|
19609
|
+
condition:
|
|
19610
|
+
description: Conditional expression used to evaluate whether the header item should be shown to the site's visitor.
|
|
19611
|
+
$ref: "#/components/schemas/Condition"
|
|
19583
19612
|
required:
|
|
19584
19613
|
- title
|
|
19585
19614
|
- links
|
|
@@ -20002,11 +20031,11 @@ components:
|
|
|
20002
20031
|
fallbackURL:
|
|
20003
20032
|
type: string
|
|
20004
20033
|
format: uri
|
|
20005
|
-
description: URL to redirect to when the
|
|
20034
|
+
description: URL to redirect to when the authenticated access secret is invalid.
|
|
20006
20035
|
integration:
|
|
20007
20036
|
type: string
|
|
20008
20037
|
description: |
|
|
20009
|
-
Name of the
|
|
20038
|
+
Name of the authenticated access integration installed on the site (if any).
|
|
20010
20039
|
It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
|
|
20011
20040
|
required:
|
|
20012
20041
|
- object
|
|
@@ -22621,7 +22650,7 @@ components:
|
|
|
22621
22650
|
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
22651
|
contextId:
|
|
22623
22652
|
type: string
|
|
22624
|
-
description: Context returned only for a
|
|
22653
|
+
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
22654
|
canonicalUrl:
|
|
22626
22655
|
type: string
|
|
22627
22656
|
description: The canonical URL of the resolution.
|
|
@@ -22660,7 +22689,7 @@ components:
|
|
|
22660
22689
|
properties:
|
|
22661
22690
|
jwtToken:
|
|
22662
22691
|
type: string
|
|
22663
|
-
description: JWT token generated for a
|
|
22692
|
+
description: JWT token generated for a authenticated access session.
|
|
22664
22693
|
unsignedClaims:
|
|
22665
22694
|
$ref: "#/components/schemas/PlainObject"
|
|
22666
22695
|
SHA256:
|