@gitbook/api 0.130.0 → 0.132.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
@@ -93,6 +93,45 @@ export declare enum SpaceEditMode {
93
93
  Live = "live",
94
94
  Locked = "locked"
95
95
  }
96
+ export declare enum TranslationLanguage {
97
+ En = "en",
98
+ Fr = "fr",
99
+ De = "de",
100
+ Es = "es",
101
+ It = "it",
102
+ Pt = "pt",
103
+ PtBr = "pt-br",
104
+ Ru = "ru",
105
+ Ja = "ja",
106
+ Zh = "zh",
107
+ Ko = "ko",
108
+ Ar = "ar",
109
+ Hi = "hi",
110
+ Nl = "nl",
111
+ Pl = "pl",
112
+ Tr = "tr",
113
+ Sv = "sv",
114
+ No = "no",
115
+ Da = "da",
116
+ Fi = "fi",
117
+ El = "el",
118
+ Cs = "cs",
119
+ Hu = "hu",
120
+ Ro = "ro",
121
+ Th = "th",
122
+ Vi = "vi",
123
+ Id = "id",
124
+ Ms = "ms",
125
+ He = "he",
126
+ Uk = "uk",
127
+ Sk = "sk",
128
+ Bg = "bg",
129
+ Hr = "hr",
130
+ Lt = "lt",
131
+ Lv = "lv",
132
+ Et = "et",
133
+ Sl = "sl"
134
+ }
96
135
  /** The provider of the Git Sync installation. */
97
136
  export declare enum GitSyncProvider {
98
137
  Github = "github",
@@ -203,6 +242,7 @@ export interface Space {
203
242
  organization: string;
204
243
  /** ID of the parent collection. */
205
244
  parent?: string;
245
+ language?: TranslationLanguage;
206
246
  gitSync?: GitSyncState;
207
247
  visitorAuth?: VisitorAuth;
208
248
  /** ID of the active revision in the space. */
@@ -1663,7 +1703,8 @@ export declare enum BillingProduct {
1663
1703
  Community2024 = "community_2024",
1664
1704
  Free = "free",
1665
1705
  Plus = "plus",
1666
- Pro = "pro"
1706
+ Pro = "pro",
1707
+ Internal = "internal"
1667
1708
  }
1668
1709
  /** Interval for a billing subscription */
1669
1710
  export declare enum BillingInterval {
@@ -1700,6 +1741,9 @@ export interface OrganizationPricing {
1700
1741
  ultimate: OrganizationPricePair;
1701
1742
  };
1702
1743
  }
1744
+ export interface BillingMeterAddon {
1745
+ enabled: boolean;
1746
+ }
1703
1747
  export interface OrganizationBilling {
1704
1748
  /** Interval for a billing subscription */
1705
1749
  interval: BillingInterval;
@@ -1710,6 +1754,8 @@ export interface OrganizationBilling {
1710
1754
  isScheduledToCancel: boolean;
1711
1755
  /** Pricing information for the organization */
1712
1756
  pricing: OrganizationPricing;
1757
+ /** Configuration for the usage-based addons */
1758
+ usageAddons: Record<string, BillingMeterAddon>;
1713
1759
  }
1714
1760
  /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
1715
1761
  export declare enum BillingTrialStatus {
@@ -1814,6 +1860,8 @@ export interface Organization {
1814
1860
  listTeams: boolean;
1815
1861
  /** Can the user list the integrations in the organization. */
1816
1862
  listIntegrations: boolean;
1863
+ /** Can the user list the integration installations in the organization. */
1864
+ listInstallations: boolean;
1817
1865
  };
1818
1866
  }
1819
1867
  export interface ContentLocationRevisionContext {
@@ -4094,10 +4142,10 @@ export declare enum BillingMeter {
4094
4142
  export interface BillingMeterUsage {
4095
4143
  /** Total usage for the current billing period */
4096
4144
  total: number;
4097
- /** Daily usage for the past 30 days */
4098
- daily: {
4145
+ /** Usage entries for the period */
4146
+ entries: {
4099
4147
  date: Timestamp;
4100
- /** Usage value for the day */
4148
+ /** Usage value for the date */
4101
4149
  value: number;
4102
4150
  }[];
4103
4151
  }
@@ -4114,6 +4162,7 @@ export type CreateSpace = {
4114
4162
  emoji?: Emoji;
4115
4163
  /** ID of a parent collection */
4116
4164
  parent?: string;
4165
+ language?: TranslationLanguage;
4117
4166
  /** The edit mode of the space */
4118
4167
  editMode?: SpaceEditMode;
4119
4168
  } & (Record<string, any> | ({
@@ -4551,44 +4600,6 @@ export declare enum TranslationStatus {
4551
4600
  Running = "running",
4552
4601
  Completed = "completed"
4553
4602
  }
4554
- export declare enum TranslationLanguage {
4555
- En = "en",
4556
- Fr = "fr",
4557
- De = "de",
4558
- Es = "es",
4559
- It = "it",
4560
- Pt = "pt",
4561
- Ru = "ru",
4562
- Ja = "ja",
4563
- Zh = "zh",
4564
- Ko = "ko",
4565
- Ar = "ar",
4566
- Hi = "hi",
4567
- Nl = "nl",
4568
- Pl = "pl",
4569
- Tr = "tr",
4570
- Sv = "sv",
4571
- No = "no",
4572
- Da = "da",
4573
- Fi = "fi",
4574
- El = "el",
4575
- Cs = "cs",
4576
- Hu = "hu",
4577
- Ro = "ro",
4578
- Th = "th",
4579
- Vi = "vi",
4580
- Id = "id",
4581
- Ms = "ms",
4582
- He = "he",
4583
- Uk = "uk",
4584
- Sk = "sk",
4585
- Bg = "bg",
4586
- Hr = "hr",
4587
- Lt = "lt",
4588
- Lv = "lv",
4589
- Et = "et",
4590
- Sl = "sl"
4591
- }
4592
4603
  export interface TranslationSource {
4593
4604
  /** ID of the source space */
4594
4605
  space: string;
@@ -4940,7 +4951,8 @@ export declare enum CustomizationLocale {
4940
4951
  De = "de",
4941
4952
  Nl = "nl",
4942
4953
  No = "no",
4943
- PtBr = "pt-br"
4954
+ PtBr = "pt-br",
4955
+ Ru = "ru"
4944
4956
  }
4945
4957
  /**
4946
4958
  * The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
@@ -7274,6 +7286,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7274
7286
  title?: SpaceTitle;
7275
7287
  /** Default level for a piece of content */
7276
7288
  defaultLevel?: DefaultLevel;
7289
+ language?: TranslationLanguage;
7277
7290
  } & ({
7278
7291
  /** Unicode codepoint or character of the emoji */
7279
7292
  emoji: Emoji;
@@ -8836,6 +8849,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8836
8849
  */
8837
8850
  computed?: boolean;
8838
8851
  }, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
8852
+ /**
8853
+ * No description
8854
+ *
8855
+ * @tags space-content
8856
+ * @name GetReusableContentDocumentInRevisionById
8857
+ * @summary Get the document of a reusable content in a revision
8858
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document
8859
+ * @secure
8860
+ */
8861
+ getReusableContentDocumentInRevisionById: (spaceId: string, revisionId: string, reusableContentId: string, query?: {
8862
+ /**
8863
+ * If `true` is passed, the document will be evaluated
8864
+ * @default false
8865
+ */
8866
+ evaluated?: boolean;
8867
+ }, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
8839
8868
  /**
8840
8869
  * No description
8841
8870
  *
@@ -12730,7 +12759,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12730
12759
  * @secure
12731
12760
  */
12732
12761
  getOrganizationsForEmailDomain: (emailDomain: string, params?: RequestParams) => Promise<HttpResponse<{
12733
- organizations?: Organization[];
12762
+ organizations: Organization[];
12734
12763
  }, any>>;
12735
12764
  };
12736
12765
  ads: {
package/dist/index.cjs CHANGED
@@ -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.130.0";
282
+ var version = "0.132.0";
283
283
 
284
284
  // src/client.ts
285
285
  var import_event_iterator = __toESM(require_node(), 1);
@@ -393,6 +393,46 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
393
393
  SpaceEditMode2["Locked"] = "locked";
394
394
  return SpaceEditMode2;
395
395
  })(SpaceEditMode || {});
396
+ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
397
+ TranslationLanguage2["En"] = "en";
398
+ TranslationLanguage2["Fr"] = "fr";
399
+ TranslationLanguage2["De"] = "de";
400
+ TranslationLanguage2["Es"] = "es";
401
+ TranslationLanguage2["It"] = "it";
402
+ TranslationLanguage2["Pt"] = "pt";
403
+ TranslationLanguage2["PtBr"] = "pt-br";
404
+ TranslationLanguage2["Ru"] = "ru";
405
+ TranslationLanguage2["Ja"] = "ja";
406
+ TranslationLanguage2["Zh"] = "zh";
407
+ TranslationLanguage2["Ko"] = "ko";
408
+ TranslationLanguage2["Ar"] = "ar";
409
+ TranslationLanguage2["Hi"] = "hi";
410
+ TranslationLanguage2["Nl"] = "nl";
411
+ TranslationLanguage2["Pl"] = "pl";
412
+ TranslationLanguage2["Tr"] = "tr";
413
+ TranslationLanguage2["Sv"] = "sv";
414
+ TranslationLanguage2["No"] = "no";
415
+ TranslationLanguage2["Da"] = "da";
416
+ TranslationLanguage2["Fi"] = "fi";
417
+ TranslationLanguage2["El"] = "el";
418
+ TranslationLanguage2["Cs"] = "cs";
419
+ TranslationLanguage2["Hu"] = "hu";
420
+ TranslationLanguage2["Ro"] = "ro";
421
+ TranslationLanguage2["Th"] = "th";
422
+ TranslationLanguage2["Vi"] = "vi";
423
+ TranslationLanguage2["Id"] = "id";
424
+ TranslationLanguage2["Ms"] = "ms";
425
+ TranslationLanguage2["He"] = "he";
426
+ TranslationLanguage2["Uk"] = "uk";
427
+ TranslationLanguage2["Sk"] = "sk";
428
+ TranslationLanguage2["Bg"] = "bg";
429
+ TranslationLanguage2["Hr"] = "hr";
430
+ TranslationLanguage2["Lt"] = "lt";
431
+ TranslationLanguage2["Lv"] = "lv";
432
+ TranslationLanguage2["Et"] = "et";
433
+ TranslationLanguage2["Sl"] = "sl";
434
+ return TranslationLanguage2;
435
+ })(TranslationLanguage || {});
396
436
  var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
397
437
  GitSyncProvider2["Github"] = "github";
398
438
  GitSyncProvider2["Gitlab"] = "gitlab";
@@ -475,6 +515,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
475
515
  BillingProduct2["Free"] = "free";
476
516
  BillingProduct2["Plus"] = "plus";
477
517
  BillingProduct2["Pro"] = "pro";
518
+ BillingProduct2["Internal"] = "internal";
478
519
  return BillingProduct2;
479
520
  })(BillingProduct || {});
480
521
  var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
@@ -728,45 +769,6 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
728
769
  TranslationStatus2["Completed"] = "completed";
729
770
  return TranslationStatus2;
730
771
  })(TranslationStatus || {});
731
- var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
732
- TranslationLanguage2["En"] = "en";
733
- TranslationLanguage2["Fr"] = "fr";
734
- TranslationLanguage2["De"] = "de";
735
- TranslationLanguage2["Es"] = "es";
736
- TranslationLanguage2["It"] = "it";
737
- TranslationLanguage2["Pt"] = "pt";
738
- TranslationLanguage2["Ru"] = "ru";
739
- TranslationLanguage2["Ja"] = "ja";
740
- TranslationLanguage2["Zh"] = "zh";
741
- TranslationLanguage2["Ko"] = "ko";
742
- TranslationLanguage2["Ar"] = "ar";
743
- TranslationLanguage2["Hi"] = "hi";
744
- TranslationLanguage2["Nl"] = "nl";
745
- TranslationLanguage2["Pl"] = "pl";
746
- TranslationLanguage2["Tr"] = "tr";
747
- TranslationLanguage2["Sv"] = "sv";
748
- TranslationLanguage2["No"] = "no";
749
- TranslationLanguage2["Da"] = "da";
750
- TranslationLanguage2["Fi"] = "fi";
751
- TranslationLanguage2["El"] = "el";
752
- TranslationLanguage2["Cs"] = "cs";
753
- TranslationLanguage2["Hu"] = "hu";
754
- TranslationLanguage2["Ro"] = "ro";
755
- TranslationLanguage2["Th"] = "th";
756
- TranslationLanguage2["Vi"] = "vi";
757
- TranslationLanguage2["Id"] = "id";
758
- TranslationLanguage2["Ms"] = "ms";
759
- TranslationLanguage2["He"] = "he";
760
- TranslationLanguage2["Uk"] = "uk";
761
- TranslationLanguage2["Sk"] = "sk";
762
- TranslationLanguage2["Bg"] = "bg";
763
- TranslationLanguage2["Hr"] = "hr";
764
- TranslationLanguage2["Lt"] = "lt";
765
- TranslationLanguage2["Lv"] = "lv";
766
- TranslationLanguage2["Et"] = "et";
767
- TranslationLanguage2["Sl"] = "sl";
768
- return TranslationLanguage2;
769
- })(TranslationLanguage || {});
770
772
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
771
773
  StorageUploadKind2["CustomizationFont"] = "customization_font";
772
774
  return StorageUploadKind2;
@@ -862,6 +864,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
862
864
  CustomizationLocale2["Nl"] = "nl";
863
865
  CustomizationLocale2["No"] = "no";
864
866
  CustomizationLocale2["PtBr"] = "pt-br";
867
+ CustomizationLocale2["Ru"] = "ru";
865
868
  return CustomizationLocale2;
866
869
  })(CustomizationLocale || {});
867
870
  var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
@@ -1999,6 +2002,14 @@ var Api = class extends HttpClient {
1999
2002
  format: "json",
2000
2003
  ...params
2001
2004
  }),
2005
+ getReusableContentDocumentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
2006
+ path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}/document`,
2007
+ method: "GET",
2008
+ query,
2009
+ secure: true,
2010
+ format: "json",
2011
+ ...params
2012
+ }),
2002
2013
  listCommentsInSpace: (spaceId, query, params = {}) => this.request({
2003
2014
  path: `/spaces/${spaceId}/comments`,
2004
2015
  method: "GET",
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.130.0";
175
+ var version = "0.132.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -286,6 +286,46 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
286
286
  SpaceEditMode2["Locked"] = "locked";
287
287
  return SpaceEditMode2;
288
288
  })(SpaceEditMode || {});
289
+ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
290
+ TranslationLanguage2["En"] = "en";
291
+ TranslationLanguage2["Fr"] = "fr";
292
+ TranslationLanguage2["De"] = "de";
293
+ TranslationLanguage2["Es"] = "es";
294
+ TranslationLanguage2["It"] = "it";
295
+ TranslationLanguage2["Pt"] = "pt";
296
+ TranslationLanguage2["PtBr"] = "pt-br";
297
+ TranslationLanguage2["Ru"] = "ru";
298
+ TranslationLanguage2["Ja"] = "ja";
299
+ TranslationLanguage2["Zh"] = "zh";
300
+ TranslationLanguage2["Ko"] = "ko";
301
+ TranslationLanguage2["Ar"] = "ar";
302
+ TranslationLanguage2["Hi"] = "hi";
303
+ TranslationLanguage2["Nl"] = "nl";
304
+ TranslationLanguage2["Pl"] = "pl";
305
+ TranslationLanguage2["Tr"] = "tr";
306
+ TranslationLanguage2["Sv"] = "sv";
307
+ TranslationLanguage2["No"] = "no";
308
+ TranslationLanguage2["Da"] = "da";
309
+ TranslationLanguage2["Fi"] = "fi";
310
+ TranslationLanguage2["El"] = "el";
311
+ TranslationLanguage2["Cs"] = "cs";
312
+ TranslationLanguage2["Hu"] = "hu";
313
+ TranslationLanguage2["Ro"] = "ro";
314
+ TranslationLanguage2["Th"] = "th";
315
+ TranslationLanguage2["Vi"] = "vi";
316
+ TranslationLanguage2["Id"] = "id";
317
+ TranslationLanguage2["Ms"] = "ms";
318
+ TranslationLanguage2["He"] = "he";
319
+ TranslationLanguage2["Uk"] = "uk";
320
+ TranslationLanguage2["Sk"] = "sk";
321
+ TranslationLanguage2["Bg"] = "bg";
322
+ TranslationLanguage2["Hr"] = "hr";
323
+ TranslationLanguage2["Lt"] = "lt";
324
+ TranslationLanguage2["Lv"] = "lv";
325
+ TranslationLanguage2["Et"] = "et";
326
+ TranslationLanguage2["Sl"] = "sl";
327
+ return TranslationLanguage2;
328
+ })(TranslationLanguage || {});
289
329
  var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
290
330
  GitSyncProvider2["Github"] = "github";
291
331
  GitSyncProvider2["Gitlab"] = "gitlab";
@@ -368,6 +408,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
368
408
  BillingProduct2["Free"] = "free";
369
409
  BillingProduct2["Plus"] = "plus";
370
410
  BillingProduct2["Pro"] = "pro";
411
+ BillingProduct2["Internal"] = "internal";
371
412
  return BillingProduct2;
372
413
  })(BillingProduct || {});
373
414
  var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
@@ -621,45 +662,6 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
621
662
  TranslationStatus2["Completed"] = "completed";
622
663
  return TranslationStatus2;
623
664
  })(TranslationStatus || {});
624
- var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
625
- TranslationLanguage2["En"] = "en";
626
- TranslationLanguage2["Fr"] = "fr";
627
- TranslationLanguage2["De"] = "de";
628
- TranslationLanguage2["Es"] = "es";
629
- TranslationLanguage2["It"] = "it";
630
- TranslationLanguage2["Pt"] = "pt";
631
- TranslationLanguage2["Ru"] = "ru";
632
- TranslationLanguage2["Ja"] = "ja";
633
- TranslationLanguage2["Zh"] = "zh";
634
- TranslationLanguage2["Ko"] = "ko";
635
- TranslationLanguage2["Ar"] = "ar";
636
- TranslationLanguage2["Hi"] = "hi";
637
- TranslationLanguage2["Nl"] = "nl";
638
- TranslationLanguage2["Pl"] = "pl";
639
- TranslationLanguage2["Tr"] = "tr";
640
- TranslationLanguage2["Sv"] = "sv";
641
- TranslationLanguage2["No"] = "no";
642
- TranslationLanguage2["Da"] = "da";
643
- TranslationLanguage2["Fi"] = "fi";
644
- TranslationLanguage2["El"] = "el";
645
- TranslationLanguage2["Cs"] = "cs";
646
- TranslationLanguage2["Hu"] = "hu";
647
- TranslationLanguage2["Ro"] = "ro";
648
- TranslationLanguage2["Th"] = "th";
649
- TranslationLanguage2["Vi"] = "vi";
650
- TranslationLanguage2["Id"] = "id";
651
- TranslationLanguage2["Ms"] = "ms";
652
- TranslationLanguage2["He"] = "he";
653
- TranslationLanguage2["Uk"] = "uk";
654
- TranslationLanguage2["Sk"] = "sk";
655
- TranslationLanguage2["Bg"] = "bg";
656
- TranslationLanguage2["Hr"] = "hr";
657
- TranslationLanguage2["Lt"] = "lt";
658
- TranslationLanguage2["Lv"] = "lv";
659
- TranslationLanguage2["Et"] = "et";
660
- TranslationLanguage2["Sl"] = "sl";
661
- return TranslationLanguage2;
662
- })(TranslationLanguage || {});
663
665
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
664
666
  StorageUploadKind2["CustomizationFont"] = "customization_font";
665
667
  return StorageUploadKind2;
@@ -755,6 +757,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
755
757
  CustomizationLocale2["Nl"] = "nl";
756
758
  CustomizationLocale2["No"] = "no";
757
759
  CustomizationLocale2["PtBr"] = "pt-br";
760
+ CustomizationLocale2["Ru"] = "ru";
758
761
  return CustomizationLocale2;
759
762
  })(CustomizationLocale || {});
760
763
  var CustomizationHeaderPreset = /* @__PURE__ */ ((CustomizationHeaderPreset2) => {
@@ -1892,6 +1895,14 @@ var Api = class extends HttpClient {
1892
1895
  format: "json",
1893
1896
  ...params
1894
1897
  }),
1898
+ getReusableContentDocumentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
1899
+ path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}/document`,
1900
+ method: "GET",
1901
+ query,
1902
+ secure: true,
1903
+ format: "json",
1904
+ ...params
1905
+ }),
1895
1906
  listCommentsInSpace: (spaceId, query, params = {}) => this.request({
1896
1907
  path: `/spaces/${spaceId}/comments`,
1897
1908
  method: "GET",
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.130.0",
7
+ "version": "0.132.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -643,6 +643,9 @@
643
643
  },
644
644
  "defaultLevel": {
645
645
  "$ref": "#/components/schemas/DefaultLevel"
646
+ },
647
+ "language": {
648
+ "$ref": "#/components/schemas/TranslationLanguage"
646
649
  }
647
650
  }
648
651
  },
@@ -4729,6 +4732,46 @@
4729
4732
  }
4730
4733
  }
4731
4734
  },
4735
+ "/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document": {
4736
+ "get": {
4737
+ "operationId": "getReusableContentDocumentInRevisionById",
4738
+ "summary": "Get the document of a reusable content in a revision",
4739
+ "tags": [
4740
+ "space-content"
4741
+ ],
4742
+ "security": [
4743
+ {
4744
+ "user": []
4745
+ }
4746
+ ],
4747
+ "parameters": [
4748
+ {
4749
+ "$ref": "#/components/parameters/spaceId"
4750
+ },
4751
+ {
4752
+ "$ref": "#/components/parameters/revisionId"
4753
+ },
4754
+ {
4755
+ "$ref": "#/components/parameters/reusableContentId"
4756
+ },
4757
+ {
4758
+ "$ref": "#/components/parameters/documentEvaluated"
4759
+ }
4760
+ ],
4761
+ "responses": {
4762
+ "200": {
4763
+ "description": "OK",
4764
+ "content": {
4765
+ "application/json": {
4766
+ "schema": {
4767
+ "$ref": "#/components/schemas/JSONDocument"
4768
+ }
4769
+ }
4770
+ }
4771
+ }
4772
+ }
4773
+ }
4774
+ },
4732
4775
  "/spaces/{spaceId}/comments": {
4733
4776
  "get": {
4734
4777
  "operationId": "listCommentsInSpace",
@@ -5202,8 +5245,7 @@
5202
5245
  {
5203
5246
  "type": "object",
5204
5247
  "required": [
5205
- "items",
5206
- "total"
5248
+ "items"
5207
5249
  ],
5208
5250
  "properties": {
5209
5251
  "items": {
@@ -5262,8 +5304,7 @@
5262
5304
  {
5263
5305
  "type": "object",
5264
5306
  "required": [
5265
- "items",
5266
- "total"
5307
+ "items"
5267
5308
  ],
5268
5309
  "properties": {
5269
5310
  "items": {
@@ -15915,7 +15956,7 @@
15915
15956
  }
15916
15957
  },
15917
15958
  "required": [
15918
- "organizaitons"
15959
+ "organizations"
15919
15960
  ]
15920
15961
  }
15921
15962
  }
@@ -17156,6 +17197,48 @@
17156
17197
  "locked"
17157
17198
  ]
17158
17199
  },
17200
+ "TranslationLanguage": {
17201
+ "type": "string",
17202
+ "enum": [
17203
+ "en",
17204
+ "fr",
17205
+ "de",
17206
+ "es",
17207
+ "it",
17208
+ "pt",
17209
+ "pt-br",
17210
+ "ru",
17211
+ "ja",
17212
+ "zh",
17213
+ "ko",
17214
+ "ar",
17215
+ "hi",
17216
+ "nl",
17217
+ "pl",
17218
+ "tr",
17219
+ "sv",
17220
+ "no",
17221
+ "da",
17222
+ "fi",
17223
+ "el",
17224
+ "cs",
17225
+ "hu",
17226
+ "ro",
17227
+ "th",
17228
+ "vi",
17229
+ "id",
17230
+ "ms",
17231
+ "he",
17232
+ "uk",
17233
+ "sk",
17234
+ "bg",
17235
+ "hr",
17236
+ "lt",
17237
+ "lv",
17238
+ "et",
17239
+ "sl"
17240
+ ]
17241
+ },
17159
17242
  "GitSyncProvider": {
17160
17243
  "type": "string",
17161
17244
  "description": "The provider of the Git Sync installation.",
@@ -17366,6 +17449,9 @@
17366
17449
  "type": "string",
17367
17450
  "description": "ID of the parent collection."
17368
17451
  },
17452
+ "language": {
17453
+ "$ref": "#/components/schemas/TranslationLanguage"
17454
+ },
17369
17455
  "gitSync": {
17370
17456
  "$ref": "#/components/schemas/GitSyncState"
17371
17457
  },
@@ -17452,7 +17538,6 @@
17452
17538
  "required": [
17453
17539
  "object",
17454
17540
  "id",
17455
- "type",
17456
17541
  "title",
17457
17542
  "emoji",
17458
17543
  "organization",
@@ -22207,7 +22292,6 @@
22207
22292
  "required": [
22208
22293
  "object",
22209
22294
  "id",
22210
- "organizationId",
22211
22295
  "slug"
22212
22296
  ]
22213
22297
  }
@@ -23495,7 +23579,8 @@
23495
23579
  "community_2024",
23496
23580
  "free",
23497
23581
  "plus",
23498
- "pro"
23582
+ "pro",
23583
+ "internal"
23499
23584
  ]
23500
23585
  },
23501
23586
  "BillingInterval": {
@@ -23570,6 +23655,17 @@
23570
23655
  "sites"
23571
23656
  ]
23572
23657
  },
23658
+ "BillingMeterAddon": {
23659
+ "type": "object",
23660
+ "properties": {
23661
+ "enabled": {
23662
+ "type": "boolean"
23663
+ }
23664
+ },
23665
+ "required": [
23666
+ "enabled"
23667
+ ]
23668
+ },
23573
23669
  "OrganizationBilling": {
23574
23670
  "type": "object",
23575
23671
  "properties": {
@@ -23591,6 +23687,13 @@
23591
23687
  "pricing": {
23592
23688
  "description": "Pricing information for the organization",
23593
23689
  "$ref": "#/components/schemas/OrganizationPricing"
23690
+ },
23691
+ "usageAddons": {
23692
+ "description": "Configuration for the usage-based addons",
23693
+ "type": "object",
23694
+ "additionalProperties": {
23695
+ "$ref": "#/components/schemas/BillingMeterAddon"
23696
+ }
23594
23697
  }
23595
23698
  },
23596
23699
  "required": [
@@ -23598,7 +23701,8 @@
23598
23701
  "endDate",
23599
23702
  "hasPaymentFailed",
23600
23703
  "isScheduledToCancel",
23601
- "pricing"
23704
+ "pricing",
23705
+ "usageAddons"
23602
23706
  ]
23603
23707
  },
23604
23708
  "BillingTrialStatus": {
@@ -23808,6 +23912,10 @@
23808
23912
  "listIntegrations": {
23809
23913
  "type": "boolean",
23810
23914
  "description": "Can the user list the integrations in the organization."
23915
+ },
23916
+ "listInstallations": {
23917
+ "type": "boolean",
23918
+ "description": "Can the user list the integration installations in the organization."
23811
23919
  }
23812
23920
  },
23813
23921
  "required": [
@@ -23820,7 +23928,8 @@
23820
23928
  "viewBilling",
23821
23929
  "listMembers",
23822
23930
  "listTeams",
23823
- "listIntegrations"
23931
+ "listIntegrations",
23932
+ "listInstallations"
23824
23933
  ]
23825
23934
  }
23826
23935
  },
@@ -24292,7 +24401,6 @@
24292
24401
  "description": "The set of permissions for the OpenAPI specification.",
24293
24402
  "required": [
24294
24403
  "view",
24295
- "delete",
24296
24404
  "edit"
24297
24405
  ],
24298
24406
  "properties": {
@@ -24683,7 +24791,6 @@
24683
24791
  "required": [
24684
24792
  "view",
24685
24793
  "edit",
24686
- "react",
24687
24794
  "delete"
24688
24795
  ]
24689
24796
  }
@@ -25014,7 +25121,6 @@
25014
25121
  "required": [
25015
25122
  "view",
25016
25123
  "edit",
25017
- "react",
25018
25124
  "delete"
25019
25125
  ]
25020
25126
  }
@@ -27920,8 +28026,7 @@
27920
28026
  "type": "object",
27921
28027
  "required": [
27922
28028
  "status",
27923
- "topic",
27924
- "accountEmail"
28029
+ "topic"
27925
28030
  ],
27926
28031
  "properties": {
27927
28032
  "status": {
@@ -28170,7 +28275,6 @@
28170
28275
  "published",
28171
28276
  "createdAt",
28172
28277
  "siteSpaces",
28173
- "defaultSpace",
28174
28278
  "features",
28175
28279
  "agentsContext",
28176
28280
  "urls"
@@ -29691,10 +29795,7 @@
29691
29795
  "description": "URL of the published version of the site-space. Only defined when site is published.",
29692
29796
  "format": "uri"
29693
29797
  }
29694
- },
29695
- "required": [
29696
- "location"
29697
- ]
29798
+ }
29698
29799
  }
29699
29800
  },
29700
29801
  "required": [
@@ -29756,10 +29857,7 @@
29756
29857
  "description": "URL of the published version of the site section. Only defined when site is published.",
29757
29858
  "format": "uri"
29758
29859
  }
29759
- },
29760
- "required": [
29761
- "location"
29762
- ]
29860
+ }
29763
29861
  },
29764
29862
  "icon": {
29765
29863
  "$ref": "#/components/schemas/Icon"
@@ -30121,7 +30219,6 @@
30121
30219
  "required": [
30122
30220
  "object",
30123
30221
  "id",
30124
- "target",
30125
30222
  "level",
30126
30223
  "redundant",
30127
30224
  "collection"
@@ -30158,7 +30255,6 @@
30158
30255
  "required": [
30159
30256
  "object",
30160
30257
  "id",
30161
- "target",
30162
30258
  "level",
30163
30259
  "redundant",
30164
30260
  "space"
@@ -30668,8 +30764,8 @@
30668
30764
  "description": "Total usage for the current billing period",
30669
30765
  "type": "number"
30670
30766
  },
30671
- "daily": {
30672
- "description": "Daily usage for the past 30 days",
30767
+ "entries": {
30768
+ "description": "Usage entries for the period",
30673
30769
  "type": "array",
30674
30770
  "items": {
30675
30771
  "type": "object",
@@ -30679,7 +30775,7 @@
30679
30775
  },
30680
30776
  "value": {
30681
30777
  "type": "number",
30682
- "description": "Usage value for the day"
30778
+ "description": "Usage value for the date"
30683
30779
  }
30684
30780
  },
30685
30781
  "required": [
@@ -30691,7 +30787,7 @@
30691
30787
  },
30692
30788
  "required": [
30693
30789
  "total",
30694
- "daily"
30790
+ "entries"
30695
30791
  ]
30696
30792
  },
30697
30793
  "SearchSpaceResult": {
@@ -30733,6 +30829,9 @@
30733
30829
  "type": "string",
30734
30830
  "description": "ID of a parent collection"
30735
30831
  },
30832
+ "language": {
30833
+ "$ref": "#/components/schemas/TranslationLanguage"
30834
+ },
30736
30835
  "editMode": {
30737
30836
  "$ref": "#/components/schemas/SpaceEditMode",
30738
30837
  "description": "The edit mode of the space"
@@ -31215,7 +31314,6 @@
31215
31314
  }
31216
31315
  },
31217
31316
  "required": [
31218
- "pages",
31219
31317
  "sources",
31220
31318
  "followupQuestions"
31221
31319
  ]
@@ -31863,47 +31961,6 @@
31863
31961
  "completed"
31864
31962
  ]
31865
31963
  },
31866
- "TranslationLanguage": {
31867
- "type": "string",
31868
- "enum": [
31869
- "en",
31870
- "fr",
31871
- "de",
31872
- "es",
31873
- "it",
31874
- "pt",
31875
- "ru",
31876
- "ja",
31877
- "zh",
31878
- "ko",
31879
- "ar",
31880
- "hi",
31881
- "nl",
31882
- "pl",
31883
- "tr",
31884
- "sv",
31885
- "no",
31886
- "da",
31887
- "fi",
31888
- "el",
31889
- "cs",
31890
- "hu",
31891
- "ro",
31892
- "th",
31893
- "vi",
31894
- "id",
31895
- "ms",
31896
- "he",
31897
- "uk",
31898
- "sk",
31899
- "bg",
31900
- "hr",
31901
- "lt",
31902
- "lv",
31903
- "et",
31904
- "sl"
31905
- ]
31906
- },
31907
31964
  "TranslationSource": {
31908
31965
  "type": "object",
31909
31966
  "required": [
@@ -32833,7 +32890,8 @@
32833
32890
  "de",
32834
32891
  "nl",
32835
32892
  "no",
32836
- "pt-br"
32893
+ "pt-br",
32894
+ "ru"
32837
32895
  ]
32838
32896
  },
32839
32897
  "CustomizationHeaderPreset": {
@@ -37590,10 +37648,7 @@
37590
37648
  "type": "object",
37591
37649
  "additionalProperties": {
37592
37650
  "$ref": "#/components/schemas/UserOrganizationsTeamsPermissions"
37593
- },
37594
- "required": [
37595
- "role"
37596
- ]
37651
+ }
37597
37652
  },
37598
37653
  "disabled": {
37599
37654
  "type": "boolean"
package/spec/openapi.yaml CHANGED
@@ -612,6 +612,8 @@ paths:
612
612
  $ref: "#/components/schemas/SpaceTitle"
613
613
  defaultLevel:
614
614
  $ref: "#/components/schemas/DefaultLevel"
615
+ language:
616
+ $ref: "#/components/schemas/TranslationLanguage"
615
617
  - oneOf:
616
618
  - type: object
617
619
  title: Emoji
@@ -2789,6 +2791,26 @@ paths:
2789
2791
  application/json:
2790
2792
  schema:
2791
2793
  $ref: "#/components/schemas/RevisionReusableContent"
2794
+ "/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document":
2795
+ get:
2796
+ operationId: getReusableContentDocumentInRevisionById
2797
+ summary: Get the document of a reusable content in a revision
2798
+ tags:
2799
+ - space-content
2800
+ security:
2801
+ - user: []
2802
+ parameters:
2803
+ - $ref: "#/components/parameters/spaceId"
2804
+ - $ref: "#/components/parameters/revisionId"
2805
+ - $ref: "#/components/parameters/reusableContentId"
2806
+ - $ref: "#/components/parameters/documentEvaluated"
2807
+ responses:
2808
+ "200":
2809
+ description: OK
2810
+ content:
2811
+ application/json:
2812
+ schema:
2813
+ $ref: "#/components/schemas/JSONDocument"
2792
2814
  "/spaces/{spaceId}/comments":
2793
2815
  get:
2794
2816
  operationId: listCommentsInSpace
@@ -3039,7 +3061,6 @@ paths:
3039
3061
  - type: object
3040
3062
  required:
3041
3063
  - items
3042
- - total
3043
3064
  properties:
3044
3065
  items:
3045
3066
  type: array
@@ -3070,7 +3091,6 @@ paths:
3070
3091
  - type: object
3071
3092
  required:
3072
3093
  - items
3073
- - total
3074
3094
  properties:
3075
3095
  items:
3076
3096
  type: array
@@ -8992,7 +9012,7 @@ paths:
8992
9012
  items:
8993
9013
  $ref: "#/components/schemas/Organization"
8994
9014
  required:
8995
- - organizaitons
9015
+ - organizations
8996
9016
  /ads/sites:
8997
9017
  get:
8998
9018
  operationId: adsListSites
@@ -9869,6 +9889,46 @@ components:
9869
9889
  enum:
9870
9890
  - live
9871
9891
  - locked
9892
+ TranslationLanguage:
9893
+ type: string
9894
+ enum:
9895
+ - en
9896
+ - fr
9897
+ - de
9898
+ - es
9899
+ - it
9900
+ - pt
9901
+ - pt-br
9902
+ - ru
9903
+ - ja
9904
+ - zh
9905
+ - ko
9906
+ - ar
9907
+ - hi
9908
+ - nl
9909
+ - pl
9910
+ - tr
9911
+ - sv
9912
+ - no
9913
+ - da
9914
+ - fi
9915
+ - el
9916
+ - cs
9917
+ - hu
9918
+ - ro
9919
+ - th
9920
+ - vi
9921
+ - id
9922
+ - ms
9923
+ - he
9924
+ - uk
9925
+ - sk
9926
+ - bg
9927
+ - hr
9928
+ - lt
9929
+ - lv
9930
+ - et
9931
+ - sl
9872
9932
  GitSyncProvider:
9873
9933
  type: string
9874
9934
  description: The provider of the Git Sync installation.
@@ -10017,6 +10077,8 @@ components:
10017
10077
  parent:
10018
10078
  type: string
10019
10079
  description: ID of the parent collection.
10080
+ language:
10081
+ $ref: "#/components/schemas/TranslationLanguage"
10020
10082
  gitSync:
10021
10083
  $ref: "#/components/schemas/GitSyncState"
10022
10084
  visitorAuth:
@@ -10082,7 +10144,6 @@ components:
10082
10144
  required:
10083
10145
  - object
10084
10146
  - id
10085
- - type
10086
10147
  - title
10087
10148
  - emoji
10088
10149
  - organization
@@ -13064,7 +13125,6 @@ components:
13064
13125
  required:
13065
13126
  - object
13066
13127
  - id
13067
- - organizationId
13068
13128
  - slug
13069
13129
  required:
13070
13130
  - ref
@@ -13897,6 +13957,7 @@ components:
13897
13957
  - free
13898
13958
  - plus
13899
13959
  - pro
13960
+ - internal
13900
13961
  BillingInterval:
13901
13962
  type: string
13902
13963
  description: Interval for a billing subscription
@@ -13949,6 +14010,13 @@ components:
13949
14010
  required:
13950
14011
  - members
13951
14012
  - sites
14013
+ BillingMeterAddon:
14014
+ type: object
14015
+ properties:
14016
+ enabled:
14017
+ type: boolean
14018
+ required:
14019
+ - enabled
13952
14020
  OrganizationBilling:
13953
14021
  type: object
13954
14022
  properties:
@@ -13966,12 +14034,18 @@ components:
13966
14034
  pricing:
13967
14035
  description: Pricing information for the organization
13968
14036
  $ref: "#/components/schemas/OrganizationPricing"
14037
+ usageAddons:
14038
+ description: Configuration for the usage-based addons
14039
+ type: object
14040
+ additionalProperties:
14041
+ $ref: "#/components/schemas/BillingMeterAddon"
13969
14042
  required:
13970
14043
  - interval
13971
14044
  - endDate
13972
14045
  - hasPaymentFailed
13973
14046
  - isScheduledToCancel
13974
14047
  - pricing
14048
+ - usageAddons
13975
14049
  BillingTrialStatus:
13976
14050
  type: string
13977
14051
  description: |
@@ -14125,6 +14199,9 @@ components:
14125
14199
  listIntegrations:
14126
14200
  type: boolean
14127
14201
  description: Can the user list the integrations in the organization.
14202
+ listInstallations:
14203
+ type: boolean
14204
+ description: Can the user list the integration installations in the organization.
14128
14205
  required:
14129
14206
  - view
14130
14207
  - admin
@@ -14136,6 +14213,7 @@ components:
14136
14213
  - listMembers
14137
14214
  - listTeams
14138
14215
  - listIntegrations
14216
+ - listInstallations
14139
14217
  required:
14140
14218
  - object
14141
14219
  - id
@@ -14463,7 +14541,6 @@ components:
14463
14541
  description: The set of permissions for the OpenAPI specification.
14464
14542
  required:
14465
14543
  - view
14466
- - delete
14467
14544
  - edit
14468
14545
  properties:
14469
14546
  view:
@@ -14738,7 +14815,6 @@ components:
14738
14815
  required:
14739
14816
  - view
14740
14817
  - edit
14741
- - react
14742
14818
  - delete
14743
14819
  required:
14744
14820
  - object
@@ -14966,7 +15042,6 @@ components:
14966
15042
  required:
14967
15043
  - view
14968
15044
  - edit
14969
- - react
14970
15045
  - delete
14971
15046
  required:
14972
15047
  - object
@@ -16873,7 +16948,6 @@ components:
16873
16948
  required:
16874
16949
  - status
16875
16950
  - topic
16876
- - accountEmail
16877
16951
  properties:
16878
16952
  status:
16879
16953
  type: string
@@ -17058,7 +17132,6 @@ components:
17058
17132
  - published
17059
17133
  - createdAt
17060
17134
  - siteSpaces
17061
- - defaultSpace
17062
17135
  - features
17063
17136
  - agentsContext
17064
17137
  - urls
@@ -18024,8 +18097,6 @@ components:
18024
18097
  type: string
18025
18098
  description: URL of the published version of the site-space. Only defined when site is published.
18026
18099
  format: uri
18027
- required:
18028
- - location
18029
18100
  required:
18030
18101
  - object
18031
18102
  - id
@@ -18071,8 +18142,6 @@ components:
18071
18142
  type: string
18072
18143
  description: URL of the published version of the site section. Only defined when site is published.
18073
18144
  format: uri
18074
- required:
18075
- - location
18076
18145
  icon:
18077
18146
  $ref: "#/components/schemas/Icon"
18078
18147
  required:
@@ -18313,7 +18382,6 @@ components:
18313
18382
  required:
18314
18383
  - object
18315
18384
  - id
18316
- - target
18317
18385
  - level
18318
18386
  - redundant
18319
18387
  - collection
@@ -18341,7 +18409,6 @@ components:
18341
18409
  required:
18342
18410
  - object
18343
18411
  - id
18344
- - target
18345
18412
  - level
18346
18413
  - redundant
18347
18414
  - space
@@ -18687,8 +18754,8 @@ components:
18687
18754
  total:
18688
18755
  description: Total usage for the current billing period
18689
18756
  type: number
18690
- daily:
18691
- description: Daily usage for the past 30 days
18757
+ entries:
18758
+ description: Usage entries for the period
18692
18759
  type: array
18693
18760
  items:
18694
18761
  type: object
@@ -18697,13 +18764,13 @@ components:
18697
18764
  $ref: "#/components/schemas/Timestamp"
18698
18765
  value:
18699
18766
  type: number
18700
- description: Usage value for the day
18767
+ description: Usage value for the date
18701
18768
  required:
18702
18769
  - date
18703
18770
  - value
18704
18771
  required:
18705
18772
  - total
18706
- - daily
18773
+ - entries
18707
18774
  SearchSpaceResult:
18708
18775
  type: object
18709
18776
  description: Search result representing a space.
@@ -18732,6 +18799,8 @@ components:
18732
18799
  parent:
18733
18800
  type: string
18734
18801
  description: ID of a parent collection
18802
+ language:
18803
+ $ref: "#/components/schemas/TranslationLanguage"
18735
18804
  editMode:
18736
18805
  $ref: "#/components/schemas/SpaceEditMode"
18737
18806
  description: The edit mode of the space
@@ -19075,7 +19144,6 @@ components:
19075
19144
  items:
19076
19145
  $ref: "#/components/schemas/SearchAIAnswerSource"
19077
19146
  required:
19078
- - pages
19079
19147
  - sources
19080
19148
  - followupQuestions
19081
19149
  SearchAIRecommendedQuestions:
@@ -19543,45 +19611,6 @@ components:
19543
19611
  - pending
19544
19612
  - running
19545
19613
  - completed
19546
- TranslationLanguage:
19547
- type: string
19548
- enum:
19549
- - en
19550
- - fr
19551
- - de
19552
- - es
19553
- - it
19554
- - pt
19555
- - ru
19556
- - ja
19557
- - zh
19558
- - ko
19559
- - ar
19560
- - hi
19561
- - nl
19562
- - pl
19563
- - tr
19564
- - sv
19565
- - no
19566
- - da
19567
- - fi
19568
- - el
19569
- - cs
19570
- - hu
19571
- - ro
19572
- - th
19573
- - vi
19574
- - id
19575
- - ms
19576
- - he
19577
- - uk
19578
- - sk
19579
- - bg
19580
- - hr
19581
- - lt
19582
- - lv
19583
- - et
19584
- - sl
19585
19614
  TranslationSource:
19586
19615
  type: object
19587
19616
  required:
@@ -20247,6 +20276,7 @@ components:
20247
20276
  - nl
20248
20277
  - no
20249
20278
  - pt-br
20279
+ - ru
20250
20280
  CustomizationHeaderPreset:
20251
20281
  type: string
20252
20282
  deprecated: true
@@ -23362,8 +23392,6 @@ components:
23362
23392
  type: object
23363
23393
  additionalProperties:
23364
23394
  $ref: "#/components/schemas/UserOrganizationsTeamsPermissions"
23365
- required:
23366
- - role
23367
23395
  disabled:
23368
23396
  type: boolean
23369
23397
  required: