@gitbook/api 0.104.0 → 0.106.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 +399 -47
- package/dist/index.cjs +123 -3
- package/dist/index.js +121 -2
- package/package.json +1 -1
- package/spec/openapi.json +1467 -392
- package/spec/openapi.yaml +796 -147
package/dist/client.d.ts
CHANGED
|
@@ -1020,6 +1020,11 @@ export interface DocumentBlockOpenAPIOperation {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
/** Pointer to schemas in the OpenAPI spec. */
|
|
1022
1022
|
export interface OpenAPISchemasPointer {
|
|
1023
|
+
/**
|
|
1024
|
+
* Whether the schemas are grouped or not.
|
|
1025
|
+
* @default true
|
|
1026
|
+
*/
|
|
1027
|
+
grouped?: boolean;
|
|
1023
1028
|
/** List of schemas name from the OpenAPI spec. */
|
|
1024
1029
|
schemas: string[];
|
|
1025
1030
|
}
|
|
@@ -1113,8 +1118,7 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1113
1118
|
*/
|
|
1114
1119
|
noRobotsIndex?: boolean;
|
|
1115
1120
|
} & ({
|
|
1116
|
-
|
|
1117
|
-
computed: ComputedContentSource;
|
|
1121
|
+
computed: ComputedContentSourceDocument;
|
|
1118
1122
|
/** Seed to use for the generation of IDs. */
|
|
1119
1123
|
computedSeed: string;
|
|
1120
1124
|
} | {
|
|
@@ -1134,17 +1138,7 @@ export type RevisionPageLink = RevisionPageBase & {
|
|
|
1134
1138
|
*/
|
|
1135
1139
|
hidden?: boolean;
|
|
1136
1140
|
};
|
|
1137
|
-
export
|
|
1138
|
-
/** Dependency for a computation, with its resolved value. */
|
|
1139
|
-
export type ComputedContentDependencyValue = {
|
|
1140
|
-
ref: ContentRefSpace;
|
|
1141
|
-
/** See `Space` schema component. */
|
|
1142
|
-
value: {
|
|
1143
|
-
object: 'space';
|
|
1144
|
-
id: string;
|
|
1145
|
-
revision: string;
|
|
1146
|
-
} | null;
|
|
1147
|
-
} | {
|
|
1141
|
+
export interface ComputedContentDependencyOpenAPI {
|
|
1148
1142
|
ref: ContentRefOpenAPI;
|
|
1149
1143
|
/** See `OpenAPI` schema component. */
|
|
1150
1144
|
value: {
|
|
@@ -1153,13 +1147,115 @@ export type ComputedContentDependencyValue = {
|
|
|
1153
1147
|
slug: string;
|
|
1154
1148
|
lastVersion?: string;
|
|
1155
1149
|
} | null;
|
|
1150
|
+
}
|
|
1151
|
+
/** Generic parameters from an OpenAPI computed content source */
|
|
1152
|
+
export interface ComputedContentSourceOpenAPIBase {
|
|
1153
|
+
type: 'builtin:openapi';
|
|
1154
|
+
dependencies: {
|
|
1155
|
+
spec: {
|
|
1156
|
+
ref: ContentRefOpenAPI;
|
|
1157
|
+
} | ComputedContentDependencyOpenAPI;
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
/** Parameters for an OpenAPI computed revision */
|
|
1161
|
+
export type ComputedContentSourceRevisionOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1162
|
+
props: {
|
|
1163
|
+
models: boolean;
|
|
1164
|
+
};
|
|
1156
1165
|
};
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1166
|
+
export interface ComputedContentDependencySpace {
|
|
1167
|
+
ref: ContentRefSpace;
|
|
1168
|
+
/** See `Space` schema component. */
|
|
1169
|
+
value: {
|
|
1170
|
+
object: 'space';
|
|
1171
|
+
id: string;
|
|
1172
|
+
revision: string;
|
|
1173
|
+
} | null;
|
|
1174
|
+
}
|
|
1175
|
+
export declare enum TranslationLanguage {
|
|
1176
|
+
En = "en",
|
|
1177
|
+
Fr = "fr",
|
|
1178
|
+
De = "de",
|
|
1179
|
+
Es = "es",
|
|
1180
|
+
It = "it",
|
|
1181
|
+
Pt = "pt",
|
|
1182
|
+
Ru = "ru",
|
|
1183
|
+
Ja = "ja",
|
|
1184
|
+
Zh = "zh",
|
|
1185
|
+
Ko = "ko",
|
|
1186
|
+
Ar = "ar",
|
|
1187
|
+
Hi = "hi",
|
|
1188
|
+
Nl = "nl",
|
|
1189
|
+
Pl = "pl",
|
|
1190
|
+
Tr = "tr",
|
|
1191
|
+
Sv = "sv",
|
|
1192
|
+
No = "no",
|
|
1193
|
+
Da = "da",
|
|
1194
|
+
Fi = "fi",
|
|
1195
|
+
El = "el",
|
|
1196
|
+
Cs = "cs",
|
|
1197
|
+
Hu = "hu",
|
|
1198
|
+
Ro = "ro",
|
|
1199
|
+
Th = "th",
|
|
1200
|
+
Vi = "vi",
|
|
1201
|
+
Id = "id",
|
|
1202
|
+
Ms = "ms",
|
|
1203
|
+
He = "he",
|
|
1204
|
+
Uk = "uk",
|
|
1205
|
+
Sk = "sk",
|
|
1206
|
+
Bg = "bg",
|
|
1207
|
+
Hr = "hr",
|
|
1208
|
+
Lt = "lt",
|
|
1209
|
+
Lv = "lv",
|
|
1210
|
+
Et = "et",
|
|
1211
|
+
Sl = "sl"
|
|
1212
|
+
}
|
|
1213
|
+
export interface TranslationLanguageRef {
|
|
1214
|
+
kind: 'translation-language';
|
|
1215
|
+
/** ID of the translation settings */
|
|
1216
|
+
translationSettings: string;
|
|
1217
|
+
language: TranslationLanguage;
|
|
1218
|
+
}
|
|
1219
|
+
/** Compiled parameters for the translation */
|
|
1220
|
+
export interface TranslationParameters {
|
|
1221
|
+
/** Instructions for the translation, formatted as markdown */
|
|
1222
|
+
instructions: string;
|
|
1223
|
+
}
|
|
1224
|
+
export interface ComputedContentDependencyTranslation {
|
|
1225
|
+
ref: TranslationLanguageRef;
|
|
1226
|
+
/** Compiled parameters for the translation */
|
|
1227
|
+
value: TranslationParameters;
|
|
1228
|
+
}
|
|
1229
|
+
/** Generic parameters from a translation computed content source */
|
|
1230
|
+
export interface ComputedContentSourceTranslationBase {
|
|
1231
|
+
type: 'builtin:translation';
|
|
1232
|
+
dependencies: {
|
|
1233
|
+
source: {
|
|
1234
|
+
ref: ContentRefSpace;
|
|
1235
|
+
} | ComputedContentDependencySpace;
|
|
1236
|
+
settings: {
|
|
1237
|
+
ref: TranslationLanguageRef;
|
|
1238
|
+
} | ComputedContentDependencyTranslation;
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
export type ComputedContentSourceRevisionTranslation = ComputedContentSourceTranslationBase & {
|
|
1242
|
+
props: {
|
|
1243
|
+
sourceLanguage: TranslationLanguage;
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
/** Dependency for a computation, before its resolution. */
|
|
1247
|
+
export interface ComputedContentDependency {
|
|
1248
|
+
ref: ContentRefSpace | ContentRefOpenAPI | TranslationLanguageRef;
|
|
1249
|
+
}
|
|
1250
|
+
/** Dependency for a computation, with its resolved value. */
|
|
1251
|
+
export type ComputedContentDependencyResolved = ComputedContentDependencySpace | ComputedContentDependencyOpenAPI | ComputedContentDependencyTranslation;
|
|
1252
|
+
/** Parameters for a computed content managed by an integration */
|
|
1253
|
+
export interface ComputedContentSourceIntegration {
|
|
1254
|
+
/**
|
|
1255
|
+
* Type of the computed source
|
|
1256
|
+
* @pattern ^integration:[^:]+:[^:]+$
|
|
1257
|
+
*/
|
|
1258
|
+
type: string;
|
|
1163
1259
|
/** Properties to be passed to the computation */
|
|
1164
1260
|
props: PlainObject;
|
|
1165
1261
|
/**
|
|
@@ -1167,14 +1263,12 @@ export interface ComputedContentSource {
|
|
|
1167
1263
|
* The state of the dependencies will be passed to the computation.
|
|
1168
1264
|
* When the dependency's targets are updated, the computation will be updated.
|
|
1169
1265
|
*/
|
|
1170
|
-
dependencies?: Record<string,
|
|
1171
|
-
ref: ComputedContentDependencyRef;
|
|
1172
|
-
} | ComputedContentDependencyValue>;
|
|
1266
|
+
dependencies?: Record<string, ComputedContentDependency | ComputedContentDependencyResolved>;
|
|
1173
1267
|
}
|
|
1268
|
+
export type ComputedContentSourceRevision = ComputedContentSourceRevisionOpenAPI | ComputedContentSourceRevisionTranslation | ComputedContentSourceIntegration;
|
|
1174
1269
|
export type RevisionPageComputed = RevisionPageBase & {
|
|
1175
1270
|
type: 'computed';
|
|
1176
|
-
|
|
1177
|
-
computed: ComputedContentSource;
|
|
1271
|
+
computed: ComputedContentSourceRevision;
|
|
1178
1272
|
};
|
|
1179
1273
|
export interface GitSyncBlob {
|
|
1180
1274
|
/** SHA for the blob */
|
|
@@ -1209,6 +1303,23 @@ export interface RevisionPageDocumentCover {
|
|
|
1209
1303
|
/** Vertical position of the cover image. */
|
|
1210
1304
|
yPos: number;
|
|
1211
1305
|
}
|
|
1306
|
+
/** Parameters for an OpenAPI computed document */
|
|
1307
|
+
export type ComputedContentSourceDocumentOpenAPI = ComputedContentSourceOpenAPIBase & {
|
|
1308
|
+
props: {
|
|
1309
|
+
doc: 'models';
|
|
1310
|
+
} | {
|
|
1311
|
+
doc: 'operations' | 'info';
|
|
1312
|
+
/** @minLength 1 */
|
|
1313
|
+
page: string;
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
export type ComputedContentSourceDocumentTranslation = ComputedContentSourceTranslationBase & {
|
|
1317
|
+
props: {
|
|
1318
|
+
document: string;
|
|
1319
|
+
sourceLanguage: TranslationLanguage;
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
|
|
1212
1323
|
export type RevisionPageGroup = RevisionPageBase & {
|
|
1213
1324
|
/** @deprecated */
|
|
1214
1325
|
kind: 'group';
|
|
@@ -2315,6 +2426,10 @@ export interface IntegrationConfigurationSchema {
|
|
|
2315
2426
|
} & ({
|
|
2316
2427
|
type: 'string';
|
|
2317
2428
|
default?: string;
|
|
2429
|
+
/** If specified, this URL will be called to fetch suggestions for auto-completing the property. */
|
|
2430
|
+
completion_url?: string;
|
|
2431
|
+
/** If specified, only values from this array are allowed as inputs. */
|
|
2432
|
+
enum?: string[];
|
|
2318
2433
|
} | {
|
|
2319
2434
|
type: 'number';
|
|
2320
2435
|
default?: number;
|
|
@@ -2888,7 +3003,7 @@ export type ContentComputeEvent = SpaceEvent & {
|
|
|
2888
3003
|
/** Properties passed to the rendering. */
|
|
2889
3004
|
props: PlainObject;
|
|
2890
3005
|
/** Dependencies of the computation. */
|
|
2891
|
-
dependencies: Record<string,
|
|
3006
|
+
dependencies: Record<string, ComputedContentDependencyResolved>;
|
|
2892
3007
|
};
|
|
2893
3008
|
/**
|
|
2894
3009
|
* Event generated when computing the document of a pages.
|
|
@@ -4056,6 +4171,16 @@ export interface SearchAIAnswerStream {
|
|
|
4056
4171
|
/** Answer from AI for a question asked on a content. */
|
|
4057
4172
|
answer: SearchAIAnswer;
|
|
4058
4173
|
}
|
|
4174
|
+
/** Create a specification from an URL */
|
|
4175
|
+
export type OpenAPISpecSource = {
|
|
4176
|
+
url: URL;
|
|
4177
|
+
} | {
|
|
4178
|
+
/**
|
|
4179
|
+
* OpenAPI specification as text
|
|
4180
|
+
* @minLength 1
|
|
4181
|
+
*/
|
|
4182
|
+
text: string;
|
|
4183
|
+
};
|
|
4059
4184
|
export interface OpenAPISpecVersion {
|
|
4060
4185
|
/** The object type, which is always "openapi-spec-version" */
|
|
4061
4186
|
object: 'openapi-spec-version';
|
|
@@ -4079,6 +4204,49 @@ export interface OpenAPISpecContent {
|
|
|
4079
4204
|
filesystem: object;
|
|
4080
4205
|
url: URL;
|
|
4081
4206
|
}
|
|
4207
|
+
/**
|
|
4208
|
+
* Title of the translation settings
|
|
4209
|
+
* @minLength 1
|
|
4210
|
+
* @maxLength 100
|
|
4211
|
+
*/
|
|
4212
|
+
export type TranslationTitle = string;
|
|
4213
|
+
export interface TranslationSettings {
|
|
4214
|
+
object: 'translation-settings';
|
|
4215
|
+
/** Unique identifier of the translation settings */
|
|
4216
|
+
id: string;
|
|
4217
|
+
/** Title of the translation settings */
|
|
4218
|
+
title: TranslationTitle;
|
|
4219
|
+
languages: TranslationLanguage[];
|
|
4220
|
+
/** @format date-time */
|
|
4221
|
+
createdAt: string;
|
|
4222
|
+
/** @format date-time */
|
|
4223
|
+
updatedAt: string;
|
|
4224
|
+
permissions: {
|
|
4225
|
+
/** Whether the user can edit the object */
|
|
4226
|
+
edit: boolean;
|
|
4227
|
+
};
|
|
4228
|
+
/** URLs associated with the object */
|
|
4229
|
+
urls: {
|
|
4230
|
+
/**
|
|
4231
|
+
* URL of the translation settings in the API
|
|
4232
|
+
* @format uri
|
|
4233
|
+
*/
|
|
4234
|
+
location: string;
|
|
4235
|
+
};
|
|
4236
|
+
}
|
|
4237
|
+
export interface TranslationLanguageSettings {
|
|
4238
|
+
object: 'translation-language-settings';
|
|
4239
|
+
language: TranslationLanguage;
|
|
4240
|
+
instructions: JSONDocument;
|
|
4241
|
+
/** URLs associated with the object */
|
|
4242
|
+
urls: {
|
|
4243
|
+
/**
|
|
4244
|
+
* URL of the translation language settings in the API
|
|
4245
|
+
* @format uri
|
|
4246
|
+
*/
|
|
4247
|
+
location: string;
|
|
4248
|
+
};
|
|
4249
|
+
}
|
|
4082
4250
|
export interface StorageFileMetadata {
|
|
4083
4251
|
/** Original filename */
|
|
4084
4252
|
name: string;
|
|
@@ -4805,6 +4973,7 @@ export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
|
|
|
4805
4973
|
query: string;
|
|
4806
4974
|
};
|
|
4807
4975
|
export declare enum SiteInsightsLinkPosition {
|
|
4976
|
+
Announcement = "announcement",
|
|
4808
4977
|
Header = "header",
|
|
4809
4978
|
Footer = "footer",
|
|
4810
4979
|
Sidebar = "sidebar",
|
|
@@ -5545,10 +5714,7 @@ export interface ContentPublishingAuth {
|
|
|
5545
5714
|
*/
|
|
5546
5715
|
fallbackURL?: string;
|
|
5547
5716
|
}
|
|
5548
|
-
|
|
5549
|
-
export interface ComputedContentDependency {
|
|
5550
|
-
ref: ComputedContentDependencyRef;
|
|
5551
|
-
}
|
|
5717
|
+
export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
|
|
5552
5718
|
export type InputPageBase = {
|
|
5553
5719
|
/**
|
|
5554
5720
|
* Optional unique identifier for the page.
|
|
@@ -5575,8 +5741,7 @@ export type InputPageDocument = InputPageBase & {
|
|
|
5575
5741
|
/** Page's slug in its direct parent */
|
|
5576
5742
|
slug?: string;
|
|
5577
5743
|
pages?: (InputPageDocument | InputPageLink | InputPageComputed)[];
|
|
5578
|
-
|
|
5579
|
-
computed?: ComputedContentSource;
|
|
5744
|
+
computed?: ComputedContentSourceDocument;
|
|
5580
5745
|
};
|
|
5581
5746
|
export type InputPageLink = InputPageBase & {
|
|
5582
5747
|
type: 'link';
|
|
@@ -5585,8 +5750,7 @@ export type InputPageLink = InputPageBase & {
|
|
|
5585
5750
|
};
|
|
5586
5751
|
export type InputPageComputed = InputPageBase & {
|
|
5587
5752
|
type: 'computed';
|
|
5588
|
-
|
|
5589
|
-
computed: ComputedContentSource;
|
|
5753
|
+
computed: ComputedContentSourceRevision;
|
|
5590
5754
|
};
|
|
5591
5755
|
export type InputPageGroup = InputPageBase & {
|
|
5592
5756
|
type: 'group';
|
|
@@ -5929,6 +6093,11 @@ export interface OrganizationOpenAPISpecsChannel {
|
|
|
5929
6093
|
channel: 'organization-openapi-specs';
|
|
5930
6094
|
organization: string;
|
|
5931
6095
|
}
|
|
6096
|
+
/** Subscription channel for changes in translation settings in an organization. */
|
|
6097
|
+
export interface OrganizationTranslationSettingsChannel {
|
|
6098
|
+
channel: 'organization-translation-settings';
|
|
6099
|
+
organization: string;
|
|
6100
|
+
}
|
|
5932
6101
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
5933
6102
|
export interface OrganizationCustomFontsChannel {
|
|
5934
6103
|
channel: 'organization-fonts';
|
|
@@ -6065,8 +6234,12 @@ export interface SubdomainChannel {
|
|
|
6065
6234
|
channel: 'subdomain';
|
|
6066
6235
|
subdomain: string;
|
|
6067
6236
|
}
|
|
6237
|
+
export interface TranslationSettingsChannel {
|
|
6238
|
+
channel: 'translation-settings';
|
|
6239
|
+
translation: string;
|
|
6240
|
+
}
|
|
6068
6241
|
/** Channel to subscribe to for realtime updates. */
|
|
6069
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | 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 | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel;
|
|
6242
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel;
|
|
6070
6243
|
export interface GitSyncOperationChannelData {
|
|
6071
6244
|
channel: 'space-gitsync-operation';
|
|
6072
6245
|
data: GitSyncOperation;
|
|
@@ -6958,8 +7131,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6958
7131
|
* @secure
|
|
6959
7132
|
*/
|
|
6960
7133
|
getComputedDocument: (spaceId: string, data: {
|
|
6961
|
-
|
|
6962
|
-
source: ComputedContentSource;
|
|
7134
|
+
source: ComputedContentSourceDocument;
|
|
6963
7135
|
/** Seed to use for the generation of IDs. */
|
|
6964
7136
|
seed: string;
|
|
6965
7137
|
}, query?: {
|
|
@@ -6976,8 +7148,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6976
7148
|
* @secure
|
|
6977
7149
|
*/
|
|
6978
7150
|
getComputedRevision: (spaceId: string, data: {
|
|
6979
|
-
|
|
6980
|
-
source: ComputedContentSource;
|
|
7151
|
+
source: ComputedContentSourceRevision;
|
|
6981
7152
|
/** Seed to use for the generation of IDs. */
|
|
6982
7153
|
seed: string;
|
|
6983
7154
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -9858,6 +10029,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9858
10029
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9859
10030
|
items: OpenAPISpec[];
|
|
9860
10031
|
}, Error>>;
|
|
10032
|
+
/**
|
|
10033
|
+
* No description
|
|
10034
|
+
*
|
|
10035
|
+
* @tags openapi
|
|
10036
|
+
* @name CreateOpenApiSpec
|
|
10037
|
+
* @summary Create an organization OpenAPI specification
|
|
10038
|
+
* @request POST:/orgs/{organizationId}/openapi
|
|
10039
|
+
* @secure
|
|
10040
|
+
*/
|
|
10041
|
+
createOpenApiSpec: (organizationId: string, data: {
|
|
10042
|
+
/** Slug used as reference */
|
|
10043
|
+
slug: OpenAPISpecSlug;
|
|
10044
|
+
/** Create a specification from an URL */
|
|
10045
|
+
source: OpenAPISpecSource;
|
|
10046
|
+
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
10047
|
+
error: {
|
|
10048
|
+
/** @format int32 */
|
|
10049
|
+
code: 400;
|
|
10050
|
+
message: string;
|
|
10051
|
+
};
|
|
10052
|
+
}>>;
|
|
9861
10053
|
/**
|
|
9862
10054
|
* No description
|
|
9863
10055
|
*
|
|
@@ -9885,15 +10077,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9885
10077
|
*/
|
|
9886
10078
|
createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
|
|
9887
10079
|
/** Create a specification from an URL */
|
|
9888
|
-
source:
|
|
9889
|
-
url: URL;
|
|
9890
|
-
} | {
|
|
9891
|
-
/**
|
|
9892
|
-
* OpenAPI specification as text
|
|
9893
|
-
* @minLength 1
|
|
9894
|
-
*/
|
|
9895
|
-
text: string;
|
|
9896
|
-
};
|
|
10080
|
+
source: OpenAPISpecSource;
|
|
9897
10081
|
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
9898
10082
|
error: {
|
|
9899
10083
|
/** @format int32 */
|
|
@@ -10002,6 +10186,174 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10002
10186
|
message: string;
|
|
10003
10187
|
};
|
|
10004
10188
|
}>>;
|
|
10189
|
+
/**
|
|
10190
|
+
* No description
|
|
10191
|
+
*
|
|
10192
|
+
* @tags translations
|
|
10193
|
+
* @name ListTranslationSettings
|
|
10194
|
+
* @summary List all the translation settings in the organization
|
|
10195
|
+
* @request GET:/orgs/{organizationId}/translations
|
|
10196
|
+
* @secure
|
|
10197
|
+
*/
|
|
10198
|
+
listTranslationSettings: (organizationId: string, query?: {
|
|
10199
|
+
/** Identifier of the page results to fetch. */
|
|
10200
|
+
page?: string;
|
|
10201
|
+
/**
|
|
10202
|
+
* The number of results per page
|
|
10203
|
+
* @min 0
|
|
10204
|
+
* @max 1000
|
|
10205
|
+
*/
|
|
10206
|
+
limit?: number;
|
|
10207
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10208
|
+
items: TranslationSettings[];
|
|
10209
|
+
}, Error>>;
|
|
10210
|
+
/**
|
|
10211
|
+
* No description
|
|
10212
|
+
*
|
|
10213
|
+
* @tags translations
|
|
10214
|
+
* @name CreateTranslationSettings
|
|
10215
|
+
* @summary Create translation settings in the organization
|
|
10216
|
+
* @request POST:/orgs/{organizationId}/translations
|
|
10217
|
+
* @secure
|
|
10218
|
+
*/
|
|
10219
|
+
createTranslationSettings: (organizationId: string, data: {
|
|
10220
|
+
/** The title of the translation settings */
|
|
10221
|
+
title: string;
|
|
10222
|
+
}, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
|
|
10223
|
+
error: {
|
|
10224
|
+
/** @format int32 */
|
|
10225
|
+
code: 400;
|
|
10226
|
+
message: string;
|
|
10227
|
+
};
|
|
10228
|
+
}>>;
|
|
10229
|
+
/**
|
|
10230
|
+
* No description
|
|
10231
|
+
*
|
|
10232
|
+
* @tags translations
|
|
10233
|
+
* @name GetTranslationSettings
|
|
10234
|
+
* @summary Get an organization translation settings by its id
|
|
10235
|
+
* @request GET:/orgs/{organizationId}/translations/{translationSettingsId}
|
|
10236
|
+
* @secure
|
|
10237
|
+
*/
|
|
10238
|
+
getTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
|
|
10239
|
+
error: {
|
|
10240
|
+
/** @format int32 */
|
|
10241
|
+
code: 404;
|
|
10242
|
+
message: string;
|
|
10243
|
+
};
|
|
10244
|
+
}>>;
|
|
10245
|
+
/**
|
|
10246
|
+
* No description
|
|
10247
|
+
*
|
|
10248
|
+
* @tags translations
|
|
10249
|
+
* @name UpdateTranslationSettings
|
|
10250
|
+
* @summary Update an organization translation settings by its id
|
|
10251
|
+
* @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}
|
|
10252
|
+
* @secure
|
|
10253
|
+
*/
|
|
10254
|
+
updateTranslationSettings: (organizationId: string, translationSettingsId: string, data: {
|
|
10255
|
+
/** The title of the translation settings */
|
|
10256
|
+
title: string;
|
|
10257
|
+
}, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
|
|
10258
|
+
error: {
|
|
10259
|
+
/** @format int32 */
|
|
10260
|
+
code: 400;
|
|
10261
|
+
message: string;
|
|
10262
|
+
};
|
|
10263
|
+
}>>;
|
|
10264
|
+
/**
|
|
10265
|
+
* No description
|
|
10266
|
+
*
|
|
10267
|
+
* @tags translations
|
|
10268
|
+
* @name DeleteTranslationSettings
|
|
10269
|
+
* @summary Delete an organization translation settings by its id
|
|
10270
|
+
* @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}
|
|
10271
|
+
* @secure
|
|
10272
|
+
*/
|
|
10273
|
+
deleteTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
10274
|
+
/**
|
|
10275
|
+
* No description
|
|
10276
|
+
*
|
|
10277
|
+
* @tags translations
|
|
10278
|
+
* @name ListTranslationLanguages
|
|
10279
|
+
* @summary List languages in translation settings
|
|
10280
|
+
* @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages
|
|
10281
|
+
* @secure
|
|
10282
|
+
*/
|
|
10283
|
+
listTranslationLanguages: (organizationId: string, translationSettingsId: string, query?: {
|
|
10284
|
+
/** Identifier of the page results to fetch. */
|
|
10285
|
+
page?: string;
|
|
10286
|
+
/**
|
|
10287
|
+
* The number of results per page
|
|
10288
|
+
* @min 0
|
|
10289
|
+
* @max 1000
|
|
10290
|
+
*/
|
|
10291
|
+
limit?: number;
|
|
10292
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10293
|
+
items: TranslationLanguageSettings[];
|
|
10294
|
+
}, Error | {
|
|
10295
|
+
error: {
|
|
10296
|
+
/** @format int32 */
|
|
10297
|
+
code: 404;
|
|
10298
|
+
message: string;
|
|
10299
|
+
};
|
|
10300
|
+
}>>;
|
|
10301
|
+
/**
|
|
10302
|
+
* No description
|
|
10303
|
+
*
|
|
10304
|
+
* @tags translations
|
|
10305
|
+
* @name GetTranslationLanguage
|
|
10306
|
+
* @summary Get language settings from translation
|
|
10307
|
+
* @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
|
|
10308
|
+
* @secure
|
|
10309
|
+
*/
|
|
10310
|
+
getTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, Error | {
|
|
10311
|
+
error: {
|
|
10312
|
+
/** @format int32 */
|
|
10313
|
+
code: 404;
|
|
10314
|
+
message: string;
|
|
10315
|
+
};
|
|
10316
|
+
}>>;
|
|
10317
|
+
/**
|
|
10318
|
+
* No description
|
|
10319
|
+
*
|
|
10320
|
+
* @tags translations
|
|
10321
|
+
* @name CreateOrUpdateTranslationLanguage
|
|
10322
|
+
* @summary Create or update language settings in translation
|
|
10323
|
+
* @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
|
|
10324
|
+
* @secure
|
|
10325
|
+
*/
|
|
10326
|
+
createOrUpdateTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, data: {
|
|
10327
|
+
instructions: JSONDocument;
|
|
10328
|
+
}, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, Error | {
|
|
10329
|
+
error: {
|
|
10330
|
+
/** @format int32 */
|
|
10331
|
+
code: 400;
|
|
10332
|
+
message: string;
|
|
10333
|
+
};
|
|
10334
|
+
} | {
|
|
10335
|
+
error: {
|
|
10336
|
+
/** @format int32 */
|
|
10337
|
+
code: 404;
|
|
10338
|
+
message: string;
|
|
10339
|
+
};
|
|
10340
|
+
}>>;
|
|
10341
|
+
/**
|
|
10342
|
+
* No description
|
|
10343
|
+
*
|
|
10344
|
+
* @tags translations
|
|
10345
|
+
* @name DeleteTranslationLanguage
|
|
10346
|
+
* @summary Remove language from translation
|
|
10347
|
+
* @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
|
|
10348
|
+
* @secure
|
|
10349
|
+
*/
|
|
10350
|
+
deleteTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
10351
|
+
error: {
|
|
10352
|
+
/** @format int32 */
|
|
10353
|
+
code: 404;
|
|
10354
|
+
message: string;
|
|
10355
|
+
};
|
|
10356
|
+
}>>;
|
|
10005
10357
|
/**
|
|
10006
10358
|
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
10007
10359
|
*
|