@gitbook/api 0.3.0 → 0.5.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 +2082 -110
- package/dist/index.cjs +768 -5
- package/dist/index.js +757 -4
- package/package.json +1 -1
- package/spec/openapi.json +11200 -4528
- package/spec/openapi.yaml +5395 -1367
package/dist/index.js
CHANGED
|
@@ -8,6 +8,23 @@ var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
|
8
8
|
ContentVisibility2["Private"] = "private";
|
|
9
9
|
return ContentVisibility2;
|
|
10
10
|
})(ContentVisibility || {});
|
|
11
|
+
var SpaceType = /* @__PURE__ */ ((SpaceType2) => {
|
|
12
|
+
SpaceType2["Application"] = "application";
|
|
13
|
+
SpaceType2["Website"] = "website";
|
|
14
|
+
SpaceType2["Service"] = "service";
|
|
15
|
+
SpaceType2["Library"] = "library";
|
|
16
|
+
SpaceType2["CloudResource"] = "cloud-resource";
|
|
17
|
+
SpaceType2["Database"] = "database";
|
|
18
|
+
SpaceType2["Other"] = "other";
|
|
19
|
+
return SpaceType2;
|
|
20
|
+
})(SpaceType || {});
|
|
21
|
+
var SpaceRelationType = /* @__PURE__ */ ((SpaceRelationType2) => {
|
|
22
|
+
SpaceRelationType2["DependsOn"] = "dependsOn";
|
|
23
|
+
SpaceRelationType2["DependencyOf"] = "dependencyOf";
|
|
24
|
+
SpaceRelationType2["PartOf"] = "partOf";
|
|
25
|
+
SpaceRelationType2["HasPart"] = "hasPart";
|
|
26
|
+
return SpaceRelationType2;
|
|
27
|
+
})(SpaceRelationType || {});
|
|
11
28
|
var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
12
29
|
ImportContentSource2["Website"] = "website";
|
|
13
30
|
ImportContentSource2["Docx"] = "docx";
|
|
@@ -23,6 +40,32 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
23
40
|
ImportContentSource2["OpenApi"] = "open-api";
|
|
24
41
|
return ImportContentSource2;
|
|
25
42
|
})(ImportContentSource || {});
|
|
43
|
+
var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
|
|
44
|
+
GitSyncOperationState2["Running"] = "running";
|
|
45
|
+
GitSyncOperationState2["Failure"] = "failure";
|
|
46
|
+
GitSyncOperationState2["Success"] = "success";
|
|
47
|
+
return GitSyncOperationState2;
|
|
48
|
+
})(GitSyncOperationState || {});
|
|
49
|
+
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
50
|
+
OrganizationType2["Business"] = "business";
|
|
51
|
+
OrganizationType2["Community"] = "community";
|
|
52
|
+
return OrganizationType2;
|
|
53
|
+
})(OrganizationType || {});
|
|
54
|
+
var OrganizationUseCase = /* @__PURE__ */ ((OrganizationUseCase2) => {
|
|
55
|
+
OrganizationUseCase2["ProductDocs"] = "productDocs";
|
|
56
|
+
OrganizationUseCase2["TeamKnowledgeBase"] = "teamKnowledgeBase";
|
|
57
|
+
OrganizationUseCase2["DesignSystem"] = "designSystem";
|
|
58
|
+
OrganizationUseCase2["OpenSourceDocs"] = "openSourceDocs";
|
|
59
|
+
OrganizationUseCase2["Notes"] = "notes";
|
|
60
|
+
OrganizationUseCase2["Other"] = "other";
|
|
61
|
+
return OrganizationUseCase2;
|
|
62
|
+
})(OrganizationUseCase || {});
|
|
63
|
+
var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) => {
|
|
64
|
+
OrganizationCommunityType2["NonProfit"] = "nonProfit";
|
|
65
|
+
OrganizationCommunityType2["OpenSource"] = "openSource";
|
|
66
|
+
OrganizationCommunityType2["Education"] = "education";
|
|
67
|
+
return OrganizationCommunityType2;
|
|
68
|
+
})(OrganizationCommunityType || {});
|
|
26
69
|
var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
27
70
|
MemberRole2["Admin"] = "admin";
|
|
28
71
|
MemberRole2["Create"] = "create";
|
|
@@ -32,6 +75,17 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
32
75
|
MemberRole2["Read"] = "read";
|
|
33
76
|
return MemberRole2;
|
|
34
77
|
})(MemberRole || {});
|
|
78
|
+
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
79
|
+
TeamMemberRole2["Admin"] = "admin";
|
|
80
|
+
TeamMemberRole2["Participant"] = "participant";
|
|
81
|
+
return TeamMemberRole2;
|
|
82
|
+
})(TeamMemberRole || {});
|
|
83
|
+
var RecordingContext = /* @__PURE__ */ ((RecordingContext2) => {
|
|
84
|
+
RecordingContext2["Meeting"] = "meeting";
|
|
85
|
+
RecordingContext2["Conversation"] = "conversation";
|
|
86
|
+
RecordingContext2["Walkthrough"] = "walkthrough";
|
|
87
|
+
return RecordingContext2;
|
|
88
|
+
})(RecordingContext || {});
|
|
35
89
|
var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
36
90
|
ChangeRequestStatus2["Draft"] = "draft";
|
|
37
91
|
ChangeRequestStatus2["Open"] = "open";
|
|
@@ -39,6 +93,11 @@ var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
|
39
93
|
ChangeRequestStatus2["Merged"] = "merged";
|
|
40
94
|
return ChangeRequestStatus2;
|
|
41
95
|
})(ChangeRequestStatus || {});
|
|
96
|
+
var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
|
|
97
|
+
ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
|
|
98
|
+
ChangeRequestReviewStatus2["Approved"] = "approved";
|
|
99
|
+
return ChangeRequestReviewStatus2;
|
|
100
|
+
})(ChangeRequestReviewStatus || {});
|
|
42
101
|
var AnalyticsSearchPeriod = /* @__PURE__ */ ((AnalyticsSearchPeriod2) => {
|
|
43
102
|
AnalyticsSearchPeriod2["LastMonth"] = "last_month";
|
|
44
103
|
AnalyticsSearchPeriod2["LastWeek"] = "last_week";
|
|
@@ -52,6 +111,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
|
|
|
52
111
|
return AnalyticsTrafficInterval2;
|
|
53
112
|
})(AnalyticsTrafficInterval || {});
|
|
54
113
|
var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
114
|
+
IntegrationScope2["OrganizationEntitiesWrite"] = "organization:entities:write";
|
|
55
115
|
IntegrationScope2["SpaceViewsRead"] = "space:views:read";
|
|
56
116
|
IntegrationScope2["SpaceContentRead"] = "space:content:read";
|
|
57
117
|
IntegrationScope2["SpaceContentWrite"] = "space:content:write";
|
|
@@ -59,6 +119,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
59
119
|
IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
|
|
60
120
|
IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
|
|
61
121
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
122
|
+
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
62
123
|
return IntegrationScope2;
|
|
63
124
|
})(IntegrationScope || {});
|
|
64
125
|
var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
|
|
@@ -77,6 +138,7 @@ var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
|
77
138
|
var IntegrationVisibility = /* @__PURE__ */ ((IntegrationVisibility2) => {
|
|
78
139
|
IntegrationVisibility2["Public"] = "public";
|
|
79
140
|
IntegrationVisibility2["Private"] = "private";
|
|
141
|
+
IntegrationVisibility2["Unlisted"] = "unlisted";
|
|
80
142
|
return IntegrationVisibility2;
|
|
81
143
|
})(IntegrationVisibility || {});
|
|
82
144
|
var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationStatus2) => {
|
|
@@ -153,6 +215,12 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
153
215
|
ContentKitIcon2["LinkExternal"] = "link-external";
|
|
154
216
|
return ContentKitIcon2;
|
|
155
217
|
})(ContentKitIcon || {});
|
|
218
|
+
var CustomFieldType = /* @__PURE__ */ ((CustomFieldType2) => {
|
|
219
|
+
CustomFieldType2["Text"] = "text";
|
|
220
|
+
CustomFieldType2["Number"] = "number";
|
|
221
|
+
CustomFieldType2["Boolean"] = "boolean";
|
|
222
|
+
return CustomFieldType2;
|
|
223
|
+
})(CustomFieldType || {});
|
|
156
224
|
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
157
225
|
ContentType2["Json"] = "application/json";
|
|
158
226
|
ContentType2["FormData"] = "multipart/form-data";
|
|
@@ -313,13 +381,31 @@ var Api = class extends HttpClient {
|
|
|
313
381
|
format: "json",
|
|
314
382
|
...params
|
|
315
383
|
}),
|
|
316
|
-
|
|
384
|
+
askQueryWithGet: (query, params = {}) => this.request({
|
|
317
385
|
path: `/search/ask`,
|
|
318
386
|
method: "GET",
|
|
319
387
|
query,
|
|
320
388
|
secure: true,
|
|
321
389
|
format: "json",
|
|
322
390
|
...params
|
|
391
|
+
}),
|
|
392
|
+
askQuery: (data, params = {}) => this.request({
|
|
393
|
+
path: `/search/ask`,
|
|
394
|
+
method: "POST",
|
|
395
|
+
body: data,
|
|
396
|
+
secure: true,
|
|
397
|
+
type: "application/json" /* Json */,
|
|
398
|
+
format: "json",
|
|
399
|
+
...params
|
|
400
|
+
}),
|
|
401
|
+
getRecommendedQuestions: (data, params = {}) => this.request({
|
|
402
|
+
path: `/search/questions`,
|
|
403
|
+
method: "POST",
|
|
404
|
+
body: data,
|
|
405
|
+
secure: true,
|
|
406
|
+
type: "application/json" /* Json */,
|
|
407
|
+
format: "json",
|
|
408
|
+
...params
|
|
323
409
|
})
|
|
324
410
|
};
|
|
325
411
|
this.user = {
|
|
@@ -356,6 +442,29 @@ var Api = class extends HttpClient {
|
|
|
356
442
|
format: "json",
|
|
357
443
|
...params
|
|
358
444
|
}),
|
|
445
|
+
updateSpaceById: (spaceId, data, params = {}) => this.request({
|
|
446
|
+
path: `/spaces/${spaceId}`,
|
|
447
|
+
method: "PATCH",
|
|
448
|
+
body: data,
|
|
449
|
+
secure: true,
|
|
450
|
+
type: "application/json" /* Json */,
|
|
451
|
+
format: "json",
|
|
452
|
+
...params
|
|
453
|
+
}),
|
|
454
|
+
generateSpaceHiveReadAccessToken: (spaceId, params = {}) => this.request({
|
|
455
|
+
path: `/spaces/${spaceId}/hive/token`,
|
|
456
|
+
method: "POST",
|
|
457
|
+
secure: true,
|
|
458
|
+
format: "json",
|
|
459
|
+
...params
|
|
460
|
+
}),
|
|
461
|
+
duplicateSpace: (spaceId, params = {}) => this.request({
|
|
462
|
+
path: `/spaces/${spaceId}/duplicate`,
|
|
463
|
+
method: "POST",
|
|
464
|
+
secure: true,
|
|
465
|
+
format: "json",
|
|
466
|
+
...params
|
|
467
|
+
}),
|
|
359
468
|
searchSpaceContent: (spaceId, query, params = {}) => this.request({
|
|
360
469
|
path: `/spaces/${spaceId}/search`,
|
|
361
470
|
method: "GET",
|
|
@@ -364,7 +473,7 @@ var Api = class extends HttpClient {
|
|
|
364
473
|
format: "json",
|
|
365
474
|
...params
|
|
366
475
|
}),
|
|
367
|
-
|
|
476
|
+
askQueryInSpaceWithGet: (spaceId, query, params = {}) => this.request({
|
|
368
477
|
path: `/spaces/${spaceId}/search/ask`,
|
|
369
478
|
method: "GET",
|
|
370
479
|
query,
|
|
@@ -372,6 +481,22 @@ var Api = class extends HttpClient {
|
|
|
372
481
|
format: "json",
|
|
373
482
|
...params
|
|
374
483
|
}),
|
|
484
|
+
askQueryInSpace: (spaceId, data, params = {}) => this.request({
|
|
485
|
+
path: `/spaces/${spaceId}/search/ask`,
|
|
486
|
+
method: "POST",
|
|
487
|
+
body: data,
|
|
488
|
+
secure: true,
|
|
489
|
+
type: "application/json" /* Json */,
|
|
490
|
+
format: "json",
|
|
491
|
+
...params
|
|
492
|
+
}),
|
|
493
|
+
getRecommendedQuestionsInSpace: (spaceId, params = {}) => this.request({
|
|
494
|
+
path: `/spaces/${spaceId}/search/questions`,
|
|
495
|
+
method: "GET",
|
|
496
|
+
secure: true,
|
|
497
|
+
format: "json",
|
|
498
|
+
...params
|
|
499
|
+
}),
|
|
375
500
|
importGitRepository: (spaceId, data, params = {}) => this.request({
|
|
376
501
|
path: `/spaces/${spaceId}/git/import`,
|
|
377
502
|
method: "POST",
|
|
@@ -388,6 +513,13 @@ var Api = class extends HttpClient {
|
|
|
388
513
|
type: "application/json" /* Json */,
|
|
389
514
|
...params
|
|
390
515
|
}),
|
|
516
|
+
getSpaceGitInfo: (spaceId, params = {}) => this.request({
|
|
517
|
+
path: `/spaces/${spaceId}/git/info`,
|
|
518
|
+
method: "GET",
|
|
519
|
+
secure: true,
|
|
520
|
+
format: "json",
|
|
521
|
+
...params
|
|
522
|
+
}),
|
|
391
523
|
getContentAnalyticsForSpaceById: (spaceId, params = {}) => this.request({
|
|
392
524
|
path: `/spaces/${spaceId}/insights/content`,
|
|
393
525
|
method: "GET",
|
|
@@ -476,6 +608,21 @@ var Api = class extends HttpClient {
|
|
|
476
608
|
format: "json",
|
|
477
609
|
...params
|
|
478
610
|
}),
|
|
611
|
+
listChangeRequestsForSpace: (spaceId, query, params = {}) => this.request({
|
|
612
|
+
path: `/spaces/${spaceId}/change-requests`,
|
|
613
|
+
method: "GET",
|
|
614
|
+
query,
|
|
615
|
+
secure: true,
|
|
616
|
+
format: "json",
|
|
617
|
+
...params
|
|
618
|
+
}),
|
|
619
|
+
getChangeRequestById: (spaceId, changeRequestId, params = {}) => this.request({
|
|
620
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}`,
|
|
621
|
+
method: "GET",
|
|
622
|
+
secure: true,
|
|
623
|
+
format: "json",
|
|
624
|
+
...params
|
|
625
|
+
}),
|
|
479
626
|
mergeChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
|
|
480
627
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/merge`,
|
|
481
628
|
method: "POST",
|
|
@@ -490,6 +637,128 @@ var Api = class extends HttpClient {
|
|
|
490
637
|
format: "json",
|
|
491
638
|
...params
|
|
492
639
|
}),
|
|
640
|
+
getReviewsByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
641
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/reviews`,
|
|
642
|
+
method: "GET",
|
|
643
|
+
query,
|
|
644
|
+
secure: true,
|
|
645
|
+
format: "json",
|
|
646
|
+
...params
|
|
647
|
+
}),
|
|
648
|
+
submitChangeRequestReview: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
649
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/reviews`,
|
|
650
|
+
method: "POST",
|
|
651
|
+
body: data,
|
|
652
|
+
secure: true,
|
|
653
|
+
type: "application/json" /* Json */,
|
|
654
|
+
format: "json",
|
|
655
|
+
...params
|
|
656
|
+
}),
|
|
657
|
+
getRequestedReviewersByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
658
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
|
|
659
|
+
method: "GET",
|
|
660
|
+
query,
|
|
661
|
+
secure: true,
|
|
662
|
+
format: "json",
|
|
663
|
+
...params
|
|
664
|
+
}),
|
|
665
|
+
requestReviewersForChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
666
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
|
|
667
|
+
method: "POST",
|
|
668
|
+
body: data,
|
|
669
|
+
secure: true,
|
|
670
|
+
type: "application/json" /* Json */,
|
|
671
|
+
format: "json",
|
|
672
|
+
...params
|
|
673
|
+
}),
|
|
674
|
+
listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
675
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
|
|
676
|
+
method: "GET",
|
|
677
|
+
query,
|
|
678
|
+
secure: true,
|
|
679
|
+
format: "json",
|
|
680
|
+
...params
|
|
681
|
+
}),
|
|
682
|
+
postCommentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
683
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
|
|
684
|
+
method: "POST",
|
|
685
|
+
body: data,
|
|
686
|
+
secure: true,
|
|
687
|
+
type: "application/json" /* Json */,
|
|
688
|
+
format: "json",
|
|
689
|
+
...params
|
|
690
|
+
}),
|
|
691
|
+
getCommentInChangeRequest: (spaceId, changeRequestId, commentId, query, params = {}) => this.request({
|
|
692
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}`,
|
|
693
|
+
method: "GET",
|
|
694
|
+
query,
|
|
695
|
+
secure: true,
|
|
696
|
+
format: "json",
|
|
697
|
+
...params
|
|
698
|
+
}),
|
|
699
|
+
deleteCommentInChangeRequest: (spaceId, changeRequestId, commentId, params = {}) => this.request({
|
|
700
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}`,
|
|
701
|
+
method: "DELETE",
|
|
702
|
+
secure: true,
|
|
703
|
+
...params
|
|
704
|
+
}),
|
|
705
|
+
updateCommentInChangeRequest: (spaceId, changeRequestId, commentId, data, params = {}) => this.request({
|
|
706
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}`,
|
|
707
|
+
method: "PUT",
|
|
708
|
+
body: data,
|
|
709
|
+
secure: true,
|
|
710
|
+
type: "application/json" /* Json */,
|
|
711
|
+
format: "json",
|
|
712
|
+
...params
|
|
713
|
+
}),
|
|
714
|
+
listCommentRepliesInChangeRequest: (spaceId, changeRequestId, commentId, query, params = {}) => this.request({
|
|
715
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}/replies`,
|
|
716
|
+
method: "GET",
|
|
717
|
+
query,
|
|
718
|
+
secure: true,
|
|
719
|
+
format: "json",
|
|
720
|
+
...params
|
|
721
|
+
}),
|
|
722
|
+
postCommentReplyInChangeRequest: (spaceId, changeRequestId, commentId, data, query, params = {}) => this.request({
|
|
723
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}/replies`,
|
|
724
|
+
method: "POST",
|
|
725
|
+
query,
|
|
726
|
+
body: data,
|
|
727
|
+
secure: true,
|
|
728
|
+
type: "application/json" /* Json */,
|
|
729
|
+
format: "json",
|
|
730
|
+
...params
|
|
731
|
+
}),
|
|
732
|
+
getCommentReplyInChangeRequest: (spaceId, changeRequestId, commentId, commentReplyId, query, params = {}) => this.request({
|
|
733
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
734
|
+
method: "GET",
|
|
735
|
+
query,
|
|
736
|
+
secure: true,
|
|
737
|
+
format: "json",
|
|
738
|
+
...params
|
|
739
|
+
}),
|
|
740
|
+
updateCommentReplyInChangeRequest: (spaceId, changeRequestId, commentId, commentReplyId, data, params = {}) => this.request({
|
|
741
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
742
|
+
method: "PUT",
|
|
743
|
+
body: data,
|
|
744
|
+
secure: true,
|
|
745
|
+
type: "application/json" /* Json */,
|
|
746
|
+
format: "json",
|
|
747
|
+
...params
|
|
748
|
+
}),
|
|
749
|
+
deleteCommentReplyInChangeRequest: (spaceId, changeRequestId, commentId, commentReplyId, params = {}) => this.request({
|
|
750
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
751
|
+
method: "DELETE",
|
|
752
|
+
secure: true,
|
|
753
|
+
...params
|
|
754
|
+
}),
|
|
755
|
+
getContributorsByChangeRequestId: (spaceId, changeRequestId, params = {}) => this.request({
|
|
756
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/contributors`,
|
|
757
|
+
method: "GET",
|
|
758
|
+
secure: true,
|
|
759
|
+
format: "json",
|
|
760
|
+
...params
|
|
761
|
+
}),
|
|
493
762
|
getRevisionOfChangeRequestById: (spaceId, changeRequestId, params = {}) => this.request({
|
|
494
763
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
|
|
495
764
|
method: "GET",
|
|
@@ -568,6 +837,86 @@ var Api = class extends HttpClient {
|
|
|
568
837
|
format: "json",
|
|
569
838
|
...params
|
|
570
839
|
}),
|
|
840
|
+
listCommentsInSpace: (spaceId, query, params = {}) => this.request({
|
|
841
|
+
path: `/spaces/${spaceId}/comments`,
|
|
842
|
+
method: "GET",
|
|
843
|
+
query,
|
|
844
|
+
secure: true,
|
|
845
|
+
format: "json",
|
|
846
|
+
...params
|
|
847
|
+
}),
|
|
848
|
+
postCommentInSpace: (spaceId, data, params = {}) => this.request({
|
|
849
|
+
path: `/spaces/${spaceId}/comments`,
|
|
850
|
+
method: "POST",
|
|
851
|
+
body: data,
|
|
852
|
+
secure: true,
|
|
853
|
+
type: "application/json" /* Json */,
|
|
854
|
+
format: "json",
|
|
855
|
+
...params
|
|
856
|
+
}),
|
|
857
|
+
getCommentInSpace: (spaceId, commentId, query, params = {}) => this.request({
|
|
858
|
+
path: `/spaces/${spaceId}/comments/${commentId}`,
|
|
859
|
+
method: "GET",
|
|
860
|
+
query,
|
|
861
|
+
secure: true,
|
|
862
|
+
format: "json",
|
|
863
|
+
...params
|
|
864
|
+
}),
|
|
865
|
+
deleteCommentInSpace: (spaceId, commentId, params = {}) => this.request({
|
|
866
|
+
path: `/spaces/${spaceId}/comments/${commentId}`,
|
|
867
|
+
method: "DELETE",
|
|
868
|
+
secure: true,
|
|
869
|
+
...params
|
|
870
|
+
}),
|
|
871
|
+
updateCommentInSpace: (spaceId, commentId, data, params = {}) => this.request({
|
|
872
|
+
path: `/spaces/${spaceId}/comments/${commentId}`,
|
|
873
|
+
method: "PUT",
|
|
874
|
+
body: data,
|
|
875
|
+
secure: true,
|
|
876
|
+
type: "application/json" /* Json */,
|
|
877
|
+
format: "json",
|
|
878
|
+
...params
|
|
879
|
+
}),
|
|
880
|
+
listCommentRepliesInSpace: (spaceId, commentId, query, params = {}) => this.request({
|
|
881
|
+
path: `/spaces/${spaceId}/comments/${commentId}/replies`,
|
|
882
|
+
method: "GET",
|
|
883
|
+
query,
|
|
884
|
+
secure: true,
|
|
885
|
+
format: "json",
|
|
886
|
+
...params
|
|
887
|
+
}),
|
|
888
|
+
postCommentReplyInSpace: (spaceId, commentId, data, params = {}) => this.request({
|
|
889
|
+
path: `/spaces/${spaceId}/comments/${commentId}/replies`,
|
|
890
|
+
method: "POST",
|
|
891
|
+
body: data,
|
|
892
|
+
secure: true,
|
|
893
|
+
type: "application/json" /* Json */,
|
|
894
|
+
format: "json",
|
|
895
|
+
...params
|
|
896
|
+
}),
|
|
897
|
+
getCommentReplyInSpace: (spaceId, commentId, commentReplyId, query, params = {}) => this.request({
|
|
898
|
+
path: `/spaces/${spaceId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
899
|
+
method: "GET",
|
|
900
|
+
query,
|
|
901
|
+
secure: true,
|
|
902
|
+
format: "json",
|
|
903
|
+
...params
|
|
904
|
+
}),
|
|
905
|
+
updateCommentReplyInSpace: (spaceId, commentId, commentReplyId, data, params = {}) => this.request({
|
|
906
|
+
path: `/spaces/${spaceId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
907
|
+
method: "PUT",
|
|
908
|
+
body: data,
|
|
909
|
+
secure: true,
|
|
910
|
+
type: "application/json" /* Json */,
|
|
911
|
+
format: "json",
|
|
912
|
+
...params
|
|
913
|
+
}),
|
|
914
|
+
deleteCommentReplyInSpace: (spaceId, commentId, commentReplyId, params = {}) => this.request({
|
|
915
|
+
path: `/spaces/${spaceId}/comments/${commentId}/replies/${commentReplyId}`,
|
|
916
|
+
method: "DELETE",
|
|
917
|
+
secure: true,
|
|
918
|
+
...params
|
|
919
|
+
}),
|
|
571
920
|
listPermissionsAggregateInSpace: (spaceId, query, params = {}) => this.request({
|
|
572
921
|
path: `/spaces/${spaceId}/permissions/aggregate`,
|
|
573
922
|
method: "GET",
|
|
@@ -575,6 +924,113 @@ var Api = class extends HttpClient {
|
|
|
575
924
|
secure: true,
|
|
576
925
|
format: "json",
|
|
577
926
|
...params
|
|
927
|
+
}),
|
|
928
|
+
getSpacePublishingAuthById: (spaceId, params = {}) => this.request({
|
|
929
|
+
path: `/spaces/${spaceId}/publishing/auth`,
|
|
930
|
+
method: "GET",
|
|
931
|
+
secure: true,
|
|
932
|
+
format: "json",
|
|
933
|
+
...params
|
|
934
|
+
}),
|
|
935
|
+
updateSpacePublishingAuthById: (spaceId, data, params = {}) => this.request({
|
|
936
|
+
path: `/spaces/${spaceId}/publishing/auth`,
|
|
937
|
+
method: "POST",
|
|
938
|
+
body: data,
|
|
939
|
+
secure: true,
|
|
940
|
+
type: "application/json" /* Json */,
|
|
941
|
+
format: "json",
|
|
942
|
+
...params
|
|
943
|
+
}),
|
|
944
|
+
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request(
|
|
945
|
+
{
|
|
946
|
+
path: `/spaces/${spaceId}/integration-blocks`,
|
|
947
|
+
method: "GET",
|
|
948
|
+
secure: true,
|
|
949
|
+
format: "json",
|
|
950
|
+
...params
|
|
951
|
+
}
|
|
952
|
+
),
|
|
953
|
+
listSpaceRelations: (spaceId, query, params = {}) => this.request({
|
|
954
|
+
path: `/spaces/${spaceId}/relations`,
|
|
955
|
+
method: "GET",
|
|
956
|
+
query,
|
|
957
|
+
secure: true,
|
|
958
|
+
format: "json",
|
|
959
|
+
...params
|
|
960
|
+
}),
|
|
961
|
+
createSpaceRelation: (spaceId, data, params = {}) => this.request({
|
|
962
|
+
path: `/spaces/${spaceId}/relations`,
|
|
963
|
+
method: "POST",
|
|
964
|
+
body: data,
|
|
965
|
+
secure: true,
|
|
966
|
+
type: "application/json" /* Json */,
|
|
967
|
+
format: "json",
|
|
968
|
+
...params
|
|
969
|
+
}),
|
|
970
|
+
getSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
971
|
+
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
972
|
+
method: "GET",
|
|
973
|
+
secure: true,
|
|
974
|
+
format: "json",
|
|
975
|
+
...params
|
|
976
|
+
}),
|
|
977
|
+
deleteSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
978
|
+
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
979
|
+
method: "DELETE",
|
|
980
|
+
secure: true,
|
|
981
|
+
...params
|
|
982
|
+
}),
|
|
983
|
+
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
984
|
+
path: `/spaces/${spaceId}/custom-fields`,
|
|
985
|
+
method: "GET",
|
|
986
|
+
secure: true,
|
|
987
|
+
format: "json",
|
|
988
|
+
...params
|
|
989
|
+
}),
|
|
990
|
+
updateSpaceCustomFields: (spaceId, data, params = {}) => this.request({
|
|
991
|
+
path: `/spaces/${spaceId}/custom-fields`,
|
|
992
|
+
method: "PATCH",
|
|
993
|
+
body: data,
|
|
994
|
+
secure: true,
|
|
995
|
+
type: "application/json" /* Json */,
|
|
996
|
+
...params
|
|
997
|
+
}),
|
|
998
|
+
listSpaceEntities: (spaceId, query, params = {}) => this.request({
|
|
999
|
+
path: `/spaces/${spaceId}/entities`,
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
query,
|
|
1002
|
+
secure: true,
|
|
1003
|
+
format: "json",
|
|
1004
|
+
...params
|
|
1005
|
+
}),
|
|
1006
|
+
addSpaceEntities: (spaceId, data, params = {}) => this.request({
|
|
1007
|
+
path: `/spaces/${spaceId}/entities`,
|
|
1008
|
+
method: "POST",
|
|
1009
|
+
body: data,
|
|
1010
|
+
secure: true,
|
|
1011
|
+
type: "application/json" /* Json */,
|
|
1012
|
+
...params
|
|
1013
|
+
}),
|
|
1014
|
+
getSpaceEntity: (spaceId, integrationName, entityId, params = {}) => this.request({
|
|
1015
|
+
path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
|
|
1016
|
+
method: "GET",
|
|
1017
|
+
secure: true,
|
|
1018
|
+
format: "json",
|
|
1019
|
+
...params
|
|
1020
|
+
}),
|
|
1021
|
+
updateSpaceEntity: (spaceId, integrationName, entityId, data, params = {}) => this.request({
|
|
1022
|
+
path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
|
|
1023
|
+
method: "PATCH",
|
|
1024
|
+
body: data,
|
|
1025
|
+
secure: true,
|
|
1026
|
+
type: "application/json" /* Json */,
|
|
1027
|
+
...params
|
|
1028
|
+
}),
|
|
1029
|
+
deleteSpaceEntity: (spaceId, integrationName, entityId, params = {}) => this.request({
|
|
1030
|
+
path: `/spaces/${spaceId}/entities/${integrationName}/${entityId}`,
|
|
1031
|
+
method: "DELETE",
|
|
1032
|
+
secure: true,
|
|
1033
|
+
...params
|
|
578
1034
|
})
|
|
579
1035
|
};
|
|
580
1036
|
this.collections = {
|
|
@@ -585,6 +1041,15 @@ var Api = class extends HttpClient {
|
|
|
585
1041
|
format: "json",
|
|
586
1042
|
...params
|
|
587
1043
|
}),
|
|
1044
|
+
updateCollectionById: (collectionId, data, params = {}) => this.request({
|
|
1045
|
+
path: `/collections/${collectionId}`,
|
|
1046
|
+
method: "PATCH",
|
|
1047
|
+
body: data,
|
|
1048
|
+
secure: true,
|
|
1049
|
+
type: "application/json" /* Json */,
|
|
1050
|
+
format: "json",
|
|
1051
|
+
...params
|
|
1052
|
+
}),
|
|
588
1053
|
listSpacesInCollectionById: (collectionId, query, params = {}) => this.request({
|
|
589
1054
|
path: `/collections/${collectionId}/spaces`,
|
|
590
1055
|
method: "GET",
|
|
@@ -600,6 +1065,22 @@ var Api = class extends HttpClient {
|
|
|
600
1065
|
secure: true,
|
|
601
1066
|
format: "json",
|
|
602
1067
|
...params
|
|
1068
|
+
}),
|
|
1069
|
+
getCollectionPublishingAuthById: (collectionId, params = {}) => this.request({
|
|
1070
|
+
path: `/collections/${collectionId}/publishing/auth`,
|
|
1071
|
+
method: "GET",
|
|
1072
|
+
secure: true,
|
|
1073
|
+
format: "json",
|
|
1074
|
+
...params
|
|
1075
|
+
}),
|
|
1076
|
+
updateCollectionPublishingAuthById: (collectionId, data, params = {}) => this.request({
|
|
1077
|
+
path: `/collections/${collectionId}/publishing/auth`,
|
|
1078
|
+
method: "POST",
|
|
1079
|
+
body: data,
|
|
1080
|
+
secure: true,
|
|
1081
|
+
type: "application/json" /* Json */,
|
|
1082
|
+
format: "json",
|
|
1083
|
+
...params
|
|
603
1084
|
})
|
|
604
1085
|
};
|
|
605
1086
|
this.integrations = {
|
|
@@ -641,6 +1122,30 @@ var Api = class extends HttpClient {
|
|
|
641
1122
|
format: "json",
|
|
642
1123
|
...params
|
|
643
1124
|
}),
|
|
1125
|
+
installIntegration: (integrationName, data, params = {}) => this.request({
|
|
1126
|
+
path: `/integrations/${integrationName}/installations`,
|
|
1127
|
+
method: "POST",
|
|
1128
|
+
body: data,
|
|
1129
|
+
secure: true,
|
|
1130
|
+
type: "application/json" /* Json */,
|
|
1131
|
+
format: "json",
|
|
1132
|
+
...params
|
|
1133
|
+
}),
|
|
1134
|
+
listIntegrationEvents: (integrationName, query, params = {}) => this.request({
|
|
1135
|
+
path: `/integrations/${integrationName}/events`,
|
|
1136
|
+
method: "GET",
|
|
1137
|
+
query,
|
|
1138
|
+
secure: true,
|
|
1139
|
+
format: "json",
|
|
1140
|
+
...params
|
|
1141
|
+
}),
|
|
1142
|
+
getIntegrationEvent: (integrationName, eventId, params = {}) => this.request({
|
|
1143
|
+
path: `/integrations/${integrationName}/events/${eventId}`,
|
|
1144
|
+
method: "GET",
|
|
1145
|
+
secure: true,
|
|
1146
|
+
format: "json",
|
|
1147
|
+
...params
|
|
1148
|
+
}),
|
|
644
1149
|
listIntegrationSpaceInstallations: (integrationName, query, params = {}) => this.request({
|
|
645
1150
|
path: `/integrations/${integrationName}/spaces`,
|
|
646
1151
|
method: "GET",
|
|
@@ -649,6 +1154,20 @@ var Api = class extends HttpClient {
|
|
|
649
1154
|
format: "json",
|
|
650
1155
|
...params
|
|
651
1156
|
}),
|
|
1157
|
+
updateIntegrationDevSpace: (integrationName, spaceId, data, params = {}) => this.request({
|
|
1158
|
+
path: `/integrations/${integrationName}/spaces/${spaceId}/dev`,
|
|
1159
|
+
method: "PUT",
|
|
1160
|
+
body: data,
|
|
1161
|
+
secure: true,
|
|
1162
|
+
type: "application/json" /* Json */,
|
|
1163
|
+
...params
|
|
1164
|
+
}),
|
|
1165
|
+
removeIntegrationDevSpace: (integrationName, spaceId, params = {}) => this.request({
|
|
1166
|
+
path: `/integrations/${integrationName}/spaces/${spaceId}/dev`,
|
|
1167
|
+
method: "DELETE",
|
|
1168
|
+
secure: true,
|
|
1169
|
+
...params
|
|
1170
|
+
}),
|
|
652
1171
|
renderIntegrationUiWithGet: (integrationName, query, params = {}) => this.request({
|
|
653
1172
|
path: `/integrations/${integrationName}/render`,
|
|
654
1173
|
method: "GET",
|
|
@@ -666,6 +1185,13 @@ var Api = class extends HttpClient {
|
|
|
666
1185
|
format: "json",
|
|
667
1186
|
...params
|
|
668
1187
|
}),
|
|
1188
|
+
getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
|
|
1189
|
+
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1190
|
+
method: "GET",
|
|
1191
|
+
secure: true,
|
|
1192
|
+
format: "json",
|
|
1193
|
+
...params
|
|
1194
|
+
}),
|
|
669
1195
|
updateIntegrationInstallation: (integrationName, installationId, data, params = {}) => this.request({
|
|
670
1196
|
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
671
1197
|
method: "PATCH",
|
|
@@ -675,6 +1201,12 @@ var Api = class extends HttpClient {
|
|
|
675
1201
|
format: "json",
|
|
676
1202
|
...params
|
|
677
1203
|
}),
|
|
1204
|
+
uninstallIntegration: (integrationName, installationId, params = {}) => this.request({
|
|
1205
|
+
path: `/integrations/${integrationName}/installations/${installationId}`,
|
|
1206
|
+
method: "DELETE",
|
|
1207
|
+
secure: true,
|
|
1208
|
+
...params
|
|
1209
|
+
}),
|
|
678
1210
|
createIntegrationInstallationToken: (integrationName, installationId, params = {}) => this.request({
|
|
679
1211
|
path: `/integrations/${integrationName}/installations/${installationId}/tokens`,
|
|
680
1212
|
method: "POST",
|
|
@@ -682,6 +1214,15 @@ var Api = class extends HttpClient {
|
|
|
682
1214
|
format: "json",
|
|
683
1215
|
...params
|
|
684
1216
|
}),
|
|
1217
|
+
installIntegrationOnSpace: (integrationName, installationId, data, params = {}) => this.request({
|
|
1218
|
+
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
1219
|
+
method: "POST",
|
|
1220
|
+
body: data,
|
|
1221
|
+
secure: true,
|
|
1222
|
+
type: "application/json" /* Json */,
|
|
1223
|
+
format: "json",
|
|
1224
|
+
...params
|
|
1225
|
+
}),
|
|
685
1226
|
updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, params = {}) => this.request({
|
|
686
1227
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
687
1228
|
method: "PATCH",
|
|
@@ -690,6 +1231,27 @@ var Api = class extends HttpClient {
|
|
|
690
1231
|
type: "application/json" /* Json */,
|
|
691
1232
|
format: "json",
|
|
692
1233
|
...params
|
|
1234
|
+
}),
|
|
1235
|
+
uninstallIntegrationFromSpace: (integrationName, installationId, spaceId, params = {}) => this.request({
|
|
1236
|
+
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
1237
|
+
method: "DELETE",
|
|
1238
|
+
secure: true,
|
|
1239
|
+
...params
|
|
1240
|
+
}),
|
|
1241
|
+
getIntegrationEntities: (integrationName, installationId, params = {}) => this.request({
|
|
1242
|
+
path: `/integrations/${integrationName}/installations/${installationId}/entities`,
|
|
1243
|
+
method: "GET",
|
|
1244
|
+
secure: true,
|
|
1245
|
+
format: "json",
|
|
1246
|
+
...params
|
|
1247
|
+
}),
|
|
1248
|
+
syncIntegrationEntities: (integrationName, installationId, data, params = {}) => this.request({
|
|
1249
|
+
path: `/integrations/${integrationName}/installations/${installationId}/entities`,
|
|
1250
|
+
method: "POST",
|
|
1251
|
+
body: data,
|
|
1252
|
+
secure: true,
|
|
1253
|
+
type: "application/json" /* Json */,
|
|
1254
|
+
...params
|
|
693
1255
|
})
|
|
694
1256
|
};
|
|
695
1257
|
this.orgs = {
|
|
@@ -701,6 +1263,22 @@ var Api = class extends HttpClient {
|
|
|
701
1263
|
format: "json",
|
|
702
1264
|
...params
|
|
703
1265
|
}),
|
|
1266
|
+
createOrganization: (data, params = {}) => this.request({
|
|
1267
|
+
path: `/orgs`,
|
|
1268
|
+
method: "POST",
|
|
1269
|
+
body: data,
|
|
1270
|
+
secure: true,
|
|
1271
|
+
type: "application/json" /* Json */,
|
|
1272
|
+
format: "json",
|
|
1273
|
+
...params
|
|
1274
|
+
}),
|
|
1275
|
+
getOrganizationById: (organizationId, params = {}) => this.request({
|
|
1276
|
+
path: `/orgs/${organizationId}`,
|
|
1277
|
+
method: "GET",
|
|
1278
|
+
secure: true,
|
|
1279
|
+
format: "json",
|
|
1280
|
+
...params
|
|
1281
|
+
}),
|
|
704
1282
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
705
1283
|
path: `/orgs/${organizationId}/members`,
|
|
706
1284
|
method: "GET",
|
|
@@ -731,10 +1309,17 @@ var Api = class extends HttpClient {
|
|
|
731
1309
|
secure: true,
|
|
732
1310
|
...params
|
|
733
1311
|
}),
|
|
1312
|
+
updateOrganizationMemberLastSeenAt: (organizationId, params = {}) => this.request({
|
|
1313
|
+
path: `/orgs/${organizationId}/ping`,
|
|
1314
|
+
method: "POST",
|
|
1315
|
+
secure: true,
|
|
1316
|
+
...params
|
|
1317
|
+
}),
|
|
734
1318
|
setUserAsSsoMemberForOrganization: (organizationId, userId, params = {}) => this.request({
|
|
735
1319
|
path: `/orgs/${organizationId}/members/${userId}/sso`,
|
|
736
1320
|
method: "POST",
|
|
737
1321
|
secure: true,
|
|
1322
|
+
format: "json",
|
|
738
1323
|
...params
|
|
739
1324
|
}),
|
|
740
1325
|
listSpacesForOrganizationMember: (organizationId, userId, query, params = {}) => this.request({
|
|
@@ -745,6 +1330,16 @@ var Api = class extends HttpClient {
|
|
|
745
1330
|
format: "json",
|
|
746
1331
|
...params
|
|
747
1332
|
}),
|
|
1333
|
+
listTeamsForOrganizationMember: (organizationId, userId, query, params = {}) => this.request(
|
|
1334
|
+
{
|
|
1335
|
+
path: `/orgs/${organizationId}/members/${userId}/teams`,
|
|
1336
|
+
method: "GET",
|
|
1337
|
+
query,
|
|
1338
|
+
secure: true,
|
|
1339
|
+
format: "json",
|
|
1340
|
+
...params
|
|
1341
|
+
}
|
|
1342
|
+
),
|
|
748
1343
|
listTeamsInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
749
1344
|
path: `/orgs/${organizationId}/teams`,
|
|
750
1345
|
method: "GET",
|
|
@@ -800,10 +1395,12 @@ var Api = class extends HttpClient {
|
|
|
800
1395
|
format: "json",
|
|
801
1396
|
...params
|
|
802
1397
|
}),
|
|
803
|
-
addMemberToOrganizationTeamById: (organizationId, teamId, userId, params = {}) => this.request({
|
|
1398
|
+
addMemberToOrganizationTeamById: (organizationId, teamId, userId, data, params = {}) => this.request({
|
|
804
1399
|
path: `/orgs/${organizationId}/teams/${teamId}/members/${userId}`,
|
|
805
1400
|
method: "PUT",
|
|
1401
|
+
body: data,
|
|
806
1402
|
secure: true,
|
|
1403
|
+
type: "application/json" /* Json */,
|
|
807
1404
|
...params
|
|
808
1405
|
}),
|
|
809
1406
|
deleteMemberFromOrganizationTeamById: (organizationId, teamId, userId, params = {}) => this.request({
|
|
@@ -876,6 +1473,23 @@ var Api = class extends HttpClient {
|
|
|
876
1473
|
format: "json",
|
|
877
1474
|
...params
|
|
878
1475
|
}),
|
|
1476
|
+
createSpace: (organizationId, data, params = {}) => this.request({
|
|
1477
|
+
path: `/orgs/${organizationId}/spaces`,
|
|
1478
|
+
method: "POST",
|
|
1479
|
+
body: data,
|
|
1480
|
+
secure: true,
|
|
1481
|
+
type: "application/json" /* Json */,
|
|
1482
|
+
format: "json",
|
|
1483
|
+
...params
|
|
1484
|
+
}),
|
|
1485
|
+
listSpacesWithGitSyncInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1486
|
+
path: `/orgs/${organizationId}/spaces/gitsync`,
|
|
1487
|
+
method: "GET",
|
|
1488
|
+
query,
|
|
1489
|
+
secure: true,
|
|
1490
|
+
format: "json",
|
|
1491
|
+
...params
|
|
1492
|
+
}),
|
|
879
1493
|
listCollectionsInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
880
1494
|
path: `/orgs/${organizationId}/collections`,
|
|
881
1495
|
method: "GET",
|
|
@@ -906,6 +1520,135 @@ var Api = class extends HttpClient {
|
|
|
906
1520
|
type: "application/json" /* Json */,
|
|
907
1521
|
format: "json",
|
|
908
1522
|
...params
|
|
1523
|
+
}),
|
|
1524
|
+
listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
|
|
1525
|
+
path: `/orgs/${organizationId}/custom-fields`,
|
|
1526
|
+
method: "GET",
|
|
1527
|
+
query,
|
|
1528
|
+
secure: true,
|
|
1529
|
+
format: "json",
|
|
1530
|
+
...params
|
|
1531
|
+
}),
|
|
1532
|
+
createOrganizationCustomField: (organizationId, data, params = {}) => this.request({
|
|
1533
|
+
path: `/orgs/${organizationId}/custom-fields`,
|
|
1534
|
+
method: "POST",
|
|
1535
|
+
body: data,
|
|
1536
|
+
secure: true,
|
|
1537
|
+
type: "application/json" /* Json */,
|
|
1538
|
+
format: "json",
|
|
1539
|
+
...params
|
|
1540
|
+
}),
|
|
1541
|
+
getOrganizationCustomFieldByName: (organizationId, fieldName, params = {}) => this.request({
|
|
1542
|
+
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
1543
|
+
method: "GET",
|
|
1544
|
+
secure: true,
|
|
1545
|
+
format: "json",
|
|
1546
|
+
...params
|
|
1547
|
+
}),
|
|
1548
|
+
updateOrganizationCustomField: (organizationId, fieldName, data, params = {}) => this.request({
|
|
1549
|
+
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
1550
|
+
method: "PATCH",
|
|
1551
|
+
body: data,
|
|
1552
|
+
secure: true,
|
|
1553
|
+
type: "application/json" /* Json */,
|
|
1554
|
+
format: "json",
|
|
1555
|
+
...params
|
|
1556
|
+
}),
|
|
1557
|
+
deleteOrganizationCustomField: (organizationId, fieldName, params = {}) => this.request({
|
|
1558
|
+
path: `/orgs/${organizationId}/custom-fields/${fieldName}`,
|
|
1559
|
+
method: "DELETE",
|
|
1560
|
+
secure: true,
|
|
1561
|
+
...params
|
|
1562
|
+
}),
|
|
1563
|
+
listSpaceRelationsInOrganization: (organizationId, query, params = {}) => this.request({
|
|
1564
|
+
path: `/orgs/${organizationId}/space-relations`,
|
|
1565
|
+
method: "GET",
|
|
1566
|
+
query,
|
|
1567
|
+
secure: true,
|
|
1568
|
+
format: "json",
|
|
1569
|
+
...params
|
|
1570
|
+
}),
|
|
1571
|
+
listEntitiesInOrganization: (organizationId, query, params = {}) => this.request({
|
|
1572
|
+
path: `/orgs/${organizationId}/entities`,
|
|
1573
|
+
method: "GET",
|
|
1574
|
+
query,
|
|
1575
|
+
secure: true,
|
|
1576
|
+
format: "json",
|
|
1577
|
+
...params
|
|
1578
|
+
}),
|
|
1579
|
+
listEnvironments: (organizationId, query, params = {}) => this.request({
|
|
1580
|
+
path: `/orgs/${organizationId}/environments`,
|
|
1581
|
+
method: "GET",
|
|
1582
|
+
query,
|
|
1583
|
+
secure: true,
|
|
1584
|
+
format: "json",
|
|
1585
|
+
...params
|
|
1586
|
+
}),
|
|
1587
|
+
createEnvironment: (organizationId, data, params = {}) => this.request({
|
|
1588
|
+
path: `/orgs/${organizationId}/environments`,
|
|
1589
|
+
method: "POST",
|
|
1590
|
+
body: data,
|
|
1591
|
+
secure: true,
|
|
1592
|
+
type: "application/json" /* Json */,
|
|
1593
|
+
format: "json",
|
|
1594
|
+
...params
|
|
1595
|
+
}),
|
|
1596
|
+
getEnvironmentByName: (organizationId, environmentName, params = {}) => this.request({
|
|
1597
|
+
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1598
|
+
method: "GET",
|
|
1599
|
+
secure: true,
|
|
1600
|
+
format: "json",
|
|
1601
|
+
...params
|
|
1602
|
+
}),
|
|
1603
|
+
updateEnvironment: (organizationId, environmentName, data, params = {}) => this.request({
|
|
1604
|
+
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1605
|
+
method: "PATCH",
|
|
1606
|
+
body: data,
|
|
1607
|
+
secure: true,
|
|
1608
|
+
type: "application/json" /* Json */,
|
|
1609
|
+
format: "json",
|
|
1610
|
+
...params
|
|
1611
|
+
}),
|
|
1612
|
+
deleteEnvironment: (organizationId, environmentName, params = {}) => this.request({
|
|
1613
|
+
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1614
|
+
method: "DELETE",
|
|
1615
|
+
secure: true,
|
|
1616
|
+
...params
|
|
1617
|
+
}),
|
|
1618
|
+
startRecording: (organizationId, data, params = {}) => this.request({
|
|
1619
|
+
path: `/orgs/${organizationId}/recordings`,
|
|
1620
|
+
method: "POST",
|
|
1621
|
+
body: data,
|
|
1622
|
+
secure: true,
|
|
1623
|
+
type: "application/json" /* Json */,
|
|
1624
|
+
format: "json",
|
|
1625
|
+
...params
|
|
1626
|
+
}),
|
|
1627
|
+
addEventsToRecording: (organizationId, recordingId, data, params = {}) => this.request({
|
|
1628
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/events`,
|
|
1629
|
+
method: "POST",
|
|
1630
|
+
body: data,
|
|
1631
|
+
secure: true,
|
|
1632
|
+
type: "application/json" /* Json */,
|
|
1633
|
+
...params
|
|
1634
|
+
}),
|
|
1635
|
+
stopRecording: (organizationId, recordingId, params = {}) => this.request({
|
|
1636
|
+
path: `/orgs/${organizationId}/recordings/${recordingId}/stop`,
|
|
1637
|
+
method: "POST",
|
|
1638
|
+
secure: true,
|
|
1639
|
+
format: "json",
|
|
1640
|
+
...params
|
|
1641
|
+
})
|
|
1642
|
+
};
|
|
1643
|
+
this.internal = {
|
|
1644
|
+
generateHiveAccessToken: (data, params = {}) => this.request({
|
|
1645
|
+
path: `/internal/hive/token`,
|
|
1646
|
+
method: "POST",
|
|
1647
|
+
body: data,
|
|
1648
|
+
secure: true,
|
|
1649
|
+
type: "application/json" /* Json */,
|
|
1650
|
+
format: "json",
|
|
1651
|
+
...params
|
|
909
1652
|
})
|
|
910
1653
|
};
|
|
911
1654
|
this.urls = {
|
|
@@ -984,6 +1727,7 @@ export {
|
|
|
984
1727
|
Api,
|
|
985
1728
|
BillingInterval,
|
|
986
1729
|
BillingProduct,
|
|
1730
|
+
ChangeRequestReviewStatus,
|
|
987
1731
|
ChangeRequestStatus,
|
|
988
1732
|
CloudflareHostnameStatus,
|
|
989
1733
|
CloudflareHostnameTLSStatus,
|
|
@@ -991,8 +1735,10 @@ export {
|
|
|
991
1735
|
ContentKitIcon,
|
|
992
1736
|
ContentType,
|
|
993
1737
|
ContentVisibility,
|
|
1738
|
+
CustomFieldType,
|
|
994
1739
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
995
1740
|
GitBookAPI,
|
|
1741
|
+
GitSyncOperationState,
|
|
996
1742
|
HttpClient,
|
|
997
1743
|
ImportContentSource,
|
|
998
1744
|
IntegrationCategory,
|
|
@@ -1001,5 +1747,12 @@ export {
|
|
|
1001
1747
|
IntegrationScope,
|
|
1002
1748
|
IntegrationVisibility,
|
|
1003
1749
|
MemberRole,
|
|
1004
|
-
|
|
1750
|
+
OrganizationCommunityType,
|
|
1751
|
+
OrganizationType,
|
|
1752
|
+
OrganizationUseCase,
|
|
1753
|
+
PurgeCDNCacheContextType,
|
|
1754
|
+
RecordingContext,
|
|
1755
|
+
SpaceRelationType,
|
|
1756
|
+
SpaceType,
|
|
1757
|
+
TeamMemberRole
|
|
1005
1758
|
};
|