@gitbook/api 0.143.1 → 0.143.2

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
@@ -604,6 +604,7 @@ export interface DocumentInlineImage {
604
604
  ref: ContentRefURL | ContentRefFile;
605
605
  refDark?: ContentRefURL | ContentRefFile;
606
606
  caption?: string;
607
+ alt?: string;
607
608
  size?: 'original' | 'line';
608
609
  };
609
610
  isVoid: true;
@@ -999,6 +1000,7 @@ export interface DocumentBlockImages {
999
1000
  data: {
1000
1001
  align?: 'center' | 'left' | 'right';
1001
1002
  fullWidth?: boolean;
1003
+ withFrame?: boolean;
1002
1004
  };
1003
1005
  nodes: DocumentBlockImage[];
1004
1006
  isVoid: false;
@@ -3396,6 +3398,7 @@ export declare enum SiteFeatureKey {
3396
3398
  SitesAds = "sites-ads",
3397
3399
  SitesAiSearch = "sites-ai-search",
3398
3400
  SitesAiAssistant = "sites-ai-assistant",
3401
+ SitesEmbed = "sites-embed",
3399
3402
  SitesApiPlayground = "sites-api-playground",
3400
3403
  SitesBasicCustomization = "sites-basic-customization",
3401
3404
  SitesCustomDomain = "sites-custom-domain",
@@ -4670,6 +4673,19 @@ export interface AgentsSetupState {
4670
4673
  /** The settings for the agent. */
4671
4674
  settings: object;
4672
4675
  }
4676
+ export interface OrganizationAgentInstructions {
4677
+ object: 'agent-instructions';
4678
+ /** Document containing the Docs agent instructions. */
4679
+ instructions: JSONDocument;
4680
+ updatedAt: Timestamp;
4681
+ /** Identifier of the member who last updated the instructions. */
4682
+ updatedBy: string;
4683
+ /** URLs related to the custom instructions. */
4684
+ urls: {
4685
+ /** Relative URL to the resource in the API. */
4686
+ location: string;
4687
+ };
4688
+ }
4673
4689
  /** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human. */
4674
4690
  export declare enum AgentTaskStatus {
4675
4691
  Backlog = "backlog",
@@ -4898,8 +4914,13 @@ export interface ContentImportRun {
4898
4914
  completedAt?: Timestamp;
4899
4915
  /** Status of the import */
4900
4916
  status: 'pending' | 'in-progress' | 'completed' | 'failed' | 'cancelled';
4901
- /** Ids of the imported pages */
4902
- pages?: string[];
4917
+ /** Imported pages */
4918
+ pages?: {
4919
+ /** ID of page */
4920
+ id: string;
4921
+ /** Source URL where the page has been imported from */
4922
+ sourceURL?: string;
4923
+ }[];
4903
4924
  }
4904
4925
  /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
4905
4926
  export type BillingOperationPreviewResponse = {
@@ -5374,7 +5395,7 @@ export interface SiteStructureItemMovePosition {
5374
5395
  */
5375
5396
  export type SiteStructureItem = SiteSpace | SiteSection | SiteSectionGroup;
5376
5397
  /** The reason or feature that triggered the site upgrade */
5377
- export type SiteUpgradeReason = SiteFeatureKey | 'settings' | 'publish-downgrade' | 'from-billing-modal' | 'payment-failed-modal';
5398
+ export type SiteUpgradeReason = SiteFeatureKey | 'settings' | 'billing-page' | 'end-of-trial';
5378
5399
  export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
5379
5400
  /** Type of Object, always equals to "publishing-auth" */
5380
5401
  object: 'publishing-auth';
@@ -5532,6 +5553,30 @@ export interface AIToolCallResult {
5532
5553
  /** Summary of a generic tool call. */
5533
5554
  summary?: AIToolCallOtherSummary;
5534
5555
  }
5556
+ /** When the agent is responding to a comment. */
5557
+ export type AIMessageTask = {
5558
+ type: 'respond_to_comment';
5559
+ /** The ID of the space to respond to the comment in. */
5560
+ spaceId: string;
5561
+ /** The ID of the change request to respond to the comment in. */
5562
+ changeRequestId?: string;
5563
+ /** The ID of the comment to respond to. */
5564
+ commentId: string;
5565
+ } | {
5566
+ type: 'review_change_request';
5567
+ /** The ID of the space the change request is in. */
5568
+ spaceId: string;
5569
+ /** The ID of the change request to review. */
5570
+ changeRequestId: string;
5571
+ };
5572
+ /** Message emitted by the server to indicate the start of the AI response. */
5573
+ export interface AIStreamResponseStart {
5574
+ type: 'response_start';
5575
+ /** The ID of the message that this event is composing. */
5576
+ messageId: string;
5577
+ /** When the agent is responding to a comment. */
5578
+ task?: AIMessageTask;
5579
+ }
5535
5580
  /** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
5536
5581
  export interface AIStreamResponseFinish {
5537
5582
  type: 'response_finish';
@@ -5667,6 +5712,30 @@ export interface AIToolCallComment {
5667
5712
  /** The ID of the comment being posted. */
5668
5713
  commentId: string;
5669
5714
  }
5715
+ export interface AIToolCallReplyToComment {
5716
+ tool: 'replyToComment';
5717
+ /** The ID of the space being commented. */
5718
+ spaceId: string;
5719
+ /** The page being commented. */
5720
+ page?: ChangedRevisionPage;
5721
+ /** The ID of the comment being replied to. */
5722
+ commentId: string;
5723
+ /** The ID of the reply being posted. */
5724
+ replyId: string;
5725
+ }
5726
+ export interface AIToolCallSubmitChangeRequestReview {
5727
+ tool: 'submitChangeRequestReview';
5728
+ /** The ID of the space where the review was submitted. */
5729
+ spaceId: string;
5730
+ /** The ID of the change request being reviewed. */
5731
+ changeRequestId: string;
5732
+ /** Result of the review. */
5733
+ status: ChangeRequestReviewStatus;
5734
+ /** Identifier of the review that was created. */
5735
+ reviewId: string;
5736
+ /** Identifier of the comment that was created as part of the review. */
5737
+ commentId: string;
5738
+ }
5670
5739
  /** Tool called from an MCP server */
5671
5740
  export interface AIToolCallMCP {
5672
5741
  tool: 'mcp';
@@ -5683,7 +5752,7 @@ export interface AIToolCallOther {
5683
5752
  /** Summary of a generic tool call. */
5684
5753
  summary: AIToolCallOtherSummary;
5685
5754
  }
5686
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallComment | AIToolCallMCP | AIToolCallOther;
5755
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
5687
5756
  /** Message emitted by the server to indicate that the AI has called a tool. */
5688
5757
  export interface AIStreamResponseToolCall {
5689
5758
  type: 'response_tool_call';
@@ -5717,7 +5786,7 @@ export interface AIStreamResponseFollowupSuggestion {
5717
5786
  messageId: string;
5718
5787
  suggestions: string[];
5719
5788
  }
5720
- export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion;
5789
+ export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion;
5721
5790
  /** Analytics info on the GitBook's site session. */
5722
5791
  export interface SiteInsightsEventSession {
5723
5792
  /** GitBook's unique identifier of the visitor. */
@@ -7044,6 +7113,11 @@ export interface OrganizationCustomFontsChannel {
7044
7113
  channel: 'organization-fonts';
7045
7114
  organization: string;
7046
7115
  }
7116
+ /** Subscription channel for Docs agent instructions changes in an organization. */
7117
+ export interface OrganizationAgentInstructionsChannel {
7118
+ channel: 'organization-agent-instructions';
7119
+ organization: string;
7120
+ }
7047
7121
  /** Subscription channel for all change requests in an organization. */
7048
7122
  export interface OrganizationChangeRequestsChannel {
7049
7123
  channel: 'organization-change-requests';
@@ -7216,7 +7290,7 @@ export interface ImportRunChannel {
7216
7290
  runId: string;
7217
7291
  }
7218
7292
  /** Channel to subscribe to for realtime updates. */
7219
- 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 | ImportRunChannel;
7293
+ 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 | OrganizationAgentInstructionsChannel | 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 | ImportRunChannel;
7220
7294
  export interface TranslationRunChannelData {
7221
7295
  channel: 'translation-run';
7222
7296
  data: {
@@ -7309,6 +7383,8 @@ export interface AIMessage {
7309
7383
  id: string;
7310
7384
  role: AIMessageRole;
7311
7385
  steps: AIMessageStep[];
7386
+ /** When the agent is responding to a comment. */
7387
+ task?: AIMessageTask;
7312
7388
  }
7313
7389
  /** Request to reset the chat. */
7314
7390
  export interface AgentRequestReset {
@@ -11449,6 +11525,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11449
11525
  * @secure
11450
11526
  */
11451
11527
  getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentsSetupState, any>>;
11528
+ /**
11529
+ * No description
11530
+ *
11531
+ * @tags organizations, agents
11532
+ * @name GetOrganizationAgentInstructions
11533
+ * @summary Get Docs agent instructions for an organization
11534
+ * @request GET:/orgs/{organizationId}/agent-instructions
11535
+ * @secure
11536
+ */
11537
+ getOrganizationAgentInstructions: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
11538
+ /**
11539
+ * No description
11540
+ *
11541
+ * @tags organizations, agents
11542
+ * @name UpdateOrganizationAgentInstructions
11543
+ * @summary Update Docs agent instructions for an organization
11544
+ * @request PUT:/orgs/{organizationId}/agent-instructions
11545
+ * @secure
11546
+ */
11547
+ updateOrganizationAgentInstructions: (organizationId: string, data: {
11548
+ /** Document describing the Docs agent instructions. */
11549
+ instructions: JSONDocument;
11550
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
11452
11551
  /**
11453
11552
  * No description
11454
11553
  *
@@ -13088,6 +13187,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13088
13187
  message: string;
13089
13188
  };
13090
13189
  }>>;
13190
+ /**
13191
+ * No description
13192
+ *
13193
+ * @tags imports
13194
+ * @name CancelImportRun
13195
+ * @summary Cancel an import run
13196
+ * @request POST:/org/{organizationId}/imports/{importRunId}/cancel
13197
+ * @secure
13198
+ */
13199
+ cancelImportRun: (organizationId: string, importRunId: string, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
13200
+ error: {
13201
+ /** @format int32 */
13202
+ code: 400;
13203
+ message: string;
13204
+ };
13205
+ } | {
13206
+ error: {
13207
+ /** @format int32 */
13208
+ code: 404;
13209
+ message: string;
13210
+ };
13211
+ }>>;
13091
13212
  };
13092
13213
  subdomains: {
13093
13214
  /**
package/dist/index.cjs CHANGED
@@ -282,7 +282,7 @@ module.exports = __toCommonJS(src_exports);
282
282
 
283
283
  // package.json
284
284
  var name = "@gitbook/api";
285
- var version = "0.143.1";
285
+ var version = "0.143.2";
286
286
 
287
287
  // src/client.ts
288
288
  var import_event_iterator = __toESM(require_node(), 1);
@@ -696,6 +696,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
696
696
  SiteFeatureKey2["SitesAds"] = "sites-ads";
697
697
  SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
698
698
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
699
+ SiteFeatureKey2["SitesEmbed"] = "sites-embed";
699
700
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
700
701
  SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
701
702
  SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
@@ -3004,6 +3005,22 @@ var Api = class extends HttpClient {
3004
3005
  format: "json",
3005
3006
  ...params
3006
3007
  }),
3008
+ getOrganizationAgentInstructions: (organizationId, params = {}) => this.request({
3009
+ path: `/orgs/${organizationId}/agent-instructions`,
3010
+ method: "GET",
3011
+ secure: true,
3012
+ format: "json",
3013
+ ...params
3014
+ }),
3015
+ updateOrganizationAgentInstructions: (organizationId, data, params = {}) => this.request({
3016
+ path: `/orgs/${organizationId}/agent-instructions`,
3017
+ method: "PUT",
3018
+ body: data,
3019
+ secure: true,
3020
+ type: "application/json" /* Json */,
3021
+ format: "json",
3022
+ ...params
3023
+ }),
3007
3024
  listAgentTasks: (organizationId, query, params = {}) => this.request({
3008
3025
  path: `/orgs/${organizationId}/agent-tasks`,
3009
3026
  method: "GET",
@@ -3669,6 +3686,13 @@ var Api = class extends HttpClient {
3669
3686
  type: "application/json" /* Json */,
3670
3687
  format: "json",
3671
3688
  ...params
3689
+ }),
3690
+ cancelImportRun: (organizationId, importRunId, params = {}) => this.request({
3691
+ path: `/org/${organizationId}/imports/${importRunId}/cancel`,
3692
+ method: "POST",
3693
+ secure: true,
3694
+ format: "json",
3695
+ ...params
3672
3696
  })
3673
3697
  };
3674
3698
  subdomains = {
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.143.1";
175
+ var version = "0.143.2";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -586,6 +586,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
586
586
  SiteFeatureKey2["SitesAds"] = "sites-ads";
587
587
  SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
588
588
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
589
+ SiteFeatureKey2["SitesEmbed"] = "sites-embed";
589
590
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
590
591
  SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
591
592
  SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
@@ -2894,6 +2895,22 @@ var Api = class extends HttpClient {
2894
2895
  format: "json",
2895
2896
  ...params
2896
2897
  }),
2898
+ getOrganizationAgentInstructions: (organizationId, params = {}) => this.request({
2899
+ path: `/orgs/${organizationId}/agent-instructions`,
2900
+ method: "GET",
2901
+ secure: true,
2902
+ format: "json",
2903
+ ...params
2904
+ }),
2905
+ updateOrganizationAgentInstructions: (organizationId, data, params = {}) => this.request({
2906
+ path: `/orgs/${organizationId}/agent-instructions`,
2907
+ method: "PUT",
2908
+ body: data,
2909
+ secure: true,
2910
+ type: "application/json" /* Json */,
2911
+ format: "json",
2912
+ ...params
2913
+ }),
2897
2914
  listAgentTasks: (organizationId, query, params = {}) => this.request({
2898
2915
  path: `/orgs/${organizationId}/agent-tasks`,
2899
2916
  method: "GET",
@@ -3559,6 +3576,13 @@ var Api = class extends HttpClient {
3559
3576
  type: "application/json" /* Json */,
3560
3577
  format: "json",
3561
3578
  ...params
3579
+ }),
3580
+ cancelImportRun: (organizationId, importRunId, params = {}) => this.request({
3581
+ path: `/org/${organizationId}/imports/${importRunId}/cancel`,
3582
+ method: "POST",
3583
+ secure: true,
3584
+ format: "json",
3585
+ ...params
3562
3586
  })
3563
3587
  };
3564
3588
  subdomains = {
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.143.1",
7
+ "version": "0.143.2",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -10891,6 +10891,87 @@
10891
10891
  }
10892
10892
  }
10893
10893
  },
10894
+ "/orgs/{organizationId}/agent-instructions": {
10895
+ "get": {
10896
+ "operationId": "getOrganizationAgentInstructions",
10897
+ "summary": "Get Docs agent instructions for an organization",
10898
+ "tags": [
10899
+ "organizations",
10900
+ "agents"
10901
+ ],
10902
+ "security": [
10903
+ {
10904
+ "user": []
10905
+ }
10906
+ ],
10907
+ "parameters": [
10908
+ {
10909
+ "$ref": "#/components/parameters/organizationId"
10910
+ }
10911
+ ],
10912
+ "responses": {
10913
+ "200": {
10914
+ "description": "OK",
10915
+ "content": {
10916
+ "application/json": {
10917
+ "schema": {
10918
+ "$ref": "#/components/schemas/OrganizationAgentInstructions"
10919
+ }
10920
+ }
10921
+ }
10922
+ }
10923
+ }
10924
+ },
10925
+ "put": {
10926
+ "operationId": "updateOrganizationAgentInstructions",
10927
+ "summary": "Update Docs agent instructions for an organization",
10928
+ "tags": [
10929
+ "organizations",
10930
+ "agents"
10931
+ ],
10932
+ "security": [
10933
+ {
10934
+ "user": []
10935
+ }
10936
+ ],
10937
+ "parameters": [
10938
+ {
10939
+ "$ref": "#/components/parameters/organizationId"
10940
+ }
10941
+ ],
10942
+ "requestBody": {
10943
+ "required": true,
10944
+ "content": {
10945
+ "application/json": {
10946
+ "schema": {
10947
+ "type": "object",
10948
+ "required": [
10949
+ "instructions"
10950
+ ],
10951
+ "properties": {
10952
+ "instructions": {
10953
+ "$ref": "#/components/schemas/JSONDocument",
10954
+ "description": "Document describing the Docs agent instructions."
10955
+ }
10956
+ }
10957
+ }
10958
+ }
10959
+ }
10960
+ },
10961
+ "responses": {
10962
+ "200": {
10963
+ "description": "Updated instructions",
10964
+ "content": {
10965
+ "application/json": {
10966
+ "schema": {
10967
+ "$ref": "#/components/schemas/OrganizationAgentInstructions"
10968
+ }
10969
+ }
10970
+ }
10971
+ }
10972
+ }
10973
+ }
10974
+ },
10894
10975
  "/orgs/{organizationId}/agent-tasks": {
10895
10976
  "get": {
10896
10977
  "operationId": "listAgentTasks",
@@ -11864,6 +11945,47 @@
11864
11945
  }
11865
11946
  }
11866
11947
  },
11948
+ "/org/{organizationId}/imports/{importRunId}/cancel": {
11949
+ "post": {
11950
+ "operationId": "cancelImportRun",
11951
+ "summary": "Cancel an import run",
11952
+ "tags": [
11953
+ "imports"
11954
+ ],
11955
+ "x-internal": true,
11956
+ "security": [
11957
+ {
11958
+ "user-internal": []
11959
+ }
11960
+ ],
11961
+ "parameters": [
11962
+ {
11963
+ "$ref": "#/components/parameters/organizationId"
11964
+ },
11965
+ {
11966
+ "$ref": "#/components/parameters/importRunId"
11967
+ }
11968
+ ],
11969
+ "responses": {
11970
+ "201": {
11971
+ "description": "Import run canceled successfully.",
11972
+ "content": {
11973
+ "application/json": {
11974
+ "schema": {
11975
+ "$ref": "#/components/schemas/ContentImportRun"
11976
+ }
11977
+ }
11978
+ }
11979
+ },
11980
+ "400": {
11981
+ "$ref": "#/components/responses/BadRequestError"
11982
+ },
11983
+ "404": {
11984
+ "$ref": "#/components/responses/NotFoundError"
11985
+ }
11986
+ }
11987
+ }
11988
+ },
11867
11989
  "/orgs/{organizationId}/sites": {
11868
11990
  "get": {
11869
11991
  "operationId": "listSites",
@@ -17097,6 +17219,15 @@
17097
17219
  "type": "string"
17098
17220
  }
17099
17221
  },
17222
+ "importRunId": {
17223
+ "name": "importRunId",
17224
+ "in": "path",
17225
+ "required": true,
17226
+ "description": "The unique id of the import run",
17227
+ "schema": {
17228
+ "type": "string"
17229
+ }
17230
+ },
17100
17231
  "shareLinkId": {
17101
17232
  "name": "shareLinkId",
17102
17233
  "in": "path",
@@ -18898,6 +19029,9 @@
18898
19029
  "caption": {
18899
19030
  "type": "string"
18900
19031
  },
19032
+ "alt": {
19033
+ "type": "string"
19034
+ },
18901
19035
  "size": {
18902
19036
  "type": "string",
18903
19037
  "enum": [
@@ -20937,6 +21071,9 @@
20937
21071
  },
20938
21072
  "fullWidth": {
20939
21073
  "type": "boolean"
21074
+ },
21075
+ "withFrame": {
21076
+ "type": "boolean"
20940
21077
  }
20941
21078
  }
20942
21079
  },
@@ -28647,6 +28784,7 @@
28647
28784
  "sites-ads",
28648
28785
  "sites-ai-search",
28649
28786
  "sites-ai-assistant",
28787
+ "sites-embed",
28650
28788
  "sites-api-playground",
28651
28789
  "sites-basic-customization",
28652
28790
  "sites-custom-domain",
@@ -32440,6 +32578,48 @@
32440
32578
  "stats"
32441
32579
  ]
32442
32580
  },
32581
+ "OrganizationAgentInstructions": {
32582
+ "type": "object",
32583
+ "properties": {
32584
+ "object": {
32585
+ "type": "string",
32586
+ "enum": [
32587
+ "agent-instructions"
32588
+ ]
32589
+ },
32590
+ "instructions": {
32591
+ "$ref": "#/components/schemas/JSONDocument",
32592
+ "description": "Document containing the Docs agent instructions."
32593
+ },
32594
+ "updatedAt": {
32595
+ "$ref": "#/components/schemas/Timestamp"
32596
+ },
32597
+ "updatedBy": {
32598
+ "type": "string",
32599
+ "description": "Identifier of the member who last updated the instructions."
32600
+ },
32601
+ "urls": {
32602
+ "type": "object",
32603
+ "description": "URLs related to the custom instructions.",
32604
+ "properties": {
32605
+ "location": {
32606
+ "type": "string",
32607
+ "description": "Relative URL to the resource in the API."
32608
+ }
32609
+ },
32610
+ "required": [
32611
+ "location"
32612
+ ]
32613
+ }
32614
+ },
32615
+ "required": [
32616
+ "object",
32617
+ "instructions",
32618
+ "updatedAt",
32619
+ "updatedBy",
32620
+ "urls"
32621
+ ]
32622
+ },
32443
32623
  "AgentTaskStatus": {
32444
32624
  "type": "string",
32445
32625
  "description": "The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human.\n",
@@ -33060,10 +33240,23 @@
33060
33240
  ]
33061
33241
  },
33062
33242
  "pages": {
33063
- "description": "Ids of the imported pages",
33243
+ "description": "Imported pages",
33064
33244
  "type": "array",
33065
33245
  "items": {
33066
- "type": "string"
33246
+ "type": "object",
33247
+ "properties": {
33248
+ "id": {
33249
+ "description": "ID of page",
33250
+ "type": "string"
33251
+ },
33252
+ "sourceURL": {
33253
+ "description": "Source URL where the page has been imported from",
33254
+ "type": "string"
33255
+ }
33256
+ },
33257
+ "required": [
33258
+ "id"
33259
+ ]
33067
33260
  }
33068
33261
  }
33069
33262
  },
@@ -34250,9 +34443,8 @@
34250
34443
  "type": "string",
34251
34444
  "enum": [
34252
34445
  "settings",
34253
- "publish-downgrade",
34254
- "from-billing-modal",
34255
- "payment-failed-modal"
34446
+ "billing-page",
34447
+ "end-of-trial"
34256
34448
  ]
34257
34449
  }
34258
34450
  ]
@@ -34765,6 +34957,87 @@
34765
34957
  }
34766
34958
  }
34767
34959
  },
34960
+ "AIMessageTask": {
34961
+ "oneOf": [
34962
+ {
34963
+ "type": "object",
34964
+ "description": "When the agent is responding to a comment.",
34965
+ "properties": {
34966
+ "type": {
34967
+ "type": "string",
34968
+ "enum": [
34969
+ "respond_to_comment"
34970
+ ]
34971
+ },
34972
+ "spaceId": {
34973
+ "type": "string",
34974
+ "description": "The ID of the space to respond to the comment in."
34975
+ },
34976
+ "changeRequestId": {
34977
+ "type": "string",
34978
+ "description": "The ID of the change request to respond to the comment in."
34979
+ },
34980
+ "commentId": {
34981
+ "type": "string",
34982
+ "description": "The ID of the comment to respond to."
34983
+ }
34984
+ },
34985
+ "required": [
34986
+ "type",
34987
+ "spaceId",
34988
+ "commentId"
34989
+ ]
34990
+ },
34991
+ {
34992
+ "type": "object",
34993
+ "description": "When the agent is reviewing a change request.",
34994
+ "properties": {
34995
+ "type": {
34996
+ "type": "string",
34997
+ "enum": [
34998
+ "review_change_request"
34999
+ ]
35000
+ },
35001
+ "spaceId": {
35002
+ "type": "string",
35003
+ "description": "The ID of the space the change request is in."
35004
+ },
35005
+ "changeRequestId": {
35006
+ "type": "string",
35007
+ "description": "The ID of the change request to review."
35008
+ }
35009
+ },
35010
+ "required": [
35011
+ "type",
35012
+ "spaceId",
35013
+ "changeRequestId"
35014
+ ]
35015
+ }
35016
+ ]
35017
+ },
35018
+ "AIStreamResponseStart": {
35019
+ "type": "object",
35020
+ "description": "Message emitted by the server to indicate the start of the AI response.\n",
35021
+ "properties": {
35022
+ "type": {
35023
+ "type": "string",
35024
+ "enum": [
35025
+ "response_start"
35026
+ ]
35027
+ },
35028
+ "messageId": {
35029
+ "type": "string",
35030
+ "description": "The ID of the message that this event is composing.\n"
35031
+ },
35032
+ "task": {
35033
+ "$ref": "#/components/schemas/AIMessageTask"
35034
+ }
35035
+ },
35036
+ "required": [
35037
+ "type",
35038
+ "messageId"
35039
+ ]
35040
+ },
34768
35041
  "AIStreamResponseFinish": {
34769
35042
  "type": "object",
34770
35043
  "description": "Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests.\n",
@@ -35219,6 +35492,78 @@
35219
35492
  "commentId"
35220
35493
  ]
35221
35494
  },
35495
+ "AIToolCallReplyToComment": {
35496
+ "type": "object",
35497
+ "properties": {
35498
+ "tool": {
35499
+ "type": "string",
35500
+ "enum": [
35501
+ "replyToComment"
35502
+ ]
35503
+ },
35504
+ "spaceId": {
35505
+ "type": "string",
35506
+ "description": "The ID of the space being commented."
35507
+ },
35508
+ "page": {
35509
+ "description": "The page being commented.",
35510
+ "$ref": "#/components/schemas/ChangedRevisionPage"
35511
+ },
35512
+ "commentId": {
35513
+ "type": "string",
35514
+ "description": "The ID of the comment being replied to."
35515
+ },
35516
+ "replyId": {
35517
+ "type": "string",
35518
+ "description": "The ID of the reply being posted."
35519
+ }
35520
+ },
35521
+ "required": [
35522
+ "tool",
35523
+ "spaceId",
35524
+ "commentId",
35525
+ "replyId"
35526
+ ]
35527
+ },
35528
+ "AIToolCallSubmitChangeRequestReview": {
35529
+ "type": "object",
35530
+ "properties": {
35531
+ "tool": {
35532
+ "type": "string",
35533
+ "enum": [
35534
+ "submitChangeRequestReview"
35535
+ ]
35536
+ },
35537
+ "spaceId": {
35538
+ "type": "string",
35539
+ "description": "The ID of the space where the review was submitted."
35540
+ },
35541
+ "changeRequestId": {
35542
+ "type": "string",
35543
+ "description": "The ID of the change request being reviewed."
35544
+ },
35545
+ "status": {
35546
+ "$ref": "#/components/schemas/ChangeRequestReviewStatus",
35547
+ "description": "Result of the review."
35548
+ },
35549
+ "reviewId": {
35550
+ "type": "string",
35551
+ "description": "Identifier of the review that was created."
35552
+ },
35553
+ "commentId": {
35554
+ "type": "string",
35555
+ "description": "Identifier of the comment that was created as part of the review."
35556
+ }
35557
+ },
35558
+ "required": [
35559
+ "tool",
35560
+ "spaceId",
35561
+ "changeRequestId",
35562
+ "status",
35563
+ "reviewId",
35564
+ "commentId"
35565
+ ]
35566
+ },
35222
35567
  "AIToolCallMCP": {
35223
35568
  "type": "object",
35224
35569
  "description": "Tool called from an MCP server",
@@ -35305,6 +35650,12 @@
35305
35650
  {
35306
35651
  "$ref": "#/components/schemas/AIToolCallComment"
35307
35652
  },
35653
+ {
35654
+ "$ref": "#/components/schemas/AIToolCallReplyToComment"
35655
+ },
35656
+ {
35657
+ "$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
35658
+ },
35308
35659
  {
35309
35660
  "$ref": "#/components/schemas/AIToolCallMCP"
35310
35661
  },
@@ -35421,6 +35772,9 @@
35421
35772
  },
35422
35773
  "AIStreamResponse": {
35423
35774
  "oneOf": [
35775
+ {
35776
+ "$ref": "#/components/schemas/AIStreamResponseStart"
35777
+ },
35424
35778
  {
35425
35779
  "$ref": "#/components/schemas/AIStreamResponseFinish"
35426
35780
  },
@@ -40430,6 +40784,25 @@
40430
40784
  "organization"
40431
40785
  ]
40432
40786
  },
40787
+ "OrganizationAgentInstructionsChannel": {
40788
+ "type": "object",
40789
+ "description": "Subscription channel for Docs agent instructions changes in an organization.",
40790
+ "properties": {
40791
+ "channel": {
40792
+ "type": "string",
40793
+ "enum": [
40794
+ "organization-agent-instructions"
40795
+ ]
40796
+ },
40797
+ "organization": {
40798
+ "type": "string"
40799
+ }
40800
+ },
40801
+ "required": [
40802
+ "channel",
40803
+ "organization"
40804
+ ]
40805
+ },
40433
40806
  "OrganizationChangeRequestsChannel": {
40434
40807
  "type": "object",
40435
40808
  "description": "Subscription channel for all change requests in an organization.",
@@ -41267,6 +41640,9 @@
41267
41640
  {
41268
41641
  "$ref": "#/components/schemas/OrganizationCustomFontsChannel"
41269
41642
  },
41643
+ {
41644
+ "$ref": "#/components/schemas/OrganizationAgentInstructionsChannel"
41645
+ },
41270
41646
  {
41271
41647
  "$ref": "#/components/schemas/OrganizationChangeRequestsChannel"
41272
41648
  },
@@ -41727,6 +42103,9 @@
41727
42103
  "items": {
41728
42104
  "$ref": "#/components/schemas/AIMessageStep"
41729
42105
  }
42106
+ },
42107
+ "task": {
42108
+ "$ref": "#/components/schemas/AIMessageTask"
41730
42109
  }
41731
42110
  },
41732
42111
  "required": [
package/spec/openapi.yaml CHANGED
@@ -6188,6 +6188,53 @@ paths:
6188
6188
  application/json:
6189
6189
  schema:
6190
6190
  $ref: "#/components/schemas/AgentsSetupState"
6191
+ "/orgs/{organizationId}/agent-instructions":
6192
+ get:
6193
+ operationId: getOrganizationAgentInstructions
6194
+ summary: Get Docs agent instructions for an organization
6195
+ tags:
6196
+ - organizations
6197
+ - agents
6198
+ security:
6199
+ - user: []
6200
+ parameters:
6201
+ - $ref: "#/components/parameters/organizationId"
6202
+ responses:
6203
+ "200":
6204
+ description: OK
6205
+ content:
6206
+ application/json:
6207
+ schema:
6208
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6209
+ put:
6210
+ operationId: updateOrganizationAgentInstructions
6211
+ summary: Update Docs agent instructions for an organization
6212
+ tags:
6213
+ - organizations
6214
+ - agents
6215
+ security:
6216
+ - user: []
6217
+ parameters:
6218
+ - $ref: "#/components/parameters/organizationId"
6219
+ requestBody:
6220
+ required: true
6221
+ content:
6222
+ application/json:
6223
+ schema:
6224
+ type: object
6225
+ required:
6226
+ - instructions
6227
+ properties:
6228
+ instructions:
6229
+ $ref: "#/components/schemas/JSONDocument"
6230
+ description: Document describing the Docs agent instructions.
6231
+ responses:
6232
+ "200":
6233
+ description: Updated instructions
6234
+ content:
6235
+ application/json:
6236
+ schema:
6237
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6191
6238
  "/orgs/{organizationId}/agent-tasks":
6192
6239
  get:
6193
6240
  operationId: listAgentTasks
@@ -6742,6 +6789,29 @@ paths:
6742
6789
  $ref: "#/components/responses/BadRequestError"
6743
6790
  "404":
6744
6791
  $ref: "#/components/responses/NotFoundError"
6792
+ "/org/{organizationId}/imports/{importRunId}/cancel":
6793
+ post:
6794
+ operationId: cancelImportRun
6795
+ summary: Cancel an import run
6796
+ tags:
6797
+ - imports
6798
+ x-internal: true
6799
+ security:
6800
+ - user-internal: []
6801
+ parameters:
6802
+ - $ref: "#/components/parameters/organizationId"
6803
+ - $ref: "#/components/parameters/importRunId"
6804
+ responses:
6805
+ "201":
6806
+ description: Import run canceled successfully.
6807
+ content:
6808
+ application/json:
6809
+ schema:
6810
+ $ref: "#/components/schemas/ContentImportRun"
6811
+ "400":
6812
+ $ref: "#/components/responses/BadRequestError"
6813
+ "404":
6814
+ $ref: "#/components/responses/NotFoundError"
6745
6815
  "/orgs/{organizationId}/sites":
6746
6816
  get:
6747
6817
  operationId: listSites
@@ -9787,6 +9857,13 @@ components:
9787
9857
  description: The unique ID of a font
9788
9858
  schema:
9789
9859
  type: string
9860
+ importRunId:
9861
+ name: importRunId
9862
+ in: path
9863
+ required: true
9864
+ description: The unique id of the import run
9865
+ schema:
9866
+ type: string
9790
9867
  shareLinkId:
9791
9868
  name: shareLinkId
9792
9869
  in: path
@@ -11054,6 +11131,8 @@ components:
11054
11131
  - $ref: "#/components/schemas/ContentRefFile"
11055
11132
  caption:
11056
11133
  type: string
11134
+ alt:
11135
+ type: string
11057
11136
  size:
11058
11137
  type: string
11059
11138
  enum:
@@ -12313,6 +12392,8 @@ components:
12313
12392
  - right
12314
12393
  fullWidth:
12315
12394
  type: boolean
12395
+ withFrame:
12396
+ type: boolean
12316
12397
  nodes:
12317
12398
  type: array
12318
12399
  items:
@@ -17351,6 +17432,7 @@ components:
17351
17432
  - sites-ads
17352
17433
  - sites-ai-search
17353
17434
  - sites-ai-assistant
17435
+ - sites-embed
17354
17436
  - sites-api-playground
17355
17437
  - sites-basic-customization
17356
17438
  - sites-custom-domain
@@ -19906,6 +19988,36 @@ components:
19906
19988
  - email
19907
19989
  - settings
19908
19990
  - stats
19991
+ OrganizationAgentInstructions:
19992
+ type: object
19993
+ properties:
19994
+ object:
19995
+ type: string
19996
+ enum:
19997
+ - agent-instructions
19998
+ instructions:
19999
+ $ref: "#/components/schemas/JSONDocument"
20000
+ description: Document containing the Docs agent instructions.
20001
+ updatedAt:
20002
+ $ref: "#/components/schemas/Timestamp"
20003
+ updatedBy:
20004
+ type: string
20005
+ description: Identifier of the member who last updated the instructions.
20006
+ urls:
20007
+ type: object
20008
+ description: URLs related to the custom instructions.
20009
+ properties:
20010
+ location:
20011
+ type: string
20012
+ description: Relative URL to the resource in the API.
20013
+ required:
20014
+ - location
20015
+ required:
20016
+ - object
20017
+ - instructions
20018
+ - updatedAt
20019
+ - updatedBy
20020
+ - urls
19909
20021
  AgentTaskStatus:
19910
20022
  type: string
19911
20023
  description: |
@@ -20349,10 +20461,19 @@ components:
20349
20461
  - failed
20350
20462
  - cancelled
20351
20463
  pages:
20352
- description: Ids of the imported pages
20464
+ description: Imported pages
20353
20465
  type: array
20354
20466
  items:
20355
- type: string
20467
+ type: object
20468
+ properties:
20469
+ id:
20470
+ description: ID of page
20471
+ type: string
20472
+ sourceURL:
20473
+ description: Source URL where the page has been imported from
20474
+ type: string
20475
+ required:
20476
+ - id
20356
20477
  required:
20357
20478
  - id
20358
20479
  - status
@@ -21197,9 +21318,8 @@ components:
21197
21318
  - type: string
21198
21319
  enum:
21199
21320
  - settings
21200
- - publish-downgrade
21201
- - from-billing-modal
21202
- - payment-failed-modal
21321
+ - billing-page
21322
+ - end-of-trial
21203
21323
  SitePublishingAuth:
21204
21324
  allOf:
21205
21325
  - oneOf:
@@ -21536,6 +21656,63 @@ components:
21536
21656
  description: The output to the tool call.
21537
21657
  summary:
21538
21658
  $ref: "#/components/schemas/AIToolCallOtherSummary"
21659
+ AIMessageTask:
21660
+ oneOf:
21661
+ - type: object
21662
+ description: When the agent is responding to a comment.
21663
+ properties:
21664
+ type:
21665
+ type: string
21666
+ enum:
21667
+ - respond_to_comment
21668
+ spaceId:
21669
+ type: string
21670
+ description: The ID of the space to respond to the comment in.
21671
+ changeRequestId:
21672
+ type: string
21673
+ description: The ID of the change request to respond to the comment in.
21674
+ commentId:
21675
+ type: string
21676
+ description: The ID of the comment to respond to.
21677
+ required:
21678
+ - type
21679
+ - spaceId
21680
+ - commentId
21681
+ - type: object
21682
+ description: When the agent is reviewing a change request.
21683
+ properties:
21684
+ type:
21685
+ type: string
21686
+ enum:
21687
+ - review_change_request
21688
+ spaceId:
21689
+ type: string
21690
+ description: The ID of the space the change request is in.
21691
+ changeRequestId:
21692
+ type: string
21693
+ description: The ID of the change request to review.
21694
+ required:
21695
+ - type
21696
+ - spaceId
21697
+ - changeRequestId
21698
+ AIStreamResponseStart:
21699
+ type: object
21700
+ description: |
21701
+ Message emitted by the server to indicate the start of the AI response.
21702
+ properties:
21703
+ type:
21704
+ type: string
21705
+ enum:
21706
+ - response_start
21707
+ messageId:
21708
+ type: string
21709
+ description: |
21710
+ The ID of the message that this event is composing.
21711
+ task:
21712
+ $ref: "#/components/schemas/AIMessageTask"
21713
+ required:
21714
+ - type
21715
+ - messageId
21539
21716
  AIStreamResponseFinish:
21540
21717
  type: object
21541
21718
  description: |
@@ -21871,6 +22048,59 @@ components:
21871
22048
  - tool
21872
22049
  - spaceId
21873
22050
  - commentId
22051
+ AIToolCallReplyToComment:
22052
+ type: object
22053
+ properties:
22054
+ tool:
22055
+ type: string
22056
+ enum:
22057
+ - replyToComment
22058
+ spaceId:
22059
+ type: string
22060
+ description: The ID of the space being commented.
22061
+ page:
22062
+ description: The page being commented.
22063
+ $ref: "#/components/schemas/ChangedRevisionPage"
22064
+ commentId:
22065
+ type: string
22066
+ description: The ID of the comment being replied to.
22067
+ replyId:
22068
+ type: string
22069
+ description: The ID of the reply being posted.
22070
+ required:
22071
+ - tool
22072
+ - spaceId
22073
+ - commentId
22074
+ - replyId
22075
+ AIToolCallSubmitChangeRequestReview:
22076
+ type: object
22077
+ properties:
22078
+ tool:
22079
+ type: string
22080
+ enum:
22081
+ - submitChangeRequestReview
22082
+ spaceId:
22083
+ type: string
22084
+ description: The ID of the space where the review was submitted.
22085
+ changeRequestId:
22086
+ type: string
22087
+ description: The ID of the change request being reviewed.
22088
+ status:
22089
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
22090
+ description: Result of the review.
22091
+ reviewId:
22092
+ type: string
22093
+ description: Identifier of the review that was created.
22094
+ commentId:
22095
+ type: string
22096
+ description: Identifier of the comment that was created as part of the review.
22097
+ required:
22098
+ - tool
22099
+ - spaceId
22100
+ - changeRequestId
22101
+ - status
22102
+ - reviewId
22103
+ - commentId
21874
22104
  AIToolCallMCP:
21875
22105
  type: object
21876
22106
  description: Tool called from an MCP server
@@ -21919,6 +22149,8 @@ components:
21919
22149
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21920
22150
  - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
21921
22151
  - $ref: "#/components/schemas/AIToolCallComment"
22152
+ - $ref: "#/components/schemas/AIToolCallReplyToComment"
22153
+ - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
21922
22154
  - $ref: "#/components/schemas/AIToolCallMCP"
21923
22155
  - $ref: "#/components/schemas/AIToolCallOther"
21924
22156
  AIStreamResponseToolCall:
@@ -22009,6 +22241,7 @@ components:
22009
22241
  - suggestions
22010
22242
  AIStreamResponse:
22011
22243
  oneOf:
22244
+ - $ref: "#/components/schemas/AIStreamResponseStart"
22012
22245
  - $ref: "#/components/schemas/AIStreamResponseFinish"
22013
22246
  - $ref: "#/components/schemas/AIStreamResponseDocument"
22014
22247
  - $ref: "#/components/schemas/AIStreamResponseObject"
@@ -25256,6 +25489,19 @@ components:
25256
25489
  required:
25257
25490
  - channel
25258
25491
  - organization
25492
+ OrganizationAgentInstructionsChannel:
25493
+ type: object
25494
+ description: Subscription channel for Docs agent instructions changes in an organization.
25495
+ properties:
25496
+ channel:
25497
+ type: string
25498
+ enum:
25499
+ - organization-agent-instructions
25500
+ organization:
25501
+ type: string
25502
+ required:
25503
+ - channel
25504
+ - organization
25259
25505
  OrganizationChangeRequestsChannel:
25260
25506
  type: object
25261
25507
  description: Subscription channel for all change requests in an organization.
@@ -25789,6 +26035,7 @@ components:
25789
26035
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25790
26036
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25791
26037
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
26038
+ - $ref: "#/components/schemas/OrganizationAgentInstructionsChannel"
25792
26039
  - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25793
26040
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25794
26041
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
@@ -26058,6 +26305,8 @@ components:
26058
26305
  type: array
26059
26306
  items:
26060
26307
  $ref: "#/components/schemas/AIMessageStep"
26308
+ task:
26309
+ $ref: "#/components/schemas/AIMessageTask"
26061
26310
  required:
26062
26311
  - id
26063
26312
  - role