@gitbook/api 0.199.0 → 0.201.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 +305 -68
- package/dist/constants.d.ts +8 -0
- package/dist/index.cjs +67 -1
- package/dist/index.js +57 -1
- package/package.json +1 -1
- package/spec/openapi.json +762 -196
- package/spec/openapi.yaml +547 -142
package/dist/constants.d.ts
CHANGED
|
@@ -94,10 +94,13 @@ export declare const SITE_SPACE_PATH_MIN_LENGTH = 1;
|
|
|
94
94
|
export declare const SITE_SECTION_GROUP_TITLE_MAX_LENGTH = 100;
|
|
95
95
|
export declare const SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
96
96
|
export declare const TEAM_MEMBER_ROLE_ENUM: ["owner", "member"];
|
|
97
|
+
export declare const BILLING_CANCELLATION_COMMENT_MAX_LENGTH = 500;
|
|
98
|
+
export declare const BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
97
99
|
export declare const BILLING_COUPON_MAX_LENGTH = 500;
|
|
98
100
|
export declare const BILLING_COUPON_MIN_LENGTH = 1;
|
|
99
101
|
export declare const BILLING_METER_ENUM: ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
100
102
|
export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
103
|
+
export declare const ORGANIZATION_FEATURE_ENUM: ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
101
104
|
export declare const SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
|
|
102
105
|
export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
103
106
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
@@ -219,9 +222,14 @@ export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check
|
|
|
219
222
|
export declare const GIT_SYNC_RUN_OPERATION_ENUM: ["import", "export", "check", "merge", "recovery"];
|
|
220
223
|
export declare const GIT_SYNC_RUN_STATE_ENUM: ["queued", "running", "success", "failure", "timeout", "cancelled"];
|
|
221
224
|
export declare const GIT_PROVIDER_CHANGE_STATE_ENUM: ["open", "closed", "merged"];
|
|
225
|
+
export declare const SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH = 128;
|
|
226
|
+
export declare const SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH = 2;
|
|
227
|
+
export declare const SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH = 256;
|
|
228
|
+
export declare const SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH = 0;
|
|
222
229
|
export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
223
230
|
export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
224
231
|
export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];
|
|
225
232
|
export declare const SITE_ADS_STATUS_ENUM: ["pending", "in-review", "live", "rejected", "disabled"];
|
|
226
233
|
export declare const SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM: ["page", "record"];
|
|
227
234
|
export declare const AGENT_STATUS_ENUM: ["idle", "processing", "errored"];
|
|
235
|
+
export declare const AGENT_EDIT_SCOPE_ENUM: ["all", "read-only", "current-page", "modified-pages"];
|
package/dist/index.cjs
CHANGED
|
@@ -179,6 +179,7 @@ var require_node = __commonJS({
|
|
|
179
179
|
// src/index.ts
|
|
180
180
|
var src_exports = {};
|
|
181
181
|
__export(src_exports, {
|
|
182
|
+
AGENT_EDIT_SCOPE_ENUM: () => AGENT_EDIT_SCOPE_ENUM,
|
|
182
183
|
AGENT_FEEDBACK_SOURCE_ENUM: () => AGENT_FEEDBACK_SOURCE_ENUM,
|
|
183
184
|
AGENT_GOAL_MAX_LENGTH: () => AGENT_GOAL_MAX_LENGTH,
|
|
184
185
|
AGENT_STATUS_ENUM: () => AGENT_STATUS_ENUM,
|
|
@@ -193,9 +194,12 @@ __export(src_exports, {
|
|
|
193
194
|
APIINTEGRATION_SCOPE_ENUM: () => APIINTEGRATION_SCOPE_ENUM,
|
|
194
195
|
APIIntegrationScope: () => APIIntegrationScope,
|
|
195
196
|
APITOKEN_LABEL_MAX_LENGTH: () => APITOKEN_LABEL_MAX_LENGTH,
|
|
197
|
+
AgentEditScope: () => AgentEditScope,
|
|
196
198
|
AgentFeedbackSource: () => AgentFeedbackSource,
|
|
197
199
|
AgentStatus: () => AgentStatus,
|
|
198
200
|
Api: () => Api,
|
|
201
|
+
BILLING_CANCELLATION_COMMENT_MAX_LENGTH: () => BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
202
|
+
BILLING_CANCELLATION_COMMENT_MIN_LENGTH: () => BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
199
203
|
BILLING_COUPON_MAX_LENGTH: () => BILLING_COUPON_MAX_LENGTH,
|
|
200
204
|
BILLING_COUPON_MIN_LENGTH: () => BILLING_COUPON_MIN_LENGTH,
|
|
201
205
|
BILLING_INTERVAL_ENUM: () => BILLING_INTERVAL_ENUM,
|
|
@@ -371,6 +375,7 @@ __export(src_exports, {
|
|
|
371
375
|
OPEN_APISPEC_SLUG_PATTERN: () => OPEN_APISPEC_SLUG_PATTERN,
|
|
372
376
|
OPEN_APISPEC_VISIBILITY_ENUM: () => OPEN_APISPEC_VISIBILITY_ENUM,
|
|
373
377
|
ORGANIZATION_COMMUNITY_TYPE_ENUM: () => ORGANIZATION_COMMUNITY_TYPE_ENUM,
|
|
378
|
+
ORGANIZATION_FEATURE_ENUM: () => ORGANIZATION_FEATURE_ENUM,
|
|
374
379
|
ORGANIZATION_HOSTNAME_MAX_LENGTH: () => ORGANIZATION_HOSTNAME_MAX_LENGTH,
|
|
375
380
|
ORGANIZATION_HOSTNAME_MIN_LENGTH: () => ORGANIZATION_HOSTNAME_MIN_LENGTH,
|
|
376
381
|
ORGANIZATION_TEAM_TITLE_MAX_LENGTH: () => ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
|
|
@@ -384,6 +389,7 @@ __export(src_exports, {
|
|
|
384
389
|
OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
|
|
385
390
|
OpenAPISpecVisibility: () => OpenAPISpecVisibility,
|
|
386
391
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
392
|
+
OrganizationFeature: () => OrganizationFeature,
|
|
387
393
|
OrganizationType: () => OrganizationType,
|
|
388
394
|
OrganizationUseCase: () => OrganizationUseCase,
|
|
389
395
|
PAGE_FEEDBACK_RATING_ENUM: () => PAGE_FEEDBACK_RATING_ENUM,
|
|
@@ -424,6 +430,10 @@ __export(src_exports, {
|
|
|
424
430
|
SITE_CORE_CHANNEL_TYPE_ENUM: () => SITE_CORE_CHANNEL_TYPE_ENUM,
|
|
425
431
|
SITE_CUSTOMIZATION_FEATURE_ENUM: () => SITE_CUSTOMIZATION_FEATURE_ENUM,
|
|
426
432
|
SITE_EXTERNAL_LINKS_TARGET_ENUM: () => SITE_EXTERNAL_LINKS_TARGET_ENUM,
|
|
433
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH: () => SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH,
|
|
434
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH: () => SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH,
|
|
435
|
+
SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH: () => SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH,
|
|
436
|
+
SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH: () => SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH,
|
|
427
437
|
SITE_FEATURE_KEY_ENUM: () => SITE_FEATURE_KEY_ENUM,
|
|
428
438
|
SITE_FINDING_ORDER_BY_ENUM: () => SITE_FINDING_ORDER_BY_ENUM,
|
|
429
439
|
SITE_FINDING_SEVERITY_ENUM: () => SITE_FINDING_SEVERITY_ENUM,
|
|
@@ -552,7 +562,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
552
562
|
|
|
553
563
|
// package.json
|
|
554
564
|
var name = "@gitbook/api";
|
|
555
|
-
var version = "0.
|
|
565
|
+
var version = "0.201.0";
|
|
556
566
|
|
|
557
567
|
// src/client.ts
|
|
558
568
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -659,6 +669,13 @@ function splitLines(chunk) {
|
|
|
659
669
|
}
|
|
660
670
|
|
|
661
671
|
// src/client.ts
|
|
672
|
+
var AgentEditScope = /* @__PURE__ */ ((AgentEditScope2) => {
|
|
673
|
+
AgentEditScope2["All"] = "all";
|
|
674
|
+
AgentEditScope2["ReadOnly"] = "read-only";
|
|
675
|
+
AgentEditScope2["CurrentPage"] = "current-page";
|
|
676
|
+
AgentEditScope2["ModifiedPages"] = "modified-pages";
|
|
677
|
+
return AgentEditScope2;
|
|
678
|
+
})(AgentEditScope || {});
|
|
662
679
|
var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
|
|
663
680
|
AgentStatus2["Idle"] = "idle";
|
|
664
681
|
AgentStatus2["Processing"] = "processing";
|
|
@@ -1353,6 +1370,20 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
|
1353
1370
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
1354
1371
|
return SAMLProviderStatus2;
|
|
1355
1372
|
})(SAMLProviderStatus || {});
|
|
1373
|
+
var OrganizationFeature = /* @__PURE__ */ ((OrganizationFeature2) => {
|
|
1374
|
+
OrganizationFeature2["MaxMembers"] = "max-members";
|
|
1375
|
+
OrganizationFeature2["AiLens"] = "ai-lens";
|
|
1376
|
+
OrganizationFeature2["PdfExport"] = "pdf-export";
|
|
1377
|
+
OrganizationFeature2["AiWriting"] = "ai-writing";
|
|
1378
|
+
OrganizationFeature2["ReusableContent"] = "reusable-content";
|
|
1379
|
+
OrganizationFeature2["Translations"] = "translations";
|
|
1380
|
+
OrganizationFeature2["MembersAdvancedRoles"] = "members-advanced-roles";
|
|
1381
|
+
OrganizationFeature2["MembersTeams"] = "members-teams";
|
|
1382
|
+
OrganizationFeature2["MembersTeamOwners"] = "members-team-owners";
|
|
1383
|
+
OrganizationFeature2["SecuritySaml"] = "security-saml";
|
|
1384
|
+
OrganizationFeature2["ChangeRequestsMergeRules"] = "change-requests-merge-rules";
|
|
1385
|
+
return OrganizationFeature2;
|
|
1386
|
+
})(OrganizationFeature || {});
|
|
1356
1387
|
var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
1357
1388
|
BillingSwitchAction2["Trial"] = "trial";
|
|
1358
1389
|
BillingSwitchAction2["Upgrade"] = "upgrade";
|
|
@@ -4586,6 +4617,23 @@ var Api = class extends HttpClient {
|
|
|
4586
4617
|
format: "json",
|
|
4587
4618
|
...params
|
|
4588
4619
|
}),
|
|
4620
|
+
createSiteStyleguideRun: (organizationId, siteId, data, params = {}) => this.request({
|
|
4621
|
+
path: `/orgs/${organizationId}/sites/${siteId}/styleguide/runs`,
|
|
4622
|
+
method: "POST",
|
|
4623
|
+
body: data,
|
|
4624
|
+
secure: true,
|
|
4625
|
+
type: "application/json" /* Json */,
|
|
4626
|
+
format: "json",
|
|
4627
|
+
...params
|
|
4628
|
+
}),
|
|
4629
|
+
listSiteStyleguideRuns: (organizationId, siteId, query, params = {}) => this.request({
|
|
4630
|
+
path: `/orgs/${organizationId}/sites/${siteId}/styleguide/runs`,
|
|
4631
|
+
method: "GET",
|
|
4632
|
+
query,
|
|
4633
|
+
secure: true,
|
|
4634
|
+
format: "json",
|
|
4635
|
+
...params
|
|
4636
|
+
}),
|
|
4589
4637
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
4590
4638
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
4591
4639
|
method: "POST",
|
|
@@ -5062,10 +5110,13 @@ var SITE_SPACE_PATH_MIN_LENGTH = 1;
|
|
|
5062
5110
|
var SITE_SECTION_GROUP_TITLE_MAX_LENGTH = 100;
|
|
5063
5111
|
var SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
5064
5112
|
var TEAM_MEMBER_ROLE_ENUM = ["owner", "member"];
|
|
5113
|
+
var BILLING_CANCELLATION_COMMENT_MAX_LENGTH = 500;
|
|
5114
|
+
var BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
5065
5115
|
var BILLING_COUPON_MAX_LENGTH = 500;
|
|
5066
5116
|
var BILLING_COUPON_MIN_LENGTH = 1;
|
|
5067
5117
|
var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
5068
5118
|
var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
5119
|
+
var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
5069
5120
|
var SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
|
|
5070
5121
|
var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
5071
5122
|
var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
@@ -5187,12 +5238,17 @@ var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_proc
|
|
|
5187
5238
|
var GIT_SYNC_RUN_OPERATION_ENUM = ["import", "export", "check", "merge", "recovery"];
|
|
5188
5239
|
var GIT_SYNC_RUN_STATE_ENUM = ["queued", "running", "success", "failure", "timeout", "cancelled"];
|
|
5189
5240
|
var GIT_PROVIDER_CHANGE_STATE_ENUM = ["open", "closed", "merged"];
|
|
5241
|
+
var SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH = 128;
|
|
5242
|
+
var SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH = 2;
|
|
5243
|
+
var SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH = 256;
|
|
5244
|
+
var SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH = 0;
|
|
5190
5245
|
var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
5191
5246
|
var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
5192
5247
|
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
5193
5248
|
var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
|
|
5194
5249
|
var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
|
|
5195
5250
|
var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
|
|
5251
|
+
var AGENT_EDIT_SCOPE_ENUM = ["all", "read-only", "current-page", "modified-pages"];
|
|
5196
5252
|
|
|
5197
5253
|
// src/index.ts
|
|
5198
5254
|
var GITBOOK_DEFAULT_ENDPOINT = "https://api.gitbook.com";
|
|
@@ -5263,6 +5319,7 @@ var GitBookAPI = class extends Api {
|
|
|
5263
5319
|
};
|
|
5264
5320
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5265
5321
|
0 && (module.exports = {
|
|
5322
|
+
AGENT_EDIT_SCOPE_ENUM,
|
|
5266
5323
|
AGENT_FEEDBACK_SOURCE_ENUM,
|
|
5267
5324
|
AGENT_GOAL_MAX_LENGTH,
|
|
5268
5325
|
AGENT_STATUS_ENUM,
|
|
@@ -5277,9 +5334,12 @@ var GitBookAPI = class extends Api {
|
|
|
5277
5334
|
APIINTEGRATION_SCOPE_ENUM,
|
|
5278
5335
|
APIIntegrationScope,
|
|
5279
5336
|
APITOKEN_LABEL_MAX_LENGTH,
|
|
5337
|
+
AgentEditScope,
|
|
5280
5338
|
AgentFeedbackSource,
|
|
5281
5339
|
AgentStatus,
|
|
5282
5340
|
Api,
|
|
5341
|
+
BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
5342
|
+
BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
5283
5343
|
BILLING_COUPON_MAX_LENGTH,
|
|
5284
5344
|
BILLING_COUPON_MIN_LENGTH,
|
|
5285
5345
|
BILLING_INTERVAL_ENUM,
|
|
@@ -5455,6 +5515,7 @@ var GitBookAPI = class extends Api {
|
|
|
5455
5515
|
OPEN_APISPEC_SLUG_PATTERN,
|
|
5456
5516
|
OPEN_APISPEC_VISIBILITY_ENUM,
|
|
5457
5517
|
ORGANIZATION_COMMUNITY_TYPE_ENUM,
|
|
5518
|
+
ORGANIZATION_FEATURE_ENUM,
|
|
5458
5519
|
ORGANIZATION_HOSTNAME_MAX_LENGTH,
|
|
5459
5520
|
ORGANIZATION_HOSTNAME_MIN_LENGTH,
|
|
5460
5521
|
ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
|
|
@@ -5468,6 +5529,7 @@ var GitBookAPI = class extends Api {
|
|
|
5468
5529
|
OpenAPISpecProcessingState,
|
|
5469
5530
|
OpenAPISpecVisibility,
|
|
5470
5531
|
OrganizationCommunityType,
|
|
5532
|
+
OrganizationFeature,
|
|
5471
5533
|
OrganizationType,
|
|
5472
5534
|
OrganizationUseCase,
|
|
5473
5535
|
PAGE_FEEDBACK_RATING_ENUM,
|
|
@@ -5508,6 +5570,10 @@ var GitBookAPI = class extends Api {
|
|
|
5508
5570
|
SITE_CORE_CHANNEL_TYPE_ENUM,
|
|
5509
5571
|
SITE_CUSTOMIZATION_FEATURE_ENUM,
|
|
5510
5572
|
SITE_EXTERNAL_LINKS_TARGET_ENUM,
|
|
5573
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH,
|
|
5574
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH,
|
|
5575
|
+
SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH,
|
|
5576
|
+
SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH,
|
|
5511
5577
|
SITE_FEATURE_KEY_ENUM,
|
|
5512
5578
|
SITE_FINDING_ORDER_BY_ENUM,
|
|
5513
5579
|
SITE_FINDING_SEVERITY_ENUM,
|
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.201.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -279,6 +279,13 @@ function splitLines(chunk) {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
// src/client.ts
|
|
282
|
+
var AgentEditScope = /* @__PURE__ */ ((AgentEditScope2) => {
|
|
283
|
+
AgentEditScope2["All"] = "all";
|
|
284
|
+
AgentEditScope2["ReadOnly"] = "read-only";
|
|
285
|
+
AgentEditScope2["CurrentPage"] = "current-page";
|
|
286
|
+
AgentEditScope2["ModifiedPages"] = "modified-pages";
|
|
287
|
+
return AgentEditScope2;
|
|
288
|
+
})(AgentEditScope || {});
|
|
282
289
|
var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
|
|
283
290
|
AgentStatus2["Idle"] = "idle";
|
|
284
291
|
AgentStatus2["Processing"] = "processing";
|
|
@@ -973,6 +980,20 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
|
973
980
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
974
981
|
return SAMLProviderStatus2;
|
|
975
982
|
})(SAMLProviderStatus || {});
|
|
983
|
+
var OrganizationFeature = /* @__PURE__ */ ((OrganizationFeature2) => {
|
|
984
|
+
OrganizationFeature2["MaxMembers"] = "max-members";
|
|
985
|
+
OrganizationFeature2["AiLens"] = "ai-lens";
|
|
986
|
+
OrganizationFeature2["PdfExport"] = "pdf-export";
|
|
987
|
+
OrganizationFeature2["AiWriting"] = "ai-writing";
|
|
988
|
+
OrganizationFeature2["ReusableContent"] = "reusable-content";
|
|
989
|
+
OrganizationFeature2["Translations"] = "translations";
|
|
990
|
+
OrganizationFeature2["MembersAdvancedRoles"] = "members-advanced-roles";
|
|
991
|
+
OrganizationFeature2["MembersTeams"] = "members-teams";
|
|
992
|
+
OrganizationFeature2["MembersTeamOwners"] = "members-team-owners";
|
|
993
|
+
OrganizationFeature2["SecuritySaml"] = "security-saml";
|
|
994
|
+
OrganizationFeature2["ChangeRequestsMergeRules"] = "change-requests-merge-rules";
|
|
995
|
+
return OrganizationFeature2;
|
|
996
|
+
})(OrganizationFeature || {});
|
|
976
997
|
var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
|
|
977
998
|
BillingSwitchAction2["Trial"] = "trial";
|
|
978
999
|
BillingSwitchAction2["Upgrade"] = "upgrade";
|
|
@@ -4206,6 +4227,23 @@ var Api = class extends HttpClient {
|
|
|
4206
4227
|
format: "json",
|
|
4207
4228
|
...params
|
|
4208
4229
|
}),
|
|
4230
|
+
createSiteStyleguideRun: (organizationId, siteId, data, params = {}) => this.request({
|
|
4231
|
+
path: `/orgs/${organizationId}/sites/${siteId}/styleguide/runs`,
|
|
4232
|
+
method: "POST",
|
|
4233
|
+
body: data,
|
|
4234
|
+
secure: true,
|
|
4235
|
+
type: "application/json" /* Json */,
|
|
4236
|
+
format: "json",
|
|
4237
|
+
...params
|
|
4238
|
+
}),
|
|
4239
|
+
listSiteStyleguideRuns: (organizationId, siteId, query, params = {}) => this.request({
|
|
4240
|
+
path: `/orgs/${organizationId}/sites/${siteId}/styleguide/runs`,
|
|
4241
|
+
method: "GET",
|
|
4242
|
+
query,
|
|
4243
|
+
secure: true,
|
|
4244
|
+
format: "json",
|
|
4245
|
+
...params
|
|
4246
|
+
}),
|
|
4209
4247
|
trackEventsInSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
4210
4248
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/events`,
|
|
4211
4249
|
method: "POST",
|
|
@@ -4682,10 +4720,13 @@ var SITE_SPACE_PATH_MIN_LENGTH = 1;
|
|
|
4682
4720
|
var SITE_SECTION_GROUP_TITLE_MAX_LENGTH = 100;
|
|
4683
4721
|
var SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
4684
4722
|
var TEAM_MEMBER_ROLE_ENUM = ["owner", "member"];
|
|
4723
|
+
var BILLING_CANCELLATION_COMMENT_MAX_LENGTH = 500;
|
|
4724
|
+
var BILLING_CANCELLATION_COMMENT_MIN_LENGTH = 1;
|
|
4685
4725
|
var BILLING_COUPON_MAX_LENGTH = 500;
|
|
4686
4726
|
var BILLING_COUPON_MIN_LENGTH = 1;
|
|
4687
4727
|
var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
4688
4728
|
var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
4729
|
+
var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
|
|
4689
4730
|
var SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
|
|
4690
4731
|
var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
4691
4732
|
var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
@@ -4807,12 +4848,17 @@ var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_proc
|
|
|
4807
4848
|
var GIT_SYNC_RUN_OPERATION_ENUM = ["import", "export", "check", "merge", "recovery"];
|
|
4808
4849
|
var GIT_SYNC_RUN_STATE_ENUM = ["queued", "running", "success", "failure", "timeout", "cancelled"];
|
|
4809
4850
|
var GIT_PROVIDER_CHANGE_STATE_ENUM = ["open", "closed", "merged"];
|
|
4851
|
+
var SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH = 128;
|
|
4852
|
+
var SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH = 2;
|
|
4853
|
+
var SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH = 256;
|
|
4854
|
+
var SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH = 0;
|
|
4810
4855
|
var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
|
|
4811
4856
|
var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
|
|
4812
4857
|
var CUSTOMIZATION_THEME_MODE_ENUM = ["light", "dark"];
|
|
4813
4858
|
var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
|
|
4814
4859
|
var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
|
|
4815
4860
|
var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
|
|
4861
|
+
var AGENT_EDIT_SCOPE_ENUM = ["all", "read-only", "current-page", "modified-pages"];
|
|
4816
4862
|
|
|
4817
4863
|
// src/index.ts
|
|
4818
4864
|
var GITBOOK_DEFAULT_ENDPOINT = "https://api.gitbook.com";
|
|
@@ -4882,6 +4928,7 @@ var GitBookAPI = class extends Api {
|
|
|
4882
4928
|
}
|
|
4883
4929
|
};
|
|
4884
4930
|
export {
|
|
4931
|
+
AGENT_EDIT_SCOPE_ENUM,
|
|
4885
4932
|
AGENT_FEEDBACK_SOURCE_ENUM,
|
|
4886
4933
|
AGENT_GOAL_MAX_LENGTH,
|
|
4887
4934
|
AGENT_STATUS_ENUM,
|
|
@@ -4896,9 +4943,12 @@ export {
|
|
|
4896
4943
|
APIINTEGRATION_SCOPE_ENUM,
|
|
4897
4944
|
APIIntegrationScope,
|
|
4898
4945
|
APITOKEN_LABEL_MAX_LENGTH,
|
|
4946
|
+
AgentEditScope,
|
|
4899
4947
|
AgentFeedbackSource,
|
|
4900
4948
|
AgentStatus,
|
|
4901
4949
|
Api,
|
|
4950
|
+
BILLING_CANCELLATION_COMMENT_MAX_LENGTH,
|
|
4951
|
+
BILLING_CANCELLATION_COMMENT_MIN_LENGTH,
|
|
4902
4952
|
BILLING_COUPON_MAX_LENGTH,
|
|
4903
4953
|
BILLING_COUPON_MIN_LENGTH,
|
|
4904
4954
|
BILLING_INTERVAL_ENUM,
|
|
@@ -5074,6 +5124,7 @@ export {
|
|
|
5074
5124
|
OPEN_APISPEC_SLUG_PATTERN,
|
|
5075
5125
|
OPEN_APISPEC_VISIBILITY_ENUM,
|
|
5076
5126
|
ORGANIZATION_COMMUNITY_TYPE_ENUM,
|
|
5127
|
+
ORGANIZATION_FEATURE_ENUM,
|
|
5077
5128
|
ORGANIZATION_HOSTNAME_MAX_LENGTH,
|
|
5078
5129
|
ORGANIZATION_HOSTNAME_MIN_LENGTH,
|
|
5079
5130
|
ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
|
|
@@ -5087,6 +5138,7 @@ export {
|
|
|
5087
5138
|
OpenAPISpecProcessingState,
|
|
5088
5139
|
OpenAPISpecVisibility,
|
|
5089
5140
|
OrganizationCommunityType,
|
|
5141
|
+
OrganizationFeature,
|
|
5090
5142
|
OrganizationType,
|
|
5091
5143
|
OrganizationUseCase,
|
|
5092
5144
|
PAGE_FEEDBACK_RATING_ENUM,
|
|
@@ -5127,6 +5179,10 @@ export {
|
|
|
5127
5179
|
SITE_CORE_CHANNEL_TYPE_ENUM,
|
|
5128
5180
|
SITE_CUSTOMIZATION_FEATURE_ENUM,
|
|
5129
5181
|
SITE_EXTERNAL_LINKS_TARGET_ENUM,
|
|
5182
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MAX_LENGTH,
|
|
5183
|
+
SITE_EXTERNAL_LINK_DESCRIPTION_MIN_LENGTH,
|
|
5184
|
+
SITE_EXTERNAL_LINK_TITLE_MAX_LENGTH,
|
|
5185
|
+
SITE_EXTERNAL_LINK_TITLE_MIN_LENGTH,
|
|
5130
5186
|
SITE_FEATURE_KEY_ENUM,
|
|
5131
5187
|
SITE_FINDING_ORDER_BY_ENUM,
|
|
5132
5188
|
SITE_FINDING_SEVERITY_ENUM,
|