@wildix/wim-knowledge-base-client 0.0.7
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-cjs/KnowledgeBase.js +57 -0
- package/dist-cjs/KnowledgeBaseClient.js +41 -0
- package/dist-cjs/commands/CreateDataSourceCommand.js +21 -0
- package/dist-cjs/commands/CreateDocumentCommand.js +21 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/DeleteDataSourceCommand.js +21 -0
- package/dist-cjs/commands/DeleteDocumentCommand.js +21 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/GetAuthorizationSessionForDataSourceCommand.js +21 -0
- package/dist-cjs/commands/GetDataSourceCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentPresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentPresignedUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/GetSyncLogsCommand.js +21 -0
- package/dist-cjs/commands/GetSyncStatusCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourcesCommand.js +21 -0
- package/dist-cjs/commands/ListDocumentsCommand.js +21 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js +21 -0
- package/dist-cjs/commands/QueryKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/SearchKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/SyncDataSourceCommand.js +21 -0
- package/dist-cjs/commands/UpdateDataSourceCommand.js +21 -0
- package/dist-cjs/commands/UpdateDocumentCommand.js +21 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/KnowledgeBaseServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +132 -0
- package/dist-cjs/protocols/Aws_restJson1.js +936 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +37 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +11 -0
- package/dist-es/KnowledgeBase.js +53 -0
- package/dist-es/KnowledgeBaseClient.js +37 -0
- package/dist-es/commands/CreateDataSourceCommand.js +17 -0
- package/dist-es/commands/CreateDocumentCommand.js +17 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +17 -0
- package/dist-es/commands/DeleteDocumentCommand.js +17 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/GetAuthorizationSessionForDataSourceCommand.js +17 -0
- package/dist-es/commands/GetDataSourceCommand.js +17 -0
- package/dist-es/commands/GetDocumentCommand.js +17 -0
- package/dist-es/commands/GetDocumentPresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetDocumentPresignedUploadUrlCommand.js +17 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/GetSyncLogsCommand.js +17 -0
- package/dist-es/commands/GetSyncStatusCommand.js +17 -0
- package/dist-es/commands/ListDataSourcesCommand.js +17 -0
- package/dist-es/commands/ListDocumentsCommand.js +17 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +17 -0
- package/dist-es/commands/QueryKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/SearchKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/SyncDataSourceCommand.js +17 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +17 -0
- package/dist-es/commands/UpdateDocumentCommand.js +17 -0
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/KnowledgeBaseServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +123 -0
- package/dist-es/protocols/Aws_restJson1.js +887 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +32 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +7 -0
- package/dist-types/KnowledgeBase.d.ts +172 -0
- package/dist-types/KnowledgeBaseClient.d.ts +166 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +167 -0
- package/dist-types/commands/CreateDocumentCommand.d.ts +107 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +99 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +83 -0
- package/dist-types/commands/DeleteDocumentCommand.d.ts +84 -0
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +83 -0
- package/dist-types/commands/GetAuthorizationSessionForDataSourceCommand.d.ts +85 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +131 -0
- package/dist-types/commands/GetDocumentCommand.d.ts +102 -0
- package/dist-types/commands/GetDocumentPresignedDownloadUrlCommand.d.ts +87 -0
- package/dist-types/commands/GetDocumentPresignedUploadUrlCommand.d.ts +86 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +95 -0
- package/dist-types/commands/GetSyncLogsCommand.d.ts +91 -0
- package/dist-types/commands/GetSyncStatusCommand.d.ts +87 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +132 -0
- package/dist-types/commands/ListDocumentsCommand.d.ts +103 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +96 -0
- package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +98 -0
- package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +99 -0
- package/dist-types/commands/SyncDataSourceCommand.d.ts +84 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -0
- package/dist-types/commands/UpdateDocumentCommand.d.ts +108 -0
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/KnowledgeBaseServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +981 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
- package/dist-types/runtimeConfig.browser.d.ts +31 -0
- package/dist-types/runtimeConfig.d.ts +31 -0
- package/dist-types/runtimeConfig.native.d.ts +30 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +83 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
|
|
2
|
+
import { UpdateDataSourceInput, UpdateDataSourceOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateDataSourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateDataSourceCommandInput extends UpdateDataSourceInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateDataSourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateDataSourceCommandOutput extends UpdateDataSourceOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateDataSourceCommand_base: {
|
|
25
|
+
new (input: UpdateDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update a data source by its ID
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { KnowledgeBaseClient, UpdateDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
|
|
35
|
+
* // const { KnowledgeBaseClient, UpdateDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
|
|
36
|
+
* const client = new KnowledgeBaseClient(config);
|
|
37
|
+
* const input = { // UpdateDataSourceInput
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* type: "files" || "confluence" || "gdrive" || "proxy", // required
|
|
41
|
+
* config: { // DataSourceConfig Union: only one key present
|
|
42
|
+
* confluence: { // ConfluenceConfig
|
|
43
|
+
* url: "STRING_VALUE", // required
|
|
44
|
+
* username: "STRING_VALUE", // required
|
|
45
|
+
* apiKey: "STRING_VALUE", // required
|
|
46
|
+
* spaceId: "STRING_VALUE", // required
|
|
47
|
+
* pages: { // ConfluencePagesConfig
|
|
48
|
+
* enabled: [ // ConfluencePageIdsList // required
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* disabled: [ // required
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* gdrive: { // GDriveConfig
|
|
57
|
+
* nangoConnectionId: "STRING_VALUE", // required
|
|
58
|
+
* folders: { // GDriveFoldersConfig
|
|
59
|
+
* enabled: [ // GDriveFolderIds // required
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* disabled: [ // required
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* files: { // UserFilesConfig
|
|
68
|
+
* allowedExtensions: [ // StringList // required
|
|
69
|
+
* "STRING_VALUE",
|
|
70
|
+
* ],
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* enabled: true || false, // required
|
|
74
|
+
* syncSchedule: "STRING_VALUE",
|
|
75
|
+
* companyId: "STRING_VALUE",
|
|
76
|
+
* dataSourceId: "STRING_VALUE", // required
|
|
77
|
+
* };
|
|
78
|
+
* const command = new UpdateDataSourceCommand(input);
|
|
79
|
+
* const response = await client.send(command);
|
|
80
|
+
* // { // UpdateDataSourceOutput
|
|
81
|
+
* // dataSource: { // DataSourceItem
|
|
82
|
+
* // name: "STRING_VALUE", // required
|
|
83
|
+
* // description: "STRING_VALUE",
|
|
84
|
+
* // type: "files" || "confluence" || "gdrive" || "proxy", // required
|
|
85
|
+
* // config: { // DataSourceConfig Union: only one key present
|
|
86
|
+
* // confluence: { // ConfluenceConfig
|
|
87
|
+
* // url: "STRING_VALUE", // required
|
|
88
|
+
* // username: "STRING_VALUE", // required
|
|
89
|
+
* // apiKey: "STRING_VALUE", // required
|
|
90
|
+
* // spaceId: "STRING_VALUE", // required
|
|
91
|
+
* // pages: { // ConfluencePagesConfig
|
|
92
|
+
* // enabled: [ // ConfluencePageIdsList // required
|
|
93
|
+
* // "STRING_VALUE",
|
|
94
|
+
* // ],
|
|
95
|
+
* // disabled: [ // required
|
|
96
|
+
* // "STRING_VALUE",
|
|
97
|
+
* // ],
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // gdrive: { // GDriveConfig
|
|
101
|
+
* // nangoConnectionId: "STRING_VALUE", // required
|
|
102
|
+
* // folders: { // GDriveFoldersConfig
|
|
103
|
+
* // enabled: [ // GDriveFolderIds // required
|
|
104
|
+
* // "STRING_VALUE",
|
|
105
|
+
* // ],
|
|
106
|
+
* // disabled: [ // required
|
|
107
|
+
* // "STRING_VALUE",
|
|
108
|
+
* // ],
|
|
109
|
+
* // },
|
|
110
|
+
* // },
|
|
111
|
+
* // files: { // UserFilesConfig
|
|
112
|
+
* // allowedExtensions: [ // StringList // required
|
|
113
|
+
* // "STRING_VALUE",
|
|
114
|
+
* // ],
|
|
115
|
+
* // },
|
|
116
|
+
* // },
|
|
117
|
+
* // enabled: true || false, // required
|
|
118
|
+
* // syncSchedule: "STRING_VALUE",
|
|
119
|
+
* // id: "STRING_VALUE", // required
|
|
120
|
+
* // companyId: "STRING_VALUE", // required
|
|
121
|
+
* // createdAt: "STRING_VALUE", // required
|
|
122
|
+
* // updatedAt: "STRING_VALUE", // required
|
|
123
|
+
* // syncStatus: "idle" || "running" || "success" || "failed", // required
|
|
124
|
+
* // lastSyncedAt: "STRING_VALUE",
|
|
125
|
+
* // lastSyncMode: "full" || "incremental" || "unknown",
|
|
126
|
+
* // lastSyncErrorMessage: "STRING_VALUE",
|
|
127
|
+
* // },
|
|
128
|
+
* // };
|
|
129
|
+
*
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* @param UpdateDataSourceCommandInput - {@link UpdateDataSourceCommandInput}
|
|
133
|
+
* @returns {@link UpdateDataSourceCommandOutput}
|
|
134
|
+
* @see {@link UpdateDataSourceCommandInput} for command's `input` shape.
|
|
135
|
+
* @see {@link UpdateDataSourceCommandOutput} for command's `response` shape.
|
|
136
|
+
* @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link DataSourceNotFoundException} (client fault)
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ValidationException} (client fault)
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link KnowledgeBaseNotFoundException} (client fault)
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link DocumentNotFoundException} (client fault)
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link KnowledgeBaseServiceException}
|
|
151
|
+
* <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
|
|
152
|
+
*
|
|
153
|
+
*
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export declare class UpdateDataSourceCommand extends UpdateDataSourceCommand_base {
|
|
157
|
+
/** @internal type navigation helper, not in runtime. */
|
|
158
|
+
protected static __types: {
|
|
159
|
+
api: {
|
|
160
|
+
input: UpdateDataSourceInput;
|
|
161
|
+
output: UpdateDataSourceOutput;
|
|
162
|
+
};
|
|
163
|
+
sdk: {
|
|
164
|
+
input: UpdateDataSourceCommandInput;
|
|
165
|
+
output: UpdateDataSourceCommandOutput;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
|
|
2
|
+
import { UpdateDocumentInput, UpdateDocumentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateDocumentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateDocumentCommandInput extends UpdateDocumentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateDocumentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateDocumentCommandOutput extends UpdateDocumentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateDocumentCommand_base: {
|
|
25
|
+
new (input: UpdateDocumentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDocumentCommandInput, UpdateDocumentCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateDocumentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDocumentCommandInput, UpdateDocumentCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update a document by its ID
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { KnowledgeBaseClient, UpdateDocumentCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
|
|
35
|
+
* // const { KnowledgeBaseClient, UpdateDocumentCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
|
|
36
|
+
* const client = new KnowledgeBaseClient(config);
|
|
37
|
+
* const input = { // UpdateDocumentInput
|
|
38
|
+
* title: "STRING_VALUE", // required
|
|
39
|
+
* url: "STRING_VALUE",
|
|
40
|
+
* content: "STRING_VALUE",
|
|
41
|
+
* originalFormat: "STRING_VALUE", // required
|
|
42
|
+
* originalName: "STRING_VALUE", // required
|
|
43
|
+
* originalId: "STRING_VALUE",
|
|
44
|
+
* companyId: "STRING_VALUE",
|
|
45
|
+
* dataSourceId: "STRING_VALUE", // required
|
|
46
|
+
* documentId: "STRING_VALUE", // required
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateDocumentCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // UpdateDocumentOutput
|
|
51
|
+
* // document: { // DocumentItem
|
|
52
|
+
* // title: "STRING_VALUE", // required
|
|
53
|
+
* // url: "STRING_VALUE",
|
|
54
|
+
* // content: "STRING_VALUE",
|
|
55
|
+
* // originalFormat: "STRING_VALUE", // required
|
|
56
|
+
* // originalName: "STRING_VALUE", // required
|
|
57
|
+
* // originalId: "STRING_VALUE",
|
|
58
|
+
* // id: "STRING_VALUE", // required
|
|
59
|
+
* // companyId: "STRING_VALUE", // required
|
|
60
|
+
* // dataSourceId: "STRING_VALUE", // required
|
|
61
|
+
* // s3OriginalKey: "STRING_VALUE",
|
|
62
|
+
* // s3MarkdownKey: "STRING_VALUE",
|
|
63
|
+
* // createdAt: "STRING_VALUE", // required
|
|
64
|
+
* // updatedAt: "STRING_VALUE", // required
|
|
65
|
+
* // status: "pending" || "processing" || "completed" || "failed", // required
|
|
66
|
+
* // errorMessage: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param UpdateDocumentCommandInput - {@link UpdateDocumentCommandInput}
|
|
73
|
+
* @returns {@link UpdateDocumentCommandOutput}
|
|
74
|
+
* @see {@link UpdateDocumentCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link UpdateDocumentCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link DocumentNotFoundException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link KnowledgeBaseNotFoundException} (client fault)
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link DataSourceNotFoundException} (client fault)
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link KnowledgeBaseServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class UpdateDocumentCommand extends UpdateDocumentCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: UpdateDocumentInput;
|
|
101
|
+
output: UpdateDocumentOutput;
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: UpdateDocumentCommandInput;
|
|
105
|
+
output: UpdateDocumentCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
|
|
2
|
+
import { UpdateKnowledgeBaseInput, UpdateKnowledgeBaseOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateKnowledgeBaseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateKnowledgeBaseCommandInput extends UpdateKnowledgeBaseInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateKnowledgeBaseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateKnowledgeBaseCommand_base: {
|
|
25
|
+
new (input: UpdateKnowledgeBaseCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateKnowledgeBaseCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update a knowledge base by its ID
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { KnowledgeBaseClient, UpdateKnowledgeBaseCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
|
|
35
|
+
* // const { KnowledgeBaseClient, UpdateKnowledgeBaseCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
|
|
36
|
+
* const client = new KnowledgeBaseClient(config);
|
|
37
|
+
* const input = { // UpdateKnowledgeBaseInput
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* dataSources: [ // DataSourceIdsList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* companyId: "STRING_VALUE",
|
|
44
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new UpdateKnowledgeBaseCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // UpdateKnowledgeBaseOutput
|
|
49
|
+
* // knowledgeBase: { // KnowledgeBaseItem
|
|
50
|
+
* // name: "STRING_VALUE", // required
|
|
51
|
+
* // description: "STRING_VALUE",
|
|
52
|
+
* // dataSources: [ // DataSourceIdsList // required
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // id: "STRING_VALUE", // required
|
|
56
|
+
* // companyId: "STRING_VALUE", // required
|
|
57
|
+
* // createdAt: "STRING_VALUE", // required
|
|
58
|
+
* // updatedAt: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param UpdateKnowledgeBaseCommandInput - {@link UpdateKnowledgeBaseCommandInput}
|
|
65
|
+
* @returns {@link UpdateKnowledgeBaseCommandOutput}
|
|
66
|
+
* @see {@link UpdateKnowledgeBaseCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link UpdateKnowledgeBaseCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link KnowledgeBaseNotFoundException} (client fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link DataSourceNotFoundException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link DocumentNotFoundException} (client fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link KnowledgeBaseServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class UpdateKnowledgeBaseCommand extends UpdateKnowledgeBaseCommand_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: UpdateKnowledgeBaseInput;
|
|
93
|
+
output: UpdateKnowledgeBaseOutput;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: UpdateKnowledgeBaseCommandInput;
|
|
97
|
+
output: UpdateKnowledgeBaseCommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./CreateDataSourceCommand";
|
|
2
|
+
export * from "./CreateDocumentCommand";
|
|
3
|
+
export * from "./CreateKnowledgeBaseCommand";
|
|
4
|
+
export * from "./DeleteDataSourceCommand";
|
|
5
|
+
export * from "./DeleteDocumentCommand";
|
|
6
|
+
export * from "./DeleteKnowledgeBaseCommand";
|
|
7
|
+
export * from "./GetAuthorizationSessionForDataSourceCommand";
|
|
8
|
+
export * from "./GetDataSourceCommand";
|
|
9
|
+
export * from "./GetDocumentCommand";
|
|
10
|
+
export * from "./GetDocumentPresignedDownloadUrlCommand";
|
|
11
|
+
export * from "./GetDocumentPresignedUploadUrlCommand";
|
|
12
|
+
export * from "./GetKnowledgeBaseCommand";
|
|
13
|
+
export * from "./GetSyncLogsCommand";
|
|
14
|
+
export * from "./GetSyncStatusCommand";
|
|
15
|
+
export * from "./ListDataSourcesCommand";
|
|
16
|
+
export * from "./ListDocumentsCommand";
|
|
17
|
+
export * from "./ListKnowledgeBasesCommand";
|
|
18
|
+
export * from "./QueryKnowledgeBaseCommand";
|
|
19
|
+
export * from "./SearchKnowledgeBaseCommand";
|
|
20
|
+
export * from "./SyncDataSourceCommand";
|
|
21
|
+
export * from "./UpdateDataSourceCommand";
|
|
22
|
+
export * from "./UpdateDocumentCommand";
|
|
23
|
+
export * from "./UpdateKnowledgeBaseCommand";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface KnowledgeBaseExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./KnowledgeBaseClient";
|
|
2
|
+
export * from "./KnowledgeBase";
|
|
3
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
+
export type { KnowledgeBaseExtensionConfiguration } from "./extensionConfiguration";
|
|
5
|
+
export * from "./commands";
|
|
6
|
+
export * from "./models";
|
|
7
|
+
export { KnowledgeBaseServiceException } from "./models/KnowledgeBaseServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from KnowledgeBase service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class KnowledgeBaseServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|