@gitbook/api 0.45.0 → 0.46.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 +3 -0
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/spec/openapi.json +6 -0
- package/spec/openapi.yaml +5 -0
package/dist/client.d.ts
CHANGED
|
@@ -439,6 +439,8 @@ export declare type Embed = {
|
|
|
439
439
|
html: string;
|
|
440
440
|
} | {
|
|
441
441
|
type: 'integration';
|
|
442
|
+
/** The identifier of the integration performing the rendering */
|
|
443
|
+
integration: string;
|
|
442
444
|
block: IntegrationBlock;
|
|
443
445
|
});
|
|
444
446
|
export declare type Comment = {
|
|
@@ -2604,6 +2606,7 @@ export declare enum IntegrationScope {
|
|
|
2604
2606
|
SpaceScriptCookies = "space:script:cookies",
|
|
2605
2607
|
SpaceGitSync = "space:git:sync",
|
|
2606
2608
|
SpaceVisitorAuth = "space:visitor:auth",
|
|
2609
|
+
SiteMetadataRead = "site:metadata:read",
|
|
2607
2610
|
SiteViewsRead = "site:views:read",
|
|
2608
2611
|
SiteScriptInject = "site:script:inject",
|
|
2609
2612
|
SiteScriptCookies = "site:script:cookies",
|
package/dist/index.cjs
CHANGED
|
@@ -239,7 +239,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
239
239
|
|
|
240
240
|
// package.json
|
|
241
241
|
var name = "@gitbook/api";
|
|
242
|
-
var version = "0.
|
|
242
|
+
var version = "0.46.0";
|
|
243
243
|
|
|
244
244
|
// src/client.ts
|
|
245
245
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -515,6 +515,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
515
515
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
516
516
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
517
517
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
518
|
+
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
518
519
|
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
519
520
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
520
521
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
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.46.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -448,6 +448,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
448
448
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
449
449
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
450
450
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
451
|
+
IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
|
|
451
452
|
IntegrationScope2["SiteViewsRead"] = "site:views:read";
|
|
452
453
|
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
453
454
|
IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -1474,12 +1474,17 @@
|
|
|
1474
1474
|
"integration"
|
|
1475
1475
|
]
|
|
1476
1476
|
},
|
|
1477
|
+
"integration": {
|
|
1478
|
+
"description": "The identifier of the integration performing the rendering",
|
|
1479
|
+
"type": "string"
|
|
1480
|
+
},
|
|
1477
1481
|
"block": {
|
|
1478
1482
|
"$ref": "#/components/schemas/IntegrationBlock"
|
|
1479
1483
|
}
|
|
1480
1484
|
},
|
|
1481
1485
|
"required": [
|
|
1482
1486
|
"type",
|
|
1487
|
+
"integration",
|
|
1483
1488
|
"block"
|
|
1484
1489
|
]
|
|
1485
1490
|
}
|
|
@@ -8876,6 +8881,7 @@
|
|
|
8876
8881
|
"space:script:cookies",
|
|
8877
8882
|
"space:git:sync",
|
|
8878
8883
|
"space:visitor:auth",
|
|
8884
|
+
"site:metadata:read",
|
|
8879
8885
|
"site:views:read",
|
|
8880
8886
|
"site:script:inject",
|
|
8881
8887
|
"site:script:cookies",
|
package/spec/openapi.yaml
CHANGED
|
@@ -1073,10 +1073,14 @@ components:
|
|
|
1073
1073
|
type: string
|
|
1074
1074
|
enum:
|
|
1075
1075
|
- integration
|
|
1076
|
+
integration:
|
|
1077
|
+
description: The identifier of the integration performing the rendering
|
|
1078
|
+
type: string
|
|
1076
1079
|
block:
|
|
1077
1080
|
$ref: "#/components/schemas/IntegrationBlock"
|
|
1078
1081
|
required:
|
|
1079
1082
|
- type
|
|
1083
|
+
- integration
|
|
1080
1084
|
- block
|
|
1081
1085
|
Comment:
|
|
1082
1086
|
allOf:
|
|
@@ -5953,6 +5957,7 @@ components:
|
|
|
5953
5957
|
- space:script:cookies
|
|
5954
5958
|
- space:git:sync
|
|
5955
5959
|
- space:visitor:auth
|
|
5960
|
+
- site:metadata:read
|
|
5956
5961
|
- site:views:read
|
|
5957
5962
|
- site:script:inject
|
|
5958
5963
|
- site:script:cookies
|