@gitbook/api 0.127.0 → 0.129.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
@@ -32,14 +32,16 @@ export interface List {
32
32
  /** Total count of objects in the list */
33
33
  count?: number;
34
34
  }
35
+ /** @maxLength 50 */
36
+ export type APITokenLabel = string;
35
37
  /** @format date-time */
36
38
  export type Timestamp = string;
37
39
  /** The API token details, excluding the token itself. */
38
40
  export interface UserAPIToken {
39
41
  /** The API token ID. */
40
42
  id: string;
41
- /** The API token name. */
42
- label: string;
43
+ /** A descriptive label for the API token. */
44
+ label: APITokenLabel;
43
45
  /** The API token creation date. */
44
46
  createdAt: Timestamp;
45
47
  }
@@ -851,6 +853,17 @@ export interface DocumentBlockDivider {
851
853
  isVoid: true;
852
854
  data: object;
853
855
  }
856
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
857
+ export interface DocumentBlockIf {
858
+ object: 'block';
859
+ type: 'if';
860
+ key?: string;
861
+ nodes: DocumentBlocksTopLevels[];
862
+ isVoid?: false;
863
+ data: {
864
+ expression: string;
865
+ };
866
+ }
854
867
  export type Length = number | {
855
868
  unit: string;
856
869
  value: number;
@@ -1147,7 +1160,7 @@ export interface DocumentBlockColumns {
1147
1160
  nodes: DocumentBlockColumn[];
1148
1161
  isVoid: false;
1149
1162
  }
1150
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn;
1163
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn;
1151
1164
  export interface DocumentInlineMention {
1152
1165
  object: 'inline';
1153
1166
  type: 'mention';
@@ -1173,7 +1186,6 @@ export interface DocumentInlineButton {
1173
1186
  };
1174
1187
  isVoid: true;
1175
1188
  }
1176
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
1177
1189
  export interface JSONDocument {
1178
1190
  object: 'document';
1179
1191
  data: {
@@ -1267,89 +1279,45 @@ export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIB
1267
1279
  models: boolean;
1268
1280
  };
1269
1281
  };
1270
- export interface ComputedContentDependencySpace {
1271
- ref: ContentRefSpace;
1272
- /** See `Space` schema component. */
1273
- value: {
1274
- object: 'space';
1275
- id: string;
1276
- revision: string;
1277
- } | null;
1278
- }
1279
- export declare enum TranslationLanguage {
1280
- En = "en",
1281
- Fr = "fr",
1282
- De = "de",
1283
- Es = "es",
1284
- It = "it",
1285
- Pt = "pt",
1286
- Ru = "ru",
1287
- Ja = "ja",
1288
- Zh = "zh",
1289
- Ko = "ko",
1290
- Ar = "ar",
1291
- Hi = "hi",
1292
- Nl = "nl",
1293
- Pl = "pl",
1294
- Tr = "tr",
1295
- Sv = "sv",
1296
- No = "no",
1297
- Da = "da",
1298
- Fi = "fi",
1299
- El = "el",
1300
- Cs = "cs",
1301
- Hu = "hu",
1302
- Ro = "ro",
1303
- Th = "th",
1304
- Vi = "vi",
1305
- Id = "id",
1306
- Ms = "ms",
1307
- He = "he",
1308
- Uk = "uk",
1309
- Sk = "sk",
1310
- Bg = "bg",
1311
- Hr = "hr",
1312
- Lt = "lt",
1313
- Lv = "lv",
1314
- Et = "et",
1315
- Sl = "sl"
1316
- }
1317
- export interface TranslationLanguageRef {
1318
- kind: 'translation-language';
1319
- /** ID of the translation settings */
1320
- translationSettings: string;
1321
- language: TranslationLanguage;
1282
+ export interface TranslationRef {
1283
+ kind: 'translation';
1284
+ /** ID of the translation sync */
1285
+ translation: string;
1322
1286
  }
1323
- /** Compiled parameters for the translation */
1324
- export interface TranslationParameters {
1325
- /** Instructions for the translation, formatted as markdown */
1326
- instructions: string;
1287
+ /** Result of a translation. */
1288
+ export interface TranslationResult {
1289
+ /** ID of the space containing the result of the translation */
1290
+ space: string;
1291
+ /** ID of the revision generated by the translation */
1292
+ revision: string;
1327
1293
  }
1328
1294
  export interface ComputedContentDependencyTranslation {
1329
- ref: TranslationLanguageRef;
1330
- /** Compiled parameters for the translation */
1331
- value: TranslationParameters;
1295
+ ref: TranslationRef;
1296
+ /** Translation has not been run yet */
1297
+ value: TranslationResult | null;
1332
1298
  }
1333
- /** Generic parameters from a translation computed content source */
1334
- export interface ComputedContentSourceTranslationBase {
1299
+ /** Parameters for a translation computed content source */
1300
+ export interface ComputedContentSourceRevisionTranslation {
1335
1301
  type: 'builtin:translation';
1302
+ props: object;
1336
1303
  dependencies: {
1337
- source: {
1338
- ref: ContentRefSpace;
1339
- } | ComputedContentDependencySpace;
1340
- settings: {
1341
- ref: TranslationLanguageRef;
1304
+ translation: {
1305
+ ref: TranslationRef;
1342
1306
  } | ComputedContentDependencyTranslation;
1343
1307
  };
1344
1308
  }
1345
- export type ComputedContentSourceRevisionTranslation = ComputedContentSourceTranslationBase & {
1346
- props: {
1347
- sourceLanguage: TranslationLanguage;
1348
- };
1349
- };
1350
1309
  /** Dependency for a computation, before its resolution. */
1351
1310
  export interface ComputedContentDependency {
1352
- ref: ContentRefSpace | ContentRefOpenAPI | TranslationLanguageRef;
1311
+ ref: ContentRefSpace | ContentRefOpenAPI | TranslationRef;
1312
+ }
1313
+ export interface ComputedContentDependencySpace {
1314
+ ref: ContentRefSpace;
1315
+ /** See `Space` schema component. */
1316
+ value: {
1317
+ object: 'space';
1318
+ id: string;
1319
+ revision: string;
1320
+ } | null;
1353
1321
  }
1354
1322
  /** Dependency for a computation, with its resolved value. */
1355
1323
  export type ComputedContentDependencyResolved = ComputedContentDependencySpace | ComputedContentDependencyOpenAPI | ComputedContentDependencyTranslation;
@@ -1392,21 +1360,23 @@ export declare enum RevisionPageLayoutOptionsCoverSize {
1392
1360
  }
1393
1361
  export interface RevisionPageLayoutOptions {
1394
1362
  /** Width of the page. */
1395
- width?: RevisionPageLayoutOptionsWidth;
1363
+ width: RevisionPageLayoutOptionsWidth;
1396
1364
  /** Should the cover be visible? */
1397
- cover?: boolean;
1365
+ cover: boolean;
1398
1366
  /** Size of the cover image. */
1399
- coverSize?: RevisionPageLayoutOptionsCoverSize;
1367
+ coverSize: RevisionPageLayoutOptionsCoverSize;
1400
1368
  /** Should the title be visible? */
1401
- title?: boolean;
1369
+ title: boolean;
1402
1370
  /** Should the description be visible? */
1403
- description?: boolean;
1371
+ description: boolean;
1404
1372
  /** Should the table of contents be visible? */
1405
- tableOfContents?: boolean;
1373
+ tableOfContents: boolean;
1406
1374
  /** Should the outline be visible? */
1407
- outline?: boolean;
1375
+ outline: boolean;
1408
1376
  /** Should the pagination be visible? */
1409
- pagination?: boolean;
1377
+ pagination: boolean;
1378
+ /** Should the page metadata (last modified, author, etc.) be visible? */
1379
+ metadata: boolean;
1410
1380
  }
1411
1381
  export interface RevisionPageDocumentCover {
1412
1382
  /** Content reference pointing to the source image. */
@@ -1431,12 +1401,14 @@ export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIB
1431
1401
  page: string;
1432
1402
  };
1433
1403
  };
1434
- export type ComputedContentSourceDocumentTranslation = ComputedContentSourceTranslationBase & {
1404
+ /** Parameters for a document translation computed content source */
1405
+ export interface ComputedContentSourceDocumentTranslation {
1406
+ type: 'builtin:translation';
1435
1407
  props: {
1408
+ space: string;
1436
1409
  document: string;
1437
- sourceLanguage: TranslationLanguage;
1438
1410
  };
1439
- };
1411
+ }
1440
1412
  export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
1441
1413
  export type RevisionPageGroup = RevisionPageBase & {
1442
1414
  /** @deprecated */
@@ -1628,6 +1600,10 @@ export interface ImportContentResult {
1628
1600
  /** How many resources were processed */
1629
1601
  totalResources: number;
1630
1602
  }
1603
+ export interface ApplySpaceTemplate {
1604
+ /** The ID of the template to use for the space */
1605
+ id: string;
1606
+ }
1631
1607
  /**
1632
1608
  * Name of the organization
1633
1609
  * @minLength 2
@@ -1684,6 +1660,36 @@ export declare enum BillingInterval {
1684
1660
  Monthly = "monthly",
1685
1661
  Yearly = "yearly"
1686
1662
  }
1663
+ /** Pricing pair for monthly and yearly intervals */
1664
+ export interface OrganizationPricePair {
1665
+ /**
1666
+ * Monthly price in USD
1667
+ * @min 0
1668
+ */
1669
+ monthly: number;
1670
+ /**
1671
+ * Yearly price in USD (per month)
1672
+ * @min 0
1673
+ */
1674
+ yearly: number;
1675
+ }
1676
+ /** Pricing information for an organization */
1677
+ export interface OrganizationPricing {
1678
+ /** Pricing for members (organization plan) */
1679
+ members: {
1680
+ /** Pricing pair for monthly and yearly intervals */
1681
+ plus_2024: OrganizationPricePair;
1682
+ /** Pricing pair for monthly and yearly intervals */
1683
+ pro_2024: OrganizationPricePair;
1684
+ };
1685
+ /** Pricing for site types (site plans) */
1686
+ sites: {
1687
+ /** Pricing pair for monthly and yearly intervals */
1688
+ premium: OrganizationPricePair;
1689
+ /** Pricing pair for monthly and yearly intervals */
1690
+ ultimate: OrganizationPricePair;
1691
+ };
1692
+ }
1687
1693
  export interface OrganizationBilling {
1688
1694
  /** Interval for a billing subscription */
1689
1695
  interval: BillingInterval;
@@ -1692,6 +1698,8 @@ export interface OrganizationBilling {
1692
1698
  hasPaymentFailed: boolean;
1693
1699
  /** If true, the billing is set to cancel at the end of its current period */
1694
1700
  isScheduledToCancel: boolean;
1701
+ /** Pricing information for the organization */
1702
+ pricing: OrganizationPricing;
1695
1703
  }
1696
1704
  /** - 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. */
1697
1705
  export declare enum BillingTrialStatus {
@@ -1920,6 +1928,15 @@ export declare enum OpenAPISpecProcessingState {
1920
1928
  Progress = "progress",
1921
1929
  Complete = "complete"
1922
1930
  }
1931
+ /**
1932
+ * The visibility setting of the OpenAPI spec.
1933
+ * * `private`: The spec is not publicly available.
1934
+ * * `public`: The spec is available to anyone with a public link.
1935
+ */
1936
+ export declare enum OpenAPISpecVisibility {
1937
+ Private = "private",
1938
+ Public = "public"
1939
+ }
1923
1940
  /** OpenAPI processing error code */
1924
1941
  export declare enum OpenAPISpecProcessingErrorCode {
1925
1942
  FETCH_TIMEOUT = "FETCH_TIMEOUT",
@@ -1940,6 +1957,12 @@ export interface OpenAPISpec {
1940
1957
  sourceURL?: URL;
1941
1958
  /** Processing state */
1942
1959
  processingState: OpenAPISpecProcessingState;
1960
+ /**
1961
+ * The visibility setting of the OpenAPI spec.
1962
+ * * `private`: The spec is not publicly available.
1963
+ * * `public`: The spec is available to anyone with a public link.
1964
+ */
1965
+ visibility?: OpenAPISpecVisibility;
1943
1966
  /** ID of the latest version of the OpenAPI specification */
1944
1967
  lastVersion?: string;
1945
1968
  /** Date of the last processing */
@@ -1959,6 +1982,11 @@ export interface OpenAPISpec {
1959
1982
  location: URL;
1960
1983
  /** URL of the OpenAPI specification in the application */
1961
1984
  app: URL;
1985
+ /**
1986
+ * URL of the published spec. Only defined when visibility is "published."
1987
+ * @format uri
1988
+ */
1989
+ published?: string;
1962
1990
  };
1963
1991
  }
1964
1992
  export interface ContentLocationOpenAPI {
@@ -3192,6 +3220,7 @@ export declare enum SiteFeatureKey {
3192
3220
  SitesAdvancedInsights = "sites-advanced-insights",
3193
3221
  SitesAds = "sites-ads",
3194
3222
  SitesAiSearch = "sites-ai-search",
3223
+ SitesAiAssistant = "sites-ai-assistant",
3195
3224
  SitesApiPlayground = "sites-api-playground",
3196
3225
  SitesBasicCustomization = "sites-basic-customization",
3197
3226
  SitesCustomDomain = "sites-custom-domain",
@@ -3949,16 +3978,6 @@ export interface UpgradeOrganizationBilling {
3949
3978
  interval: BillingInterval;
3950
3979
  /** Changes to apply during a subscription upgrade or downgrade */
3951
3980
  changes?: SubscriptionChanges;
3952
- /**
3953
- * Deprecated. Use `changes` instead.
3954
- * @deprecated
3955
- */
3956
- exclude?: {
3957
- /** A list of member identifiers to be removed, `all` to remove all members but the current admin */
3958
- members?: string[] | 'all';
3959
- /** A list of site identifiers to be unpublished, 'all' to unpublish all sites */
3960
- sites?: string[] | 'all';
3961
- };
3962
3981
  /** Reason that triggered the billing upgrade */
3963
3982
  reason?: string;
3964
3983
  /** Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned */
@@ -4046,6 +4065,23 @@ export declare enum BillingSwitchAction {
4046
4065
  UndoCancel = "undo_cancel",
4047
4066
  SwitchInterval = "switch_interval"
4048
4067
  }
4068
+ /** Identifier of a billing meter */
4069
+ export declare enum BillingMeter {
4070
+ AiResponses = "ai_responses",
4071
+ AiAgentResponses = "ai_agent_responses",
4072
+ TranslationWords = "translation_words"
4073
+ }
4074
+ /** Usage metrics for a billing meter */
4075
+ export interface BillingMeterUsage {
4076
+ /** Total usage for the current billing period */
4077
+ total: number;
4078
+ /** Daily usage for the past 30 days */
4079
+ daily: {
4080
+ date: Timestamp;
4081
+ /** Usage value for the day */
4082
+ value: number;
4083
+ }[];
4084
+ }
4049
4085
  /** Search result representing a space. */
4050
4086
  export interface SearchSpaceResult {
4051
4087
  id: string;
@@ -4059,6 +4095,9 @@ export interface CreateSpace {
4059
4095
  emoji?: Emoji;
4060
4096
  /** ID of a parent collection */
4061
4097
  parent?: string;
4098
+ /** The edit mode of the space */
4099
+ editMode?: SpaceEditMode;
4100
+ template?: ApplySpaceTemplate;
4062
4101
  }
4063
4102
  /**
4064
4103
  * @minLength 1
@@ -4485,23 +4524,84 @@ export interface AgentTask {
4485
4524
  app: string;
4486
4525
  };
4487
4526
  }
4488
- /**
4489
- * Title of the translation settings
4490
- * @minLength 1
4491
- * @maxLength 100
4492
- */
4493
- export type TranslationTitle = string;
4494
- export interface TranslationSettings {
4495
- object: 'translation-settings';
4496
- /** Unique identifier of the translation settings */
4527
+ export declare enum TranslationStatus {
4528
+ Pending = "pending",
4529
+ Running = "running",
4530
+ Completed = "completed"
4531
+ }
4532
+ export declare enum TranslationLanguage {
4533
+ En = "en",
4534
+ Fr = "fr",
4535
+ De = "de",
4536
+ Es = "es",
4537
+ It = "it",
4538
+ Pt = "pt",
4539
+ Ru = "ru",
4540
+ Ja = "ja",
4541
+ Zh = "zh",
4542
+ Ko = "ko",
4543
+ Ar = "ar",
4544
+ Hi = "hi",
4545
+ Nl = "nl",
4546
+ Pl = "pl",
4547
+ Tr = "tr",
4548
+ Sv = "sv",
4549
+ No = "no",
4550
+ Da = "da",
4551
+ Fi = "fi",
4552
+ El = "el",
4553
+ Cs = "cs",
4554
+ Hu = "hu",
4555
+ Ro = "ro",
4556
+ Th = "th",
4557
+ Vi = "vi",
4558
+ Id = "id",
4559
+ Ms = "ms",
4560
+ He = "he",
4561
+ Uk = "uk",
4562
+ Sk = "sk",
4563
+ Bg = "bg",
4564
+ Hr = "hr",
4565
+ Lt = "lt",
4566
+ Lv = "lv",
4567
+ Et = "et",
4568
+ Sl = "sl"
4569
+ }
4570
+ export interface TranslationSource {
4571
+ /** ID of the source space */
4572
+ space: string;
4573
+ language: TranslationLanguage;
4574
+ }
4575
+ export interface Translation {
4576
+ object: 'translation';
4577
+ /** Unique identifier of the translation sync */
4497
4578
  id: string;
4498
- /** Title of the translation settings */
4499
- title: TranslationTitle;
4500
- languages: TranslationLanguage[];
4579
+ status: TranslationStatus;
4580
+ source: TranslationSource;
4581
+ language: TranslationLanguage;
4582
+ instructions: JSONDocument;
4583
+ /** Result of a translation. */
4584
+ result?: TranslationResult;
4501
4585
  /** @format date-time */
4502
4586
  createdAt: string;
4503
4587
  /** @format date-time */
4504
4588
  updatedAt: string;
4589
+ stats: {
4590
+ /** Total number of times the translation has been run */
4591
+ runs: number;
4592
+ /** Total number of words translated */
4593
+ totalWords: number;
4594
+ /** Total number of unique pages translated */
4595
+ totalPages: number;
4596
+ /** Total duration of all runs (in seconds) */
4597
+ totalDuration: number;
4598
+ /** Duration of the latest run (in seconds) */
4599
+ latestRunDuration: number;
4600
+ /** Number of unique pages translated in the latest run */
4601
+ latestPages: number;
4602
+ /** Number of words translated in the latest run */
4603
+ latestWords: number;
4604
+ };
4505
4605
  permissions: {
4506
4606
  /** Whether the user can view the object */
4507
4607
  view: boolean;
@@ -4517,19 +4617,39 @@ export interface TranslationSettings {
4517
4617
  location: string;
4518
4618
  };
4519
4619
  }
4520
- export interface TranslationLanguageSettings {
4521
- object: 'translation-language-settings';
4522
- language: TranslationLanguage;
4523
- instructions: JSONDocument;
4524
- /** URLs associated with the object */
4620
+ /** Mapping of language codes to translated terms */
4621
+ export type GlossaryTranslations = Record<string, string>;
4622
+ export interface GlossaryEntry {
4623
+ object: 'glossary-entry';
4624
+ /** Unique identifier of the glossary entry */
4625
+ id: string;
4626
+ /** Mapping of language codes to translated terms */
4627
+ translations: GlossaryTranslations;
4628
+ /** @format date-time */
4629
+ createdAt: string;
4630
+ /** @format date-time */
4631
+ updatedAt: string;
4525
4632
  urls: {
4526
4633
  /**
4527
- * URL of the translation language settings in the API
4634
+ * URL of the glossary entry in the API
4528
4635
  * @format uri
4529
4636
  */
4530
4637
  location: string;
4531
4638
  };
4532
4639
  }
4640
+ export type GlossaryBatchOperation = {
4641
+ type: 'insert';
4642
+ /** Mapping of language codes to translated terms */
4643
+ translations: GlossaryTranslations;
4644
+ } | {
4645
+ type: 'update';
4646
+ id: string;
4647
+ /** Mapping of language codes to translated terms */
4648
+ translations: GlossaryTranslations;
4649
+ } | {
4650
+ type: 'delete';
4651
+ id: string;
4652
+ };
4533
4653
  export interface StorageFileMetadata {
4534
4654
  /** Original filename */
4535
4655
  name: string;
@@ -4617,13 +4737,25 @@ export type BillingOperationPreviewResponse = {
4617
4737
  type: 'checkout';
4618
4738
  invoice?: BillingInvoicePreview;
4619
4739
  };
4620
- export type SiteAdaptiveJSONSchemaClaimsProperties = {
4740
+ export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
4621
4741
  type: 'boolean';
4622
4742
  description: string;
4623
4743
  } | {
4624
4744
  type: 'string';
4625
4745
  enum: string[];
4626
4746
  description: string;
4747
+ };
4748
+ export type SiteAdaptiveJSONSchemaPrimitives = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
4749
+ type: 'string';
4750
+ description: string;
4751
+ } | {
4752
+ type: 'number';
4753
+ description: string;
4754
+ };
4755
+ export type SiteAdaptiveJSONSchemaClaimsProperties = SiteAdaptiveJSONSchemaPrimitives | {
4756
+ type: 'array';
4757
+ description: string;
4758
+ items: SiteAdaptiveJSONSchemaPrimitives;
4627
4759
  } | {
4628
4760
  type: 'object';
4629
4761
  description: string;
@@ -4633,7 +4765,6 @@ export type SiteAdaptiveJSONSchemaClaimsProperties = {
4633
4765
  /** JSON schema describing the expected attributes of an Adaptive site schema. */
4634
4766
  export interface SiteAdaptiveJSONSchema {
4635
4767
  $schema?: 'http://json-schema.org/draft-07/schema#';
4636
- $id?: string;
4637
4768
  type: 'object';
4638
4769
  properties: {
4639
4770
  /** Unsigned claims of the site visitor. */
@@ -4724,6 +4855,17 @@ export declare enum CustomizationDefaultFont {
4724
4855
  FiraSans = "FiraSans"
4725
4856
  }
4726
4857
  export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinitionInput;
4858
+ export declare enum CustomizationDefaultMonospaceFont {
4859
+ FiraCode = "FiraCode",
4860
+ IBMPlexMono = "IBMPlexMono",
4861
+ JetBrainsMono = "JetBrainsMono",
4862
+ SourceCodePro = "SourceCodePro",
4863
+ RobotoMono = "RobotoMono",
4864
+ SpaceMono = "SpaceMono",
4865
+ DMMono = "DMMono",
4866
+ Inconsolata = "Inconsolata"
4867
+ }
4868
+ export type CustomizationMonospaceFont = CustomizationDefaultMonospaceFont | CustomizationFontDefinitionInput;
4727
4869
  /**
4728
4870
  * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
4729
4871
  * @deprecated
@@ -4828,6 +4970,11 @@ export declare enum CustomizationThemeMode {
4828
4970
  Light = "light",
4829
4971
  Dark = "dark"
4830
4972
  }
4973
+ export declare enum CustomizationAIMode {
4974
+ None = "none",
4975
+ Search = "search",
4976
+ Assistant = "assistant"
4977
+ }
4831
4978
  /**
4832
4979
  * How external links should open when clicked.
4833
4980
  * - `self`: External links open in the current tab.
@@ -4869,6 +5016,7 @@ export interface SiteCustomizationSettings {
4869
5016
  */
4870
5017
  links: CustomizationLinksStyle;
4871
5018
  font: CustomizationFont;
5019
+ monospaceFont: CustomizationMonospaceFont;
4872
5020
  /**
4873
5021
  * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
4874
5022
  * @deprecated
@@ -4937,11 +5085,9 @@ export interface SiteCustomizationSettings {
4937
5085
  /** If true, feedback gathering is enabled */
4938
5086
  enabled: boolean;
4939
5087
  };
4940
- aiSearch: {
4941
- /** If true, AI search is enabled */
4942
- enabled: boolean;
5088
+ ai: {
5089
+ mode: CustomizationAIMode;
4943
5090
  };
4944
- ai?: object;
4945
5091
  advancedCustomization: {
4946
5092
  /** If true, Advanced customization is enabled */
4947
5093
  enabled: boolean;
@@ -4950,6 +5096,12 @@ export interface SiteCustomizationSettings {
4950
5096
  /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
4951
5097
  showEditLink: boolean;
4952
5098
  };
5099
+ pageActions: {
5100
+ /** Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. */
5101
+ externalAI: boolean;
5102
+ /** Whether the copy and open the markdown version of the page should be available in the page menu. */
5103
+ markdown: boolean;
5104
+ };
4953
5105
  externalLinks: {
4954
5106
  /**
4955
5107
  * How external links should open when clicked.
@@ -5414,6 +5566,14 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
5414
5566
  /** Question being asked. */
5415
5567
  query: string;
5416
5568
  };
5569
+ export type SiteInsightsEventAskRateResponse = SiteInsightsEventBase & {
5570
+ type: 'ask_rate_response';
5571
+ /** Question asked. */
5572
+ query: string;
5573
+ rating: 1 | -1;
5574
+ /** ID of the AI response. */
5575
+ responseId: string;
5576
+ };
5417
5577
  export declare enum SiteInsightsLinkPosition {
5418
5578
  Announcement = "announcement",
5419
5579
  Header = "header",
@@ -5465,7 +5625,7 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
5465
5625
  type: 'ad_display';
5466
5626
  ad: SiteInsightsAd;
5467
5627
  };
5468
- export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5628
+ export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
5469
5629
  export interface SiteInsightsQueryDateTimeColumn {
5470
5630
  column: 'datetime';
5471
5631
  interval?: 'hour' | 'day' | 'week' | 'month';
@@ -5525,8 +5685,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
5525
5685
  column: 'eventPageFeedbackRating';
5526
5686
  } | {
5527
5687
  column: 'eventPageFeedbackComment';
5688
+ } | {
5689
+ column: 'eventAskResponseRating';
5528
5690
  } | {
5529
5691
  column: 'pageFeedbackRating';
5692
+ } | {
5693
+ column: 'askResponseRating';
5530
5694
  } | {
5531
5695
  column: 'referrer';
5532
5696
  } | {
@@ -5561,6 +5725,7 @@ export declare enum SiteInsightsEventType {
5561
5725
  PagePostFeedback = "page_post_feedback",
5562
5726
  PagePostFeedbackComment = "page_post_feedback_comment",
5563
5727
  AskQuestion = "ask_question",
5728
+ AskRateResponse = "ask_rate_response",
5564
5729
  LinkClick = "link_click",
5565
5730
  ApiClientOpen = "api_client_open",
5566
5731
  ApiClientRequest = "api_client_request",
@@ -5694,9 +5859,18 @@ export type SiteInsightsQueryEventsValues = {
5694
5859
  good: number;
5695
5860
  bad: number;
5696
5861
  }[];
5862
+ } | {
5863
+ column: 'askResponseRating';
5864
+ values: {
5865
+ positive: number;
5866
+ negative: number;
5867
+ }[];
5697
5868
  } | {
5698
5869
  column: 'eventPageFeedbackRating';
5699
5870
  values: PageFeedbackRating[];
5871
+ } | {
5872
+ column: 'eventAskResponseRating';
5873
+ values: number[];
5700
5874
  } | {
5701
5875
  column: 'eventPageFeedbackComment';
5702
5876
  values: string[];
@@ -6060,11 +6234,11 @@ export interface PublishedSiteContent {
6060
6234
  changeRequest?: string;
6061
6235
  /** Identifier of the revision being previewed in this URL. */
6062
6236
  revision?: string;
6063
- /** Path of the content relative to the space */
6237
+ /** Path of the content relative to the input URL being resolved */
6064
6238
  pathname: string;
6065
- /** Prefix of the path in the URL dedicated to the space */
6239
+ /** Prefix of the path in the input URL being resolved */
6066
6240
  basePath: string;
6067
- /** Prefix of the path in the URL dedicated to the site */
6241
+ /** Prefix of the site path in the input URL being resolved */
6068
6242
  siteBasePath: string;
6069
6243
  /** Short-lived API token to fetch content related to the space in the context of the URL. */
6070
6244
  apiToken: string;
@@ -6172,6 +6346,32 @@ export interface UpdateContentPublishingAuth {
6172
6346
  export declare enum GitBookUsers {
6173
6347
  GitbookAgent = "gitbook:agent"
6174
6348
  }
6349
+ export interface SpaceTemplate {
6350
+ id: string;
6351
+ contentId: string;
6352
+ /** A title of the template. */
6353
+ title: string;
6354
+ /** A subtitle for the template. */
6355
+ subtitle: string;
6356
+ /** An emoji representing the template. */
6357
+ emoji: Emoji;
6358
+ /** An optional OpenAPI spec to create along with the template. */
6359
+ openAPISpec?: {
6360
+ /** Slug used as reference */
6361
+ slug: OpenAPISpecSlug;
6362
+ sourceURL: URL;
6363
+ };
6364
+ /** A list of features that the template supports. */
6365
+ features: string[];
6366
+ previewImage: {
6367
+ light: URL;
6368
+ dark: URL;
6369
+ };
6370
+ /** URLs associated with the object */
6371
+ urls: {
6372
+ preview: URL;
6373
+ };
6374
+ }
6175
6375
  export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
6176
6376
  export type InputPageBase = {
6177
6377
  /**
@@ -6537,9 +6737,14 @@ export interface OrganizationOpenAPISpecsChannel {
6537
6737
  channel: 'organization-openapi-specs';
6538
6738
  organization: string;
6539
6739
  }
6540
- /** Subscription channel for changes in translation settings in an organization. */
6541
- export interface OrganizationTranslationSettingsChannel {
6542
- channel: 'organization-translation-settings';
6740
+ /** Subscription channel for changes in translations in an organization. */
6741
+ export interface OrganizationTranslationsChannel {
6742
+ channel: 'organization-translations';
6743
+ organization: string;
6744
+ }
6745
+ /** Subscription channel for changes in the glossary in an organization. */
6746
+ export interface OrganizationTranslationsGlossaryChannel {
6747
+ channel: 'organization-translations-glossary';
6543
6748
  organization: string;
6544
6749
  }
6545
6750
  /** Subscription channel for changes in custom fonts in an organization. */
@@ -6674,10 +6879,6 @@ export interface CustomHostnameChannel {
6674
6879
  channel: 'custom-hostname';
6675
6880
  customHostname: string;
6676
6881
  }
6677
- export interface GitSyncSettingsChannel {
6678
- channel: 'space-gitsync-settings';
6679
- space: string;
6680
- }
6681
6882
  export interface GitSyncOperationChannel {
6682
6883
  channel: 'space-gitsync-operation';
6683
6884
  space: string;
@@ -6691,8 +6892,8 @@ export interface SubdomainChannel {
6691
6892
  channel: 'subdomain';
6692
6893
  subdomain: string;
6693
6894
  }
6694
- export interface TranslationSettingsChannel {
6695
- channel: 'translation-settings';
6895
+ export interface TranslationChannel {
6896
+ channel: 'translation';
6696
6897
  translation: string;
6697
6898
  }
6698
6899
  /** Subscription channel for an agent task. */
@@ -6710,7 +6911,7 @@ export interface AgentTasksChannel {
6710
6911
  organization: string;
6711
6912
  }
6712
6913
  /** Channel to subscribe to for realtime updates. */
6713
- 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 | OrganizationTranslationSettingsChannel | 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 | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel | AgentTaskChannel | AgentTasksChannel;
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;
6714
6915
  export interface GitSyncOperationChannelData {
6715
6916
  channel: 'space-gitsync-operation';
6716
6917
  data: GitSyncOperation;
@@ -6750,6 +6951,12 @@ export interface APIChannelMutationData {
6750
6951
  }
6751
6952
  /** Data passed through a realtime channel */
6752
6953
  export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
6954
+ export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
6955
+ type: 'object';
6956
+ description: string;
6957
+ properties: Record<string, SiteAdaptiveDeterministicJSONSchemaClaimsProperties>;
6958
+ additionalProperties: false;
6959
+ };
6753
6960
  /** The status of ads on the site */
6754
6961
  export declare enum SiteAdsStatus {
6755
6962
  Pending = "pending",
@@ -6844,6 +7051,7 @@ export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
6844
7051
  export type SpaceVisitorAuth = VisitorAuth;
6845
7052
  export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
6846
7053
  export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
7054
+ export type ApplyTemplate = ApplySpaceTemplate;
6847
7055
  export type UserPermissions = Index;
6848
7056
  export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
6849
7057
  export type OpenAPISpecSourceURL = URL;
@@ -7196,6 +7404,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7196
7404
  message: string;
7197
7405
  };
7198
7406
  }>>;
7407
+ /**
7408
+ * No description
7409
+ *
7410
+ * @tags space-git
7411
+ * @name DeleteLegacyGitInstallation
7412
+ * @summary Remove the legacy Git Sync installation from the space to be able to upgrade it to use the new Git integrations
7413
+ * @request DELETE:/spaces/{spaceId}/git/legacy-installation
7414
+ * @secure
7415
+ */
7416
+ deleteLegacyGitInstallation: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
7199
7417
  /**
7200
7418
  * No description
7201
7419
  *
@@ -7373,6 +7591,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7373
7591
  * @secure
7374
7592
  */
7375
7593
  importContent: (spaceId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
7594
+ /**
7595
+ * No description
7596
+ *
7597
+ * @tags space-content
7598
+ * @name ApplyTemplateToSpace
7599
+ * @summary Apply a template to a space.
7600
+ * @request POST:/spaces/{spaceId}/content/template
7601
+ * @secure
7602
+ */
7603
+ applyTemplateToSpace: (spaceId: string, data: ApplySpaceTemplate, params?: RequestParams) => Promise<HttpResponse<void, any>>;
7376
7604
  /**
7377
7605
  * No description
7378
7606
  *
@@ -10582,6 +10810,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10582
10810
  message: string;
10583
10811
  };
10584
10812
  }>>;
10813
+ /**
10814
+ * No description
10815
+ *
10816
+ * @tags openapi
10817
+ * @name UpdateOpenApiSpecBySlug
10818
+ * @summary Update OpenAPI spec visibility
10819
+ * @request PATCH:/orgs/{organizationId}/openapi/{specSlug}
10820
+ * @secure
10821
+ */
10822
+ updateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
10823
+ /**
10824
+ * The visibility setting of the OpenAPI spec.
10825
+ * * `private`: The spec is not publicly available.
10826
+ * * `public`: The spec is available to anyone with a public link.
10827
+ */
10828
+ visibility: OpenAPISpecVisibility;
10829
+ }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, {
10830
+ error: {
10831
+ /** @format int32 */
10832
+ code: 400;
10833
+ message: string;
10834
+ };
10835
+ } | {
10836
+ error: {
10837
+ /** @format int32 */
10838
+ code: 404;
10839
+ message: string;
10840
+ };
10841
+ }>>;
10585
10842
  /**
10586
10843
  * No description
10587
10844
  *
@@ -10844,12 +11101,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10844
11101
  * No description
10845
11102
  *
10846
11103
  * @tags translations
10847
- * @name ListTranslationSettings
10848
- * @summary List all the translation settings
11104
+ * @name ListTranslations
11105
+ * @summary List all the translations
10849
11106
  * @request GET:/orgs/{organizationId}/translations
10850
11107
  * @secure
10851
11108
  */
10852
- listTranslationSettings: (organizationId: string, query?: {
11109
+ listTranslations: (organizationId: string, query?: {
10853
11110
  /** Identifier of the page results to fetch. */
10854
11111
  page?: string;
10855
11112
  /**
@@ -10859,21 +11116,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10859
11116
  */
10860
11117
  limit?: number;
10861
11118
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10862
- items: TranslationSettings[];
11119
+ items: Translation[];
10863
11120
  }, any>>;
10864
11121
  /**
10865
11122
  * No description
10866
11123
  *
10867
11124
  * @tags translations
10868
- * @name CreateTranslationSettings
10869
- * @summary Create a translation settings
11125
+ * @name CreateTranslation
11126
+ * @summary Create a translation
10870
11127
  * @request POST:/orgs/{organizationId}/translations
10871
11128
  * @secure
10872
11129
  */
10873
- createTranslationSettings: (organizationId: string, data: {
10874
- /** The title of the translation settings */
10875
- title: string;
10876
- }, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, {
11130
+ createTranslation: (organizationId: string, data: {
11131
+ source: TranslationSource;
11132
+ language: TranslationLanguage;
11133
+ instructions?: JSONDocument;
11134
+ }, params?: RequestParams) => Promise<HttpResponse<Translation, {
10877
11135
  error: {
10878
11136
  /** @format int32 */
10879
11137
  code: 400;
@@ -10884,12 +11142,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10884
11142
  * No description
10885
11143
  *
10886
11144
  * @tags translations
10887
- * @name GetTranslationSettings
10888
- * @summary Get a translation settings by its ID
10889
- * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}
11145
+ * @name GetTranslation
11146
+ * @summary Get a translation by its ID
11147
+ * @request GET:/orgs/{organizationId}/translations/{translationId}
10890
11148
  * @secure
10891
11149
  */
10892
- getTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, {
11150
+ getTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<Translation, {
10893
11151
  error: {
10894
11152
  /** @format int32 */
10895
11153
  code: 404;
@@ -10900,15 +11158,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10900
11158
  * No description
10901
11159
  *
10902
11160
  * @tags translations
10903
- * @name UpdateTranslationSettings
10904
- * @summary Update a translation settings
10905
- * @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}
11161
+ * @name UpdateTranslation
11162
+ * @summary Update a translation
11163
+ * @request PUT:/orgs/{organizationId}/translations/{translationId}
10906
11164
  * @secure
10907
11165
  */
10908
- updateTranslationSettings: (organizationId: string, translationSettingsId: string, data: {
10909
- /** The title of the translation settings */
10910
- title: string;
10911
- }, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, {
11166
+ updateTranslation: (organizationId: string, translationId: string, data: {
11167
+ instructions: JSONDocument;
11168
+ }, params?: RequestParams) => Promise<HttpResponse<Translation, {
10912
11169
  error: {
10913
11170
  /** @format int32 */
10914
11171
  code: 400;
@@ -10919,22 +11176,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10919
11176
  * No description
10920
11177
  *
10921
11178
  * @tags translations
10922
- * @name DeleteTranslationSettings
10923
- * @summary Delete a translation settings
10924
- * @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}
11179
+ * @name DeleteTranslation
11180
+ * @summary Delete a translation
11181
+ * @request DELETE:/orgs/{organizationId}/translations/{translationId}
10925
11182
  * @secure
10926
11183
  */
10927
- deleteTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
11184
+ deleteTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10928
11185
  /**
10929
11186
  * No description
10930
11187
  *
10931
- * @tags translation-languages
10932
- * @name ListTranslationLanguages
10933
- * @summary List all translation settings language
10934
- * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages
11188
+ * @tags glossary
11189
+ * @name ListGlossaryEntries
11190
+ * @summary List glossary entries
11191
+ * @request GET:/orgs/{organizationId}/translations-glossary
10935
11192
  * @secure
10936
11193
  */
10937
- listTranslationLanguages: (organizationId: string, translationSettingsId: string, query?: {
11194
+ listGlossaryEntries: (organizationId: string, query?: {
10938
11195
  /** Identifier of the page results to fetch. */
10939
11196
  page?: string;
10940
11197
  /**
@@ -10944,64 +11201,42 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10944
11201
  */
10945
11202
  limit?: number;
10946
11203
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10947
- items: TranslationLanguageSettings[];
10948
- }, {
10949
- error: {
10950
- /** @format int32 */
10951
- code: 404;
10952
- message: string;
10953
- };
10954
- }>>;
11204
+ items: GlossaryEntry[];
11205
+ }, any>>;
10955
11206
  /**
10956
11207
  * No description
10957
11208
  *
10958
- * @tags translation-languages
10959
- * @name GetTranslationLanguage
10960
- * @summary Get a translation settings language
10961
- * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
11209
+ * @tags glossary
11210
+ * @name UpdateGlossaryEntries
11211
+ * @summary Update glossary entries
11212
+ * @request PUT:/orgs/{organizationId}/translations-glossary
10962
11213
  * @secure
10963
11214
  */
10964
- getTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, {
11215
+ updateGlossaryEntries: (organizationId: string, data: {
11216
+ operations: GlossaryBatchOperation[];
11217
+ }, params?: RequestParams) => Promise<HttpResponse<void, {
10965
11218
  error: {
10966
11219
  /** @format int32 */
10967
- code: 404;
11220
+ code: 400;
10968
11221
  message: string;
10969
11222
  };
10970
11223
  }>>;
10971
11224
  /**
10972
11225
  * No description
10973
11226
  *
10974
- * @tags translation-languages
10975
- * @name CreateOrUpdateTranslationLanguage
10976
- * @summary Create or update a translation settings language
10977
- * @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
11227
+ * @tags glossary
11228
+ * @name GetGlossaryEntry
11229
+ * @summary Get a glossary entry by its ID
11230
+ * @request GET:/orgs/{organizationId}/translations-glossary/{glossaryEntryId}
10978
11231
  * @secure
10979
11232
  */
10980
- createOrUpdateTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, data: {
10981
- instructions: JSONDocument;
10982
- }, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, {
10983
- error: {
10984
- /** @format int32 */
10985
- code: 400;
10986
- message: string;
10987
- };
10988
- } | {
11233
+ getGlossaryEntry: (organizationId: string, glossaryEntryId: string, params?: RequestParams) => Promise<HttpResponse<GlossaryEntry, {
10989
11234
  error: {
10990
11235
  /** @format int32 */
10991
11236
  code: 404;
10992
11237
  message: string;
10993
11238
  };
10994
11239
  }>>;
10995
- /**
10996
- * No description
10997
- *
10998
- * @tags translation-languages
10999
- * @name DeleteTranslationLanguage
11000
- * @summary Remove a translation settings language
11001
- * @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
11002
- * @secure
11003
- */
11004
- deleteTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<void, any>>;
11005
11240
  /**
11006
11241
  * @description Generate a pre-signed URL that can be used to upload a file to storage
11007
11242
  *
@@ -11941,8 +12176,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11941
12176
  depth?: CustomizationDepth | null;
11942
12177
  /** The style for links to use. Set to null to reset the override. */
11943
12178
  links?: CustomizationLinksStyle | null;
11944
- /** The font family to use for the content. Set to null to reset the override. */
11945
- font?: CustomizationFont | null;
11946
12179
  /** The icons style to use for the content. Set to null to reset the override. */
11947
12180
  icons?: CustomizationIconsStyle | null;
11948
12181
  /** Various styles for the sidebar. Each can be Set to null to reset the override. */
@@ -11999,10 +12232,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11999
12232
  /** If true, feedback gathering is enabled. Set to null to reset the override. */
12000
12233
  enabled: boolean | null;
12001
12234
  };
12002
- aiSearch?: {
12003
- /** If true, AI search is enabled. Set to null to reset the override. */
12004
- enabled: boolean | null;
12005
- };
12006
12235
  git?: {
12007
12236
  /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
12008
12237
  showEditLink: boolean | null;