@gitbook/api 0.128.0 → 0.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +466 -213
- package/dist/index.cjs +117 -76
- package/dist/index.js +112 -74
- package/package.json +1 -1
- package/spec/openapi.json +1375 -492
- package/spec/openapi.yaml +988 -383
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
|
}
|
|
@@ -478,8 +480,8 @@ export interface DocumentMarkColor {
|
|
|
478
480
|
object: 'mark';
|
|
479
481
|
type: 'color';
|
|
480
482
|
data: {
|
|
481
|
-
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
482
|
-
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
483
|
+
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
|
|
484
|
+
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
|
|
483
485
|
};
|
|
484
486
|
}
|
|
485
487
|
export interface DocumentMarkSuperscript {
|
|
@@ -1209,8 +1211,6 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1209
1211
|
/** Complete path to access the page in the revision. */
|
|
1210
1212
|
path: string;
|
|
1211
1213
|
description?: string;
|
|
1212
|
-
/** ID of the document with the page body. If undefined, the page is empty. */
|
|
1213
|
-
documentId?: string;
|
|
1214
1214
|
pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
|
|
1215
1215
|
git?: GitSyncBlob;
|
|
1216
1216
|
layout: RevisionPageLayoutOptions;
|
|
@@ -1277,89 +1277,45 @@ export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
1277
1277
|
models: boolean;
|
|
1278
1278
|
};
|
|
1279
1279
|
};
|
|
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;
|
|
1280
|
+
export interface TranslationRef {
|
|
1281
|
+
kind: 'translation';
|
|
1282
|
+
/** ID of the translation sync */
|
|
1283
|
+
translation: string;
|
|
1332
1284
|
}
|
|
1333
|
-
/**
|
|
1334
|
-
export interface
|
|
1335
|
-
/**
|
|
1336
|
-
|
|
1285
|
+
/** Result of a translation. */
|
|
1286
|
+
export interface TranslationResult {
|
|
1287
|
+
/** ID of the space containing the result of the translation */
|
|
1288
|
+
space: string;
|
|
1289
|
+
/** ID of the revision generated by the translation */
|
|
1290
|
+
revision: string;
|
|
1337
1291
|
}
|
|
1338
1292
|
export interface ComputedContentDependencyTranslation {
|
|
1339
|
-
ref:
|
|
1340
|
-
/**
|
|
1341
|
-
value:
|
|
1293
|
+
ref: TranslationRef;
|
|
1294
|
+
/** Translation has not been run yet */
|
|
1295
|
+
value: TranslationResult | null;
|
|
1342
1296
|
}
|
|
1343
|
-
/**
|
|
1344
|
-
export interface
|
|
1297
|
+
/** Parameters for a translation computed content source */
|
|
1298
|
+
export interface ComputedContentSourceRevisionTranslation {
|
|
1345
1299
|
type: 'builtin:translation';
|
|
1300
|
+
props: object;
|
|
1346
1301
|
dependencies: {
|
|
1347
|
-
|
|
1348
|
-
ref:
|
|
1349
|
-
} | ComputedContentDependencySpace;
|
|
1350
|
-
settings: {
|
|
1351
|
-
ref: TranslationLanguageRef;
|
|
1302
|
+
translation: {
|
|
1303
|
+
ref: TranslationRef;
|
|
1352
1304
|
} | ComputedContentDependencyTranslation;
|
|
1353
1305
|
};
|
|
1354
1306
|
}
|
|
1355
|
-
export type ComputedContentSourceRevisionTranslation = ComputedContentSourceTranslationBase & {
|
|
1356
|
-
props: {
|
|
1357
|
-
sourceLanguage: TranslationLanguage;
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
1307
|
/** Dependency for a computation, before its resolution. */
|
|
1361
1308
|
export interface ComputedContentDependency {
|
|
1362
|
-
ref: ContentRefSpace | ContentRefOpenAPI |
|
|
1309
|
+
ref: ContentRefSpace | ContentRefOpenAPI | TranslationRef;
|
|
1310
|
+
}
|
|
1311
|
+
export interface ComputedContentDependencySpace {
|
|
1312
|
+
ref: ContentRefSpace;
|
|
1313
|
+
/** See `Space` schema component. */
|
|
1314
|
+
value: {
|
|
1315
|
+
object: 'space';
|
|
1316
|
+
id: string;
|
|
1317
|
+
revision: string;
|
|
1318
|
+
} | null;
|
|
1363
1319
|
}
|
|
1364
1320
|
/** Dependency for a computation, with its resolved value. */
|
|
1365
1321
|
export type ComputedContentDependencyResolved = ComputedContentDependencySpace | ComputedContentDependencyOpenAPI | ComputedContentDependencyTranslation;
|
|
@@ -1402,21 +1358,23 @@ export declare enum RevisionPageLayoutOptionsCoverSize {
|
|
|
1402
1358
|
}
|
|
1403
1359
|
export interface RevisionPageLayoutOptions {
|
|
1404
1360
|
/** Width of the page. */
|
|
1405
|
-
width
|
|
1361
|
+
width: RevisionPageLayoutOptionsWidth;
|
|
1406
1362
|
/** Should the cover be visible? */
|
|
1407
|
-
cover
|
|
1363
|
+
cover: boolean;
|
|
1408
1364
|
/** Size of the cover image. */
|
|
1409
|
-
coverSize
|
|
1365
|
+
coverSize: RevisionPageLayoutOptionsCoverSize;
|
|
1410
1366
|
/** Should the title be visible? */
|
|
1411
|
-
title
|
|
1367
|
+
title: boolean;
|
|
1412
1368
|
/** Should the description be visible? */
|
|
1413
|
-
description
|
|
1369
|
+
description: boolean;
|
|
1414
1370
|
/** Should the table of contents be visible? */
|
|
1415
|
-
tableOfContents
|
|
1371
|
+
tableOfContents: boolean;
|
|
1416
1372
|
/** Should the outline be visible? */
|
|
1417
|
-
outline
|
|
1373
|
+
outline: boolean;
|
|
1418
1374
|
/** Should the pagination be visible? */
|
|
1419
|
-
pagination
|
|
1375
|
+
pagination: boolean;
|
|
1376
|
+
/** Should the page metadata (last modified, author, etc.) be visible? */
|
|
1377
|
+
metadata: boolean;
|
|
1420
1378
|
}
|
|
1421
1379
|
export interface RevisionPageDocumentCover {
|
|
1422
1380
|
/** Content reference pointing to the source image. */
|
|
@@ -1441,12 +1399,14 @@ export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIB
|
|
|
1441
1399
|
page: string;
|
|
1442
1400
|
};
|
|
1443
1401
|
};
|
|
1444
|
-
|
|
1402
|
+
/** Parameters for a document translation computed content source */
|
|
1403
|
+
export interface ComputedContentSourceDocumentTranslation {
|
|
1404
|
+
type: 'builtin:translation';
|
|
1445
1405
|
props: {
|
|
1406
|
+
space: string;
|
|
1446
1407
|
document: string;
|
|
1447
|
-
sourceLanguage: TranslationLanguage;
|
|
1448
1408
|
};
|
|
1449
|
-
}
|
|
1409
|
+
}
|
|
1450
1410
|
export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
|
|
1451
1411
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1452
1412
|
/** @deprecated */
|
|
@@ -1487,12 +1447,18 @@ export interface RevisionFile {
|
|
|
1487
1447
|
};
|
|
1488
1448
|
git?: GitSyncBlob;
|
|
1489
1449
|
}
|
|
1490
|
-
export
|
|
1450
|
+
export type RevisionReusableContent = {
|
|
1491
1451
|
id: string;
|
|
1492
1452
|
title: string;
|
|
1493
|
-
document?: string;
|
|
1494
1453
|
git?: GitSyncBlob;
|
|
1495
|
-
}
|
|
1454
|
+
} & ({
|
|
1455
|
+
computed: ComputedContentSourceDocument;
|
|
1456
|
+
/** Seed to use for the generation of IDs. */
|
|
1457
|
+
computedSeed: string;
|
|
1458
|
+
} | {
|
|
1459
|
+
/** ID of the document with the content body. If undefined, the reusable content is empty. */
|
|
1460
|
+
document?: string;
|
|
1461
|
+
});
|
|
1496
1462
|
export interface GitSyncCommit {
|
|
1497
1463
|
/** SHA for the commit */
|
|
1498
1464
|
oid: string;
|
|
@@ -1638,6 +1604,16 @@ export interface ImportContentResult {
|
|
|
1638
1604
|
/** How many resources were processed */
|
|
1639
1605
|
totalResources: number;
|
|
1640
1606
|
}
|
|
1607
|
+
/** Parameters for a space template */
|
|
1608
|
+
export interface SpaceTemplateParams {
|
|
1609
|
+
contentRefs?: Record<string, ContentRef>;
|
|
1610
|
+
}
|
|
1611
|
+
export interface ApplySpaceTemplate {
|
|
1612
|
+
/** The ID of the template to use for the space */
|
|
1613
|
+
id: string;
|
|
1614
|
+
/** Parameters for a space template */
|
|
1615
|
+
params?: SpaceTemplateParams;
|
|
1616
|
+
}
|
|
1641
1617
|
/**
|
|
1642
1618
|
* Name of the organization
|
|
1643
1619
|
* @minLength 2
|
|
@@ -1694,6 +1670,36 @@ export declare enum BillingInterval {
|
|
|
1694
1670
|
Monthly = "monthly",
|
|
1695
1671
|
Yearly = "yearly"
|
|
1696
1672
|
}
|
|
1673
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
1674
|
+
export interface OrganizationPricePair {
|
|
1675
|
+
/**
|
|
1676
|
+
* Monthly price in USD
|
|
1677
|
+
* @min 0
|
|
1678
|
+
*/
|
|
1679
|
+
monthly: number;
|
|
1680
|
+
/**
|
|
1681
|
+
* Yearly price in USD (per month)
|
|
1682
|
+
* @min 0
|
|
1683
|
+
*/
|
|
1684
|
+
yearly: number;
|
|
1685
|
+
}
|
|
1686
|
+
/** Pricing information for an organization */
|
|
1687
|
+
export interface OrganizationPricing {
|
|
1688
|
+
/** Pricing for members (organization plan) */
|
|
1689
|
+
members: {
|
|
1690
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
1691
|
+
plus_2024: OrganizationPricePair;
|
|
1692
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
1693
|
+
pro_2024: OrganizationPricePair;
|
|
1694
|
+
};
|
|
1695
|
+
/** Pricing for site types (site plans) */
|
|
1696
|
+
sites: {
|
|
1697
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
1698
|
+
premium: OrganizationPricePair;
|
|
1699
|
+
/** Pricing pair for monthly and yearly intervals */
|
|
1700
|
+
ultimate: OrganizationPricePair;
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1697
1703
|
export interface OrganizationBilling {
|
|
1698
1704
|
/** Interval for a billing subscription */
|
|
1699
1705
|
interval: BillingInterval;
|
|
@@ -1702,6 +1708,8 @@ export interface OrganizationBilling {
|
|
|
1702
1708
|
hasPaymentFailed: boolean;
|
|
1703
1709
|
/** If true, the billing is set to cancel at the end of its current period */
|
|
1704
1710
|
isScheduledToCancel: boolean;
|
|
1711
|
+
/** Pricing information for the organization */
|
|
1712
|
+
pricing: OrganizationPricing;
|
|
1705
1713
|
}
|
|
1706
1714
|
/** - 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
1715
|
export declare enum BillingTrialStatus {
|
|
@@ -1930,6 +1938,15 @@ export declare enum OpenAPISpecProcessingState {
|
|
|
1930
1938
|
Progress = "progress",
|
|
1931
1939
|
Complete = "complete"
|
|
1932
1940
|
}
|
|
1941
|
+
/**
|
|
1942
|
+
* The visibility setting of the OpenAPI spec.
|
|
1943
|
+
* * `private`: The spec is not publicly available.
|
|
1944
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1945
|
+
*/
|
|
1946
|
+
export declare enum OpenAPISpecVisibility {
|
|
1947
|
+
Private = "private",
|
|
1948
|
+
Public = "public"
|
|
1949
|
+
}
|
|
1933
1950
|
/** OpenAPI processing error code */
|
|
1934
1951
|
export declare enum OpenAPISpecProcessingErrorCode {
|
|
1935
1952
|
FETCH_TIMEOUT = "FETCH_TIMEOUT",
|
|
@@ -1950,6 +1967,12 @@ export interface OpenAPISpec {
|
|
|
1950
1967
|
sourceURL?: URL;
|
|
1951
1968
|
/** Processing state */
|
|
1952
1969
|
processingState: OpenAPISpecProcessingState;
|
|
1970
|
+
/**
|
|
1971
|
+
* The visibility setting of the OpenAPI spec.
|
|
1972
|
+
* * `private`: The spec is not publicly available.
|
|
1973
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
1974
|
+
*/
|
|
1975
|
+
visibility?: OpenAPISpecVisibility;
|
|
1953
1976
|
/** ID of the latest version of the OpenAPI specification */
|
|
1954
1977
|
lastVersion?: string;
|
|
1955
1978
|
/** Date of the last processing */
|
|
@@ -1969,6 +1992,11 @@ export interface OpenAPISpec {
|
|
|
1969
1992
|
location: URL;
|
|
1970
1993
|
/** URL of the OpenAPI specification in the application */
|
|
1971
1994
|
app: URL;
|
|
1995
|
+
/**
|
|
1996
|
+
* URL of the published spec. Only defined when visibility is "published."
|
|
1997
|
+
* @format uri
|
|
1998
|
+
*/
|
|
1999
|
+
published?: string;
|
|
1972
2000
|
};
|
|
1973
2001
|
}
|
|
1974
2002
|
export interface ContentLocationOpenAPI {
|
|
@@ -2045,6 +2073,11 @@ export interface EmojiReaction {
|
|
|
2045
2073
|
}[];
|
|
2046
2074
|
}
|
|
2047
2075
|
export type EmojiReactions = EmojiReaction[];
|
|
2076
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2077
|
+
export interface TableCellTarget {
|
|
2078
|
+
record: string;
|
|
2079
|
+
definition: string;
|
|
2080
|
+
}
|
|
2048
2081
|
export type Comment = {
|
|
2049
2082
|
/** Type of Object, always equals to "comment" */
|
|
2050
2083
|
object: 'comment';
|
|
@@ -2069,6 +2102,8 @@ export type Comment = {
|
|
|
2069
2102
|
id: string;
|
|
2070
2103
|
preview?: string;
|
|
2071
2104
|
};
|
|
2105
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2106
|
+
tableCell?: TableCellTarget;
|
|
2072
2107
|
/** The change request containing this comment, if the comment was made inside a change request. */
|
|
2073
2108
|
changeRequest?: string;
|
|
2074
2109
|
/** The review containing this comment, if this comment was made as part of a review. */
|
|
@@ -2162,6 +2197,8 @@ export interface PostCommentSchema {
|
|
|
2162
2197
|
page?: string;
|
|
2163
2198
|
/** The content of the comment. */
|
|
2164
2199
|
body: Document;
|
|
2200
|
+
/** Details about the table cell this comment is attached to, if any. */
|
|
2201
|
+
tableCell?: TableCellTarget;
|
|
2165
2202
|
}
|
|
2166
2203
|
export interface UpdateCommentSchema {
|
|
2167
2204
|
/** Whether the comment is resolved or not. */
|
|
@@ -3960,16 +3997,6 @@ export interface UpgradeOrganizationBilling {
|
|
|
3960
3997
|
interval: BillingInterval;
|
|
3961
3998
|
/** Changes to apply during a subscription upgrade or downgrade */
|
|
3962
3999
|
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
4000
|
/** Reason that triggered the billing upgrade */
|
|
3974
4001
|
reason?: string;
|
|
3975
4002
|
/** 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,20 +4084,43 @@ export declare enum BillingSwitchAction {
|
|
|
4057
4084
|
UndoCancel = "undo_cancel",
|
|
4058
4085
|
SwitchInterval = "switch_interval"
|
|
4059
4086
|
}
|
|
4087
|
+
/** Identifier of a billing meter */
|
|
4088
|
+
export declare enum BillingMeter {
|
|
4089
|
+
AiResponses = "ai_responses",
|
|
4090
|
+
AiAgentResponses = "ai_agent_responses",
|
|
4091
|
+
TranslationWords = "translation_words"
|
|
4092
|
+
}
|
|
4093
|
+
/** Usage metrics for a billing meter */
|
|
4094
|
+
export interface BillingMeterUsage {
|
|
4095
|
+
/** Total usage for the current billing period */
|
|
4096
|
+
total: number;
|
|
4097
|
+
/** Daily usage for the past 30 days */
|
|
4098
|
+
daily: {
|
|
4099
|
+
date: Timestamp;
|
|
4100
|
+
/** Usage value for the day */
|
|
4101
|
+
value: number;
|
|
4102
|
+
}[];
|
|
4103
|
+
}
|
|
4060
4104
|
/** Search result representing a space. */
|
|
4061
4105
|
export interface SearchSpaceResult {
|
|
4062
4106
|
id: string;
|
|
4063
4107
|
title: string;
|
|
4064
4108
|
pages: SearchPageResult[];
|
|
4065
4109
|
}
|
|
4066
|
-
export
|
|
4110
|
+
export type CreateSpace = {
|
|
4067
4111
|
/** @maxLength 50 */
|
|
4068
4112
|
title?: string;
|
|
4069
4113
|
/** Unicode codepoint or character of the emoji */
|
|
4070
4114
|
emoji?: Emoji;
|
|
4071
4115
|
/** ID of a parent collection */
|
|
4072
4116
|
parent?: string;
|
|
4073
|
-
|
|
4117
|
+
/** The edit mode of the space */
|
|
4118
|
+
editMode?: SpaceEditMode;
|
|
4119
|
+
} & (Record<string, any> | ({
|
|
4120
|
+
template: ApplySpaceTemplate;
|
|
4121
|
+
} | {
|
|
4122
|
+
computedSource: ComputedContentSourceRevision;
|
|
4123
|
+
}));
|
|
4074
4124
|
/**
|
|
4075
4125
|
* @minLength 1
|
|
4076
4126
|
* @maxLength 30
|
|
@@ -4496,23 +4546,84 @@ export interface AgentTask {
|
|
|
4496
4546
|
app: string;
|
|
4497
4547
|
};
|
|
4498
4548
|
}
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
export
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4549
|
+
export declare enum TranslationStatus {
|
|
4550
|
+
Pending = "pending",
|
|
4551
|
+
Running = "running",
|
|
4552
|
+
Completed = "completed"
|
|
4553
|
+
}
|
|
4554
|
+
export declare enum TranslationLanguage {
|
|
4555
|
+
En = "en",
|
|
4556
|
+
Fr = "fr",
|
|
4557
|
+
De = "de",
|
|
4558
|
+
Es = "es",
|
|
4559
|
+
It = "it",
|
|
4560
|
+
Pt = "pt",
|
|
4561
|
+
Ru = "ru",
|
|
4562
|
+
Ja = "ja",
|
|
4563
|
+
Zh = "zh",
|
|
4564
|
+
Ko = "ko",
|
|
4565
|
+
Ar = "ar",
|
|
4566
|
+
Hi = "hi",
|
|
4567
|
+
Nl = "nl",
|
|
4568
|
+
Pl = "pl",
|
|
4569
|
+
Tr = "tr",
|
|
4570
|
+
Sv = "sv",
|
|
4571
|
+
No = "no",
|
|
4572
|
+
Da = "da",
|
|
4573
|
+
Fi = "fi",
|
|
4574
|
+
El = "el",
|
|
4575
|
+
Cs = "cs",
|
|
4576
|
+
Hu = "hu",
|
|
4577
|
+
Ro = "ro",
|
|
4578
|
+
Th = "th",
|
|
4579
|
+
Vi = "vi",
|
|
4580
|
+
Id = "id",
|
|
4581
|
+
Ms = "ms",
|
|
4582
|
+
He = "he",
|
|
4583
|
+
Uk = "uk",
|
|
4584
|
+
Sk = "sk",
|
|
4585
|
+
Bg = "bg",
|
|
4586
|
+
Hr = "hr",
|
|
4587
|
+
Lt = "lt",
|
|
4588
|
+
Lv = "lv",
|
|
4589
|
+
Et = "et",
|
|
4590
|
+
Sl = "sl"
|
|
4591
|
+
}
|
|
4592
|
+
export interface TranslationSource {
|
|
4593
|
+
/** ID of the source space */
|
|
4594
|
+
space: string;
|
|
4595
|
+
language: TranslationLanguage;
|
|
4596
|
+
}
|
|
4597
|
+
export interface Translation {
|
|
4598
|
+
object: 'translation';
|
|
4599
|
+
/** Unique identifier of the translation sync */
|
|
4508
4600
|
id: string;
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4601
|
+
status: TranslationStatus;
|
|
4602
|
+
source: TranslationSource;
|
|
4603
|
+
language: TranslationLanguage;
|
|
4604
|
+
instructions: JSONDocument;
|
|
4605
|
+
/** Result of a translation. */
|
|
4606
|
+
result?: TranslationResult;
|
|
4512
4607
|
/** @format date-time */
|
|
4513
4608
|
createdAt: string;
|
|
4514
4609
|
/** @format date-time */
|
|
4515
4610
|
updatedAt: string;
|
|
4611
|
+
stats: {
|
|
4612
|
+
/** Total number of times the translation has been run */
|
|
4613
|
+
runs: number;
|
|
4614
|
+
/** Total number of words translated */
|
|
4615
|
+
totalWords: number;
|
|
4616
|
+
/** Total number of unique pages translated */
|
|
4617
|
+
totalPages: number;
|
|
4618
|
+
/** Total duration of all runs (in seconds) */
|
|
4619
|
+
totalDuration: number;
|
|
4620
|
+
/** Duration of the latest run (in seconds) */
|
|
4621
|
+
latestRunDuration: number;
|
|
4622
|
+
/** Number of unique pages translated in the latest run */
|
|
4623
|
+
latestPages: number;
|
|
4624
|
+
/** Number of words translated in the latest run */
|
|
4625
|
+
latestWords: number;
|
|
4626
|
+
};
|
|
4516
4627
|
permissions: {
|
|
4517
4628
|
/** Whether the user can view the object */
|
|
4518
4629
|
view: boolean;
|
|
@@ -4528,19 +4639,39 @@ export interface TranslationSettings {
|
|
|
4528
4639
|
location: string;
|
|
4529
4640
|
};
|
|
4530
4641
|
}
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
/**
|
|
4642
|
+
/** Mapping of language codes to translated terms */
|
|
4643
|
+
export type GlossaryTranslations = Record<string, string>;
|
|
4644
|
+
export interface GlossaryEntry {
|
|
4645
|
+
object: 'glossary-entry';
|
|
4646
|
+
/** Unique identifier of the glossary entry */
|
|
4647
|
+
id: string;
|
|
4648
|
+
/** Mapping of language codes to translated terms */
|
|
4649
|
+
translations: GlossaryTranslations;
|
|
4650
|
+
/** @format date-time */
|
|
4651
|
+
createdAt: string;
|
|
4652
|
+
/** @format date-time */
|
|
4653
|
+
updatedAt: string;
|
|
4536
4654
|
urls: {
|
|
4537
4655
|
/**
|
|
4538
|
-
* URL of the
|
|
4656
|
+
* URL of the glossary entry in the API
|
|
4539
4657
|
* @format uri
|
|
4540
4658
|
*/
|
|
4541
4659
|
location: string;
|
|
4542
4660
|
};
|
|
4543
4661
|
}
|
|
4662
|
+
export type GlossaryBatchOperation = {
|
|
4663
|
+
type: 'insert';
|
|
4664
|
+
/** Mapping of language codes to translated terms */
|
|
4665
|
+
translations: GlossaryTranslations;
|
|
4666
|
+
} | {
|
|
4667
|
+
type: 'update';
|
|
4668
|
+
id: string;
|
|
4669
|
+
/** Mapping of language codes to translated terms */
|
|
4670
|
+
translations: GlossaryTranslations;
|
|
4671
|
+
} | {
|
|
4672
|
+
type: 'delete';
|
|
4673
|
+
id: string;
|
|
4674
|
+
};
|
|
4544
4675
|
export interface StorageFileMetadata {
|
|
4545
4676
|
/** Original filename */
|
|
4546
4677
|
name: string;
|
|
@@ -4628,13 +4759,25 @@ export type BillingOperationPreviewResponse = {
|
|
|
4628
4759
|
type: 'checkout';
|
|
4629
4760
|
invoice?: BillingInvoicePreview;
|
|
4630
4761
|
};
|
|
4631
|
-
export type
|
|
4762
|
+
export type SiteAdaptiveDeterministicJSONSchemaPrimitives = {
|
|
4632
4763
|
type: 'boolean';
|
|
4633
4764
|
description: string;
|
|
4634
4765
|
} | {
|
|
4635
4766
|
type: 'string';
|
|
4636
4767
|
enum: string[];
|
|
4637
4768
|
description: string;
|
|
4769
|
+
};
|
|
4770
|
+
export type SiteAdaptiveJSONSchemaPrimitives = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
|
|
4771
|
+
type: 'string';
|
|
4772
|
+
description: string;
|
|
4773
|
+
} | {
|
|
4774
|
+
type: 'number';
|
|
4775
|
+
description: string;
|
|
4776
|
+
};
|
|
4777
|
+
export type SiteAdaptiveJSONSchemaClaimsProperties = SiteAdaptiveJSONSchemaPrimitives | {
|
|
4778
|
+
type: 'array';
|
|
4779
|
+
description: string;
|
|
4780
|
+
items: SiteAdaptiveJSONSchemaPrimitives;
|
|
4638
4781
|
} | {
|
|
4639
4782
|
type: 'object';
|
|
4640
4783
|
description: string;
|
|
@@ -4644,7 +4787,6 @@ export type SiteAdaptiveJSONSchemaClaimsProperties = {
|
|
|
4644
4787
|
/** JSON schema describing the expected attributes of an Adaptive site schema. */
|
|
4645
4788
|
export interface SiteAdaptiveJSONSchema {
|
|
4646
4789
|
$schema?: 'http://json-schema.org/draft-07/schema#';
|
|
4647
|
-
$id?: string;
|
|
4648
4790
|
type: 'object';
|
|
4649
4791
|
properties: {
|
|
4650
4792
|
/** Unsigned claims of the site visitor. */
|
|
@@ -4965,11 +5107,6 @@ export interface SiteCustomizationSettings {
|
|
|
4965
5107
|
/** If true, feedback gathering is enabled */
|
|
4966
5108
|
enabled: boolean;
|
|
4967
5109
|
};
|
|
4968
|
-
/** @deprecated */
|
|
4969
|
-
aiSearch: {
|
|
4970
|
-
/** If true, AI search is enabled */
|
|
4971
|
-
enabled: boolean;
|
|
4972
|
-
};
|
|
4973
5110
|
ai: {
|
|
4974
5111
|
mode: CustomizationAIMode;
|
|
4975
5112
|
};
|
|
@@ -4981,6 +5118,12 @@ export interface SiteCustomizationSettings {
|
|
|
4981
5118
|
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
|
|
4982
5119
|
showEditLink: boolean;
|
|
4983
5120
|
};
|
|
5121
|
+
pageActions: {
|
|
5122
|
+
/** Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. */
|
|
5123
|
+
externalAI: boolean;
|
|
5124
|
+
/** Whether the copy and open the markdown version of the page should be available in the page menu. */
|
|
5125
|
+
markdown: boolean;
|
|
5126
|
+
};
|
|
4984
5127
|
externalLinks: {
|
|
4985
5128
|
/**
|
|
4986
5129
|
* How external links should open when clicked.
|
|
@@ -5217,12 +5360,16 @@ export interface AIToolCallGetPageContent {
|
|
|
5217
5360
|
tool: 'getPageContent';
|
|
5218
5361
|
/** The ID of the space being accessed. */
|
|
5219
5362
|
spaceId: string;
|
|
5363
|
+
/** The ID of the revision within which the page content is being fetched. */
|
|
5364
|
+
revisionId: string;
|
|
5220
5365
|
page: ChangedRevisionPage;
|
|
5221
5366
|
}
|
|
5222
5367
|
export interface AIToolCallGetPages {
|
|
5223
5368
|
tool: 'getPages';
|
|
5224
5369
|
/** The ID of the space being accessed. */
|
|
5225
5370
|
spaceId: string;
|
|
5371
|
+
/** The revision ID of the space. */
|
|
5372
|
+
revisionId: string;
|
|
5226
5373
|
}
|
|
5227
5374
|
/** Result of a search */
|
|
5228
5375
|
export interface AIToolCallSearchResult {
|
|
@@ -5230,6 +5377,8 @@ export interface AIToolCallSearchResult {
|
|
|
5230
5377
|
spaceId: string;
|
|
5231
5378
|
/** The ID of the page */
|
|
5232
5379
|
pageId: string;
|
|
5380
|
+
/** The revision ID of the result */
|
|
5381
|
+
revisionId: string;
|
|
5233
5382
|
/** The anchor of the result */
|
|
5234
5383
|
anchor?: string;
|
|
5235
5384
|
/** The title of the result */
|
|
@@ -5445,6 +5594,14 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
|
|
|
5445
5594
|
/** Question being asked. */
|
|
5446
5595
|
query: string;
|
|
5447
5596
|
};
|
|
5597
|
+
export type SiteInsightsEventAskRateResponse = SiteInsightsEventBase & {
|
|
5598
|
+
type: 'ask_rate_response';
|
|
5599
|
+
/** Question asked. */
|
|
5600
|
+
query: string;
|
|
5601
|
+
rating: 1 | -1;
|
|
5602
|
+
/** ID of the AI response. */
|
|
5603
|
+
responseId: string;
|
|
5604
|
+
};
|
|
5448
5605
|
export declare enum SiteInsightsLinkPosition {
|
|
5449
5606
|
Announcement = "announcement",
|
|
5450
5607
|
Header = "header",
|
|
@@ -5496,7 +5653,7 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
5496
5653
|
type: 'ad_display';
|
|
5497
5654
|
ad: SiteInsightsAd;
|
|
5498
5655
|
};
|
|
5499
|
-
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
|
|
5656
|
+
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
|
|
5500
5657
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
5501
5658
|
column: 'datetime';
|
|
5502
5659
|
interval?: 'hour' | 'day' | 'week' | 'month';
|
|
@@ -5556,8 +5713,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
5556
5713
|
column: 'eventPageFeedbackRating';
|
|
5557
5714
|
} | {
|
|
5558
5715
|
column: 'eventPageFeedbackComment';
|
|
5716
|
+
} | {
|
|
5717
|
+
column: 'eventAskResponseRating';
|
|
5559
5718
|
} | {
|
|
5560
5719
|
column: 'pageFeedbackRating';
|
|
5720
|
+
} | {
|
|
5721
|
+
column: 'askResponseRating';
|
|
5561
5722
|
} | {
|
|
5562
5723
|
column: 'referrer';
|
|
5563
5724
|
} | {
|
|
@@ -5592,6 +5753,7 @@ export declare enum SiteInsightsEventType {
|
|
|
5592
5753
|
PagePostFeedback = "page_post_feedback",
|
|
5593
5754
|
PagePostFeedbackComment = "page_post_feedback_comment",
|
|
5594
5755
|
AskQuestion = "ask_question",
|
|
5756
|
+
AskRateResponse = "ask_rate_response",
|
|
5595
5757
|
LinkClick = "link_click",
|
|
5596
5758
|
ApiClientOpen = "api_client_open",
|
|
5597
5759
|
ApiClientRequest = "api_client_request",
|
|
@@ -5725,9 +5887,18 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
5725
5887
|
good: number;
|
|
5726
5888
|
bad: number;
|
|
5727
5889
|
}[];
|
|
5890
|
+
} | {
|
|
5891
|
+
column: 'askResponseRating';
|
|
5892
|
+
values: {
|
|
5893
|
+
positive: number;
|
|
5894
|
+
negative: number;
|
|
5895
|
+
}[];
|
|
5728
5896
|
} | {
|
|
5729
5897
|
column: 'eventPageFeedbackRating';
|
|
5730
5898
|
values: PageFeedbackRating[];
|
|
5899
|
+
} | {
|
|
5900
|
+
column: 'eventAskResponseRating';
|
|
5901
|
+
values: number[];
|
|
5731
5902
|
} | {
|
|
5732
5903
|
column: 'eventPageFeedbackComment';
|
|
5733
5904
|
values: string[];
|
|
@@ -5773,13 +5944,18 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
5773
5944
|
export type SiteInsightsQueryEventsFilter = SiteInsightsQueryEventsValues & {
|
|
5774
5945
|
operator?: SiteInsightsQueryOperator;
|
|
5775
5946
|
};
|
|
5776
|
-
export declare enum
|
|
5947
|
+
export declare enum SiteInsightsQueryRangePreset {
|
|
5777
5948
|
LastYear = "lastYear",
|
|
5778
5949
|
Last3Months = "last3Months",
|
|
5779
5950
|
Last30Days = "last30Days",
|
|
5780
5951
|
Last7Days = "last7Days",
|
|
5781
5952
|
Last24Hours = "last24Hours"
|
|
5782
5953
|
}
|
|
5954
|
+
export interface SiteInsightsQueryRangeCustom {
|
|
5955
|
+
from: Timestamp;
|
|
5956
|
+
to: Timestamp;
|
|
5957
|
+
}
|
|
5958
|
+
export type SiteInsightsQueryRange = SiteInsightsQueryRangePreset | SiteInsightsQueryRangeCustom;
|
|
5783
5959
|
export interface SiteInsightsQueryEventsAggregation {
|
|
5784
5960
|
select?: SiteInsightsQueryEventsColumn[];
|
|
5785
5961
|
where?: SiteInsightsQueryEventsFilter[];
|
|
@@ -6091,11 +6267,11 @@ export interface PublishedSiteContent {
|
|
|
6091
6267
|
changeRequest?: string;
|
|
6092
6268
|
/** Identifier of the revision being previewed in this URL. */
|
|
6093
6269
|
revision?: string;
|
|
6094
|
-
/** Path of the content relative to the
|
|
6270
|
+
/** Path of the content relative to the input URL being resolved */
|
|
6095
6271
|
pathname: string;
|
|
6096
|
-
/** Prefix of the path in the URL
|
|
6272
|
+
/** Prefix of the path in the input URL being resolved */
|
|
6097
6273
|
basePath: string;
|
|
6098
|
-
/** Prefix of the path in the URL
|
|
6274
|
+
/** Prefix of the site path in the input URL being resolved */
|
|
6099
6275
|
siteBasePath: string;
|
|
6100
6276
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
6101
6277
|
apiToken: string;
|
|
@@ -6203,6 +6379,32 @@ export interface UpdateContentPublishingAuth {
|
|
|
6203
6379
|
export declare enum GitBookUsers {
|
|
6204
6380
|
GitbookAgent = "gitbook:agent"
|
|
6205
6381
|
}
|
|
6382
|
+
export interface SpaceTemplate {
|
|
6383
|
+
id: string;
|
|
6384
|
+
contentId: string;
|
|
6385
|
+
/** A title of the template. */
|
|
6386
|
+
title: string;
|
|
6387
|
+
/** A subtitle for the template. */
|
|
6388
|
+
subtitle: string;
|
|
6389
|
+
/** An emoji representing the template. */
|
|
6390
|
+
emoji: Emoji;
|
|
6391
|
+
/** An optional OpenAPI spec to create along with the template. */
|
|
6392
|
+
openAPISpec?: {
|
|
6393
|
+
/** Slug used as reference */
|
|
6394
|
+
slug: OpenAPISpecSlug;
|
|
6395
|
+
sourceURL: URL;
|
|
6396
|
+
};
|
|
6397
|
+
/** A list of features that the template supports. */
|
|
6398
|
+
features: string[];
|
|
6399
|
+
previewImage: {
|
|
6400
|
+
light: URL;
|
|
6401
|
+
dark: URL;
|
|
6402
|
+
};
|
|
6403
|
+
/** URLs associated with the object */
|
|
6404
|
+
urls: {
|
|
6405
|
+
preview: URL;
|
|
6406
|
+
};
|
|
6407
|
+
}
|
|
6206
6408
|
export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
|
|
6207
6409
|
export type InputPageBase = {
|
|
6208
6410
|
/**
|
|
@@ -6568,9 +6770,14 @@ export interface OrganizationOpenAPISpecsChannel {
|
|
|
6568
6770
|
channel: 'organization-openapi-specs';
|
|
6569
6771
|
organization: string;
|
|
6570
6772
|
}
|
|
6571
|
-
/** Subscription channel for changes in
|
|
6572
|
-
export interface
|
|
6573
|
-
channel: 'organization-
|
|
6773
|
+
/** Subscription channel for changes in translations in an organization. */
|
|
6774
|
+
export interface OrganizationTranslationsChannel {
|
|
6775
|
+
channel: 'organization-translations';
|
|
6776
|
+
organization: string;
|
|
6777
|
+
}
|
|
6778
|
+
/** Subscription channel for changes in the glossary in an organization. */
|
|
6779
|
+
export interface OrganizationTranslationsGlossaryChannel {
|
|
6780
|
+
channel: 'organization-translations-glossary';
|
|
6574
6781
|
organization: string;
|
|
6575
6782
|
}
|
|
6576
6783
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
@@ -6705,10 +6912,6 @@ export interface CustomHostnameChannel {
|
|
|
6705
6912
|
channel: 'custom-hostname';
|
|
6706
6913
|
customHostname: string;
|
|
6707
6914
|
}
|
|
6708
|
-
export interface GitSyncSettingsChannel {
|
|
6709
|
-
channel: 'space-gitsync-settings';
|
|
6710
|
-
space: string;
|
|
6711
|
-
}
|
|
6712
6915
|
export interface GitSyncOperationChannel {
|
|
6713
6916
|
channel: 'space-gitsync-operation';
|
|
6714
6917
|
space: string;
|
|
@@ -6722,8 +6925,12 @@ export interface SubdomainChannel {
|
|
|
6722
6925
|
channel: 'subdomain';
|
|
6723
6926
|
subdomain: string;
|
|
6724
6927
|
}
|
|
6725
|
-
export interface
|
|
6726
|
-
channel: 'translation
|
|
6928
|
+
export interface TranslationChannel {
|
|
6929
|
+
channel: 'translation';
|
|
6930
|
+
translation: string;
|
|
6931
|
+
}
|
|
6932
|
+
export interface TranslationRunChannel {
|
|
6933
|
+
channel: 'translation-run';
|
|
6727
6934
|
translation: string;
|
|
6728
6935
|
}
|
|
6729
6936
|
/** Subscription channel for an agent task. */
|
|
@@ -6741,7 +6948,16 @@ export interface AgentTasksChannel {
|
|
|
6741
6948
|
organization: string;
|
|
6742
6949
|
}
|
|
6743
6950
|
/** 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 |
|
|
6951
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6952
|
+
export interface TranslationRunChannelData {
|
|
6953
|
+
channel: 'translation-run';
|
|
6954
|
+
data: {
|
|
6955
|
+
/** The progress of the translation run, between 0 and 100. */
|
|
6956
|
+
progress: number;
|
|
6957
|
+
startedAt: Timestamp;
|
|
6958
|
+
updatedAt: Timestamp;
|
|
6959
|
+
};
|
|
6960
|
+
}
|
|
6745
6961
|
export interface GitSyncOperationChannelData {
|
|
6746
6962
|
channel: 'space-gitsync-operation';
|
|
6747
6963
|
data: GitSyncOperation;
|
|
@@ -6780,7 +6996,13 @@ export interface APIChannelMutationData {
|
|
|
6780
6996
|
};
|
|
6781
6997
|
}
|
|
6782
6998
|
/** Data passed through a realtime channel */
|
|
6783
|
-
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | APIChannelMutationData;
|
|
6999
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | TranslationRunChannelData | APIChannelMutationData;
|
|
7000
|
+
export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
|
|
7001
|
+
type: 'object';
|
|
7002
|
+
description: string;
|
|
7003
|
+
properties: Record<string, SiteAdaptiveDeterministicJSONSchemaClaimsProperties>;
|
|
7004
|
+
additionalProperties: false;
|
|
7005
|
+
};
|
|
6784
7006
|
/** The status of ads on the site */
|
|
6785
7007
|
export declare enum SiteAdsStatus {
|
|
6786
7008
|
Pending = "pending",
|
|
@@ -7227,6 +7449,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7227
7449
|
message: string;
|
|
7228
7450
|
};
|
|
7229
7451
|
}>>;
|
|
7452
|
+
/**
|
|
7453
|
+
* No description
|
|
7454
|
+
*
|
|
7455
|
+
* @tags space-git
|
|
7456
|
+
* @name DeleteLegacyGitInstallation
|
|
7457
|
+
* @summary Remove the legacy Git Sync installation from the space to be able to upgrade it to use the new Git integrations
|
|
7458
|
+
* @request DELETE:/spaces/{spaceId}/git/legacy-installation
|
|
7459
|
+
* @secure
|
|
7460
|
+
*/
|
|
7461
|
+
deleteLegacyGitInstallation: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
7230
7462
|
/**
|
|
7231
7463
|
* No description
|
|
7232
7464
|
*
|
|
@@ -7404,6 +7636,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7404
7636
|
* @secure
|
|
7405
7637
|
*/
|
|
7406
7638
|
importContent: (spaceId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
|
|
7639
|
+
/**
|
|
7640
|
+
* No description
|
|
7641
|
+
*
|
|
7642
|
+
* @tags space-content
|
|
7643
|
+
* @name ApplyTemplateToSpace
|
|
7644
|
+
* @summary Apply a template to a space.
|
|
7645
|
+
* @request POST:/spaces/{spaceId}/content/template
|
|
7646
|
+
* @secure
|
|
7647
|
+
*/
|
|
7648
|
+
applyTemplateToSpace: (spaceId: string, data: ApplySpaceTemplate, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
7407
7649
|
/**
|
|
7408
7650
|
* No description
|
|
7409
7651
|
*
|
|
@@ -7670,6 +7912,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7670
7912
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
7671
7913
|
pages: RevisionPage[];
|
|
7672
7914
|
files: RevisionFile[];
|
|
7915
|
+
reusableContents: RevisionReusableContent[];
|
|
7673
7916
|
}, any>>;
|
|
7674
7917
|
/**
|
|
7675
7918
|
* No description
|
|
@@ -10613,6 +10856,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10613
10856
|
message: string;
|
|
10614
10857
|
};
|
|
10615
10858
|
}>>;
|
|
10859
|
+
/**
|
|
10860
|
+
* No description
|
|
10861
|
+
*
|
|
10862
|
+
* @tags openapi
|
|
10863
|
+
* @name UpdateOpenApiSpecBySlug
|
|
10864
|
+
* @summary Update OpenAPI spec visibility
|
|
10865
|
+
* @request PATCH:/orgs/{organizationId}/openapi/{specSlug}
|
|
10866
|
+
* @secure
|
|
10867
|
+
*/
|
|
10868
|
+
updateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
|
|
10869
|
+
/**
|
|
10870
|
+
* The visibility setting of the OpenAPI spec.
|
|
10871
|
+
* * `private`: The spec is not publicly available.
|
|
10872
|
+
* * `public`: The spec is available to anyone with a public link.
|
|
10873
|
+
*/
|
|
10874
|
+
visibility: OpenAPISpecVisibility;
|
|
10875
|
+
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, {
|
|
10876
|
+
error: {
|
|
10877
|
+
/** @format int32 */
|
|
10878
|
+
code: 400;
|
|
10879
|
+
message: string;
|
|
10880
|
+
};
|
|
10881
|
+
} | {
|
|
10882
|
+
error: {
|
|
10883
|
+
/** @format int32 */
|
|
10884
|
+
code: 404;
|
|
10885
|
+
message: string;
|
|
10886
|
+
};
|
|
10887
|
+
}>>;
|
|
10616
10888
|
/**
|
|
10617
10889
|
* No description
|
|
10618
10890
|
*
|
|
@@ -10875,12 +11147,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10875
11147
|
* No description
|
|
10876
11148
|
*
|
|
10877
11149
|
* @tags translations
|
|
10878
|
-
* @name
|
|
10879
|
-
* @summary List all the
|
|
11150
|
+
* @name ListTranslations
|
|
11151
|
+
* @summary List all the translations
|
|
10880
11152
|
* @request GET:/orgs/{organizationId}/translations
|
|
10881
11153
|
* @secure
|
|
10882
11154
|
*/
|
|
10883
|
-
|
|
11155
|
+
listTranslations: (organizationId: string, query?: {
|
|
10884
11156
|
/** Identifier of the page results to fetch. */
|
|
10885
11157
|
page?: string;
|
|
10886
11158
|
/**
|
|
@@ -10890,21 +11162,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10890
11162
|
*/
|
|
10891
11163
|
limit?: number;
|
|
10892
11164
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10893
|
-
items:
|
|
11165
|
+
items: Translation[];
|
|
10894
11166
|
}, any>>;
|
|
10895
11167
|
/**
|
|
10896
11168
|
* No description
|
|
10897
11169
|
*
|
|
10898
11170
|
* @tags translations
|
|
10899
|
-
* @name
|
|
10900
|
-
* @summary Create a translation
|
|
11171
|
+
* @name CreateTranslation
|
|
11172
|
+
* @summary Create a translation
|
|
10901
11173
|
* @request POST:/orgs/{organizationId}/translations
|
|
10902
11174
|
* @secure
|
|
10903
11175
|
*/
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
11176
|
+
createTranslation: (organizationId: string, data: {
|
|
11177
|
+
source: TranslationSource;
|
|
11178
|
+
language: TranslationLanguage;
|
|
11179
|
+
instructions?: JSONDocument;
|
|
11180
|
+
}, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10908
11181
|
error: {
|
|
10909
11182
|
/** @format int32 */
|
|
10910
11183
|
code: 400;
|
|
@@ -10915,12 +11188,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10915
11188
|
* No description
|
|
10916
11189
|
*
|
|
10917
11190
|
* @tags translations
|
|
10918
|
-
* @name
|
|
10919
|
-
* @summary Get a translation
|
|
10920
|
-
* @request GET:/orgs/{organizationId}/translations/{
|
|
11191
|
+
* @name GetTranslation
|
|
11192
|
+
* @summary Get a translation by its ID
|
|
11193
|
+
* @request GET:/orgs/{organizationId}/translations/{translationId}
|
|
10921
11194
|
* @secure
|
|
10922
11195
|
*/
|
|
10923
|
-
|
|
11196
|
+
getTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10924
11197
|
error: {
|
|
10925
11198
|
/** @format int32 */
|
|
10926
11199
|
code: 404;
|
|
@@ -10931,15 +11204,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10931
11204
|
* No description
|
|
10932
11205
|
*
|
|
10933
11206
|
* @tags translations
|
|
10934
|
-
* @name
|
|
10935
|
-
* @summary Update a translation
|
|
10936
|
-
* @request PUT:/orgs/{organizationId}/translations/{
|
|
11207
|
+
* @name UpdateTranslation
|
|
11208
|
+
* @summary Update a translation
|
|
11209
|
+
* @request PUT:/orgs/{organizationId}/translations/{translationId}
|
|
10937
11210
|
* @secure
|
|
10938
11211
|
*/
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
}, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, {
|
|
11212
|
+
updateTranslation: (organizationId: string, translationId: string, data: {
|
|
11213
|
+
instructions: JSONDocument;
|
|
11214
|
+
}, params?: RequestParams) => Promise<HttpResponse<Translation, {
|
|
10943
11215
|
error: {
|
|
10944
11216
|
/** @format int32 */
|
|
10945
11217
|
code: 400;
|
|
@@ -10950,22 +11222,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10950
11222
|
* No description
|
|
10951
11223
|
*
|
|
10952
11224
|
* @tags translations
|
|
10953
|
-
* @name
|
|
10954
|
-
* @summary Delete a translation
|
|
10955
|
-
* @request DELETE:/orgs/{organizationId}/translations/{
|
|
11225
|
+
* @name DeleteTranslation
|
|
11226
|
+
* @summary Delete a translation
|
|
11227
|
+
* @request DELETE:/orgs/{organizationId}/translations/{translationId}
|
|
10956
11228
|
* @secure
|
|
10957
11229
|
*/
|
|
10958
|
-
|
|
11230
|
+
deleteTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
10959
11231
|
/**
|
|
10960
11232
|
* No description
|
|
10961
11233
|
*
|
|
10962
|
-
* @tags
|
|
10963
|
-
* @name
|
|
10964
|
-
* @summary List
|
|
10965
|
-
* @request GET:/orgs/{organizationId}/translations
|
|
11234
|
+
* @tags glossary
|
|
11235
|
+
* @name ListGlossaryEntries
|
|
11236
|
+
* @summary List glossary entries
|
|
11237
|
+
* @request GET:/orgs/{organizationId}/translations-glossary
|
|
10966
11238
|
* @secure
|
|
10967
11239
|
*/
|
|
10968
|
-
|
|
11240
|
+
listGlossaryEntries: (organizationId: string, query?: {
|
|
10969
11241
|
/** Identifier of the page results to fetch. */
|
|
10970
11242
|
page?: string;
|
|
10971
11243
|
/**
|
|
@@ -10975,64 +11247,42 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10975
11247
|
*/
|
|
10976
11248
|
limit?: number;
|
|
10977
11249
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10978
|
-
items:
|
|
10979
|
-
},
|
|
10980
|
-
error: {
|
|
10981
|
-
/** @format int32 */
|
|
10982
|
-
code: 404;
|
|
10983
|
-
message: string;
|
|
10984
|
-
};
|
|
10985
|
-
}>>;
|
|
11250
|
+
items: GlossaryEntry[];
|
|
11251
|
+
}, any>>;
|
|
10986
11252
|
/**
|
|
10987
11253
|
* No description
|
|
10988
11254
|
*
|
|
10989
|
-
* @tags
|
|
10990
|
-
* @name
|
|
10991
|
-
* @summary
|
|
10992
|
-
* @request
|
|
11255
|
+
* @tags glossary
|
|
11256
|
+
* @name UpdateGlossaryEntries
|
|
11257
|
+
* @summary Update glossary entries
|
|
11258
|
+
* @request PUT:/orgs/{organizationId}/translations-glossary
|
|
10993
11259
|
* @secure
|
|
10994
11260
|
*/
|
|
10995
|
-
|
|
11261
|
+
updateGlossaryEntries: (organizationId: string, data: {
|
|
11262
|
+
operations: GlossaryBatchOperation[];
|
|
11263
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
10996
11264
|
error: {
|
|
10997
11265
|
/** @format int32 */
|
|
10998
|
-
code:
|
|
11266
|
+
code: 400;
|
|
10999
11267
|
message: string;
|
|
11000
11268
|
};
|
|
11001
11269
|
}>>;
|
|
11002
11270
|
/**
|
|
11003
11271
|
* No description
|
|
11004
11272
|
*
|
|
11005
|
-
* @tags
|
|
11006
|
-
* @name
|
|
11007
|
-
* @summary
|
|
11008
|
-
* @request
|
|
11273
|
+
* @tags glossary
|
|
11274
|
+
* @name GetGlossaryEntry
|
|
11275
|
+
* @summary Get a glossary entry by its ID
|
|
11276
|
+
* @request GET:/orgs/{organizationId}/translations-glossary/{glossaryEntryId}
|
|
11009
11277
|
* @secure
|
|
11010
11278
|
*/
|
|
11011
|
-
|
|
11012
|
-
instructions: JSONDocument;
|
|
11013
|
-
}, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, {
|
|
11014
|
-
error: {
|
|
11015
|
-
/** @format int32 */
|
|
11016
|
-
code: 400;
|
|
11017
|
-
message: string;
|
|
11018
|
-
};
|
|
11019
|
-
} | {
|
|
11279
|
+
getGlossaryEntry: (organizationId: string, glossaryEntryId: string, params?: RequestParams) => Promise<HttpResponse<GlossaryEntry, {
|
|
11020
11280
|
error: {
|
|
11021
11281
|
/** @format int32 */
|
|
11022
11282
|
code: 404;
|
|
11023
11283
|
message: string;
|
|
11024
11284
|
};
|
|
11025
11285
|
}>>;
|
|
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
11286
|
/**
|
|
11037
11287
|
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
11038
11288
|
*
|
|
@@ -11888,7 +12138,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11888
12138
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
|
|
11889
12139
|
* @secure
|
|
11890
12140
|
*/
|
|
11891
|
-
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string,
|
|
12141
|
+
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, query?: {
|
|
12142
|
+
/** The ID of the space to filter the recommended questions for. */
|
|
12143
|
+
spaceId?: string;
|
|
12144
|
+
}, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
11892
12145
|
/**
|
|
11893
12146
|
* No description
|
|
11894
12147
|
*
|