@gitbook/api 0.133.0 → 0.134.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 +22 -1
- package/dist/index.cjs +7 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/spec/openapi.json +40 -0
- package/spec/openapi.yaml +23 -0
package/dist/client.d.ts
CHANGED
|
@@ -11264,6 +11264,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11264
11264
|
* @secure
|
|
11265
11265
|
*/
|
|
11266
11266
|
deleteTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11267
|
+
/**
|
|
11268
|
+
* No description
|
|
11269
|
+
*
|
|
11270
|
+
* @tags translations
|
|
11271
|
+
* @name RunTranslation
|
|
11272
|
+
* @summary Run a translation again
|
|
11273
|
+
* @request POST:/orgs/{organizationId}/translations/{translationId}/run
|
|
11274
|
+
* @secure
|
|
11275
|
+
*/
|
|
11276
|
+
runTranslation: (organizationId: string, translationId: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
11277
|
+
error: {
|
|
11278
|
+
/** @format int32 */
|
|
11279
|
+
code: 404;
|
|
11280
|
+
message: string;
|
|
11281
|
+
};
|
|
11282
|
+
}>>;
|
|
11267
11283
|
/**
|
|
11268
11284
|
* No description
|
|
11269
11285
|
*
|
|
@@ -12175,7 +12191,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12175
12191
|
* @secure
|
|
12176
12192
|
*/
|
|
12177
12193
|
streamRecommendedQuestionsInSite: (organizationId: string, siteId: string, query?: {
|
|
12178
|
-
/** The ID of the space to filter the recommended questions for. */
|
|
12194
|
+
/** The ID of the site space to filter the recommended questions for. */
|
|
12195
|
+
siteSpaceId?: string;
|
|
12196
|
+
/**
|
|
12197
|
+
* The ID of the space to filter the recommended questions for.
|
|
12198
|
+
* @deprecated
|
|
12199
|
+
*/
|
|
12179
12200
|
spaceId?: string;
|
|
12180
12201
|
}, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
12181
12202
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -279,7 +279,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
279
279
|
|
|
280
280
|
// package.json
|
|
281
281
|
var name = "@gitbook/api";
|
|
282
|
-
var version = "0.
|
|
282
|
+
var version = "0.134.0";
|
|
283
283
|
|
|
284
284
|
// src/client.ts
|
|
285
285
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -3038,6 +3038,12 @@ var Api = class extends HttpClient {
|
|
|
3038
3038
|
secure: true,
|
|
3039
3039
|
...params
|
|
3040
3040
|
}),
|
|
3041
|
+
runTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
3042
|
+
path: `/orgs/${organizationId}/translations/${translationId}/run`,
|
|
3043
|
+
method: "POST",
|
|
3044
|
+
secure: true,
|
|
3045
|
+
...params
|
|
3046
|
+
}),
|
|
3041
3047
|
listGlossaryEntries: (organizationId, query, params = {}) => this.request({
|
|
3042
3048
|
path: `/orgs/${organizationId}/translations-glossary`,
|
|
3043
3049
|
method: "GET",
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.134.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -2931,6 +2931,12 @@ var Api = class extends HttpClient {
|
|
|
2931
2931
|
secure: true,
|
|
2932
2932
|
...params
|
|
2933
2933
|
}),
|
|
2934
|
+
runTranslation: (organizationId, translationId, params = {}) => this.request({
|
|
2935
|
+
path: `/orgs/${organizationId}/translations/${translationId}/run`,
|
|
2936
|
+
method: "POST",
|
|
2937
|
+
secure: true,
|
|
2938
|
+
...params
|
|
2939
|
+
}),
|
|
2934
2940
|
listGlossaryEntries: (organizationId, query, params = {}) => this.request({
|
|
2935
2941
|
path: `/orgs/${organizationId}/translations-glossary`,
|
|
2936
2942
|
method: "GET",
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -11184,6 +11184,37 @@
|
|
|
11184
11184
|
}
|
|
11185
11185
|
}
|
|
11186
11186
|
},
|
|
11187
|
+
"/orgs/{organizationId}/translations/{translationId}/run": {
|
|
11188
|
+
"post": {
|
|
11189
|
+
"operationId": "runTranslation",
|
|
11190
|
+
"summary": "Run a translation again",
|
|
11191
|
+
"tags": [
|
|
11192
|
+
"translations"
|
|
11193
|
+
],
|
|
11194
|
+
"security": [
|
|
11195
|
+
{
|
|
11196
|
+
"user": []
|
|
11197
|
+
}
|
|
11198
|
+
],
|
|
11199
|
+
"parameters": [
|
|
11200
|
+
{
|
|
11201
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11202
|
+
},
|
|
11203
|
+
{
|
|
11204
|
+
"$ref": "#/components/parameters/translationId"
|
|
11205
|
+
}
|
|
11206
|
+
],
|
|
11207
|
+
"responses": {
|
|
11208
|
+
"204": {
|
|
11209
|
+
"description": "Translation run triggered"
|
|
11210
|
+
},
|
|
11211
|
+
"404": {
|
|
11212
|
+
"description": "No matching translation found",
|
|
11213
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11214
|
+
}
|
|
11215
|
+
}
|
|
11216
|
+
}
|
|
11217
|
+
},
|
|
11187
11218
|
"/orgs/{organizationId}/translations-glossary": {
|
|
11188
11219
|
"get": {
|
|
11189
11220
|
"operationId": "listGlossaryEntries",
|
|
@@ -13921,10 +13952,19 @@
|
|
|
13921
13952
|
{
|
|
13922
13953
|
"$ref": "#/components/parameters/siteId"
|
|
13923
13954
|
},
|
|
13955
|
+
{
|
|
13956
|
+
"name": "siteSpaceId",
|
|
13957
|
+
"in": "query",
|
|
13958
|
+
"description": "The ID of the site space to filter the recommended questions for.",
|
|
13959
|
+
"schema": {
|
|
13960
|
+
"type": "string"
|
|
13961
|
+
}
|
|
13962
|
+
},
|
|
13924
13963
|
{
|
|
13925
13964
|
"name": "spaceId",
|
|
13926
13965
|
"in": "query",
|
|
13927
13966
|
"description": "The ID of the space to filter the recommended questions for.",
|
|
13967
|
+
"deprecated": true,
|
|
13928
13968
|
"schema": {
|
|
13929
13969
|
"type": "string"
|
|
13930
13970
|
}
|
package/spec/openapi.yaml
CHANGED
|
@@ -6344,6 +6344,23 @@ paths:
|
|
|
6344
6344
|
description: Translation did not exist
|
|
6345
6345
|
"205":
|
|
6346
6346
|
description: Translation has been deleted
|
|
6347
|
+
"/orgs/{organizationId}/translations/{translationId}/run":
|
|
6348
|
+
post:
|
|
6349
|
+
operationId: runTranslation
|
|
6350
|
+
summary: Run a translation again
|
|
6351
|
+
tags:
|
|
6352
|
+
- translations
|
|
6353
|
+
security:
|
|
6354
|
+
- user: []
|
|
6355
|
+
parameters:
|
|
6356
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6357
|
+
- $ref: "#/components/parameters/translationId"
|
|
6358
|
+
responses:
|
|
6359
|
+
"204":
|
|
6360
|
+
description: Translation run triggered
|
|
6361
|
+
"404":
|
|
6362
|
+
description: No matching translation found
|
|
6363
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6347
6364
|
"/orgs/{organizationId}/translations-glossary":
|
|
6348
6365
|
get:
|
|
6349
6366
|
operationId: listGlossaryEntries
|
|
@@ -7872,9 +7889,15 @@ paths:
|
|
|
7872
7889
|
parameters:
|
|
7873
7890
|
- $ref: "#/components/parameters/organizationId"
|
|
7874
7891
|
- $ref: "#/components/parameters/siteId"
|
|
7892
|
+
- name: siteSpaceId
|
|
7893
|
+
in: query
|
|
7894
|
+
description: The ID of the site space to filter the recommended questions for.
|
|
7895
|
+
schema:
|
|
7896
|
+
type: string
|
|
7875
7897
|
- name: spaceId
|
|
7876
7898
|
in: query
|
|
7877
7899
|
description: The ID of the space to filter the recommended questions for.
|
|
7900
|
+
deprecated: true
|
|
7878
7901
|
schema:
|
|
7879
7902
|
type: string
|
|
7880
7903
|
responses:
|