@gitbook/api 0.159.0 → 0.160.1
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 +401 -17
- package/dist/constants.d.ts +9 -2
- package/dist/index.cjs +127 -8
- package/dist/index.js +118 -8
- package/package.json +5 -1
- package/spec/openapi.json +1173 -14
- package/spec/openapi.yaml +734 -11
package/dist/index.cjs
CHANGED
|
@@ -222,6 +222,13 @@ __export(src_exports, {
|
|
|
222
222
|
CONTENT_REFERENCE_RELATION_ENUM: () => CONTENT_REFERENCE_RELATION_ENUM,
|
|
223
223
|
CONTENT_REFERENCE_STATUS_ENUM: () => CONTENT_REFERENCE_STATUS_ENUM,
|
|
224
224
|
CONTENT_VISIBILITY_ENUM: () => CONTENT_VISIBILITY_ENUM,
|
|
225
|
+
CONTEXT_CONNECTION_LABEL_MAX_LENGTH: () => CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
226
|
+
CONTEXT_CONNECTION_LABEL_MIN_LENGTH: () => CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
227
|
+
CONTEXT_CONNECTION_STATUS_ENUM: () => CONTEXT_CONNECTION_STATUS_ENUM,
|
|
228
|
+
CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH: () => CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH,
|
|
229
|
+
CONTEXT_RECORD_TITLE_MAX_LENGTH: () => CONTEXT_RECORD_TITLE_MAX_LENGTH,
|
|
230
|
+
CONTEXT_RECORD_TITLE_MIN_LENGTH: () => CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
231
|
+
CONTEXT_RECORD_TYPE_ENUM: () => CONTEXT_RECORD_TYPE_ENUM,
|
|
225
232
|
CONVERSATION_ISSUE_IMPACT_ENUM: () => CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
226
233
|
CUSTOMIZATION_AIMODE_ENUM: () => CUSTOMIZATION_AIMODE_ENUM,
|
|
227
234
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
@@ -259,6 +266,8 @@ __export(src_exports, {
|
|
|
259
266
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
260
267
|
ContentType: () => ContentType,
|
|
261
268
|
ContentVisibility: () => ContentVisibility,
|
|
269
|
+
ContextConnectionStatus: () => ContextConnectionStatus,
|
|
270
|
+
ContextRecordType: () => ContextRecordType,
|
|
262
271
|
ConversationIssueImpact: () => ConversationIssueImpact,
|
|
263
272
|
CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
|
|
264
273
|
CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
|
|
@@ -455,7 +464,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
455
464
|
|
|
456
465
|
// package.json
|
|
457
466
|
var name = "@gitbook/api";
|
|
458
|
-
var version = "0.
|
|
467
|
+
var version = "0.160.1";
|
|
459
468
|
|
|
460
469
|
// src/client.ts
|
|
461
470
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -665,6 +674,11 @@ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
|
|
|
665
674
|
VerticalAlignment2["Bottom"] = "bottom";
|
|
666
675
|
return VerticalAlignment2;
|
|
667
676
|
})(VerticalAlignment || {});
|
|
677
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
678
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
679
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
680
|
+
return OpenAPISpecVisibility2;
|
|
681
|
+
})(OpenAPISpecVisibility || {});
|
|
668
682
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
669
683
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
670
684
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -742,11 +756,6 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
742
756
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
743
757
|
return OpenAPISpecProcessingState2;
|
|
744
758
|
})(OpenAPISpecProcessingState || {});
|
|
745
|
-
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
746
|
-
OpenAPISpecVisibility2["Private"] = "private";
|
|
747
|
-
OpenAPISpecVisibility2["Public"] = "public";
|
|
748
|
-
return OpenAPISpecVisibility2;
|
|
749
|
-
})(OpenAPISpecVisibility || {});
|
|
750
759
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
751
760
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
752
761
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -1186,6 +1195,18 @@ var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) =>
|
|
|
1186
1195
|
SiteSocialAccountPlatform2["Medium"] = "medium";
|
|
1187
1196
|
return SiteSocialAccountPlatform2;
|
|
1188
1197
|
})(SiteSocialAccountPlatform || {});
|
|
1198
|
+
var ContextRecordType = /* @__PURE__ */ ((ContextRecordType2) => {
|
|
1199
|
+
ContextRecordType2["Ticket"] = "ticket";
|
|
1200
|
+
ContextRecordType2["Document"] = "document";
|
|
1201
|
+
return ContextRecordType2;
|
|
1202
|
+
})(ContextRecordType || {});
|
|
1203
|
+
var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
1204
|
+
ContextConnectionStatus2["Pending"] = "pending";
|
|
1205
|
+
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
1206
|
+
ContextConnectionStatus2["Succeeded"] = "succeeded";
|
|
1207
|
+
ContextConnectionStatus2["Failed"] = "failed";
|
|
1208
|
+
return ContextConnectionStatus2;
|
|
1209
|
+
})(ContextConnectionStatus || {});
|
|
1189
1210
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
1190
1211
|
AIModel2["Fast"] = "fast";
|
|
1191
1212
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -1349,6 +1370,9 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
1349
1370
|
RevisionSemanticChangeType2["FileEdited"] = "file_edited";
|
|
1350
1371
|
RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
|
|
1351
1372
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
1373
|
+
RevisionSemanticChangeType2["TagCreated"] = "tag_created";
|
|
1374
|
+
RevisionSemanticChangeType2["TagDeleted"] = "tag_deleted";
|
|
1375
|
+
RevisionSemanticChangeType2["TagEdited"] = "tag_edited";
|
|
1352
1376
|
return RevisionSemanticChangeType2;
|
|
1353
1377
|
})(RevisionSemanticChangeType || {});
|
|
1354
1378
|
var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
|
|
@@ -3767,6 +3791,85 @@ var Api = class extends HttpClient {
|
|
|
3767
3791
|
secure: true,
|
|
3768
3792
|
...params
|
|
3769
3793
|
}),
|
|
3794
|
+
listSiteContextRecords: (organizationId, siteId, query, params = {}) => this.request({
|
|
3795
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3796
|
+
method: "GET",
|
|
3797
|
+
query,
|
|
3798
|
+
secure: true,
|
|
3799
|
+
format: "json",
|
|
3800
|
+
...params
|
|
3801
|
+
}),
|
|
3802
|
+
upsertSiteContextRecords: (organizationId, siteId, data, params = {}) => this.request({
|
|
3803
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3804
|
+
method: "PUT",
|
|
3805
|
+
body: data,
|
|
3806
|
+
secure: true,
|
|
3807
|
+
type: "application/json" /* Json */,
|
|
3808
|
+
...params
|
|
3809
|
+
}),
|
|
3810
|
+
listSiteContextConnections: (organizationId, siteId, query, params = {}) => this.request({
|
|
3811
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3812
|
+
method: "GET",
|
|
3813
|
+
query,
|
|
3814
|
+
secure: true,
|
|
3815
|
+
format: "json",
|
|
3816
|
+
...params
|
|
3817
|
+
}),
|
|
3818
|
+
createSiteContextConnection: (organizationId, siteId, data, params = {}) => this.request({
|
|
3819
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3820
|
+
method: "POST",
|
|
3821
|
+
body: data,
|
|
3822
|
+
secure: true,
|
|
3823
|
+
type: "application/json" /* Json */,
|
|
3824
|
+
format: "json",
|
|
3825
|
+
...params
|
|
3826
|
+
}),
|
|
3827
|
+
getSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3828
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3829
|
+
method: "GET",
|
|
3830
|
+
secure: true,
|
|
3831
|
+
format: "json",
|
|
3832
|
+
...params
|
|
3833
|
+
}),
|
|
3834
|
+
updateSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, data, params = {}) => this.request({
|
|
3835
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3836
|
+
method: "PATCH",
|
|
3837
|
+
body: data,
|
|
3838
|
+
secure: true,
|
|
3839
|
+
type: "application/json" /* Json */,
|
|
3840
|
+
format: "json",
|
|
3841
|
+
...params
|
|
3842
|
+
}),
|
|
3843
|
+
syncSiteContextConnection: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3844
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}/sync`,
|
|
3845
|
+
method: "POST",
|
|
3846
|
+
secure: true,
|
|
3847
|
+
...params
|
|
3848
|
+
}),
|
|
3849
|
+
listSiteContextTopics: (organizationId, siteId, query, params = {}) => this.request({
|
|
3850
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics`,
|
|
3851
|
+
method: "GET",
|
|
3852
|
+
query,
|
|
3853
|
+
secure: true,
|
|
3854
|
+
format: "json",
|
|
3855
|
+
...params
|
|
3856
|
+
}),
|
|
3857
|
+
getSiteContextTopicById: (organizationId, siteId, siteContextTopicId, params = {}) => this.request({
|
|
3858
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3859
|
+
method: "GET",
|
|
3860
|
+
secure: true,
|
|
3861
|
+
format: "json",
|
|
3862
|
+
...params
|
|
3863
|
+
}),
|
|
3864
|
+
updateSiteContextTopicById: (organizationId, siteId, siteContextTopicId, data, params = {}) => this.request({
|
|
3865
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3866
|
+
method: "PATCH",
|
|
3867
|
+
body: data,
|
|
3868
|
+
secure: true,
|
|
3869
|
+
type: "application/json" /* Json */,
|
|
3870
|
+
format: "json",
|
|
3871
|
+
...params
|
|
3872
|
+
}),
|
|
3770
3873
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3771
3874
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
3772
3875
|
method: "PATCH",
|
|
@@ -4108,6 +4211,7 @@ var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
|
4108
4211
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
4109
4212
|
var REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
4110
4213
|
var REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
4214
|
+
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
4111
4215
|
var REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM = ["default", "wide"];
|
|
4112
4216
|
var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
4113
4217
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
@@ -4133,7 +4237,6 @@ var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
|
4133
4237
|
var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
4134
4238
|
var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
4135
4239
|
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
4136
|
-
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
4137
4240
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
4138
4241
|
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
4139
4242
|
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
@@ -4223,6 +4326,13 @@ var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
|
4223
4326
|
var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
4224
4327
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
4225
4328
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
4329
|
+
var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
|
|
4330
|
+
var CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
4331
|
+
var CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
4332
|
+
var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
4333
|
+
var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
4334
|
+
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4335
|
+
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
4226
4336
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
4227
4337
|
var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
|
|
4228
4338
|
var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
|
|
@@ -4248,7 +4358,7 @@ var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
|
4248
4358
|
var SHA256_MAX_LENGTH = 64;
|
|
4249
4359
|
var SHA256_MIN_LENGTH = 64;
|
|
4250
4360
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
|
4251
|
-
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited"];
|
|
4361
|
+
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
|
|
4252
4362
|
var GIT_SYNC_OPERATION_STATE_ENUM = ["running", "failure", "success"];
|
|
4253
4363
|
var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
|
|
4254
4364
|
var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
@@ -4370,6 +4480,13 @@ var GitBookAPI = class extends Api {
|
|
|
4370
4480
|
CONTENT_REFERENCE_RELATION_ENUM,
|
|
4371
4481
|
CONTENT_REFERENCE_STATUS_ENUM,
|
|
4372
4482
|
CONTENT_VISIBILITY_ENUM,
|
|
4483
|
+
CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
4484
|
+
CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
4485
|
+
CONTEXT_CONNECTION_STATUS_ENUM,
|
|
4486
|
+
CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH,
|
|
4487
|
+
CONTEXT_RECORD_TITLE_MAX_LENGTH,
|
|
4488
|
+
CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
4489
|
+
CONTEXT_RECORD_TYPE_ENUM,
|
|
4373
4490
|
CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
4374
4491
|
CUSTOMIZATION_AIMODE_ENUM,
|
|
4375
4492
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
@@ -4407,6 +4524,8 @@ var GitBookAPI = class extends Api {
|
|
|
4407
4524
|
ContentReferenceStatus,
|
|
4408
4525
|
ContentType,
|
|
4409
4526
|
ContentVisibility,
|
|
4527
|
+
ContextConnectionStatus,
|
|
4528
|
+
ContextRecordType,
|
|
4410
4529
|
ConversationIssueImpact,
|
|
4411
4530
|
CustomHostnameDnsStatus,
|
|
4412
4531
|
CustomHostnameErrorStatus,
|
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.160.1";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -382,6 +382,11 @@ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
|
|
|
382
382
|
VerticalAlignment2["Bottom"] = "bottom";
|
|
383
383
|
return VerticalAlignment2;
|
|
384
384
|
})(VerticalAlignment || {});
|
|
385
|
+
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
386
|
+
OpenAPISpecVisibility2["Private"] = "private";
|
|
387
|
+
OpenAPISpecVisibility2["Public"] = "public";
|
|
388
|
+
return OpenAPISpecVisibility2;
|
|
389
|
+
})(OpenAPISpecVisibility || {});
|
|
385
390
|
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
386
391
|
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
387
392
|
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
@@ -459,11 +464,6 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
|
|
|
459
464
|
OpenAPISpecProcessingState2["Complete"] = "complete";
|
|
460
465
|
return OpenAPISpecProcessingState2;
|
|
461
466
|
})(OpenAPISpecProcessingState || {});
|
|
462
|
-
var OpenAPISpecVisibility = /* @__PURE__ */ ((OpenAPISpecVisibility2) => {
|
|
463
|
-
OpenAPISpecVisibility2["Private"] = "private";
|
|
464
|
-
OpenAPISpecVisibility2["Public"] = "public";
|
|
465
|
-
return OpenAPISpecVisibility2;
|
|
466
|
-
})(OpenAPISpecVisibility || {});
|
|
467
467
|
var OpenAPISpecProcessingErrorCode = /* @__PURE__ */ ((OpenAPISpecProcessingErrorCode2) => {
|
|
468
468
|
OpenAPISpecProcessingErrorCode2["FETCH_TIMEOUT"] = "FETCH_TIMEOUT";
|
|
469
469
|
OpenAPISpecProcessingErrorCode2["FETCH_ERROR"] = "FETCH_ERROR";
|
|
@@ -903,6 +903,18 @@ var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) =>
|
|
|
903
903
|
SiteSocialAccountPlatform2["Medium"] = "medium";
|
|
904
904
|
return SiteSocialAccountPlatform2;
|
|
905
905
|
})(SiteSocialAccountPlatform || {});
|
|
906
|
+
var ContextRecordType = /* @__PURE__ */ ((ContextRecordType2) => {
|
|
907
|
+
ContextRecordType2["Ticket"] = "ticket";
|
|
908
|
+
ContextRecordType2["Document"] = "document";
|
|
909
|
+
return ContextRecordType2;
|
|
910
|
+
})(ContextRecordType || {});
|
|
911
|
+
var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
|
|
912
|
+
ContextConnectionStatus2["Pending"] = "pending";
|
|
913
|
+
ContextConnectionStatus2["Syncing"] = "syncing";
|
|
914
|
+
ContextConnectionStatus2["Succeeded"] = "succeeded";
|
|
915
|
+
ContextConnectionStatus2["Failed"] = "failed";
|
|
916
|
+
return ContextConnectionStatus2;
|
|
917
|
+
})(ContextConnectionStatus || {});
|
|
906
918
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
907
919
|
AIModel2["Fast"] = "fast";
|
|
908
920
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -1066,6 +1078,9 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
1066
1078
|
RevisionSemanticChangeType2["FileEdited"] = "file_edited";
|
|
1067
1079
|
RevisionSemanticChangeType2["FileDeleted"] = "file_deleted";
|
|
1068
1080
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
1081
|
+
RevisionSemanticChangeType2["TagCreated"] = "tag_created";
|
|
1082
|
+
RevisionSemanticChangeType2["TagDeleted"] = "tag_deleted";
|
|
1083
|
+
RevisionSemanticChangeType2["TagEdited"] = "tag_edited";
|
|
1069
1084
|
return RevisionSemanticChangeType2;
|
|
1070
1085
|
})(RevisionSemanticChangeType || {});
|
|
1071
1086
|
var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
|
|
@@ -3484,6 +3499,85 @@ var Api = class extends HttpClient {
|
|
|
3484
3499
|
secure: true,
|
|
3485
3500
|
...params
|
|
3486
3501
|
}),
|
|
3502
|
+
listSiteContextRecords: (organizationId, siteId, query, params = {}) => this.request({
|
|
3503
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3504
|
+
method: "GET",
|
|
3505
|
+
query,
|
|
3506
|
+
secure: true,
|
|
3507
|
+
format: "json",
|
|
3508
|
+
...params
|
|
3509
|
+
}),
|
|
3510
|
+
upsertSiteContextRecords: (organizationId, siteId, data, params = {}) => this.request({
|
|
3511
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-records`,
|
|
3512
|
+
method: "PUT",
|
|
3513
|
+
body: data,
|
|
3514
|
+
secure: true,
|
|
3515
|
+
type: "application/json" /* Json */,
|
|
3516
|
+
...params
|
|
3517
|
+
}),
|
|
3518
|
+
listSiteContextConnections: (organizationId, siteId, query, params = {}) => this.request({
|
|
3519
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3520
|
+
method: "GET",
|
|
3521
|
+
query,
|
|
3522
|
+
secure: true,
|
|
3523
|
+
format: "json",
|
|
3524
|
+
...params
|
|
3525
|
+
}),
|
|
3526
|
+
createSiteContextConnection: (organizationId, siteId, data, params = {}) => this.request({
|
|
3527
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections`,
|
|
3528
|
+
method: "POST",
|
|
3529
|
+
body: data,
|
|
3530
|
+
secure: true,
|
|
3531
|
+
type: "application/json" /* Json */,
|
|
3532
|
+
format: "json",
|
|
3533
|
+
...params
|
|
3534
|
+
}),
|
|
3535
|
+
getSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3536
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3537
|
+
method: "GET",
|
|
3538
|
+
secure: true,
|
|
3539
|
+
format: "json",
|
|
3540
|
+
...params
|
|
3541
|
+
}),
|
|
3542
|
+
updateSiteContextConnectionById: (organizationId, siteId, siteContextConnectionId, data, params = {}) => this.request({
|
|
3543
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}`,
|
|
3544
|
+
method: "PATCH",
|
|
3545
|
+
body: data,
|
|
3546
|
+
secure: true,
|
|
3547
|
+
type: "application/json" /* Json */,
|
|
3548
|
+
format: "json",
|
|
3549
|
+
...params
|
|
3550
|
+
}),
|
|
3551
|
+
syncSiteContextConnection: (organizationId, siteId, siteContextConnectionId, params = {}) => this.request({
|
|
3552
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-connections/${siteContextConnectionId}/sync`,
|
|
3553
|
+
method: "POST",
|
|
3554
|
+
secure: true,
|
|
3555
|
+
...params
|
|
3556
|
+
}),
|
|
3557
|
+
listSiteContextTopics: (organizationId, siteId, query, params = {}) => this.request({
|
|
3558
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics`,
|
|
3559
|
+
method: "GET",
|
|
3560
|
+
query,
|
|
3561
|
+
secure: true,
|
|
3562
|
+
format: "json",
|
|
3563
|
+
...params
|
|
3564
|
+
}),
|
|
3565
|
+
getSiteContextTopicById: (organizationId, siteId, siteContextTopicId, params = {}) => this.request({
|
|
3566
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3567
|
+
method: "GET",
|
|
3568
|
+
secure: true,
|
|
3569
|
+
format: "json",
|
|
3570
|
+
...params
|
|
3571
|
+
}),
|
|
3572
|
+
updateSiteContextTopicById: (organizationId, siteId, siteContextTopicId, data, params = {}) => this.request({
|
|
3573
|
+
path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
|
|
3574
|
+
method: "PATCH",
|
|
3575
|
+
body: data,
|
|
3576
|
+
secure: true,
|
|
3577
|
+
type: "application/json" /* Json */,
|
|
3578
|
+
format: "json",
|
|
3579
|
+
...params
|
|
3580
|
+
}),
|
|
3487
3581
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3488
3582
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
3489
3583
|
method: "PATCH",
|
|
@@ -3825,6 +3919,7 @@ var CARDS_IMAGE_OBJECT_FIT_ENUM = ["contain", "fill", "cover"];
|
|
|
3825
3919
|
var VERTICAL_ALIGNMENT_ENUM = ["top", "middle", "bottom"];
|
|
3826
3920
|
var REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
3827
3921
|
var REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
3922
|
+
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
3828
3923
|
var REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM = ["default", "wide"];
|
|
3829
3924
|
var REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM = ["hero", "full"];
|
|
3830
3925
|
var CHANGE_REQUEST_STATUS_ENUM = ["draft", "open", "archived", "merged"];
|
|
@@ -3850,7 +3945,6 @@ var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
|
|
|
3850
3945
|
var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
|
|
3851
3946
|
var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
|
|
3852
3947
|
var OPEN_APISPEC_PROCESSING_STATE_ENUM = ["pending", "progress", "complete"];
|
|
3853
|
-
var OPEN_APISPEC_VISIBILITY_ENUM = ["private", "public"];
|
|
3854
3948
|
var OPEN_APISPEC_PROCESSING_ERROR_CODE_ENUM = ["FETCH_TIMEOUT", "FETCH_ERROR", "PARSE_ERROR"];
|
|
3855
3949
|
var CONTENT_REFERENCE_STATUS_ENUM = ["ok", "broken", "in-app"];
|
|
3856
3950
|
var CONTENT_REFERENCE_RELATION_ENUM = ["reference", "dependsOn"];
|
|
@@ -3940,6 +4034,13 @@ var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
|
3940
4034
|
var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
3941
4035
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
3942
4036
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
4037
|
+
var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
|
|
4038
|
+
var CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
4039
|
+
var CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
4040
|
+
var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
4041
|
+
var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
4042
|
+
var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
4043
|
+
var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
|
|
3943
4044
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
3944
4045
|
var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
|
|
3945
4046
|
var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
|
|
@@ -3965,7 +4066,7 @@ var CLOUDFLARE_HOSTNAME_TLSVALIDATION_METHOD_ENUM = ["http", "txt", "email"];
|
|
|
3965
4066
|
var SHA256_MAX_LENGTH = 64;
|
|
3966
4067
|
var SHA256_MIN_LENGTH = 64;
|
|
3967
4068
|
var GIT_BOOK_USERS_ENUM = ["gitbook:agent"];
|
|
3968
|
-
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited"];
|
|
4069
|
+
var REVISION_SEMANTIC_CHANGE_TYPE_ENUM = ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
|
|
3969
4070
|
var GIT_SYNC_OPERATION_STATE_ENUM = ["running", "failure", "success"];
|
|
3970
4071
|
var GIT_SYNC_OPERATION_DIRECTION_ENUM = ["export", "import"];
|
|
3971
4072
|
var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_process", "finalize"];
|
|
@@ -4086,6 +4187,13 @@ export {
|
|
|
4086
4187
|
CONTENT_REFERENCE_RELATION_ENUM,
|
|
4087
4188
|
CONTENT_REFERENCE_STATUS_ENUM,
|
|
4088
4189
|
CONTENT_VISIBILITY_ENUM,
|
|
4190
|
+
CONTEXT_CONNECTION_LABEL_MAX_LENGTH,
|
|
4191
|
+
CONTEXT_CONNECTION_LABEL_MIN_LENGTH,
|
|
4192
|
+
CONTEXT_CONNECTION_STATUS_ENUM,
|
|
4193
|
+
CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH,
|
|
4194
|
+
CONTEXT_RECORD_TITLE_MAX_LENGTH,
|
|
4195
|
+
CONTEXT_RECORD_TITLE_MIN_LENGTH,
|
|
4196
|
+
CONTEXT_RECORD_TYPE_ENUM,
|
|
4089
4197
|
CONVERSATION_ISSUE_IMPACT_ENUM,
|
|
4090
4198
|
CUSTOMIZATION_AIMODE_ENUM,
|
|
4091
4199
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
@@ -4123,6 +4231,8 @@ export {
|
|
|
4123
4231
|
ContentReferenceStatus,
|
|
4124
4232
|
ContentType,
|
|
4125
4233
|
ContentVisibility,
|
|
4234
|
+
ContextConnectionStatus,
|
|
4235
|
+
ContextRecordType,
|
|
4126
4236
|
ConversationIssueImpact,
|
|
4127
4237
|
CustomHostnameDnsStatus,
|
|
4128
4238
|
CustomHostnameErrorStatus,
|
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.
|
|
7
|
+
"version": "0.160.1",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"files": [
|
|
10
10
|
"README.md",
|
|
@@ -48,5 +48,9 @@
|
|
|
48
48
|
},
|
|
49
49
|
"./spec/openapi.json": "./spec/openapi.json",
|
|
50
50
|
"./spec/openapi.yaml": "./spec/openapi.yaml"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public",
|
|
54
|
+
"registry": "https://registry.npmjs.org/"
|
|
51
55
|
}
|
|
52
56
|
}
|