@gitbook/api 0.106.0 → 0.107.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
@@ -896,7 +896,7 @@ export interface DocumentBlockExpandable {
896
896
  fragment: 'expandable-body';
897
897
  type: 'expandable-body';
898
898
  /** @minItems 1 */
899
- nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
899
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
900
900
  }))[];
901
901
  meta?: {
902
902
  /** Unique ID to be used in an URL for the block. */
@@ -4598,6 +4598,12 @@ export interface SiteCustomizationSettings {
4598
4598
  /** If true, AI search is enabled */
4599
4599
  enabled: boolean;
4600
4600
  };
4601
+ ai?: {
4602
+ pageLinkSummaries: {
4603
+ /** If true, AI page links summaries is enabled */
4604
+ enabled: boolean;
4605
+ };
4606
+ };
4601
4607
  advancedCustomization: {
4602
4608
  /** If true, Advanced customization is enabled */
4603
4609
  enabled: boolean;
@@ -11625,6 +11631,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11625
11631
  */
11626
11632
  removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
11627
11633
  };
11634
+ emailDomains: {
11635
+ /**
11636
+ * No description
11637
+ *
11638
+ * @tags email-domains
11639
+ * @name GetOrganizationsForEmailDomain
11640
+ * @summary Get all organizations by email domain.
11641
+ * @request GET:/email-domains/{emailDomain}/orgs
11642
+ * @secure
11643
+ */
11644
+ getOrganizationsForEmailDomain: (emailDomain: string, params?: RequestParams) => Promise<HttpResponse<{
11645
+ organizations?: Organization[];
11646
+ }, Error>>;
11647
+ };
11628
11648
  ads: {
11629
11649
  /**
11630
11650
  * No description
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.106.0";
271
+ var version = "0.107.0";
272
272
 
273
273
  // src/client.ts
274
274
  var import_event_iterator = __toESM(require_node(), 1);
@@ -3407,6 +3407,15 @@ var Api = class extends HttpClient {
3407
3407
  ...params
3408
3408
  })
3409
3409
  };
3410
+ emailDomains = {
3411
+ getOrganizationsForEmailDomain: (emailDomain, params = {}) => this.request({
3412
+ path: `/email-domains/${emailDomain}/orgs`,
3413
+ method: "GET",
3414
+ secure: true,
3415
+ format: "json",
3416
+ ...params
3417
+ })
3418
+ };
3410
3419
  ads = {
3411
3420
  adsListSites: (query, params = {}) => this.request({
3412
3421
  path: `/ads/sites`,
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.106.0";
175
+ var version = "0.107.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -3311,6 +3311,15 @@ var Api = class extends HttpClient {
3311
3311
  ...params
3312
3312
  })
3313
3313
  };
3314
+ emailDomains = {
3315
+ getOrganizationsForEmailDomain: (emailDomain, params = {}) => this.request({
3316
+ path: `/email-domains/${emailDomain}/orgs`,
3317
+ method: "GET",
3318
+ secure: true,
3319
+ format: "json",
3320
+ ...params
3321
+ })
3322
+ };
3314
3323
  ads = {
3315
3324
  adsListSites: (query, params = {}) => this.request({
3316
3325
  path: `/ads/sites`,
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.106.0",
7
+ "version": "0.107.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -119,6 +119,11 @@
119
119
  "x-page-title": "Custom hostnames",
120
120
  "x-page-description": "Configure and manage custom hostnames for your docs sites."
121
121
  },
122
+ {
123
+ "name": "email-domains",
124
+ "x-page-title": "Email domains",
125
+ "x-page-description": "Configure and manage email domains for organizations."
126
+ },
122
127
  {
123
128
  "name": "ads",
124
129
  "x-page-title": "Ads",
@@ -15288,6 +15293,51 @@
15288
15293
  }
15289
15294
  }
15290
15295
  },
15296
+ "/email-domains/{emailDomain}/orgs": {
15297
+ "get": {
15298
+ "operationId": "getOrganizationsForEmailDomain",
15299
+ "summary": "Get all organizations by email domain.",
15300
+ "tags": [
15301
+ "email-domains"
15302
+ ],
15303
+ "security": [
15304
+ {
15305
+ "user-internal": []
15306
+ }
15307
+ ],
15308
+ "parameters": [
15309
+ {
15310
+ "$ref": "#/components/parameters/emailDomain"
15311
+ }
15312
+ ],
15313
+ "responses": {
15314
+ "200": {
15315
+ "description": "OK",
15316
+ "content": {
15317
+ "application/json": {
15318
+ "schema": {
15319
+ "type": "object",
15320
+ "properties": {
15321
+ "organizations": {
15322
+ "type": "array",
15323
+ "items": {
15324
+ "$ref": "#/components/schemas/Organization"
15325
+ }
15326
+ }
15327
+ },
15328
+ "required": [
15329
+ "organizaitons"
15330
+ ]
15331
+ }
15332
+ }
15333
+ }
15334
+ },
15335
+ "default": {
15336
+ "$ref": "#/components/responses/UnexpectedError"
15337
+ }
15338
+ }
15339
+ }
15340
+ },
15291
15341
  "/ads/sites": {
15292
15342
  "get": {
15293
15343
  "operationId": "adsListSites",
@@ -16196,6 +16246,15 @@
16196
16246
  "type": "string"
16197
16247
  }
16198
16248
  },
16249
+ "emailDomain": {
16250
+ "name": "emailDomain",
16251
+ "in": "path",
16252
+ "required": true,
16253
+ "description": "Email domain",
16254
+ "schema": {
16255
+ "type": "string"
16256
+ }
16257
+ },
16199
16258
  "xGitBookPartnerKey": {
16200
16259
  "in": "header",
16201
16260
  "name": "X-GitBook-Partner-Key",
@@ -19634,6 +19693,9 @@
19634
19693
  {
19635
19694
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
19636
19695
  },
19696
+ {
19697
+ "$ref": "#/components/schemas/DocumentBlockImages"
19698
+ },
19637
19699
  {
19638
19700
  "$ref": "#/components/schemas/DocumentBlockCode"
19639
19701
  },
@@ -30935,6 +30997,26 @@
30935
30997
  "enabled"
30936
30998
  ]
30937
30999
  },
31000
+ "ai": {
31001
+ "type": "object",
31002
+ "properties": {
31003
+ "pageLinkSummaries": {
31004
+ "type": "object",
31005
+ "properties": {
31006
+ "enabled": {
31007
+ "type": "boolean",
31008
+ "description": "If true, AI page links summaries is enabled"
31009
+ }
31010
+ },
31011
+ "required": [
31012
+ "enabled"
31013
+ ]
31014
+ }
31015
+ },
31016
+ "required": [
31017
+ "pageLinkSummaries"
31018
+ ]
31019
+ },
30938
31020
  "advancedCustomization": {
30939
31021
  "type": "object",
30940
31022
  "properties": {
package/spec/openapi.yaml CHANGED
@@ -68,6 +68,9 @@ tags:
68
68
  - name: custom-hostnames
69
69
  x-page-title: Custom hostnames
70
70
  x-page-description: Configure and manage custom hostnames for your docs sites.
71
+ - name: email-domains
72
+ x-page-title: Email domains
73
+ x-page-description: Configure and manage email domains for organizations.
71
74
  - name: ads
72
75
  x-page-title: Ads
73
76
  x-page-description: Manage advertisement settings and placements.
@@ -8511,6 +8514,32 @@ paths:
8511
8514
  description: Custom hostname has been removed
8512
8515
  default:
8513
8516
  $ref: "#/components/responses/UnexpectedError"
8517
+ "/email-domains/{emailDomain}/orgs":
8518
+ get:
8519
+ operationId: getOrganizationsForEmailDomain
8520
+ summary: Get all organizations by email domain.
8521
+ tags:
8522
+ - email-domains
8523
+ security:
8524
+ - user-internal: []
8525
+ parameters:
8526
+ - $ref: "#/components/parameters/emailDomain"
8527
+ responses:
8528
+ "200":
8529
+ description: OK
8530
+ content:
8531
+ application/json:
8532
+ schema:
8533
+ type: object
8534
+ properties:
8535
+ organizations:
8536
+ type: array
8537
+ items:
8538
+ $ref: "#/components/schemas/Organization"
8539
+ required:
8540
+ - organizaitons
8541
+ default:
8542
+ $ref: "#/components/responses/UnexpectedError"
8514
8543
  /ads/sites:
8515
8544
  get:
8516
8545
  operationId: adsListSites
@@ -9142,6 +9171,13 @@ components:
9142
9171
  description: The custom hostname, for example "docs.gitbook.com"
9143
9172
  schema:
9144
9173
  type: string
9174
+ emailDomain:
9175
+ name: emailDomain
9176
+ in: path
9177
+ required: true
9178
+ description: Email domain
9179
+ schema:
9180
+ type: string
9145
9181
  xGitBookPartnerKey:
9146
9182
  in: header
9147
9183
  name: X-GitBook-Partner-Key
@@ -11407,6 +11443,7 @@ components:
11407
11443
  items:
11408
11444
  oneOf:
11409
11445
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
11446
+ - $ref: "#/components/schemas/DocumentBlockImages"
11410
11447
  - $ref: "#/components/schemas/DocumentBlockCode"
11411
11448
  - $ref: "#/components/schemas/DocumentBlockTable"
11412
11449
  - $ref: "#/components/schemas/DocumentBlockHint"
@@ -18881,6 +18918,19 @@ components:
18881
18918
  description: If true, AI search is enabled
18882
18919
  required:
18883
18920
  - enabled
18921
+ ai:
18922
+ type: object
18923
+ properties:
18924
+ pageLinkSummaries:
18925
+ type: object
18926
+ properties:
18927
+ enabled:
18928
+ type: boolean
18929
+ description: If true, AI page links summaries is enabled
18930
+ required:
18931
+ - enabled
18932
+ required:
18933
+ - pageLinkSummaries
18884
18934
  advancedCustomization:
18885
18935
  type: object
18886
18936
  properties: