@gitbook/api 0.10.0 → 0.11.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/README.md +21 -0
- package/dist/client.d.ts +613 -305
- package/dist/index.cjs +48 -115
- package/dist/index.js +46 -111
- package/package.json +2 -1
- package/spec/openapi.json +3594 -1313
- package/spec/openapi.yaml +2035 -613
package/dist/index.cjs
CHANGED
|
@@ -43,26 +43,18 @@ __export(src_exports, {
|
|
|
43
43
|
IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
|
|
44
44
|
IntegrationInstallationStatus: () => IntegrationInstallationStatus,
|
|
45
45
|
IntegrationScope: () => IntegrationScope,
|
|
46
|
+
IntegrationTarget: () => IntegrationTarget,
|
|
46
47
|
IntegrationVisibility: () => IntegrationVisibility,
|
|
47
48
|
MemberRole: () => MemberRole,
|
|
48
49
|
OrganizationCommunityType: () => OrganizationCommunityType,
|
|
49
50
|
OrganizationType: () => OrganizationType,
|
|
50
51
|
OrganizationUseCase: () => OrganizationUseCase,
|
|
51
52
|
PurgeCDNCacheContextType: () => PurgeCDNCacheContextType,
|
|
52
|
-
|
|
53
|
-
SpaceType: () => SpaceType,
|
|
54
|
-
TeamMemberRole: () => TeamMemberRole,
|
|
55
|
-
UserPreferencesTheme: () => UserPreferencesTheme
|
|
53
|
+
TeamMemberRole: () => TeamMemberRole
|
|
56
54
|
});
|
|
57
55
|
module.exports = __toCommonJS(src_exports);
|
|
58
56
|
|
|
59
57
|
// src/client.ts
|
|
60
|
-
var UserPreferencesTheme = /* @__PURE__ */ ((UserPreferencesTheme2) => {
|
|
61
|
-
UserPreferencesTheme2["Light"] = "light";
|
|
62
|
-
UserPreferencesTheme2["Dark"] = "dark";
|
|
63
|
-
UserPreferencesTheme2["Default"] = "default";
|
|
64
|
-
return UserPreferencesTheme2;
|
|
65
|
-
})(UserPreferencesTheme || {});
|
|
66
58
|
var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
67
59
|
ContentVisibility2["Public"] = "public";
|
|
68
60
|
ContentVisibility2["Unlisted"] = "unlisted";
|
|
@@ -72,23 +64,6 @@ var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
|
72
64
|
ContentVisibility2["Private"] = "private";
|
|
73
65
|
return ContentVisibility2;
|
|
74
66
|
})(ContentVisibility || {});
|
|
75
|
-
var SpaceType = /* @__PURE__ */ ((SpaceType2) => {
|
|
76
|
-
SpaceType2["Application"] = "application";
|
|
77
|
-
SpaceType2["Website"] = "website";
|
|
78
|
-
SpaceType2["Service"] = "service";
|
|
79
|
-
SpaceType2["Library"] = "library";
|
|
80
|
-
SpaceType2["CloudResource"] = "cloud-resource";
|
|
81
|
-
SpaceType2["Database"] = "database";
|
|
82
|
-
SpaceType2["Other"] = "other";
|
|
83
|
-
return SpaceType2;
|
|
84
|
-
})(SpaceType || {});
|
|
85
|
-
var SpaceRelationType = /* @__PURE__ */ ((SpaceRelationType2) => {
|
|
86
|
-
SpaceRelationType2["DependsOn"] = "dependsOn";
|
|
87
|
-
SpaceRelationType2["DependencyOf"] = "dependencyOf";
|
|
88
|
-
SpaceRelationType2["PartOf"] = "partOf";
|
|
89
|
-
SpaceRelationType2["HasPart"] = "hasPart";
|
|
90
|
-
return SpaceRelationType2;
|
|
91
|
-
})(SpaceRelationType || {});
|
|
92
67
|
var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
93
68
|
ImportContentSource2["Website"] = "website";
|
|
94
69
|
ImportContentSource2["Docx"] = "docx";
|
|
@@ -140,8 +115,8 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
140
115
|
return MemberRole2;
|
|
141
116
|
})(MemberRole || {});
|
|
142
117
|
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
143
|
-
TeamMemberRole2["
|
|
144
|
-
TeamMemberRole2["
|
|
118
|
+
TeamMemberRole2["Owner"] = "owner";
|
|
119
|
+
TeamMemberRole2["Member"] = "member";
|
|
145
120
|
return TeamMemberRole2;
|
|
146
121
|
})(TeamMemberRole || {});
|
|
147
122
|
var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
@@ -188,10 +163,11 @@ var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstall
|
|
|
188
163
|
})(IntegrationInstallationSpaceSelection || {});
|
|
189
164
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
190
165
|
IntegrationCategory2["Analytics"] = "analytics";
|
|
166
|
+
IntegrationCategory2["Captures"] = "captures";
|
|
191
167
|
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
192
|
-
IntegrationCategory2["Marketing"] = "marketing";
|
|
193
168
|
IntegrationCategory2["Content"] = "content";
|
|
194
169
|
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
170
|
+
IntegrationCategory2["Marketing"] = "marketing";
|
|
195
171
|
IntegrationCategory2["Other"] = "other";
|
|
196
172
|
return IntegrationCategory2;
|
|
197
173
|
})(IntegrationCategory || {});
|
|
@@ -207,6 +183,11 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
|
|
|
207
183
|
IntegrationInstallationStatus2["Paused"] = "paused";
|
|
208
184
|
return IntegrationInstallationStatus2;
|
|
209
185
|
})(IntegrationInstallationStatus || {});
|
|
186
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
187
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
188
|
+
IntegrationTarget2["All"] = "all";
|
|
189
|
+
return IntegrationTarget2;
|
|
190
|
+
})(IntegrationTarget || {});
|
|
210
191
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
211
192
|
BillingInterval2["Monthly"] = "monthly";
|
|
212
193
|
BillingInterval2["Yearly"] = "yearly";
|
|
@@ -481,22 +462,6 @@ var Api = class extends HttpClient {
|
|
|
481
462
|
secure: true,
|
|
482
463
|
format: "json",
|
|
483
464
|
...params
|
|
484
|
-
}),
|
|
485
|
-
getPreferencesForAuthenticatedUser: (params = {}) => this.request({
|
|
486
|
-
path: `/user/preferences`,
|
|
487
|
-
method: "GET",
|
|
488
|
-
secure: true,
|
|
489
|
-
format: "json",
|
|
490
|
-
...params
|
|
491
|
-
}),
|
|
492
|
-
updatePreferencesForAuthenticatedUser: (data, params = {}) => this.request({
|
|
493
|
-
path: `/user/preferences`,
|
|
494
|
-
method: "PATCH",
|
|
495
|
-
body: data,
|
|
496
|
-
secure: true,
|
|
497
|
-
type: "application/json" /* Json */,
|
|
498
|
-
format: "json",
|
|
499
|
-
...params
|
|
500
465
|
})
|
|
501
466
|
};
|
|
502
467
|
this.users = {
|
|
@@ -1024,36 +989,6 @@ var Api = class extends HttpClient {
|
|
|
1024
989
|
...params
|
|
1025
990
|
}
|
|
1026
991
|
),
|
|
1027
|
-
listSpaceRelations: (spaceId, query, params = {}) => this.request({
|
|
1028
|
-
path: `/spaces/${spaceId}/relations`,
|
|
1029
|
-
method: "GET",
|
|
1030
|
-
query,
|
|
1031
|
-
secure: true,
|
|
1032
|
-
format: "json",
|
|
1033
|
-
...params
|
|
1034
|
-
}),
|
|
1035
|
-
createSpaceRelation: (spaceId, data, params = {}) => this.request({
|
|
1036
|
-
path: `/spaces/${spaceId}/relations`,
|
|
1037
|
-
method: "POST",
|
|
1038
|
-
body: data,
|
|
1039
|
-
secure: true,
|
|
1040
|
-
type: "application/json" /* Json */,
|
|
1041
|
-
format: "json",
|
|
1042
|
-
...params
|
|
1043
|
-
}),
|
|
1044
|
-
getSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
1045
|
-
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
1046
|
-
method: "GET",
|
|
1047
|
-
secure: true,
|
|
1048
|
-
format: "json",
|
|
1049
|
-
...params
|
|
1050
|
-
}),
|
|
1051
|
-
deleteSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
1052
|
-
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
1053
|
-
method: "DELETE",
|
|
1054
|
-
secure: true,
|
|
1055
|
-
...params
|
|
1056
|
-
}),
|
|
1057
992
|
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
1058
993
|
path: `/spaces/${spaceId}/custom-fields`,
|
|
1059
994
|
method: "GET",
|
|
@@ -1259,6 +1194,14 @@ var Api = class extends HttpClient {
|
|
|
1259
1194
|
format: "json",
|
|
1260
1195
|
...params
|
|
1261
1196
|
}),
|
|
1197
|
+
listIntegrationInstallationSpaces: (integrationName, installationId, query, params = {}) => this.request({
|
|
1198
|
+
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
1199
|
+
method: "GET",
|
|
1200
|
+
query,
|
|
1201
|
+
secure: true,
|
|
1202
|
+
format: "json",
|
|
1203
|
+
...params
|
|
1204
|
+
}),
|
|
1262
1205
|
installIntegrationOnSpace: (integrationName, installationId, data, params = {}) => this.request({
|
|
1263
1206
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
1264
1207
|
method: "POST",
|
|
@@ -1597,53 +1540,22 @@ var Api = class extends HttpClient {
|
|
|
1597
1540
|
secure: true,
|
|
1598
1541
|
...params
|
|
1599
1542
|
}),
|
|
1600
|
-
|
|
1601
|
-
path: `/orgs/${organizationId}/
|
|
1543
|
+
listOrganizationIntegrations: (organizationId, query, params = {}) => this.request({
|
|
1544
|
+
path: `/orgs/${organizationId}/integrations`,
|
|
1602
1545
|
method: "GET",
|
|
1603
1546
|
query,
|
|
1604
1547
|
secure: true,
|
|
1605
1548
|
format: "json",
|
|
1606
1549
|
...params
|
|
1607
1550
|
}),
|
|
1608
|
-
|
|
1609
|
-
path: `/orgs/${organizationId}/
|
|
1551
|
+
listOrganizationInstallations: (organizationId, query, params = {}) => this.request({
|
|
1552
|
+
path: `/orgs/${organizationId}/installations`,
|
|
1610
1553
|
method: "GET",
|
|
1611
1554
|
query,
|
|
1612
1555
|
secure: true,
|
|
1613
1556
|
format: "json",
|
|
1614
1557
|
...params
|
|
1615
1558
|
}),
|
|
1616
|
-
createEnvironment: (organizationId, data, params = {}) => this.request({
|
|
1617
|
-
path: `/orgs/${organizationId}/environments`,
|
|
1618
|
-
method: "POST",
|
|
1619
|
-
body: data,
|
|
1620
|
-
secure: true,
|
|
1621
|
-
type: "application/json" /* Json */,
|
|
1622
|
-
format: "json",
|
|
1623
|
-
...params
|
|
1624
|
-
}),
|
|
1625
|
-
getEnvironmentByName: (organizationId, environmentName, params = {}) => this.request({
|
|
1626
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1627
|
-
method: "GET",
|
|
1628
|
-
secure: true,
|
|
1629
|
-
format: "json",
|
|
1630
|
-
...params
|
|
1631
|
-
}),
|
|
1632
|
-
updateEnvironment: (organizationId, environmentName, data, params = {}) => this.request({
|
|
1633
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1634
|
-
method: "PATCH",
|
|
1635
|
-
body: data,
|
|
1636
|
-
secure: true,
|
|
1637
|
-
type: "application/json" /* Json */,
|
|
1638
|
-
format: "json",
|
|
1639
|
-
...params
|
|
1640
|
-
}),
|
|
1641
|
-
deleteEnvironment: (organizationId, environmentName, params = {}) => this.request({
|
|
1642
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1643
|
-
method: "DELETE",
|
|
1644
|
-
secure: true,
|
|
1645
|
-
...params
|
|
1646
|
-
}),
|
|
1647
1559
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
1648
1560
|
path: `/orgs/${organizationId}/schemas`,
|
|
1649
1561
|
method: "GET",
|
|
@@ -1721,6 +1633,21 @@ var Api = class extends HttpClient {
|
|
|
1721
1633
|
format: "json",
|
|
1722
1634
|
...params
|
|
1723
1635
|
}),
|
|
1636
|
+
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1637
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1638
|
+
method: "DELETE",
|
|
1639
|
+
secure: true,
|
|
1640
|
+
...params
|
|
1641
|
+
}),
|
|
1642
|
+
updateCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1643
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1644
|
+
method: "PUT",
|
|
1645
|
+
body: data,
|
|
1646
|
+
secure: true,
|
|
1647
|
+
type: "application/json" /* Json */,
|
|
1648
|
+
format: "json",
|
|
1649
|
+
...params
|
|
1650
|
+
}),
|
|
1724
1651
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1725
1652
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1726
1653
|
method: "POST",
|
|
@@ -1768,6 +1695,14 @@ var Api = class extends HttpClient {
|
|
|
1768
1695
|
secure: true,
|
|
1769
1696
|
format: "json",
|
|
1770
1697
|
...params
|
|
1698
|
+
}),
|
|
1699
|
+
getEmbedByUrl: (query, params = {}) => this.request({
|
|
1700
|
+
path: `/urls/embed`,
|
|
1701
|
+
method: "GET",
|
|
1702
|
+
query,
|
|
1703
|
+
secure: true,
|
|
1704
|
+
format: "json",
|
|
1705
|
+
...params
|
|
1771
1706
|
})
|
|
1772
1707
|
};
|
|
1773
1708
|
}
|
|
@@ -1855,14 +1790,12 @@ var GitBookAPI = class extends Api {
|
|
|
1855
1790
|
IntegrationInstallationSpaceSelection,
|
|
1856
1791
|
IntegrationInstallationStatus,
|
|
1857
1792
|
IntegrationScope,
|
|
1793
|
+
IntegrationTarget,
|
|
1858
1794
|
IntegrationVisibility,
|
|
1859
1795
|
MemberRole,
|
|
1860
1796
|
OrganizationCommunityType,
|
|
1861
1797
|
OrganizationType,
|
|
1862
1798
|
OrganizationUseCase,
|
|
1863
1799
|
PurgeCDNCacheContextType,
|
|
1864
|
-
|
|
1865
|
-
SpaceType,
|
|
1866
|
-
TeamMemberRole,
|
|
1867
|
-
UserPreferencesTheme
|
|
1800
|
+
TeamMemberRole
|
|
1868
1801
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// src/client.ts
|
|
2
|
-
var UserPreferencesTheme = /* @__PURE__ */ ((UserPreferencesTheme2) => {
|
|
3
|
-
UserPreferencesTheme2["Light"] = "light";
|
|
4
|
-
UserPreferencesTheme2["Dark"] = "dark";
|
|
5
|
-
UserPreferencesTheme2["Default"] = "default";
|
|
6
|
-
return UserPreferencesTheme2;
|
|
7
|
-
})(UserPreferencesTheme || {});
|
|
8
2
|
var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
9
3
|
ContentVisibility2["Public"] = "public";
|
|
10
4
|
ContentVisibility2["Unlisted"] = "unlisted";
|
|
@@ -14,23 +8,6 @@ var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
|
14
8
|
ContentVisibility2["Private"] = "private";
|
|
15
9
|
return ContentVisibility2;
|
|
16
10
|
})(ContentVisibility || {});
|
|
17
|
-
var SpaceType = /* @__PURE__ */ ((SpaceType2) => {
|
|
18
|
-
SpaceType2["Application"] = "application";
|
|
19
|
-
SpaceType2["Website"] = "website";
|
|
20
|
-
SpaceType2["Service"] = "service";
|
|
21
|
-
SpaceType2["Library"] = "library";
|
|
22
|
-
SpaceType2["CloudResource"] = "cloud-resource";
|
|
23
|
-
SpaceType2["Database"] = "database";
|
|
24
|
-
SpaceType2["Other"] = "other";
|
|
25
|
-
return SpaceType2;
|
|
26
|
-
})(SpaceType || {});
|
|
27
|
-
var SpaceRelationType = /* @__PURE__ */ ((SpaceRelationType2) => {
|
|
28
|
-
SpaceRelationType2["DependsOn"] = "dependsOn";
|
|
29
|
-
SpaceRelationType2["DependencyOf"] = "dependencyOf";
|
|
30
|
-
SpaceRelationType2["PartOf"] = "partOf";
|
|
31
|
-
SpaceRelationType2["HasPart"] = "hasPart";
|
|
32
|
-
return SpaceRelationType2;
|
|
33
|
-
})(SpaceRelationType || {});
|
|
34
11
|
var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
35
12
|
ImportContentSource2["Website"] = "website";
|
|
36
13
|
ImportContentSource2["Docx"] = "docx";
|
|
@@ -82,8 +59,8 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
82
59
|
return MemberRole2;
|
|
83
60
|
})(MemberRole || {});
|
|
84
61
|
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
85
|
-
TeamMemberRole2["
|
|
86
|
-
TeamMemberRole2["
|
|
62
|
+
TeamMemberRole2["Owner"] = "owner";
|
|
63
|
+
TeamMemberRole2["Member"] = "member";
|
|
87
64
|
return TeamMemberRole2;
|
|
88
65
|
})(TeamMemberRole || {});
|
|
89
66
|
var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
@@ -130,10 +107,11 @@ var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstall
|
|
|
130
107
|
})(IntegrationInstallationSpaceSelection || {});
|
|
131
108
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
132
109
|
IntegrationCategory2["Analytics"] = "analytics";
|
|
110
|
+
IntegrationCategory2["Captures"] = "captures";
|
|
133
111
|
IntegrationCategory2["Collaboration"] = "collaboration";
|
|
134
|
-
IntegrationCategory2["Marketing"] = "marketing";
|
|
135
112
|
IntegrationCategory2["Content"] = "content";
|
|
136
113
|
IntegrationCategory2["Gitsync"] = "gitsync";
|
|
114
|
+
IntegrationCategory2["Marketing"] = "marketing";
|
|
137
115
|
IntegrationCategory2["Other"] = "other";
|
|
138
116
|
return IntegrationCategory2;
|
|
139
117
|
})(IntegrationCategory || {});
|
|
@@ -149,6 +127,11 @@ var IntegrationInstallationStatus = /* @__PURE__ */ ((IntegrationInstallationSta
|
|
|
149
127
|
IntegrationInstallationStatus2["Paused"] = "paused";
|
|
150
128
|
return IntegrationInstallationStatus2;
|
|
151
129
|
})(IntegrationInstallationStatus || {});
|
|
130
|
+
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
131
|
+
IntegrationTarget2["Organization"] = "organization";
|
|
132
|
+
IntegrationTarget2["All"] = "all";
|
|
133
|
+
return IntegrationTarget2;
|
|
134
|
+
})(IntegrationTarget || {});
|
|
152
135
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
153
136
|
BillingInterval2["Monthly"] = "monthly";
|
|
154
137
|
BillingInterval2["Yearly"] = "yearly";
|
|
@@ -423,22 +406,6 @@ var Api = class extends HttpClient {
|
|
|
423
406
|
secure: true,
|
|
424
407
|
format: "json",
|
|
425
408
|
...params
|
|
426
|
-
}),
|
|
427
|
-
getPreferencesForAuthenticatedUser: (params = {}) => this.request({
|
|
428
|
-
path: `/user/preferences`,
|
|
429
|
-
method: "GET",
|
|
430
|
-
secure: true,
|
|
431
|
-
format: "json",
|
|
432
|
-
...params
|
|
433
|
-
}),
|
|
434
|
-
updatePreferencesForAuthenticatedUser: (data, params = {}) => this.request({
|
|
435
|
-
path: `/user/preferences`,
|
|
436
|
-
method: "PATCH",
|
|
437
|
-
body: data,
|
|
438
|
-
secure: true,
|
|
439
|
-
type: "application/json" /* Json */,
|
|
440
|
-
format: "json",
|
|
441
|
-
...params
|
|
442
409
|
})
|
|
443
410
|
};
|
|
444
411
|
this.users = {
|
|
@@ -966,36 +933,6 @@ var Api = class extends HttpClient {
|
|
|
966
933
|
...params
|
|
967
934
|
}
|
|
968
935
|
),
|
|
969
|
-
listSpaceRelations: (spaceId, query, params = {}) => this.request({
|
|
970
|
-
path: `/spaces/${spaceId}/relations`,
|
|
971
|
-
method: "GET",
|
|
972
|
-
query,
|
|
973
|
-
secure: true,
|
|
974
|
-
format: "json",
|
|
975
|
-
...params
|
|
976
|
-
}),
|
|
977
|
-
createSpaceRelation: (spaceId, data, params = {}) => this.request({
|
|
978
|
-
path: `/spaces/${spaceId}/relations`,
|
|
979
|
-
method: "POST",
|
|
980
|
-
body: data,
|
|
981
|
-
secure: true,
|
|
982
|
-
type: "application/json" /* Json */,
|
|
983
|
-
format: "json",
|
|
984
|
-
...params
|
|
985
|
-
}),
|
|
986
|
-
getSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
987
|
-
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
988
|
-
method: "GET",
|
|
989
|
-
secure: true,
|
|
990
|
-
format: "json",
|
|
991
|
-
...params
|
|
992
|
-
}),
|
|
993
|
-
deleteSpaceRelation: (spaceId, targetSpaceId, params = {}) => this.request({
|
|
994
|
-
path: `/spaces/${spaceId}/relations/${targetSpaceId}`,
|
|
995
|
-
method: "DELETE",
|
|
996
|
-
secure: true,
|
|
997
|
-
...params
|
|
998
|
-
}),
|
|
999
936
|
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
1000
937
|
path: `/spaces/${spaceId}/custom-fields`,
|
|
1001
938
|
method: "GET",
|
|
@@ -1201,6 +1138,14 @@ var Api = class extends HttpClient {
|
|
|
1201
1138
|
format: "json",
|
|
1202
1139
|
...params
|
|
1203
1140
|
}),
|
|
1141
|
+
listIntegrationInstallationSpaces: (integrationName, installationId, query, params = {}) => this.request({
|
|
1142
|
+
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
1143
|
+
method: "GET",
|
|
1144
|
+
query,
|
|
1145
|
+
secure: true,
|
|
1146
|
+
format: "json",
|
|
1147
|
+
...params
|
|
1148
|
+
}),
|
|
1204
1149
|
installIntegrationOnSpace: (integrationName, installationId, data, params = {}) => this.request({
|
|
1205
1150
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
1206
1151
|
method: "POST",
|
|
@@ -1539,53 +1484,22 @@ var Api = class extends HttpClient {
|
|
|
1539
1484
|
secure: true,
|
|
1540
1485
|
...params
|
|
1541
1486
|
}),
|
|
1542
|
-
|
|
1543
|
-
path: `/orgs/${organizationId}/
|
|
1487
|
+
listOrganizationIntegrations: (organizationId, query, params = {}) => this.request({
|
|
1488
|
+
path: `/orgs/${organizationId}/integrations`,
|
|
1544
1489
|
method: "GET",
|
|
1545
1490
|
query,
|
|
1546
1491
|
secure: true,
|
|
1547
1492
|
format: "json",
|
|
1548
1493
|
...params
|
|
1549
1494
|
}),
|
|
1550
|
-
|
|
1551
|
-
path: `/orgs/${organizationId}/
|
|
1495
|
+
listOrganizationInstallations: (organizationId, query, params = {}) => this.request({
|
|
1496
|
+
path: `/orgs/${organizationId}/installations`,
|
|
1552
1497
|
method: "GET",
|
|
1553
1498
|
query,
|
|
1554
1499
|
secure: true,
|
|
1555
1500
|
format: "json",
|
|
1556
1501
|
...params
|
|
1557
1502
|
}),
|
|
1558
|
-
createEnvironment: (organizationId, data, params = {}) => this.request({
|
|
1559
|
-
path: `/orgs/${organizationId}/environments`,
|
|
1560
|
-
method: "POST",
|
|
1561
|
-
body: data,
|
|
1562
|
-
secure: true,
|
|
1563
|
-
type: "application/json" /* Json */,
|
|
1564
|
-
format: "json",
|
|
1565
|
-
...params
|
|
1566
|
-
}),
|
|
1567
|
-
getEnvironmentByName: (organizationId, environmentName, params = {}) => this.request({
|
|
1568
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1569
|
-
method: "GET",
|
|
1570
|
-
secure: true,
|
|
1571
|
-
format: "json",
|
|
1572
|
-
...params
|
|
1573
|
-
}),
|
|
1574
|
-
updateEnvironment: (organizationId, environmentName, data, params = {}) => this.request({
|
|
1575
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1576
|
-
method: "PATCH",
|
|
1577
|
-
body: data,
|
|
1578
|
-
secure: true,
|
|
1579
|
-
type: "application/json" /* Json */,
|
|
1580
|
-
format: "json",
|
|
1581
|
-
...params
|
|
1582
|
-
}),
|
|
1583
|
-
deleteEnvironment: (organizationId, environmentName, params = {}) => this.request({
|
|
1584
|
-
path: `/orgs/${organizationId}/environments/${environmentName}`,
|
|
1585
|
-
method: "DELETE",
|
|
1586
|
-
secure: true,
|
|
1587
|
-
...params
|
|
1588
|
-
}),
|
|
1589
1503
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
1590
1504
|
path: `/orgs/${organizationId}/schemas`,
|
|
1591
1505
|
method: "GET",
|
|
@@ -1663,6 +1577,21 @@ var Api = class extends HttpClient {
|
|
|
1663
1577
|
format: "json",
|
|
1664
1578
|
...params
|
|
1665
1579
|
}),
|
|
1580
|
+
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1581
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1582
|
+
method: "DELETE",
|
|
1583
|
+
secure: true,
|
|
1584
|
+
...params
|
|
1585
|
+
}),
|
|
1586
|
+
updateCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1587
|
+
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1588
|
+
method: "PUT",
|
|
1589
|
+
body: data,
|
|
1590
|
+
secure: true,
|
|
1591
|
+
type: "application/json" /* Json */,
|
|
1592
|
+
format: "json",
|
|
1593
|
+
...params
|
|
1594
|
+
}),
|
|
1666
1595
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1667
1596
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1668
1597
|
method: "POST",
|
|
@@ -1710,6 +1639,14 @@ var Api = class extends HttpClient {
|
|
|
1710
1639
|
secure: true,
|
|
1711
1640
|
format: "json",
|
|
1712
1641
|
...params
|
|
1642
|
+
}),
|
|
1643
|
+
getEmbedByUrl: (query, params = {}) => this.request({
|
|
1644
|
+
path: `/urls/embed`,
|
|
1645
|
+
method: "GET",
|
|
1646
|
+
query,
|
|
1647
|
+
secure: true,
|
|
1648
|
+
format: "json",
|
|
1649
|
+
...params
|
|
1713
1650
|
})
|
|
1714
1651
|
};
|
|
1715
1652
|
}
|
|
@@ -1796,14 +1733,12 @@ export {
|
|
|
1796
1733
|
IntegrationInstallationSpaceSelection,
|
|
1797
1734
|
IntegrationInstallationStatus,
|
|
1798
1735
|
IntegrationScope,
|
|
1736
|
+
IntegrationTarget,
|
|
1799
1737
|
IntegrationVisibility,
|
|
1800
1738
|
MemberRole,
|
|
1801
1739
|
OrganizationCommunityType,
|
|
1802
1740
|
OrganizationType,
|
|
1803
1741
|
OrganizationUseCase,
|
|
1804
1742
|
PurgeCDNCacheContextType,
|
|
1805
|
-
|
|
1806
|
-
SpaceType,
|
|
1807
|
-
TeamMemberRole,
|
|
1808
|
-
UserPreferencesTheme
|
|
1743
|
+
TeamMemberRole
|
|
1809
1744
|
};
|