@gitbook/api 0.207.0 → 0.209.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 +902 -524
- package/dist/constants.d.ts +9 -3
- package/dist/index.cjs +196 -65
- package/dist/index.js +189 -65
- package/package.json +1 -1
- package/spec/openapi.json +7254 -6380
- package/spec/openapi.yaml +6302 -5704
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.209.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -183,49 +183,134 @@ var ParseError = class extends Error {
|
|
|
183
183
|
super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
+
var LF = 10;
|
|
187
|
+
var CR = 13;
|
|
188
|
+
var SPACE = 32;
|
|
186
189
|
function noop(_arg) {
|
|
187
190
|
}
|
|
188
|
-
function createParser(
|
|
189
|
-
if (typeof
|
|
191
|
+
function createParser(config) {
|
|
192
|
+
if (typeof config == "function")
|
|
190
193
|
throw new TypeError(
|
|
191
|
-
"`
|
|
194
|
+
"`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
|
|
192
195
|
);
|
|
193
|
-
const { onEvent = noop, onError = noop, onRetry = noop, onComment } =
|
|
194
|
-
let
|
|
195
|
-
function feed(
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
const { onEvent = noop, onError = noop, onRetry = noop, onComment, maxBufferSize } = config, pendingFragments = [];
|
|
197
|
+
let pendingFragmentsLength = 0, isFirstChunk = true, id, data = "", dataLines = 0, eventType, terminated = false;
|
|
198
|
+
function feed(chunk) {
|
|
199
|
+
if (terminated)
|
|
200
|
+
throw new Error(
|
|
201
|
+
"Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
|
|
202
|
+
);
|
|
203
|
+
if (isFirstChunk && (isFirstChunk = false, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
|
|
204
|
+
const trailing2 = processLines(chunk);
|
|
205
|
+
trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (chunk.indexOf(`
|
|
209
|
+
`) === -1 && chunk.indexOf("\r") === -1) {
|
|
210
|
+
pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
pendingFragments.push(chunk);
|
|
214
|
+
const input = pendingFragments.join("");
|
|
215
|
+
pendingFragments.length = 0, pendingFragmentsLength = 0;
|
|
216
|
+
const trailing = processLines(input);
|
|
217
|
+
trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
|
|
218
|
+
}
|
|
219
|
+
function checkBufferSize() {
|
|
220
|
+
maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = true, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
|
|
221
|
+
new ParseError(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
|
|
222
|
+
type: "max-buffer-size-exceeded"
|
|
223
|
+
})
|
|
224
|
+
)));
|
|
225
|
+
}
|
|
226
|
+
function processLines(chunk) {
|
|
227
|
+
let searchIndex = 0;
|
|
228
|
+
if (chunk.indexOf("\r") === -1) {
|
|
229
|
+
let lfIndex = chunk.indexOf(`
|
|
230
|
+
`, searchIndex);
|
|
231
|
+
for (; lfIndex !== -1; ) {
|
|
232
|
+
if (searchIndex === lfIndex) {
|
|
233
|
+
dataLines > 0 && onEvent({ id, event: eventType, data }), id = void 0, data = "", dataLines = 0, eventType = void 0, searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
|
|
234
|
+
`, searchIndex);
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
const firstCharCode = chunk.charCodeAt(searchIndex);
|
|
238
|
+
if (isDataPrefix(chunk, searchIndex, firstCharCode)) {
|
|
239
|
+
const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE ? searchIndex + 6 : searchIndex + 5, value = chunk.slice(valueStart, lfIndex);
|
|
240
|
+
if (dataLines === 0 && chunk.charCodeAt(lfIndex + 1) === LF) {
|
|
241
|
+
onEvent({ id, event: eventType, data: value }), id = void 0, data = "", eventType = void 0, searchIndex = lfIndex + 2, lfIndex = chunk.indexOf(`
|
|
242
|
+
`, searchIndex);
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
data = dataLines === 0 ? value : `${data}
|
|
246
|
+
${value}`, dataLines++;
|
|
247
|
+
} else
|
|
248
|
+
isEventPrefix(chunk, searchIndex, firstCharCode) ? eventType = chunk.slice(
|
|
249
|
+
chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6,
|
|
250
|
+
lfIndex
|
|
251
|
+
) || void 0 : parseLine(chunk, searchIndex, lfIndex);
|
|
252
|
+
searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
|
|
253
|
+
`, searchIndex);
|
|
254
|
+
}
|
|
255
|
+
return chunk.slice(searchIndex);
|
|
256
|
+
}
|
|
257
|
+
for (; searchIndex < chunk.length; ) {
|
|
258
|
+
const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
|
|
259
|
+
`, searchIndex);
|
|
260
|
+
let lineEnd = -1;
|
|
261
|
+
if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = crIndex < lfIndex ? crIndex : lfIndex : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1)
|
|
262
|
+
break;
|
|
263
|
+
parseLine(chunk, searchIndex, lineEnd), searchIndex = lineEnd + 1, chunk.charCodeAt(searchIndex - 1) === CR && chunk.charCodeAt(searchIndex) === LF && searchIndex++;
|
|
264
|
+
}
|
|
265
|
+
return chunk.slice(searchIndex);
|
|
200
266
|
}
|
|
201
|
-
function parseLine(
|
|
202
|
-
if (
|
|
267
|
+
function parseLine(chunk, start, end) {
|
|
268
|
+
if (start === end) {
|
|
203
269
|
dispatchEvent();
|
|
204
270
|
return;
|
|
205
271
|
}
|
|
206
|
-
|
|
207
|
-
|
|
272
|
+
const firstCharCode = chunk.charCodeAt(start);
|
|
273
|
+
if (isDataPrefix(chunk, start, firstCharCode)) {
|
|
274
|
+
const valueStart = chunk.charCodeAt(start + 5) === SPACE ? start + 6 : start + 5, value2 = chunk.slice(valueStart, end);
|
|
275
|
+
data = dataLines === 0 ? value2 : `${data}
|
|
276
|
+
${value2}`, dataLines++;
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
if (isEventPrefix(chunk, start, firstCharCode)) {
|
|
280
|
+
eventType = chunk.slice(chunk.charCodeAt(start + 6) === SPACE ? start + 7 : start + 6, end) || void 0;
|
|
208
281
|
return;
|
|
209
282
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
processField(field, value, line);
|
|
283
|
+
if (firstCharCode === 105 && chunk.charCodeAt(start + 1) === 100 && chunk.charCodeAt(start + 2) === 58) {
|
|
284
|
+
const value2 = chunk.slice(chunk.charCodeAt(start + 3) === SPACE ? start + 4 : start + 3, end);
|
|
285
|
+
value2.includes("\0") || (id = value2);
|
|
214
286
|
return;
|
|
215
287
|
}
|
|
216
|
-
|
|
288
|
+
if (firstCharCode === 58) {
|
|
289
|
+
if (onComment) {
|
|
290
|
+
const line2 = chunk.slice(start, end);
|
|
291
|
+
onComment(line2.slice(chunk.charCodeAt(start + 1) === SPACE ? 2 : 1));
|
|
292
|
+
}
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const line = chunk.slice(start, end), fieldSeparatorIndex = line.indexOf(":");
|
|
296
|
+
if (fieldSeparatorIndex === -1) {
|
|
297
|
+
processField(line, "", line);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
const field = line.slice(0, fieldSeparatorIndex), offset = line.charCodeAt(fieldSeparatorIndex + 1) === SPACE ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
|
|
301
|
+
processField(field, value, line);
|
|
217
302
|
}
|
|
218
303
|
function processField(field, value, line) {
|
|
219
304
|
switch (field) {
|
|
220
305
|
case "event":
|
|
221
|
-
eventType = value;
|
|
306
|
+
eventType = value || void 0;
|
|
222
307
|
break;
|
|
223
308
|
case "data":
|
|
224
|
-
data = `${data}
|
|
225
|
-
|
|
309
|
+
data = dataLines === 0 ? value : `${data}
|
|
310
|
+
${value}`, dataLines++;
|
|
226
311
|
break;
|
|
227
312
|
case "id":
|
|
228
|
-
|
|
313
|
+
value.includes("\0") || (id = value);
|
|
229
314
|
break;
|
|
230
315
|
case "retry":
|
|
231
316
|
/^\d+$/.test(value) ? onRetry(parseInt(value, 10)) : onError(
|
|
@@ -247,35 +332,26 @@ function createParser(callbacks) {
|
|
|
247
332
|
}
|
|
248
333
|
}
|
|
249
334
|
function dispatchEvent() {
|
|
250
|
-
|
|
335
|
+
dataLines > 0 && onEvent({
|
|
251
336
|
id,
|
|
252
|
-
event: eventType
|
|
253
|
-
data
|
|
254
|
-
|
|
255
|
-
}), id = void 0, data = "", eventType = "";
|
|
337
|
+
event: eventType,
|
|
338
|
+
data
|
|
339
|
+
}), id = void 0, data = "", dataLines = 0, eventType = void 0;
|
|
256
340
|
}
|
|
257
341
|
function reset(options = {}) {
|
|
258
|
-
|
|
342
|
+
if (options.consume && pendingFragments.length > 0) {
|
|
343
|
+
const incompleteLine = pendingFragments.join("");
|
|
344
|
+
parseLine(incompleteLine, 0, incompleteLine.length);
|
|
345
|
+
}
|
|
346
|
+
isFirstChunk = true, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = false;
|
|
259
347
|
}
|
|
260
348
|
return { feed, reset };
|
|
261
349
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
`, searchIndex);
|
|
268
|
-
let lineEnd = -1;
|
|
269
|
-
if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = Math.min(crIndex, lfIndex) : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1) {
|
|
270
|
-
incompleteLine = chunk.slice(searchIndex);
|
|
271
|
-
break;
|
|
272
|
-
} else {
|
|
273
|
-
const line = chunk.slice(searchIndex, lineEnd);
|
|
274
|
-
lines.push(line), searchIndex = lineEnd + 1, chunk[searchIndex - 1] === "\r" && chunk[searchIndex] === `
|
|
275
|
-
` && searchIndex++;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
return [lines, incompleteLine];
|
|
350
|
+
function isDataPrefix(chunk, i, firstCharCode) {
|
|
351
|
+
return firstCharCode === 100 && chunk.charCodeAt(i + 1) === 97 && chunk.charCodeAt(i + 2) === 116 && chunk.charCodeAt(i + 3) === 97 && chunk.charCodeAt(i + 4) === 58;
|
|
352
|
+
}
|
|
353
|
+
function isEventPrefix(chunk, i, firstCharCode) {
|
|
354
|
+
return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
|
|
279
355
|
}
|
|
280
356
|
|
|
281
357
|
// src/client.ts
|
|
@@ -593,6 +669,12 @@ var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
|
|
|
593
669
|
SiteInsightsLinkPosition2["Content"] = "content";
|
|
594
670
|
return SiteInsightsLinkPosition2;
|
|
595
671
|
})(SiteInsightsLinkPosition || {});
|
|
672
|
+
var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
673
|
+
PageFeedbackRating2["Bad"] = "bad";
|
|
674
|
+
PageFeedbackRating2["Ok"] = "ok";
|
|
675
|
+
PageFeedbackRating2["Good"] = "good";
|
|
676
|
+
return PageFeedbackRating2;
|
|
677
|
+
})(PageFeedbackRating || {});
|
|
596
678
|
var SiteInsightsMarkdownSource = /* @__PURE__ */ ((SiteInsightsMarkdownSource2) => {
|
|
597
679
|
SiteInsightsMarkdownSource2["PageAction"] = "page-action";
|
|
598
680
|
return SiteInsightsMarkdownSource2;
|
|
@@ -649,6 +731,13 @@ var SiteQuestionAnswerHelpfulness = /* @__PURE__ */ ((SiteQuestionAnswerHelpfuln
|
|
|
649
731
|
SiteQuestionAnswerHelpfulness2["High"] = "high";
|
|
650
732
|
return SiteQuestionAnswerHelpfulness2;
|
|
651
733
|
})(SiteQuestionAnswerHelpfulness || {});
|
|
734
|
+
var SiteQuestionTimelineInterval = /* @__PURE__ */ ((SiteQuestionTimelineInterval2) => {
|
|
735
|
+
SiteQuestionTimelineInterval2["Hour"] = "hour";
|
|
736
|
+
SiteQuestionTimelineInterval2["Day"] = "day";
|
|
737
|
+
SiteQuestionTimelineInterval2["Week"] = "week";
|
|
738
|
+
SiteQuestionTimelineInterval2["Month"] = "month";
|
|
739
|
+
return SiteQuestionTimelineInterval2;
|
|
740
|
+
})(SiteQuestionTimelineInterval || {});
|
|
652
741
|
var SiteQuestionAnswerResolution = /* @__PURE__ */ ((SiteQuestionAnswerResolution2) => {
|
|
653
742
|
SiteQuestionAnswerResolution2["No"] = "no";
|
|
654
743
|
SiteQuestionAnswerResolution2["Partially"] = "partially";
|
|
@@ -1223,12 +1312,6 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
|
1223
1312
|
SiteType2["Sponsored"] = "sponsored";
|
|
1224
1313
|
return SiteType2;
|
|
1225
1314
|
})(SiteType || {});
|
|
1226
|
-
var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
1227
|
-
PageFeedbackRating2["Bad"] = "bad";
|
|
1228
|
-
PageFeedbackRating2["Ok"] = "ok";
|
|
1229
|
-
PageFeedbackRating2["Good"] = "good";
|
|
1230
|
-
return PageFeedbackRating2;
|
|
1231
|
-
})(PageFeedbackRating || {});
|
|
1232
1315
|
var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
|
|
1233
1316
|
IntegrationInstallationSiteSelection2["All"] = "all";
|
|
1234
1317
|
IntegrationInstallationSiteSelection2["Selected"] = "selected";
|
|
@@ -1350,6 +1433,7 @@ var MemberDisabledReason = /* @__PURE__ */ ((MemberDisabledReason2) => {
|
|
|
1350
1433
|
MemberDisabledReason2["Billing"] = "billing";
|
|
1351
1434
|
MemberDisabledReason2["Scim"] = "scim";
|
|
1352
1435
|
MemberDisabledReason2["Admin"] = "admin";
|
|
1436
|
+
MemberDisabledReason2["Gitbook"] = "gitbook";
|
|
1353
1437
|
return MemberDisabledReason2;
|
|
1354
1438
|
})(MemberDisabledReason || {});
|
|
1355
1439
|
var RevisionPageLayoutPreset = /* @__PURE__ */ ((RevisionPageLayoutPreset2) => {
|
|
@@ -1438,6 +1522,7 @@ var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
|
1438
1522
|
DocumentTextColor2["Violet"] = "violet";
|
|
1439
1523
|
DocumentTextColor2["Cyan"] = "cyan";
|
|
1440
1524
|
DocumentTextColor2["Primary"] = "$primary";
|
|
1525
|
+
DocumentTextColor2["Secondary"] = "$secondary";
|
|
1441
1526
|
DocumentTextColor2["Info"] = "$info";
|
|
1442
1527
|
DocumentTextColor2["Success"] = "$success";
|
|
1443
1528
|
DocumentTextColor2["Warning"] = "$warning";
|
|
@@ -2804,6 +2889,33 @@ var Api = class extends HttpClient {
|
|
|
2804
2889
|
format: "json",
|
|
2805
2890
|
...params
|
|
2806
2891
|
}),
|
|
2892
|
+
createIntegrationOAuthTransaction: (integrationName, installationId, data, params = {}) => this.request({
|
|
2893
|
+
path: `/integrations/${integrationName}/installations/${installationId}/oauth-transactions`,
|
|
2894
|
+
method: "POST",
|
|
2895
|
+
body: data,
|
|
2896
|
+
secure: true,
|
|
2897
|
+
type: "application/json" /* Json */,
|
|
2898
|
+
format: "json",
|
|
2899
|
+
...params
|
|
2900
|
+
}),
|
|
2901
|
+
consumeIntegrationOAuthTransaction: (integrationName, transactionId, data, params = {}) => this.request({
|
|
2902
|
+
path: `/integrations/${integrationName}/oauth-transactions/${transactionId}/consume`,
|
|
2903
|
+
method: "POST",
|
|
2904
|
+
body: data,
|
|
2905
|
+
secure: true,
|
|
2906
|
+
type: "application/json" /* Json */,
|
|
2907
|
+
format: "json",
|
|
2908
|
+
...params
|
|
2909
|
+
}),
|
|
2910
|
+
confirmIntegrationOAuthTransaction: (integrationName, transactionId, data, params = {}) => this.request({
|
|
2911
|
+
path: `/integrations/${integrationName}/oauth-transactions/${transactionId}/confirm`,
|
|
2912
|
+
method: "POST",
|
|
2913
|
+
body: data,
|
|
2914
|
+
secure: true,
|
|
2915
|
+
type: "application/json" /* Json */,
|
|
2916
|
+
format: "json",
|
|
2917
|
+
...params
|
|
2918
|
+
}),
|
|
2807
2919
|
listIntegrationInstallationSpaces: (integrationName, installationId, query, params = {}) => this.request({
|
|
2808
2920
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
2809
2921
|
method: "GET",
|
|
@@ -4074,15 +4186,6 @@ var Api = class extends HttpClient {
|
|
|
4074
4186
|
format: "json",
|
|
4075
4187
|
...params
|
|
4076
4188
|
}),
|
|
4077
|
-
updateSiteFindingById: (organizationId, siteId, siteFindingId, data, params = {}) => this.request({
|
|
4078
|
-
path: `/orgs/${organizationId}/sites/${siteId}/findings/${siteFindingId}`,
|
|
4079
|
-
method: "PATCH",
|
|
4080
|
-
body: data,
|
|
4081
|
-
secure: true,
|
|
4082
|
-
type: "application/json" /* Json */,
|
|
4083
|
-
format: "json",
|
|
4084
|
-
...params
|
|
4085
|
-
}),
|
|
4086
4189
|
listChangeRequestsForSiteFinding: (organizationId, siteId, siteFindingId, query, params = {}) => this.request({
|
|
4087
4190
|
path: `/orgs/${organizationId}/sites/${siteId}/findings/${siteFindingId}/change-requests`,
|
|
4088
4191
|
method: "GET",
|
|
@@ -4252,6 +4355,14 @@ var Api = class extends HttpClient {
|
|
|
4252
4355
|
format: "json",
|
|
4253
4356
|
...params
|
|
4254
4357
|
}),
|
|
4358
|
+
getSiteQuestionTimeline: (organizationId, siteId, query, params = {}) => this.request({
|
|
4359
|
+
path: `/orgs/${organizationId}/sites/${siteId}/question-timeline`,
|
|
4360
|
+
method: "GET",
|
|
4361
|
+
query,
|
|
4362
|
+
secure: true,
|
|
4363
|
+
format: "json",
|
|
4364
|
+
...params
|
|
4365
|
+
}),
|
|
4255
4366
|
listSiteQuestionAnswers: (organizationId, siteId, query, params = {}) => this.request({
|
|
4256
4367
|
path: `/orgs/${organizationId}/sites/${siteId}/answers`,
|
|
4257
4368
|
method: "GET",
|
|
@@ -4880,7 +4991,7 @@ var MEMBER_ROLE_ENUM = ["admin", "create", "edit", "review", "comment", "read"];
|
|
|
4880
4991
|
var ORGANIZATION_TEAM_TITLE_MAX_LENGTH = 64;
|
|
4881
4992
|
var ORGANIZATION_TEAM_TITLE_MIN_LENGTH = 1;
|
|
4882
4993
|
var ICON_MAX_LENGTH = 50;
|
|
4883
|
-
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
4994
|
+
var DOCUMENT_TEXT_COLOR_ENUM = ["default", "green", "blue", "red", "orange", "yellow", "purple", "pink", "violet", "cyan", "$primary", "$secondary", "$info", "$success", "$warning", "$danger", "$tint"];
|
|
4884
4995
|
var TEXT_ALIGNMENT_ENUM = ["start", "center", "end"];
|
|
4885
4996
|
var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
4886
4997
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
@@ -4897,9 +5008,14 @@ var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
|
|
|
4897
5008
|
var CHANGE_REQUEST_LINK_TITLE_MAX_LENGTH = 128;
|
|
4898
5009
|
var CHANGE_REQUEST_ORDER_BY_ENUM = ["updatedAt", "createdAt"];
|
|
4899
5010
|
var CHANGE_REQUEST_REVIEW_STATUS_ENUM = ["changes-requested", "approved"];
|
|
5011
|
+
var VARIABLE_NAME_MAX_LENGTH = 64;
|
|
5012
|
+
var VARIABLE_NAME_MIN_LENGTH = 1;
|
|
5013
|
+
var VARIABLE_NAME_PATTERN = "^[a-zA-Z_$][a-zA-Z0-9_$]*$";
|
|
5014
|
+
var REVISION_TAG_LABEL_MAX_LENGTH = 50;
|
|
5015
|
+
var REVISION_TAG_LABEL_MIN_LENGTH = 1;
|
|
4900
5016
|
var REVISION_PAGE_TYPE_ENUM = ["document", "group", "link", "computed"];
|
|
4901
5017
|
var REVISION_PAGE_LAYOUT_PRESET_ENUM = ["docs", "editorial", "landing"];
|
|
4902
|
-
var MEMBER_DISABLED_REASON_ENUM = ["billing", "scim", "admin"];
|
|
5018
|
+
var MEMBER_DISABLED_REASON_ENUM = ["billing", "scim", "admin", "gitbook"];
|
|
4903
5019
|
var INTEGRATION_TITLE_MAX_LENGTH = 30;
|
|
4904
5020
|
var INTEGRATION_TITLE_MIN_LENGTH = 2;
|
|
4905
5021
|
var INTEGRATION_DESCRIPTION_MAX_LENGTH = 100;
|
|
@@ -4930,7 +5046,6 @@ var COLLECTION_DESCRIPTION_MIN_LENGTH = 0;
|
|
|
4930
5046
|
var INTEGRATION_INSTALLATION_STATUS_ENUM = ["active", "pending", "paused"];
|
|
4931
5047
|
var INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM = ["all", "selected"];
|
|
4932
5048
|
var INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM = ["all", "selected"];
|
|
4933
|
-
var PAGE_FEEDBACK_RATING_ENUM = ["bad", "ok", "good"];
|
|
4934
5049
|
var SITE_TYPE_ENUM = ["basic", "premium", "ultimate", "sponsored"];
|
|
4935
5050
|
var SITE_TITLE_MAX_LENGTH = 128;
|
|
4936
5051
|
var SITE_TITLE_MIN_LENGTH = 2;
|
|
@@ -5063,6 +5178,7 @@ var SITE_CORE_CHANNEL_TYPE_ENUM = ["site", "embed", "api"];
|
|
|
5063
5178
|
var SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM = ["builtin:slack", "builtin:discord", "builtin:github", "builtin:linear"];
|
|
5064
5179
|
var SITE_QUESTION_VISITOR_TYPE_ENUM = ["human", "agent", "bot", "unknown"];
|
|
5065
5180
|
var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
|
|
5181
|
+
var SITE_QUESTION_TIMELINE_INTERVAL_ENUM = ["hour", "day", "week", "month"];
|
|
5066
5182
|
var SITE_QUESTION_ANSWER_HELPFULNESS_ENUM = ["low", "medium", "high"];
|
|
5067
5183
|
var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
|
|
5068
5184
|
var AIMESSAGE_STEP_START_CONDITION_ENUM = ["compaction"];
|
|
@@ -5073,6 +5189,7 @@ var SITE_SETTINGS_SCAN_TOPICS_ENUM = ["auto", "never"];
|
|
|
5073
5189
|
var SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM = ["always", "auto-fixable", "never"];
|
|
5074
5190
|
var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "server", "embed", "mcp"];
|
|
5075
5191
|
var SITE_INSIGHTS_MARKDOWN_SOURCE_ENUM = ["page-action"];
|
|
5192
|
+
var PAGE_FEEDBACK_RATING_ENUM = ["bad", "ok", "good"];
|
|
5076
5193
|
var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
|
|
5077
5194
|
var SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM = ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
5078
5195
|
var SITE_INSIGHTS_AD_PLACEMENT_ENUM = ["aside"];
|
|
@@ -5427,6 +5544,8 @@ export {
|
|
|
5427
5544
|
REVISION_PAGE_SLUG_MIN_LENGTH,
|
|
5428
5545
|
REVISION_PAGE_TYPE_ENUM,
|
|
5429
5546
|
REVISION_SEMANTIC_CHANGE_TYPE_ENUM,
|
|
5547
|
+
REVISION_TAG_LABEL_MAX_LENGTH,
|
|
5548
|
+
REVISION_TAG_LABEL_MIN_LENGTH,
|
|
5430
5549
|
RevisionPageDocumentCoverTextColor,
|
|
5431
5550
|
RevisionPageLayoutOptionsCoverMask,
|
|
5432
5551
|
RevisionPageLayoutOptionsCoverSize,
|
|
@@ -5499,6 +5618,7 @@ export {
|
|
|
5499
5618
|
SITE_QUESTION_ANSWER_RELEVANCE_ENUM,
|
|
5500
5619
|
SITE_QUESTION_ANSWER_RESOLUTION_ENUM,
|
|
5501
5620
|
SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM,
|
|
5621
|
+
SITE_QUESTION_TIMELINE_INTERVAL_ENUM,
|
|
5502
5622
|
SITE_QUESTION_TYPE_ENUM,
|
|
5503
5623
|
SITE_QUESTION_VISITOR_TYPE_ENUM,
|
|
5504
5624
|
SITE_REDIRECT_ORDER_BY_ENUM,
|
|
@@ -5572,6 +5692,7 @@ export {
|
|
|
5572
5692
|
SiteQuestionAnswerRelevance,
|
|
5573
5693
|
SiteQuestionAnswerResolution,
|
|
5574
5694
|
SiteQuestionAnswerSourceType,
|
|
5695
|
+
SiteQuestionTimelineInterval,
|
|
5575
5696
|
SiteQuestionType,
|
|
5576
5697
|
SiteQuestionVisitorType,
|
|
5577
5698
|
SiteRedirectOrderBy,
|
|
@@ -5595,6 +5716,9 @@ export {
|
|
|
5595
5716
|
TranslationLanguage,
|
|
5596
5717
|
TranslationStatus,
|
|
5597
5718
|
URL_MAX_LENGTH,
|
|
5719
|
+
VARIABLE_NAME_MAX_LENGTH,
|
|
5720
|
+
VARIABLE_NAME_MIN_LENGTH,
|
|
5721
|
+
VARIABLE_NAME_PATTERN,
|
|
5598
5722
|
VERTICAL_ALIGNMENT_ENUM,
|
|
5599
5723
|
VerticalAlignment,
|
|
5600
5724
|
YOUTUBE_CHANNEL_ID_PATTERN,
|