@gitbook/api 0.213.0 → 0.214.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
@@ -3233,6 +3233,11 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
3233
3233
  /** Complete path to access the page in the revision. */
3234
3234
  path: string;
3235
3235
  description?: string;
3236
+ /**
3237
+ * Authored terms and phrases that can help readers find this page.
3238
+ * @maxItems 20
3239
+ */
3240
+ keywords?: string[];
3236
3241
  /**
3237
3242
  * Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
3238
3243
  * @maxLength 100
@@ -4654,6 +4659,11 @@ export interface RevisionPageUpdate {
4654
4659
  * @maxLength 100
4655
4660
  */
4656
4661
  linkTitle?: string;
4662
+ /**
4663
+ * Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.
4664
+ * @maxItems 20
4665
+ */
4666
+ keywords?: string[];
4657
4667
  /**
4658
4668
  * Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
4659
4669
  * @maxLength 100
@@ -5031,6 +5041,10 @@ export interface ChangeAttributeVariables {
5031
5041
  export interface RevisionPageDocumentChangeAttributes {
5032
5042
  title?: ChangeAttributeString;
5033
5043
  description?: ChangeAttributeString;
5044
+ keywords?: {
5045
+ before?: string[];
5046
+ after?: string[];
5047
+ };
5034
5048
  slug?: ChangeAttributeString;
5035
5049
  document?: ChangeAttributeString;
5036
5050
  cover?: ChangeAttributeRevisionPageDocumentCover;
@@ -6863,6 +6877,8 @@ export interface OrganizationIdPConnection {
6863
6877
  defaultTeam?: OrganizationTeam;
6864
6878
  /** Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`. */
6865
6879
  defaultTeamFromDomain: boolean;
6880
+ /** Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`. */
6881
+ defaultTeamFromSCIM: boolean;
6866
6882
  /** SAML sign-in through the connection. */
6867
6883
  saml: {
6868
6884
  /** The identity provider's single sign-on URL. Absent until it is set. */
@@ -8248,6 +8264,13 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
8248
8264
  logoutURL?: string | null;
8249
8265
  };
8250
8266
  export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
8267
+ /**
8268
+ * Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
8269
+ * @minLength 32
8270
+ * @maxLength 32
8271
+ * @pattern ^[0-9A-Fa-f]{32}$
8272
+ */
8273
+ export type SiteSearchId = string;
8251
8274
  export type SiteSearchScope = {
8252
8275
  /** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
8253
8276
  mode: "default";
@@ -10193,10 +10216,22 @@ export type SiteInsightsEventSearchTypeQuery = SiteInsightsEventBase & {
10193
10216
  /** Query of the search. */
10194
10217
  query: string;
10195
10218
  };
10219
+ /**
10220
+ * Published site search displays up to ten page results and ten supplemental records per request.
10221
+ * @min 1
10222
+ * @max 20
10223
+ */
10224
+ export type SiteInsightsSearchResultNumber = number;
10196
10225
  export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
10197
10226
  type: "search_open_result";
10198
10227
  /** Query of the search. */
10199
10228
  query: string;
10229
+ /** One-based position of the opened result in the displayed list. */
10230
+ position?: SiteInsightsSearchResultNumber;
10231
+ /** Number of results in the displayed list. */
10232
+ resultsCount?: SiteInsightsSearchResultNumber;
10233
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
10234
+ searchId?: SiteSearchId;
10200
10235
  /** Target of the opened search result. */
10201
10236
  result: {
10202
10237
  /** ID of the concerned space. */
@@ -10383,8 +10418,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10383
10418
  column: "eventMarkdownSource";
10384
10419
  } | {
10385
10420
  column: "eventSearchQuery";
10421
+ } | {
10422
+ column: "eventNormalizedSearchQuery";
10386
10423
  } | {
10387
10424
  column: "eventSearchResultRecordId";
10425
+ } | {
10426
+ column: "eventSearchResultPositionBucket";
10388
10427
  } | {
10389
10428
  column: "eventPageFeedbackRating";
10390
10429
  } | {
@@ -10425,10 +10464,7 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
10425
10464
  } | {
10426
10465
  column: "eventTrademarkPlacement";
10427
10466
  };
10428
- /**
10429
- * Ratings submitted on a page, counted once per rating a reader submitted rather than once
10430
- * per event.
10431
- */
10467
+ /** Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed. */
10432
10468
  export type SiteInsightsQueryEventsValues = {
10433
10469
  column: "datetime";
10434
10470
  values: Timestamp[];
@@ -10546,9 +10582,15 @@ export type SiteInsightsQueryEventsValues = {
10546
10582
  } | {
10547
10583
  column: "eventSearchQuery";
10548
10584
  values: string[];
10585
+ } | {
10586
+ column: "eventNormalizedSearchQuery";
10587
+ values: string[];
10549
10588
  } | {
10550
10589
  column: "eventSearchResultRecordId";
10551
10590
  values: (string | null)[];
10591
+ } | {
10592
+ column: "eventSearchResultPositionBucket";
10593
+ values: (null | "first" | "secondToFourth" | "fifthOrLater")[];
10552
10594
  } | {
10553
10595
  column: "pageFeedbackRating";
10554
10596
  values: {
@@ -10629,10 +10671,39 @@ export interface SiteInsightsQueryEventsAggregation {
10629
10671
  * @default 1000
10630
10672
  */
10631
10673
  limit?: number;
10674
+ /** Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters. */
10675
+ includeSearchRankTrackingStart?: boolean;
10676
+ /** Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50. */
10677
+ includeLowSearchResultPages?: boolean;
10632
10678
  /** The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages. */
10633
10679
  page?: string;
10634
10680
  }
10681
+ export interface SiteInsightsLowSearchResultPage {
10682
+ /** Normalized search query. */
10683
+ query: string;
10684
+ /** The page with the most opens at position 5 or later for this query. */
10685
+ page: {
10686
+ /** ID of the space that contains the opened page. */
10687
+ space: string;
10688
+ /** ID of the opened page. */
10689
+ page: string;
10690
+ };
10691
+ /** Median position across opens of this page at position 5 or later. */
10692
+ medianPosition: number;
10693
+ /**
10694
+ * Number of other distinct pages opened at position 5 or later for this query.
10695
+ * @min 0
10696
+ */
10697
+ otherPagesCount: number;
10698
+ }
10635
10699
  export type SiteInsightsQueryEventsAggregationResult = List & {
10700
+ /**
10701
+ * Returned when requested. Null if the site has no recorded ranked search opens.
10702
+ * @format date-time
10703
+ */
10704
+ searchRankTrackingStart?: string | null;
10705
+ /** Returned when requested. Queries with no page opens are omitted. */
10706
+ lowSearchResultPages?: SiteInsightsLowSearchResultPage[];
10636
10707
  columns: SiteInsightsQueryEventsValues[];
10637
10708
  };
10638
10709
  /** A segment of visitors with the same characteristics. */
@@ -16455,7 +16526,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16455
16526
  };
16456
16527
  }>>;
16457
16528
  /**
16458
- * @description Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
16529
+ * @description Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.
16459
16530
  *
16460
16531
  * @tags sso
16461
16532
  * @name CreateOrganizationIdPConnection
@@ -16477,7 +16548,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16477
16548
  certificate?: SAMLProviderCertificate;
16478
16549
  /** Email domains the provider signs people in for. Each one must be an email domain of the organization. Only emails on a verified domain in this list can sign in through the provider. */
16479
16550
  domains?: SAMLProviderDomains;
16480
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
16551
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnection, {
16481
16552
  error: {
16482
16553
  /** @format int32 */
16483
16554
  code: 400;
@@ -16507,7 +16578,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16507
16578
  };
16508
16579
  }>>;
16509
16580
  /**
16510
- * No description
16581
+ * @description Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.
16511
16582
  *
16512
16583
  * @tags sso
16513
16584
  * @name UpdateOrganizationIdPConnection
@@ -16525,6 +16596,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16525
16596
  /** Team to add members to, or null to add them to none. */
16526
16597
  defaultTeam?: string | null;
16527
16598
  defaultTeamFromDomain?: boolean;
16599
+ /** Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up. */
16600
+ defaultTeamFromSCIM?: boolean;
16528
16601
  ssoURL?: URL;
16529
16602
  entityID?: SAMLProviderEntityID;
16530
16603
  certificate?: SAMLProviderCertificate;
@@ -16560,15 +16633,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16560
16633
  };
16561
16634
  }>>;
16562
16635
  /**
16563
- * @description Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.
16636
+ * @description Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.
16564
16637
  *
16565
16638
  * @tags sso
16566
16639
  * @name RotateOrganizationIdPConnectionToken
16567
- * @summary Replace the SCIM token of an identity provider connection
16640
+ * @summary Rotate the SCIM token of an identity provider connection
16568
16641
  * @request POST:/orgs/{organizationId}/idp-connections/{idpConnectionId}/token
16569
16642
  * @secure
16570
16643
  */
16571
16644
  rotateOrganizationIdPConnectionToken: (organizationId: EntityId, idpConnectionId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationIdPConnectionWithToken, {
16645
+ error: {
16646
+ /** @format int32 */
16647
+ code: 400;
16648
+ message: string;
16649
+ };
16650
+ } | {
16572
16651
  error: {
16573
16652
  /** @format int32 */
16574
16653
  code: 404;
@@ -18983,6 +19062,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18983
19062
  searchSiteContent: (organizationId: EntityId, siteId: string, data: {
18984
19063
  /** @maxLength 512 */
18985
19064
  query: string;
19065
+ /** Client-generated 128-bit identifier for a search request, encoded as hexadecimal. */
19066
+ searchId?: SiteSearchId;
18986
19067
  } & ({
18987
19068
  /** Define the scope of the search. */
18988
19069
  scope: SiteSearchScope;
@@ -170,6 +170,9 @@ export declare const GIT_SYNC_INSTALLATION_PROVIDER_ENUM: ["github", "gitlab"];
170
170
  export declare const SITE_SETUP_STEP_ID_ENUM: ["first-edit", "customize", "git-sync", "domain", "publish"];
171
171
  export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
172
172
  export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
173
+ export declare const SITE_SEARCH_ID_MAX_LENGTH = 32;
174
+ export declare const SITE_SEARCH_ID_MIN_LENGTH = 32;
175
+ export declare const SITE_SEARCH_ID_PATTERN = "^[0-9A-Fa-f]{32}$";
173
176
  export declare const AGENT_GOAL_MAX_LENGTH = 1024;
174
177
  export declare const AGENT_FEEDBACK_SOURCE_ENUM: ["mcp", "assistant"];
175
178
  export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
package/dist/index.cjs CHANGED
@@ -515,6 +515,9 @@ __export(src_exports, {
515
515
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH: () => SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
516
516
  SITE_REDIRECT_SOURCE_PATH_PATTERN: () => SITE_REDIRECT_SOURCE_PATH_PATTERN,
517
517
  SITE_SCAN_STATUS_ENUM: () => SITE_SCAN_STATUS_ENUM,
518
+ SITE_SEARCH_ID_MAX_LENGTH: () => SITE_SEARCH_ID_MAX_LENGTH,
519
+ SITE_SEARCH_ID_MIN_LENGTH: () => SITE_SEARCH_ID_MIN_LENGTH,
520
+ SITE_SEARCH_ID_PATTERN: () => SITE_SEARCH_ID_PATTERN,
518
521
  SITE_SECTION_DESCRIPTION_MAX_LENGTH: () => SITE_SECTION_DESCRIPTION_MAX_LENGTH,
519
522
  SITE_SECTION_DESCRIPTION_MIN_LENGTH: () => SITE_SECTION_DESCRIPTION_MIN_LENGTH,
520
523
  SITE_SECTION_GROUP_TITLE_MAX_LENGTH: () => SITE_SECTION_GROUP_TITLE_MAX_LENGTH,
@@ -622,7 +625,7 @@ module.exports = __toCommonJS(src_exports);
622
625
 
623
626
  // package.json
624
627
  var name = "@gitbook/api";
625
- var version = "0.213.0";
628
+ var version = "0.214.0";
626
629
 
627
630
  // src/client.ts
628
631
  var import_event_iterator = __toESM(require_node(), 1);
@@ -5822,6 +5825,9 @@ var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
5822
5825
  var SITE_SETUP_STEP_ID_ENUM = ["first-edit", "customize", "git-sync", "domain", "publish"];
5823
5826
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
5824
5827
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
5828
+ var SITE_SEARCH_ID_MAX_LENGTH = 32;
5829
+ var SITE_SEARCH_ID_MIN_LENGTH = 32;
5830
+ var SITE_SEARCH_ID_PATTERN = "^[0-9A-Fa-f]{32}$";
5825
5831
  var AGENT_GOAL_MAX_LENGTH = 1024;
5826
5832
  var AGENT_FEEDBACK_SOURCE_ENUM = ["mcp", "assistant"];
5827
5833
  var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
@@ -6330,6 +6336,9 @@ var GitBookAPI = class extends Api {
6330
6336
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
6331
6337
  SITE_REDIRECT_SOURCE_PATH_PATTERN,
6332
6338
  SITE_SCAN_STATUS_ENUM,
6339
+ SITE_SEARCH_ID_MAX_LENGTH,
6340
+ SITE_SEARCH_ID_MIN_LENGTH,
6341
+ SITE_SEARCH_ID_PATTERN,
6333
6342
  SITE_SECTION_DESCRIPTION_MAX_LENGTH,
6334
6343
  SITE_SECTION_DESCRIPTION_MIN_LENGTH,
6335
6344
  SITE_SECTION_GROUP_TITLE_MAX_LENGTH,
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.213.0";
175
+ var version = "0.214.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -5372,6 +5372,9 @@ var GIT_SYNC_INSTALLATION_PROVIDER_ENUM = ["github", "gitlab"];
5372
5372
  var SITE_SETUP_STEP_ID_ENUM = ["first-edit", "customize", "git-sync", "domain", "publish"];
5373
5373
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
5374
5374
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
5375
+ var SITE_SEARCH_ID_MAX_LENGTH = 32;
5376
+ var SITE_SEARCH_ID_MIN_LENGTH = 32;
5377
+ var SITE_SEARCH_ID_PATTERN = "^[0-9A-Fa-f]{32}$";
5375
5378
  var AGENT_GOAL_MAX_LENGTH = 1024;
5376
5379
  var AGENT_FEEDBACK_SOURCE_ENUM = ["mcp", "assistant"];
5377
5380
  var CONTEXT_RECORD_TYPE_ENUM = ["ticket", "document"];
@@ -5879,6 +5882,9 @@ export {
5879
5882
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
5880
5883
  SITE_REDIRECT_SOURCE_PATH_PATTERN,
5881
5884
  SITE_SCAN_STATUS_ENUM,
5885
+ SITE_SEARCH_ID_MAX_LENGTH,
5886
+ SITE_SEARCH_ID_MIN_LENGTH,
5887
+ SITE_SEARCH_ID_PATTERN,
5882
5888
  SITE_SECTION_DESCRIPTION_MAX_LENGTH,
5883
5889
  SITE_SECTION_DESCRIPTION_MIN_LENGTH,
5884
5890
  SITE_SECTION_GROUP_TITLE_MAX_LENGTH,
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.213.0",
7
+ "version": "0.214.0",
8
8
  "license": "Apache-2.0",
9
9
  "sideEffects": false,
10
10
  "files": [
package/spec/openapi.json CHANGED
@@ -10403,7 +10403,7 @@
10403
10403
  "post": {
10404
10404
  "operationId": "createOrganizationIdPConnection",
10405
10405
  "summary": "Create an identity provider connection",
10406
- "description": "Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.\n",
10406
+ "description": "Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.\n",
10407
10407
  "tags": [
10408
10408
  "sso"
10409
10409
  ],
@@ -10466,7 +10466,7 @@
10466
10466
  "content": {
10467
10467
  "application/json": {
10468
10468
  "schema": {
10469
- "$ref": "#/components/schemas/OrganizationIdPConnectionWithToken"
10469
+ "$ref": "#/components/schemas/OrganizationIdPConnection"
10470
10470
  }
10471
10471
  }
10472
10472
  }
@@ -10519,6 +10519,7 @@
10519
10519
  "patch": {
10520
10520
  "operationId": "updateOrganizationIdPConnection",
10521
10521
  "summary": "Update an identity provider connection",
10522
+ "description": "Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.\n",
10522
10523
  "tags": [
10523
10524
  "sso"
10524
10525
  ],
@@ -10565,6 +10566,10 @@
10565
10566
  "defaultTeamFromDomain": {
10566
10567
  "type": "boolean"
10567
10568
  },
10569
+ "defaultTeamFromSCIM": {
10570
+ "type": "boolean",
10571
+ "description": "Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up.\n"
10572
+ },
10568
10573
  "ssoURL": {
10569
10574
  "$ref": "#/components/schemas/URL"
10570
10575
  },
@@ -10637,8 +10642,8 @@
10637
10642
  "/orgs/{organizationId}/idp-connections/{idpConnectionId}/token": {
10638
10643
  "post": {
10639
10644
  "operationId": "rotateOrganizationIdPConnectionToken",
10640
- "summary": "Replace the SCIM token of an identity provider connection",
10641
- "description": "Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.\n",
10645
+ "summary": "Rotate the SCIM token of an identity provider connection",
10646
+ "description": "Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.\n",
10642
10647
  "tags": [
10643
10648
  "sso"
10644
10649
  ],
@@ -10657,7 +10662,7 @@
10657
10662
  ],
10658
10663
  "responses": {
10659
10664
  "200": {
10660
- "description": "Token replaced",
10665
+ "description": "Token rotated",
10661
10666
  "content": {
10662
10667
  "application/json": {
10663
10668
  "schema": {
@@ -10666,6 +10671,9 @@
10666
10671
  }
10667
10672
  }
10668
10673
  },
10674
+ "400": {
10675
+ "$ref": "#/components/responses/BadRequestError"
10676
+ },
10669
10677
  "404": {
10670
10678
  "$ref": "#/components/responses/NotFoundError"
10671
10679
  }
@@ -18207,6 +18215,9 @@
18207
18215
  "query": {
18208
18216
  "type": "string",
18209
18217
  "maxLength": 512
18218
+ },
18219
+ "searchId": {
18220
+ "$ref": "#/components/schemas/SiteSearchId"
18210
18221
  }
18211
18222
  }
18212
18223
  },
@@ -34490,6 +34501,15 @@
34490
34501
  "description": {
34491
34502
  "type": "string"
34492
34503
  },
34504
+ "keywords": {
34505
+ "type": "array",
34506
+ "description": "Authored terms and phrases that can help readers find this page.",
34507
+ "maxItems": 20,
34508
+ "items": {
34509
+ "type": "string",
34510
+ "maxLength": 100
34511
+ }
34512
+ },
34493
34513
  "tagTitle": {
34494
34514
  "description": "Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.",
34495
34515
  "type": "string",
@@ -38884,6 +38904,15 @@
38884
38904
  "type": "string",
38885
38905
  "maxLength": 100
38886
38906
  },
38907
+ "keywords": {
38908
+ "type": "array",
38909
+ "description": "Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.",
38910
+ "maxItems": 20,
38911
+ "items": {
38912
+ "type": "string",
38913
+ "maxLength": 100
38914
+ }
38915
+ },
38887
38916
  "tagTitle": {
38888
38917
  "description": "Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.",
38889
38918
  "type": "string",
@@ -39960,6 +39989,23 @@
39960
39989
  "description": {
39961
39990
  "$ref": "#/components/schemas/ChangeAttributeString"
39962
39991
  },
39992
+ "keywords": {
39993
+ "type": "object",
39994
+ "properties": {
39995
+ "before": {
39996
+ "type": "array",
39997
+ "items": {
39998
+ "type": "string"
39999
+ }
40000
+ },
40001
+ "after": {
40002
+ "type": "array",
40003
+ "items": {
40004
+ "type": "string"
40005
+ }
40006
+ }
40007
+ }
40008
+ },
39963
40009
  "slug": {
39964
40010
  "$ref": "#/components/schemas/ChangeAttributeString"
39965
40011
  },
@@ -45631,6 +45677,10 @@
45631
45677
  "type": "boolean",
45632
45678
  "description": "Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.\n"
45633
45679
  },
45680
+ "defaultTeamFromSCIM": {
45681
+ "type": "boolean",
45682
+ "description": "Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`.\n"
45683
+ },
45634
45684
  "saml": {
45635
45685
  "type": "object",
45636
45686
  "description": "SAML sign-in through the connection.",
@@ -45744,6 +45794,7 @@
45744
45794
  "status",
45745
45795
  "defaultRole",
45746
45796
  "defaultTeamFromDomain",
45797
+ "defaultTeamFromSCIM",
45747
45798
  "saml",
45748
45799
  "createdAt",
45749
45800
  "updatedAt",
@@ -50318,6 +50369,13 @@
50318
50369
  }
50319
50370
  ]
50320
50371
  },
50372
+ "SiteSearchId": {
50373
+ "type": "string",
50374
+ "description": "Client-generated 128-bit identifier for a search request, encoded as hexadecimal.",
50375
+ "minLength": 32,
50376
+ "maxLength": 32,
50377
+ "pattern": "^[0-9A-Fa-f]{32}$"
50378
+ },
50321
50379
  "SiteSearchScope": {
50322
50380
  "oneOf": [
50323
50381
  {
@@ -56341,6 +56399,12 @@
56341
56399
  }
56342
56400
  ]
56343
56401
  },
56402
+ "SiteInsightsSearchResultNumber": {
56403
+ "type": "integer",
56404
+ "minimum": 1,
56405
+ "maximum": 20,
56406
+ "description": "Published site search displays up to ten page results and ten supplemental records per request."
56407
+ },
56344
56408
  "SiteInsightsEventSearchOpenResult": {
56345
56409
  "allOf": [
56346
56410
  {
@@ -56359,6 +56423,25 @@
56359
56423
  "type": "string",
56360
56424
  "description": "Query of the search."
56361
56425
  },
56426
+ "position": {
56427
+ "description": "One-based position of the opened result in the displayed list.",
56428
+ "allOf": [
56429
+ {
56430
+ "$ref": "#/components/schemas/SiteInsightsSearchResultNumber"
56431
+ }
56432
+ ]
56433
+ },
56434
+ "resultsCount": {
56435
+ "description": "Number of results in the displayed list.",
56436
+ "allOf": [
56437
+ {
56438
+ "$ref": "#/components/schemas/SiteInsightsSearchResultNumber"
56439
+ }
56440
+ ]
56441
+ },
56442
+ "searchId": {
56443
+ "$ref": "#/components/schemas/SiteSearchId"
56444
+ },
56362
56445
  "result": {
56363
56446
  "description": "Target of the opened search result.",
56364
56447
  "oneOf": [
@@ -57481,6 +57564,21 @@
57481
57564
  }
57482
57565
  }
57483
57566
  },
57567
+ {
57568
+ "type": "object",
57569
+ "description": "Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.",
57570
+ "required": [
57571
+ "column"
57572
+ ],
57573
+ "properties": {
57574
+ "column": {
57575
+ "type": "string",
57576
+ "enum": [
57577
+ "eventNormalizedSearchQuery"
57578
+ ]
57579
+ }
57580
+ }
57581
+ },
57484
57582
  {
57485
57583
  "type": "object",
57486
57584
  "required": [
@@ -57495,6 +57593,21 @@
57495
57593
  }
57496
57594
  }
57497
57595
  },
57596
+ {
57597
+ "type": "object",
57598
+ "description": "Clicked search result position bucket. Null when rank was not recorded.",
57599
+ "required": [
57600
+ "column"
57601
+ ],
57602
+ "properties": {
57603
+ "column": {
57604
+ "type": "string",
57605
+ "enum": [
57606
+ "eventSearchResultPositionBucket"
57607
+ ]
57608
+ }
57609
+ }
57610
+ },
57498
57611
  {
57499
57612
  "type": "object",
57500
57613
  "required": [
@@ -58711,6 +58824,28 @@
58711
58824
  }
58712
58825
  }
58713
58826
  },
58827
+ {
58828
+ "type": "object",
58829
+ "description": "Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.",
58830
+ "required": [
58831
+ "column",
58832
+ "values"
58833
+ ],
58834
+ "properties": {
58835
+ "column": {
58836
+ "type": "string",
58837
+ "enum": [
58838
+ "eventNormalizedSearchQuery"
58839
+ ]
58840
+ },
58841
+ "values": {
58842
+ "type": "array",
58843
+ "items": {
58844
+ "type": "string"
58845
+ }
58846
+ }
58847
+ }
58848
+ },
58714
58849
  {
58715
58850
  "type": "object",
58716
58851
  "required": [
@@ -58735,6 +58870,40 @@
58735
58870
  }
58736
58871
  }
58737
58872
  },
58873
+ {
58874
+ "type": "object",
58875
+ "description": "Clicked search result position bucket. Null when rank was not recorded.",
58876
+ "required": [
58877
+ "column",
58878
+ "values"
58879
+ ],
58880
+ "properties": {
58881
+ "column": {
58882
+ "type": "string",
58883
+ "enum": [
58884
+ "eventSearchResultPositionBucket"
58885
+ ]
58886
+ },
58887
+ "values": {
58888
+ "type": "array",
58889
+ "items": {
58890
+ "oneOf": [
58891
+ {
58892
+ "type": "null"
58893
+ },
58894
+ {
58895
+ "type": "string",
58896
+ "enum": [
58897
+ "first",
58898
+ "secondToFourth",
58899
+ "fifthOrLater"
58900
+ ]
58901
+ }
58902
+ ]
58903
+ }
58904
+ }
58905
+ }
58906
+ },
58738
58907
  {
58739
58908
  "type": "object",
58740
58909
  "description": "Ratings submitted on a page, counted once per rating a reader submitted rather than once\nper event.\n",
@@ -59216,12 +59385,62 @@
59216
59385
  "minimum": 1,
59217
59386
  "maximum": 1000
59218
59387
  },
59388
+ "includeSearchRankTrackingStart": {
59389
+ "type": "boolean",
59390
+ "description": "Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters."
59391
+ },
59392
+ "includeLowSearchResultPages": {
59393
+ "type": "boolean",
59394
+ "description": "Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50."
59395
+ },
59219
59396
  "page": {
59220
59397
  "type": "string",
59221
59398
  "description": "The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages."
59222
59399
  }
59223
59400
  }
59224
59401
  },
59402
+ "SiteInsightsLowSearchResultPage": {
59403
+ "type": "object",
59404
+ "required": [
59405
+ "query",
59406
+ "page",
59407
+ "medianPosition",
59408
+ "otherPagesCount"
59409
+ ],
59410
+ "properties": {
59411
+ "query": {
59412
+ "type": "string",
59413
+ "description": "Normalized search query."
59414
+ },
59415
+ "page": {
59416
+ "type": "object",
59417
+ "description": "The page with the most opens at position 5 or later for this query.",
59418
+ "required": [
59419
+ "space",
59420
+ "page"
59421
+ ],
59422
+ "properties": {
59423
+ "space": {
59424
+ "type": "string",
59425
+ "description": "ID of the space that contains the opened page."
59426
+ },
59427
+ "page": {
59428
+ "type": "string",
59429
+ "description": "ID of the opened page."
59430
+ }
59431
+ }
59432
+ },
59433
+ "medianPosition": {
59434
+ "type": "number",
59435
+ "description": "Median position across opens of this page at position 5 or later."
59436
+ },
59437
+ "otherPagesCount": {
59438
+ "type": "integer",
59439
+ "minimum": 0,
59440
+ "description": "Number of other distinct pages opened at position 5 or later for this query."
59441
+ }
59442
+ }
59443
+ },
59225
59444
  "SiteInsightsQueryEventsAggregationResult": {
59226
59445
  "allOf": [
59227
59446
  {
@@ -59233,6 +59452,21 @@
59233
59452
  "columns"
59234
59453
  ],
59235
59454
  "properties": {
59455
+ "searchRankTrackingStart": {
59456
+ "type": [
59457
+ "string",
59458
+ "null"
59459
+ ],
59460
+ "format": "date-time",
59461
+ "description": "Returned when requested. Null if the site has no recorded ranked search opens."
59462
+ },
59463
+ "lowSearchResultPages": {
59464
+ "type": "array",
59465
+ "description": "Returned when requested. Queries with no page opens are omitted.",
59466
+ "items": {
59467
+ "$ref": "#/components/schemas/SiteInsightsLowSearchResultPage"
59468
+ }
59469
+ },
59236
59470
  "columns": {
59237
59471
  "type": "array",
59238
59472
  "items": {
package/spec/openapi.yaml CHANGED
@@ -5981,7 +5981,7 @@ paths:
5981
5981
  operationId: createOrganizationIdPConnection
5982
5982
  summary: Create an identity provider connection
5983
5983
  description: |
5984
- Creates a connection with its SAML service provider URLs and a SCIM token. The token is only returned in this response.
5984
+ Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.
5985
5985
  tags:
5986
5986
  - sso
5987
5987
  security:
@@ -6022,7 +6022,7 @@ paths:
6022
6022
  content:
6023
6023
  application/json:
6024
6024
  schema:
6025
- $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6025
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6026
6026
  '400':
6027
6027
  $ref: '#/components/responses/BadRequestError'
6028
6028
  '404':
@@ -6050,6 +6050,8 @@ paths:
6050
6050
  patch:
6051
6051
  operationId: updateOrganizationIdPConnection
6052
6052
  summary: Update an identity provider connection
6053
+ description: |
6054
+ Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.
6053
6055
  tags:
6054
6056
  - sso
6055
6057
  security:
@@ -6077,6 +6079,10 @@ paths:
6077
6079
  - type: 'null'
6078
6080
  defaultTeamFromDomain:
6079
6081
  type: boolean
6082
+ defaultTeamFromSCIM:
6083
+ type: boolean
6084
+ description: |
6085
+ Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up.
6080
6086
  ssoURL:
6081
6087
  $ref: '#/components/schemas/URL'
6082
6088
  entityID:
@@ -6118,9 +6124,9 @@ paths:
6118
6124
  /orgs/{organizationId}/idp-connections/{idpConnectionId}/token:
6119
6125
  post:
6120
6126
  operationId: rotateOrganizationIdPConnectionToken
6121
- summary: Replace the SCIM token of an identity provider connection
6127
+ summary: Rotate the SCIM token of an identity provider connection
6122
6128
  description: |
6123
- Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.
6129
+ Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.
6124
6130
  tags:
6125
6131
  - sso
6126
6132
  security:
@@ -6130,11 +6136,13 @@ paths:
6130
6136
  - $ref: '#/components/parameters/idpConnectionId'
6131
6137
  responses:
6132
6138
  '200':
6133
- description: Token replaced
6139
+ description: Token rotated
6134
6140
  content:
6135
6141
  application/json:
6136
6142
  schema:
6137
6143
  $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6144
+ '400':
6145
+ $ref: '#/components/responses/BadRequestError'
6138
6146
  '404':
6139
6147
  $ref: '#/components/responses/NotFoundError'
6140
6148
  /orgs/{organizationId}/invites:
@@ -10356,6 +10364,8 @@ paths:
10356
10364
  query:
10357
10365
  type: string
10358
10366
  maxLength: 512
10367
+ searchId:
10368
+ $ref: '#/components/schemas/SiteSearchId'
10359
10369
  - oneOf:
10360
10370
  - type: object
10361
10371
  required:
@@ -20194,6 +20204,13 @@ components:
20194
20204
  type: string
20195
20205
  description:
20196
20206
  type: string
20207
+ keywords:
20208
+ type: array
20209
+ description: Authored terms and phrases that can help readers find this page.
20210
+ maxItems: 20
20211
+ items:
20212
+ type: string
20213
+ maxLength: 100
20197
20214
  tagTitle:
20198
20215
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
20199
20216
  type: string
@@ -23257,6 +23274,13 @@ components:
23257
23274
  description: Optional custom title used for the page in the table of contents and mentions instead of its page title. Set to an empty string to remove it.
23258
23275
  type: string
23259
23276
  maxLength: 100
23277
+ keywords:
23278
+ type: array
23279
+ description: Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.
23280
+ maxItems: 20
23281
+ items:
23282
+ type: string
23283
+ maxLength: 100
23260
23284
  tagTitle:
23261
23285
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
23262
23286
  type: string
@@ -23989,6 +24013,17 @@ components:
23989
24013
  $ref: '#/components/schemas/ChangeAttributeString'
23990
24014
  description:
23991
24015
  $ref: '#/components/schemas/ChangeAttributeString'
24016
+ keywords:
24017
+ type: object
24018
+ properties:
24019
+ before:
24020
+ type: array
24021
+ items:
24022
+ type: string
24023
+ after:
24024
+ type: array
24025
+ items:
24026
+ type: string
23992
24027
  slug:
23993
24028
  $ref: '#/components/schemas/ChangeAttributeString'
23994
24029
  document:
@@ -27887,6 +27922,10 @@ components:
27887
27922
  type: boolean
27888
27923
  description: |
27889
27924
  Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27925
+ defaultTeamFromSCIM:
27926
+ type: boolean
27927
+ description: |
27928
+ Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`.
27890
27929
  saml:
27891
27930
  type: object
27892
27931
  description: SAML sign-in through the connection.
@@ -27973,6 +28012,7 @@ components:
27973
28012
  - status
27974
28013
  - defaultRole
27975
28014
  - defaultTeamFromDomain
28015
+ - defaultTeamFromSCIM
27976
28016
  - saml
27977
28017
  - createdAt
27978
28018
  - updatedAt
@@ -31242,6 +31282,12 @@ components:
31242
31282
  SiteCustomizationSettingsInput:
31243
31283
  allOf:
31244
31284
  - $ref: '#/components/schemas/SiteCustomizationSettingsBase'
31285
+ SiteSearchId:
31286
+ type: string
31287
+ description: Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
31288
+ minLength: 32
31289
+ maxLength: 32
31290
+ pattern: ^[0-9A-Fa-f]{32}$
31245
31291
  SiteSearchScope:
31246
31292
  oneOf:
31247
31293
  - type: object
@@ -35562,6 +35608,11 @@ components:
35562
35608
  required:
35563
35609
  - type
35564
35610
  - query
35611
+ SiteInsightsSearchResultNumber:
35612
+ type: integer
35613
+ minimum: 1
35614
+ maximum: 20
35615
+ description: Published site search displays up to ten page results and ten supplemental records per request.
35565
35616
  SiteInsightsEventSearchOpenResult:
35566
35617
  allOf:
35567
35618
  - $ref: '#/components/schemas/SiteInsightsEventBase'
@@ -35574,6 +35625,16 @@ components:
35574
35625
  query:
35575
35626
  type: string
35576
35627
  description: Query of the search.
35628
+ position:
35629
+ description: One-based position of the opened result in the displayed list.
35630
+ allOf:
35631
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35632
+ resultsCount:
35633
+ description: Number of results in the displayed list.
35634
+ allOf:
35635
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35636
+ searchId:
35637
+ $ref: '#/components/schemas/SiteSearchId'
35577
35638
  result:
35578
35639
  description: Target of the opened search result.
35579
35640
  oneOf:
@@ -36224,6 +36285,15 @@ components:
36224
36285
  type: string
36225
36286
  enum:
36226
36287
  - eventSearchQuery
36288
+ - type: object
36289
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
36290
+ required:
36291
+ - column
36292
+ properties:
36293
+ column:
36294
+ type: string
36295
+ enum:
36296
+ - eventNormalizedSearchQuery
36227
36297
  - type: object
36228
36298
  required:
36229
36299
  - column
@@ -36232,6 +36302,15 @@ components:
36232
36302
  type: string
36233
36303
  enum:
36234
36304
  - eventSearchResultRecordId
36305
+ - type: object
36306
+ description: Clicked search result position bucket. Null when rank was not recorded.
36307
+ required:
36308
+ - column
36309
+ properties:
36310
+ column:
36311
+ type: string
36312
+ enum:
36313
+ - eventSearchResultPositionBucket
36235
36314
  - type: object
36236
36315
  required:
36237
36316
  - column
@@ -36988,6 +37067,20 @@ components:
36988
37067
  type: array
36989
37068
  items:
36990
37069
  type: string
37070
+ - type: object
37071
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
37072
+ required:
37073
+ - column
37074
+ - values
37075
+ properties:
37076
+ column:
37077
+ type: string
37078
+ enum:
37079
+ - eventNormalizedSearchQuery
37080
+ values:
37081
+ type: array
37082
+ items:
37083
+ type: string
36991
37084
  - type: object
36992
37085
  required:
36993
37086
  - column
@@ -37003,6 +37096,26 @@ components:
37003
37096
  type:
37004
37097
  - string
37005
37098
  - 'null'
37099
+ - type: object
37100
+ description: Clicked search result position bucket. Null when rank was not recorded.
37101
+ required:
37102
+ - column
37103
+ - values
37104
+ properties:
37105
+ column:
37106
+ type: string
37107
+ enum:
37108
+ - eventSearchResultPositionBucket
37109
+ values:
37110
+ type: array
37111
+ items:
37112
+ oneOf:
37113
+ - type: 'null'
37114
+ - type: string
37115
+ enum:
37116
+ - first
37117
+ - secondToFourth
37118
+ - fifthOrLater
37006
37119
  - type: object
37007
37120
  description: |
37008
37121
  Ratings submitted on a page, counted once per rating a reader submitted rather than once
@@ -37309,9 +37422,46 @@ components:
37309
37422
  default: 1000
37310
37423
  minimum: 1
37311
37424
  maximum: 1000
37425
+ includeSearchRankTrackingStart:
37426
+ type: boolean
37427
+ description: Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters.
37428
+ includeLowSearchResultPages:
37429
+ type: boolean
37430
+ description: Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50.
37312
37431
  page:
37313
37432
  type: string
37314
37433
  description: The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages.
37434
+ SiteInsightsLowSearchResultPage:
37435
+ type: object
37436
+ required:
37437
+ - query
37438
+ - page
37439
+ - medianPosition
37440
+ - otherPagesCount
37441
+ properties:
37442
+ query:
37443
+ type: string
37444
+ description: Normalized search query.
37445
+ page:
37446
+ type: object
37447
+ description: The page with the most opens at position 5 or later for this query.
37448
+ required:
37449
+ - space
37450
+ - page
37451
+ properties:
37452
+ space:
37453
+ type: string
37454
+ description: ID of the space that contains the opened page.
37455
+ page:
37456
+ type: string
37457
+ description: ID of the opened page.
37458
+ medianPosition:
37459
+ type: number
37460
+ description: Median position across opens of this page at position 5 or later.
37461
+ otherPagesCount:
37462
+ type: integer
37463
+ minimum: 0
37464
+ description: Number of other distinct pages opened at position 5 or later for this query.
37315
37465
  SiteInsightsQueryEventsAggregationResult:
37316
37466
  allOf:
37317
37467
  - $ref: '#/components/schemas/List'
@@ -37319,6 +37469,17 @@ components:
37319
37469
  required:
37320
37470
  - columns
37321
37471
  properties:
37472
+ searchRankTrackingStart:
37473
+ type:
37474
+ - string
37475
+ - 'null'
37476
+ format: date-time
37477
+ description: Returned when requested. Null if the site has no recorded ranked search opens.
37478
+ lowSearchResultPages:
37479
+ type: array
37480
+ description: Returned when requested. Queries with no page opens are omitted.
37481
+ items:
37482
+ $ref: '#/components/schemas/SiteInsightsLowSearchResultPage'
37322
37483
  columns:
37323
37484
  type: array
37324
37485
  items: