@gitbook/api 0.137.0 → 0.139.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
@@ -788,9 +788,21 @@ export interface DocumentTableViewCards {
788
788
  /** Should we display the column title or not */
789
789
  hideColumnTitle?: boolean;
790
790
  }
791
+ /** Object fit for image display in card views */
792
+ export declare enum CardsImageObjectFit {
793
+ Contain = "contain",
794
+ Fill = "fill",
795
+ Cover = "cover"
796
+ }
797
+ /** A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings. */
798
+ export type DocumentTableImageRecord = ContentRefFile | ContentRefURL | {
799
+ ref: ContentRefFile | ContentRefURL;
800
+ /** Object fit for image display in card views */
801
+ objectFit?: CardsImageObjectFit;
802
+ };
791
803
  export interface DocumentTableRecord {
792
804
  orderIndex: string;
793
- values: Record<string, number | string | null | boolean | string[] | ContentRef>;
805
+ values: Record<string, number | string | null | boolean | string[] | ContentRef | DocumentTableImageRecord>;
794
806
  }
795
807
  export interface DocumentTableDefinitionBase {
796
808
  id: string;
@@ -1584,9 +1596,12 @@ export interface ChangeRequest {
1584
1596
  status: ChangeRequestStatus;
1585
1597
  /** Subject of the change request */
1586
1598
  subject: ChangeRequestSubject;
1599
+ description?: JSONDocument;
1587
1600
  createdBy: User;
1588
1601
  createdAt: Timestamp;
1589
1602
  updatedAt: Timestamp;
1603
+ /** ID of the space in which the change request was created. */
1604
+ space: string;
1590
1605
  /** ID of the active revision in the change request. */
1591
1606
  revision: string;
1592
1607
  /** ID of the initial revision in the space from which the change request was created. */
@@ -4965,7 +4980,10 @@ export declare enum CustomizationSearchStyle {
4965
4980
  Prominent = "prominent",
4966
4981
  Subtle = "subtle"
4967
4982
  }
4968
- /** Language for the UI element */
4983
+ /**
4984
+ * Language for the UI element
4985
+ * @deprecated
4986
+ */
4969
4987
  export declare enum CustomizationLocale {
4970
4988
  En = "en",
4971
4989
  Fr = "fr",
@@ -5102,6 +5120,7 @@ export interface SiteCustomizationSettings {
5102
5120
  */
5103
5121
  search: CustomizationSearchStyle;
5104
5122
  };
5123
+ /** @deprecated */
5105
5124
  internationalization: {
5106
5125
  /** Language for the UI element */
5107
5126
  locale: CustomizationLocale;
@@ -5530,6 +5549,15 @@ export interface AIToolCallCreateAgentTask {
5530
5549
  title: string;
5531
5550
  };
5532
5551
  }
5552
+ export interface AIToolCallComment {
5553
+ tool: 'comment';
5554
+ /** The ID of the space being commented. */
5555
+ spaceId: string;
5556
+ /** The page being commented. */
5557
+ page?: ChangedRevisionPage;
5558
+ /** The ID of the comment being posted. */
5559
+ commentId: string;
5560
+ }
5533
5561
  /** Tool called from an MCP server */
5534
5562
  export interface AIToolCallMCP {
5535
5563
  tool: 'mcp';
@@ -5546,7 +5574,7 @@ export interface AIToolCallOther {
5546
5574
  /** Summary of a generic tool call. */
5547
5575
  summary: AIToolCallOtherSummary;
5548
5576
  }
5549
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallMCP | AIToolCallOther;
5577
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallComment | AIToolCallMCP | AIToolCallOther;
5550
5578
  /** Message emitted by the server to indicate that the AI has called a tool. */
5551
5579
  export interface AIStreamResponseToolCall {
5552
5580
  type: 'response_tool_call';
@@ -5617,10 +5645,20 @@ export interface SiteInsightsEventSession {
5617
5645
  */
5618
5646
  visitorAuthClaims?: PlainObject;
5619
5647
  }
5648
+ /** Context in which the event was recorded. */
5649
+ export declare enum SiteInsightsDisplayContext {
5650
+ Site = "site",
5651
+ Embed = "embed"
5652
+ }
5620
5653
  /** Location of the event. */
5621
5654
  export interface SiteInsightsEventLocation {
5622
5655
  /** URL of the location. */
5623
5656
  url: URL;
5657
+ /**
5658
+ * Whether the event was tracked on the site or an embed widget.
5659
+ * @default "site"
5660
+ */
5661
+ displayContext?: SiteInsightsDisplayContext;
5624
5662
  /** ID of the concerned site section. */
5625
5663
  siteSection: string | null;
5626
5664
  /** ID of the concerned site space. */
@@ -5691,6 +5729,10 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
5691
5729
  /** Question being asked. */
5692
5730
  query: string;
5693
5731
  };
5732
+ /** Event when a user views the ask UI. */
5733
+ export type SiteInsightsEventAskView = SiteInsightsEventBase & {
5734
+ type: 'ask_view';
5735
+ };
5694
5736
  export type SiteInsightsEventAskRateResponse = SiteInsightsEventBase & {
5695
5737
  type: 'ask_rate_response';
5696
5738
  /** Question asked. */
@@ -5750,7 +5792,7 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
5750
5792
  type: 'ad_display';
5751
5793
  ad: SiteInsightsAd;
5752
5794
  };
5753
- export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5795
+ export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5754
5796
  export interface SiteInsightsQueryDateTimeColumn {
5755
5797
  column: 'datetime';
5756
5798
  interval?: 'hour' | 'day' | 'week' | 'month';
@@ -5771,6 +5813,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
5771
5813
  column: 'siteSpace';
5772
5814
  } | {
5773
5815
  column: 'siteShareKey';
5816
+ } | {
5817
+ column: 'displayContext';
5774
5818
  } | {
5775
5819
  column: 'page';
5776
5820
  } | {
@@ -5850,6 +5894,7 @@ export declare enum SiteInsightsEventType {
5850
5894
  PagePostFeedback = "page_post_feedback",
5851
5895
  PagePostFeedbackComment = "page_post_feedback_comment",
5852
5896
  AskQuestion = "ask_question",
5897
+ AskView = "ask_view",
5853
5898
  AskRateResponse = "ask_rate_response",
5854
5899
  LinkClick = "link_click",
5855
5900
  ApiClientOpen = "api_client_open",
@@ -5946,6 +5991,9 @@ export type SiteInsightsQueryEventsValues = {
5946
5991
  } | {
5947
5992
  column: 'siteShareKey';
5948
5993
  values: (string | null)[];
5994
+ } | {
5995
+ column: 'displayContext';
5996
+ values: SiteInsightsDisplayContext[];
5949
5997
  } | {
5950
5998
  column: 'page';
5951
5999
  values: (null | {
@@ -6882,6 +6930,11 @@ export interface OrganizationCustomFontsChannel {
6882
6930
  channel: 'organization-fonts';
6883
6931
  organization: string;
6884
6932
  }
6933
+ /** Subscription channel for all change requests in an organization. */
6934
+ export interface OrganizationChangeRequestsChannel {
6935
+ channel: 'organization-change-requests';
6936
+ organization: string;
6937
+ }
6885
6938
  export interface SpaceCommentsChannel {
6886
6939
  channel: 'space-comments';
6887
6940
  space: string;
@@ -7045,7 +7098,7 @@ export interface AgentTasksChannel {
7045
7098
  organization: string;
7046
7099
  }
7047
7100
  /** Channel to subscribe to for realtime updates. */
7048
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel;
7101
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel;
7049
7102
  export interface TranslationRunChannelData {
7050
7103
  channel: 'translation-run';
7051
7104
  data: {
@@ -8096,6 +8149,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8096
8149
  updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
8097
8150
  /** Subject of the change request */
8098
8151
  subject?: ChangeRequestSubject;
8152
+ description?: JSONDocument;
8099
8153
  status?: "draft" | "open" | "archived";
8100
8154
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
8101
8155
  /**
@@ -8205,6 +8259,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8205
8259
  users: string[];
8206
8260
  /** Optionally, update the subject of the change request when requesting reviewers. */
8207
8261
  subject?: string;
8262
+ /** Optionally, update the description of the change request when requesting reviewers. */
8263
+ description?: JSONDocument;
8208
8264
  }, params?: RequestParams) => Promise<HttpResponse<{
8209
8265
  /** The user requests that were sent. */
8210
8266
  users?: ChangeRequestRequestedReviewer[];
@@ -10537,6 +10593,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10537
10593
  * @secure
10538
10594
  */
10539
10595
  deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10596
+ /**
10597
+ * @description Join an organization if the user's verified email domain matches one of the organization's allowed email domains. This endpoint allows existing users to join organizations they're eligible for based on their email domain.
10598
+ *
10599
+ * @tags organizations
10600
+ * @name JoinOrganization
10601
+ * @summary Join an organization
10602
+ * @request POST:/orgs/{organizationId}/join
10603
+ * @secure
10604
+ */
10605
+ joinOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, {
10606
+ error: {
10607
+ /** @format int32 */
10608
+ code: 400;
10609
+ message: string;
10610
+ };
10611
+ } | {
10612
+ error: {
10613
+ /** @format int32 */
10614
+ code: 404;
10615
+ message: string;
10616
+ };
10617
+ }>>;
10540
10618
  /**
10541
10619
  * No description
10542
10620
  *
@@ -10560,6 +10638,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10560
10638
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10561
10639
  items: SearchSpaceResult[];
10562
10640
  }, any>>;
10641
+ /**
10642
+ * No description
10643
+ *
10644
+ * @tags change-requests
10645
+ * @name ListChangeRequestsForOrganization
10646
+ * @summary List all change requests in an organization
10647
+ * @request GET:/orgs/{organizationId}/change-requests
10648
+ * @secure
10649
+ */
10650
+ listChangeRequestsForOrganization: (organizationId: string, query?: {
10651
+ /** Identifier of the page results to fetch. */
10652
+ page?: string;
10653
+ /**
10654
+ * The number of results per page
10655
+ * @min 0
10656
+ * @max 1000
10657
+ */
10658
+ limit?: number;
10659
+ /**
10660
+ * If defined, only change requests matching this status will be returned.
10661
+ * @default "open"
10662
+ */
10663
+ status?: ChangeRequestStatus;
10664
+ /** If defined, only change requests with contributions from this user will be returned. */
10665
+ contributor?: string;
10666
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10667
+ items: ChangeRequest[];
10668
+ }, any>>;
10563
10669
  /**
10564
10670
  * No description
10565
10671
  *
@@ -12372,6 +12478,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12372
12478
  /** The style of background to use. Set to null to reset the override. */
12373
12479
  background?: CustomizationBackground | null;
12374
12480
  };
12481
+ /** @deprecated */
12375
12482
  internationalization?: {
12376
12483
  /** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
12377
12484
  locale: CustomizationLocale | null;
package/dist/index.cjs CHANGED
@@ -190,6 +190,7 @@ __export(src_exports, {
190
190
  BillingProduct: () => BillingProduct,
191
191
  BillingSwitchAction: () => BillingSwitchAction,
192
192
  BillingTrialStatus: () => BillingTrialStatus,
193
+ CardsImageObjectFit: () => CardsImageObjectFit,
193
194
  ChangeRequestReviewStatus: () => ChangeRequestReviewStatus,
194
195
  ChangeRequestStatus: () => ChangeRequestStatus,
195
196
  CloudflareHostnameStatus: () => CloudflareHostnameStatus,
@@ -257,6 +258,7 @@ __export(src_exports, {
257
258
  SiteExternalLinksTarget: () => SiteExternalLinksTarget,
258
259
  SiteFeatureKey: () => SiteFeatureKey,
259
260
  SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
261
+ SiteInsightsDisplayContext: () => SiteInsightsDisplayContext,
260
262
  SiteInsightsEventType: () => SiteInsightsEventType,
261
263
  SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
262
264
  SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
@@ -280,7 +282,7 @@ module.exports = __toCommonJS(src_exports);
280
282
 
281
283
  // package.json
282
284
  var name = "@gitbook/api";
283
- var version = "0.137.0";
285
+ var version = "0.139.0";
284
286
 
285
287
  // src/client.ts
286
288
  var import_event_iterator = __toESM(require_node(), 1);
@@ -456,6 +458,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
456
458
  TextAlignment2["End"] = "end";
457
459
  return TextAlignment2;
458
460
  })(TextAlignment || {});
461
+ var CardsImageObjectFit = /* @__PURE__ */ ((CardsImageObjectFit2) => {
462
+ CardsImageObjectFit2["Contain"] = "contain";
463
+ CardsImageObjectFit2["Fill"] = "fill";
464
+ CardsImageObjectFit2["Cover"] = "cover";
465
+ return CardsImageObjectFit2;
466
+ })(CardsImageObjectFit || {});
459
467
  var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
460
468
  VerticalAlignment2["Top"] = "top";
461
469
  VerticalAlignment2["Middle"] = "middle";
@@ -908,6 +916,11 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
908
916
  AIModel2["ReasoningHigh"] = "reasoning-high";
909
917
  return AIModel2;
910
918
  })(AIModel || {});
919
+ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2) => {
920
+ SiteInsightsDisplayContext2["Site"] = "site";
921
+ SiteInsightsDisplayContext2["Embed"] = "embed";
922
+ return SiteInsightsDisplayContext2;
923
+ })(SiteInsightsDisplayContext || {});
911
924
  var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
912
925
  PageFeedbackRating2["Bad"] = "bad";
913
926
  PageFeedbackRating2["Ok"] = "ok";
@@ -941,6 +954,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
941
954
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
942
955
  SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
943
956
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
957
+ SiteInsightsEventType2["AskView"] = "ask_view";
944
958
  SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
945
959
  SiteInsightsEventType2["LinkClick"] = "link_click";
946
960
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
@@ -2714,6 +2728,12 @@ var Api = class extends HttpClient {
2714
2728
  secure: true,
2715
2729
  ...params
2716
2730
  }),
2731
+ joinOrganization: (organizationId, params = {}) => this.request({
2732
+ path: `/orgs/${organizationId}/join`,
2733
+ method: "POST",
2734
+ secure: true,
2735
+ ...params
2736
+ }),
2717
2737
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2718
2738
  path: `/orgs/${organizationId}/search`,
2719
2739
  method: "GET",
@@ -2722,6 +2742,14 @@ var Api = class extends HttpClient {
2722
2742
  format: "json",
2723
2743
  ...params
2724
2744
  }),
2745
+ listChangeRequestsForOrganization: (organizationId, query, params = {}) => this.request({
2746
+ path: `/orgs/${organizationId}/change-requests`,
2747
+ method: "GET",
2748
+ query,
2749
+ secure: true,
2750
+ format: "json",
2751
+ ...params
2752
+ }),
2725
2753
  listSpacesInOrganizationById: (organizationId, query, params = {}) => this.request({
2726
2754
  path: `/orgs/${organizationId}/spaces`,
2727
2755
  method: "GET",
@@ -3830,6 +3858,7 @@ var GitBookAPI = class extends Api {
3830
3858
  BillingProduct,
3831
3859
  BillingSwitchAction,
3832
3860
  BillingTrialStatus,
3861
+ CardsImageObjectFit,
3833
3862
  ChangeRequestReviewStatus,
3834
3863
  ChangeRequestStatus,
3835
3864
  CloudflareHostnameStatus,
@@ -3897,6 +3926,7 @@ var GitBookAPI = class extends Api {
3897
3926
  SiteExternalLinksTarget,
3898
3927
  SiteFeatureKey,
3899
3928
  SiteInsightsAdPlacement,
3929
+ SiteInsightsDisplayContext,
3900
3930
  SiteInsightsEventType,
3901
3931
  SiteInsightsLinkPosition,
3902
3932
  SiteInsightsQueryOperator,
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.137.0";
175
+ var version = "0.139.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -348,6 +348,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
348
348
  TextAlignment2["End"] = "end";
349
349
  return TextAlignment2;
350
350
  })(TextAlignment || {});
351
+ var CardsImageObjectFit = /* @__PURE__ */ ((CardsImageObjectFit2) => {
352
+ CardsImageObjectFit2["Contain"] = "contain";
353
+ CardsImageObjectFit2["Fill"] = "fill";
354
+ CardsImageObjectFit2["Cover"] = "cover";
355
+ return CardsImageObjectFit2;
356
+ })(CardsImageObjectFit || {});
351
357
  var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
352
358
  VerticalAlignment2["Top"] = "top";
353
359
  VerticalAlignment2["Middle"] = "middle";
@@ -800,6 +806,11 @@ var AIModel = /* @__PURE__ */ ((AIModel2) => {
800
806
  AIModel2["ReasoningHigh"] = "reasoning-high";
801
807
  return AIModel2;
802
808
  })(AIModel || {});
809
+ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2) => {
810
+ SiteInsightsDisplayContext2["Site"] = "site";
811
+ SiteInsightsDisplayContext2["Embed"] = "embed";
812
+ return SiteInsightsDisplayContext2;
813
+ })(SiteInsightsDisplayContext || {});
803
814
  var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
804
815
  PageFeedbackRating2["Bad"] = "bad";
805
816
  PageFeedbackRating2["Ok"] = "ok";
@@ -833,6 +844,7 @@ var SiteInsightsEventType = /* @__PURE__ */ ((SiteInsightsEventType2) => {
833
844
  SiteInsightsEventType2["PagePostFeedback"] = "page_post_feedback";
834
845
  SiteInsightsEventType2["PagePostFeedbackComment"] = "page_post_feedback_comment";
835
846
  SiteInsightsEventType2["AskQuestion"] = "ask_question";
847
+ SiteInsightsEventType2["AskView"] = "ask_view";
836
848
  SiteInsightsEventType2["AskRateResponse"] = "ask_rate_response";
837
849
  SiteInsightsEventType2["LinkClick"] = "link_click";
838
850
  SiteInsightsEventType2["ApiClientOpen"] = "api_client_open";
@@ -2606,6 +2618,12 @@ var Api = class extends HttpClient {
2606
2618
  secure: true,
2607
2619
  ...params
2608
2620
  }),
2621
+ joinOrganization: (organizationId, params = {}) => this.request({
2622
+ path: `/orgs/${organizationId}/join`,
2623
+ method: "POST",
2624
+ secure: true,
2625
+ ...params
2626
+ }),
2609
2627
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2610
2628
  path: `/orgs/${organizationId}/search`,
2611
2629
  method: "GET",
@@ -2614,6 +2632,14 @@ var Api = class extends HttpClient {
2614
2632
  format: "json",
2615
2633
  ...params
2616
2634
  }),
2635
+ listChangeRequestsForOrganization: (organizationId, query, params = {}) => this.request({
2636
+ path: `/orgs/${organizationId}/change-requests`,
2637
+ method: "GET",
2638
+ query,
2639
+ secure: true,
2640
+ format: "json",
2641
+ ...params
2642
+ }),
2617
2643
  listSpacesInOrganizationById: (organizationId, query, params = {}) => this.request({
2618
2644
  path: `/orgs/${organizationId}/spaces`,
2619
2645
  method: "GET",
@@ -3721,6 +3747,7 @@ export {
3721
3747
  BillingProduct,
3722
3748
  BillingSwitchAction,
3723
3749
  BillingTrialStatus,
3750
+ CardsImageObjectFit,
3724
3751
  ChangeRequestReviewStatus,
3725
3752
  ChangeRequestStatus,
3726
3753
  CloudflareHostnameStatus,
@@ -3788,6 +3815,7 @@ export {
3788
3815
  SiteExternalLinksTarget,
3789
3816
  SiteFeatureKey,
3790
3817
  SiteInsightsAdPlacement,
3818
+ SiteInsightsDisplayContext,
3791
3819
  SiteInsightsEventType,
3792
3820
  SiteInsightsLinkPosition,
3793
3821
  SiteInsightsQueryOperator,
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.137.0",
7
+ "version": "0.139.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -2521,6 +2521,9 @@
2521
2521
  "subject": {
2522
2522
  "$ref": "#/components/schemas/ChangeRequestSubject"
2523
2523
  },
2524
+ "description": {
2525
+ "$ref": "#/components/schemas/JSONDocument"
2526
+ },
2524
2527
  "status": {
2525
2528
  "type": "string",
2526
2529
  "enum": [
@@ -2892,6 +2895,10 @@
2892
2895
  "subject": {
2893
2896
  "type": "string",
2894
2897
  "description": "Optionally, update the subject of the change request when requesting reviewers."
2898
+ },
2899
+ "description": {
2900
+ "$ref": "#/components/schemas/JSONDocument",
2901
+ "description": "Optionally, update the description of the change request when requesting reviewers."
2895
2902
  }
2896
2903
  },
2897
2904
  "required": [
@@ -8992,6 +8999,39 @@
8992
8999
  }
8993
9000
  }
8994
9001
  },
9002
+ "/orgs/{organizationId}/join": {
9003
+ "post": {
9004
+ "operationId": "joinOrganization",
9005
+ "summary": "Join an organization",
9006
+ "description": "Join an organization if the user's verified email domain matches one of the organization's allowed email domains.\nThis endpoint allows existing users to join organizations they're eligible for based on their email domain.\n",
9007
+ "tags": [
9008
+ "organizations"
9009
+ ],
9010
+ "security": [
9011
+ {
9012
+ "user": []
9013
+ }
9014
+ ],
9015
+ "parameters": [
9016
+ {
9017
+ "$ref": "#/components/parameters/organizationId"
9018
+ }
9019
+ ],
9020
+ "responses": {
9021
+ "204": {
9022
+ "description": "Successfully joined the organization"
9023
+ },
9024
+ "400": {
9025
+ "description": "User's email domain is not valid",
9026
+ "$ref": "#/components/responses/BadRequestError"
9027
+ },
9028
+ "404": {
9029
+ "description": "Organization not found",
9030
+ "$ref": "#/components/responses/NotFoundError"
9031
+ }
9032
+ }
9033
+ }
9034
+ },
8995
9035
  "/orgs/{organizationId}/search": {
8996
9036
  "get": {
8997
9037
  "operationId": "searchOrganizationContent",
@@ -9056,6 +9096,80 @@
9056
9096
  }
9057
9097
  }
9058
9098
  },
9099
+ "/orgs/{organizationId}/change-requests": {
9100
+ "get": {
9101
+ "operationId": "listChangeRequestsForOrganization",
9102
+ "summary": "List all change requests in an organization",
9103
+ "tags": [
9104
+ "change-requests"
9105
+ ],
9106
+ "security": [
9107
+ {
9108
+ "user": []
9109
+ }
9110
+ ],
9111
+ "parameters": [
9112
+ {
9113
+ "$ref": "#/components/parameters/listPage"
9114
+ },
9115
+ {
9116
+ "$ref": "#/components/parameters/listLimit"
9117
+ },
9118
+ {
9119
+ "$ref": "#/components/parameters/organizationId"
9120
+ },
9121
+ {
9122
+ "name": "status",
9123
+ "in": "query",
9124
+ "required": false,
9125
+ "schema": {
9126
+ "$ref": "#/components/schemas/ChangeRequestStatus",
9127
+ "default": "open"
9128
+ },
9129
+ "description": "If defined, only change requests matching this status will be returned."
9130
+ },
9131
+ {
9132
+ "name": "contributor",
9133
+ "in": "query",
9134
+ "required": false,
9135
+ "schema": {
9136
+ "type": "string"
9137
+ },
9138
+ "description": "If defined, only change requests with contributions from this user will be returned."
9139
+ }
9140
+ ],
9141
+ "responses": {
9142
+ "200": {
9143
+ "description": "List of the organization's change requests",
9144
+ "content": {
9145
+ "application/json": {
9146
+ "schema": {
9147
+ "allOf": [
9148
+ {
9149
+ "$ref": "#/components/schemas/List"
9150
+ },
9151
+ {
9152
+ "type": "object",
9153
+ "required": [
9154
+ "items"
9155
+ ],
9156
+ "properties": {
9157
+ "items": {
9158
+ "type": "array",
9159
+ "items": {
9160
+ "$ref": "#/components/schemas/ChangeRequest"
9161
+ }
9162
+ }
9163
+ }
9164
+ }
9165
+ ]
9166
+ }
9167
+ }
9168
+ }
9169
+ }
9170
+ }
9171
+ }
9172
+ },
9059
9173
  "/orgs/{organizationId}/spaces": {
9060
9174
  "get": {
9061
9175
  "operationId": "listSpacesInOrganizationById",
@@ -14409,6 +14523,7 @@
14409
14523
  },
14410
14524
  "internationalization": {
14411
14525
  "type": "object",
14526
+ "deprecated": true,
14412
14527
  "properties": {
14413
14528
  "locale": {
14414
14529
  "description": "The locale to use for the non-custom elements of the UI. Set to null to reset the override.",
@@ -19570,6 +19685,47 @@
19570
19685
  "cardSize"
19571
19686
  ]
19572
19687
  },
19688
+ "CardsImageObjectFit": {
19689
+ "type": "string",
19690
+ "description": "Object fit for image display in card views",
19691
+ "enum": [
19692
+ "contain",
19693
+ "fill",
19694
+ "cover"
19695
+ ]
19696
+ },
19697
+ "DocumentTableImageRecord": {
19698
+ "description": "A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.",
19699
+ "oneOf": [
19700
+ {
19701
+ "$ref": "#/components/schemas/ContentRefFile"
19702
+ },
19703
+ {
19704
+ "$ref": "#/components/schemas/ContentRefURL"
19705
+ },
19706
+ {
19707
+ "type": "object",
19708
+ "properties": {
19709
+ "ref": {
19710
+ "oneOf": [
19711
+ {
19712
+ "$ref": "#/components/schemas/ContentRefFile"
19713
+ },
19714
+ {
19715
+ "$ref": "#/components/schemas/ContentRefURL"
19716
+ }
19717
+ ]
19718
+ },
19719
+ "objectFit": {
19720
+ "$ref": "#/components/schemas/CardsImageObjectFit"
19721
+ }
19722
+ },
19723
+ "required": [
19724
+ "ref"
19725
+ ]
19726
+ }
19727
+ ]
19728
+ },
19573
19729
  "DocumentTableRecord": {
19574
19730
  "type": "object",
19575
19731
  "properties": {
@@ -19598,6 +19754,9 @@
19598
19754
  },
19599
19755
  {
19600
19756
  "$ref": "#/components/schemas/ContentRef"
19757
+ },
19758
+ {
19759
+ "$ref": "#/components/schemas/DocumentTableImageRecord"
19601
19760
  }
19602
19761
  ]
19603
19762
  }
@@ -23280,6 +23439,9 @@
23280
23439
  "subject": {
23281
23440
  "$ref": "#/components/schemas/ChangeRequestSubject"
23282
23441
  },
23442
+ "description": {
23443
+ "$ref": "#/components/schemas/JSONDocument"
23444
+ },
23283
23445
  "createdBy": {
23284
23446
  "$ref": "#/components/schemas/User"
23285
23447
  },
@@ -23289,6 +23451,10 @@
23289
23451
  "updatedAt": {
23290
23452
  "$ref": "#/components/schemas/Timestamp"
23291
23453
  },
23454
+ "space": {
23455
+ "type": "string",
23456
+ "description": "ID of the space in which the change request was created."
23457
+ },
23292
23458
  "revision": {
23293
23459
  "type": "string",
23294
23460
  "description": "ID of the active revision in the change request."
@@ -23343,6 +23509,7 @@
23343
23509
  "createdBy",
23344
23510
  "createdAt",
23345
23511
  "updatedAt",
23512
+ "space",
23346
23513
  "revision",
23347
23514
  "revisionInitial",
23348
23515
  "comments",
@@ -32969,6 +33136,7 @@
32969
33136
  "CustomizationLocale": {
32970
33137
  "type": "string",
32971
33138
  "description": "Language for the UI element",
33139
+ "deprecated": true,
32972
33140
  "enum": [
32973
33141
  "en",
32974
33142
  "fr",
@@ -33229,6 +33397,7 @@
33229
33397
  },
33230
33398
  "internationalization": {
33231
33399
  "type": "object",
33400
+ "deprecated": true,
33232
33401
  "properties": {
33233
33402
  "locale": {
33234
33403
  "$ref": "#/components/schemas/CustomizationLocale"
@@ -34119,8 +34288,7 @@
34119
34288
  },
34120
34289
  "required": [
34121
34290
  "name",
34122
- "description",
34123
- "confirmation"
34291
+ "description"
34124
34292
  ]
34125
34293
  },
34126
34294
  "AIToolCallOtherSummary": {
@@ -34592,6 +34760,34 @@
34592
34760
  "task"
34593
34761
  ]
34594
34762
  },
34763
+ "AIToolCallComment": {
34764
+ "type": "object",
34765
+ "properties": {
34766
+ "tool": {
34767
+ "type": "string",
34768
+ "enum": [
34769
+ "comment"
34770
+ ]
34771
+ },
34772
+ "spaceId": {
34773
+ "type": "string",
34774
+ "description": "The ID of the space being commented."
34775
+ },
34776
+ "page": {
34777
+ "description": "The page being commented.",
34778
+ "$ref": "#/components/schemas/ChangedRevisionPage"
34779
+ },
34780
+ "commentId": {
34781
+ "type": "string",
34782
+ "description": "The ID of the comment being posted."
34783
+ }
34784
+ },
34785
+ "required": [
34786
+ "tool",
34787
+ "spaceId",
34788
+ "commentId"
34789
+ ]
34790
+ },
34595
34791
  "AIToolCallMCP": {
34596
34792
  "type": "object",
34597
34793
  "description": "Tool called from an MCP server",
@@ -34675,6 +34871,9 @@
34675
34871
  {
34676
34872
  "$ref": "#/components/schemas/AIToolCallCreateAgentTask"
34677
34873
  },
34874
+ {
34875
+ "$ref": "#/components/schemas/AIToolCallComment"
34876
+ },
34678
34877
  {
34679
34878
  "$ref": "#/components/schemas/AIToolCallMCP"
34680
34879
  },
@@ -34879,6 +35078,14 @@
34879
35078
  "referrer"
34880
35079
  ]
34881
35080
  },
35081
+ "SiteInsightsDisplayContext": {
35082
+ "type": "string",
35083
+ "description": "Context in which the event was recorded.",
35084
+ "enum": [
35085
+ "site",
35086
+ "embed"
35087
+ ]
35088
+ },
34882
35089
  "SiteInsightsEventLocation": {
34883
35090
  "type": "object",
34884
35091
  "description": "Location of the event.",
@@ -34887,6 +35094,11 @@
34887
35094
  "description": "URL of the location.",
34888
35095
  "$ref": "#/components/schemas/URL"
34889
35096
  },
35097
+ "displayContext": {
35098
+ "description": "Whether the event was tracked on the site or an embed widget.",
35099
+ "$ref": "#/components/schemas/SiteInsightsDisplayContext",
35100
+ "default": "site"
35101
+ },
34890
35102
  "siteSection": {
34891
35103
  "type": "string",
34892
35104
  "description": "ID of the concerned site section.",
@@ -35165,6 +35377,28 @@
35165
35377
  }
35166
35378
  ]
35167
35379
  },
35380
+ "SiteInsightsEventAskView": {
35381
+ "description": "Event when a user views the ask UI.",
35382
+ "allOf": [
35383
+ {
35384
+ "$ref": "#/components/schemas/SiteInsightsEventBase"
35385
+ },
35386
+ {
35387
+ "type": "object",
35388
+ "properties": {
35389
+ "type": {
35390
+ "type": "string",
35391
+ "enum": [
35392
+ "ask_view"
35393
+ ]
35394
+ }
35395
+ },
35396
+ "required": [
35397
+ "type"
35398
+ ]
35399
+ }
35400
+ ]
35401
+ },
35168
35402
  "SiteInsightsEventAskRateResponse": {
35169
35403
  "allOf": [
35170
35404
  {
@@ -35433,6 +35667,9 @@
35433
35667
  {
35434
35668
  "$ref": "#/components/schemas/SiteInsightsEventAskQuestion"
35435
35669
  },
35670
+ {
35671
+ "$ref": "#/components/schemas/SiteInsightsEventAskView"
35672
+ },
35436
35673
  {
35437
35674
  "$ref": "#/components/schemas/SiteInsightsEventAskRateResponse"
35438
35675
  },
@@ -35596,6 +35833,20 @@
35596
35833
  }
35597
35834
  }
35598
35835
  },
35836
+ {
35837
+ "type": "object",
35838
+ "required": [
35839
+ "column"
35840
+ ],
35841
+ "properties": {
35842
+ "column": {
35843
+ "type": "string",
35844
+ "enum": [
35845
+ "displayContext"
35846
+ ]
35847
+ }
35848
+ }
35849
+ },
35599
35850
  {
35600
35851
  "type": "object",
35601
35852
  "required": [
@@ -36065,6 +36316,7 @@
36065
36316
  "page_post_feedback",
36066
36317
  "page_post_feedback_comment",
36067
36318
  "ask_question",
36319
+ "ask_view",
36068
36320
  "ask_rate_response",
36069
36321
  "link_click",
36070
36322
  "api_client_open",
@@ -36527,6 +36779,27 @@
36527
36779
  }
36528
36780
  }
36529
36781
  },
36782
+ {
36783
+ "type": "object",
36784
+ "required": [
36785
+ "column",
36786
+ "values"
36787
+ ],
36788
+ "properties": {
36789
+ "column": {
36790
+ "type": "string",
36791
+ "enum": [
36792
+ "displayContext"
36793
+ ]
36794
+ },
36795
+ "values": {
36796
+ "type": "array",
36797
+ "items": {
36798
+ "$ref": "#/components/schemas/SiteInsightsDisplayContext"
36799
+ }
36800
+ }
36801
+ }
36802
+ },
36530
36803
  {
36531
36804
  "type": "object",
36532
36805
  "required": [
@@ -39710,6 +39983,25 @@
39710
39983
  "organization"
39711
39984
  ]
39712
39985
  },
39986
+ "OrganizationChangeRequestsChannel": {
39987
+ "type": "object",
39988
+ "description": "Subscription channel for all change requests in an organization.",
39989
+ "properties": {
39990
+ "channel": {
39991
+ "type": "string",
39992
+ "enum": [
39993
+ "organization-change-requests"
39994
+ ]
39995
+ },
39996
+ "organization": {
39997
+ "type": "string"
39998
+ }
39999
+ },
40000
+ "required": [
40001
+ "channel",
40002
+ "organization"
40003
+ ]
40004
+ },
39713
40005
  "SpaceCommentsChannel": {
39714
40006
  "type": "object",
39715
40007
  "properties": {
@@ -40510,6 +40802,9 @@
40510
40802
  {
40511
40803
  "$ref": "#/components/schemas/OrganizationCustomFontsChannel"
40512
40804
  },
40805
+ {
40806
+ "$ref": "#/components/schemas/OrganizationChangeRequestsChannel"
40807
+ },
40513
40808
  {
40514
40809
  "$ref": "#/components/schemas/SpaceCommentsChannel"
40515
40810
  },
package/spec/openapi.yaml CHANGED
@@ -1648,6 +1648,8 @@ paths:
1648
1648
  properties:
1649
1649
  subject:
1650
1650
  $ref: "#/components/schemas/ChangeRequestSubject"
1651
+ description:
1652
+ $ref: "#/components/schemas/JSONDocument"
1651
1653
  status:
1652
1654
  type: string
1653
1655
  enum:
@@ -1858,6 +1860,9 @@ paths:
1858
1860
  subject:
1859
1861
  type: string
1860
1862
  description: Optionally, update the subject of the change request when requesting reviewers.
1863
+ description:
1864
+ $ref: "#/components/schemas/JSONDocument"
1865
+ description: Optionally, update the description of the change request when requesting reviewers.
1861
1866
  required:
1862
1867
  - users
1863
1868
  "/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers/{userId}":
@@ -5137,6 +5142,28 @@ paths:
5137
5142
  description: Organization invite did not exist
5138
5143
  "205":
5139
5144
  description: The organization invite has been deleted
5145
+ "/orgs/{organizationId}/join":
5146
+ post:
5147
+ operationId: joinOrganization
5148
+ summary: Join an organization
5149
+ description: |
5150
+ Join an organization if the user's verified email domain matches one of the organization's allowed email domains.
5151
+ This endpoint allows existing users to join organizations they're eligible for based on their email domain.
5152
+ tags:
5153
+ - organizations
5154
+ security:
5155
+ - user: []
5156
+ parameters:
5157
+ - $ref: "#/components/parameters/organizationId"
5158
+ responses:
5159
+ "204":
5160
+ description: Successfully joined the organization
5161
+ "400":
5162
+ description: User's email domain is not valid
5163
+ $ref: "#/components/responses/BadRequestError"
5164
+ "404":
5165
+ description: Organization not found
5166
+ $ref: "#/components/responses/NotFoundError"
5140
5167
  "/orgs/{organizationId}/search":
5141
5168
  get:
5142
5169
  operationId: searchOrganizationContent
@@ -5171,6 +5198,47 @@ paths:
5171
5198
  type: array
5172
5199
  items:
5173
5200
  $ref: "#/components/schemas/SearchSpaceResult"
5201
+ "/orgs/{organizationId}/change-requests":
5202
+ get:
5203
+ operationId: listChangeRequestsForOrganization
5204
+ summary: List all change requests in an organization
5205
+ tags:
5206
+ - change-requests
5207
+ security:
5208
+ - user: []
5209
+ parameters:
5210
+ - $ref: "#/components/parameters/listPage"
5211
+ - $ref: "#/components/parameters/listLimit"
5212
+ - $ref: "#/components/parameters/organizationId"
5213
+ - name: status
5214
+ in: query
5215
+ required: false
5216
+ schema:
5217
+ $ref: "#/components/schemas/ChangeRequestStatus"
5218
+ default: open
5219
+ description: If defined, only change requests matching this status will be returned.
5220
+ - name: contributor
5221
+ in: query
5222
+ required: false
5223
+ schema:
5224
+ type: string
5225
+ description: If defined, only change requests with contributions from this user will be returned.
5226
+ responses:
5227
+ "200":
5228
+ description: List of the organization's change requests
5229
+ content:
5230
+ application/json:
5231
+ schema:
5232
+ allOf:
5233
+ - $ref: "#/components/schemas/List"
5234
+ - type: object
5235
+ required:
5236
+ - items
5237
+ properties:
5238
+ items:
5239
+ type: array
5240
+ items:
5241
+ $ref: "#/components/schemas/ChangeRequest"
5174
5242
  "/orgs/{organizationId}/spaces":
5175
5243
  get:
5176
5244
  operationId: listSpacesInOrganizationById
@@ -8138,6 +8206,7 @@ paths:
8138
8206
  - null
8139
8207
  internationalization:
8140
8208
  type: object
8209
+ deprecated: true
8141
8210
  properties:
8142
8211
  locale:
8143
8212
  description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
@@ -11495,6 +11564,28 @@ components:
11495
11564
  - type
11496
11565
  - columns
11497
11566
  - cardSize
11567
+ CardsImageObjectFit:
11568
+ type: string
11569
+ description: Object fit for image display in card views
11570
+ enum:
11571
+ - contain
11572
+ - fill
11573
+ - cover
11574
+ DocumentTableImageRecord:
11575
+ description: A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
11576
+ oneOf:
11577
+ - $ref: "#/components/schemas/ContentRefFile"
11578
+ - $ref: "#/components/schemas/ContentRefURL"
11579
+ - type: object
11580
+ properties:
11581
+ ref:
11582
+ oneOf:
11583
+ - $ref: "#/components/schemas/ContentRefFile"
11584
+ - $ref: "#/components/schemas/ContentRefURL"
11585
+ objectFit:
11586
+ $ref: "#/components/schemas/CardsImageObjectFit"
11587
+ required:
11588
+ - ref
11498
11589
  DocumentTableRecord:
11499
11590
  type: object
11500
11591
  properties:
@@ -11512,6 +11603,7 @@ components:
11512
11603
  items:
11513
11604
  type: string
11514
11605
  - $ref: "#/components/schemas/ContentRef"
11606
+ - $ref: "#/components/schemas/DocumentTableImageRecord"
11515
11607
  required:
11516
11608
  - orderIndex
11517
11609
  - values
@@ -13753,12 +13845,17 @@ components:
13753
13845
  $ref: "#/components/schemas/ChangeRequestStatus"
13754
13846
  subject:
13755
13847
  $ref: "#/components/schemas/ChangeRequestSubject"
13848
+ description:
13849
+ $ref: "#/components/schemas/JSONDocument"
13756
13850
  createdBy:
13757
13851
  $ref: "#/components/schemas/User"
13758
13852
  createdAt:
13759
13853
  $ref: "#/components/schemas/Timestamp"
13760
13854
  updatedAt:
13761
13855
  $ref: "#/components/schemas/Timestamp"
13856
+ space:
13857
+ type: string
13858
+ description: ID of the space in which the change request was created.
13762
13859
  revision:
13763
13860
  type: string
13764
13861
  description: ID of the active revision in the change request.
@@ -13801,6 +13898,7 @@ components:
13801
13898
  - createdBy
13802
13899
  - createdAt
13803
13900
  - updatedAt
13901
+ - space
13804
13902
  - revision
13805
13903
  - revisionInitial
13806
13904
  - comments
@@ -20322,6 +20420,7 @@ components:
20322
20420
  CustomizationLocale:
20323
20421
  type: string
20324
20422
  description: Language for the UI element
20423
+ deprecated: true
20325
20424
  enum:
20326
20425
  - en
20327
20426
  - fr
@@ -20514,6 +20613,7 @@ components:
20514
20613
  - search
20515
20614
  internationalization:
20516
20615
  type: object
20616
+ deprecated: true
20517
20617
  properties:
20518
20618
  locale:
20519
20619
  $ref: "#/components/schemas/CustomizationLocale"
@@ -21112,7 +21212,6 @@ components:
21112
21212
  required:
21113
21213
  - name
21114
21214
  - description
21115
- - confirmation
21116
21215
  AIToolCallOtherSummary:
21117
21216
  type: object
21118
21217
  description: Summary of a generic tool call.
@@ -21459,6 +21558,26 @@ components:
21459
21558
  - spaceId
21460
21559
  - action
21461
21560
  - task
21561
+ AIToolCallComment:
21562
+ type: object
21563
+ properties:
21564
+ tool:
21565
+ type: string
21566
+ enum:
21567
+ - comment
21568
+ spaceId:
21569
+ type: string
21570
+ description: The ID of the space being commented.
21571
+ page:
21572
+ description: The page being commented.
21573
+ $ref: "#/components/schemas/ChangedRevisionPage"
21574
+ commentId:
21575
+ type: string
21576
+ description: The ID of the comment being posted.
21577
+ required:
21578
+ - tool
21579
+ - spaceId
21580
+ - commentId
21462
21581
  AIToolCallMCP:
21463
21582
  type: object
21464
21583
  description: Tool called from an MCP server
@@ -21506,6 +21625,7 @@ components:
21506
21625
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
21507
21626
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21508
21627
  - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
21628
+ - $ref: "#/components/schemas/AIToolCallComment"
21509
21629
  - $ref: "#/components/schemas/AIToolCallMCP"
21510
21630
  - $ref: "#/components/schemas/AIToolCallOther"
21511
21631
  AIStreamResponseToolCall:
@@ -21659,6 +21779,12 @@ components:
21659
21779
  - userAgent
21660
21780
  - language
21661
21781
  - referrer
21782
+ SiteInsightsDisplayContext:
21783
+ type: string
21784
+ description: Context in which the event was recorded.
21785
+ enum:
21786
+ - site
21787
+ - embed
21662
21788
  SiteInsightsEventLocation:
21663
21789
  type: object
21664
21790
  description: Location of the event.
@@ -21666,6 +21792,10 @@ components:
21666
21792
  url:
21667
21793
  description: URL of the location.
21668
21794
  $ref: "#/components/schemas/URL"
21795
+ displayContext:
21796
+ description: Whether the event was tracked on the site or an embed widget.
21797
+ $ref: "#/components/schemas/SiteInsightsDisplayContext"
21798
+ default: site
21669
21799
  siteSection:
21670
21800
  type: string
21671
21801
  description: ID of the concerned site section.
@@ -21840,6 +21970,18 @@ components:
21840
21970
  required:
21841
21971
  - type
21842
21972
  - query
21973
+ SiteInsightsEventAskView:
21974
+ description: Event when a user views the ask UI.
21975
+ allOf:
21976
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
21977
+ - type: object
21978
+ properties:
21979
+ type:
21980
+ type: string
21981
+ enum:
21982
+ - ask_view
21983
+ required:
21984
+ - type
21843
21985
  SiteInsightsEventAskRateResponse:
21844
21986
  allOf:
21845
21987
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -21998,6 +22140,7 @@ components:
21998
22140
  - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedback"
21999
22141
  - $ref: "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
22000
22142
  - $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
22143
+ - $ref: "#/components/schemas/SiteInsightsEventAskView"
22001
22144
  - $ref: "#/components/schemas/SiteInsightsEventAskRateResponse"
22002
22145
  - $ref: "#/components/schemas/SiteInsightsEventLinkClick"
22003
22146
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientOpen"
@@ -22088,6 +22231,14 @@ components:
22088
22231
  type: string
22089
22232
  enum:
22090
22233
  - siteShareKey
22234
+ - type: object
22235
+ required:
22236
+ - column
22237
+ properties:
22238
+ column:
22239
+ type: string
22240
+ enum:
22241
+ - displayContext
22091
22242
  - type: object
22092
22243
  required:
22093
22244
  - column
@@ -22361,6 +22512,7 @@ components:
22361
22512
  - page_post_feedback
22362
22513
  - page_post_feedback_comment
22363
22514
  - ask_question
22515
+ - ask_view
22364
22516
  - ask_rate_response
22365
22517
  - link_click
22366
22518
  - api_client_open
@@ -22661,6 +22813,19 @@ components:
22661
22813
  items:
22662
22814
  type: string
22663
22815
  nullable: true
22816
+ - type: object
22817
+ required:
22818
+ - column
22819
+ - values
22820
+ properties:
22821
+ column:
22822
+ type: string
22823
+ enum:
22824
+ - displayContext
22825
+ values:
22826
+ type: array
22827
+ items:
22828
+ $ref: "#/components/schemas/SiteInsightsDisplayContext"
22664
22829
  - type: object
22665
22830
  required:
22666
22831
  - column
@@ -24787,6 +24952,19 @@ components:
24787
24952
  required:
24788
24953
  - channel
24789
24954
  - organization
24955
+ OrganizationChangeRequestsChannel:
24956
+ type: object
24957
+ description: Subscription channel for all change requests in an organization.
24958
+ properties:
24959
+ channel:
24960
+ type: string
24961
+ enum:
24962
+ - organization-change-requests
24963
+ organization:
24964
+ type: string
24965
+ required:
24966
+ - channel
24967
+ - organization
24790
24968
  SpaceCommentsChannel:
24791
24969
  type: object
24792
24970
  properties:
@@ -25295,6 +25473,7 @@ components:
25295
25473
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25296
25474
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25297
25475
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
25476
+ - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25298
25477
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25299
25478
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
25300
25479
  - $ref: "#/components/schemas/CommentInfoChannel"