@droz-js/sdk 0.7.7 → 0.8.1
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/package.json +1 -1
- package/src/client/http.js +1 -1
- package/src/drozbase-ws.d.ts +856 -0
- package/src/drozbase-ws.js +23 -0
- package/src/drozbase.d.ts +859 -0
- package/src/drozbase.js +23 -0
- package/src/sdks/ai.d.ts +3 -6
- package/src/sdks/drozbase.d.ts +5689 -0
- package/src/sdks/drozbase.js +4962 -0
- package/src/sdks/drozchat.d.ts +18 -17
- package/src/sdks/drozchat.js +1 -0
- package/src/sdks/droznexo.d.ts +3 -3
- package/src/sdks/nucleus.d.ts +33 -26
- package/src/sdks/nucleus.js +4 -0
package/src/drozbase.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.DrozBase = void 0;
|
|
18
|
+
const http_1 = require("./client/http");
|
|
19
|
+
const drozbase_1 = require("./sdks/drozbase");
|
|
20
|
+
__exportStar(require("./sdks/drozbase"), exports);
|
|
21
|
+
class DrozBase extends (0, http_1.HttpClientBuilder)(drozbase_1.serviceName, drozbase_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozBase = DrozBase;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -143,10 +143,9 @@ export type CreateNlpInstanceInput = {
|
|
|
143
143
|
options: Array<NlpOptionInput>;
|
|
144
144
|
};
|
|
145
145
|
export type CreateQnAInstanceInput = {
|
|
146
|
+
credentialsId: Scalars['ID']['input'];
|
|
146
147
|
name: Scalars['String']['input'];
|
|
147
148
|
prompt: Scalars['String']['input'];
|
|
148
|
-
retrieverCredentialsId: Scalars['ID']['input'];
|
|
149
|
-
retrieverTenantId: Scalars['String']['input'];
|
|
150
149
|
};
|
|
151
150
|
export type I18nText = {
|
|
152
151
|
lang: Scalars['Locale']['output'];
|
|
@@ -223,12 +222,11 @@ export type PageInfo = {
|
|
|
223
222
|
};
|
|
224
223
|
export type QnAInstance = {
|
|
225
224
|
createdAt: Scalars['DateTime']['output'];
|
|
225
|
+
credentialsId: Scalars['ID']['output'];
|
|
226
226
|
drn: Scalars['DRN']['output'];
|
|
227
227
|
id: Scalars['ID']['output'];
|
|
228
228
|
name: Scalars['String']['output'];
|
|
229
229
|
prompt: Scalars['String']['output'];
|
|
230
|
-
retrieverCredentialsId: Scalars['ID']['output'];
|
|
231
|
-
retrieverTenantId: Scalars['String']['output'];
|
|
232
230
|
updatedAt: Scalars['DateTime']['output'];
|
|
233
231
|
};
|
|
234
232
|
export type Query = {
|
|
@@ -339,11 +337,10 @@ export type UpdateNlpInstanceInput = {
|
|
|
339
337
|
options: Array<NlpOptionInput>;
|
|
340
338
|
};
|
|
341
339
|
export type UpdateQnAInstanceInput = {
|
|
340
|
+
credentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
342
341
|
id: Scalars['ID']['input'];
|
|
343
342
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
344
343
|
prompt?: InputMaybe<Scalars['String']['input']>;
|
|
345
|
-
retrieverCredentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
346
|
-
retrieverTenantId?: InputMaybe<Scalars['String']['input']>;
|
|
347
344
|
};
|
|
348
345
|
export type NlpInstanceFragment = (Pick<NlpInstance, 'id' | 'name' | 'drn' | 'createdAt' | 'updatedAt'> & {
|
|
349
346
|
options: Array<Pick<NlpOption, 'transition' | 'samples'>>;
|