@gitbook/api 0.128.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 +405 -201
- package/dist/index.cjs +105 -65
- package/dist/index.js +101 -64
- package/package.json +1 -1
- package/spec/openapi.json +1088 -429
- package/spec/openapi.yaml +794 -328
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
|
-
/**
|
|
42
|
-
label:
|
|
43
|
+
/** A descriptive label for the API token. */
|
|
44
|
+
label: APITokenLabel;
|
|
43
45
|
/** The API token creation date. */
|
|
44
46
|
createdAt: Timestamp;
|
|
45
47
|
}
|
|
@@ -1277,89 +1279,45 @@ export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
1277
1279
|
models: boolean;
|
|
1278
1280
|
};
|
|
1279
1281
|
};
|
|
1280
|
-
export interface
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
|
|
1284
|
-
object: 'space';
|
|
1285
|
-
id: string;
|
|
1286
|
-
revision: string;
|
|
1287
|
-
} | null;
|
|
1288
|
-
}
|
|
1289
|
-
export declare enum TranslationLanguage {
|
|
1290
|
-
En = "en",
|
|
1291
|
-
Fr = "fr",
|
|
1292
|
-
De = "de",
|
|
1293
|
-
Es = "es",
|
|
1294
|
-
It = "it",
|
|
1295
|
-
Pt = "pt",
|
|
1296
|
-
Ru = "ru",
|
|
1297
|
-
Ja = "ja",
|
|
1298
|
-
Zh = "zh",
|
|
1299
|
-
Ko = "ko",
|
|
1300
|
-
Ar = "ar",
|
|
1301
|
-
Hi = "hi",
|
|
1302
|
-
Nl = "nl",
|
|
1303
|
-
Pl = "pl",
|
|
1304
|
-
Tr = "tr",
|
|
1305
|
-
Sv = "sv",
|
|
1306
|
-
No = "no",
|
|
1307
|
-
Da = "da",
|
|
1308
|
-
Fi = "fi",
|
|
1309
|
-
El = "el",
|
|
1310
|
-
Cs = "cs",
|
|
1311
|
-
Hu = "hu",
|
|
1312
|
-
Ro = "ro",
|
|
1313
|
-
Th = "th",
|
|
1314
|
-
Vi = "vi",
|
|
1315
|
-
Id = "id",
|
|
1316
|
-
Ms = "ms",
|
|
1317
|
-
He = "he",
|
|
1318
|
-
Uk = "uk",
|
|
1319
|
-
Sk = "sk",
|
|
1320
|
-
Bg = "bg",
|
|
1321
|
-
Hr = "hr",
|
|
1322
|
-
Lt = "lt",
|
|
1323
|
-
Lv = "lv",
|
|
1324
|
-
Et = "et",
|
|
1325
|
-
Sl = "sl"
|
|
1326
|
-
}
|
|
1327
|
-
export interface TranslationLanguageRef {
|
|
1328
|
-
kind: 'translation-language';
|
|
1329
|
-
/** ID of the translation settings */
|
|
1330
|
-
translationSettings: string;
|
|
1331
|
-
language: TranslationLanguage;
|
|
1282
|
+
export interface TranslationRef {
|
|
1283
|
+
kind: 'translation';
|
|
1284
|
+
/** ID of the translation sync */
|
|
1285
|
+
translation: string;
|
|
1332
1286
|
}
|
|
1333
|
-
/**
|
|
1334
|
-
export interface
|
|
1335
|
-
/**
|
|
1336
|
-
|
|
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;
|
|
1337
1293
|
}
|
|
1338
1294
|
export interface ComputedContentDependencyTranslation {
|
|
1339
|
-
ref:
|
|
1340
|
-
/**
|
|
1341
|
-
value:
|
|
1295
|
+
ref: TranslationRef;
|
|
1296
|
+
/** Translation has not been run yet */
|
|
1297
|
+
value: TranslationResult | null;
|
|
1342
1298
|
}
|
|
1343
|
-
/**
|
|
1344
|
-
export interface
|
|
1299
|
+
/** Parameters for a translation computed content source */
|
|
1300
|
+
export interface ComputedContentSourceRevisionTranslation {
|
|
1345
1301
|
type: 'builtin:translation';
|
|
1302
|
+
props: object;
|
|
1346
1303
|
dependencies: {
|
|
1347
|
-
|
|
1348
|
-
ref:
|
|
1349
|
-
} | ComputedContentDependencySpace;
|
|
1350
|
-
settings: {
|
|
1351
|
-
ref: TranslationLanguageRef;
|
|
1304
|
+
translation: {
|
|
1305
|
+
ref: TranslationRef;
|
|
1352
1306
|
} | ComputedContentDependencyTranslation;
|
|
1353
1307
|
};
|
|
1354
1308
|
}
|
|
1355
|
-
export type ComputedContentSourceRevisionTranslation = ComputedContentSourceTranslationBase & {
|
|
1356
|
-
props: {
|
|
1357
|
-
sourceLanguage: TranslationLanguage;
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
1309
|
/** Dependency for a computation, before its resolution. */
|
|
1361
1310
|
export interface ComputedContentDependency {
|
|
1362
|
-
ref: ContentRefSpace | ContentRefOpenAPI |
|
|
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;
|
|
1363
1321
|
}
|
|
1364
1322
|
/** Dependency for a computation, with its resolved value. */
|
|
1365
1323
|
export type ComputedContentDependencyResolved = ComputedContentDependencySpace | ComputedContentDependencyOpenAPI | ComputedContentDependencyTranslation;
|
|
@@ -1402,21 +1360,23 @@ export declare enum RevisionPageLayoutOptionsCoverSize {
|
|
|
1402
1360
|
}
|
|
1403
1361
|
export interface RevisionPageLayoutOptions {
|
|
1404
1362
|
/** Width of the page. */
|
|
1405
|
-
width
|
|
1363
|
+
width: RevisionPageLayoutOptionsWidth;
|
|
1406
1364
|
/** Should the cover be visible? */
|
|
1407
|
-
cover
|
|
1365
|
+
cover: boolean;
|
|
1408
1366
|
/** Size of the cover image. */
|
|
1409
|
-
coverSize
|
|
1367
|
+
coverSize: RevisionPageLayoutOptionsCoverSize;
|
|
1410
1368
|
/** Should the title be visible? */
|
|
1411
|
-
title
|
|
1369
|
+
title: boolean;
|
|
1412
1370
|
/** Should the description be visible? */
|
|
1413
|
-
description
|
|
1371
|
+
description: boolean;
|
|
1414
1372
|
/** Should the table of contents be visible? */
|
|
1415
|
-
tableOfContents
|
|
1373
|
+
tableOfContents: boolean;
|
|
1416
1374
|
/** Should the outline be visible? */
|
|
1417
|
-
outline
|
|
1375
|
+
outline: boolean;
|
|
1418
1376
|
/** Should the pagination be visible? */
|
|
1419
|
-
pagination
|
|
1377
|
+
pagination: boolean;
|
|
1378
|
+
/** Should the page metadata (last modified, author, etc.) be visible? */
|
|
1379
|
+
metadata: boolean;
|
|
1420
1380
|
}
|
|
1421
1381
|
export interface RevisionPageDocumentCover {
|
|
1422
1382
|
/** Content reference pointing to the source image. */
|
|
@@ -1441,12 +1401,14 @@ export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
1441
1401
|
page: string;
|
|
1442
1402
|
};
|
|
1443
1403
|
};
|
|
1444
|
-
|
|
1404
|
+
/** Parameters for a document translation computed content source */
|
|
1405
|
+
export interface ComputedContentSourceDocumentTranslation {
|
|
1406
|
+
type: 'builtin:translation';
|
|
1445
1407
|
props: {
|
|
1408
|
+
space: string;
|
|
1446
1409
|
document: string;
|
|
1447
|
-
sourceLanguage: TranslationLanguage;
|
|
1448
1410
|
};
|
|
1449
|
-
}
|
|
1411
|
+
}
|
|
1450
1412
|
export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
|
|
1451
1413
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1452
1414
|
/** @deprecated */
|
|
@@ -1638,6 +1600,10 @@ export interface ImportContentResult {
|
|
|
1638
1600
|
/** How many resources were processed */
|
|
1639
1601
|
totalResources: number;
|
|
1640
1602
|
}
|
|
1603
|
+
export interface ApplySpaceTemplate {
|
|
1604
|
+
/** The ID of the template to use for the space */
|
|
1605
|
+
id: string;
|
|
1606
|
+
}
|
|
1641
1607
|
/**
|
|
1642
1608
|
* Name of the organization
|
|
1643
1609
|
* @minLength 2
|
|
@@ -1694,6 +1660,36 @@ export declare enum BillingInterval {
|
|
|
1694
1660
|
Monthly = "monthly",
|
|
1695
1661
|
Yearly = "yearly"
|
|
1696
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
|
+
}
|
|
1697
1693
|
export interface OrganizationBilling {
|
|
1698
1694
|
/** Interval for a billing subscription */
|
|
1699
1695
|
interval: BillingInterval;
|
|
@@ -1702,6 +1698,8 @@ export interface OrganizationBilling {
|
|
|
1702
1698
|
hasPaymentFailed: boolean;
|
|
1703
1699
|
/** If true, the billing is set to cancel at the end of its current period */
|
|
1704
1700
|
isScheduledToCancel: boolean;
|
|
1701
|
+
/** Pricing information for the organization */
|
|
1702
|
+
pricing: OrganizationPricing;
|
|
1705
1703
|
}
|
|
1706
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. */
|
|
1707
1705
|
export declare enum BillingTrialStatus {
|
|
@@ -1930,6 +1928,15 @@ export declare enum OpenAPISpecProcessingState {
|
|
|
1930
1928
|
Progress = "progress",
|
|
1931
1929
|
Complete = "complete"
|
|
1932
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
|
+
}
|
|
1933
1940
|
/** OpenAPI processing error code */
|
|
1934
1941
|
export declare enum OpenAPISpecProcessingErrorCode {
|
|
1935
1942
|
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
@@ -1950,6 +1957,12 @@ export interface OpenAPISpec {
|
|
|
1950
1957
|
sourceURL?: URL;
|
|
1951
1958
|
/** Processing state */
|
|
1952
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;
|
|
1953
1966
|
/** ID of the latest version of the OpenAPI specification */
|
|
1954
1967
|
lastVersion?: string;
|
|
1955
1968
|
/** Date of the last processing */
|
|
@@ -1969,6 +1982,11 @@ export interface OpenAPISpec {
|
|
|
1969
1982
|
location: URL;
|
|
1970
1983
|
/** URL of the OpenAPI specification in the application */
|
|
1971
1984
|
app: URL;
|
|
1985
|
+
/**
|
|
1986
|
+
* URL of the published spec. Only defined when visibility is "published."
|
|
1987
|
+
* @format uri
|
|
1988
|
+
*/
|
|
1989
|
+
published?: string;
|
|
1972
1990
|
};
|
|
1973
1991
|
}
|
|
1974
1992
|
export interface ContentLocationOpenAPI {
|
|
@@ -3960,16 +3978,6 @@ export interface UpgradeOrganizationBilling {
|
|
|
3960
3978
|
interval: BillingInterval;
|
|
3961
3979
|
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3962
3980
|
changes?: SubscriptionChanges;
|
|
3963
|
-
/**
|
|
3964
|
-
* Deprecated. Use `changes` instead.
|
|
3965
|
-
* @deprecated
|
|
3966
|
-
*/
|
|
3967
|
-
exclude?: {
|
|
3968
|
-
/** A list of member identifiers to be removed, `all` to remove all members but the current admin */
|
|
3969
|
-
members?: string[] | 'all';
|
|
3970
|
-
/** A list of site identifiers to be unpublished, 'all' to unpublish all sites */
|
|
3971
|
-
sites?: string[] | 'all';
|
|
3972
|
-
};
|
|
3973
3981
|
/** Reason that triggered the billing upgrade */
|
|
3974
3982
|
reason?: string;
|
|
3975
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 */
|
|
@@ -4057,6 +4065,23 @@ export declare enum BillingSwitchAction {
|
|
|
4057
4065
|
UndoCancel = "undo_cancel",
|
|
4058
4066
|
SwitchInterval = "switch_interval"
|
|
4059
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
|
+
}
|
|
4060
4085
|
/** Search result representing a space. */
|
|
4061
4086
|
export interface SearchSpaceResult {
|
|
4062
4087
|
id: string;
|
|
@@ -4070,6 +4095,9 @@ export interface CreateSpace {
|
|
|
4070
4095
|
emoji?: Emoji;
|
|
4071
4096
|
/** ID of a parent collection */
|
|
4072
4097
|
parent?: string;
|
|
4098
|
+
/** The edit mode of the space */
|
|
4099
|
+
editMode?: SpaceEditMode;
|
|
4100
|
+
template?: ApplySpaceTemplate;
|
|
4073
4101
|
}
|
|
4074
4102
|
/**
|
|
4075
4103
|
* @minLength 1
|
|
@@ -4496,23 +4524,84 @@ export interface AgentTask {
|
|
|
4496
4524
|
app: string;
|
|
4497
4525
|
};
|
|
4498
4526
|
}
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
export
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
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 */
|
|
4508
4578
|
id: string;
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4579
|
+
status: TranslationStatus;
|
|
4580
|
+
source: TranslationSource;
|
|
4581
|
+
language: TranslationLanguage;
|
|
4582
|
+
instructions: JSONDocument;
|
|
4583
|
+
/** Result of a translation. */
|
|
4584
|
+
result?: TranslationResult;
|
|
4512
4585
|
/** @format date-time */
|
|
4513
4586
|
createdAt: string;
|
|
4514
4587
|
/** @format date-time */
|
|
4515
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
|
+
};
|
|
4516
4605
|
permissions: {
|
|
4517
4606
|
/** Whether the user can view the object */
|
|
4518
4607
|
view: boolean;
|
|
@@ -4528,19 +4617,39 @@ export interface TranslationSettings {
|
|
|
4528
4617
|
location: string;
|
|
4529
4618
|
};
|
|
4530
4619
|
}
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
/**
|
|
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;
|
|
4536
4632
|
urls: {
|
|
4537
4633
|
/**
|
|
4538
|
-
* URL of the
|
|
4634
|
+
* URL of the glossary entry in the API
|
|
4539
4635
|
* @format uri
|
|
4540
4636
|
*/
|
|
4541
4637
|
location: string;
|
|
4542
4638
|
};
|
|
4543
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
|
+
};
|
|
4544
4653
|
export interface StorageFileMetadata {
|
|
4545
4654
|
/** Original filename */
|
|
4546
4655
|
name: string;
|
|
@@ -4628,13 +4737,25 @@ export type BillingOperationPreviewResponse = {
|
|
|
4628
4737
|
type: 'checkout';
|
|
4629
4738
|
invoice?: BillingInvoicePreview;
|
|
4630
4739
|
};
|
|
4631
|
-
export type
|
|
4740
|
+
export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
|
|
4632
4741
|
type: 'boolean';
|
|
4633
4742
|
description: string;
|
|
4634
4743
|
} | {
|
|
4635
4744
|
type: 'string';
|
|
4636
4745
|
enum: string[];
|
|
4637
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;
|
|
4638
4759
|
} | {
|
|
4639
4760
|
type: 'object';
|
|
4640
4761
|
description: string;
|
|
@@ -4644,7 +4765,6 @@ export type SiteAdaptiveJSONSchemaClaimsProperties = {
|
|
|
4644
4765
|
/** JSON schema describing the expected attributes of an Adaptive site schema. */
|
|
4645
4766
|
export interface SiteAdaptiveJSONSchema {
|
|
4646
4767
|
$schema?: 'http://json-schema.org/draft-07/schema#';
|
|
4647
|
-
$id?: string;
|
|
4648
4768
|
type: 'object';
|
|
4649
4769
|
properties: {
|
|
4650
4770
|
/** Unsigned claims of the site visitor. */
|
|
@@ -4965,11 +5085,6 @@ export interface SiteCustomizationSettings {
|
|
|
4965
5085
|
/** If true, feedback gathering is enabled */
|
|
4966
5086
|
enabled: boolean;
|
|
4967
5087
|
};
|
|
4968
|
-
/** @deprecated */
|
|
4969
|
-
aiSearch: {
|
|
4970
|
-
/** If true, AI search is enabled */
|
|
4971
|
-
enabled: boolean;
|
|
4972
|
-
};
|
|
4973
5088
|
ai: {
|
|
4974
5089
|
mode: CustomizationAIMode;
|
|
4975
5090
|
};
|
|
@@ -4981,6 +5096,12 @@ export interface SiteCustomizationSettings {
|
|
|
4981
5096
|
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
|
|
4982
5097
|
showEditLink: boolean;
|
|
4983
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
|
+
};
|
|
4984
5105
|
externalLinks: {
|
|
4985
5106
|
/**
|
|
4986
5107
|
* How external links should open when clicked.
|
|
@@ -5445,6 +5566,14 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
|
|
|
5445
5566
|
/** Question being asked. */
|
|
5446
5567
|
query: string;
|
|
5447
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
|
+
};
|
|
5448
5577
|
export declare enum SiteInsightsLinkPosition {
|
|
5449
5578
|
Announcement = "announcement",
|
|
5450
5579
|
Header = "header",
|
|
@@ -5496,7 +5625,7 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
5496
5625
|
type: 'ad_display';
|
|
5497
5626
|
ad: SiteInsightsAd;
|
|
5498
5627
|
};
|
|
5499
|
-
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;
|
|
5500
5629
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
5501
5630
|
column: 'datetime';
|
|
5502
5631
|
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
@@ -5556,8 +5685,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
5556
5685
|
column: 'eventPageFeedbackRating';
|
|
5557
5686
|
} | {
|
|
5558
5687
|
column: 'eventPageFeedbackComment';
|
|
5688
|
+
} | {
|
|
5689
|
+
column: 'eventAskResponseRating';
|
|
5559
5690
|
} | {
|
|
5560
5691
|
column: 'pageFeedbackRating';
|
|
5692
|
+
} | {
|
|
5693
|
+
column: 'askResponseRating';
|
|
5561
5694
|
} | {
|
|
5562
5695
|
column: 'referrer';
|
|
5563
5696
|
} | {
|
|
@@ -5592,6 +5725,7 @@ export declare enum SiteInsightsEventType {
|
|
|
5592
5725
|
PagePostFeedback = "page_post_feedback",
|
|
5593
5726
|
PagePostFeedbackComment = "page_post_feedback_comment",
|
|
5594
5727
|
AskQuestion = "ask_question",
|
|
5728
|
+
AskRateResponse = "ask_rate_response",
|
|
5595
5729
|
LinkClick = "link_click",
|
|
5596
5730
|
ApiClientOpen = "api_client_open",
|
|
5597
5731
|
ApiClientRequest = "api_client_request",
|
|
@@ -5725,9 +5859,18 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
5725
5859
|
good: number;
|
|
5726
5860
|
bad: number;
|
|
5727
5861
|
}[];
|
|
5862
|
+
} | {
|
|
5863
|
+
column: 'askResponseRating';
|
|
5864
|
+
values: {
|
|
5865
|
+
positive: number;
|
|
5866
|
+
negative: number;
|
|
5867
|
+
}[];
|
|
5728
5868
|
} | {
|
|
5729
5869
|
column: 'eventPageFeedbackRating';
|
|
5730
5870
|
values: PageFeedbackRating[];
|
|
5871
|
+
} | {
|
|
5872
|
+
column: 'eventAskResponseRating';
|
|
5873
|
+
values: number[];
|
|
5731
5874
|
} | {
|
|
5732
5875
|
column: 'eventPageFeedbackComment';
|
|
5733
5876
|
values: string[];
|
|
@@ -6091,11 +6234,11 @@ export interface PublishedSiteContent {
|
|
|
6091
6234
|
changeRequest?: string;
|
|
6092
6235
|
/** Identifier of the revision being previewed in this URL. */
|
|
6093
6236
|
revision?: string;
|
|
6094
|
-
/** Path of the content relative to the
|
|
6237
|
+
/** Path of the content relative to the input URL being resolved */
|
|
6095
6238
|
pathname: string;
|
|
6096
|
-
/** Prefix of the path in the URL
|
|
6239
|
+
/** Prefix of the path in the input URL being resolved */
|
|
6097
6240
|
basePath: string;
|
|
6098
|
-
/** Prefix of the path in the URL
|
|
6241
|
+
/** Prefix of the site path in the input URL being resolved */
|
|
6099
6242
|
siteBasePath: string;
|
|
6100
6243
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
6101
6244
|
apiToken: string;
|
|
@@ -6203,6 +6346,32 @@ export interface UpdateContentPublishingAuth {
|
|
|
6203
6346
|
export declare enum GitBookUsers {
|
|
6204
6347
|
GitbookAgent = "gitbook:agent"
|
|
6205
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
|
+
}
|
|
6206
6375
|
export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
|
|
6207
6376
|
export type InputPageBase = {
|
|
6208
6377
|
/**
|
|
@@ -6568,9 +6737,14 @@ export interface OrganizationOpenAPISpecsChannel {
|
|
|
6568
6737
|
channel: 'organization-openapi-specs';
|
|
6569
6738
|
organization: string;
|
|
6570
6739
|
}
|
|
6571
|
-
/** Subscription channel for changes in
|
|
6572
|
-
export interface
|
|
6573
|
-
channel: 'organization-
|
|
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';
|
|
6574
6748
|
organization: string;
|
|
6575
6749
|
}
|
|
6576
6750
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
@@ -6705,10 +6879,6 @@ export interface CustomHostnameChannel {
|
|
|
6705
6879
|
channel: 'custom-hostname';
|
|
6706
6880
|
customHostname: string;
|
|
6707
6881
|
}
|
|
6708
|
-
export interface GitSyncSettingsChannel {
|
|
6709
|
-
channel: 'space-gitsync-settings';
|
|
6710
|
-
space: string;
|
|
6711
|
-
}
|
|
6712
6882
|
export interface GitSyncOperationChannel {
|
|
6713
6883
|
channel: 'space-gitsync-operation';
|
|
6714
6884
|
space: string;
|
|
@@ -6722,8 +6892,8 @@ export interface SubdomainChannel {
|
|
|
6722
6892
|
channel: 'subdomain';
|
|
6723
6893
|
subdomain: string;
|
|
6724
6894
|
}
|
|
6725
|
-
export interface
|
|
6726
|
-
channel: 'translation
|
|
6895
|
+
export interface TranslationChannel {
|
|
6896
|
+
channel: 'translation';
|
|
6727
6897
|
translation: string;
|
|
6728
6898
|
}
|
|
6729
6899
|
/** Subscription channel for an agent task. */
|
|
@@ -6741,7 +6911,7 @@ export interface AgentTasksChannel {
|
|
|
6741
6911
|
organization: string;
|
|
6742
6912
|
}
|
|
6743
6913
|
/** Channel to subscribe to for realtime updates. */
|
|
6744
|
-
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 |
|
|
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;
|
|
6745
6915
|
export interface GitSyncOperationChannelData {
|
|
6746
6916
|
channel: 'space-gitsync-operation';
|
|
6747
6917
|
data: GitSyncOperation;
|
|
@@ -6781,6 +6951,12 @@ export interface APIChannelMutationData {
|
|
|
6781
6951
|
}
|
|
6782
6952
|
/** Data passed through a realtime channel */
|
|
6783
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
|
+
};
|
|
6784
6960
|
/** The status of ads on the site */
|
|
6785
6961
|
export declare enum SiteAdsStatus {
|
|
6786
6962
|
Pending = "pending",
|
|
@@ -6875,6 +7051,7 @@ export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
|
|
|
6875
7051
|
export type SpaceVisitorAuth = VisitorAuth;
|
|
6876
7052
|
export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
|
|
6877
7053
|
export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
7054
|
+
export type ApplyTemplate = ApplySpaceTemplate;
|
|
6878
7055
|
export type UserPermissions = Index;
|
|
6879
7056
|
export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
|
|
6880
7057
|
export type OpenAPISpecSourceURL = URL;
|
|
@@ -7227,6 +7404,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7227
7404
|
message: string;
|
|
7228
7405
|
};
|
|
7229
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>>;
|
|
7230
7417
|
/**
|
|
7231
7418
|
* No description
|
|
7232
7419
|
*
|
|
@@ -7404,6 +7591,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7404
7591
|
* @secure
|
|
7405
7592
|
*/
|
|
7406
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>>;
|
|
7407
7604
|
/**
|
|
7408
7605
|
* No description
|
|
7409
7606
|
*
|
|
@@ -10613,6 +10810,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10613
10810
|
message: string;
|
|
10614
10811
|
};
|
|
10615
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
|
+
}>>;
|
|
10616
10842
|
/**
|
|
10617
10843
|
* No description
|
|
10618
10844
|
*
|
|
@@ -10875,12 +11101,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10875
11101
|
* No description
|
|
10876
11102
|
*
|
|
10877
11103
|
* @tags translations
|
|
10878
|
-
* @name
|
|
10879
|
-
* @summary List all the
|
|
11104
|
+
* @name ListTranslations
|
|
11105
|
+
* @summary List all the translations
|
|
10880
11106
|
* @request GET:/orgs/{organizationId}/translations
|
|
10881
11107
|
* @secure
|
|
10882
11108
|
*/
|
|
10883
|
-
|
|
11109
|
+
listTranslations: (organizationId: string, query?: {
|
|
10884
11110
|
/** Identifier of the page results to fetch. */
|
|
10885
11111
|
page?: string;
|
|
10886
11112
|
/**
|
|
@@ -10890,21 +11116,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10890
11116
|
*/
|
|
10891
11117
|
limit?: number;
|
|
10892
11118
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10893
|
-
items:
|
|
11119
|
+
items: Translation[];
|
|
10894
11120
|
}, any>>;
|
|
10895
11121
|
/**
|
|
10896
11122
|
* No description
|
|
10897
11123
|
*
|
|
10898
11124
|
* @tags translations
|
|
10899
|
-
* @name
|
|
10900
|
-
* @summary Create a translation
|
|
11125
|
+
* @name CreateTranslation
|
|
11126
|
+
* @summary Create a translation
|
|
10901
11127
|
* @request POST:/orgs/{organizationId}/translations
|
|
10902
11128
|
* @secure
|
|
10903
11129
|
*/
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
11130
|
+
createTranslation: (organizationId: string, data: {
|
|
11131
|
+
source: TranslationSource;
|
|
11132
|
+
language: TranslationLanguage;
|
|
11133
|
+
instructions?: JSONDocument;
|
|
11134
|
+
}, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10908
11135
|
error: {
|
|
10909
11136
|
/** @format int32 */
|
|
10910
11137
|
code: 400;
|
|
@@ -10915,12 +11142,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10915
11142
|
* No description
|
|
10916
11143
|
*
|
|
10917
11144
|
* @tags translations
|
|
10918
|
-
* @name
|
|
10919
|
-
* @summary Get a translation
|
|
10920
|
-
* @request GET:/orgs/{organizationId}/translations/{
|
|
11145
|
+
* @name GetTranslation
|
|
11146
|
+
* @summary Get a translation by its ID
|
|
11147
|
+
* @request GET:/orgs/{organizationId}/translations/{translationId}
|
|
10921
11148
|
* @secure
|
|
10922
11149
|
*/
|
|
10923
|
-
|
|
11150
|
+
getTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10924
11151
|
error: {
|
|
10925
11152
|
/** @format int32 */
|
|
10926
11153
|
code: 404;
|
|
@@ -10931,15 +11158,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10931
11158
|
* No description
|
|
10932
11159
|
*
|
|
10933
11160
|
* @tags translations
|
|
10934
|
-
* @name
|
|
10935
|
-
* @summary Update a translation
|
|
10936
|
-
* @request PUT:/orgs/{organizationId}/translations/{
|
|
11161
|
+
* @name UpdateTranslation
|
|
11162
|
+
* @summary Update a translation
|
|
11163
|
+
* @request PUT:/orgs/{organizationId}/translations/{translationId}
|
|
10937
11164
|
* @secure
|
|
10938
11165
|
*/
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
}, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, {
|
|
11166
|
+
updateTranslation: (organizationId: string, translationId: string, data: {
|
|
11167
|
+
instructions: JSONDocument;
|
|
11168
|
+
}, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10943
11169
|
error: {
|
|
10944
11170
|
/** @format int32 */
|
|
10945
11171
|
code: 400;
|
|
@@ -10950,22 +11176,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10950
11176
|
* No description
|
|
10951
11177
|
*
|
|
10952
11178
|
* @tags translations
|
|
10953
|
-
* @name
|
|
10954
|
-
* @summary Delete a translation
|
|
10955
|
-
* @request DELETE:/orgs/{organizationId}/translations/{
|
|
11179
|
+
* @name DeleteTranslation
|
|
11180
|
+
* @summary Delete a translation
|
|
11181
|
+
* @request DELETE:/orgs/{organizationId}/translations/{translationId}
|
|
10956
11182
|
* @secure
|
|
10957
11183
|
*/
|
|
10958
|
-
|
|
11184
|
+
deleteTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10959
11185
|
/**
|
|
10960
11186
|
* No description
|
|
10961
11187
|
*
|
|
10962
|
-
* @tags
|
|
10963
|
-
* @name
|
|
10964
|
-
* @summary List
|
|
10965
|
-
* @request GET:/orgs/{organizationId}/translations
|
|
11188
|
+
* @tags glossary
|
|
11189
|
+
* @name ListGlossaryEntries
|
|
11190
|
+
* @summary List glossary entries
|
|
11191
|
+
* @request GET:/orgs/{organizationId}/translations-glossary
|
|
10966
11192
|
* @secure
|
|
10967
11193
|
*/
|
|
10968
|
-
|
|
11194
|
+
listGlossaryEntries: (organizationId: string, query?: {
|
|
10969
11195
|
/** Identifier of the page results to fetch. */
|
|
10970
11196
|
page?: string;
|
|
10971
11197
|
/**
|
|
@@ -10975,64 +11201,42 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10975
11201
|
*/
|
|
10976
11202
|
limit?: number;
|
|
10977
11203
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10978
|
-
items:
|
|
10979
|
-
},
|
|
10980
|
-
error: {
|
|
10981
|
-
/** @format int32 */
|
|
10982
|
-
code: 404;
|
|
10983
|
-
message: string;
|
|
10984
|
-
};
|
|
10985
|
-
}>>;
|
|
11204
|
+
items: GlossaryEntry[];
|
|
11205
|
+
}, any>>;
|
|
10986
11206
|
/**
|
|
10987
11207
|
* No description
|
|
10988
11208
|
*
|
|
10989
|
-
* @tags
|
|
10990
|
-
* @name
|
|
10991
|
-
* @summary
|
|
10992
|
-
* @request
|
|
11209
|
+
* @tags glossary
|
|
11210
|
+
* @name UpdateGlossaryEntries
|
|
11211
|
+
* @summary Update glossary entries
|
|
11212
|
+
* @request PUT:/orgs/{organizationId}/translations-glossary
|
|
10993
11213
|
* @secure
|
|
10994
11214
|
*/
|
|
10995
|
-
|
|
11215
|
+
updateGlossaryEntries: (organizationId: string, data: {
|
|
11216
|
+
operations: GlossaryBatchOperation[];
|
|
11217
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
10996
11218
|
error: {
|
|
10997
11219
|
/** @format int32 */
|
|
10998
|
-
code:
|
|
11220
|
+
code: 400;
|
|
10999
11221
|
message: string;
|
|
11000
11222
|
};
|
|
11001
11223
|
}>>;
|
|
11002
11224
|
/**
|
|
11003
11225
|
* No description
|
|
11004
11226
|
*
|
|
11005
|
-
* @tags
|
|
11006
|
-
* @name
|
|
11007
|
-
* @summary
|
|
11008
|
-
* @request
|
|
11227
|
+
* @tags glossary
|
|
11228
|
+
* @name GetGlossaryEntry
|
|
11229
|
+
* @summary Get a glossary entry by its ID
|
|
11230
|
+
* @request GET:/orgs/{organizationId}/translations-glossary/{glossaryEntryId}
|
|
11009
11231
|
* @secure
|
|
11010
11232
|
*/
|
|
11011
|
-
|
|
11012
|
-
instructions: JSONDocument;
|
|
11013
|
-
}, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, {
|
|
11014
|
-
error: {
|
|
11015
|
-
/** @format int32 */
|
|
11016
|
-
code: 400;
|
|
11017
|
-
message: string;
|
|
11018
|
-
};
|
|
11019
|
-
} | {
|
|
11233
|
+
getGlossaryEntry: (organizationId: string, glossaryEntryId: string, params?: RequestParams) => Promise<HttpResponse<GlossaryEntry, {
|
|
11020
11234
|
error: {
|
|
11021
11235
|
/** @format int32 */
|
|
11022
11236
|
code: 404;
|
|
11023
11237
|
message: string;
|
|
11024
11238
|
};
|
|
11025
11239
|
}>>;
|
|
11026
|
-
/**
|
|
11027
|
-
* No description
|
|
11028
|
-
*
|
|
11029
|
-
* @tags translation-languages
|
|
11030
|
-
* @name DeleteTranslationLanguage
|
|
11031
|
-
* @summary Remove a translation settings language
|
|
11032
|
-
* @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
|
|
11033
|
-
* @secure
|
|
11034
|
-
*/
|
|
11035
|
-
deleteTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11036
11240
|
/**
|
|
11037
11241
|
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
11038
11242
|
*
|