@gitbook/api 0.97.0 → 0.98.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
@@ -1017,6 +1017,24 @@ export interface DocumentBlockOpenAPIOperation {
1017
1017
  id: string;
1018
1018
  };
1019
1019
  }
1020
+ /** Pointer to schemas in the OpenAPI spec. */
1021
+ export interface OpenAPISchemasPointer {
1022
+ /** List of schemas name from the OpenAPI spec. */
1023
+ schemas: string[];
1024
+ }
1025
+ export interface DocumentBlockOpenAPISchemas {
1026
+ object: 'block';
1027
+ type: 'openapi-schemas';
1028
+ key?: string;
1029
+ data: OpenAPISchemasPointer & {
1030
+ ref: ContentRefOpenAPI;
1031
+ };
1032
+ isVoid: true;
1033
+ meta?: {
1034
+ /** Unique ID to be used in an URL for the block. */
1035
+ id: string;
1036
+ };
1037
+ }
1020
1038
  export interface DocumentBlockReusableContent {
1021
1039
  object: 'block';
1022
1040
  type: 'reusable-content';
@@ -1044,7 +1062,7 @@ export interface DocumentBlockStepper {
1044
1062
  isVoid?: false;
1045
1063
  data?: object;
1046
1064
  }
1047
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1065
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1048
1066
  export interface JSONDocument {
1049
1067
  object: 'document';
1050
1068
  data: {
@@ -2417,6 +2435,8 @@ export interface Integration {
2417
2435
  /** The set of permissions for the integration */
2418
2436
  permissions: {
2419
2437
  admin: boolean;
2438
+ /** Integration can be installed whatever the permissions of the user. */
2439
+ install: boolean;
2420
2440
  };
2421
2441
  /**
2422
2442
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
@@ -3647,7 +3667,9 @@ export interface TeamMember {
3647
3667
  }
3648
3668
  /** A member of a team in an organization, including its relationship to it */
3649
3669
  export interface OrganizationTeamMember {
3670
+ /** User information as an organization member */
3650
3671
  organization: OrganizationMember;
3672
+ /** User information as a team member */
3651
3673
  team: TeamMember;
3652
3674
  }
3653
3675
  export interface UpdateMembersInOrganizationTeam {
@@ -4123,6 +4145,15 @@ export declare enum CustomizationSidebarListStyle {
4123
4145
  Pill = "pill",
4124
4146
  Line = "line"
4125
4147
  }
4148
+ /**
4149
+ * The style of the search button.
4150
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
4151
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
4152
+ */
4153
+ export declare enum CustomizationSearchStyle {
4154
+ Prominent = "prominent",
4155
+ Subtle = "subtle"
4156
+ }
4126
4157
  /** Language for the UI element */
4127
4158
  export declare enum CustomizationLocale {
4128
4159
  En = "en",
@@ -4214,6 +4245,12 @@ export interface SiteCustomizationSettings {
4214
4245
  */
4215
4246
  list: CustomizationSidebarListStyle;
4216
4247
  };
4248
+ /**
4249
+ * The style of the search button.
4250
+ * - `prominent`: large search bar in the middle of the header, with less room for other header items,
4251
+ * - `subtle`: small search bar in the corner of the header, with more room for other header items.
4252
+ */
4253
+ search: CustomizationSearchStyle;
4217
4254
  };
4218
4255
  internationalization: {
4219
4256
  /** Language for the UI element */
@@ -4992,17 +5029,10 @@ export interface UnsplashImage {
4992
5029
  export interface HiveAccessToken {
4993
5030
  contents: Record<string, string>;
4994
5031
  }
4995
- /** The type of purge, e.g by tags or hosts */
4996
- export declare enum PurgeCDNCacheContextType {
4997
- Tags = "tags",
4998
- Hosts = "hosts"
4999
- }
5000
5032
  /** The context to send when purging the CDN Cache */
5001
5033
  export interface PurgeCDNCacheContext {
5002
- /** The type of purge, e.g by tags or hosts */
5003
- type: PurgeCDNCacheContextType;
5004
- /** The list of tags or hosts to purge */
5005
- values: string[];
5034
+ /** The list of tags to purge */
5035
+ tags: string[];
5006
5036
  }
5007
5037
  /** The Cloudflare Hostname status */
5008
5038
  export declare enum CloudflareHostnameStatus {
@@ -5292,7 +5322,7 @@ export interface ContentPublishingAuth {
5292
5322
  */
5293
5323
  fallbackURL?: string;
5294
5324
  }
5295
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5325
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5296
5326
  /** Dependency for a computation, before its resolution. */
5297
5327
  export interface ComputedContentDependency {
5298
5328
  ref: ComputedContentDependencyRef;
@@ -5301,6 +5331,7 @@ export type InputPageBase = {
5301
5331
  /**
5302
5332
  * Optional unique identifier for the page.
5303
5333
  * It can be used to reference pages in document links.
5334
+ * @pattern ^[a-zA-Z0-9]{1,40}$
5304
5335
  */
5305
5336
  id?: string;
5306
5337
  /** @minLength 1 */
@@ -10310,6 +10341,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10310
10341
  background?: CustomizationSidebarBackgroundStyle | null;
10311
10342
  list?: CustomizationSidebarListStyle | null;
10312
10343
  };
10344
+ /** Styling for the search button at the top of the site. */
10345
+ search?: CustomizationSearchStyle | null;
10313
10346
  /** The style of background to use. Set to null to reset the override. */
10314
10347
  background?: CustomizationBackground | null;
10315
10348
  };
package/dist/index.cjs CHANGED
@@ -209,6 +209,7 @@ __export(src_exports, {
209
209
  CustomizationIconsStyle: () => CustomizationIconsStyle,
210
210
  CustomizationLinksStyle: () => CustomizationLinksStyle,
211
211
  CustomizationLocale: () => CustomizationLocale,
212
+ CustomizationSearchStyle: () => CustomizationSearchStyle,
212
213
  CustomizationSidebarBackgroundStyle: () => CustomizationSidebarBackgroundStyle,
213
214
  CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
214
215
  CustomizationTheme: () => CustomizationTheme,
@@ -237,7 +238,6 @@ __export(src_exports, {
237
238
  OrganizationType: () => OrganizationType,
238
239
  OrganizationUseCase: () => OrganizationUseCase,
239
240
  PageFeedbackRating: () => PageFeedbackRating,
240
- PurgeCDNCacheContextType: () => PurgeCDNCacheContextType,
241
241
  RevisionPageLayoutOptionsCoverSize: () => RevisionPageLayoutOptionsCoverSize,
242
242
  RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
243
243
  RevisionPageType: () => RevisionPageType,
@@ -265,7 +265,7 @@ module.exports = __toCommonJS(src_exports);
265
265
 
266
266
  // package.json
267
267
  var name = "@gitbook/api";
268
- var version = "0.97.0";
268
+ var version = "0.98.0";
269
269
 
270
270
  // src/client.ts
271
271
  var import_event_iterator = __toESM(require_node(), 1);
@@ -728,6 +728,11 @@ var CustomizationSidebarListStyle = /* @__PURE__ */ ((CustomizationSidebarListSt
728
728
  CustomizationSidebarListStyle2["Line"] = "line";
729
729
  return CustomizationSidebarListStyle2;
730
730
  })(CustomizationSidebarListStyle || {});
731
+ var CustomizationSearchStyle = /* @__PURE__ */ ((CustomizationSearchStyle2) => {
732
+ CustomizationSearchStyle2["Prominent"] = "prominent";
733
+ CustomizationSearchStyle2["Subtle"] = "subtle";
734
+ return CustomizationSearchStyle2;
735
+ })(CustomizationSearchStyle || {});
731
736
  var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
732
737
  CustomizationLocale2["En"] = "en";
733
738
  CustomizationLocale2["Fr"] = "fr";
@@ -872,11 +877,6 @@ var CustomHostnameErrorStatus = /* @__PURE__ */ ((CustomHostnameErrorStatus2) =>
872
877
  CustomHostnameErrorStatus2["InternalError"] = "internal_error";
873
878
  return CustomHostnameErrorStatus2;
874
879
  })(CustomHostnameErrorStatus || {});
875
- var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
876
- PurgeCDNCacheContextType2["Tags"] = "tags";
877
- PurgeCDNCacheContextType2["Hosts"] = "hosts";
878
- return PurgeCDNCacheContextType2;
879
- })(PurgeCDNCacheContextType || {});
880
880
  var CloudflareHostnameStatus = /* @__PURE__ */ ((CloudflareHostnameStatus2) => {
881
881
  CloudflareHostnameStatus2["Pending"] = "pending";
882
882
  CloudflareHostnameStatus2["Active"] = "active";
@@ -3285,9 +3285,7 @@ var GitBookAPI = class extends Api {
3285
3285
  endpoint = GITBOOK_DEFAULT_ENDPOINT,
3286
3286
  authToken,
3287
3287
  userAgent = `${name}/${version}`,
3288
- serviceBinding = {
3289
- fetch
3290
- }
3288
+ serviceBinding
3291
3289
  } = options;
3292
3290
  const normalizedEndpoint = endpoint.endsWith("/") ? endpoint.slice(0, -1) : endpoint;
3293
3291
  super({
@@ -3310,7 +3308,7 @@ var GitBookAPI = class extends Api {
3310
3308
  if (init && "referrerPolicy" in init) {
3311
3309
  delete init.referrerPolicy;
3312
3310
  }
3313
- const response = await this.serviceBinding.fetch(input, init);
3311
+ const response = await (this.serviceBinding ? this.serviceBinding.fetch(input, init) : fetch(input, init));
3314
3312
  if (!response.ok) {
3315
3313
  let error = response.statusText;
3316
3314
  try {
@@ -3374,6 +3372,7 @@ var GitBookAPI = class extends Api {
3374
3372
  CustomizationIconsStyle,
3375
3373
  CustomizationLinksStyle,
3376
3374
  CustomizationLocale,
3375
+ CustomizationSearchStyle,
3377
3376
  CustomizationSidebarBackgroundStyle,
3378
3377
  CustomizationSidebarListStyle,
3379
3378
  CustomizationTheme,
@@ -3402,7 +3401,6 @@ var GitBookAPI = class extends Api {
3402
3401
  OrganizationType,
3403
3402
  OrganizationUseCase,
3404
3403
  PageFeedbackRating,
3405
- PurgeCDNCacheContextType,
3406
3404
  RevisionPageLayoutOptionsCoverSize,
3407
3405
  RevisionPageLayoutPreset,
3408
3406
  RevisionPageType,
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare class GitBookAPI extends Api<{
24
24
  /**
25
25
  * Service binding used to request the API.
26
26
  */
27
- readonly serviceBinding: GitBookAPIServiceBinding;
27
+ readonly serviceBinding: GitBookAPIServiceBinding | undefined;
28
28
  constructor(options?: {
29
29
  /**
30
30
  * API endpoint to use.
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.97.0";
175
+ var version = "0.98.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -635,6 +635,11 @@ var CustomizationSidebarListStyle = /* @__PURE__ */ ((CustomizationSidebarListSt
635
635
  CustomizationSidebarListStyle2["Line"] = "line";
636
636
  return CustomizationSidebarListStyle2;
637
637
  })(CustomizationSidebarListStyle || {});
638
+ var CustomizationSearchStyle = /* @__PURE__ */ ((CustomizationSearchStyle2) => {
639
+ CustomizationSearchStyle2["Prominent"] = "prominent";
640
+ CustomizationSearchStyle2["Subtle"] = "subtle";
641
+ return CustomizationSearchStyle2;
642
+ })(CustomizationSearchStyle || {});
638
643
  var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
639
644
  CustomizationLocale2["En"] = "en";
640
645
  CustomizationLocale2["Fr"] = "fr";
@@ -779,11 +784,6 @@ var CustomHostnameErrorStatus = /* @__PURE__ */ ((CustomHostnameErrorStatus2) =>
779
784
  CustomHostnameErrorStatus2["InternalError"] = "internal_error";
780
785
  return CustomHostnameErrorStatus2;
781
786
  })(CustomHostnameErrorStatus || {});
782
- var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
783
- PurgeCDNCacheContextType2["Tags"] = "tags";
784
- PurgeCDNCacheContextType2["Hosts"] = "hosts";
785
- return PurgeCDNCacheContextType2;
786
- })(PurgeCDNCacheContextType || {});
787
787
  var CloudflareHostnameStatus = /* @__PURE__ */ ((CloudflareHostnameStatus2) => {
788
788
  CloudflareHostnameStatus2["Pending"] = "pending";
789
789
  CloudflareHostnameStatus2["Active"] = "active";
@@ -3192,9 +3192,7 @@ var GitBookAPI = class extends Api {
3192
3192
  endpoint = GITBOOK_DEFAULT_ENDPOINT,
3193
3193
  authToken,
3194
3194
  userAgent = `${name}/${version}`,
3195
- serviceBinding = {
3196
- fetch
3197
- }
3195
+ serviceBinding
3198
3196
  } = options;
3199
3197
  const normalizedEndpoint = endpoint.endsWith("/") ? endpoint.slice(0, -1) : endpoint;
3200
3198
  super({
@@ -3217,7 +3215,7 @@ var GitBookAPI = class extends Api {
3217
3215
  if (init && "referrerPolicy" in init) {
3218
3216
  delete init.referrerPolicy;
3219
3217
  }
3220
- const response = await this.serviceBinding.fetch(input, init);
3218
+ const response = await (this.serviceBinding ? this.serviceBinding.fetch(input, init) : fetch(input, init));
3221
3219
  if (!response.ok) {
3222
3220
  let error = response.statusText;
3223
3221
  try {
@@ -3280,6 +3278,7 @@ export {
3280
3278
  CustomizationIconsStyle,
3281
3279
  CustomizationLinksStyle,
3282
3280
  CustomizationLocale,
3281
+ CustomizationSearchStyle,
3283
3282
  CustomizationSidebarBackgroundStyle,
3284
3283
  CustomizationSidebarListStyle,
3285
3284
  CustomizationTheme,
@@ -3308,7 +3307,6 @@ export {
3308
3307
  OrganizationType,
3309
3308
  OrganizationUseCase,
3310
3309
  PageFeedbackRating,
3311
- PurgeCDNCacheContextType,
3312
3310
  RevisionPageLayoutOptionsCoverSize,
3313
3311
  RevisionPageLayoutPreset,
3314
3312
  RevisionPageType,
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.97.0",
7
+ "version": "0.98.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -12630,6 +12630,21 @@
12630
12630
  }
12631
12631
  }
12632
12632
  },
12633
+ "search": {
12634
+ "description": "Styling for the search button at the top of the site.",
12635
+ "oneOf": [
12636
+ {
12637
+ "$ref": "#/components/schemas/CustomizationSearchStyle"
12638
+ },
12639
+ {
12640
+ "type": "string",
12641
+ "nullable": true,
12642
+ "enum": [
12643
+ null
12644
+ ]
12645
+ }
12646
+ ]
12647
+ },
12633
12648
  "background": {
12634
12649
  "description": "The style of background to use. Set to null to reset the override.",
12635
12650
  "oneOf": [
@@ -19236,6 +19251,87 @@
19236
19251
  "isVoid"
19237
19252
  ]
19238
19253
  },
19254
+ "OpenAPISchemasPointer": {
19255
+ "type": "object",
19256
+ "description": "Pointer to schemas in the OpenAPI spec.",
19257
+ "properties": {
19258
+ "schemas": {
19259
+ "type": "array",
19260
+ "description": "List of schemas name from the OpenAPI spec.",
19261
+ "items": {
19262
+ "type": "string"
19263
+ }
19264
+ }
19265
+ },
19266
+ "required": [
19267
+ "schemas"
19268
+ ]
19269
+ },
19270
+ "DocumentBlockOpenAPISchemas": {
19271
+ "type": "object",
19272
+ "properties": {
19273
+ "object": {
19274
+ "type": "string",
19275
+ "enum": [
19276
+ "block"
19277
+ ]
19278
+ },
19279
+ "type": {
19280
+ "type": "string",
19281
+ "enum": [
19282
+ "openapi-schemas"
19283
+ ]
19284
+ },
19285
+ "key": {
19286
+ "type": "string"
19287
+ },
19288
+ "data": {
19289
+ "allOf": [
19290
+ {
19291
+ "$ref": "#/components/schemas/OpenAPISchemasPointer"
19292
+ },
19293
+ {
19294
+ "type": "object",
19295
+ "properties": {
19296
+ "ref": {
19297
+ "$ref": "#/components/schemas/ContentRefOpenAPI"
19298
+ }
19299
+ },
19300
+ "required": [
19301
+ "ref"
19302
+ ]
19303
+ }
19304
+ ],
19305
+ "required": [
19306
+ "ref"
19307
+ ]
19308
+ },
19309
+ "isVoid": {
19310
+ "type": "boolean",
19311
+ "enum": [
19312
+ true
19313
+ ]
19314
+ },
19315
+ "meta": {
19316
+ "type": "object",
19317
+ "properties": {
19318
+ "id": {
19319
+ "description": "Unique ID to be used in an URL for the block.",
19320
+ "type": "string"
19321
+ }
19322
+ },
19323
+ "required": [
19324
+ "id"
19325
+ ]
19326
+ }
19327
+ },
19328
+ "required": [
19329
+ "object",
19330
+ "type",
19331
+ "data",
19332
+ "isVoid"
19333
+ ]
19334
+ },
19239
19335
  "DocumentBlockReusableContent": {
19240
19336
  "type": "object",
19241
19337
  "properties": {
@@ -19445,6 +19541,9 @@
19445
19541
  {
19446
19542
  "$ref": "#/components/schemas/DocumentBlockOpenAPIOperation"
19447
19543
  },
19544
+ {
19545
+ "$ref": "#/components/schemas/DocumentBlockOpenAPISchemas"
19546
+ },
19448
19547
  {
19449
19548
  "$ref": "#/components/schemas/DocumentBlockContentRef"
19450
19549
  },
@@ -23362,10 +23461,15 @@
23362
23461
  "properties": {
23363
23462
  "admin": {
23364
23463
  "type": "boolean"
23464
+ },
23465
+ "install": {
23466
+ "description": "Integration can be installed whatever the permissions of the user.",
23467
+ "type": "boolean"
23365
23468
  }
23366
23469
  },
23367
23470
  "required": [
23368
- "admin"
23471
+ "admin",
23472
+ "install"
23369
23473
  ]
23370
23474
  },
23371
23475
  "contentSecurityPolicy": {
@@ -27210,9 +27314,11 @@
27210
27314
  "description": "A member of a team in an organization, including its relationship to it",
27211
27315
  "properties": {
27212
27316
  "organization": {
27317
+ "description": "User information as an organization member",
27213
27318
  "$ref": "#/components/schemas/OrganizationMember"
27214
27319
  },
27215
27320
  "team": {
27321
+ "description": "User information as a team member",
27216
27322
  "$ref": "#/components/schemas/TeamMember"
27217
27323
  }
27218
27324
  },
@@ -28543,6 +28649,14 @@
28543
28649
  "line"
28544
28650
  ]
28545
28651
  },
28652
+ "CustomizationSearchStyle": {
28653
+ "type": "string",
28654
+ "description": "The style of the search button.\n- `prominent`: large search bar in the middle of the header, with less room for other header items,\n- `subtle`: small search bar in the corner of the header, with more room for other header items.\n",
28655
+ "enum": [
28656
+ "prominent",
28657
+ "subtle"
28658
+ ]
28659
+ },
28546
28660
  "CustomizationLocale": {
28547
28661
  "type": "string",
28548
28662
  "description": "Language for the UI element",
@@ -28727,6 +28841,9 @@
28727
28841
  "background",
28728
28842
  "list"
28729
28843
  ]
28844
+ },
28845
+ "search": {
28846
+ "$ref": "#/components/schemas/CustomizationSearchStyle"
28730
28847
  }
28731
28848
  },
28732
28849
  "required": [
@@ -28741,7 +28858,8 @@
28741
28858
  "font",
28742
28859
  "background",
28743
28860
  "icons",
28744
- "sidebar"
28861
+ "sidebar",
28862
+ "search"
28745
28863
  ]
28746
28864
  },
28747
28865
  "internationalization": {
@@ -31997,32 +32115,20 @@
31997
32115
  "contents"
31998
32116
  ]
31999
32117
  },
32000
- "PurgeCDNCacheContextType": {
32001
- "type": "string",
32002
- "description": "The type of purge, e.g by tags or hosts",
32003
- "enum": [
32004
- "tags",
32005
- "hosts"
32006
- ]
32007
- },
32008
32118
  "PurgeCDNCacheContext": {
32009
32119
  "type": "object",
32010
32120
  "description": "The context to send when purging the CDN Cache",
32011
32121
  "properties": {
32012
- "type": {
32013
- "$ref": "#/components/schemas/PurgeCDNCacheContextType"
32014
- },
32015
- "values": {
32122
+ "tags": {
32016
32123
  "type": "array",
32017
- "description": "The list of tags or hosts to purge",
32124
+ "description": "The list of tags to purge",
32018
32125
  "items": {
32019
32126
  "type": "string"
32020
32127
  }
32021
32128
  }
32022
32129
  },
32023
32130
  "required": [
32024
- "type",
32025
- "values"
32131
+ "tags"
32026
32132
  ]
32027
32133
  },
32028
32134
  "CloudflareHostnameStatus": {
@@ -32842,6 +32948,9 @@
32842
32948
  {
32843
32949
  "$ref": "#/components/schemas/DocumentBlockOpenAPIOperation"
32844
32950
  },
32951
+ {
32952
+ "$ref": "#/components/schemas/DocumentBlockOpenAPISchemas"
32953
+ },
32845
32954
  {
32846
32955
  "$ref": "#/components/schemas/DocumentBlockContentRef"
32847
32956
  },
@@ -32878,6 +32987,7 @@
32878
32987
  "properties": {
32879
32988
  "id": {
32880
32989
  "type": "string",
32990
+ "pattern": "^[a-zA-Z0-9]{1,40}$",
32881
32991
  "description": "Optional unique identifier for the page.\nIt can be used to reference pages in document links.\n"
32882
32992
  },
32883
32993
  "title": {
package/spec/openapi.yaml CHANGED
@@ -7001,6 +7001,14 @@ paths:
7001
7001
  nullable: true
7002
7002
  enum:
7003
7003
  - null
7004
+ search:
7005
+ description: Styling for the search button at the top of the site.
7006
+ oneOf:
7007
+ - $ref: "#/components/schemas/CustomizationSearchStyle"
7008
+ - type: string
7009
+ nullable: true
7010
+ enum:
7011
+ - null
7004
7012
  background:
7005
7013
  description: The style of background to use. Set to null to reset the override.
7006
7014
  oneOf:
@@ -11188,6 +11196,58 @@ components:
11188
11196
  - type
11189
11197
  - data
11190
11198
  - isVoid
11199
+ OpenAPISchemasPointer:
11200
+ type: object
11201
+ description: Pointer to schemas in the OpenAPI spec.
11202
+ properties:
11203
+ schemas:
11204
+ type: array
11205
+ description: List of schemas name from the OpenAPI spec.
11206
+ items:
11207
+ type: string
11208
+ required:
11209
+ - schemas
11210
+ DocumentBlockOpenAPISchemas:
11211
+ type: object
11212
+ properties:
11213
+ object:
11214
+ type: string
11215
+ enum:
11216
+ - block
11217
+ type:
11218
+ type: string
11219
+ enum:
11220
+ - openapi-schemas
11221
+ key:
11222
+ type: string
11223
+ data:
11224
+ allOf:
11225
+ - $ref: "#/components/schemas/OpenAPISchemasPointer"
11226
+ - type: object
11227
+ properties:
11228
+ ref:
11229
+ $ref: "#/components/schemas/ContentRefOpenAPI"
11230
+ required:
11231
+ - ref
11232
+ required:
11233
+ - ref
11234
+ isVoid:
11235
+ type: boolean
11236
+ enum:
11237
+ - true
11238
+ meta:
11239
+ type: object
11240
+ properties:
11241
+ id:
11242
+ description: Unique ID to be used in an URL for the block.
11243
+ type: string
11244
+ required:
11245
+ - id
11246
+ required:
11247
+ - object
11248
+ - type
11249
+ - data
11250
+ - isVoid
11191
11251
  DocumentBlockReusableContent:
11192
11252
  type: object
11193
11253
  properties:
@@ -11304,6 +11364,7 @@ components:
11304
11364
  - $ref: "#/components/schemas/DocumentBlockTable"
11305
11365
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
11306
11366
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
11367
+ - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
11307
11368
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11308
11369
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11309
11370
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -13951,8 +14012,12 @@ components:
13951
14012
  properties:
13952
14013
  admin:
13953
14014
  type: boolean
14015
+ install:
14016
+ description: Integration can be installed whatever the permissions of the user.
14017
+ type: boolean
13954
14018
  required:
13955
14019
  - admin
14020
+ - install
13956
14021
  contentSecurityPolicy:
13957
14022
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
13958
14023
  required:
@@ -16455,8 +16520,10 @@ components:
16455
16520
  description: A member of a team in an organization, including its relationship to it
16456
16521
  properties:
16457
16522
  organization:
16523
+ description: User information as an organization member
16458
16524
  $ref: "#/components/schemas/OrganizationMember"
16459
16525
  team:
16526
+ description: User information as a team member
16460
16527
  $ref: "#/components/schemas/TeamMember"
16461
16528
  required:
16462
16529
  - organization
@@ -17388,6 +17455,15 @@ components:
17388
17455
  - default
17389
17456
  - pill
17390
17457
  - line
17458
+ CustomizationSearchStyle:
17459
+ type: string
17460
+ description: |
17461
+ The style of the search button.
17462
+ - `prominent`: large search bar in the middle of the header, with less room for other header items,
17463
+ - `subtle`: small search bar in the corner of the header, with more room for other header items.
17464
+ enum:
17465
+ - prominent
17466
+ - subtle
17391
17467
  CustomizationLocale:
17392
17468
  type: string
17393
17469
  description: Language for the UI element
@@ -17518,6 +17594,8 @@ components:
17518
17594
  required:
17519
17595
  - background
17520
17596
  - list
17597
+ search:
17598
+ $ref: "#/components/schemas/CustomizationSearchStyle"
17521
17599
  required:
17522
17600
  - theme
17523
17601
  - primaryColor
@@ -17531,6 +17609,7 @@ components:
17531
17609
  - background
17532
17610
  - icons
17533
17611
  - sidebar
17612
+ - search
17534
17613
  internationalization:
17535
17614
  type: object
17536
17615
  properties:
@@ -19601,26 +19680,17 @@ components:
19601
19680
  type: string
19602
19681
  required:
19603
19682
  - contents
19604
- PurgeCDNCacheContextType:
19605
- type: string
19606
- description: The type of purge, e.g by tags or hosts
19607
- enum:
19608
- - tags
19609
- - hosts
19610
19683
  PurgeCDNCacheContext:
19611
19684
  type: object
19612
19685
  description: The context to send when purging the CDN Cache
19613
19686
  properties:
19614
- type:
19615
- $ref: "#/components/schemas/PurgeCDNCacheContextType"
19616
- values:
19687
+ tags:
19617
19688
  type: array
19618
- description: The list of tags or hosts to purge
19689
+ description: The list of tags to purge
19619
19690
  items:
19620
19691
  type: string
19621
19692
  required:
19622
- - type
19623
- - values
19693
+ - tags
19624
19694
  CloudflareHostnameStatus:
19625
19695
  type: string
19626
19696
  description: The Cloudflare Hostname status
@@ -20177,6 +20247,7 @@ components:
20177
20247
  - $ref: "#/components/schemas/DocumentBlockTable"
20178
20248
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
20179
20249
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
20250
+ - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
20180
20251
  - $ref: "#/components/schemas/DocumentBlockContentRef"
20181
20252
  - $ref: "#/components/schemas/DocumentBlockIntegration"
20182
20253
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -20196,6 +20267,7 @@ components:
20196
20267
  properties:
20197
20268
  id:
20198
20269
  type: string
20270
+ pattern: ^[a-zA-Z0-9]{1,40}$
20199
20271
  description: |
20200
20272
  Optional unique identifier for the page.
20201
20273
  It can be used to reference pages in document links.