@gitbook/api 0.143.0 → 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",
@@ -4881,14 +4897,14 @@ export type ContentImportSource = {
4881
4897
  type: 'file';
4882
4898
  files: string[];
4883
4899
  };
4884
- export interface ChangeRequestPointer {
4885
- type: 'change-request';
4886
- /** Unique identifier for the space */
4900
+ export interface ContentImportTarget {
4901
+ /** ID of the space to import in */
4887
4902
  space: string;
4888
- /** Unique identifier for the change request */
4889
- changeRequest: string;
4903
+ /** ID of the change request to import in */
4904
+ changeRequest?: string;
4905
+ /** ID of the page to import in */
4906
+ page?: string;
4890
4907
  }
4891
- export type ContentImportTarget = SpacePointer | ChangeRequestPointer;
4892
4908
  export interface ContentImportRun {
4893
4909
  /** Unique ID of the import */
4894
4910
  id: string;
@@ -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 {
@@ -8038,10 +8114,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8038
8114
  /** Output format for the content. */
8039
8115
  format?: "document" | "markdown";
8040
8116
  /**
8041
- * If `true` is passed, the document will be evaluated
8117
+ * Controls whether the document should be evaluated.
8118
+ * - When set to `true`, the entire document will be evaluated.
8119
+ * - When set to `deterministic-only`, only expressions that depend
8120
+ * exclusively on deterministic inputs will be evaluated.
8042
8121
  * @default false
8043
8122
  */
8044
- evaluated?: boolean;
8123
+ evaluated?: boolean | "deterministic-only";
8045
8124
  /**
8046
8125
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8047
8126
  * @default true
@@ -8126,10 +8205,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8126
8205
  /** Output format for the content. */
8127
8206
  format?: "document" | "markdown";
8128
8207
  /**
8129
- * If `true` is passed, the document will be evaluated
8208
+ * Controls whether the document should be evaluated.
8209
+ * - When set to `true`, the entire document will be evaluated.
8210
+ * - When set to `deterministic-only`, only expressions that depend
8211
+ * exclusively on deterministic inputs will be evaluated.
8130
8212
  * @default false
8131
8213
  */
8132
- evaluated?: boolean;
8214
+ evaluated?: boolean | "deterministic-only";
8133
8215
  /**
8134
8216
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8135
8217
  * @default true
@@ -8754,10 +8836,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8754
8836
  /** Output format for the content. */
8755
8837
  format?: "document" | "markdown";
8756
8838
  /**
8757
- * If `true` is passed, the document will be evaluated
8839
+ * Controls whether the document should be evaluated.
8840
+ * - When set to `true`, the entire document will be evaluated.
8841
+ * - When set to `deterministic-only`, only expressions that depend
8842
+ * exclusively on deterministic inputs will be evaluated.
8758
8843
  * @default false
8759
8844
  */
8760
- evaluated?: boolean;
8845
+ evaluated?: boolean | "deterministic-only";
8761
8846
  /**
8762
8847
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8763
8848
  * @default true
@@ -8835,10 +8920,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8835
8920
  /** Output format for the content. */
8836
8921
  format?: "document" | "markdown";
8837
8922
  /**
8838
- * If `true` is passed, the document will be evaluated
8923
+ * Controls whether the document should be evaluated.
8924
+ * - When set to `true`, the entire document will be evaluated.
8925
+ * - When set to `deterministic-only`, only expressions that depend
8926
+ * exclusively on deterministic inputs will be evaluated.
8839
8927
  * @default false
8840
8928
  */
8841
- evaluated?: boolean;
8929
+ evaluated?: boolean | "deterministic-only";
8842
8930
  /**
8843
8931
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8844
8932
  * @default true
@@ -9046,10 +9134,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9046
9134
  /** Output format for the content. */
9047
9135
  format?: "document" | "markdown";
9048
9136
  /**
9049
- * If `true` is passed, the document will be evaluated
9137
+ * Controls whether the document should be evaluated.
9138
+ * - When set to `true`, the entire document will be evaluated.
9139
+ * - When set to `deterministic-only`, only expressions that depend
9140
+ * exclusively on deterministic inputs will be evaluated.
9050
9141
  * @default false
9051
9142
  */
9052
- evaluated?: boolean;
9143
+ evaluated?: boolean | "deterministic-only";
9053
9144
  /**
9054
9145
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9055
9146
  * @default true
@@ -9072,10 +9163,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9072
9163
  */
9073
9164
  getPageDocumentInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
9074
9165
  /**
9075
- * If `true` is passed, the document will be evaluated
9166
+ * Controls whether the document should be evaluated.
9167
+ * - When set to `true`, the entire document will be evaluated.
9168
+ * - When set to `deterministic-only`, only expressions that depend
9169
+ * exclusively on deterministic inputs will be evaluated.
9076
9170
  * @default false
9077
9171
  */
9078
- evaluated?: boolean;
9172
+ evaluated?: boolean | "deterministic-only";
9079
9173
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9080
9174
  /**
9081
9175
  * No description
@@ -9090,10 +9184,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9090
9184
  /** Output format for the content. */
9091
9185
  format?: "document" | "markdown";
9092
9186
  /**
9093
- * If `true` is passed, the document will be evaluated
9187
+ * Controls whether the document should be evaluated.
9188
+ * - When set to `true`, the entire document will be evaluated.
9189
+ * - When set to `deterministic-only`, only expressions that depend
9190
+ * exclusively on deterministic inputs will be evaluated.
9094
9191
  * @default false
9095
9192
  */
9096
- evaluated?: boolean;
9193
+ evaluated?: boolean | "deterministic-only";
9097
9194
  /**
9098
9195
  * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9099
9196
  * @default true
@@ -9137,10 +9234,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9137
9234
  */
9138
9235
  getReusableContentDocumentInRevisionById: (spaceId: string, revisionId: string, reusableContentId: string, query?: {
9139
9236
  /**
9140
- * If `true` is passed, the document will be evaluated
9237
+ * Controls whether the document should be evaluated.
9238
+ * - When set to `true`, the entire document will be evaluated.
9239
+ * - When set to `deterministic-only`, only expressions that depend
9240
+ * exclusively on deterministic inputs will be evaluated.
9141
9241
  * @default false
9142
9242
  */
9143
- evaluated?: boolean;
9243
+ evaluated?: boolean | "deterministic-only";
9144
9244
  }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
9145
9245
  /**
9146
9246
  * No description
@@ -11425,6 +11525,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11425
11525
  * @secure
11426
11526
  */
11427
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>>;
11428
11551
  /**
11429
11552
  * No description
11430
11553
  *
@@ -13064,6 +13187,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13064
13187
  message: string;
13065
13188
  };
13066
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
+ }>>;
13067
13212
  };
13068
13213
  subdomains: {
13069
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.0";
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.0";
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.0",
7
+ "version": "0.143.2",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",