@gitbook/api 0.18.0 → 0.20.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 +932 -429
- package/dist/index.cjs +42 -22
- package/dist/index.js +42 -22
- package/package.json +2 -2
- package/spec/openapi.json +196 -14
- package/spec/openapi.yaml +123 -11
package/dist/index.cjs
CHANGED
|
@@ -367,6 +367,7 @@ var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
|
367
367
|
ContentType2["Json"] = "application/json";
|
|
368
368
|
ContentType2["FormData"] = "multipart/form-data";
|
|
369
369
|
ContentType2["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
370
|
+
ContentType2["Text"] = "text/plain";
|
|
370
371
|
return ContentType2;
|
|
371
372
|
})(ContentType || {});
|
|
372
373
|
var HttpClient = class {
|
|
@@ -386,6 +387,7 @@ var HttpClient = class {
|
|
|
386
387
|
};
|
|
387
388
|
this.contentFormatters = {
|
|
388
389
|
["application/json" /* Json */]: (input) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
|
|
390
|
+
["text/plain" /* Text */]: (input) => input !== null && typeof input !== "string" ? JSON.stringify(input) : input,
|
|
389
391
|
["multipart/form-data" /* FormData */]: (input) => Object.keys(input || {}).reduce((formData, key) => {
|
|
390
392
|
const property = input[key];
|
|
391
393
|
formData.append(
|
|
@@ -436,10 +438,10 @@ var HttpClient = class {
|
|
|
436
438
|
{
|
|
437
439
|
...requestParams,
|
|
438
440
|
headers: {
|
|
439
|
-
...
|
|
440
|
-
...
|
|
441
|
+
...requestParams.headers || {},
|
|
442
|
+
...type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}
|
|
441
443
|
},
|
|
442
|
-
signal: cancelToken ? this.createAbortSignal(cancelToken) :
|
|
444
|
+
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
|
|
443
445
|
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
|
|
444
446
|
}
|
|
445
447
|
).then(async (response) => {
|
|
@@ -1151,15 +1153,13 @@ var Api = class extends HttpClient {
|
|
|
1151
1153
|
format: "json",
|
|
1152
1154
|
...params
|
|
1153
1155
|
}),
|
|
1154
|
-
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request(
|
|
1155
|
-
{
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}
|
|
1162
|
-
),
|
|
1156
|
+
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request({
|
|
1157
|
+
path: `/spaces/${spaceId}/integration-blocks`,
|
|
1158
|
+
method: "GET",
|
|
1159
|
+
secure: true,
|
|
1160
|
+
format: "json",
|
|
1161
|
+
...params
|
|
1162
|
+
}),
|
|
1163
1163
|
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
1164
1164
|
path: `/spaces/${spaceId}/custom-fields`,
|
|
1165
1165
|
method: "GET",
|
|
@@ -1503,16 +1503,14 @@ var Api = class extends HttpClient {
|
|
|
1503
1503
|
format: "json",
|
|
1504
1504
|
...params
|
|
1505
1505
|
}),
|
|
1506
|
-
listTeamsForOrganizationMember: (organizationId, userId, query, params = {}) => this.request(
|
|
1507
|
-
{
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
}
|
|
1515
|
-
),
|
|
1506
|
+
listTeamsForOrganizationMember: (organizationId, userId, query, params = {}) => this.request({
|
|
1507
|
+
path: `/orgs/${organizationId}/members/${userId}/teams`,
|
|
1508
|
+
method: "GET",
|
|
1509
|
+
query,
|
|
1510
|
+
secure: true,
|
|
1511
|
+
format: "json",
|
|
1512
|
+
...params
|
|
1513
|
+
}),
|
|
1516
1514
|
listTeamsInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1517
1515
|
path: `/orgs/${organizationId}/teams`,
|
|
1518
1516
|
method: "GET",
|
|
@@ -1765,6 +1763,21 @@ var Api = class extends HttpClient {
|
|
|
1765
1763
|
format: "json",
|
|
1766
1764
|
...params
|
|
1767
1765
|
}),
|
|
1766
|
+
listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
|
|
1767
|
+
path: `/orgs/${organizationId}/experiments`,
|
|
1768
|
+
method: "GET",
|
|
1769
|
+
secure: true,
|
|
1770
|
+
format: "json",
|
|
1771
|
+
...params
|
|
1772
|
+
}),
|
|
1773
|
+
updateOrgExperimentalFeatures: (organizationId, data, params = {}) => this.request({
|
|
1774
|
+
path: `/orgs/${organizationId}/experiments`,
|
|
1775
|
+
method: "POST",
|
|
1776
|
+
body: data,
|
|
1777
|
+
secure: true,
|
|
1778
|
+
type: "application/json" /* Json */,
|
|
1779
|
+
...params
|
|
1780
|
+
}),
|
|
1768
1781
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
1769
1782
|
path: `/orgs/${organizationId}/schemas`,
|
|
1770
1783
|
method: "GET",
|
|
@@ -1932,6 +1945,13 @@ var Api = class extends HttpClient {
|
|
|
1932
1945
|
format: "json",
|
|
1933
1946
|
...params
|
|
1934
1947
|
}),
|
|
1948
|
+
getContentAuditRelationById: (organizationId, relationId, params = {}) => this.request({
|
|
1949
|
+
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1950
|
+
method: "GET",
|
|
1951
|
+
secure: true,
|
|
1952
|
+
format: "json",
|
|
1953
|
+
...params
|
|
1954
|
+
}),
|
|
1935
1955
|
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
1936
1956
|
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1937
1957
|
method: "PATCH",
|
package/dist/index.js
CHANGED
|
@@ -299,6 +299,7 @@ var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
|
299
299
|
ContentType2["Json"] = "application/json";
|
|
300
300
|
ContentType2["FormData"] = "multipart/form-data";
|
|
301
301
|
ContentType2["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
302
|
+
ContentType2["Text"] = "text/plain";
|
|
302
303
|
return ContentType2;
|
|
303
304
|
})(ContentType || {});
|
|
304
305
|
var HttpClient = class {
|
|
@@ -318,6 +319,7 @@ var HttpClient = class {
|
|
|
318
319
|
};
|
|
319
320
|
this.contentFormatters = {
|
|
320
321
|
["application/json" /* Json */]: (input) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
|
|
322
|
+
["text/plain" /* Text */]: (input) => input !== null && typeof input !== "string" ? JSON.stringify(input) : input,
|
|
321
323
|
["multipart/form-data" /* FormData */]: (input) => Object.keys(input || {}).reduce((formData, key) => {
|
|
322
324
|
const property = input[key];
|
|
323
325
|
formData.append(
|
|
@@ -368,10 +370,10 @@ var HttpClient = class {
|
|
|
368
370
|
{
|
|
369
371
|
...requestParams,
|
|
370
372
|
headers: {
|
|
371
|
-
...
|
|
372
|
-
...
|
|
373
|
+
...requestParams.headers || {},
|
|
374
|
+
...type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}
|
|
373
375
|
},
|
|
374
|
-
signal: cancelToken ? this.createAbortSignal(cancelToken) :
|
|
376
|
+
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
|
|
375
377
|
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
|
|
376
378
|
}
|
|
377
379
|
).then(async (response) => {
|
|
@@ -1083,15 +1085,13 @@ var Api = class extends HttpClient {
|
|
|
1083
1085
|
format: "json",
|
|
1084
1086
|
...params
|
|
1085
1087
|
}),
|
|
1086
|
-
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request(
|
|
1087
|
-
{
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}
|
|
1094
|
-
),
|
|
1088
|
+
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request({
|
|
1089
|
+
path: `/spaces/${spaceId}/integration-blocks`,
|
|
1090
|
+
method: "GET",
|
|
1091
|
+
secure: true,
|
|
1092
|
+
format: "json",
|
|
1093
|
+
...params
|
|
1094
|
+
}),
|
|
1095
1095
|
getSpaceCustomFields: (spaceId, params = {}) => this.request({
|
|
1096
1096
|
path: `/spaces/${spaceId}/custom-fields`,
|
|
1097
1097
|
method: "GET",
|
|
@@ -1435,16 +1435,14 @@ var Api = class extends HttpClient {
|
|
|
1435
1435
|
format: "json",
|
|
1436
1436
|
...params
|
|
1437
1437
|
}),
|
|
1438
|
-
listTeamsForOrganizationMember: (organizationId, userId, query, params = {}) => this.request(
|
|
1439
|
-
{
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}
|
|
1447
|
-
),
|
|
1438
|
+
listTeamsForOrganizationMember: (organizationId, userId, query, params = {}) => this.request({
|
|
1439
|
+
path: `/orgs/${organizationId}/members/${userId}/teams`,
|
|
1440
|
+
method: "GET",
|
|
1441
|
+
query,
|
|
1442
|
+
secure: true,
|
|
1443
|
+
format: "json",
|
|
1444
|
+
...params
|
|
1445
|
+
}),
|
|
1448
1446
|
listTeamsInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1449
1447
|
path: `/orgs/${organizationId}/teams`,
|
|
1450
1448
|
method: "GET",
|
|
@@ -1697,6 +1695,21 @@ var Api = class extends HttpClient {
|
|
|
1697
1695
|
format: "json",
|
|
1698
1696
|
...params
|
|
1699
1697
|
}),
|
|
1698
|
+
listOrgExperimentalFeatures: (organizationId, params = {}) => this.request({
|
|
1699
|
+
path: `/orgs/${organizationId}/experiments`,
|
|
1700
|
+
method: "GET",
|
|
1701
|
+
secure: true,
|
|
1702
|
+
format: "json",
|
|
1703
|
+
...params
|
|
1704
|
+
}),
|
|
1705
|
+
updateOrgExperimentalFeatures: (organizationId, data, params = {}) => this.request({
|
|
1706
|
+
path: `/orgs/${organizationId}/experiments`,
|
|
1707
|
+
method: "POST",
|
|
1708
|
+
body: data,
|
|
1709
|
+
secure: true,
|
|
1710
|
+
type: "application/json" /* Json */,
|
|
1711
|
+
...params
|
|
1712
|
+
}),
|
|
1700
1713
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
1701
1714
|
path: `/orgs/${organizationId}/schemas`,
|
|
1702
1715
|
method: "GET",
|
|
@@ -1864,6 +1877,13 @@ var Api = class extends HttpClient {
|
|
|
1864
1877
|
format: "json",
|
|
1865
1878
|
...params
|
|
1866
1879
|
}),
|
|
1880
|
+
getContentAuditRelationById: (organizationId, relationId, params = {}) => this.request({
|
|
1881
|
+
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1882
|
+
method: "GET",
|
|
1883
|
+
secure: true,
|
|
1884
|
+
format: "json",
|
|
1885
|
+
...params
|
|
1886
|
+
}),
|
|
1867
1887
|
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
1868
1888
|
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1869
1889
|
method: "PATCH",
|
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.20.0",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"files": [
|
|
10
10
|
"README.md",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dist/**"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"swagger-typescript-api": "^
|
|
15
|
+
"swagger-typescript-api": "^13.0.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"swagger-cli": "^4.0.4",
|
package/spec/openapi.json
CHANGED
|
@@ -106,12 +106,14 @@
|
|
|
106
106
|
"commentStatus": {
|
|
107
107
|
"name": "status",
|
|
108
108
|
"in": "query",
|
|
109
|
-
"description": "When provided, only comments with the given status are returned.
|
|
109
|
+
"description": "When provided, only comments with the given status are returned. Defaults to \"all\".",
|
|
110
110
|
"schema": {
|
|
111
111
|
"type": "string",
|
|
112
112
|
"default": "all",
|
|
113
113
|
"enum": [
|
|
114
|
-
"all"
|
|
114
|
+
"all",
|
|
115
|
+
"open",
|
|
116
|
+
"resolved"
|
|
115
117
|
]
|
|
116
118
|
}
|
|
117
119
|
},
|
|
@@ -286,6 +288,15 @@
|
|
|
286
288
|
"$ref": "#/components/schemas/EntityType"
|
|
287
289
|
}
|
|
288
290
|
},
|
|
291
|
+
"relationId": {
|
|
292
|
+
"name": "relationId",
|
|
293
|
+
"in": "path",
|
|
294
|
+
"required": true,
|
|
295
|
+
"description": "The id of the content audit relation",
|
|
296
|
+
"schema": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
289
300
|
"backofficeHostname": {
|
|
290
301
|
"name": "hostname",
|
|
291
302
|
"in": "path",
|
|
@@ -1207,7 +1218,10 @@
|
|
|
1207
1218
|
"preview": {
|
|
1208
1219
|
"type": "string"
|
|
1209
1220
|
}
|
|
1210
|
-
}
|
|
1221
|
+
},
|
|
1222
|
+
"required": [
|
|
1223
|
+
"id"
|
|
1224
|
+
]
|
|
1211
1225
|
},
|
|
1212
1226
|
"changeRequest": {
|
|
1213
1227
|
"description": "The change request containing this comment, if the comment was made inside a change request.",
|
|
@@ -4605,6 +4619,9 @@
|
|
|
4605
4619
|
},
|
|
4606
4620
|
"layout": {
|
|
4607
4621
|
"$ref": "#/components/schemas/RevisionPageLayoutOptions"
|
|
4622
|
+
},
|
|
4623
|
+
"cover": {
|
|
4624
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCover"
|
|
4608
4625
|
}
|
|
4609
4626
|
},
|
|
4610
4627
|
"required": [
|
|
@@ -5511,6 +5528,37 @@
|
|
|
5511
5528
|
"education"
|
|
5512
5529
|
]
|
|
5513
5530
|
},
|
|
5531
|
+
"OrganizationExperimentalFeature": {
|
|
5532
|
+
"type": "object",
|
|
5533
|
+
"properties": {
|
|
5534
|
+
"id": {
|
|
5535
|
+
"type": "string"
|
|
5536
|
+
},
|
|
5537
|
+
"title": {
|
|
5538
|
+
"type": "string"
|
|
5539
|
+
},
|
|
5540
|
+
"description": {
|
|
5541
|
+
"type": "string"
|
|
5542
|
+
},
|
|
5543
|
+
"enabled": {
|
|
5544
|
+
"type": "boolean"
|
|
5545
|
+
},
|
|
5546
|
+
"stage": {
|
|
5547
|
+
"type": "string",
|
|
5548
|
+
"enum": [
|
|
5549
|
+
"alpha",
|
|
5550
|
+
"beta"
|
|
5551
|
+
]
|
|
5552
|
+
}
|
|
5553
|
+
},
|
|
5554
|
+
"required": [
|
|
5555
|
+
"id",
|
|
5556
|
+
"title",
|
|
5557
|
+
"description",
|
|
5558
|
+
"enabled",
|
|
5559
|
+
"stage"
|
|
5560
|
+
]
|
|
5561
|
+
},
|
|
5514
5562
|
"MemberRole": {
|
|
5515
5563
|
"type": "string",
|
|
5516
5564
|
"description": "\"The role of a member in an organization.\n\"admin\": Can administrate the content: create, delete spaces, ...\n\"create\": Can create content.\n\"review\": Can review content.\n\"edit\": Can edit the content (live or change requests).\n\"comment\": Can access the content and its discussions.\n\"read\": Can access the content, but cannot update it in any way.\n",
|
|
@@ -9992,6 +10040,14 @@
|
|
|
9992
10040
|
},
|
|
9993
10041
|
"multiline": {
|
|
9994
10042
|
"type": "boolean"
|
|
10043
|
+
},
|
|
10044
|
+
"inputType": {
|
|
10045
|
+
"type": "string",
|
|
10046
|
+
"enum": [
|
|
10047
|
+
"text",
|
|
10048
|
+
"password"
|
|
10049
|
+
],
|
|
10050
|
+
"default": "text"
|
|
9995
10051
|
}
|
|
9996
10052
|
},
|
|
9997
10053
|
"required": [
|
|
@@ -11200,6 +11256,24 @@
|
|
|
11200
11256
|
{
|
|
11201
11257
|
"$ref": "#/components/schemas/OrganizationInstallationsChannel"
|
|
11202
11258
|
},
|
|
11259
|
+
{
|
|
11260
|
+
"type": "object",
|
|
11261
|
+
"properties": {
|
|
11262
|
+
"channel": {
|
|
11263
|
+
"type": "string",
|
|
11264
|
+
"enum": [
|
|
11265
|
+
"organization-experimental-features"
|
|
11266
|
+
]
|
|
11267
|
+
},
|
|
11268
|
+
"organization": {
|
|
11269
|
+
"type": "string"
|
|
11270
|
+
}
|
|
11271
|
+
},
|
|
11272
|
+
"required": [
|
|
11273
|
+
"channel",
|
|
11274
|
+
"organization"
|
|
11275
|
+
]
|
|
11276
|
+
},
|
|
11203
11277
|
{
|
|
11204
11278
|
"type": "object",
|
|
11205
11279
|
"properties": {
|
|
@@ -14571,7 +14645,7 @@
|
|
|
14571
14645
|
}
|
|
14572
14646
|
],
|
|
14573
14647
|
"responses": {
|
|
14574
|
-
"
|
|
14648
|
+
"205": {
|
|
14575
14649
|
"description": "The comment has been deleted."
|
|
14576
14650
|
},
|
|
14577
14651
|
"default": {
|
|
@@ -14868,7 +14942,7 @@
|
|
|
14868
14942
|
}
|
|
14869
14943
|
],
|
|
14870
14944
|
"responses": {
|
|
14871
|
-
"
|
|
14945
|
+
"205": {
|
|
14872
14946
|
"description": "The comment has been deleted."
|
|
14873
14947
|
},
|
|
14874
14948
|
"default": {
|
|
@@ -15794,7 +15868,7 @@
|
|
|
15794
15868
|
}
|
|
15795
15869
|
],
|
|
15796
15870
|
"responses": {
|
|
15797
|
-
"
|
|
15871
|
+
"205": {
|
|
15798
15872
|
"description": "The comment has been deleted."
|
|
15799
15873
|
},
|
|
15800
15874
|
"default": {
|
|
@@ -16070,7 +16144,7 @@
|
|
|
16070
16144
|
}
|
|
16071
16145
|
],
|
|
16072
16146
|
"responses": {
|
|
16073
|
-
"
|
|
16147
|
+
"205": {
|
|
16074
16148
|
"description": "The comment has been deleted."
|
|
16075
16149
|
},
|
|
16076
16150
|
"default": {
|
|
@@ -20184,6 +20258,81 @@
|
|
|
20184
20258
|
}
|
|
20185
20259
|
}
|
|
20186
20260
|
},
|
|
20261
|
+
"/orgs/{organizationId}/experiments": {
|
|
20262
|
+
"get": {
|
|
20263
|
+
"operationId": "listOrgExperimentalFeatures",
|
|
20264
|
+
"summary": "List experiemental features for the given organization.",
|
|
20265
|
+
"tags": [
|
|
20266
|
+
"organizations"
|
|
20267
|
+
],
|
|
20268
|
+
"security": [
|
|
20269
|
+
{
|
|
20270
|
+
"user": []
|
|
20271
|
+
}
|
|
20272
|
+
],
|
|
20273
|
+
"parameters": [
|
|
20274
|
+
{
|
|
20275
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20276
|
+
}
|
|
20277
|
+
],
|
|
20278
|
+
"responses": {
|
|
20279
|
+
"200": {
|
|
20280
|
+
"description": "OK",
|
|
20281
|
+
"content": {
|
|
20282
|
+
"application/json": {
|
|
20283
|
+
"schema": {
|
|
20284
|
+
"type": "array",
|
|
20285
|
+
"items": {
|
|
20286
|
+
"$ref": "#/components/schemas/OrganizationExperimentalFeature"
|
|
20287
|
+
}
|
|
20288
|
+
}
|
|
20289
|
+
}
|
|
20290
|
+
}
|
|
20291
|
+
},
|
|
20292
|
+
"default": {
|
|
20293
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
20294
|
+
}
|
|
20295
|
+
}
|
|
20296
|
+
},
|
|
20297
|
+
"post": {
|
|
20298
|
+
"operationId": "updateOrgExperimentalFeatures",
|
|
20299
|
+
"summary": "Toggle on or off experimental features.",
|
|
20300
|
+
"tags": [
|
|
20301
|
+
"organizations"
|
|
20302
|
+
],
|
|
20303
|
+
"security": [
|
|
20304
|
+
{
|
|
20305
|
+
"user": []
|
|
20306
|
+
}
|
|
20307
|
+
],
|
|
20308
|
+
"parameters": [
|
|
20309
|
+
{
|
|
20310
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20311
|
+
}
|
|
20312
|
+
],
|
|
20313
|
+
"requestBody": {
|
|
20314
|
+
"required": true,
|
|
20315
|
+
"content": {
|
|
20316
|
+
"application/json": {
|
|
20317
|
+
"schema": {
|
|
20318
|
+
"type": "object",
|
|
20319
|
+
"additionalProperties": {
|
|
20320
|
+
"type": "boolean"
|
|
20321
|
+
}
|
|
20322
|
+
}
|
|
20323
|
+
}
|
|
20324
|
+
}
|
|
20325
|
+
},
|
|
20326
|
+
"responses": {
|
|
20327
|
+
"204": {
|
|
20328
|
+
"description": "OK"
|
|
20329
|
+
},
|
|
20330
|
+
"default": {
|
|
20331
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
20332
|
+
}
|
|
20333
|
+
}
|
|
20334
|
+
}
|
|
20335
|
+
},
|
|
20187
20336
|
"/orgs/{organizationId}/schemas": {
|
|
20188
20337
|
"get": {
|
|
20189
20338
|
"operationId": "listEntitySchemas",
|
|
@@ -21284,6 +21433,45 @@
|
|
|
21284
21433
|
}
|
|
21285
21434
|
},
|
|
21286
21435
|
"/orgs/{organizationId}/insights/audit-relations/{relationId}": {
|
|
21436
|
+
"get": {
|
|
21437
|
+
"operationId": "getContentAuditRelationById",
|
|
21438
|
+
"summary": "Get an audit relation by ID",
|
|
21439
|
+
"tags": [
|
|
21440
|
+
"organizations"
|
|
21441
|
+
],
|
|
21442
|
+
"security": [
|
|
21443
|
+
{
|
|
21444
|
+
"user": []
|
|
21445
|
+
}
|
|
21446
|
+
],
|
|
21447
|
+
"parameters": [
|
|
21448
|
+
{
|
|
21449
|
+
"$ref": "#/components/parameters/organizationId"
|
|
21450
|
+
},
|
|
21451
|
+
{
|
|
21452
|
+
"$ref": "#/components/parameters/relationId"
|
|
21453
|
+
}
|
|
21454
|
+
],
|
|
21455
|
+
"responses": {
|
|
21456
|
+
"200": {
|
|
21457
|
+
"description": "OK",
|
|
21458
|
+
"content": {
|
|
21459
|
+
"application/json": {
|
|
21460
|
+
"schema": {
|
|
21461
|
+
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
21462
|
+
}
|
|
21463
|
+
}
|
|
21464
|
+
}
|
|
21465
|
+
},
|
|
21466
|
+
"404": {
|
|
21467
|
+
"description": "No matching content relation found for given ID",
|
|
21468
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
21469
|
+
},
|
|
21470
|
+
"default": {
|
|
21471
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
21472
|
+
}
|
|
21473
|
+
}
|
|
21474
|
+
},
|
|
21287
21475
|
"patch": {
|
|
21288
21476
|
"operationId": "updateContentAuditRelationStatusById",
|
|
21289
21477
|
"summary": "Update an audit relation status",
|
|
@@ -21300,13 +21488,7 @@
|
|
|
21300
21488
|
"$ref": "#/components/parameters/organizationId"
|
|
21301
21489
|
},
|
|
21302
21490
|
{
|
|
21303
|
-
"
|
|
21304
|
-
"in": "path",
|
|
21305
|
-
"required": true,
|
|
21306
|
-
"description": "The id of the content audit relation",
|
|
21307
|
-
"schema": {
|
|
21308
|
-
"type": "string"
|
|
21309
|
-
}
|
|
21491
|
+
"$ref": "#/components/parameters/relationId"
|
|
21310
21492
|
}
|
|
21311
21493
|
],
|
|
21312
21494
|
"requestBody": {
|