@gitbook/api 0.181.0 → 0.182.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 CHANGED
@@ -2240,6 +2240,8 @@ export interface DocumentBlockTabsItem {
2240
2240
  nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
2241
2241
  data: {
2242
2242
  title?: string;
2243
+ /** Name of the icon */
2244
+ icon?: Icon;
2243
2245
  };
2244
2246
  meta?: {
2245
2247
  /** Unique ID to be used in an URL for the block. */
@@ -2639,6 +2641,8 @@ export interface RevisionPageLayoutOptions {
2639
2641
  metadata: boolean;
2640
2642
  /** Should the tags be visible on the page? */
2641
2643
  tags: boolean;
2644
+ /** Should the page actions be visible on the page? */
2645
+ actions: boolean;
2642
2646
  }
2643
2647
  export interface RevisionPageDocumentCover {
2644
2648
  /** Content reference pointing to the source image. */
@@ -4222,6 +4226,8 @@ export type FetchPublishedScriptEvent = SiteEvent & {
4222
4226
  export type FetchVisitorAuthenticationEvent = SiteEvent & {
4223
4227
  type: "fetch_visitor_authentication";
4224
4228
  location?: string;
4229
+ /** Whitelisted search parameters from the visitor authentication request. */
4230
+ searchParams?: Record<string, string>;
4225
4231
  /** The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect. */
4226
4232
  action?: "logout";
4227
4233
  };
package/dist/index.cjs CHANGED
@@ -521,7 +521,7 @@ module.exports = __toCommonJS(src_exports);
521
521
 
522
522
  // package.json
523
523
  var name = "@gitbook/api";
524
- var version = "0.181.0";
524
+ var version = "0.182.0";
525
525
 
526
526
  // src/client.ts
527
527
  var import_event_iterator = __toESM(require_node(), 1);
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.181.0";
175
+ var version = "0.182.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.181.0",
7
+ "version": "0.182.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -11754,11 +11754,6 @@
11754
11754
  "tags": [
11755
11755
  "sites"
11756
11756
  ],
11757
- "security": [
11758
- {
11759
- "user": []
11760
- }
11761
- ],
11762
11757
  "parameters": [
11763
11758
  {
11764
11759
  "$ref": "#/components/parameters/organizationId"
@@ -24819,6 +24814,9 @@
24819
24814
  "properties": {
24820
24815
  "title": {
24821
24816
  "type": "string"
24817
+ },
24818
+ "icon": {
24819
+ "$ref": "#/components/schemas/Icon"
24822
24820
  }
24823
24821
  }
24824
24822
  },
@@ -26632,6 +26630,10 @@
26632
26630
  "tags": {
26633
26631
  "type": "boolean",
26634
26632
  "description": "Should the tags be visible on the page?"
26633
+ },
26634
+ "actions": {
26635
+ "type": "boolean",
26636
+ "description": "Should the page actions be visible on the page?"
26635
26637
  }
26636
26638
  },
26637
26639
  "required": [
@@ -26644,7 +26646,8 @@
26644
26646
  "outline",
26645
26647
  "pagination",
26646
26648
  "metadata",
26647
- "tags"
26649
+ "tags",
26650
+ "actions"
26648
26651
  ]
26649
26652
  },
26650
26653
  "RevisionPageDocumentCover": {
@@ -31612,6 +31615,13 @@
31612
31615
  "location": {
31613
31616
  "type": "string"
31614
31617
  },
31618
+ "searchParams": {
31619
+ "type": "object",
31620
+ "additionalProperties": {
31621
+ "type": "string"
31622
+ },
31623
+ "description": "Whitelisted search parameters from the visitor authentication request."
31624
+ },
31615
31625
  "action": {
31616
31626
  "type": "string",
31617
31627
  "enum": [
package/spec/openapi.yaml CHANGED
@@ -6693,8 +6693,6 @@ paths:
6693
6693
  summary: Get a site by its ID
6694
6694
  tags:
6695
6695
  - sites
6696
- security:
6697
- - user: []
6698
6696
  parameters:
6699
6697
  - $ref: "#/components/parameters/organizationId"
6700
6698
  - $ref: "#/components/parameters/siteId"
@@ -14529,6 +14527,8 @@ components:
14529
14527
  properties:
14530
14528
  title:
14531
14529
  type: string
14530
+ icon:
14531
+ $ref: "#/components/schemas/Icon"
14532
14532
  meta:
14533
14533
  type: object
14534
14534
  properties:
@@ -15635,6 +15635,9 @@ components:
15635
15635
  tags:
15636
15636
  type: boolean
15637
15637
  description: Should the tags be visible on the page?
15638
+ actions:
15639
+ type: boolean
15640
+ description: Should the page actions be visible on the page?
15638
15641
  required:
15639
15642
  - width
15640
15643
  - cover
@@ -15646,6 +15649,7 @@ components:
15646
15649
  - pagination
15647
15650
  - metadata
15648
15651
  - tags
15652
+ - actions
15649
15653
  RevisionPageDocumentCover:
15650
15654
  type: object
15651
15655
  properties:
@@ -18991,6 +18995,11 @@ components:
18991
18995
  - fetch_visitor_authentication
18992
18996
  location:
18993
18997
  type: string
18998
+ searchParams:
18999
+ type: object
19000
+ additionalProperties:
19001
+ type: string
19002
+ description: Whitelisted search parameters from the visitor authentication request.
18994
19003
  action:
18995
19004
  type: string
18996
19005
  enum: