@gitbook/api 0.105.0 → 0.107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -896,7 +896,7 @@ export interface DocumentBlockExpandable {
896
896
  fragment: 'expandable-body';
897
897
  type: 'expandable-body';
898
898
  /** @minItems 1 */
899
- nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
899
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
900
900
  }))[];
901
901
  meta?: {
902
902
  /** Unique ID to be used in an URL for the block. */
@@ -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
- /** Parameters for a computed content */
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 type ComputedContentDependencyRef = ContentRefSpace | ContentRefOpenAPI;
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
- /** Parameters for a computed content */
1158
- export interface ComputedContentSource {
1159
- /** Name of the integration */
1160
- integration: string;
1161
- /** Identifier of the source used for computation */
1162
- source: string;
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
- /** Parameters for a computed content */
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, ComputedContentDependencyValue>;
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;
@@ -4430,6 +4598,12 @@ export interface SiteCustomizationSettings {
4430
4598
  /** If true, AI search is enabled */
4431
4599
  enabled: boolean;
4432
4600
  };
4601
+ ai?: {
4602
+ pageLinkSummaries: {
4603
+ /** If true, AI page links summaries is enabled */
4604
+ enabled: boolean;
4605
+ };
4606
+ };
4433
4607
  advancedCustomization: {
4434
4608
  /** If true, Advanced customization is enabled */
4435
4609
  enabled: boolean;
@@ -5546,10 +5720,7 @@ export interface ContentPublishingAuth {
5546
5720
  */
5547
5721
  fallbackURL?: string;
5548
5722
  }
5549
- /** Dependency for a computation, before its resolution. */
5550
- export interface ComputedContentDependency {
5551
- ref: ComputedContentDependencyRef;
5552
- }
5723
+ export type ComputedContentSource = ComputedContentSourceDocument | ComputedContentSourceRevision;
5553
5724
  export type InputPageBase = {
5554
5725
  /**
5555
5726
  * Optional unique identifier for the page.
@@ -5576,8 +5747,7 @@ export type InputPageDocument = InputPageBase & {
5576
5747
  /** Page's slug in its direct parent */
5577
5748
  slug?: string;
5578
5749
  pages?: (InputPageDocument | InputPageLink | InputPageComputed)[];
5579
- /** Parameters for a computed content */
5580
- computed?: ComputedContentSource;
5750
+ computed?: ComputedContentSourceDocument;
5581
5751
  };
5582
5752
  export type InputPageLink = InputPageBase & {
5583
5753
  type: 'link';
@@ -5586,8 +5756,7 @@ export type InputPageLink = InputPageBase & {
5586
5756
  };
5587
5757
  export type InputPageComputed = InputPageBase & {
5588
5758
  type: 'computed';
5589
- /** Parameters for a computed content */
5590
- computed: ComputedContentSource;
5759
+ computed: ComputedContentSourceRevision;
5591
5760
  };
5592
5761
  export type InputPageGroup = InputPageBase & {
5593
5762
  type: 'group';
@@ -5930,6 +6099,11 @@ export interface OrganizationOpenAPISpecsChannel {
5930
6099
  channel: 'organization-openapi-specs';
5931
6100
  organization: string;
5932
6101
  }
6102
+ /** Subscription channel for changes in translation settings in an organization. */
6103
+ export interface OrganizationTranslationSettingsChannel {
6104
+ channel: 'organization-translation-settings';
6105
+ organization: string;
6106
+ }
5933
6107
  /** Subscription channel for changes in custom fonts in an organization. */
5934
6108
  export interface OrganizationCustomFontsChannel {
5935
6109
  channel: 'organization-fonts';
@@ -6066,8 +6240,12 @@ export interface SubdomainChannel {
6066
6240
  channel: 'subdomain';
6067
6241
  subdomain: string;
6068
6242
  }
6243
+ export interface TranslationSettingsChannel {
6244
+ channel: 'translation-settings';
6245
+ translation: string;
6246
+ }
6069
6247
  /** Channel to subscribe to for realtime updates. */
6070
- 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;
6248
+ 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;
6071
6249
  export interface GitSyncOperationChannelData {
6072
6250
  channel: 'space-gitsync-operation';
6073
6251
  data: GitSyncOperation;
@@ -6959,8 +7137,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6959
7137
  * @secure
6960
7138
  */
6961
7139
  getComputedDocument: (spaceId: string, data: {
6962
- /** Parameters for a computed content */
6963
- source: ComputedContentSource;
7140
+ source: ComputedContentSourceDocument;
6964
7141
  /** Seed to use for the generation of IDs. */
6965
7142
  seed: string;
6966
7143
  }, query?: {
@@ -6977,8 +7154,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6977
7154
  * @secure
6978
7155
  */
6979
7156
  getComputedRevision: (spaceId: string, data: {
6980
- /** Parameters for a computed content */
6981
- source: ComputedContentSource;
7157
+ source: ComputedContentSourceRevision;
6982
7158
  /** Seed to use for the generation of IDs. */
6983
7159
  seed: string;
6984
7160
  }, params?: RequestParams) => Promise<HttpResponse<{
@@ -9859,6 +10035,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9859
10035
  }, params?: RequestParams) => Promise<HttpResponse<List & {
9860
10036
  items: OpenAPISpec[];
9861
10037
  }, Error>>;
10038
+ /**
10039
+ * No description
10040
+ *
10041
+ * @tags openapi
10042
+ * @name CreateOpenApiSpec
10043
+ * @summary Create an organization OpenAPI specification
10044
+ * @request POST:/orgs/{organizationId}/openapi
10045
+ * @secure
10046
+ */
10047
+ createOpenApiSpec: (organizationId: string, data: {
10048
+ /** Slug used as reference */
10049
+ slug: OpenAPISpecSlug;
10050
+ /** Create a specification from an URL */
10051
+ source: OpenAPISpecSource;
10052
+ }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
10053
+ error: {
10054
+ /** @format int32 */
10055
+ code: 400;
10056
+ message: string;
10057
+ };
10058
+ }>>;
9862
10059
  /**
9863
10060
  * No description
9864
10061
  *
@@ -9886,15 +10083,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9886
10083
  */
9887
10084
  createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
9888
10085
  /** Create a specification from an URL */
9889
- source: {
9890
- url: URL;
9891
- } | {
9892
- /**
9893
- * OpenAPI specification as text
9894
- * @minLength 1
9895
- */
9896
- text: string;
9897
- };
10086
+ source: OpenAPISpecSource;
9898
10087
  }, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
9899
10088
  error: {
9900
10089
  /** @format int32 */
@@ -10003,6 +10192,174 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10003
10192
  message: string;
10004
10193
  };
10005
10194
  }>>;
10195
+ /**
10196
+ * No description
10197
+ *
10198
+ * @tags translations
10199
+ * @name ListTranslationSettings
10200
+ * @summary List all the translation settings in the organization
10201
+ * @request GET:/orgs/{organizationId}/translations
10202
+ * @secure
10203
+ */
10204
+ listTranslationSettings: (organizationId: string, query?: {
10205
+ /** Identifier of the page results to fetch. */
10206
+ page?: string;
10207
+ /**
10208
+ * The number of results per page
10209
+ * @min 0
10210
+ * @max 1000
10211
+ */
10212
+ limit?: number;
10213
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10214
+ items: TranslationSettings[];
10215
+ }, Error>>;
10216
+ /**
10217
+ * No description
10218
+ *
10219
+ * @tags translations
10220
+ * @name CreateTranslationSettings
10221
+ * @summary Create translation settings in the organization
10222
+ * @request POST:/orgs/{organizationId}/translations
10223
+ * @secure
10224
+ */
10225
+ createTranslationSettings: (organizationId: string, data: {
10226
+ /** The title of the translation settings */
10227
+ title: string;
10228
+ }, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
10229
+ error: {
10230
+ /** @format int32 */
10231
+ code: 400;
10232
+ message: string;
10233
+ };
10234
+ }>>;
10235
+ /**
10236
+ * No description
10237
+ *
10238
+ * @tags translations
10239
+ * @name GetTranslationSettings
10240
+ * @summary Get an organization translation settings by its id
10241
+ * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}
10242
+ * @secure
10243
+ */
10244
+ getTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
10245
+ error: {
10246
+ /** @format int32 */
10247
+ code: 404;
10248
+ message: string;
10249
+ };
10250
+ }>>;
10251
+ /**
10252
+ * No description
10253
+ *
10254
+ * @tags translations
10255
+ * @name UpdateTranslationSettings
10256
+ * @summary Update an organization translation settings by its id
10257
+ * @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}
10258
+ * @secure
10259
+ */
10260
+ updateTranslationSettings: (organizationId: string, translationSettingsId: string, data: {
10261
+ /** The title of the translation settings */
10262
+ title: string;
10263
+ }, params?: RequestParams) => Promise<HttpResponse<TranslationSettings, Error | {
10264
+ error: {
10265
+ /** @format int32 */
10266
+ code: 400;
10267
+ message: string;
10268
+ };
10269
+ }>>;
10270
+ /**
10271
+ * No description
10272
+ *
10273
+ * @tags translations
10274
+ * @name DeleteTranslationSettings
10275
+ * @summary Delete an organization translation settings by its id
10276
+ * @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}
10277
+ * @secure
10278
+ */
10279
+ deleteTranslationSettings: (organizationId: string, translationSettingsId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10280
+ /**
10281
+ * No description
10282
+ *
10283
+ * @tags translations
10284
+ * @name ListTranslationLanguages
10285
+ * @summary List languages in translation settings
10286
+ * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages
10287
+ * @secure
10288
+ */
10289
+ listTranslationLanguages: (organizationId: string, translationSettingsId: string, query?: {
10290
+ /** Identifier of the page results to fetch. */
10291
+ page?: string;
10292
+ /**
10293
+ * The number of results per page
10294
+ * @min 0
10295
+ * @max 1000
10296
+ */
10297
+ limit?: number;
10298
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10299
+ items: TranslationLanguageSettings[];
10300
+ }, Error | {
10301
+ error: {
10302
+ /** @format int32 */
10303
+ code: 404;
10304
+ message: string;
10305
+ };
10306
+ }>>;
10307
+ /**
10308
+ * No description
10309
+ *
10310
+ * @tags translations
10311
+ * @name GetTranslationLanguage
10312
+ * @summary Get language settings from translation
10313
+ * @request GET:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
10314
+ * @secure
10315
+ */
10316
+ getTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, Error | {
10317
+ error: {
10318
+ /** @format int32 */
10319
+ code: 404;
10320
+ message: string;
10321
+ };
10322
+ }>>;
10323
+ /**
10324
+ * No description
10325
+ *
10326
+ * @tags translations
10327
+ * @name CreateOrUpdateTranslationLanguage
10328
+ * @summary Create or update language settings in translation
10329
+ * @request PUT:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
10330
+ * @secure
10331
+ */
10332
+ createOrUpdateTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, data: {
10333
+ instructions: JSONDocument;
10334
+ }, params?: RequestParams) => Promise<HttpResponse<TranslationLanguageSettings, Error | {
10335
+ error: {
10336
+ /** @format int32 */
10337
+ code: 400;
10338
+ message: string;
10339
+ };
10340
+ } | {
10341
+ error: {
10342
+ /** @format int32 */
10343
+ code: 404;
10344
+ message: string;
10345
+ };
10346
+ }>>;
10347
+ /**
10348
+ * No description
10349
+ *
10350
+ * @tags translations
10351
+ * @name DeleteTranslationLanguage
10352
+ * @summary Remove language from translation
10353
+ * @request DELETE:/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}
10354
+ * @secure
10355
+ */
10356
+ deleteTranslationLanguage: (organizationId: string, translationSettingsId: string, translationLanguage: TranslationLanguage, params?: RequestParams) => Promise<HttpResponse<void, Error | {
10357
+ error: {
10358
+ /** @format int32 */
10359
+ code: 404;
10360
+ message: string;
10361
+ };
10362
+ }>>;
10006
10363
  /**
10007
10364
  * @description Generate a pre-signed URL that can be used to upload a file to storage
10008
10365
  *
@@ -11274,6 +11631,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11274
11631
  */
11275
11632
  removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
11276
11633
  };
11634
+ emailDomains: {
11635
+ /**
11636
+ * No description
11637
+ *
11638
+ * @tags email-domains
11639
+ * @name GetOrganizationsForEmailDomain
11640
+ * @summary Get all organizations by email domain.
11641
+ * @request GET:/email-domains/{emailDomain}/orgs
11642
+ * @secure
11643
+ */
11644
+ getOrganizationsForEmailDomain: (emailDomain: string, params?: RequestParams) => Promise<HttpResponse<{
11645
+ organizations?: Organization[];
11646
+ }, Error>>;
11647
+ };
11277
11648
  ads: {
11278
11649
  /**
11279
11650
  * No description