@gitbook/api 0.138.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. */
@@ -5534,6 +5549,15 @@ export interface AIToolCallCreateAgentTask {
5534
5549
  title: string;
5535
5550
  };
5536
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
+ }
5537
5561
  /** Tool called from an MCP server */
5538
5562
  export interface AIToolCallMCP {
5539
5563
  tool: 'mcp';
@@ -5550,7 +5574,7 @@ export interface AIToolCallOther {
5550
5574
  /** Summary of a generic tool call. */
5551
5575
  summary: AIToolCallOtherSummary;
5552
5576
  }
5553
- 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;
5554
5578
  /** Message emitted by the server to indicate that the AI has called a tool. */
5555
5579
  export interface AIStreamResponseToolCall {
5556
5580
  type: 'response_tool_call';
@@ -6906,6 +6930,11 @@ export interface OrganizationCustomFontsChannel {
6906
6930
  channel: 'organization-fonts';
6907
6931
  organization: string;
6908
6932
  }
6933
+ /** Subscription channel for all change requests in an organization. */
6934
+ export interface OrganizationChangeRequestsChannel {
6935
+ channel: 'organization-change-requests';
6936
+ organization: string;
6937
+ }
6909
6938
  export interface SpaceCommentsChannel {
6910
6939
  channel: 'space-comments';
6911
6940
  space: string;
@@ -7069,7 +7098,7 @@ export interface AgentTasksChannel {
7069
7098
  organization: string;
7070
7099
  }
7071
7100
  /** Channel to subscribe to for realtime updates. */
7072
- 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;
7073
7102
  export interface TranslationRunChannelData {
7074
7103
  channel: 'translation-run';
7075
7104
  data: {
@@ -8120,6 +8149,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8120
8149
  updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
8121
8150
  /** Subject of the change request */
8122
8151
  subject?: ChangeRequestSubject;
8152
+ description?: JSONDocument;
8123
8153
  status?: "draft" | "open" | "archived";
8124
8154
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
8125
8155
  /**
@@ -8229,6 +8259,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8229
8259
  users: string[];
8230
8260
  /** Optionally, update the subject of the change request when requesting reviewers. */
8231
8261
  subject?: string;
8262
+ /** Optionally, update the description of the change request when requesting reviewers. */
8263
+ description?: JSONDocument;
8232
8264
  }, params?: RequestParams) => Promise<HttpResponse<{
8233
8265
  /** The user requests that were sent. */
8234
8266
  users?: ChangeRequestRequestedReviewer[];
@@ -10561,6 +10593,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10561
10593
  * @secure
10562
10594
  */
10563
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
+ }>>;
10564
10618
  /**
10565
10619
  * No description
10566
10620
  *
@@ -10584,6 +10638,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10584
10638
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10585
10639
  items: SearchSpaceResult[];
10586
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>>;
10587
10669
  /**
10588
10670
  * No description
10589
10671
  *
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,
@@ -281,7 +282,7 @@ module.exports = __toCommonJS(src_exports);
281
282
 
282
283
  // package.json
283
284
  var name = "@gitbook/api";
284
- var version = "0.138.0";
285
+ var version = "0.139.0";
285
286
 
286
287
  // src/client.ts
287
288
  var import_event_iterator = __toESM(require_node(), 1);
@@ -457,6 +458,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
457
458
  TextAlignment2["End"] = "end";
458
459
  return TextAlignment2;
459
460
  })(TextAlignment || {});
461
+ var CardsImageObjectFit = /* @__PURE__ */ ((CardsImageObjectFit2) => {
462
+ CardsImageObjectFit2["Contain"] = "contain";
463
+ CardsImageObjectFit2["Fill"] = "fill";
464
+ CardsImageObjectFit2["Cover"] = "cover";
465
+ return CardsImageObjectFit2;
466
+ })(CardsImageObjectFit || {});
460
467
  var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
461
468
  VerticalAlignment2["Top"] = "top";
462
469
  VerticalAlignment2["Middle"] = "middle";
@@ -2721,6 +2728,12 @@ var Api = class extends HttpClient {
2721
2728
  secure: true,
2722
2729
  ...params
2723
2730
  }),
2731
+ joinOrganization: (organizationId, params = {}) => this.request({
2732
+ path: `/orgs/${organizationId}/join`,
2733
+ method: "POST",
2734
+ secure: true,
2735
+ ...params
2736
+ }),
2724
2737
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2725
2738
  path: `/orgs/${organizationId}/search`,
2726
2739
  method: "GET",
@@ -2729,6 +2742,14 @@ var Api = class extends HttpClient {
2729
2742
  format: "json",
2730
2743
  ...params
2731
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
+ }),
2732
2753
  listSpacesInOrganizationById: (organizationId, query, params = {}) => this.request({
2733
2754
  path: `/orgs/${organizationId}/spaces`,
2734
2755
  method: "GET",
@@ -3837,6 +3858,7 @@ var GitBookAPI = class extends Api {
3837
3858
  BillingProduct,
3838
3859
  BillingSwitchAction,
3839
3860
  BillingTrialStatus,
3861
+ CardsImageObjectFit,
3840
3862
  ChangeRequestReviewStatus,
3841
3863
  ChangeRequestStatus,
3842
3864
  CloudflareHostnameStatus,
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.138.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";
@@ -2612,6 +2618,12 @@ var Api = class extends HttpClient {
2612
2618
  secure: true,
2613
2619
  ...params
2614
2620
  }),
2621
+ joinOrganization: (organizationId, params = {}) => this.request({
2622
+ path: `/orgs/${organizationId}/join`,
2623
+ method: "POST",
2624
+ secure: true,
2625
+ ...params
2626
+ }),
2615
2627
  searchOrganizationContent: (organizationId, query, params = {}) => this.request({
2616
2628
  path: `/orgs/${organizationId}/search`,
2617
2629
  method: "GET",
@@ -2620,6 +2632,14 @@ var Api = class extends HttpClient {
2620
2632
  format: "json",
2621
2633
  ...params
2622
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
+ }),
2623
2643
  listSpacesInOrganizationById: (organizationId, query, params = {}) => this.request({
2624
2644
  path: `/orgs/${organizationId}/spaces`,
2625
2645
  method: "GET",
@@ -3727,6 +3747,7 @@ export {
3727
3747
  BillingProduct,
3728
3748
  BillingSwitchAction,
3729
3749
  BillingTrialStatus,
3750
+ CardsImageObjectFit,
3730
3751
  ChangeRequestReviewStatus,
3731
3752
  ChangeRequestStatus,
3732
3753
  CloudflareHostnameStatus,
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.138.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",
@@ -19571,6 +19685,47 @@
19571
19685
  "cardSize"
19572
19686
  ]
19573
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
+ },
19574
19729
  "DocumentTableRecord": {
19575
19730
  "type": "object",
19576
19731
  "properties": {
@@ -19599,6 +19754,9 @@
19599
19754
  },
19600
19755
  {
19601
19756
  "$ref": "#/components/schemas/ContentRef"
19757
+ },
19758
+ {
19759
+ "$ref": "#/components/schemas/DocumentTableImageRecord"
19602
19760
  }
19603
19761
  ]
19604
19762
  }
@@ -23281,6 +23439,9 @@
23281
23439
  "subject": {
23282
23440
  "$ref": "#/components/schemas/ChangeRequestSubject"
23283
23441
  },
23442
+ "description": {
23443
+ "$ref": "#/components/schemas/JSONDocument"
23444
+ },
23284
23445
  "createdBy": {
23285
23446
  "$ref": "#/components/schemas/User"
23286
23447
  },
@@ -23290,6 +23451,10 @@
23290
23451
  "updatedAt": {
23291
23452
  "$ref": "#/components/schemas/Timestamp"
23292
23453
  },
23454
+ "space": {
23455
+ "type": "string",
23456
+ "description": "ID of the space in which the change request was created."
23457
+ },
23293
23458
  "revision": {
23294
23459
  "type": "string",
23295
23460
  "description": "ID of the active revision in the change request."
@@ -23344,6 +23509,7 @@
23344
23509
  "createdBy",
23345
23510
  "createdAt",
23346
23511
  "updatedAt",
23512
+ "space",
23347
23513
  "revision",
23348
23514
  "revisionInitial",
23349
23515
  "comments",
@@ -34594,6 +34760,34 @@
34594
34760
  "task"
34595
34761
  ]
34596
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
+ },
34597
34791
  "AIToolCallMCP": {
34598
34792
  "type": "object",
34599
34793
  "description": "Tool called from an MCP server",
@@ -34677,6 +34871,9 @@
34677
34871
  {
34678
34872
  "$ref": "#/components/schemas/AIToolCallCreateAgentTask"
34679
34873
  },
34874
+ {
34875
+ "$ref": "#/components/schemas/AIToolCallComment"
34876
+ },
34680
34877
  {
34681
34878
  "$ref": "#/components/schemas/AIToolCallMCP"
34682
34879
  },
@@ -39786,6 +39983,25 @@
39786
39983
  "organization"
39787
39984
  ]
39788
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
+ },
39789
40005
  "SpaceCommentsChannel": {
39790
40006
  "type": "object",
39791
40007
  "properties": {
@@ -40586,6 +40802,9 @@
40586
40802
  {
40587
40803
  "$ref": "#/components/schemas/OrganizationCustomFontsChannel"
40588
40804
  },
40805
+ {
40806
+ "$ref": "#/components/schemas/OrganizationChangeRequestsChannel"
40807
+ },
40589
40808
  {
40590
40809
  "$ref": "#/components/schemas/SpaceCommentsChannel"
40591
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
@@ -11496,6 +11564,28 @@ components:
11496
11564
  - type
11497
11565
  - columns
11498
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
11499
11589
  DocumentTableRecord:
11500
11590
  type: object
11501
11591
  properties:
@@ -11513,6 +11603,7 @@ components:
11513
11603
  items:
11514
11604
  type: string
11515
11605
  - $ref: "#/components/schemas/ContentRef"
11606
+ - $ref: "#/components/schemas/DocumentTableImageRecord"
11516
11607
  required:
11517
11608
  - orderIndex
11518
11609
  - values
@@ -13754,12 +13845,17 @@ components:
13754
13845
  $ref: "#/components/schemas/ChangeRequestStatus"
13755
13846
  subject:
13756
13847
  $ref: "#/components/schemas/ChangeRequestSubject"
13848
+ description:
13849
+ $ref: "#/components/schemas/JSONDocument"
13757
13850
  createdBy:
13758
13851
  $ref: "#/components/schemas/User"
13759
13852
  createdAt:
13760
13853
  $ref: "#/components/schemas/Timestamp"
13761
13854
  updatedAt:
13762
13855
  $ref: "#/components/schemas/Timestamp"
13856
+ space:
13857
+ type: string
13858
+ description: ID of the space in which the change request was created.
13763
13859
  revision:
13764
13860
  type: string
13765
13861
  description: ID of the active revision in the change request.
@@ -13802,6 +13898,7 @@ components:
13802
13898
  - createdBy
13803
13899
  - createdAt
13804
13900
  - updatedAt
13901
+ - space
13805
13902
  - revision
13806
13903
  - revisionInitial
13807
13904
  - comments
@@ -21461,6 +21558,26 @@ components:
21461
21558
  - spaceId
21462
21559
  - action
21463
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
21464
21581
  AIToolCallMCP:
21465
21582
  type: object
21466
21583
  description: Tool called from an MCP server
@@ -21508,6 +21625,7 @@ components:
21508
21625
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
21509
21626
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21510
21627
  - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
21628
+ - $ref: "#/components/schemas/AIToolCallComment"
21511
21629
  - $ref: "#/components/schemas/AIToolCallMCP"
21512
21630
  - $ref: "#/components/schemas/AIToolCallOther"
21513
21631
  AIStreamResponseToolCall:
@@ -24834,6 +24952,19 @@ components:
24834
24952
  required:
24835
24953
  - channel
24836
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
24837
24968
  SpaceCommentsChannel:
24838
24969
  type: object
24839
24970
  properties:
@@ -25342,6 +25473,7 @@ components:
25342
25473
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25343
25474
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25344
25475
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
25476
+ - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25345
25477
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25346
25478
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
25347
25479
  - $ref: "#/components/schemas/CommentInfoChannel"