@gitbook/api 0.200.0 → 0.201.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
@@ -741,6 +741,20 @@ export declare enum SAMLProviderStatus {
741
741
  Active = "active",
742
742
  Pending = "pending"
743
743
  }
744
+ /** An organization feature used for plan access and upgrade prompts. */
745
+ export declare enum OrganizationFeature {
746
+ MaxMembers = "max-members",
747
+ AiLens = "ai-lens",
748
+ PdfExport = "pdf-export",
749
+ AiWriting = "ai-writing",
750
+ ReusableContent = "reusable-content",
751
+ Translations = "translations",
752
+ MembersAdvancedRoles = "members-advanced-roles",
753
+ MembersTeams = "members-teams",
754
+ MembersTeamOwners = "members-team-owners",
755
+ SecuritySaml = "security-saml",
756
+ ChangeRequestsMergeRules = "change-requests-merge-rules"
757
+ }
744
758
  export declare enum BillingSwitchAction {
745
759
  Trial = "trial",
746
760
  Upgrade = "upgrade",
@@ -3195,7 +3209,7 @@ export type ChangeRequestSubject = string;
3195
3209
  export type ChangeRequestLinkTitle = string;
3196
3210
  /** External link associated with a change request. */
3197
3211
  export interface ChangeRequestLinkInput {
3198
- /** The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead. */
3212
+ /** The ID of an existing link, as served on the change request. Pass it back to update that link, or omit it to add a new one. */
3199
3213
  id?: string;
3200
3214
  ref: ContentRefURL;
3201
3215
  /** Optional title to display for the link. */
@@ -3225,8 +3239,8 @@ export type ChangeRequestLinkExpanded = {
3225
3239
  state: "error";
3226
3240
  };
3227
3241
  export type ChangeRequestLink = ChangeRequestLinkInput & {
3228
- /** The ID of the link. Absent on links not yet stored relationally. */
3229
- id?: string;
3242
+ /** The ID of the link. */
3243
+ id: string;
3230
3244
  /** External ticket data resolved for this link by a configured connector. */
3231
3245
  expanded?: ChangeRequestLinkExpanded;
3232
3246
  };
@@ -6969,7 +6983,7 @@ export interface SiteCustomizationSettingsBase {
6969
6983
  footer: {
6970
6984
  logo?: CustomizationThemedURL;
6971
6985
  groups: CustomizationFooterGroup[];
6972
- /** @maxLength 300 */
6986
+ /** @maxLength 512 */
6973
6987
  copyright?: string;
6974
6988
  };
6975
6989
  announcement?: CustomizationAnnouncement;
@@ -7214,6 +7228,11 @@ export interface AgentFeedbackReportedBy {
7214
7228
  * @maxLength 512
7215
7229
  */
7216
7230
  userAgent?: string;
7231
+ /**
7232
+ * Identifier the surface gave the agent for the call being reported, used to find that call in the surface's own logs. Not an identifier of this report.
7233
+ * @maxLength 100
7234
+ */
7235
+ correlationId?: string;
7217
7236
  /**
7218
7237
  * Whether the user explicitly asked the agent to submit this feedback.
7219
7238
  * @default false
@@ -11578,6 +11597,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11578
11597
  * @default true
11579
11598
  */
11580
11599
  metadata?: boolean;
11600
+ /**
11601
+ * If `true` is passed, mutable Git metadata may be served from a cache.
11602
+ * @default false
11603
+ */
11604
+ cachedMetadata?: boolean;
11581
11605
  /**
11582
11606
  * If `false` is passed, content will not be computed
11583
11607
  * @default true
@@ -12571,6 +12595,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12571
12595
  * @default true
12572
12596
  */
12573
12597
  metadata?: boolean;
12598
+ /**
12599
+ * If `true` is passed, mutable Git metadata may be served from a cache.
12600
+ * @default false
12601
+ */
12602
+ cachedMetadata?: boolean;
12574
12603
  /**
12575
12604
  * If `false` is passed, content will not be computed
12576
12605
  * @default true
@@ -12627,6 +12656,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12627
12656
  * @default true
12628
12657
  */
12629
12658
  metadata?: boolean;
12659
+ /**
12660
+ * If `true` is passed, mutable Git metadata may be served from a cache.
12661
+ * @default false
12662
+ */
12663
+ cachedMetadata?: boolean;
12630
12664
  /**
12631
12665
  * If `false` is passed, content will not be computed
12632
12666
  * @default true
@@ -17110,7 +17144,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
17110
17144
  groups?: any[] | null;
17111
17145
  /**
17112
17146
  * The copyright text that is displayed in the footer. Set to null to reset the override.
17113
- * @maxLength 300
17147
+ * @maxLength 512
17114
17148
  */
17115
17149
  copyright?: string | null;
17116
17150
  };
@@ -100,6 +100,7 @@ export declare const BILLING_COUPON_MAX_LENGTH = 500;
100
100
  export declare const BILLING_COUPON_MIN_LENGTH = 1;
101
101
  export declare const BILLING_METER_ENUM: ["ai_responses", "ai_agent_responses", "translation_words"];
102
102
  export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
103
+ export declare const ORGANIZATION_FEATURE_ENUM: ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
103
104
  export declare const SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
104
105
  export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
105
106
  export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
package/dist/index.cjs CHANGED
@@ -375,6 +375,7 @@ __export(src_exports, {
375
375
  OPEN_APISPEC_SLUG_PATTERN: () => OPEN_APISPEC_SLUG_PATTERN,
376
376
  OPEN_APISPEC_VISIBILITY_ENUM: () => OPEN_APISPEC_VISIBILITY_ENUM,
377
377
  ORGANIZATION_COMMUNITY_TYPE_ENUM: () => ORGANIZATION_COMMUNITY_TYPE_ENUM,
378
+ ORGANIZATION_FEATURE_ENUM: () => ORGANIZATION_FEATURE_ENUM,
378
379
  ORGANIZATION_HOSTNAME_MAX_LENGTH: () => ORGANIZATION_HOSTNAME_MAX_LENGTH,
379
380
  ORGANIZATION_HOSTNAME_MIN_LENGTH: () => ORGANIZATION_HOSTNAME_MIN_LENGTH,
380
381
  ORGANIZATION_TEAM_TITLE_MAX_LENGTH: () => ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
@@ -388,6 +389,7 @@ __export(src_exports, {
388
389
  OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
389
390
  OpenAPISpecVisibility: () => OpenAPISpecVisibility,
390
391
  OrganizationCommunityType: () => OrganizationCommunityType,
392
+ OrganizationFeature: () => OrganizationFeature,
391
393
  OrganizationType: () => OrganizationType,
392
394
  OrganizationUseCase: () => OrganizationUseCase,
393
395
  PAGE_FEEDBACK_RATING_ENUM: () => PAGE_FEEDBACK_RATING_ENUM,
@@ -560,7 +562,7 @@ module.exports = __toCommonJS(src_exports);
560
562
 
561
563
  // package.json
562
564
  var name = "@gitbook/api";
563
- var version = "0.200.0";
565
+ var version = "0.201.0";
564
566
 
565
567
  // src/client.ts
566
568
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1368,6 +1370,20 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
1368
1370
  SAMLProviderStatus2["Pending"] = "pending";
1369
1371
  return SAMLProviderStatus2;
1370
1372
  })(SAMLProviderStatus || {});
1373
+ var OrganizationFeature = /* @__PURE__ */ ((OrganizationFeature2) => {
1374
+ OrganizationFeature2["MaxMembers"] = "max-members";
1375
+ OrganizationFeature2["AiLens"] = "ai-lens";
1376
+ OrganizationFeature2["PdfExport"] = "pdf-export";
1377
+ OrganizationFeature2["AiWriting"] = "ai-writing";
1378
+ OrganizationFeature2["ReusableContent"] = "reusable-content";
1379
+ OrganizationFeature2["Translations"] = "translations";
1380
+ OrganizationFeature2["MembersAdvancedRoles"] = "members-advanced-roles";
1381
+ OrganizationFeature2["MembersTeams"] = "members-teams";
1382
+ OrganizationFeature2["MembersTeamOwners"] = "members-team-owners";
1383
+ OrganizationFeature2["SecuritySaml"] = "security-saml";
1384
+ OrganizationFeature2["ChangeRequestsMergeRules"] = "change-requests-merge-rules";
1385
+ return OrganizationFeature2;
1386
+ })(OrganizationFeature || {});
1371
1387
  var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
1372
1388
  BillingSwitchAction2["Trial"] = "trial";
1373
1389
  BillingSwitchAction2["Upgrade"] = "upgrade";
@@ -5100,6 +5116,7 @@ var BILLING_COUPON_MAX_LENGTH = 500;
5100
5116
  var BILLING_COUPON_MIN_LENGTH = 1;
5101
5117
  var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
5102
5118
  var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
5119
+ var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
5103
5120
  var SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
5104
5121
  var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
5105
5122
  var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
@@ -5498,6 +5515,7 @@ var GitBookAPI = class extends Api {
5498
5515
  OPEN_APISPEC_SLUG_PATTERN,
5499
5516
  OPEN_APISPEC_VISIBILITY_ENUM,
5500
5517
  ORGANIZATION_COMMUNITY_TYPE_ENUM,
5518
+ ORGANIZATION_FEATURE_ENUM,
5501
5519
  ORGANIZATION_HOSTNAME_MAX_LENGTH,
5502
5520
  ORGANIZATION_HOSTNAME_MIN_LENGTH,
5503
5521
  ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
@@ -5511,6 +5529,7 @@ var GitBookAPI = class extends Api {
5511
5529
  OpenAPISpecProcessingState,
5512
5530
  OpenAPISpecVisibility,
5513
5531
  OrganizationCommunityType,
5532
+ OrganizationFeature,
5514
5533
  OrganizationType,
5515
5534
  OrganizationUseCase,
5516
5535
  PAGE_FEEDBACK_RATING_ENUM,
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.200.0";
175
+ var version = "0.201.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -980,6 +980,20 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
980
980
  SAMLProviderStatus2["Pending"] = "pending";
981
981
  return SAMLProviderStatus2;
982
982
  })(SAMLProviderStatus || {});
983
+ var OrganizationFeature = /* @__PURE__ */ ((OrganizationFeature2) => {
984
+ OrganizationFeature2["MaxMembers"] = "max-members";
985
+ OrganizationFeature2["AiLens"] = "ai-lens";
986
+ OrganizationFeature2["PdfExport"] = "pdf-export";
987
+ OrganizationFeature2["AiWriting"] = "ai-writing";
988
+ OrganizationFeature2["ReusableContent"] = "reusable-content";
989
+ OrganizationFeature2["Translations"] = "translations";
990
+ OrganizationFeature2["MembersAdvancedRoles"] = "members-advanced-roles";
991
+ OrganizationFeature2["MembersTeams"] = "members-teams";
992
+ OrganizationFeature2["MembersTeamOwners"] = "members-team-owners";
993
+ OrganizationFeature2["SecuritySaml"] = "security-saml";
994
+ OrganizationFeature2["ChangeRequestsMergeRules"] = "change-requests-merge-rules";
995
+ return OrganizationFeature2;
996
+ })(OrganizationFeature || {});
983
997
  var BillingSwitchAction = /* @__PURE__ */ ((BillingSwitchAction2) => {
984
998
  BillingSwitchAction2["Trial"] = "trial";
985
999
  BillingSwitchAction2["Upgrade"] = "upgrade";
@@ -4712,6 +4726,7 @@ var BILLING_COUPON_MAX_LENGTH = 500;
4712
4726
  var BILLING_COUPON_MIN_LENGTH = 1;
4713
4727
  var BILLING_METER_ENUM = ["ai_responses", "ai_agent_responses", "translation_words"];
4714
4728
  var BILLING_SWITCH_ACTION_ENUM = ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
4729
+ var ORGANIZATION_FEATURE_ENUM = ["max-members", "ai-lens", "pdf-export", "ai-writing", "reusable-content", "translations", "members-advanced-roles", "members-teams", "members-team-owners", "security-saml", "change-requests-merge-rules"];
4715
4730
  var SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
4716
4731
  var SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
4717
4732
  var SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
@@ -5109,6 +5124,7 @@ export {
5109
5124
  OPEN_APISPEC_SLUG_PATTERN,
5110
5125
  OPEN_APISPEC_VISIBILITY_ENUM,
5111
5126
  ORGANIZATION_COMMUNITY_TYPE_ENUM,
5127
+ ORGANIZATION_FEATURE_ENUM,
5112
5128
  ORGANIZATION_HOSTNAME_MAX_LENGTH,
5113
5129
  ORGANIZATION_HOSTNAME_MIN_LENGTH,
5114
5130
  ORGANIZATION_TEAM_TITLE_MAX_LENGTH,
@@ -5122,6 +5138,7 @@ export {
5122
5138
  OpenAPISpecProcessingState,
5123
5139
  OpenAPISpecVisibility,
5124
5140
  OrganizationCommunityType,
5141
+ OrganizationFeature,
5125
5142
  OrganizationType,
5126
5143
  OrganizationUseCase,
5127
5144
  PAGE_FEEDBACK_RATING_ENUM,
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.200.0",
7
+ "version": "0.201.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -2010,6 +2010,9 @@
2010
2010
  {
2011
2011
  "$ref": "#/components/parameters/revisionMetadata"
2012
2012
  },
2013
+ {
2014
+ "$ref": "#/components/parameters/revisionCachedMetadata"
2015
+ },
2013
2016
  {
2014
2017
  "$ref": "#/components/parameters/revisionComputed"
2015
2018
  }
@@ -4885,6 +4888,9 @@
4885
4888
  {
4886
4889
  "$ref": "#/components/parameters/revisionMetadata"
4887
4890
  },
4891
+ {
4892
+ "$ref": "#/components/parameters/revisionCachedMetadata"
4893
+ },
4888
4894
  {
4889
4895
  "$ref": "#/components/parameters/revisionComputed"
4890
4896
  }
@@ -4998,6 +5004,9 @@
4998
5004
  {
4999
5005
  "$ref": "#/components/parameters/revisionMetadata"
5000
5006
  },
5007
+ {
5008
+ "$ref": "#/components/parameters/revisionCachedMetadata"
5009
+ },
5001
5010
  {
5002
5011
  "$ref": "#/components/parameters/revisionComputed"
5003
5012
  }
@@ -19398,7 +19407,7 @@
19398
19407
  "null"
19399
19408
  ],
19400
19409
  "description": "The copyright text that is displayed in the footer. Set to null to reset the override.",
19401
- "maxLength": 300
19410
+ "maxLength": 512
19402
19411
  }
19403
19412
  }
19404
19413
  },
@@ -23278,28 +23287,28 @@
23278
23287
  "tokenUrl": "https://oauth.gitbook.com/token",
23279
23288
  "scopes": {
23280
23289
  "user:read": "Read your GitBook user profile.",
23281
- "organization:read": "Read organization settings and metadata.",
23282
- "organization:write": "Create and update organization settings.",
23283
- "organization:members:read": "Read organization members, invites and link invites.",
23284
- "organization:members:write": "Manage organization members, invites and link invites.",
23290
+ "organization:read": "Read the organizations you belong to, their settings and metadata, and their AI agent conversations.",
23291
+ "organization:write": "Create organizations, and update organization settings and AI agent conversations.",
23292
+ "organization:members:read": "Read organization members, teams, invites and link invites.",
23293
+ "organization:members:write": "Manage organization members, teams, invites and link invites.",
23285
23294
  "organization:ask": "Ask AI questions across an organization's content.",
23286
23295
  "organization:search": "Search across an organization's content.",
23287
- "space:read": "Read spaces and their content.",
23288
- "space:write": "Create, update and delete spaces and their content, including imports.",
23289
- "space:permissions:read": "Read space permissions.",
23290
- "space:permissions:write": "Manage space permissions.",
23291
- "change-request:merge": "Merge change requests, publishing their changes to the space.",
23292
- "site:read": "Read sites and their settings.",
23293
- "site:write": "Create, update and delete sites, sections and their settings.",
23296
+ "space:read": "Read spaces and their content, including pages, change requests and their reviews, comments, files and revision history.",
23297
+ "space:write": "Create, update and delete spaces and their content, including change requests (create, edit, review), comments, and content imports and exports. Merging a change request also requires change-request:merge.",
23298
+ "space:permissions:read": "Read the users and teams who have access to spaces and collections.",
23299
+ "space:permissions:write": "Manage who has access to spaces and collections, including inviting users and teams.",
23300
+ "change-request:merge": "Merge change requests, publishing their changes to the space. Creating, editing and reviewing change requests only requires space:write.",
23301
+ "site:read": "Read sites and their settings, including navigation structure, linked spaces, customization, redirects, topics, AI configuration and documentation issues.",
23302
+ "site:write": "Create, update and delete sites and their settings, including navigation structure (sections, linked spaces, external links), customization, redirects, topics and AI configuration.",
23294
23303
  "site:publish": "Publish and unpublish sites, controlling their public exposure.",
23295
- "site:permissions:read": "Read site permissions.",
23296
- "site:permissions:write": "Manage site permissions.",
23297
- "site:auth:read": "Read site authentication and security configuration.",
23298
- "site:auth:write": "Manage site authentication and security configuration.",
23299
- "site:insights:read": "Read site analytics and insights.",
23304
+ "site:permissions:read": "Read the users and teams who have access to sites.",
23305
+ "site:permissions:write": "Manage who has access to sites, including inviting users and teams.",
23306
+ "site:auth:read": "Read how visitors authenticate on a site and its security configuration, including private share links.",
23307
+ "site:auth:write": "Manage how visitors authenticate on a site and its security configuration, including private share links.",
23308
+ "site:insights:read": "Read site analytics and insights, including the questions visitors asked Ask AI and the answers they received.",
23300
23309
  "site:ask": "Ask AI questions across a site's content.",
23301
23310
  "site:search": "Search across a site's content.",
23302
- "integration:read": "Read integrations and where they are installed.",
23311
+ "integration:read": "Read integrations, their status and where they are installed.",
23303
23312
  "integration:installations:read": "Read integration installations and their configuration, which can include credentials for third-party services.",
23304
23313
  "integration:installations:write": "Install and configure integrations on an organization, its spaces and its sites.",
23305
23314
  "integration:publish": "Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.",
@@ -23482,6 +23491,15 @@
23482
23491
  "type": "string"
23483
23492
  }
23484
23493
  },
23494
+ "revisionCachedMetadata": {
23495
+ "name": "cachedMetadata",
23496
+ "in": "query",
23497
+ "description": "If `true` is passed, mutable Git metadata may be served from a cache.",
23498
+ "schema": {
23499
+ "type": "boolean",
23500
+ "default": false
23501
+ }
23502
+ },
23485
23503
  "reusableContentId": {
23486
23504
  "name": "reusableContentId",
23487
23505
  "in": "path",
@@ -31822,7 +31840,7 @@
31822
31840
  "properties": {
31823
31841
  "id": {
31824
31842
  "type": "string",
31825
- "description": "The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead."
31843
+ "description": "The ID of an existing link, as served on the change request. Pass it back to update that link, or omit it to add a new one."
31826
31844
  },
31827
31845
  "ref": {
31828
31846
  "$ref": "#/components/schemas/ContentRefURL"
@@ -31940,13 +31958,16 @@
31940
31958
  "properties": {
31941
31959
  "id": {
31942
31960
  "type": "string",
31943
- "description": "The ID of the link. Absent on links not yet stored relationally."
31961
+ "description": "The ID of the link."
31944
31962
  },
31945
31963
  "expanded": {
31946
31964
  "$ref": "#/components/schemas/ChangeRequestLinkExpanded",
31947
31965
  "readOnly": true
31948
31966
  }
31949
- }
31967
+ },
31968
+ "required": [
31969
+ "id"
31970
+ ]
31950
31971
  }
31951
31972
  ]
31952
31973
  },
@@ -40946,6 +40967,23 @@
40946
40967
  "entries"
40947
40968
  ]
40948
40969
  },
40970
+ "OrganizationFeature": {
40971
+ "type": "string",
40972
+ "description": "An organization feature used for plan access and upgrade prompts.",
40973
+ "enum": [
40974
+ "max-members",
40975
+ "ai-lens",
40976
+ "pdf-export",
40977
+ "ai-writing",
40978
+ "reusable-content",
40979
+ "translations",
40980
+ "members-advanced-roles",
40981
+ "members-teams",
40982
+ "members-team-owners",
40983
+ "security-saml",
40984
+ "change-requests-merge-rules"
40985
+ ]
40986
+ },
40949
40987
  "SearchSpaceResult": {
40950
40988
  "type": "object",
40951
40989
  "description": "Search result representing a space.",
@@ -43976,7 +44014,7 @@
43976
44014
  },
43977
44015
  "copyright": {
43978
44016
  "type": "string",
43979
- "maxLength": 300
44017
+ "maxLength": 512
43980
44018
  }
43981
44019
  },
43982
44020
  "required": [
@@ -44666,6 +44704,11 @@
44666
44704
  "maxLength": 512,
44667
44705
  "description": "User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in."
44668
44706
  },
44707
+ "correlationId": {
44708
+ "type": "string",
44709
+ "maxLength": 100,
44710
+ "description": "Identifier the surface gave the agent for the call being reported, used to find that call in the surface's own logs. Not an identifier of this report."
44711
+ },
44669
44712
  "onDemand": {
44670
44713
  "type": "boolean",
44671
44714
  "default": false,
package/spec/openapi.yaml CHANGED
@@ -1369,6 +1369,7 @@ paths:
1369
1369
  - $ref: "#/components/parameters/documentEvaluated"
1370
1370
  - $ref: "#/components/parameters/documentDereferenced"
1371
1371
  - $ref: "#/components/parameters/revisionMetadata"
1372
+ - $ref: "#/components/parameters/revisionCachedMetadata"
1372
1373
  - $ref: "#/components/parameters/revisionComputed"
1373
1374
  responses:
1374
1375
  "200":
@@ -2932,6 +2933,7 @@ paths:
2932
2933
  - $ref: "#/components/parameters/documentEvaluated"
2933
2934
  - $ref: "#/components/parameters/documentDereferenced"
2934
2935
  - $ref: "#/components/parameters/revisionMetadata"
2936
+ - $ref: "#/components/parameters/revisionCachedMetadata"
2935
2937
  - $ref: "#/components/parameters/revisionComputed"
2936
2938
  responses:
2937
2939
  "200":
@@ -2986,6 +2988,7 @@ paths:
2986
2988
  - $ref: "#/components/parameters/documentEvaluated"
2987
2989
  - $ref: "#/components/parameters/documentDereferenced"
2988
2990
  - $ref: "#/components/parameters/revisionMetadata"
2991
+ - $ref: "#/components/parameters/revisionCachedMetadata"
2989
2992
  - $ref: "#/components/parameters/revisionComputed"
2990
2993
  responses:
2991
2994
  "200":
@@ -10881,7 +10884,7 @@ paths:
10881
10884
  - string
10882
10885
  - "null"
10883
10886
  description: The copyright text that is displayed in the footer. Set to null to reset the override.
10884
- maxLength: 300
10887
+ maxLength: 512
10885
10888
  themes:
10886
10889
  type: object
10887
10890
  properties:
@@ -13095,28 +13098,28 @@ components:
13095
13098
  tokenUrl: https://oauth.gitbook.com/token
13096
13099
  scopes:
13097
13100
  user:read: Read your GitBook user profile.
13098
- organization:read: Read organization settings and metadata.
13099
- organization:write: Create and update organization settings.
13100
- organization:members:read: Read organization members, invites and link invites.
13101
- organization:members:write: Manage organization members, invites and link invites.
13101
+ organization:read: Read the organizations you belong to, their settings and metadata, and their AI agent conversations.
13102
+ organization:write: Create organizations, and update organization settings and AI agent conversations.
13103
+ organization:members:read: Read organization members, teams, invites and link invites.
13104
+ organization:members:write: Manage organization members, teams, invites and link invites.
13102
13105
  organization:ask: Ask AI questions across an organization's content.
13103
13106
  organization:search: Search across an organization's content.
13104
- space:read: Read spaces and their content.
13105
- space:write: Create, update and delete spaces and their content, including imports.
13106
- space:permissions:read: Read space permissions.
13107
- space:permissions:write: Manage space permissions.
13108
- change-request:merge: Merge change requests, publishing their changes to the space.
13109
- site:read: Read sites and their settings.
13110
- site:write: Create, update and delete sites, sections and their settings.
13107
+ space:read: Read spaces and their content, including pages, change requests and their reviews, comments, files and revision history.
13108
+ space:write: Create, update and delete spaces and their content, including change requests (create, edit, review), comments, and content imports and exports. Merging a change request also requires change-request:merge.
13109
+ space:permissions:read: Read the users and teams who have access to spaces and collections.
13110
+ space:permissions:write: Manage who has access to spaces and collections, including inviting users and teams.
13111
+ change-request:merge: Merge change requests, publishing their changes to the space. Creating, editing and reviewing change requests only requires space:write.
13112
+ site:read: Read sites and their settings, including navigation structure, linked spaces, customization, redirects, topics, AI configuration and documentation issues.
13113
+ site:write: Create, update and delete sites and their settings, including navigation structure (sections, linked spaces, external links), customization, redirects, topics and AI configuration.
13111
13114
  site:publish: Publish and unpublish sites, controlling their public exposure.
13112
- site:permissions:read: Read site permissions.
13113
- site:permissions:write: Manage site permissions.
13114
- site:auth:read: Read site authentication and security configuration.
13115
- site:auth:write: Manage site authentication and security configuration.
13116
- site:insights:read: Read site analytics and insights.
13115
+ site:permissions:read: Read the users and teams who have access to sites.
13116
+ site:permissions:write: Manage who has access to sites, including inviting users and teams.
13117
+ site:auth:read: Read how visitors authenticate on a site and its security configuration, including private share links.
13118
+ site:auth:write: Manage how visitors authenticate on a site and its security configuration, including private share links.
13119
+ site:insights:read: Read site analytics and insights, including the questions visitors asked Ask AI and the answers they received.
13117
13120
  site:ask: Ask AI questions across a site's content.
13118
13121
  site:search: Search across a site's content.
13119
- integration:read: Read integrations and where they are installed.
13122
+ integration:read: Read integrations, their status and where they are installed.
13120
13123
  integration:installations:read: Read integration installations and their configuration, which can include credentials for third-party services.
13121
13124
  integration:installations:write: Install and configure integrations on an organization, its spaces and its sites.
13122
13125
  integration:publish: Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.
@@ -13259,6 +13262,13 @@ components:
13259
13262
  description: The path of the page in the revision.
13260
13263
  schema:
13261
13264
  type: string
13265
+ revisionCachedMetadata:
13266
+ name: cachedMetadata
13267
+ in: query
13268
+ description: If `true` is passed, mutable Git metadata may be served from a cache.
13269
+ schema:
13270
+ type: boolean
13271
+ default: false
13262
13272
  reusableContentId:
13263
13273
  name: reusableContentId
13264
13274
  in: path
@@ -18702,7 +18712,7 @@ components:
18702
18712
  properties:
18703
18713
  id:
18704
18714
  type: string
18705
- description: The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead.
18715
+ description: The ID of an existing link, as served on the change request. Pass it back to update that link, or omit it to add a new one.
18706
18716
  ref:
18707
18717
  $ref: "#/components/schemas/ContentRefURL"
18708
18718
  title:
@@ -18781,10 +18791,12 @@ components:
18781
18791
  properties:
18782
18792
  id:
18783
18793
  type: string
18784
- description: The ID of the link. Absent on links not yet stored relationally.
18794
+ description: The ID of the link.
18785
18795
  expanded:
18786
18796
  $ref: "#/components/schemas/ChangeRequestLinkExpanded"
18787
18797
  readOnly: true
18798
+ required:
18799
+ - id
18788
18800
  ChangeRequestLinks:
18789
18801
  type: array
18790
18802
  description: External links associated with the change request.
@@ -24869,6 +24881,21 @@ components:
24869
24881
  required:
24870
24882
  - total
24871
24883
  - entries
24884
+ OrganizationFeature:
24885
+ type: string
24886
+ description: An organization feature used for plan access and upgrade prompts.
24887
+ enum:
24888
+ - max-members
24889
+ - ai-lens
24890
+ - pdf-export
24891
+ - ai-writing
24892
+ - reusable-content
24893
+ - translations
24894
+ - members-advanced-roles
24895
+ - members-teams
24896
+ - members-team-owners
24897
+ - security-saml
24898
+ - change-requests-merge-rules
24872
24899
  SearchSpaceResult:
24873
24900
  type: object
24874
24901
  description: Search result representing a space.
@@ -27031,7 +27058,7 @@ components:
27031
27058
  $ref: "#/components/schemas/CustomizationFooterGroup"
27032
27059
  copyright:
27033
27060
  type: string
27034
- maxLength: 300
27061
+ maxLength: 512
27035
27062
  required:
27036
27063
  - groups
27037
27064
  announcement:
@@ -27505,6 +27532,10 @@ components:
27505
27532
  type: string
27506
27533
  maxLength: 512
27507
27534
  description: User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
27535
+ correlationId:
27536
+ type: string
27537
+ maxLength: 100
27538
+ description: Identifier the surface gave the agent for the call being reported, used to find that call in the surface's own logs. Not an identifier of this report.
27508
27539
  onDemand:
27509
27540
  type: boolean
27510
27541
  default: false