@gitbook/api 0.129.0 → 0.130.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
@@ -480,8 +480,8 @@ export interface DocumentMarkColor {
480
480
  object: 'mark';
481
481
  type: 'color';
482
482
  data: {
483
- text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
484
- background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
483
+ text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
484
+ background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
485
485
  };
486
486
  }
487
487
  export interface DocumentMarkSuperscript {
@@ -1211,8 +1211,6 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
1211
1211
  /** Complete path to access the page in the revision. */
1212
1212
  path: string;
1213
1213
  description?: string;
1214
- /** ID of the document with the page body. If undefined, the page is empty. */
1215
- documentId?: string;
1216
1214
  pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
1217
1215
  git?: GitSyncBlob;
1218
1216
  layout: RevisionPageLayoutOptions;
@@ -1449,12 +1447,18 @@ export interface RevisionFile {
1449
1447
  };
1450
1448
  git?: GitSyncBlob;
1451
1449
  }
1452
- export interface RevisionReusableContent {
1450
+ export type RevisionReusableContent = {
1453
1451
  id: string;
1454
1452
  title: string;
1455
- document?: string;
1456
1453
  git?: GitSyncBlob;
1457
- }
1454
+ } & ({
1455
+ computed: ComputedContentSourceDocument;
1456
+ /** Seed to use for the generation of IDs. */
1457
+ computedSeed: string;
1458
+ } | {
1459
+ /** ID of the document with the content body. If undefined, the reusable content is empty. */
1460
+ document?: string;
1461
+ });
1458
1462
  export interface GitSyncCommit {
1459
1463
  /** SHA for the commit */
1460
1464
  oid: string;
@@ -1600,9 +1604,15 @@ export interface ImportContentResult {
1600
1604
  /** How many resources were processed */
1601
1605
  totalResources: number;
1602
1606
  }
1607
+ /** Parameters for a space template */
1608
+ export interface SpaceTemplateParams {
1609
+ contentRefs?: Record<string, ContentRef>;
1610
+ }
1603
1611
  export interface ApplySpaceTemplate {
1604
1612
  /** The ID of the template to use for the space */
1605
1613
  id: string;
1614
+ /** Parameters for a space template */
1615
+ params?: SpaceTemplateParams;
1606
1616
  }
1607
1617
  /**
1608
1618
  * Name of the organization
@@ -2063,6 +2073,11 @@ export interface EmojiReaction {
2063
2073
  }[];
2064
2074
  }
2065
2075
  export type EmojiReactions = EmojiReaction[];
2076
+ /** Details about the table cell this comment is attached to, if any. */
2077
+ export interface TableCellTarget {
2078
+ record: string;
2079
+ definition: string;
2080
+ }
2066
2081
  export type Comment = {
2067
2082
  /** Type of Object, always equals to "comment" */
2068
2083
  object: 'comment';
@@ -2087,6 +2102,8 @@ export type Comment = {
2087
2102
  id: string;
2088
2103
  preview?: string;
2089
2104
  };
2105
+ /** Details about the table cell this comment is attached to, if any. */
2106
+ tableCell?: TableCellTarget;
2090
2107
  /** The change request containing this comment, if the comment was made inside a change request. */
2091
2108
  changeRequest?: string;
2092
2109
  /** The review containing this comment, if this comment was made as part of a review. */
@@ -2180,6 +2197,8 @@ export interface PostCommentSchema {
2180
2197
  page?: string;
2181
2198
  /** The content of the comment. */
2182
2199
  body: Document;
2200
+ /** Details about the table cell this comment is attached to, if any. */
2201
+ tableCell?: TableCellTarget;
2183
2202
  }
2184
2203
  export interface UpdateCommentSchema {
2185
2204
  /** Whether the comment is resolved or not. */
@@ -4088,7 +4107,7 @@ export interface SearchSpaceResult {
4088
4107
  title: string;
4089
4108
  pages: SearchPageResult[];
4090
4109
  }
4091
- export interface CreateSpace {
4110
+ export type CreateSpace = {
4092
4111
  /** @maxLength 50 */
4093
4112
  title?: string;
4094
4113
  /** Unicode codepoint or character of the emoji */
@@ -4097,8 +4116,11 @@ export interface CreateSpace {
4097
4116
  parent?: string;
4098
4117
  /** The edit mode of the space */
4099
4118
  editMode?: SpaceEditMode;
4100
- template?: ApplySpaceTemplate;
4101
- }
4119
+ } & (Record<string, any> | ({
4120
+ template: ApplySpaceTemplate;
4121
+ } | {
4122
+ computedSource: ComputedContentSourceRevision;
4123
+ }));
4102
4124
  /**
4103
4125
  * @minLength 1
4104
4126
  * @maxLength 30
@@ -5338,12 +5360,16 @@ export interface AIToolCallGetPageContent {
5338
5360
  tool: 'getPageContent';
5339
5361
  /** The ID of the space being accessed. */
5340
5362
  spaceId: string;
5363
+ /** The ID of the revision within which the page content is being fetched. */
5364
+ revisionId: string;
5341
5365
  page: ChangedRevisionPage;
5342
5366
  }
5343
5367
  export interface AIToolCallGetPages {
5344
5368
  tool: 'getPages';
5345
5369
  /** The ID of the space being accessed. */
5346
5370
  spaceId: string;
5371
+ /** The revision ID of the space. */
5372
+ revisionId: string;
5347
5373
  }
5348
5374
  /** Result of a search */
5349
5375
  export interface AIToolCallSearchResult {
@@ -5351,6 +5377,8 @@ export interface AIToolCallSearchResult {
5351
5377
  spaceId: string;
5352
5378
  /** The ID of the page */
5353
5379
  pageId: string;
5380
+ /** The revision ID of the result */
5381
+ revisionId: string;
5354
5382
  /** The anchor of the result */
5355
5383
  anchor?: string;
5356
5384
  /** The title of the result */
@@ -5916,13 +5944,18 @@ export declare enum SiteInsightsQueryOperator {
5916
5944
  export type SiteInsightsQueryEventsFilter = SiteInsightsQueryEventsValues & {
5917
5945
  operator?: SiteInsightsQueryOperator;
5918
5946
  };
5919
- export declare enum SiteInsightsQueryRange {
5947
+ export declare enum SiteInsightsQueryRangePreset {
5920
5948
  LastYear = "lastYear",
5921
5949
  Last3Months = "last3Months",
5922
5950
  Last30Days = "last30Days",
5923
5951
  Last7Days = "last7Days",
5924
5952
  Last24Hours = "last24Hours"
5925
5953
  }
5954
+ export interface SiteInsightsQueryRangeCustom {
5955
+ from: Timestamp;
5956
+ to: Timestamp;
5957
+ }
5958
+ export type SiteInsightsQueryRange = SiteInsightsQueryRangePreset | SiteInsightsQueryRangeCustom;
5926
5959
  export interface SiteInsightsQueryEventsAggregation {
5927
5960
  select?: SiteInsightsQueryEventsColumn[];
5928
5961
  where?: SiteInsightsQueryEventsFilter[];
@@ -6896,6 +6929,10 @@ export interface TranslationChannel {
6896
6929
  channel: 'translation';
6897
6930
  translation: string;
6898
6931
  }
6932
+ export interface TranslationRunChannel {
6933
+ channel: 'translation-run';
6934
+ translation: string;
6935
+ }
6899
6936
  /** Subscription channel for an agent task. */
6900
6937
  export interface AgentTaskChannel {
6901
6938
  channel: 'agent-task';
@@ -6911,7 +6948,16 @@ export interface AgentTasksChannel {
6911
6948
  organization: string;
6912
6949
  }
6913
6950
  /** Channel to subscribe to for realtime updates. */
6914
- 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 | AgentTaskChannel | AgentTasksChannel;
6951
+ 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;
6952
+ export interface TranslationRunChannelData {
6953
+ channel: 'translation-run';
6954
+ data: {
6955
+ /** The progress of the translation run, between 0 and 100. */
6956
+ progress: number;
6957
+ startedAt: Timestamp;
6958
+ updatedAt: Timestamp;
6959
+ };
6960
+ }
6915
6961
  export interface GitSyncOperationChannelData {
6916
6962
  channel: 'space-gitsync-operation';
6917
6963
  data: GitSyncOperation;
@@ -6950,7 +6996,7 @@ export interface APIChannelMutationData {
6950
6996
  };
6951
6997
  }
6952
6998
  /** Data passed through a realtime channel */
6953
- export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
6999
+ export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | TranslationRunChannelData | APIChannelMutationData;
6954
7000
  export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
6955
7001
  type: 'object';
6956
7002
  description: string;
@@ -7051,7 +7097,6 @@ export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
7051
7097
  export type SpaceVisitorAuth = VisitorAuth;
7052
7098
  export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
7053
7099
  export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
7054
- export type ApplyTemplate = ApplySpaceTemplate;
7055
7100
  export type UserPermissions = Index;
7056
7101
  export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
7057
7102
  export type OpenAPISpecSourceURL = URL;
@@ -7867,6 +7912,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7867
7912
  }, params?: RequestParams) => Promise<HttpResponse<{
7868
7913
  pages: RevisionPage[];
7869
7914
  files: RevisionFile[];
7915
+ reusableContents: RevisionReusableContent[];
7870
7916
  }, any>>;
7871
7917
  /**
7872
7918
  * No description
@@ -12092,7 +12138,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12092
12138
  * @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
12093
12139
  * @secure
12094
12140
  */
12095
- streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
12141
+ streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, query?: {
12142
+ /** The ID of the space to filter the recommended questions for. */
12143
+ spaceId?: string;
12144
+ }, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
12096
12145
  /**
12097
12146
  * No description
12098
12147
  *
package/dist/index.cjs CHANGED
@@ -260,7 +260,7 @@ __export(src_exports, {
260
260
  SiteInsightsEventType: () => SiteInsightsEventType,
261
261
  SiteInsightsLinkPosition: () => SiteInsightsLinkPosition,
262
262
  SiteInsightsQueryOperator: () => SiteInsightsQueryOperator,
263
- SiteInsightsQueryRange: () => SiteInsightsQueryRange,
263
+ SiteInsightsQueryRangePreset: () => SiteInsightsQueryRangePreset,
264
264
  SiteInsightsTrademarkPlacement: () => SiteInsightsTrademarkPlacement,
265
265
  SiteInsightsVisitorBot: () => SiteInsightsVisitorBot,
266
266
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
@@ -279,7 +279,7 @@ module.exports = __toCommonJS(src_exports);
279
279
 
280
280
  // package.json
281
281
  var name = "@gitbook/api";
282
- var version = "0.129.0";
282
+ var version = "0.130.0";
283
283
 
284
284
  // src/client.ts
285
285
  var import_event_iterator = __toESM(require_node(), 1);
@@ -983,14 +983,14 @@ var SiteInsightsQueryOperator = /* @__PURE__ */ ((SiteInsightsQueryOperator2) =>
983
983
  SiteInsightsQueryOperator2["LessThanOrEqual"] = "lessThanOrEqual";
984
984
  return SiteInsightsQueryOperator2;
985
985
  })(SiteInsightsQueryOperator || {});
986
- var SiteInsightsQueryRange = /* @__PURE__ */ ((SiteInsightsQueryRange2) => {
987
- SiteInsightsQueryRange2["LastYear"] = "lastYear";
988
- SiteInsightsQueryRange2["Last3Months"] = "last3Months";
989
- SiteInsightsQueryRange2["Last30Days"] = "last30Days";
990
- SiteInsightsQueryRange2["Last7Days"] = "last7Days";
991
- SiteInsightsQueryRange2["Last24Hours"] = "last24Hours";
992
- return SiteInsightsQueryRange2;
993
- })(SiteInsightsQueryRange || {});
986
+ var SiteInsightsQueryRangePreset = /* @__PURE__ */ ((SiteInsightsQueryRangePreset2) => {
987
+ SiteInsightsQueryRangePreset2["LastYear"] = "lastYear";
988
+ SiteInsightsQueryRangePreset2["Last3Months"] = "last3Months";
989
+ SiteInsightsQueryRangePreset2["Last30Days"] = "last30Days";
990
+ SiteInsightsQueryRangePreset2["Last7Days"] = "last7Days";
991
+ SiteInsightsQueryRangePreset2["Last24Hours"] = "last24Hours";
992
+ return SiteInsightsQueryRangePreset2;
993
+ })(SiteInsightsQueryRangePreset || {});
994
994
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
995
995
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
996
996
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -3408,9 +3408,10 @@ var Api = class extends HttpClient {
3408
3408
  type: "application/json" /* Json */,
3409
3409
  ...params
3410
3410
  }),
3411
- streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
3411
+ streamRecommendedQuestionsInSite: (organizationId, siteId, query, params = {}) => this.streamRequest({
3412
3412
  path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
3413
3413
  method: "GET",
3414
+ query,
3414
3415
  secure: true,
3415
3416
  ...params
3416
3417
  }),
@@ -3872,7 +3873,7 @@ var GitBookAPI = class extends Api {
3872
3873
  SiteInsightsEventType,
3873
3874
  SiteInsightsLinkPosition,
3874
3875
  SiteInsightsQueryOperator,
3875
- SiteInsightsQueryRange,
3876
+ SiteInsightsQueryRangePreset,
3876
3877
  SiteInsightsTrademarkPlacement,
3877
3878
  SiteInsightsVisitorBot,
3878
3879
  SiteInsightsVisitorBrowser,
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.129.0";
175
+ var version = "0.130.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -876,14 +876,14 @@ var SiteInsightsQueryOperator = /* @__PURE__ */ ((SiteInsightsQueryOperator2) =>
876
876
  SiteInsightsQueryOperator2["LessThanOrEqual"] = "lessThanOrEqual";
877
877
  return SiteInsightsQueryOperator2;
878
878
  })(SiteInsightsQueryOperator || {});
879
- var SiteInsightsQueryRange = /* @__PURE__ */ ((SiteInsightsQueryRange2) => {
880
- SiteInsightsQueryRange2["LastYear"] = "lastYear";
881
- SiteInsightsQueryRange2["Last3Months"] = "last3Months";
882
- SiteInsightsQueryRange2["Last30Days"] = "last30Days";
883
- SiteInsightsQueryRange2["Last7Days"] = "last7Days";
884
- SiteInsightsQueryRange2["Last24Hours"] = "last24Hours";
885
- return SiteInsightsQueryRange2;
886
- })(SiteInsightsQueryRange || {});
879
+ var SiteInsightsQueryRangePreset = /* @__PURE__ */ ((SiteInsightsQueryRangePreset2) => {
880
+ SiteInsightsQueryRangePreset2["LastYear"] = "lastYear";
881
+ SiteInsightsQueryRangePreset2["Last3Months"] = "last3Months";
882
+ SiteInsightsQueryRangePreset2["Last30Days"] = "last30Days";
883
+ SiteInsightsQueryRangePreset2["Last7Days"] = "last7Days";
884
+ SiteInsightsQueryRangePreset2["Last24Hours"] = "last24Hours";
885
+ return SiteInsightsQueryRangePreset2;
886
+ })(SiteInsightsQueryRangePreset || {});
887
887
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
888
888
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
889
889
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -3301,9 +3301,10 @@ var Api = class extends HttpClient {
3301
3301
  type: "application/json" /* Json */,
3302
3302
  ...params
3303
3303
  }),
3304
- streamRecommendedQuestionsInSite: (organizationId, siteId, params = {}) => this.streamRequest({
3304
+ streamRecommendedQuestionsInSite: (organizationId, siteId, query, params = {}) => this.streamRequest({
3305
3305
  path: `/orgs/${organizationId}/sites/${siteId}/ask/questions`,
3306
3306
  method: "GET",
3307
+ query,
3307
3308
  secure: true,
3308
3309
  ...params
3309
3310
  }),
@@ -3764,7 +3765,7 @@ export {
3764
3765
  SiteInsightsEventType,
3765
3766
  SiteInsightsLinkPosition,
3766
3767
  SiteInsightsQueryOperator,
3767
- SiteInsightsQueryRange,
3768
+ SiteInsightsQueryRangePreset,
3768
3769
  SiteInsightsTrademarkPlacement,
3769
3770
  SiteInsightsVisitorBot,
3770
3771
  SiteInsightsVisitorBrowser,
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.129.0",
7
+ "version": "0.130.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -2258,11 +2258,18 @@
2258
2258
  "items": {
2259
2259
  "$ref": "#/components/schemas/RevisionFile"
2260
2260
  }
2261
+ },
2262
+ "reusableContents": {
2263
+ "type": "array",
2264
+ "items": {
2265
+ "$ref": "#/components/schemas/RevisionReusableContent"
2266
+ }
2261
2267
  }
2262
2268
  },
2263
2269
  "required": [
2264
2270
  "pages",
2265
- "files"
2271
+ "files",
2272
+ "reusableContents"
2266
2273
  ]
2267
2274
  }
2268
2275
  }
@@ -13872,6 +13879,14 @@
13872
13879
  },
13873
13880
  {
13874
13881
  "$ref": "#/components/parameters/siteId"
13882
+ },
13883
+ {
13884
+ "name": "spaceId",
13885
+ "in": "query",
13886
+ "description": "The ID of the space to filter the recommended questions for.",
13887
+ "schema": {
13888
+ "type": "string"
13889
+ }
13875
13890
  }
13876
13891
  ],
13877
13892
  "responses": {
@@ -18169,7 +18184,12 @@
18169
18184
  "red",
18170
18185
  "orange",
18171
18186
  "yellow",
18172
- "purple"
18187
+ "purple",
18188
+ "$primary",
18189
+ "$info",
18190
+ "$success",
18191
+ "$warning",
18192
+ "$danger"
18173
18193
  ]
18174
18194
  },
18175
18195
  "background": {
@@ -18181,7 +18201,12 @@
18181
18201
  "red",
18182
18202
  "orange",
18183
18203
  "yellow",
18184
- "purple"
18204
+ "purple",
18205
+ "$primary",
18206
+ "$info",
18207
+ "$success",
18208
+ "$warning",
18209
+ "$danger"
18185
18210
  ]
18186
18211
  }
18187
18212
  },
@@ -22025,10 +22050,6 @@
22025
22050
  "description": {
22026
22051
  "type": "string"
22027
22052
  },
22028
- "documentId": {
22029
- "type": "string",
22030
- "description": "ID of the document with the page body. If undefined, the page is empty."
22031
- },
22032
22053
  "pages": {
22033
22054
  "type": "array",
22034
22055
  "items": {
@@ -22897,24 +22918,55 @@
22897
22918
  ]
22898
22919
  },
22899
22920
  "RevisionReusableContent": {
22900
- "type": "object",
22901
- "properties": {
22902
- "id": {
22903
- "type": "string"
22904
- },
22905
- "title": {
22906
- "type": "string"
22907
- },
22908
- "document": {
22909
- "type": "string"
22921
+ "allOf": [
22922
+ {
22923
+ "type": "object",
22924
+ "properties": {
22925
+ "id": {
22926
+ "type": "string"
22927
+ },
22928
+ "title": {
22929
+ "type": "string"
22930
+ },
22931
+ "git": {
22932
+ "$ref": "#/components/schemas/GitSyncBlob"
22933
+ }
22934
+ },
22935
+ "required": [
22936
+ "id",
22937
+ "title"
22938
+ ]
22910
22939
  },
22911
- "git": {
22912
- "$ref": "#/components/schemas/GitSyncBlob"
22940
+ {
22941
+ "oneOf": [
22942
+ {
22943
+ "type": "object",
22944
+ "description": "Defined when the reusable content was generated by a computed content.",
22945
+ "properties": {
22946
+ "computed": {
22947
+ "$ref": "#/components/schemas/ComputedContentSourceDocument"
22948
+ },
22949
+ "computedSeed": {
22950
+ "type": "string",
22951
+ "description": "Seed to use for the generation of IDs."
22952
+ }
22953
+ },
22954
+ "required": [
22955
+ "computed",
22956
+ "computedSeed"
22957
+ ]
22958
+ },
22959
+ {
22960
+ "type": "object",
22961
+ "properties": {
22962
+ "document": {
22963
+ "type": "string",
22964
+ "description": "ID of the document with the content body. If undefined, the reusable content is empty."
22965
+ }
22966
+ }
22967
+ }
22968
+ ]
22913
22969
  }
22914
- },
22915
- "required": [
22916
- "id",
22917
- "title"
22918
22970
  ]
22919
22971
  },
22920
22972
  "GitSyncCommit": {
@@ -23330,12 +23382,28 @@
23330
23382
  }
23331
23383
  }
23332
23384
  },
23385
+ "SpaceTemplateParams": {
23386
+ "type": "object",
23387
+ "description": "Parameters for a space template",
23388
+ "properties": {
23389
+ "contentRefs": {
23390
+ "type": "object",
23391
+ "additionalProperties": {
23392
+ "type": "object",
23393
+ "$ref": "#/components/schemas/ContentRef"
23394
+ }
23395
+ }
23396
+ }
23397
+ },
23333
23398
  "ApplySpaceTemplate": {
23334
23399
  "type": "object",
23335
23400
  "properties": {
23336
23401
  "id": {
23337
23402
  "type": "string",
23338
23403
  "description": "The ID of the template to use for the space"
23404
+ },
23405
+ "params": {
23406
+ "$ref": "#/components/schemas/SpaceTemplateParams"
23339
23407
  }
23340
23408
  },
23341
23409
  "required": [
@@ -24452,6 +24520,22 @@
24452
24520
  "$ref": "#/components/schemas/EmojiReaction"
24453
24521
  }
24454
24522
  },
24523
+ "TableCellTarget": {
24524
+ "type": "object",
24525
+ "description": "Details about the table cell this comment is attached to, if any.",
24526
+ "properties": {
24527
+ "record": {
24528
+ "type": "string"
24529
+ },
24530
+ "definition": {
24531
+ "type": "string"
24532
+ }
24533
+ },
24534
+ "required": [
24535
+ "record",
24536
+ "definition"
24537
+ ]
24538
+ },
24455
24539
  "Comment": {
24456
24540
  "allOf": [
24457
24541
  {
@@ -24511,6 +24595,9 @@
24511
24595
  "id"
24512
24596
  ]
24513
24597
  },
24598
+ "tableCell": {
24599
+ "$ref": "#/components/schemas/TableCellTarget"
24600
+ },
24514
24601
  "changeRequest": {
24515
24602
  "description": "The change request containing this comment, if the comment was made inside a change request.",
24516
24603
  "type": "string"
@@ -24823,6 +24910,9 @@
24823
24910
  "body": {
24824
24911
  "description": "The content of the comment.",
24825
24912
  "$ref": "#/components/schemas/Document"
24913
+ },
24914
+ "tableCell": {
24915
+ "$ref": "#/components/schemas/TableCellTarget"
24826
24916
  }
24827
24917
  },
24828
24918
  "required": [
@@ -30628,27 +30718,65 @@
30628
30718
  ]
30629
30719
  },
30630
30720
  "CreateSpace": {
30631
- "type": "object",
30632
- "properties": {
30633
- "title": {
30634
- "type": "string",
30635
- "maxLength": 50
30636
- },
30637
- "emoji": {
30638
- "$ref": "#/components/schemas/Emoji"
30639
- },
30640
- "parent": {
30641
- "type": "string",
30642
- "description": "ID of a parent collection"
30643
- },
30644
- "editMode": {
30645
- "$ref": "#/components/schemas/SpaceEditMode",
30646
- "description": "The edit mode of the space"
30721
+ "allOf": [
30722
+ {
30723
+ "type": "object",
30724
+ "properties": {
30725
+ "title": {
30726
+ "type": "string",
30727
+ "maxLength": 50
30728
+ },
30729
+ "emoji": {
30730
+ "$ref": "#/components/schemas/Emoji"
30731
+ },
30732
+ "parent": {
30733
+ "type": "string",
30734
+ "description": "ID of a parent collection"
30735
+ },
30736
+ "editMode": {
30737
+ "$ref": "#/components/schemas/SpaceEditMode",
30738
+ "description": "The edit mode of the space"
30739
+ }
30740
+ }
30647
30741
  },
30648
- "template": {
30649
- "$ref": "#/components/schemas/ApplySpaceTemplate"
30742
+ {
30743
+ "anyOf": [
30744
+ {
30745
+ "type": "object",
30746
+ "properties": {},
30747
+ "additionalProperties": true
30748
+ },
30749
+ {
30750
+ "oneOf": [
30751
+ {
30752
+ "type": "object",
30753
+ "description": "Create a space from a template",
30754
+ "required": [
30755
+ "template"
30756
+ ],
30757
+ "properties": {
30758
+ "template": {
30759
+ "$ref": "#/components/schemas/ApplySpaceTemplate"
30760
+ }
30761
+ }
30762
+ },
30763
+ {
30764
+ "type": "object",
30765
+ "description": "Create a space from a computed content source",
30766
+ "required": [
30767
+ "computedSource"
30768
+ ],
30769
+ "properties": {
30770
+ "computedSource": {
30771
+ "$ref": "#/components/schemas/ComputedContentSourceRevision"
30772
+ }
30773
+ }
30774
+ }
30775
+ ]
30776
+ }
30777
+ ]
30650
30778
  }
30651
- }
30779
+ ]
30652
30780
  },
30653
30781
  "SAMLProviderLabel": {
30654
30782
  "type": "string",
@@ -33886,6 +34014,10 @@
33886
34014
  "type": "string",
33887
34015
  "description": "The ID of the space being accessed."
33888
34016
  },
34017
+ "revisionId": {
34018
+ "type": "string",
34019
+ "description": "The ID of the revision within which the page content is being fetched."
34020
+ },
33889
34021
  "page": {
33890
34022
  "$ref": "#/components/schemas/ChangedRevisionPage"
33891
34023
  }
@@ -33893,7 +34025,8 @@
33893
34025
  "required": [
33894
34026
  "tool",
33895
34027
  "spaceId",
33896
- "page"
34028
+ "page",
34029
+ "revisionId"
33897
34030
  ]
33898
34031
  },
33899
34032
  "AIToolCallGetPages": {
@@ -33908,11 +34041,16 @@
33908
34041
  "spaceId": {
33909
34042
  "type": "string",
33910
34043
  "description": "The ID of the space being accessed."
34044
+ },
34045
+ "revisionId": {
34046
+ "type": "string",
34047
+ "description": "The revision ID of the space."
33911
34048
  }
33912
34049
  },
33913
34050
  "required": [
33914
34051
  "tool",
33915
- "spaceId"
34052
+ "spaceId",
34053
+ "revisionId"
33916
34054
  ]
33917
34055
  },
33918
34056
  "AIToolCallSearchResult": {
@@ -33927,6 +34065,10 @@
33927
34065
  "type": "string",
33928
34066
  "description": "The ID of the page"
33929
34067
  },
34068
+ "revisionId": {
34069
+ "type": "string",
34070
+ "description": "The revision ID of the result"
34071
+ },
33930
34072
  "anchor": {
33931
34073
  "type": "string",
33932
34074
  "description": "The anchor of the result"
@@ -33943,6 +34085,7 @@
33943
34085
  "required": [
33944
34086
  "spaceId",
33945
34087
  "pageId",
34088
+ "revisionId",
33946
34089
  "title"
33947
34090
  ]
33948
34091
  },
@@ -36639,7 +36782,7 @@
36639
36782
  }
36640
36783
  ]
36641
36784
  },
36642
- "SiteInsightsQueryRange": {
36785
+ "SiteInsightsQueryRangePreset": {
36643
36786
  "type": "string",
36644
36787
  "enum": [
36645
36788
  "lastYear",
@@ -36649,6 +36792,31 @@
36649
36792
  "last24Hours"
36650
36793
  ]
36651
36794
  },
36795
+ "SiteInsightsQueryRangeCustom": {
36796
+ "type": "object",
36797
+ "properties": {
36798
+ "from": {
36799
+ "$ref": "#/components/schemas/Timestamp"
36800
+ },
36801
+ "to": {
36802
+ "$ref": "#/components/schemas/Timestamp"
36803
+ }
36804
+ },
36805
+ "required": [
36806
+ "from",
36807
+ "to"
36808
+ ]
36809
+ },
36810
+ "SiteInsightsQueryRange": {
36811
+ "oneOf": [
36812
+ {
36813
+ "$ref": "#/components/schemas/SiteInsightsQueryRangePreset"
36814
+ },
36815
+ {
36816
+ "$ref": "#/components/schemas/SiteInsightsQueryRangeCustom"
36817
+ }
36818
+ ]
36819
+ },
36652
36820
  "SiteInsightsQueryEventsAggregation": {
36653
36821
  "type": "object",
36654
36822
  "required": [
@@ -39844,6 +40012,24 @@
39844
40012
  "translation"
39845
40013
  ]
39846
40014
  },
40015
+ "TranslationRunChannel": {
40016
+ "type": "object",
40017
+ "properties": {
40018
+ "channel": {
40019
+ "type": "string",
40020
+ "enum": [
40021
+ "translation-run"
40022
+ ]
40023
+ },
40024
+ "translation": {
40025
+ "type": "string"
40026
+ }
40027
+ },
40028
+ "required": [
40029
+ "channel",
40030
+ "translation"
40031
+ ]
40032
+ },
39847
40033
  "AgentTaskChannel": {
39848
40034
  "type": "object",
39849
40035
  "description": "Subscription channel for an agent task.",
@@ -40090,6 +40276,9 @@
40090
40276
  {
40091
40277
  "$ref": "#/components/schemas/TranslationChannel"
40092
40278
  },
40279
+ {
40280
+ "$ref": "#/components/schemas/TranslationRunChannel"
40281
+ },
40093
40282
  {
40094
40283
  "$ref": "#/components/schemas/AgentTaskChannel"
40095
40284
  },
@@ -40101,6 +40290,41 @@
40101
40290
  "propertyName": "channel"
40102
40291
  }
40103
40292
  },
40293
+ "TranslationRunChannelData": {
40294
+ "type": "object",
40295
+ "properties": {
40296
+ "channel": {
40297
+ "type": "string",
40298
+ "enum": [
40299
+ "translation-run"
40300
+ ]
40301
+ },
40302
+ "data": {
40303
+ "type": "object",
40304
+ "properties": {
40305
+ "progress": {
40306
+ "type": "number",
40307
+ "description": "The progress of the translation run, between 0 and 100."
40308
+ },
40309
+ "startedAt": {
40310
+ "$ref": "#/components/schemas/Timestamp"
40311
+ },
40312
+ "updatedAt": {
40313
+ "$ref": "#/components/schemas/Timestamp"
40314
+ }
40315
+ },
40316
+ "required": [
40317
+ "progress",
40318
+ "startedAt",
40319
+ "updatedAt"
40320
+ ]
40321
+ }
40322
+ },
40323
+ "required": [
40324
+ "channel",
40325
+ "data"
40326
+ ]
40327
+ },
40104
40328
  "GitSyncOperationChannelData": {
40105
40329
  "type": "object",
40106
40330
  "properties": {
@@ -40253,6 +40477,9 @@
40253
40477
  {
40254
40478
  "$ref": "#/components/schemas/OrganizationAIIndexationChannelData"
40255
40479
  },
40480
+ {
40481
+ "$ref": "#/components/schemas/TranslationRunChannelData"
40482
+ },
40256
40483
  {
40257
40484
  "$ref": "#/components/schemas/APIChannelMutationData"
40258
40485
  }
@@ -40610,9 +40837,6 @@
40610
40837
  "SpaceVisitorAuthIntegrationBackend": {
40611
40838
  "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
40612
40839
  },
40613
- "ApplyTemplate": {
40614
- "$ref": "#/components/schemas/ApplySpaceTemplate"
40615
- },
40616
40840
  "UserPermissions": {
40617
40841
  "$ref": "#/components/schemas/_index"
40618
40842
  },
package/spec/openapi.yaml CHANGED
@@ -1499,9 +1499,14 @@ paths:
1499
1499
  type: array
1500
1500
  items:
1501
1501
  $ref: "#/components/schemas/RevisionFile"
1502
+ reusableContents:
1503
+ type: array
1504
+ items:
1505
+ $ref: "#/components/schemas/RevisionReusableContent"
1502
1506
  required:
1503
1507
  - pages
1504
1508
  - files
1509
+ - reusableContents
1505
1510
  "/spaces/{spaceId}/documents/{documentId}":
1506
1511
  get:
1507
1512
  operationId: getDocumentById
@@ -7847,6 +7852,11 @@ paths:
7847
7852
  parameters:
7848
7853
  - $ref: "#/components/parameters/organizationId"
7849
7854
  - $ref: "#/components/parameters/siteId"
7855
+ - name: spaceId
7856
+ in: query
7857
+ description: The ID of the space to filter the recommended questions for.
7858
+ schema:
7859
+ type: string
7850
7860
  responses:
7851
7861
  "200":
7852
7862
  description: OK
@@ -10583,6 +10593,11 @@ components:
10583
10593
  - orange
10584
10594
  - yellow
10585
10595
  - purple
10596
+ - $primary
10597
+ - $info
10598
+ - $success
10599
+ - $warning
10600
+ - $danger
10586
10601
  background:
10587
10602
  type: string
10588
10603
  enum:
@@ -10593,6 +10608,11 @@ components:
10593
10608
  - orange
10594
10609
  - yellow
10595
10610
  - purple
10611
+ - $primary
10612
+ - $info
10613
+ - $success
10614
+ - $warning
10615
+ - $danger
10596
10616
  required:
10597
10617
  - text
10598
10618
  - background
@@ -12943,9 +12963,6 @@ components:
12943
12963
  type: string
12944
12964
  description:
12945
12965
  type: string
12946
- documentId:
12947
- type: string
12948
- description: ID of the document with the page body. If undefined, the page is empty.
12949
12966
  pages:
12950
12967
  type: array
12951
12968
  items:
@@ -13487,19 +13504,35 @@ components:
13487
13504
  - downloadURL
13488
13505
  - size
13489
13506
  RevisionReusableContent:
13490
- type: object
13491
- properties:
13492
- id:
13493
- type: string
13494
- title:
13495
- type: string
13496
- document:
13497
- type: string
13498
- git:
13499
- $ref: "#/components/schemas/GitSyncBlob"
13500
- required:
13501
- - id
13502
- - title
13507
+ allOf:
13508
+ - type: object
13509
+ properties:
13510
+ id:
13511
+ type: string
13512
+ title:
13513
+ type: string
13514
+ git:
13515
+ $ref: "#/components/schemas/GitSyncBlob"
13516
+ required:
13517
+ - id
13518
+ - title
13519
+ - oneOf:
13520
+ - type: object
13521
+ description: Defined when the reusable content was generated by a computed content.
13522
+ properties:
13523
+ computed:
13524
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
13525
+ computedSeed:
13526
+ type: string
13527
+ description: Seed to use for the generation of IDs.
13528
+ required:
13529
+ - computed
13530
+ - computedSeed
13531
+ - type: object
13532
+ properties:
13533
+ document:
13534
+ type: string
13535
+ description: ID of the document with the content body. If undefined, the reusable content is empty.
13503
13536
  GitSyncCommit:
13504
13537
  type: object
13505
13538
  properties:
@@ -13779,12 +13812,23 @@ components:
13779
13812
  totalResources:
13780
13813
  type: number
13781
13814
  description: How many resources were processed
13815
+ SpaceTemplateParams:
13816
+ type: object
13817
+ description: Parameters for a space template
13818
+ properties:
13819
+ contentRefs:
13820
+ type: object
13821
+ additionalProperties:
13822
+ type: object
13823
+ $ref: "#/components/schemas/ContentRef"
13782
13824
  ApplySpaceTemplate:
13783
13825
  type: object
13784
13826
  properties:
13785
13827
  id:
13786
13828
  type: string
13787
13829
  description: The ID of the template to use for the space
13830
+ params:
13831
+ $ref: "#/components/schemas/SpaceTemplateParams"
13788
13832
  required:
13789
13833
  - id
13790
13834
  OrganizationTitle:
@@ -14578,6 +14622,17 @@ components:
14578
14622
  type: array
14579
14623
  items:
14580
14624
  $ref: "#/components/schemas/EmojiReaction"
14625
+ TableCellTarget:
14626
+ type: object
14627
+ description: Details about the table cell this comment is attached to, if any.
14628
+ properties:
14629
+ record:
14630
+ type: string
14631
+ definition:
14632
+ type: string
14633
+ required:
14634
+ - record
14635
+ - definition
14581
14636
  Comment:
14582
14637
  allOf:
14583
14638
  - type: object
@@ -14622,6 +14677,8 @@ components:
14622
14677
  type: string
14623
14678
  required:
14624
14679
  - id
14680
+ tableCell:
14681
+ $ref: "#/components/schemas/TableCellTarget"
14625
14682
  changeRequest:
14626
14683
  description: The change request containing this comment, if the comment was made inside a change request.
14627
14684
  type: string
@@ -14835,6 +14892,8 @@ components:
14835
14892
  body:
14836
14893
  description: The content of the comment.
14837
14894
  $ref: "#/components/schemas/Document"
14895
+ tableCell:
14896
+ $ref: "#/components/schemas/TableCellTarget"
14838
14897
  required:
14839
14898
  - body
14840
14899
  UpdateCommentSchema:
@@ -18662,21 +18721,39 @@ components:
18662
18721
  - title
18663
18722
  - pages
18664
18723
  CreateSpace:
18665
- type: object
18666
- properties:
18667
- title:
18668
- type: string
18669
- maxLength: 50
18670
- emoji:
18671
- $ref: "#/components/schemas/Emoji"
18672
- parent:
18673
- type: string
18674
- description: ID of a parent collection
18675
- editMode:
18676
- $ref: "#/components/schemas/SpaceEditMode"
18677
- description: The edit mode of the space
18678
- template:
18679
- $ref: "#/components/schemas/ApplySpaceTemplate"
18724
+ allOf:
18725
+ - type: object
18726
+ properties:
18727
+ title:
18728
+ type: string
18729
+ maxLength: 50
18730
+ emoji:
18731
+ $ref: "#/components/schemas/Emoji"
18732
+ parent:
18733
+ type: string
18734
+ description: ID of a parent collection
18735
+ editMode:
18736
+ $ref: "#/components/schemas/SpaceEditMode"
18737
+ description: The edit mode of the space
18738
+ - anyOf:
18739
+ - type: object
18740
+ properties: {}
18741
+ additionalProperties: true
18742
+ - oneOf:
18743
+ - type: object
18744
+ description: Create a space from a template
18745
+ required:
18746
+ - template
18747
+ properties:
18748
+ template:
18749
+ $ref: "#/components/schemas/ApplySpaceTemplate"
18750
+ - type: object
18751
+ description: Create a space from a computed content source
18752
+ required:
18753
+ - computedSource
18754
+ properties:
18755
+ computedSource:
18756
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
18680
18757
  SAMLProviderLabel:
18681
18758
  type: string
18682
18759
  minLength: 1
@@ -20984,12 +21061,16 @@ components:
20984
21061
  spaceId:
20985
21062
  type: string
20986
21063
  description: The ID of the space being accessed.
21064
+ revisionId:
21065
+ type: string
21066
+ description: The ID of the revision within which the page content is being fetched.
20987
21067
  page:
20988
21068
  $ref: "#/components/schemas/ChangedRevisionPage"
20989
21069
  required:
20990
21070
  - tool
20991
21071
  - spaceId
20992
21072
  - page
21073
+ - revisionId
20993
21074
  AIToolCallGetPages:
20994
21075
  type: object
20995
21076
  properties:
@@ -21000,9 +21081,13 @@ components:
21000
21081
  spaceId:
21001
21082
  type: string
21002
21083
  description: The ID of the space being accessed.
21084
+ revisionId:
21085
+ type: string
21086
+ description: The revision ID of the space.
21003
21087
  required:
21004
21088
  - tool
21005
21089
  - spaceId
21090
+ - revisionId
21006
21091
  AIToolCallSearchResult:
21007
21092
  type: object
21008
21093
  description: Result of a search
@@ -21013,6 +21098,9 @@ components:
21013
21098
  pageId:
21014
21099
  type: string
21015
21100
  description: The ID of the page
21101
+ revisionId:
21102
+ type: string
21103
+ description: The revision ID of the result
21016
21104
  anchor:
21017
21105
  type: string
21018
21106
  description: The anchor of the result
@@ -21025,6 +21113,7 @@ components:
21025
21113
  required:
21026
21114
  - spaceId
21027
21115
  - pageId
21116
+ - revisionId
21028
21117
  - title
21029
21118
  AIToolCallSearch:
21030
21119
  type: object
@@ -22717,7 +22806,7 @@ components:
22717
22806
  properties:
22718
22807
  operator:
22719
22808
  $ref: "#/components/schemas/SiteInsightsQueryOperator"
22720
- SiteInsightsQueryRange:
22809
+ SiteInsightsQueryRangePreset:
22721
22810
  type: string
22722
22811
  enum:
22723
22812
  - lastYear
@@ -22725,6 +22814,20 @@ components:
22725
22814
  - last30Days
22726
22815
  - last7Days
22727
22816
  - last24Hours
22817
+ SiteInsightsQueryRangeCustom:
22818
+ type: object
22819
+ properties:
22820
+ from:
22821
+ $ref: "#/components/schemas/Timestamp"
22822
+ to:
22823
+ $ref: "#/components/schemas/Timestamp"
22824
+ required:
22825
+ - from
22826
+ - to
22827
+ SiteInsightsQueryRange:
22828
+ oneOf:
22829
+ - $ref: "#/components/schemas/SiteInsightsQueryRangePreset"
22830
+ - $ref: "#/components/schemas/SiteInsightsQueryRangeCustom"
22728
22831
  SiteInsightsQueryEventsAggregation:
22729
22832
  type: object
22730
22833
  required:
@@ -24892,6 +24995,18 @@ components:
24892
24995
  required:
24893
24996
  - channel
24894
24997
  - translation
24998
+ TranslationRunChannel:
24999
+ type: object
25000
+ properties:
25001
+ channel:
25002
+ type: string
25003
+ enum:
25004
+ - translation-run
25005
+ translation:
25006
+ type: string
25007
+ required:
25008
+ - channel
25009
+ - translation
24895
25010
  AgentTaskChannel:
24896
25011
  type: object
24897
25012
  description: Subscription channel for an agent task.
@@ -24993,10 +25108,35 @@ components:
24993
25108
  - $ref: "#/components/schemas/OpenAPISpecChannel"
24994
25109
  - $ref: "#/components/schemas/SubdomainChannel"
24995
25110
  - $ref: "#/components/schemas/TranslationChannel"
25111
+ - $ref: "#/components/schemas/TranslationRunChannel"
24996
25112
  - $ref: "#/components/schemas/AgentTaskChannel"
24997
25113
  - $ref: "#/components/schemas/AgentTasksChannel"
24998
25114
  discriminator:
24999
25115
  propertyName: channel
25116
+ TranslationRunChannelData:
25117
+ type: object
25118
+ properties:
25119
+ channel:
25120
+ type: string
25121
+ enum:
25122
+ - translation-run
25123
+ data:
25124
+ type: object
25125
+ properties:
25126
+ progress:
25127
+ type: number
25128
+ description: The progress of the translation run, between 0 and 100.
25129
+ startedAt:
25130
+ $ref: "#/components/schemas/Timestamp"
25131
+ updatedAt:
25132
+ $ref: "#/components/schemas/Timestamp"
25133
+ required:
25134
+ - progress
25135
+ - startedAt
25136
+ - updatedAt
25137
+ required:
25138
+ - channel
25139
+ - data
25000
25140
  GitSyncOperationChannelData:
25001
25141
  type: object
25002
25142
  properties:
@@ -25097,6 +25237,7 @@ components:
25097
25237
  - $ref: "#/components/schemas/SpaceContentRefsChannelData"
25098
25238
  - $ref: "#/components/schemas/ChangeRequestContentRefsChannelData"
25099
25239
  - $ref: "#/components/schemas/OrganizationAIIndexationChannelData"
25240
+ - $ref: "#/components/schemas/TranslationRunChannelData"
25100
25241
  - $ref: "#/components/schemas/APIChannelMutationData"
25101
25242
  discriminator:
25102
25243
  propertyName: channel
@@ -25339,8 +25480,6 @@ components:
25339
25480
  $ref: "#/components/schemas/VisitorAuthCustomBackend"
25340
25481
  SpaceVisitorAuthIntegrationBackend:
25341
25482
  $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
25342
- ApplyTemplate:
25343
- $ref: "#/components/schemas/ApplySpaceTemplate"
25344
25483
  UserPermissions:
25345
25484
  $ref: "#/components/schemas/_index"
25346
25485
  SiteRedirectDestinationSpace: