@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.
Files changed (112) hide show
  1. package/dist-cjs/KnowledgeBase.js +57 -0
  2. package/dist-cjs/KnowledgeBaseClient.js +41 -0
  3. package/dist-cjs/commands/CreateDataSourceCommand.js +21 -0
  4. package/dist-cjs/commands/CreateDocumentCommand.js +21 -0
  5. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +21 -0
  6. package/dist-cjs/commands/DeleteDataSourceCommand.js +21 -0
  7. package/dist-cjs/commands/DeleteDocumentCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +21 -0
  9. package/dist-cjs/commands/GetAuthorizationSessionForDataSourceCommand.js +21 -0
  10. package/dist-cjs/commands/GetDataSourceCommand.js +21 -0
  11. package/dist-cjs/commands/GetDocumentCommand.js +21 -0
  12. package/dist-cjs/commands/GetDocumentPresignedDownloadUrlCommand.js +21 -0
  13. package/dist-cjs/commands/GetDocumentPresignedUploadUrlCommand.js +21 -0
  14. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +21 -0
  15. package/dist-cjs/commands/GetSyncLogsCommand.js +21 -0
  16. package/dist-cjs/commands/GetSyncStatusCommand.js +21 -0
  17. package/dist-cjs/commands/ListDataSourcesCommand.js +21 -0
  18. package/dist-cjs/commands/ListDocumentsCommand.js +21 -0
  19. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +21 -0
  20. package/dist-cjs/commands/QueryKnowledgeBaseCommand.js +21 -0
  21. package/dist-cjs/commands/SearchKnowledgeBaseCommand.js +21 -0
  22. package/dist-cjs/commands/SyncDataSourceCommand.js +21 -0
  23. package/dist-cjs/commands/UpdateDataSourceCommand.js +21 -0
  24. package/dist-cjs/commands/UpdateDocumentCommand.js +21 -0
  25. package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +21 -0
  26. package/dist-cjs/commands/index.js +26 -0
  27. package/dist-cjs/extensionConfiguration.js +2 -0
  28. package/dist-cjs/index.js +10 -0
  29. package/dist-cjs/models/KnowledgeBaseServiceException.js +12 -0
  30. package/dist-cjs/models/index.js +4 -0
  31. package/dist-cjs/models/models_0.js +132 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +936 -0
  33. package/dist-cjs/runtimeConfig.browser.js +32 -0
  34. package/dist-cjs/runtimeConfig.js +37 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +21 -0
  37. package/dist-cjs/runtimeExtensions.js +11 -0
  38. package/dist-es/KnowledgeBase.js +53 -0
  39. package/dist-es/KnowledgeBaseClient.js +37 -0
  40. package/dist-es/commands/CreateDataSourceCommand.js +17 -0
  41. package/dist-es/commands/CreateDocumentCommand.js +17 -0
  42. package/dist-es/commands/CreateKnowledgeBaseCommand.js +17 -0
  43. package/dist-es/commands/DeleteDataSourceCommand.js +17 -0
  44. package/dist-es/commands/DeleteDocumentCommand.js +17 -0
  45. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +17 -0
  46. package/dist-es/commands/GetAuthorizationSessionForDataSourceCommand.js +17 -0
  47. package/dist-es/commands/GetDataSourceCommand.js +17 -0
  48. package/dist-es/commands/GetDocumentCommand.js +17 -0
  49. package/dist-es/commands/GetDocumentPresignedDownloadUrlCommand.js +17 -0
  50. package/dist-es/commands/GetDocumentPresignedUploadUrlCommand.js +17 -0
  51. package/dist-es/commands/GetKnowledgeBaseCommand.js +17 -0
  52. package/dist-es/commands/GetSyncLogsCommand.js +17 -0
  53. package/dist-es/commands/GetSyncStatusCommand.js +17 -0
  54. package/dist-es/commands/ListDataSourcesCommand.js +17 -0
  55. package/dist-es/commands/ListDocumentsCommand.js +17 -0
  56. package/dist-es/commands/ListKnowledgeBasesCommand.js +17 -0
  57. package/dist-es/commands/QueryKnowledgeBaseCommand.js +17 -0
  58. package/dist-es/commands/SearchKnowledgeBaseCommand.js +17 -0
  59. package/dist-es/commands/SyncDataSourceCommand.js +17 -0
  60. package/dist-es/commands/UpdateDataSourceCommand.js +17 -0
  61. package/dist-es/commands/UpdateDocumentCommand.js +17 -0
  62. package/dist-es/commands/UpdateKnowledgeBaseCommand.js +17 -0
  63. package/dist-es/commands/index.js +23 -0
  64. package/dist-es/extensionConfiguration.js +1 -0
  65. package/dist-es/index.js +5 -0
  66. package/dist-es/models/KnowledgeBaseServiceException.js +8 -0
  67. package/dist-es/models/index.js +1 -0
  68. package/dist-es/models/models_0.js +123 -0
  69. package/dist-es/protocols/Aws_restJson1.js +887 -0
  70. package/dist-es/runtimeConfig.browser.js +27 -0
  71. package/dist-es/runtimeConfig.js +32 -0
  72. package/dist-es/runtimeConfig.native.js +11 -0
  73. package/dist-es/runtimeConfig.shared.js +17 -0
  74. package/dist-es/runtimeExtensions.js +7 -0
  75. package/dist-types/KnowledgeBase.d.ts +172 -0
  76. package/dist-types/KnowledgeBaseClient.d.ts +166 -0
  77. package/dist-types/commands/CreateDataSourceCommand.d.ts +167 -0
  78. package/dist-types/commands/CreateDocumentCommand.d.ts +107 -0
  79. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +99 -0
  80. package/dist-types/commands/DeleteDataSourceCommand.d.ts +83 -0
  81. package/dist-types/commands/DeleteDocumentCommand.d.ts +84 -0
  82. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +83 -0
  83. package/dist-types/commands/GetAuthorizationSessionForDataSourceCommand.d.ts +85 -0
  84. package/dist-types/commands/GetDataSourceCommand.d.ts +131 -0
  85. package/dist-types/commands/GetDocumentCommand.d.ts +102 -0
  86. package/dist-types/commands/GetDocumentPresignedDownloadUrlCommand.d.ts +87 -0
  87. package/dist-types/commands/GetDocumentPresignedUploadUrlCommand.d.ts +86 -0
  88. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +95 -0
  89. package/dist-types/commands/GetSyncLogsCommand.d.ts +91 -0
  90. package/dist-types/commands/GetSyncStatusCommand.d.ts +87 -0
  91. package/dist-types/commands/ListDataSourcesCommand.d.ts +132 -0
  92. package/dist-types/commands/ListDocumentsCommand.d.ts +103 -0
  93. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +96 -0
  94. package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +98 -0
  95. package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +99 -0
  96. package/dist-types/commands/SyncDataSourceCommand.d.ts +84 -0
  97. package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -0
  98. package/dist-types/commands/UpdateDocumentCommand.d.ts +108 -0
  99. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +100 -0
  100. package/dist-types/commands/index.d.ts +23 -0
  101. package/dist-types/extensionConfiguration.d.ts +7 -0
  102. package/dist-types/index.d.ts +7 -0
  103. package/dist-types/models/KnowledgeBaseServiceException.d.ts +14 -0
  104. package/dist-types/models/index.d.ts +1 -0
  105. package/dist-types/models/models_0.d.ts +981 -0
  106. package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
  107. package/dist-types/runtimeConfig.browser.d.ts +31 -0
  108. package/dist-types/runtimeConfig.d.ts +31 -0
  109. package/dist-types/runtimeConfig.native.d.ts +30 -0
  110. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  111. package/dist-types/runtimeExtensions.d.ts +17 -0
  112. package/package.json +83 -0
@@ -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 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./KnowledgeBaseClient";
2
+ export * from "./KnowledgeBase";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { KnowledgeBaseServiceException } from "./models/KnowledgeBaseServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class KnowledgeBaseServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, KnowledgeBaseServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,123 @@
1
+ import { KnowledgeBaseServiceException as __BaseException } from "./KnowledgeBaseServiceException";
2
+ export class ValidationException extends __BaseException {
3
+ name = "ValidationException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ValidationException",
8
+ $fault: "client",
9
+ ...opts
10
+ });
11
+ Object.setPrototypeOf(this, ValidationException.prototype);
12
+ }
13
+ }
14
+ export class ForbiddenException extends __BaseException {
15
+ name = "ForbiddenException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ForbiddenException",
20
+ $fault: "client",
21
+ ...opts
22
+ });
23
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
+ }
25
+ }
26
+ export class UnauthorizedException extends __BaseException {
27
+ name = "UnauthorizedException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "UnauthorizedException",
32
+ $fault: "client",
33
+ ...opts
34
+ });
35
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
36
+ }
37
+ }
38
+ export var DataSourceConfig;
39
+ (function (DataSourceConfig) {
40
+ DataSourceConfig.visit = (value, visitor) => {
41
+ if (value.confluence !== undefined)
42
+ return visitor.confluence(value.confluence);
43
+ if (value.gdrive !== undefined)
44
+ return visitor.gdrive(value.gdrive);
45
+ if (value.files !== undefined)
46
+ return visitor.files(value.files);
47
+ return visitor._(value.$unknown[0], value.$unknown[1]);
48
+ };
49
+ })(DataSourceConfig || (DataSourceConfig = {}));
50
+ export const DataSourceType = {
51
+ CONFLUENCE: "confluence",
52
+ FILES: "files",
53
+ GDRIVE: "gdrive",
54
+ PROXY: "proxy",
55
+ };
56
+ export const SyncDataSourceMode = {
57
+ FULL: "full",
58
+ INCREMENTAL: "incremental",
59
+ UNKNOWN: "unknown",
60
+ };
61
+ export const SyncDataSourceStatus = {
62
+ FAILED: "failed",
63
+ IDLE: "idle",
64
+ RUNNING: "running",
65
+ SUCCESS: "success",
66
+ };
67
+ export class DataSourceNotFoundException extends __BaseException {
68
+ name = "DataSourceNotFoundException";
69
+ $fault = "client";
70
+ constructor(opts) {
71
+ super({
72
+ name: "DataSourceNotFoundException",
73
+ $fault: "client",
74
+ ...opts
75
+ });
76
+ Object.setPrototypeOf(this, DataSourceNotFoundException.prototype);
77
+ }
78
+ }
79
+ export class DocumentNotFoundException extends __BaseException {
80
+ name = "DocumentNotFoundException";
81
+ $fault = "client";
82
+ constructor(opts) {
83
+ super({
84
+ name: "DocumentNotFoundException",
85
+ $fault: "client",
86
+ ...opts
87
+ });
88
+ Object.setPrototypeOf(this, DocumentNotFoundException.prototype);
89
+ }
90
+ }
91
+ export class KnowledgeBaseNotFoundException extends __BaseException {
92
+ name = "KnowledgeBaseNotFoundException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "KnowledgeBaseNotFoundException",
97
+ $fault: "client",
98
+ ...opts
99
+ });
100
+ Object.setPrototypeOf(this, KnowledgeBaseNotFoundException.prototype);
101
+ }
102
+ }
103
+ export const DocumentStatus = {
104
+ COMPLETED: "completed",
105
+ FAILED: "failed",
106
+ PENDING: "pending",
107
+ PROCESSING: "processing",
108
+ };
109
+ export const DownloadDocumentType = {
110
+ MARKDOWN: "markdown",
111
+ ORIGINAL: "original",
112
+ };
113
+ export const SyncLogLevel = {
114
+ DEBUG: "debug",
115
+ ERROR: "error",
116
+ INFO: "info",
117
+ WARN: "warn",
118
+ };
119
+ export const SearchStrategy = {
120
+ BM25: "bm25",
121
+ HYBRID: "hybrid",
122
+ VECTOR: "vector",
123
+ };