@gitbook/api 0.107.0 → 0.109.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 +45 -8
- package/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/spec/openapi.json +170 -10
- package/spec/openapi.yaml +109 -7
package/dist/client.d.ts
CHANGED
|
@@ -476,7 +476,15 @@ export interface DocumentMarkColor {
|
|
|
476
476
|
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
export
|
|
479
|
+
export interface DocumentMarkSuperscript {
|
|
480
|
+
object: 'mark';
|
|
481
|
+
type: 'superscript';
|
|
482
|
+
}
|
|
483
|
+
export interface DocumentMarkSubscript {
|
|
484
|
+
object: 'mark';
|
|
485
|
+
type: 'subscript';
|
|
486
|
+
}
|
|
487
|
+
export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkKeyboard | DocumentMarkStrikethrough | DocumentMarkColor | DocumentMarkSuperscript | DocumentMarkSubscript;
|
|
480
488
|
export interface DocumentTextLeaf {
|
|
481
489
|
object: 'leaf';
|
|
482
490
|
text: string;
|
|
@@ -581,7 +589,7 @@ export interface DocumentBlockParagraph {
|
|
|
581
589
|
isVoid?: false;
|
|
582
590
|
data?: object;
|
|
583
591
|
}
|
|
584
|
-
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
592
|
+
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention | DocumentInlineButton;
|
|
585
593
|
export interface DocumentBlockHeading {
|
|
586
594
|
object: 'block';
|
|
587
595
|
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
@@ -1070,6 +1078,19 @@ export interface DocumentInlineMention {
|
|
|
1070
1078
|
};
|
|
1071
1079
|
isVoid: true;
|
|
1072
1080
|
}
|
|
1081
|
+
export interface DocumentInlineButton {
|
|
1082
|
+
object: 'inline';
|
|
1083
|
+
type: 'button';
|
|
1084
|
+
key?: string;
|
|
1085
|
+
data: {
|
|
1086
|
+
label: string;
|
|
1087
|
+
kind: 'primary' | 'secondary';
|
|
1088
|
+
} & {
|
|
1089
|
+
/** A relative reference to content in GitBook. */
|
|
1090
|
+
ref: ContentRef;
|
|
1091
|
+
};
|
|
1092
|
+
isVoid: true;
|
|
1093
|
+
}
|
|
1073
1094
|
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1074
1095
|
export interface JSONDocument {
|
|
1075
1096
|
object: 'document';
|
|
@@ -1572,6 +1593,11 @@ export declare enum BillingProduct {
|
|
|
1572
1593
|
TeamDec2021 = "team_dec_2021",
|
|
1573
1594
|
BusinessDec2021 = "business_dec_2021"
|
|
1574
1595
|
}
|
|
1596
|
+
/** Interval for a billing subscription */
|
|
1597
|
+
export declare enum BillingInterval {
|
|
1598
|
+
Monthly = "monthly",
|
|
1599
|
+
Yearly = "yearly"
|
|
1600
|
+
}
|
|
1575
1601
|
/** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
|
|
1576
1602
|
export declare enum BillingTrialStatus {
|
|
1577
1603
|
Notapplicable = "notapplicable",
|
|
@@ -1609,6 +1635,15 @@ export interface Organization {
|
|
|
1609
1635
|
inviteLinks: boolean;
|
|
1610
1636
|
/** Name of the product */
|
|
1611
1637
|
plan: BillingProduct;
|
|
1638
|
+
billing: {
|
|
1639
|
+
/** Interval for a billing subscription */
|
|
1640
|
+
interval: BillingInterval;
|
|
1641
|
+
endDate?: Timestamp;
|
|
1642
|
+
/** If true, we were unable to collect the last payment */
|
|
1643
|
+
hasPaymentFailed: boolean;
|
|
1644
|
+
/** If true, the billing is set to cancel at the end of its current period */
|
|
1645
|
+
isScheduledToCancel: boolean;
|
|
1646
|
+
};
|
|
1612
1647
|
/** URLs associated with the object */
|
|
1613
1648
|
urls: {
|
|
1614
1649
|
/**
|
|
@@ -3580,7 +3615,7 @@ export interface Site {
|
|
|
3580
3615
|
createdAt: string;
|
|
3581
3616
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3582
3617
|
ads?: SiteAds;
|
|
3583
|
-
/** A list of all premium features enabled on this site. For each feature we
|
|
3618
|
+
/** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
|
|
3584
3619
|
features: SiteFeature[];
|
|
3585
3620
|
/** URLs associated with the object */
|
|
3586
3621
|
urls: {
|
|
@@ -3868,11 +3903,6 @@ export interface CreateInviteToCollection {
|
|
|
3868
3903
|
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3869
3904
|
/** An invite link created in an organization */
|
|
3870
3905
|
export type OrganizationInviteLink = InviteLinkToOrganization | InviteLinkToSpace | InviteLinkToCollection;
|
|
3871
|
-
/** Interval for a billing subscription */
|
|
3872
|
-
export declare enum BillingInterval {
|
|
3873
|
-
Monthly = "monthly",
|
|
3874
|
-
Yearly = "yearly"
|
|
3875
|
-
}
|
|
3876
3906
|
export interface UpgradeOrganizationBilling {
|
|
3877
3907
|
/** Name of the product */
|
|
3878
3908
|
product: BillingProduct;
|
|
@@ -4626,6 +4656,13 @@ export interface SiteCustomizationSettings {
|
|
|
4626
4656
|
socialPreview: {
|
|
4627
4657
|
url?: URL;
|
|
4628
4658
|
};
|
|
4659
|
+
insights: {
|
|
4660
|
+
/**
|
|
4661
|
+
* Whether GitBook identifies the visitor on the site using a cookie.
|
|
4662
|
+
* @default true
|
|
4663
|
+
*/
|
|
4664
|
+
trackingCookie: boolean;
|
|
4665
|
+
};
|
|
4629
4666
|
}
|
|
4630
4667
|
export interface SiteIntegrationScript {
|
|
4631
4668
|
/** Script URL to load. */
|
package/dist/index.cjs
CHANGED
|
@@ -268,7 +268,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
268
268
|
|
|
269
269
|
// package.json
|
|
270
270
|
var name = "@gitbook/api";
|
|
271
|
-
var version = "0.
|
|
271
|
+
var version = "0.109.0";
|
|
272
272
|
|
|
273
273
|
// src/client.ts
|
|
274
274
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -506,6 +506,11 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
506
506
|
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
507
507
|
return BillingProduct2;
|
|
508
508
|
})(BillingProduct || {});
|
|
509
|
+
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
510
|
+
BillingInterval2["Monthly"] = "monthly";
|
|
511
|
+
BillingInterval2["Yearly"] = "yearly";
|
|
512
|
+
return BillingInterval2;
|
|
513
|
+
})(BillingInterval || {});
|
|
509
514
|
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
510
515
|
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
511
516
|
BillingTrialStatus2["None"] = "none";
|
|
@@ -706,11 +711,6 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
|
706
711
|
TeamMemberRole2["Member"] = "member";
|
|
707
712
|
return TeamMemberRole2;
|
|
708
713
|
})(TeamMemberRole || {});
|
|
709
|
-
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
710
|
-
BillingInterval2["Monthly"] = "monthly";
|
|
711
|
-
BillingInterval2["Yearly"] = "yearly";
|
|
712
|
-
return BillingInterval2;
|
|
713
|
-
})(BillingInterval || {});
|
|
714
714
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
715
715
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
716
716
|
return StorageUploadKind2;
|
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.109.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -410,6 +410,11 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
410
410
|
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
411
411
|
return BillingProduct2;
|
|
412
412
|
})(BillingProduct || {});
|
|
413
|
+
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
414
|
+
BillingInterval2["Monthly"] = "monthly";
|
|
415
|
+
BillingInterval2["Yearly"] = "yearly";
|
|
416
|
+
return BillingInterval2;
|
|
417
|
+
})(BillingInterval || {});
|
|
413
418
|
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
414
419
|
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
415
420
|
BillingTrialStatus2["None"] = "none";
|
|
@@ -610,11 +615,6 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
|
610
615
|
TeamMemberRole2["Member"] = "member";
|
|
611
616
|
return TeamMemberRole2;
|
|
612
617
|
})(TeamMemberRole || {});
|
|
613
|
-
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
614
|
-
BillingInterval2["Monthly"] = "monthly";
|
|
615
|
-
BillingInterval2["Yearly"] = "yearly";
|
|
616
|
-
return BillingInterval2;
|
|
617
|
-
})(BillingInterval || {});
|
|
618
618
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
619
619
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
620
620
|
return StorageUploadKind2;
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -17508,6 +17508,48 @@
|
|
|
17508
17508
|
"data"
|
|
17509
17509
|
]
|
|
17510
17510
|
},
|
|
17511
|
+
"DocumentMarkSuperscript": {
|
|
17512
|
+
"type": "object",
|
|
17513
|
+
"properties": {
|
|
17514
|
+
"object": {
|
|
17515
|
+
"type": "string",
|
|
17516
|
+
"enum": [
|
|
17517
|
+
"mark"
|
|
17518
|
+
]
|
|
17519
|
+
},
|
|
17520
|
+
"type": {
|
|
17521
|
+
"type": "string",
|
|
17522
|
+
"enum": [
|
|
17523
|
+
"superscript"
|
|
17524
|
+
]
|
|
17525
|
+
}
|
|
17526
|
+
},
|
|
17527
|
+
"required": [
|
|
17528
|
+
"object",
|
|
17529
|
+
"type"
|
|
17530
|
+
]
|
|
17531
|
+
},
|
|
17532
|
+
"DocumentMarkSubscript": {
|
|
17533
|
+
"type": "object",
|
|
17534
|
+
"properties": {
|
|
17535
|
+
"object": {
|
|
17536
|
+
"type": "string",
|
|
17537
|
+
"enum": [
|
|
17538
|
+
"mark"
|
|
17539
|
+
]
|
|
17540
|
+
},
|
|
17541
|
+
"type": {
|
|
17542
|
+
"type": "string",
|
|
17543
|
+
"enum": [
|
|
17544
|
+
"subscript"
|
|
17545
|
+
]
|
|
17546
|
+
}
|
|
17547
|
+
},
|
|
17548
|
+
"required": [
|
|
17549
|
+
"object",
|
|
17550
|
+
"type"
|
|
17551
|
+
]
|
|
17552
|
+
},
|
|
17511
17553
|
"DocumentTextMark": {
|
|
17512
17554
|
"oneOf": [
|
|
17513
17555
|
{
|
|
@@ -17527,6 +17569,12 @@
|
|
|
17527
17569
|
},
|
|
17528
17570
|
{
|
|
17529
17571
|
"$ref": "#/components/schemas/DocumentMarkColor"
|
|
17572
|
+
},
|
|
17573
|
+
{
|
|
17574
|
+
"$ref": "#/components/schemas/DocumentMarkSuperscript"
|
|
17575
|
+
},
|
|
17576
|
+
{
|
|
17577
|
+
"$ref": "#/components/schemas/DocumentMarkSubscript"
|
|
17530
17578
|
}
|
|
17531
17579
|
]
|
|
17532
17580
|
},
|
|
@@ -18066,6 +18114,9 @@
|
|
|
18066
18114
|
},
|
|
18067
18115
|
{
|
|
18068
18116
|
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
18117
|
+
},
|
|
18118
|
+
{
|
|
18119
|
+
"$ref": "#/components/schemas/DocumentInlineButton"
|
|
18069
18120
|
}
|
|
18070
18121
|
]
|
|
18071
18122
|
},
|
|
@@ -20648,6 +20699,76 @@
|
|
|
20648
20699
|
"isVoid"
|
|
20649
20700
|
]
|
|
20650
20701
|
},
|
|
20702
|
+
"DocumentInlineButton": {
|
|
20703
|
+
"type": "object",
|
|
20704
|
+
"properties": {
|
|
20705
|
+
"object": {
|
|
20706
|
+
"type": "string",
|
|
20707
|
+
"enum": [
|
|
20708
|
+
"inline"
|
|
20709
|
+
]
|
|
20710
|
+
},
|
|
20711
|
+
"type": {
|
|
20712
|
+
"type": "string",
|
|
20713
|
+
"enum": [
|
|
20714
|
+
"button"
|
|
20715
|
+
]
|
|
20716
|
+
},
|
|
20717
|
+
"key": {
|
|
20718
|
+
"type": "string"
|
|
20719
|
+
},
|
|
20720
|
+
"data": {
|
|
20721
|
+
"allOf": [
|
|
20722
|
+
{
|
|
20723
|
+
"type": "object",
|
|
20724
|
+
"properties": {
|
|
20725
|
+
"label": {
|
|
20726
|
+
"type": "string"
|
|
20727
|
+
},
|
|
20728
|
+
"kind": {
|
|
20729
|
+
"type": "string",
|
|
20730
|
+
"enum": [
|
|
20731
|
+
"primary",
|
|
20732
|
+
"secondary"
|
|
20733
|
+
]
|
|
20734
|
+
}
|
|
20735
|
+
},
|
|
20736
|
+
"required": [
|
|
20737
|
+
"label",
|
|
20738
|
+
"kind"
|
|
20739
|
+
]
|
|
20740
|
+
},
|
|
20741
|
+
{
|
|
20742
|
+
"oneOf": [
|
|
20743
|
+
{
|
|
20744
|
+
"type": "object",
|
|
20745
|
+
"properties": {
|
|
20746
|
+
"ref": {
|
|
20747
|
+
"$ref": "#/components/schemas/ContentRef"
|
|
20748
|
+
}
|
|
20749
|
+
},
|
|
20750
|
+
"required": [
|
|
20751
|
+
"ref"
|
|
20752
|
+
]
|
|
20753
|
+
}
|
|
20754
|
+
]
|
|
20755
|
+
}
|
|
20756
|
+
]
|
|
20757
|
+
},
|
|
20758
|
+
"isVoid": {
|
|
20759
|
+
"type": "boolean",
|
|
20760
|
+
"enum": [
|
|
20761
|
+
true
|
|
20762
|
+
]
|
|
20763
|
+
}
|
|
20764
|
+
},
|
|
20765
|
+
"required": [
|
|
20766
|
+
"object",
|
|
20767
|
+
"type",
|
|
20768
|
+
"data",
|
|
20769
|
+
"isVoid"
|
|
20770
|
+
]
|
|
20771
|
+
},
|
|
20651
20772
|
"DocumentBlocksTopLevels": {
|
|
20652
20773
|
"oneOf": [
|
|
20653
20774
|
{
|
|
@@ -22214,6 +22335,14 @@
|
|
|
22214
22335
|
"business_dec_2021"
|
|
22215
22336
|
]
|
|
22216
22337
|
},
|
|
22338
|
+
"BillingInterval": {
|
|
22339
|
+
"type": "string",
|
|
22340
|
+
"description": "Interval for a billing subscription",
|
|
22341
|
+
"enum": [
|
|
22342
|
+
"monthly",
|
|
22343
|
+
"yearly"
|
|
22344
|
+
]
|
|
22345
|
+
},
|
|
22217
22346
|
"BillingTrialStatus": {
|
|
22218
22347
|
"type": "string",
|
|
22219
22348
|
"description": "- notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do.\n",
|
|
@@ -22287,6 +22416,30 @@
|
|
|
22287
22416
|
"plan": {
|
|
22288
22417
|
"$ref": "#/components/schemas/BillingProduct"
|
|
22289
22418
|
},
|
|
22419
|
+
"billing": {
|
|
22420
|
+
"type": "object",
|
|
22421
|
+
"properties": {
|
|
22422
|
+
"interval": {
|
|
22423
|
+
"$ref": "#/components/schemas/BillingInterval"
|
|
22424
|
+
},
|
|
22425
|
+
"endDate": {
|
|
22426
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
22427
|
+
},
|
|
22428
|
+
"hasPaymentFailed": {
|
|
22429
|
+
"description": "If true, we were unable to collect the last payment",
|
|
22430
|
+
"type": "boolean"
|
|
22431
|
+
},
|
|
22432
|
+
"isScheduledToCancel": {
|
|
22433
|
+
"description": "If true, the billing is set to cancel at the end of its current period",
|
|
22434
|
+
"type": "boolean"
|
|
22435
|
+
}
|
|
22436
|
+
},
|
|
22437
|
+
"required": [
|
|
22438
|
+
"interval",
|
|
22439
|
+
"hasPaymentFailed",
|
|
22440
|
+
"isScheduledToCancel"
|
|
22441
|
+
]
|
|
22442
|
+
},
|
|
22290
22443
|
"urls": {
|
|
22291
22444
|
"type": "object",
|
|
22292
22445
|
"description": "URLs associated with the object",
|
|
@@ -22393,6 +22546,7 @@
|
|
|
22393
22546
|
"object",
|
|
22394
22547
|
"id",
|
|
22395
22548
|
"plan",
|
|
22549
|
+
"billing",
|
|
22396
22550
|
"title",
|
|
22397
22551
|
"createdAt",
|
|
22398
22552
|
"inviteLinks",
|
|
@@ -28353,7 +28507,7 @@
|
|
|
28353
28507
|
"$ref": "#/components/schemas/SiteAds"
|
|
28354
28508
|
},
|
|
28355
28509
|
"features": {
|
|
28356
|
-
"description": "A list of all premium features enabled on this site. For each feature we
|
|
28510
|
+
"description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
|
|
28357
28511
|
"type": "array",
|
|
28358
28512
|
"items": {
|
|
28359
28513
|
"$ref": "#/components/schemas/SiteFeature"
|
|
@@ -29137,14 +29291,6 @@
|
|
|
29137
29291
|
}
|
|
29138
29292
|
]
|
|
29139
29293
|
},
|
|
29140
|
-
"BillingInterval": {
|
|
29141
|
-
"type": "string",
|
|
29142
|
-
"description": "Interval for a billing subscription",
|
|
29143
|
-
"enum": [
|
|
29144
|
-
"monthly",
|
|
29145
|
-
"yearly"
|
|
29146
|
-
]
|
|
29147
|
-
},
|
|
29148
29294
|
"UpgradeOrganizationBilling": {
|
|
29149
29295
|
"type": "object",
|
|
29150
29296
|
"properties": {
|
|
@@ -31080,6 +31226,19 @@
|
|
|
31080
31226
|
"$ref": "#/components/schemas/URL"
|
|
31081
31227
|
}
|
|
31082
31228
|
}
|
|
31229
|
+
},
|
|
31230
|
+
"insights": {
|
|
31231
|
+
"type": "object",
|
|
31232
|
+
"properties": {
|
|
31233
|
+
"trackingCookie": {
|
|
31234
|
+
"type": "boolean",
|
|
31235
|
+
"description": "Whether GitBook identifies the visitor on the site using a cookie.",
|
|
31236
|
+
"default": true
|
|
31237
|
+
}
|
|
31238
|
+
},
|
|
31239
|
+
"required": [
|
|
31240
|
+
"trackingCookie"
|
|
31241
|
+
]
|
|
31083
31242
|
}
|
|
31084
31243
|
},
|
|
31085
31244
|
"required": [
|
|
@@ -31097,7 +31256,8 @@
|
|
|
31097
31256
|
"pagination",
|
|
31098
31257
|
"git",
|
|
31099
31258
|
"privacyPolicy",
|
|
31100
|
-
"socialPreview"
|
|
31259
|
+
"socialPreview",
|
|
31260
|
+
"insights"
|
|
31101
31261
|
]
|
|
31102
31262
|
},
|
|
31103
31263
|
"SiteIntegrationScript": {
|
package/spec/openapi.yaml
CHANGED
|
@@ -10068,6 +10068,34 @@ components:
|
|
|
10068
10068
|
- object
|
|
10069
10069
|
- type
|
|
10070
10070
|
- data
|
|
10071
|
+
DocumentMarkSuperscript:
|
|
10072
|
+
type: object
|
|
10073
|
+
properties:
|
|
10074
|
+
object:
|
|
10075
|
+
type: string
|
|
10076
|
+
enum:
|
|
10077
|
+
- mark
|
|
10078
|
+
type:
|
|
10079
|
+
type: string
|
|
10080
|
+
enum:
|
|
10081
|
+
- superscript
|
|
10082
|
+
required:
|
|
10083
|
+
- object
|
|
10084
|
+
- type
|
|
10085
|
+
DocumentMarkSubscript:
|
|
10086
|
+
type: object
|
|
10087
|
+
properties:
|
|
10088
|
+
object:
|
|
10089
|
+
type: string
|
|
10090
|
+
enum:
|
|
10091
|
+
- mark
|
|
10092
|
+
type:
|
|
10093
|
+
type: string
|
|
10094
|
+
enum:
|
|
10095
|
+
- subscript
|
|
10096
|
+
required:
|
|
10097
|
+
- object
|
|
10098
|
+
- type
|
|
10071
10099
|
DocumentTextMark:
|
|
10072
10100
|
oneOf:
|
|
10073
10101
|
- $ref: "#/components/schemas/DocumentMarkBold"
|
|
@@ -10076,6 +10104,8 @@ components:
|
|
|
10076
10104
|
- $ref: "#/components/schemas/DocumentMarkKeyboard"
|
|
10077
10105
|
- $ref: "#/components/schemas/DocumentMarkStrikethrough"
|
|
10078
10106
|
- $ref: "#/components/schemas/DocumentMarkColor"
|
|
10107
|
+
- $ref: "#/components/schemas/DocumentMarkSuperscript"
|
|
10108
|
+
- $ref: "#/components/schemas/DocumentMarkSubscript"
|
|
10079
10109
|
DocumentTextLeaf:
|
|
10080
10110
|
type: object
|
|
10081
10111
|
properties:
|
|
@@ -10413,6 +10443,7 @@ components:
|
|
|
10413
10443
|
- $ref: "#/components/schemas/DocumentInlineImage"
|
|
10414
10444
|
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
10415
10445
|
- $ref: "#/components/schemas/DocumentInlineMention"
|
|
10446
|
+
- $ref: "#/components/schemas/DocumentInlineButton"
|
|
10416
10447
|
DocumentBlockHeading:
|
|
10417
10448
|
type: object
|
|
10418
10449
|
properties:
|
|
@@ -12000,6 +12031,49 @@ components:
|
|
|
12000
12031
|
- type
|
|
12001
12032
|
- data
|
|
12002
12033
|
- isVoid
|
|
12034
|
+
DocumentInlineButton:
|
|
12035
|
+
type: object
|
|
12036
|
+
properties:
|
|
12037
|
+
object:
|
|
12038
|
+
type: string
|
|
12039
|
+
enum:
|
|
12040
|
+
- inline
|
|
12041
|
+
type:
|
|
12042
|
+
type: string
|
|
12043
|
+
enum:
|
|
12044
|
+
- button
|
|
12045
|
+
key:
|
|
12046
|
+
type: string
|
|
12047
|
+
data:
|
|
12048
|
+
allOf:
|
|
12049
|
+
- type: object
|
|
12050
|
+
properties:
|
|
12051
|
+
label:
|
|
12052
|
+
type: string
|
|
12053
|
+
kind:
|
|
12054
|
+
type: string
|
|
12055
|
+
enum:
|
|
12056
|
+
- primary
|
|
12057
|
+
- secondary
|
|
12058
|
+
required:
|
|
12059
|
+
- label
|
|
12060
|
+
- kind
|
|
12061
|
+
- oneOf:
|
|
12062
|
+
- type: object
|
|
12063
|
+
properties:
|
|
12064
|
+
ref:
|
|
12065
|
+
$ref: "#/components/schemas/ContentRef"
|
|
12066
|
+
required:
|
|
12067
|
+
- ref
|
|
12068
|
+
isVoid:
|
|
12069
|
+
type: boolean
|
|
12070
|
+
enum:
|
|
12071
|
+
- true
|
|
12072
|
+
required:
|
|
12073
|
+
- object
|
|
12074
|
+
- type
|
|
12075
|
+
- data
|
|
12076
|
+
- isVoid
|
|
12003
12077
|
DocumentBlocksTopLevels:
|
|
12004
12078
|
oneOf:
|
|
12005
12079
|
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
@@ -13007,6 +13081,12 @@ components:
|
|
|
13007
13081
|
- team_oct_2019_free
|
|
13008
13082
|
- team_dec_2021
|
|
13009
13083
|
- business_dec_2021
|
|
13084
|
+
BillingInterval:
|
|
13085
|
+
type: string
|
|
13086
|
+
description: Interval for a billing subscription
|
|
13087
|
+
enum:
|
|
13088
|
+
- monthly
|
|
13089
|
+
- yearly
|
|
13010
13090
|
BillingTrialStatus:
|
|
13011
13091
|
type: string
|
|
13012
13092
|
description: |
|
|
@@ -13061,6 +13141,23 @@ components:
|
|
|
13061
13141
|
type: boolean
|
|
13062
13142
|
plan:
|
|
13063
13143
|
$ref: "#/components/schemas/BillingProduct"
|
|
13144
|
+
billing:
|
|
13145
|
+
type: object
|
|
13146
|
+
properties:
|
|
13147
|
+
interval:
|
|
13148
|
+
$ref: "#/components/schemas/BillingInterval"
|
|
13149
|
+
endDate:
|
|
13150
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13151
|
+
hasPaymentFailed:
|
|
13152
|
+
description: If true, we were unable to collect the last payment
|
|
13153
|
+
type: boolean
|
|
13154
|
+
isScheduledToCancel:
|
|
13155
|
+
description: If true, the billing is set to cancel at the end of its current period
|
|
13156
|
+
type: boolean
|
|
13157
|
+
required:
|
|
13158
|
+
- interval
|
|
13159
|
+
- hasPaymentFailed
|
|
13160
|
+
- isScheduledToCancel
|
|
13064
13161
|
urls:
|
|
13065
13162
|
type: object
|
|
13066
13163
|
description: URLs associated with the object
|
|
@@ -13137,6 +13234,7 @@ components:
|
|
|
13137
13234
|
- object
|
|
13138
13235
|
- id
|
|
13139
13236
|
- plan
|
|
13237
|
+
- billing
|
|
13140
13238
|
- title
|
|
13141
13239
|
- createdAt
|
|
13142
13240
|
- inviteLinks
|
|
@@ -17065,7 +17163,7 @@ components:
|
|
|
17065
17163
|
$ref: "#/components/schemas/SiteAds"
|
|
17066
17164
|
features:
|
|
17067
17165
|
description: |
|
|
17068
|
-
A list of all premium features enabled on this site. For each feature we
|
|
17166
|
+
A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.
|
|
17069
17167
|
type: array
|
|
17070
17168
|
items:
|
|
17071
17169
|
$ref: "#/components/schemas/SiteFeature"
|
|
@@ -17600,12 +17698,6 @@ components:
|
|
|
17600
17698
|
- $ref: "#/components/schemas/InviteLinkToOrganization"
|
|
17601
17699
|
- $ref: "#/components/schemas/InviteLinkToSpace"
|
|
17602
17700
|
- $ref: "#/components/schemas/InviteLinkToCollection"
|
|
17603
|
-
BillingInterval:
|
|
17604
|
-
type: string
|
|
17605
|
-
description: Interval for a billing subscription
|
|
17606
|
-
enum:
|
|
17607
|
-
- monthly
|
|
17608
|
-
- yearly
|
|
17609
17701
|
UpgradeOrganizationBilling:
|
|
17610
17702
|
type: object
|
|
17611
17703
|
properties:
|
|
@@ -18973,6 +19065,15 @@ components:
|
|
|
18973
19065
|
properties:
|
|
18974
19066
|
url:
|
|
18975
19067
|
$ref: "#/components/schemas/URL"
|
|
19068
|
+
insights:
|
|
19069
|
+
type: object
|
|
19070
|
+
properties:
|
|
19071
|
+
trackingCookie:
|
|
19072
|
+
type: boolean
|
|
19073
|
+
description: Whether GitBook identifies the visitor on the site using a cookie.
|
|
19074
|
+
default: true
|
|
19075
|
+
required:
|
|
19076
|
+
- trackingCookie
|
|
18976
19077
|
required:
|
|
18977
19078
|
- styling
|
|
18978
19079
|
- internationalization
|
|
@@ -18989,6 +19090,7 @@ components:
|
|
|
18989
19090
|
- git
|
|
18990
19091
|
- privacyPolicy
|
|
18991
19092
|
- socialPreview
|
|
19093
|
+
- insights
|
|
18992
19094
|
SiteIntegrationScript:
|
|
18993
19095
|
type: object
|
|
18994
19096
|
properties:
|