@gitbook/api 0.4.0 → 0.6.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 +317 -26
- package/dist/index.cjs +59 -0
- package/dist/index.js +59 -0
- package/package.json +1 -1
- package/spec/openapi.json +1123 -60
- package/spec/openapi.yaml +664 -34
package/dist/index.cjs
CHANGED
|
@@ -163,6 +163,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
|
|
|
163
163
|
})(AnalyticsTrafficInterval || {});
|
|
164
164
|
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
165
165
|
IntegrationScope2["OrganizationEntitiesWrite"] = "organization:entities:write";
|
|
166
|
+
IntegrationScope2["RecordingWrite"] = "recording:write";
|
|
166
167
|
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
167
168
|
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
168
169
|
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
@@ -170,6 +171,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
170
171
|
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
171
172
|
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
172
173
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
174
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
173
175
|
return IntegrationScope2;
|
|
174
176
|
})(IntegrationScope || {});
|
|
175
177
|
var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
|
|
@@ -254,6 +256,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
254
256
|
ContentKitIcon2["Close"] = "close";
|
|
255
257
|
ContentKitIcon2["Edit"] = "edit";
|
|
256
258
|
ContentKitIcon2["Github"] = "github";
|
|
259
|
+
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
257
260
|
ContentKitIcon2["Maximize"] = "maximize";
|
|
258
261
|
ContentKitIcon2["Email"] = "email";
|
|
259
262
|
ContentKitIcon2["Settings"] = "settings";
|
|
@@ -263,6 +266,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
263
266
|
ContentKitIcon2["Warning"] = "warning";
|
|
264
267
|
ContentKitIcon2["Link"] = "link";
|
|
265
268
|
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
269
|
+
ContentKitIcon2["Eye"] = "eye";
|
|
266
270
|
return ContentKitIcon2;
|
|
267
271
|
})(ContentKitIcon || {});
|
|
268
272
|
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
@@ -563,6 +567,13 @@ var Api = class extends HttpClient {
|
|
|
563
567
|
type: "application/json" /* Json */,
|
|
564
568
|
...params
|
|
565
569
|
}),
|
|
570
|
+
getSpaceGitInfo: (spaceId, params = {}) => this.request({
|
|
571
|
+
path: `/spaces/${spaceId}/git/info`,
|
|
572
|
+
method: "GET",
|
|
573
|
+
secure: true,
|
|
574
|
+
format: "json",
|
|
575
|
+
...params
|
|
576
|
+
}),
|
|
566
577
|
getContentAnalyticsForSpaceById: (spaceId, params = {}) => this.request({
|
|
567
578
|
path: `/spaces/${spaceId}/insights/content`,
|
|
568
579
|
method: "GET",
|
|
@@ -1228,6 +1239,13 @@ var Api = class extends HttpClient {
|
|
|
1228
1239
|
format: "json",
|
|
1229
1240
|
...params
|
|
1230
1241
|
}),
|
|
1242
|
+
getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
|
|
1243
|
+
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1244
|
+
method: "GET",
|
|
1245
|
+
secure: true,
|
|
1246
|
+
format: "json",
|
|
1247
|
+
...params
|
|
1248
|
+
}),
|
|
1231
1249
|
updateIntegrationInstallation: (integrationName, installationId, data, params = {}) => this.request({
|
|
1232
1250
|
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1233
1251
|
method: "PATCH",
|
|
@@ -1650,6 +1668,47 @@ var Api = class extends HttpClient {
|
|
|
1650
1668
|
method: "DELETE",
|
|
1651
1669
|
secure: true,
|
|
1652
1670
|
...params
|
|
1671
|
+
}),
|
|
1672
|
+
listRecordings: (organizationId, query, params = {}) => this.request({
|
|
1673
|
+
path: `/orgs/${organizationId}/recordings`,
|
|
1674
|
+
method: "GET",
|
|
1675
|
+
query,
|
|
1676
|
+
secure: true,
|
|
1677
|
+
format: "json",
|
|
1678
|
+
...params
|
|
1679
|
+
}),
|
|
1680
|
+
startRecording: (organizationId, data, params = {}) => this.request({
|
|
1681
|
+
path: `/orgs/${organizationId}/recordings`,
|
|
1682
|
+
method: "POST",
|
|
1683
|
+
body: data,
|
|
1684
|
+
secure: true,
|
|
1685
|
+
type: "application/json" /* Json */,
|
|
1686
|
+
format: "json",
|
|
1687
|
+
...params
|
|
1688
|
+
}),
|
|
1689
|
+
getRecording: (organizationId, recordingId, params = {}) => this.request({
|
|
1690
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}`,
|
|
1691
|
+
method: "GET",
|
|
1692
|
+
secure: true,
|
|
1693
|
+
format: "json",
|
|
1694
|
+
...params
|
|
1695
|
+
}),
|
|
1696
|
+
addEventsToRecording: (organizationId, recordingId, data, params = {}) => this.request({
|
|
1697
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/events`,
|
|
1698
|
+
method: "POST",
|
|
1699
|
+
body: data,
|
|
1700
|
+
secure: true,
|
|
1701
|
+
type: "application/json" /* Json */,
|
|
1702
|
+
...params
|
|
1703
|
+
}),
|
|
1704
|
+
stopRecording: (organizationId, recordingId, data, params = {}) => this.request({
|
|
1705
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/stop`,
|
|
1706
|
+
method: "POST",
|
|
1707
|
+
body: data,
|
|
1708
|
+
secure: true,
|
|
1709
|
+
type: "application/json" /* Json */,
|
|
1710
|
+
format: "json",
|
|
1711
|
+
...params
|
|
1653
1712
|
})
|
|
1654
1713
|
};
|
|
1655
1714
|
this.internal = {
|
package/dist/index.js
CHANGED
|
@@ -106,6 +106,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
|
|
|
106
106
|
})(AnalyticsTrafficInterval || {});
|
|
107
107
|
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
108
108
|
IntegrationScope2["OrganizationEntitiesWrite"] = "organization:entities:write";
|
|
109
|
+
IntegrationScope2["RecordingWrite"] = "recording:write";
|
|
109
110
|
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
110
111
|
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
111
112
|
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
@@ -113,6 +114,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
113
114
|
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
114
115
|
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
115
116
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
117
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
116
118
|
return IntegrationScope2;
|
|
117
119
|
})(IntegrationScope || {});
|
|
118
120
|
var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
|
|
@@ -197,6 +199,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
197
199
|
ContentKitIcon2["Close"] = "close";
|
|
198
200
|
ContentKitIcon2["Edit"] = "edit";
|
|
199
201
|
ContentKitIcon2["Github"] = "github";
|
|
202
|
+
ContentKitIcon2["Gitlab"] = "gitlab";
|
|
200
203
|
ContentKitIcon2["Maximize"] = "maximize";
|
|
201
204
|
ContentKitIcon2["Email"] = "email";
|
|
202
205
|
ContentKitIcon2["Settings"] = "settings";
|
|
@@ -206,6 +209,7 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
206
209
|
ContentKitIcon2["Warning"] = "warning";
|
|
207
210
|
ContentKitIcon2["Link"] = "link";
|
|
208
211
|
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
212
|
+
ContentKitIcon2["Eye"] = "eye";
|
|
209
213
|
return ContentKitIcon2;
|
|
210
214
|
})(ContentKitIcon || {});
|
|
211
215
|
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
@@ -506,6 +510,13 @@ var Api = class extends HttpClient {
|
|
|
506
510
|
type: "application/json" /* Json */,
|
|
507
511
|
...params
|
|
508
512
|
}),
|
|
513
|
+
getSpaceGitInfo: (spaceId, params = {}) => this.request({
|
|
514
|
+
path: `/spaces/${spaceId}/git/info`,
|
|
515
|
+
method: "GET",
|
|
516
|
+
secure: true,
|
|
517
|
+
format: "json",
|
|
518
|
+
...params
|
|
519
|
+
}),
|
|
509
520
|
getContentAnalyticsForSpaceById: (spaceId, params = {}) => this.request({
|
|
510
521
|
path: `/spaces/${spaceId}/insights/content`,
|
|
511
522
|
method: "GET",
|
|
@@ -1171,6 +1182,13 @@ var Api = class extends HttpClient {
|
|
|
1171
1182
|
format: "json",
|
|
1172
1183
|
...params
|
|
1173
1184
|
}),
|
|
1185
|
+
getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
|
|
1186
|
+
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1187
|
+
method: "GET",
|
|
1188
|
+
secure: true,
|
|
1189
|
+
format: "json",
|
|
1190
|
+
...params
|
|
1191
|
+
}),
|
|
1174
1192
|
updateIntegrationInstallation: (integrationName, installationId, data, params = {}) => this.request({
|
|
1175
1193
|
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1176
1194
|
method: "PATCH",
|
|
@@ -1593,6 +1611,47 @@ var Api = class extends HttpClient {
|
|
|
1593
1611
|
method: "DELETE",
|
|
1594
1612
|
secure: true,
|
|
1595
1613
|
...params
|
|
1614
|
+
}),
|
|
1615
|
+
listRecordings: (organizationId, query, params = {}) => this.request({
|
|
1616
|
+
path: `/orgs/${organizationId}/recordings`,
|
|
1617
|
+
method: "GET",
|
|
1618
|
+
query,
|
|
1619
|
+
secure: true,
|
|
1620
|
+
format: "json",
|
|
1621
|
+
...params
|
|
1622
|
+
}),
|
|
1623
|
+
startRecording: (organizationId, data, params = {}) => this.request({
|
|
1624
|
+
path: `/orgs/${organizationId}/recordings`,
|
|
1625
|
+
method: "POST",
|
|
1626
|
+
body: data,
|
|
1627
|
+
secure: true,
|
|
1628
|
+
type: "application/json" /* Json */,
|
|
1629
|
+
format: "json",
|
|
1630
|
+
...params
|
|
1631
|
+
}),
|
|
1632
|
+
getRecording: (organizationId, recordingId, params = {}) => this.request({
|
|
1633
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}`,
|
|
1634
|
+
method: "GET",
|
|
1635
|
+
secure: true,
|
|
1636
|
+
format: "json",
|
|
1637
|
+
...params
|
|
1638
|
+
}),
|
|
1639
|
+
addEventsToRecording: (organizationId, recordingId, data, params = {}) => this.request({
|
|
1640
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/events`,
|
|
1641
|
+
method: "POST",
|
|
1642
|
+
body: data,
|
|
1643
|
+
secure: true,
|
|
1644
|
+
type: "application/json" /* Json */,
|
|
1645
|
+
...params
|
|
1646
|
+
}),
|
|
1647
|
+
stopRecording: (organizationId, recordingId, data, params = {}) => this.request({
|
|
1648
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/stop`,
|
|
1649
|
+
method: "POST",
|
|
1650
|
+
body: data,
|
|
1651
|
+
secure: true,
|
|
1652
|
+
type: "application/json" /* Json */,
|
|
1653
|
+
format: "json",
|
|
1654
|
+
...params
|
|
1596
1655
|
})
|
|
1597
1656
|
};
|
|
1598
1657
|
this.internal = {
|