@gitbook/api 0.17.0 → 0.19.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 +76 -6
- package/dist/index.cjs +23 -0
- package/dist/index.js +23 -0
- package/package.json +1 -1
- package/spec/openapi.json +214 -13
- package/spec/openapi.yaml +135 -11
package/dist/client.d.ts
CHANGED
|
@@ -403,6 +403,13 @@ export declare type PublishedContentLookup = {
|
|
|
403
403
|
basePath: string;
|
|
404
404
|
apiToken: string;
|
|
405
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* Drawing generated from a prompt
|
|
408
|
+
*/
|
|
409
|
+
export interface GeneratedDrawing {
|
|
410
|
+
/** Mermaid diagram generated */
|
|
411
|
+
mermaid?: string;
|
|
412
|
+
}
|
|
406
413
|
export declare type Document = MarkdownDocument | {
|
|
407
414
|
document: JSONDocument;
|
|
408
415
|
} | object;
|
|
@@ -986,6 +993,8 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
986
993
|
documentId?: string;
|
|
987
994
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
988
995
|
git?: GitSyncBlob;
|
|
996
|
+
layout: RevisionPageLayoutOptions;
|
|
997
|
+
cover?: RevisionPageDocumentCover;
|
|
989
998
|
};
|
|
990
999
|
export interface RevisionPageDocumentCover {
|
|
991
1000
|
/** Content reference pointing to the source image. */
|
|
@@ -1370,8 +1379,8 @@ export interface OrganizationTeam {
|
|
|
1370
1379
|
object: 'team';
|
|
1371
1380
|
/** Unique identifier for the team. */
|
|
1372
1381
|
id: string;
|
|
1373
|
-
/** Title of the team
|
|
1374
|
-
title:
|
|
1382
|
+
/** Title of the team */
|
|
1383
|
+
title: OrganizationTeamTitle;
|
|
1375
1384
|
/** Count of members in this team. */
|
|
1376
1385
|
members: number;
|
|
1377
1386
|
/** Count of spaces this team has access to. */
|
|
@@ -1379,6 +1388,10 @@ export interface OrganizationTeam {
|
|
|
1379
1388
|
/** Date at which the team was created. */
|
|
1380
1389
|
createdAt: Date;
|
|
1381
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Title of the team
|
|
1393
|
+
*/
|
|
1394
|
+
export declare type OrganizationTeamTitle = string;
|
|
1382
1395
|
export interface TeamMember {
|
|
1383
1396
|
/**
|
|
1384
1397
|
* "The role of a team member.
|
|
@@ -2746,6 +2759,7 @@ export interface ContentKitTextInput {
|
|
|
2746
2759
|
/** Text that appears in the form control when it has no value set */
|
|
2747
2760
|
placeholder?: string;
|
|
2748
2761
|
multiline?: boolean;
|
|
2762
|
+
inputType?: 'text' | 'password';
|
|
2749
2763
|
}
|
|
2750
2764
|
/**
|
|
2751
2765
|
* Low level text element.
|
|
@@ -3047,7 +3061,10 @@ export interface ContentKitURL {
|
|
|
3047
3061
|
/**
|
|
3048
3062
|
* Channel to subscribe to for API updates.
|
|
3049
3063
|
*/
|
|
3050
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel |
|
|
3064
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | {
|
|
3065
|
+
channel: 'organization';
|
|
3066
|
+
organization: string;
|
|
3067
|
+
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
3051
3068
|
channel: 'space-comments';
|
|
3052
3069
|
space: string;
|
|
3053
3070
|
changeRequest?: string;
|
|
@@ -3104,6 +3121,10 @@ export interface UserAPITokensChannel {
|
|
|
3104
3121
|
channel: 'user-api-tokens';
|
|
3105
3122
|
user: string;
|
|
3106
3123
|
}
|
|
3124
|
+
export interface UserOrganizationsChannel {
|
|
3125
|
+
channel: 'user-organizations';
|
|
3126
|
+
user: string;
|
|
3127
|
+
}
|
|
3107
3128
|
export interface UserProfileChannel {
|
|
3108
3129
|
channel: 'user-profile';
|
|
3109
3130
|
user: string;
|
|
@@ -3335,6 +3356,7 @@ export declare enum CustomizationLocale {
|
|
|
3335
3356
|
Ja = "ja"
|
|
3336
3357
|
}
|
|
3337
3358
|
export declare enum CustomizationFont {
|
|
3359
|
+
ABCFavorit = "ABCFavorit",
|
|
3338
3360
|
Inter = "Inter",
|
|
3339
3361
|
Roboto = "Roboto",
|
|
3340
3362
|
RobotoSlab = "RobotoSlab",
|
|
@@ -4461,6 +4483,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4461
4483
|
* @secure
|
|
4462
4484
|
*/
|
|
4463
4485
|
updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4486
|
+
/**
|
|
4487
|
+
* No description
|
|
4488
|
+
*
|
|
4489
|
+
* @tags spaces
|
|
4490
|
+
* @name GenerateDrawing
|
|
4491
|
+
* @summary Generate a drawing from text.
|
|
4492
|
+
* @request POST:/spaces/{spaceId}/drawings
|
|
4493
|
+
* @secure
|
|
4494
|
+
*/
|
|
4495
|
+
generateDrawing: (spaceId: string, data: {
|
|
4496
|
+
text: string;
|
|
4497
|
+
context?: string;
|
|
4498
|
+
}, params?: RequestParams) => Promise<HttpResponse<GeneratedDrawing, Error>>;
|
|
4464
4499
|
};
|
|
4465
4500
|
collections: {
|
|
4466
4501
|
/**
|
|
@@ -4940,7 +4975,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4940
4975
|
* @request GET:/orgs/{organizationId}
|
|
4941
4976
|
* @secure
|
|
4942
4977
|
*/
|
|
4943
|
-
getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error
|
|
4978
|
+
getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
|
|
4979
|
+
error: {
|
|
4980
|
+
code: 404;
|
|
4981
|
+
message: string;
|
|
4982
|
+
};
|
|
4983
|
+
}>>;
|
|
4984
|
+
/**
|
|
4985
|
+
* No description
|
|
4986
|
+
*
|
|
4987
|
+
* @tags organizations
|
|
4988
|
+
* @name DeleteOrganizationById
|
|
4989
|
+
* @summary Delete an organization by its ID
|
|
4990
|
+
* @request DELETE:/orgs/{organizationId}
|
|
4991
|
+
* @secure
|
|
4992
|
+
*/
|
|
4993
|
+
deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
4994
|
+
error: {
|
|
4995
|
+
code: 404;
|
|
4996
|
+
message: string;
|
|
4997
|
+
};
|
|
4998
|
+
}>>;
|
|
4944
4999
|
/**
|
|
4945
5000
|
* @description Lists members for the specified organization.
|
|
4946
5001
|
*
|
|
@@ -5071,7 +5126,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5071
5126
|
* @secure
|
|
5072
5127
|
*/
|
|
5073
5128
|
createOrganizationTeam: (organizationId: string, data: {
|
|
5074
|
-
title:
|
|
5129
|
+
title: OrganizationTeamTitle;
|
|
5075
5130
|
members?: string[];
|
|
5076
5131
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
|
|
5077
5132
|
/**
|
|
@@ -5094,7 +5149,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5094
5149
|
* @secure
|
|
5095
5150
|
*/
|
|
5096
5151
|
updateTeamInOrganizationById: (organizationId: string, teamId: string, data: {
|
|
5097
|
-
title:
|
|
5152
|
+
title: OrganizationTeamTitle;
|
|
5098
5153
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
|
|
5099
5154
|
/**
|
|
5100
5155
|
* @description Deletes a specific team in an organization
|
|
@@ -5752,6 +5807,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5752
5807
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5753
5808
|
items: ContentAuditRelation[];
|
|
5754
5809
|
}, Error>>;
|
|
5810
|
+
/**
|
|
5811
|
+
* No description
|
|
5812
|
+
*
|
|
5813
|
+
* @tags organizations
|
|
5814
|
+
* @name GetContentAuditRelationById
|
|
5815
|
+
* @summary Get an audit relation by ID
|
|
5816
|
+
* @request GET:/orgs/{organizationId}/insights/audit-relations/{relationId}
|
|
5817
|
+
* @secure
|
|
5818
|
+
*/
|
|
5819
|
+
getContentAuditRelationById: (organizationId: string, relationId: string, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
|
|
5820
|
+
error: {
|
|
5821
|
+
code: 404;
|
|
5822
|
+
message: string;
|
|
5823
|
+
};
|
|
5824
|
+
}>>;
|
|
5755
5825
|
/**
|
|
5756
5826
|
* No description
|
|
5757
5827
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -328,6 +328,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
328
328
|
return CustomizationLocale2;
|
|
329
329
|
})(CustomizationLocale || {});
|
|
330
330
|
var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
|
|
331
|
+
CustomizationFont2["ABCFavorit"] = "ABCFavorit";
|
|
331
332
|
CustomizationFont2["Inter"] = "Inter";
|
|
332
333
|
CustomizationFont2["Roboto"] = "Roboto";
|
|
333
334
|
CustomizationFont2["RobotoSlab"] = "RobotoSlab";
|
|
@@ -1173,6 +1174,15 @@ var Api = class extends HttpClient {
|
|
|
1173
1174
|
secure: true,
|
|
1174
1175
|
type: "application/json" /* Json */,
|
|
1175
1176
|
...params
|
|
1177
|
+
}),
|
|
1178
|
+
generateDrawing: (spaceId, data, params = {}) => this.request({
|
|
1179
|
+
path: `/spaces/${spaceId}/drawings`,
|
|
1180
|
+
method: "POST",
|
|
1181
|
+
body: data,
|
|
1182
|
+
secure: true,
|
|
1183
|
+
type: "application/json" /* Json */,
|
|
1184
|
+
format: "json",
|
|
1185
|
+
...params
|
|
1176
1186
|
})
|
|
1177
1187
|
};
|
|
1178
1188
|
this.collections = {
|
|
@@ -1445,6 +1455,12 @@ var Api = class extends HttpClient {
|
|
|
1445
1455
|
format: "json",
|
|
1446
1456
|
...params
|
|
1447
1457
|
}),
|
|
1458
|
+
deleteOrganizationById: (organizationId, params = {}) => this.request({
|
|
1459
|
+
path: `/orgs/${organizationId}`,
|
|
1460
|
+
method: "DELETE",
|
|
1461
|
+
secure: true,
|
|
1462
|
+
...params
|
|
1463
|
+
}),
|
|
1448
1464
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1449
1465
|
path: `/orgs/${organizationId}/members`,
|
|
1450
1466
|
method: "GET",
|
|
@@ -1925,6 +1941,13 @@ var Api = class extends HttpClient {
|
|
|
1925
1941
|
format: "json",
|
|
1926
1942
|
...params
|
|
1927
1943
|
}),
|
|
1944
|
+
getContentAuditRelationById: (organizationId, relationId, params = {}) => this.request({
|
|
1945
|
+
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1946
|
+
method: "GET",
|
|
1947
|
+
secure: true,
|
|
1948
|
+
format: "json",
|
|
1949
|
+
...params
|
|
1950
|
+
}),
|
|
1928
1951
|
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
1929
1952
|
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1930
1953
|
method: "PATCH",
|
package/dist/index.js
CHANGED
|
@@ -260,6 +260,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
260
260
|
return CustomizationLocale2;
|
|
261
261
|
})(CustomizationLocale || {});
|
|
262
262
|
var CustomizationFont = /* @__PURE__ */ ((CustomizationFont2) => {
|
|
263
|
+
CustomizationFont2["ABCFavorit"] = "ABCFavorit";
|
|
263
264
|
CustomizationFont2["Inter"] = "Inter";
|
|
264
265
|
CustomizationFont2["Roboto"] = "Roboto";
|
|
265
266
|
CustomizationFont2["RobotoSlab"] = "RobotoSlab";
|
|
@@ -1105,6 +1106,15 @@ var Api = class extends HttpClient {
|
|
|
1105
1106
|
secure: true,
|
|
1106
1107
|
type: "application/json" /* Json */,
|
|
1107
1108
|
...params
|
|
1109
|
+
}),
|
|
1110
|
+
generateDrawing: (spaceId, data, params = {}) => this.request({
|
|
1111
|
+
path: `/spaces/${spaceId}/drawings`,
|
|
1112
|
+
method: "POST",
|
|
1113
|
+
body: data,
|
|
1114
|
+
secure: true,
|
|
1115
|
+
type: "application/json" /* Json */,
|
|
1116
|
+
format: "json",
|
|
1117
|
+
...params
|
|
1108
1118
|
})
|
|
1109
1119
|
};
|
|
1110
1120
|
this.collections = {
|
|
@@ -1377,6 +1387,12 @@ var Api = class extends HttpClient {
|
|
|
1377
1387
|
format: "json",
|
|
1378
1388
|
...params
|
|
1379
1389
|
}),
|
|
1390
|
+
deleteOrganizationById: (organizationId, params = {}) => this.request({
|
|
1391
|
+
path: `/orgs/${organizationId}`,
|
|
1392
|
+
method: "DELETE",
|
|
1393
|
+
secure: true,
|
|
1394
|
+
...params
|
|
1395
|
+
}),
|
|
1380
1396
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1381
1397
|
path: `/orgs/${organizationId}/members`,
|
|
1382
1398
|
method: "GET",
|
|
@@ -1857,6 +1873,13 @@ var Api = class extends HttpClient {
|
|
|
1857
1873
|
format: "json",
|
|
1858
1874
|
...params
|
|
1859
1875
|
}),
|
|
1876
|
+
getContentAuditRelationById: (organizationId, relationId, params = {}) => this.request({
|
|
1877
|
+
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1878
|
+
method: "GET",
|
|
1879
|
+
secure: true,
|
|
1880
|
+
format: "json",
|
|
1881
|
+
...params
|
|
1882
|
+
}),
|
|
1860
1883
|
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
1861
1884
|
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
1862
1885
|
method: "PATCH",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -286,6 +286,15 @@
|
|
|
286
286
|
"$ref": "#/components/schemas/EntityType"
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
+
"relationId": {
|
|
290
|
+
"name": "relationId",
|
|
291
|
+
"in": "path",
|
|
292
|
+
"required": true,
|
|
293
|
+
"description": "The id of the content audit relation",
|
|
294
|
+
"schema": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
289
298
|
"backofficeHostname": {
|
|
290
299
|
"name": "hostname",
|
|
291
300
|
"in": "path",
|
|
@@ -1444,6 +1453,16 @@
|
|
|
1444
1453
|
}
|
|
1445
1454
|
]
|
|
1446
1455
|
},
|
|
1456
|
+
"GeneratedDrawing": {
|
|
1457
|
+
"type": "object",
|
|
1458
|
+
"description": "Drawing generated from a prompt",
|
|
1459
|
+
"properties": {
|
|
1460
|
+
"mermaid": {
|
|
1461
|
+
"description": "Mermaid diagram generated",
|
|
1462
|
+
"type": "string"
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1447
1466
|
"Document": {
|
|
1448
1467
|
"oneOf": [
|
|
1449
1468
|
{
|
|
@@ -4602,6 +4621,12 @@
|
|
|
4602
4621
|
},
|
|
4603
4622
|
"git": {
|
|
4604
4623
|
"$ref": "#/components/schemas/GitSyncBlob"
|
|
4624
|
+
},
|
|
4625
|
+
"layout": {
|
|
4626
|
+
"$ref": "#/components/schemas/RevisionPageLayoutOptions"
|
|
4627
|
+
},
|
|
4628
|
+
"cover": {
|
|
4629
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCover"
|
|
4605
4630
|
}
|
|
4606
4631
|
},
|
|
4607
4632
|
"required": [
|
|
@@ -4609,7 +4634,8 @@
|
|
|
4609
4634
|
"type",
|
|
4610
4635
|
"slug",
|
|
4611
4636
|
"path",
|
|
4612
|
-
"pages"
|
|
4637
|
+
"pages",
|
|
4638
|
+
"layout"
|
|
4613
4639
|
]
|
|
4614
4640
|
}
|
|
4615
4641
|
]
|
|
@@ -5706,8 +5732,7 @@
|
|
|
5706
5732
|
"description": "Unique identifier for the team."
|
|
5707
5733
|
},
|
|
5708
5734
|
"title": {
|
|
5709
|
-
"
|
|
5710
|
-
"description": "Title of the team."
|
|
5735
|
+
"$ref": "#/components/schemas/OrganizationTeamTitle"
|
|
5711
5736
|
},
|
|
5712
5737
|
"members": {
|
|
5713
5738
|
"type": "integer",
|
|
@@ -5731,6 +5756,12 @@
|
|
|
5731
5756
|
"createdAt"
|
|
5732
5757
|
]
|
|
5733
5758
|
},
|
|
5759
|
+
"OrganizationTeamTitle": {
|
|
5760
|
+
"type": "string",
|
|
5761
|
+
"description": "Title of the team",
|
|
5762
|
+
"minLength": 1,
|
|
5763
|
+
"maxLength": 64
|
|
5764
|
+
},
|
|
5734
5765
|
"TeamMember": {
|
|
5735
5766
|
"type": "object",
|
|
5736
5767
|
"properties": {
|
|
@@ -9983,6 +10014,14 @@
|
|
|
9983
10014
|
},
|
|
9984
10015
|
"multiline": {
|
|
9985
10016
|
"type": "boolean"
|
|
10017
|
+
},
|
|
10018
|
+
"inputType": {
|
|
10019
|
+
"type": "string",
|
|
10020
|
+
"enum": [
|
|
10021
|
+
"text",
|
|
10022
|
+
"password"
|
|
10023
|
+
],
|
|
10024
|
+
"default": "text"
|
|
9986
10025
|
}
|
|
9987
10026
|
},
|
|
9988
10027
|
"required": [
|
|
@@ -11119,6 +11158,9 @@
|
|
|
11119
11158
|
{
|
|
11120
11159
|
"$ref": "#/components/schemas/UserAPITokensChannel"
|
|
11121
11160
|
},
|
|
11161
|
+
{
|
|
11162
|
+
"$ref": "#/components/schemas/UserOrganizationsChannel"
|
|
11163
|
+
},
|
|
11122
11164
|
{
|
|
11123
11165
|
"$ref": "#/components/schemas/UserProfileChannel"
|
|
11124
11166
|
},
|
|
@@ -11128,6 +11170,24 @@
|
|
|
11128
11170
|
{
|
|
11129
11171
|
"$ref": "#/components/schemas/CollectionPublishingCustomizationChannel"
|
|
11130
11172
|
},
|
|
11173
|
+
{
|
|
11174
|
+
"type": "object",
|
|
11175
|
+
"properties": {
|
|
11176
|
+
"channel": {
|
|
11177
|
+
"type": "string",
|
|
11178
|
+
"enum": [
|
|
11179
|
+
"organization"
|
|
11180
|
+
]
|
|
11181
|
+
},
|
|
11182
|
+
"organization": {
|
|
11183
|
+
"type": "string"
|
|
11184
|
+
}
|
|
11185
|
+
},
|
|
11186
|
+
"required": [
|
|
11187
|
+
"channel",
|
|
11188
|
+
"organization"
|
|
11189
|
+
]
|
|
11190
|
+
},
|
|
11131
11191
|
{
|
|
11132
11192
|
"$ref": "#/components/schemas/OrganizationMembersChannel"
|
|
11133
11193
|
},
|
|
@@ -11449,6 +11509,24 @@
|
|
|
11449
11509
|
"user"
|
|
11450
11510
|
]
|
|
11451
11511
|
},
|
|
11512
|
+
"UserOrganizationsChannel": {
|
|
11513
|
+
"type": "object",
|
|
11514
|
+
"properties": {
|
|
11515
|
+
"channel": {
|
|
11516
|
+
"type": "string",
|
|
11517
|
+
"enum": [
|
|
11518
|
+
"user-organizations"
|
|
11519
|
+
]
|
|
11520
|
+
},
|
|
11521
|
+
"user": {
|
|
11522
|
+
"type": "string"
|
|
11523
|
+
}
|
|
11524
|
+
},
|
|
11525
|
+
"required": [
|
|
11526
|
+
"channel",
|
|
11527
|
+
"user"
|
|
11528
|
+
]
|
|
11529
|
+
},
|
|
11452
11530
|
"UserProfileChannel": {
|
|
11453
11531
|
"type": "object",
|
|
11454
11532
|
"properties": {
|
|
@@ -12337,6 +12415,7 @@
|
|
|
12337
12415
|
"CustomizationFont": {
|
|
12338
12416
|
"type": "string",
|
|
12339
12417
|
"enum": [
|
|
12418
|
+
"ABCFavorit",
|
|
12340
12419
|
"Inter",
|
|
12341
12420
|
"Roboto",
|
|
12342
12421
|
"RobotoSlab",
|
|
@@ -16362,6 +16441,63 @@
|
|
|
16362
16441
|
}
|
|
16363
16442
|
}
|
|
16364
16443
|
},
|
|
16444
|
+
"/spaces/{spaceId}/drawings": {
|
|
16445
|
+
"post": {
|
|
16446
|
+
"operationId": "generateDrawing",
|
|
16447
|
+
"summary": "Generate a drawing from text.",
|
|
16448
|
+
"tags": [
|
|
16449
|
+
"spaces"
|
|
16450
|
+
],
|
|
16451
|
+
"security": [
|
|
16452
|
+
{
|
|
16453
|
+
"user-internal": []
|
|
16454
|
+
}
|
|
16455
|
+
],
|
|
16456
|
+
"parameters": [
|
|
16457
|
+
{
|
|
16458
|
+
"$ref": "#/components/parameters/spaceId"
|
|
16459
|
+
}
|
|
16460
|
+
],
|
|
16461
|
+
"requestBody": {
|
|
16462
|
+
"required": true,
|
|
16463
|
+
"content": {
|
|
16464
|
+
"application/json": {
|
|
16465
|
+
"schema": {
|
|
16466
|
+
"type": "object",
|
|
16467
|
+
"properties": {
|
|
16468
|
+
"text": {
|
|
16469
|
+
"type": "string",
|
|
16470
|
+
"description": "Instruction to describe the drawing."
|
|
16471
|
+
},
|
|
16472
|
+
"context": {
|
|
16473
|
+
"type": "string",
|
|
16474
|
+
"description": "Text context to provide for the generation."
|
|
16475
|
+
}
|
|
16476
|
+
},
|
|
16477
|
+
"required": [
|
|
16478
|
+
"text"
|
|
16479
|
+
]
|
|
16480
|
+
}
|
|
16481
|
+
}
|
|
16482
|
+
}
|
|
16483
|
+
},
|
|
16484
|
+
"responses": {
|
|
16485
|
+
"200": {
|
|
16486
|
+
"description": "Generated drawing",
|
|
16487
|
+
"content": {
|
|
16488
|
+
"application/json": {
|
|
16489
|
+
"schema": {
|
|
16490
|
+
"$ref": "#/components/schemas/GeneratedDrawing"
|
|
16491
|
+
}
|
|
16492
|
+
}
|
|
16493
|
+
}
|
|
16494
|
+
},
|
|
16495
|
+
"default": {
|
|
16496
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16497
|
+
}
|
|
16498
|
+
}
|
|
16499
|
+
}
|
|
16500
|
+
},
|
|
16365
16501
|
"/collections/{collectionId}": {
|
|
16366
16502
|
"get": {
|
|
16367
16503
|
"operationId": "getCollectionById",
|
|
@@ -17917,6 +18053,39 @@
|
|
|
17917
18053
|
}
|
|
17918
18054
|
}
|
|
17919
18055
|
},
|
|
18056
|
+
"404": {
|
|
18057
|
+
"description": "No matching organization found for given id",
|
|
18058
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
18059
|
+
},
|
|
18060
|
+
"default": {
|
|
18061
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
18062
|
+
}
|
|
18063
|
+
}
|
|
18064
|
+
},
|
|
18065
|
+
"delete": {
|
|
18066
|
+
"operationId": "deleteOrganizationById",
|
|
18067
|
+
"summary": "Delete an organization by its ID",
|
|
18068
|
+
"tags": [
|
|
18069
|
+
"organizations"
|
|
18070
|
+
],
|
|
18071
|
+
"security": [
|
|
18072
|
+
{
|
|
18073
|
+
"user-internal": []
|
|
18074
|
+
}
|
|
18075
|
+
],
|
|
18076
|
+
"parameters": [
|
|
18077
|
+
{
|
|
18078
|
+
"$ref": "#/components/parameters/organizationId"
|
|
18079
|
+
}
|
|
18080
|
+
],
|
|
18081
|
+
"responses": {
|
|
18082
|
+
"205": {
|
|
18083
|
+
"description": "The organization has been successfully deleted"
|
|
18084
|
+
},
|
|
18085
|
+
"404": {
|
|
18086
|
+
"description": "No matching organization found for given id",
|
|
18087
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
18088
|
+
},
|
|
17920
18089
|
"default": {
|
|
17921
18090
|
"$ref": "#/components/responses/UnexpectedError"
|
|
17922
18091
|
}
|
|
@@ -18448,8 +18617,7 @@
|
|
|
18448
18617
|
"type": "object",
|
|
18449
18618
|
"properties": {
|
|
18450
18619
|
"title": {
|
|
18451
|
-
"
|
|
18452
|
-
"title": "Title for the new team."
|
|
18620
|
+
"$ref": "#/components/schemas/OrganizationTeamTitle"
|
|
18453
18621
|
},
|
|
18454
18622
|
"members": {
|
|
18455
18623
|
"type": "array",
|
|
@@ -18547,7 +18715,7 @@
|
|
|
18547
18715
|
"type": "object",
|
|
18548
18716
|
"properties": {
|
|
18549
18717
|
"title": {
|
|
18550
|
-
"
|
|
18718
|
+
"$ref": "#/components/schemas/OrganizationTeamTitle"
|
|
18551
18719
|
}
|
|
18552
18720
|
},
|
|
18553
18721
|
"required": [
|
|
@@ -21203,6 +21371,45 @@
|
|
|
21203
21371
|
}
|
|
21204
21372
|
},
|
|
21205
21373
|
"/orgs/{organizationId}/insights/audit-relations/{relationId}": {
|
|
21374
|
+
"get": {
|
|
21375
|
+
"operationId": "getContentAuditRelationById",
|
|
21376
|
+
"summary": "Get an audit relation by ID",
|
|
21377
|
+
"tags": [
|
|
21378
|
+
"organizations"
|
|
21379
|
+
],
|
|
21380
|
+
"security": [
|
|
21381
|
+
{
|
|
21382
|
+
"user": []
|
|
21383
|
+
}
|
|
21384
|
+
],
|
|
21385
|
+
"parameters": [
|
|
21386
|
+
{
|
|
21387
|
+
"$ref": "#/components/parameters/organizationId"
|
|
21388
|
+
},
|
|
21389
|
+
{
|
|
21390
|
+
"$ref": "#/components/parameters/relationId"
|
|
21391
|
+
}
|
|
21392
|
+
],
|
|
21393
|
+
"responses": {
|
|
21394
|
+
"200": {
|
|
21395
|
+
"description": "OK",
|
|
21396
|
+
"content": {
|
|
21397
|
+
"application/json": {
|
|
21398
|
+
"schema": {
|
|
21399
|
+
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
21400
|
+
}
|
|
21401
|
+
}
|
|
21402
|
+
}
|
|
21403
|
+
},
|
|
21404
|
+
"404": {
|
|
21405
|
+
"description": "No matching content relation found for given ID",
|
|
21406
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
21407
|
+
},
|
|
21408
|
+
"default": {
|
|
21409
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
21410
|
+
}
|
|
21411
|
+
}
|
|
21412
|
+
},
|
|
21206
21413
|
"patch": {
|
|
21207
21414
|
"operationId": "updateContentAuditRelationStatusById",
|
|
21208
21415
|
"summary": "Update an audit relation status",
|
|
@@ -21219,13 +21426,7 @@
|
|
|
21219
21426
|
"$ref": "#/components/parameters/organizationId"
|
|
21220
21427
|
},
|
|
21221
21428
|
{
|
|
21222
|
-
"
|
|
21223
|
-
"in": "path",
|
|
21224
|
-
"required": true,
|
|
21225
|
-
"description": "The id of the content audit relation",
|
|
21226
|
-
"schema": {
|
|
21227
|
-
"type": "string"
|
|
21228
|
-
}
|
|
21429
|
+
"$ref": "#/components/parameters/relationId"
|
|
21229
21430
|
}
|
|
21230
21431
|
],
|
|
21231
21432
|
"requestBody": {
|
package/spec/openapi.yaml
CHANGED
|
@@ -207,6 +207,13 @@ components:
|
|
|
207
207
|
description: Type of the entity
|
|
208
208
|
schema:
|
|
209
209
|
$ref: "#/components/schemas/EntityType"
|
|
210
|
+
relationId:
|
|
211
|
+
name: relationId
|
|
212
|
+
in: path
|
|
213
|
+
required: true
|
|
214
|
+
description: The id of the content audit relation
|
|
215
|
+
schema:
|
|
216
|
+
type: string
|
|
210
217
|
backofficeHostname:
|
|
211
218
|
name: hostname
|
|
212
219
|
in: path
|
|
@@ -1020,6 +1027,13 @@ components:
|
|
|
1020
1027
|
- pathname
|
|
1021
1028
|
- basePath
|
|
1022
1029
|
- apiToken
|
|
1030
|
+
GeneratedDrawing:
|
|
1031
|
+
type: object
|
|
1032
|
+
description: Drawing generated from a prompt
|
|
1033
|
+
properties:
|
|
1034
|
+
mermaid:
|
|
1035
|
+
description: Mermaid diagram generated
|
|
1036
|
+
type: string
|
|
1023
1037
|
Document:
|
|
1024
1038
|
oneOf:
|
|
1025
1039
|
- $ref: "#/components/schemas/MarkdownDocument"
|
|
@@ -2993,12 +3007,17 @@ components:
|
|
|
2993
3007
|
- $ref: "#/components/schemas/RevisionPageLink"
|
|
2994
3008
|
git:
|
|
2995
3009
|
$ref: "#/components/schemas/GitSyncBlob"
|
|
3010
|
+
layout:
|
|
3011
|
+
$ref: "#/components/schemas/RevisionPageLayoutOptions"
|
|
3012
|
+
cover:
|
|
3013
|
+
$ref: "#/components/schemas/RevisionPageDocumentCover"
|
|
2996
3014
|
required:
|
|
2997
3015
|
- kind
|
|
2998
3016
|
- type
|
|
2999
3017
|
- slug
|
|
3000
3018
|
- path
|
|
3001
3019
|
- pages
|
|
3020
|
+
- layout
|
|
3002
3021
|
RevisionPageDocumentCover:
|
|
3003
3022
|
type: object
|
|
3004
3023
|
properties:
|
|
@@ -3746,8 +3765,7 @@ components:
|
|
|
3746
3765
|
type: string
|
|
3747
3766
|
description: Unique identifier for the team.
|
|
3748
3767
|
title:
|
|
3749
|
-
|
|
3750
|
-
description: Title of the team.
|
|
3768
|
+
$ref: "#/components/schemas/OrganizationTeamTitle"
|
|
3751
3769
|
members:
|
|
3752
3770
|
type: integer
|
|
3753
3771
|
description: Count of members in this team.
|
|
@@ -3764,6 +3782,11 @@ components:
|
|
|
3764
3782
|
- members
|
|
3765
3783
|
- spaces
|
|
3766
3784
|
- createdAt
|
|
3785
|
+
OrganizationTeamTitle:
|
|
3786
|
+
type: string
|
|
3787
|
+
description: Title of the team
|
|
3788
|
+
minLength: 1
|
|
3789
|
+
maxLength: 64
|
|
3767
3790
|
TeamMember:
|
|
3768
3791
|
type: object
|
|
3769
3792
|
properties:
|
|
@@ -6616,6 +6639,12 @@ components:
|
|
|
6616
6639
|
type: string
|
|
6617
6640
|
multiline:
|
|
6618
6641
|
type: boolean
|
|
6642
|
+
inputType:
|
|
6643
|
+
type: string
|
|
6644
|
+
enum:
|
|
6645
|
+
- text
|
|
6646
|
+
- password
|
|
6647
|
+
default: text
|
|
6619
6648
|
required:
|
|
6620
6649
|
- type
|
|
6621
6650
|
- state
|
|
@@ -7304,9 +7333,21 @@ components:
|
|
|
7304
7333
|
- $ref: "#/components/schemas/SpaceIntegrationsChannel"
|
|
7305
7334
|
- $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
|
|
7306
7335
|
- $ref: "#/components/schemas/UserAPITokensChannel"
|
|
7336
|
+
- $ref: "#/components/schemas/UserOrganizationsChannel"
|
|
7307
7337
|
- $ref: "#/components/schemas/UserProfileChannel"
|
|
7308
7338
|
- $ref: "#/components/schemas/ChangeRequestReviewsChannel"
|
|
7309
7339
|
- $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
|
|
7340
|
+
- type: object
|
|
7341
|
+
properties:
|
|
7342
|
+
channel:
|
|
7343
|
+
type: string
|
|
7344
|
+
enum:
|
|
7345
|
+
- organization
|
|
7346
|
+
organization:
|
|
7347
|
+
type: string
|
|
7348
|
+
required:
|
|
7349
|
+
- channel
|
|
7350
|
+
- organization
|
|
7310
7351
|
- $ref: "#/components/schemas/OrganizationMembersChannel"
|
|
7311
7352
|
- $ref: "#/components/schemas/OrganizationMemberChannel"
|
|
7312
7353
|
- $ref: "#/components/schemas/OrganizationTeamsChannel"
|
|
@@ -7499,6 +7540,18 @@ components:
|
|
|
7499
7540
|
required:
|
|
7500
7541
|
- channel
|
|
7501
7542
|
- user
|
|
7543
|
+
UserOrganizationsChannel:
|
|
7544
|
+
type: object
|
|
7545
|
+
properties:
|
|
7546
|
+
channel:
|
|
7547
|
+
type: string
|
|
7548
|
+
enum:
|
|
7549
|
+
- user-organizations
|
|
7550
|
+
user:
|
|
7551
|
+
type: string
|
|
7552
|
+
required:
|
|
7553
|
+
- channel
|
|
7554
|
+
- user
|
|
7502
7555
|
UserProfileChannel:
|
|
7503
7556
|
type: object
|
|
7504
7557
|
properties:
|
|
@@ -8101,6 +8154,7 @@ components:
|
|
|
8101
8154
|
CustomizationFont:
|
|
8102
8155
|
type: string
|
|
8103
8156
|
enum:
|
|
8157
|
+
- ABCFavorit
|
|
8104
8158
|
- Inter
|
|
8105
8159
|
- Roboto
|
|
8106
8160
|
- RobotoSlab
|
|
@@ -10329,6 +10383,40 @@ paths:
|
|
|
10329
10383
|
description: Custom fields updated
|
|
10330
10384
|
default:
|
|
10331
10385
|
$ref: "#/components/responses/UnexpectedError"
|
|
10386
|
+
"/spaces/{spaceId}/drawings":
|
|
10387
|
+
post:
|
|
10388
|
+
operationId: generateDrawing
|
|
10389
|
+
summary: Generate a drawing from text.
|
|
10390
|
+
tags:
|
|
10391
|
+
- spaces
|
|
10392
|
+
security:
|
|
10393
|
+
- user-internal: []
|
|
10394
|
+
parameters:
|
|
10395
|
+
- $ref: "#/components/parameters/spaceId"
|
|
10396
|
+
requestBody:
|
|
10397
|
+
required: true
|
|
10398
|
+
content:
|
|
10399
|
+
application/json:
|
|
10400
|
+
schema:
|
|
10401
|
+
type: object
|
|
10402
|
+
properties:
|
|
10403
|
+
text:
|
|
10404
|
+
type: string
|
|
10405
|
+
description: Instruction to describe the drawing.
|
|
10406
|
+
context:
|
|
10407
|
+
type: string
|
|
10408
|
+
description: Text context to provide for the generation.
|
|
10409
|
+
required:
|
|
10410
|
+
- text
|
|
10411
|
+
responses:
|
|
10412
|
+
"200":
|
|
10413
|
+
description: Generated drawing
|
|
10414
|
+
content:
|
|
10415
|
+
application/json:
|
|
10416
|
+
schema:
|
|
10417
|
+
$ref: "#/components/schemas/GeneratedDrawing"
|
|
10418
|
+
default:
|
|
10419
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
10332
10420
|
"/collections/{collectionId}":
|
|
10333
10421
|
get:
|
|
10334
10422
|
operationId: getCollectionById
|
|
@@ -11208,6 +11296,26 @@ paths:
|
|
|
11208
11296
|
application/json:
|
|
11209
11297
|
schema:
|
|
11210
11298
|
$ref: "#/components/schemas/Organization"
|
|
11299
|
+
"404":
|
|
11300
|
+
description: No matching organization found for given id
|
|
11301
|
+
$ref: "#/components/responses/NotFoundError"
|
|
11302
|
+
default:
|
|
11303
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
11304
|
+
delete:
|
|
11305
|
+
operationId: deleteOrganizationById
|
|
11306
|
+
summary: Delete an organization by its ID
|
|
11307
|
+
tags:
|
|
11308
|
+
- organizations
|
|
11309
|
+
security:
|
|
11310
|
+
- user-internal: []
|
|
11311
|
+
parameters:
|
|
11312
|
+
- $ref: "#/components/parameters/organizationId"
|
|
11313
|
+
responses:
|
|
11314
|
+
"205":
|
|
11315
|
+
description: The organization has been successfully deleted
|
|
11316
|
+
"404":
|
|
11317
|
+
description: No matching organization found for given id
|
|
11318
|
+
$ref: "#/components/responses/NotFoundError"
|
|
11211
11319
|
default:
|
|
11212
11320
|
$ref: "#/components/responses/UnexpectedError"
|
|
11213
11321
|
"/orgs/{organizationId}/members":
|
|
@@ -11508,8 +11616,7 @@ paths:
|
|
|
11508
11616
|
type: object
|
|
11509
11617
|
properties:
|
|
11510
11618
|
title:
|
|
11511
|
-
|
|
11512
|
-
title: Title for the new team.
|
|
11619
|
+
$ref: "#/components/schemas/OrganizationTeamTitle"
|
|
11513
11620
|
members:
|
|
11514
11621
|
type: array
|
|
11515
11622
|
items:
|
|
@@ -11567,7 +11674,7 @@ paths:
|
|
|
11567
11674
|
type: object
|
|
11568
11675
|
properties:
|
|
11569
11676
|
title:
|
|
11570
|
-
|
|
11677
|
+
$ref: "#/components/schemas/OrganizationTeamTitle"
|
|
11571
11678
|
required:
|
|
11572
11679
|
- title
|
|
11573
11680
|
delete:
|
|
@@ -13082,6 +13189,28 @@ paths:
|
|
|
13082
13189
|
default:
|
|
13083
13190
|
$ref: "#/components/responses/UnexpectedError"
|
|
13084
13191
|
"/orgs/{organizationId}/insights/audit-relations/{relationId}":
|
|
13192
|
+
get:
|
|
13193
|
+
operationId: getContentAuditRelationById
|
|
13194
|
+
summary: Get an audit relation by ID
|
|
13195
|
+
tags:
|
|
13196
|
+
- organizations
|
|
13197
|
+
security:
|
|
13198
|
+
- user: []
|
|
13199
|
+
parameters:
|
|
13200
|
+
- $ref: "#/components/parameters/organizationId"
|
|
13201
|
+
- $ref: "#/components/parameters/relationId"
|
|
13202
|
+
responses:
|
|
13203
|
+
"200":
|
|
13204
|
+
description: OK
|
|
13205
|
+
content:
|
|
13206
|
+
application/json:
|
|
13207
|
+
schema:
|
|
13208
|
+
$ref: "#/components/schemas/ContentAuditRelation"
|
|
13209
|
+
"404":
|
|
13210
|
+
description: No matching content relation found for given ID
|
|
13211
|
+
$ref: "#/components/responses/NotFoundError"
|
|
13212
|
+
default:
|
|
13213
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
13085
13214
|
patch:
|
|
13086
13215
|
operationId: updateContentAuditRelationStatusById
|
|
13087
13216
|
summary: Update an audit relation status
|
|
@@ -13091,12 +13220,7 @@ paths:
|
|
|
13091
13220
|
- user: []
|
|
13092
13221
|
parameters:
|
|
13093
13222
|
- $ref: "#/components/parameters/organizationId"
|
|
13094
|
-
-
|
|
13095
|
-
in: path
|
|
13096
|
-
required: true
|
|
13097
|
-
description: The id of the content audit relation
|
|
13098
|
-
schema:
|
|
13099
|
-
type: string
|
|
13223
|
+
- $ref: "#/components/parameters/relationId"
|
|
13100
13224
|
requestBody:
|
|
13101
13225
|
required: true
|
|
13102
13226
|
content:
|