@gitbook/api 0.17.0 → 0.18.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 CHANGED
@@ -986,6 +986,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
986
986
  documentId?: string;
987
987
  pages: (RevisionPageDocument | RevisionPageLink)[];
988
988
  git?: GitSyncBlob;
989
+ layout: RevisionPageLayoutOptions;
989
990
  };
990
991
  export interface RevisionPageDocumentCover {
991
992
  /** Content reference pointing to the source image. */
@@ -1370,8 +1371,8 @@ export interface OrganizationTeam {
1370
1371
  object: 'team';
1371
1372
  /** Unique identifier for the team. */
1372
1373
  id: string;
1373
- /** Title of the team. */
1374
- title: string;
1374
+ /** Title of the team */
1375
+ title: OrganizationTeamTitle;
1375
1376
  /** Count of members in this team. */
1376
1377
  members: number;
1377
1378
  /** Count of spaces this team has access to. */
@@ -1379,6 +1380,10 @@ export interface OrganizationTeam {
1379
1380
  /** Date at which the team was created. */
1380
1381
  createdAt: Date;
1381
1382
  }
1383
+ /**
1384
+ * Title of the team
1385
+ */
1386
+ export declare type OrganizationTeamTitle = string;
1382
1387
  export interface TeamMember {
1383
1388
  /**
1384
1389
  * "The role of a team member.
@@ -3047,7 +3052,10 @@ export interface ContentKitURL {
3047
3052
  /**
3048
3053
  * Channel to subscribe to for API updates.
3049
3054
  */
3050
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3055
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | {
3056
+ channel: 'organization';
3057
+ organization: string;
3058
+ } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3051
3059
  channel: 'space-comments';
3052
3060
  space: string;
3053
3061
  changeRequest?: string;
@@ -3104,6 +3112,10 @@ export interface UserAPITokensChannel {
3104
3112
  channel: 'user-api-tokens';
3105
3113
  user: string;
3106
3114
  }
3115
+ export interface UserOrganizationsChannel {
3116
+ channel: 'user-organizations';
3117
+ user: string;
3118
+ }
3107
3119
  export interface UserProfileChannel {
3108
3120
  channel: 'user-profile';
3109
3121
  user: string;
@@ -3335,6 +3347,7 @@ export declare enum CustomizationLocale {
3335
3347
  Ja = "ja"
3336
3348
  }
3337
3349
  export declare enum CustomizationFont {
3350
+ ABCFavorit = "ABCFavorit",
3338
3351
  Inter = "Inter",
3339
3352
  Roboto = "Roboto",
3340
3353
  RobotoSlab = "RobotoSlab",
@@ -4940,7 +4953,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4940
4953
  * @request GET:/orgs/{organizationId}
4941
4954
  * @secure
4942
4955
  */
4943
- getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
4956
+ getOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
4957
+ error: {
4958
+ code: 404;
4959
+ message: string;
4960
+ };
4961
+ }>>;
4962
+ /**
4963
+ * No description
4964
+ *
4965
+ * @tags organizations
4966
+ * @name DeleteOrganizationById
4967
+ * @summary Delete an organization by its ID
4968
+ * @request DELETE:/orgs/{organizationId}
4969
+ * @secure
4970
+ */
4971
+ deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
4972
+ error: {
4973
+ code: 404;
4974
+ message: string;
4975
+ };
4976
+ }>>;
4944
4977
  /**
4945
4978
  * @description Lists members for the specified organization.
4946
4979
  *
@@ -5071,7 +5104,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5071
5104
  * @secure
5072
5105
  */
5073
5106
  createOrganizationTeam: (organizationId: string, data: {
5074
- title: string;
5107
+ title: OrganizationTeamTitle;
5075
5108
  members?: string[];
5076
5109
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
5077
5110
  /**
@@ -5094,7 +5127,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5094
5127
  * @secure
5095
5128
  */
5096
5129
  updateTeamInOrganizationById: (organizationId: string, teamId: string, data: {
5097
- title: string;
5130
+ title: OrganizationTeamTitle;
5098
5131
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
5099
5132
  /**
5100
5133
  * @description Deletes a specific team in an organization
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";
@@ -1445,6 +1446,12 @@ var Api = class extends HttpClient {
1445
1446
  format: "json",
1446
1447
  ...params
1447
1448
  }),
1449
+ deleteOrganizationById: (organizationId, params = {}) => this.request({
1450
+ path: `/orgs/${organizationId}`,
1451
+ method: "DELETE",
1452
+ secure: true,
1453
+ ...params
1454
+ }),
1448
1455
  listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
1449
1456
  path: `/orgs/${organizationId}/members`,
1450
1457
  method: "GET",
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";
@@ -1377,6 +1378,12 @@ var Api = class extends HttpClient {
1377
1378
  format: "json",
1378
1379
  ...params
1379
1380
  }),
1381
+ deleteOrganizationById: (organizationId, params = {}) => this.request({
1382
+ path: `/orgs/${organizationId}`,
1383
+ method: "DELETE",
1384
+ secure: true,
1385
+ ...params
1386
+ }),
1380
1387
  listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
1381
1388
  path: `/orgs/${organizationId}/members`,
1382
1389
  method: "GET",
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.17.0",
7
+ "version": "0.18.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -4602,6 +4602,9 @@
4602
4602
  },
4603
4603
  "git": {
4604
4604
  "$ref": "#/components/schemas/GitSyncBlob"
4605
+ },
4606
+ "layout": {
4607
+ "$ref": "#/components/schemas/RevisionPageLayoutOptions"
4605
4608
  }
4606
4609
  },
4607
4610
  "required": [
@@ -4609,7 +4612,8 @@
4609
4612
  "type",
4610
4613
  "slug",
4611
4614
  "path",
4612
- "pages"
4615
+ "pages",
4616
+ "layout"
4613
4617
  ]
4614
4618
  }
4615
4619
  ]
@@ -5706,8 +5710,7 @@
5706
5710
  "description": "Unique identifier for the team."
5707
5711
  },
5708
5712
  "title": {
5709
- "type": "string",
5710
- "description": "Title of the team."
5713
+ "$ref": "#/components/schemas/OrganizationTeamTitle"
5711
5714
  },
5712
5715
  "members": {
5713
5716
  "type": "integer",
@@ -5731,6 +5734,12 @@
5731
5734
  "createdAt"
5732
5735
  ]
5733
5736
  },
5737
+ "OrganizationTeamTitle": {
5738
+ "type": "string",
5739
+ "description": "Title of the team",
5740
+ "minLength": 1,
5741
+ "maxLength": 64
5742
+ },
5734
5743
  "TeamMember": {
5735
5744
  "type": "object",
5736
5745
  "properties": {
@@ -11119,6 +11128,9 @@
11119
11128
  {
11120
11129
  "$ref": "#/components/schemas/UserAPITokensChannel"
11121
11130
  },
11131
+ {
11132
+ "$ref": "#/components/schemas/UserOrganizationsChannel"
11133
+ },
11122
11134
  {
11123
11135
  "$ref": "#/components/schemas/UserProfileChannel"
11124
11136
  },
@@ -11128,6 +11140,24 @@
11128
11140
  {
11129
11141
  "$ref": "#/components/schemas/CollectionPublishingCustomizationChannel"
11130
11142
  },
11143
+ {
11144
+ "type": "object",
11145
+ "properties": {
11146
+ "channel": {
11147
+ "type": "string",
11148
+ "enum": [
11149
+ "organization"
11150
+ ]
11151
+ },
11152
+ "organization": {
11153
+ "type": "string"
11154
+ }
11155
+ },
11156
+ "required": [
11157
+ "channel",
11158
+ "organization"
11159
+ ]
11160
+ },
11131
11161
  {
11132
11162
  "$ref": "#/components/schemas/OrganizationMembersChannel"
11133
11163
  },
@@ -11449,6 +11479,24 @@
11449
11479
  "user"
11450
11480
  ]
11451
11481
  },
11482
+ "UserOrganizationsChannel": {
11483
+ "type": "object",
11484
+ "properties": {
11485
+ "channel": {
11486
+ "type": "string",
11487
+ "enum": [
11488
+ "user-organizations"
11489
+ ]
11490
+ },
11491
+ "user": {
11492
+ "type": "string"
11493
+ }
11494
+ },
11495
+ "required": [
11496
+ "channel",
11497
+ "user"
11498
+ ]
11499
+ },
11452
11500
  "UserProfileChannel": {
11453
11501
  "type": "object",
11454
11502
  "properties": {
@@ -12337,6 +12385,7 @@
12337
12385
  "CustomizationFont": {
12338
12386
  "type": "string",
12339
12387
  "enum": [
12388
+ "ABCFavorit",
12340
12389
  "Inter",
12341
12390
  "Roboto",
12342
12391
  "RobotoSlab",
@@ -17917,6 +17966,39 @@
17917
17966
  }
17918
17967
  }
17919
17968
  },
17969
+ "404": {
17970
+ "description": "No matching organization found for given id",
17971
+ "$ref": "#/components/responses/NotFoundError"
17972
+ },
17973
+ "default": {
17974
+ "$ref": "#/components/responses/UnexpectedError"
17975
+ }
17976
+ }
17977
+ },
17978
+ "delete": {
17979
+ "operationId": "deleteOrganizationById",
17980
+ "summary": "Delete an organization by its ID",
17981
+ "tags": [
17982
+ "organizations"
17983
+ ],
17984
+ "security": [
17985
+ {
17986
+ "user-internal": []
17987
+ }
17988
+ ],
17989
+ "parameters": [
17990
+ {
17991
+ "$ref": "#/components/parameters/organizationId"
17992
+ }
17993
+ ],
17994
+ "responses": {
17995
+ "205": {
17996
+ "description": "The organization has been successfully deleted"
17997
+ },
17998
+ "404": {
17999
+ "description": "No matching organization found for given id",
18000
+ "$ref": "#/components/responses/NotFoundError"
18001
+ },
17920
18002
  "default": {
17921
18003
  "$ref": "#/components/responses/UnexpectedError"
17922
18004
  }
@@ -18448,8 +18530,7 @@
18448
18530
  "type": "object",
18449
18531
  "properties": {
18450
18532
  "title": {
18451
- "type": "string",
18452
- "title": "Title for the new team."
18533
+ "$ref": "#/components/schemas/OrganizationTeamTitle"
18453
18534
  },
18454
18535
  "members": {
18455
18536
  "type": "array",
@@ -18547,7 +18628,7 @@
18547
18628
  "type": "object",
18548
18629
  "properties": {
18549
18630
  "title": {
18550
- "type": "string"
18631
+ "$ref": "#/components/schemas/OrganizationTeamTitle"
18551
18632
  }
18552
18633
  },
18553
18634
  "required": [
package/spec/openapi.yaml CHANGED
@@ -2993,12 +2993,15 @@ components:
2993
2993
  - $ref: "#/components/schemas/RevisionPageLink"
2994
2994
  git:
2995
2995
  $ref: "#/components/schemas/GitSyncBlob"
2996
+ layout:
2997
+ $ref: "#/components/schemas/RevisionPageLayoutOptions"
2996
2998
  required:
2997
2999
  - kind
2998
3000
  - type
2999
3001
  - slug
3000
3002
  - path
3001
3003
  - pages
3004
+ - layout
3002
3005
  RevisionPageDocumentCover:
3003
3006
  type: object
3004
3007
  properties:
@@ -3746,8 +3749,7 @@ components:
3746
3749
  type: string
3747
3750
  description: Unique identifier for the team.
3748
3751
  title:
3749
- type: string
3750
- description: Title of the team.
3752
+ $ref: "#/components/schemas/OrganizationTeamTitle"
3751
3753
  members:
3752
3754
  type: integer
3753
3755
  description: Count of members in this team.
@@ -3764,6 +3766,11 @@ components:
3764
3766
  - members
3765
3767
  - spaces
3766
3768
  - createdAt
3769
+ OrganizationTeamTitle:
3770
+ type: string
3771
+ description: Title of the team
3772
+ minLength: 1
3773
+ maxLength: 64
3767
3774
  TeamMember:
3768
3775
  type: object
3769
3776
  properties:
@@ -7304,9 +7311,21 @@ components:
7304
7311
  - $ref: "#/components/schemas/SpaceIntegrationsChannel"
7305
7312
  - $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
7306
7313
  - $ref: "#/components/schemas/UserAPITokensChannel"
7314
+ - $ref: "#/components/schemas/UserOrganizationsChannel"
7307
7315
  - $ref: "#/components/schemas/UserProfileChannel"
7308
7316
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
7309
7317
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
7318
+ - type: object
7319
+ properties:
7320
+ channel:
7321
+ type: string
7322
+ enum:
7323
+ - organization
7324
+ organization:
7325
+ type: string
7326
+ required:
7327
+ - channel
7328
+ - organization
7310
7329
  - $ref: "#/components/schemas/OrganizationMembersChannel"
7311
7330
  - $ref: "#/components/schemas/OrganizationMemberChannel"
7312
7331
  - $ref: "#/components/schemas/OrganizationTeamsChannel"
@@ -7499,6 +7518,18 @@ components:
7499
7518
  required:
7500
7519
  - channel
7501
7520
  - user
7521
+ UserOrganizationsChannel:
7522
+ type: object
7523
+ properties:
7524
+ channel:
7525
+ type: string
7526
+ enum:
7527
+ - user-organizations
7528
+ user:
7529
+ type: string
7530
+ required:
7531
+ - channel
7532
+ - user
7502
7533
  UserProfileChannel:
7503
7534
  type: object
7504
7535
  properties:
@@ -8101,6 +8132,7 @@ components:
8101
8132
  CustomizationFont:
8102
8133
  type: string
8103
8134
  enum:
8135
+ - ABCFavorit
8104
8136
  - Inter
8105
8137
  - Roboto
8106
8138
  - RobotoSlab
@@ -11208,6 +11240,26 @@ paths:
11208
11240
  application/json:
11209
11241
  schema:
11210
11242
  $ref: "#/components/schemas/Organization"
11243
+ "404":
11244
+ description: No matching organization found for given id
11245
+ $ref: "#/components/responses/NotFoundError"
11246
+ default:
11247
+ $ref: "#/components/responses/UnexpectedError"
11248
+ delete:
11249
+ operationId: deleteOrganizationById
11250
+ summary: Delete an organization by its ID
11251
+ tags:
11252
+ - organizations
11253
+ security:
11254
+ - user-internal: []
11255
+ parameters:
11256
+ - $ref: "#/components/parameters/organizationId"
11257
+ responses:
11258
+ "205":
11259
+ description: The organization has been successfully deleted
11260
+ "404":
11261
+ description: No matching organization found for given id
11262
+ $ref: "#/components/responses/NotFoundError"
11211
11263
  default:
11212
11264
  $ref: "#/components/responses/UnexpectedError"
11213
11265
  "/orgs/{organizationId}/members":
@@ -11508,8 +11560,7 @@ paths:
11508
11560
  type: object
11509
11561
  properties:
11510
11562
  title:
11511
- type: string
11512
- title: Title for the new team.
11563
+ $ref: "#/components/schemas/OrganizationTeamTitle"
11513
11564
  members:
11514
11565
  type: array
11515
11566
  items:
@@ -11567,7 +11618,7 @@ paths:
11567
11618
  type: object
11568
11619
  properties:
11569
11620
  title:
11570
- type: string
11621
+ $ref: "#/components/schemas/OrganizationTeamTitle"
11571
11622
  required:
11572
11623
  - title
11573
11624
  delete: