@corti/dictation-web 0.1.21-rc → 0.1.21-rc.2
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/bundle.js +38 -20
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -4218,9 +4218,6 @@ var DocumentsUpdateRequest = schemas_exports.object({
|
|
|
4218
4218
|
sections: schemas_exports.list(DocumentsSectionInput).optional()
|
|
4219
4219
|
});
|
|
4220
4220
|
|
|
4221
|
-
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsContextTypeEnum.mjs
|
|
4222
|
-
var DocumentsContextTypeEnum = schemas_exports.enum_(["facts", "transcript", "string"]);
|
|
4223
|
-
|
|
4224
4221
|
// node_modules/@corti/sdk/dist/esm/serialization/types/FactsContext.mjs
|
|
4225
4222
|
var FactsContext = schemas_exports.object({
|
|
4226
4223
|
text: schemas_exports.string(),
|
|
@@ -4228,6 +4225,11 @@ var FactsContext = schemas_exports.object({
|
|
|
4228
4225
|
source: CommonSourceEnum
|
|
4229
4226
|
});
|
|
4230
4227
|
|
|
4228
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsContextWithFacts.mjs
|
|
4229
|
+
var DocumentsContextWithFacts = schemas_exports.object({
|
|
4230
|
+
data: schemas_exports.list(FactsContext)
|
|
4231
|
+
});
|
|
4232
|
+
|
|
4231
4233
|
// node_modules/@corti/sdk/dist/esm/serialization/types/CommonTranscript.mjs
|
|
4232
4234
|
var CommonTranscript = schemas_exports.object({
|
|
4233
4235
|
channel: schemas_exports.number(),
|
|
@@ -4238,17 +4240,24 @@ var CommonTranscript = schemas_exports.object({
|
|
|
4238
4240
|
end: schemas_exports.number()
|
|
4239
4241
|
});
|
|
4240
4242
|
|
|
4241
|
-
// node_modules/@corti/sdk/dist/esm/serialization/types/
|
|
4242
|
-
var
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4243
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsContextWithTranscript.mjs
|
|
4244
|
+
var DocumentsContextWithTranscript = schemas_exports.object({
|
|
4245
|
+
data: CommonTranscript
|
|
4246
|
+
});
|
|
4247
|
+
|
|
4248
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsContextWithString.mjs
|
|
4249
|
+
var DocumentsContextWithString = schemas_exports.object({
|
|
4250
|
+
data: schemas_exports.string()
|
|
4251
|
+
});
|
|
4247
4252
|
|
|
4248
4253
|
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsContext.mjs
|
|
4249
|
-
var DocumentsContext = schemas_exports.
|
|
4250
|
-
|
|
4251
|
-
|
|
4254
|
+
var DocumentsContext = schemas_exports.union("type", {
|
|
4255
|
+
facts: DocumentsContextWithFacts,
|
|
4256
|
+
transcript: DocumentsContextWithTranscript,
|
|
4257
|
+
string: DocumentsContextWithString
|
|
4258
|
+
}).transform({
|
|
4259
|
+
transform: (value) => value,
|
|
4260
|
+
untransform: (value) => value
|
|
4252
4261
|
});
|
|
4253
4262
|
|
|
4254
4263
|
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsSection.mjs
|
|
@@ -4261,14 +4270,23 @@ var DocumentsSection = schemas_exports.object({
|
|
|
4261
4270
|
updatedAt: schemas_exports.date()
|
|
4262
4271
|
});
|
|
4263
4272
|
|
|
4264
|
-
// node_modules/@corti/sdk/dist/esm/serialization/types/
|
|
4265
|
-
var
|
|
4266
|
-
|
|
4267
|
-
sectionKeys: schemas_exports.list(schemas_exports.string()).optional(),
|
|
4273
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.mjs
|
|
4274
|
+
var DocumentsTemplateWithSectionKeys = schemas_exports.object({
|
|
4275
|
+
sectionKeys: schemas_exports.list(schemas_exports.string()),
|
|
4268
4276
|
documentName: schemas_exports.string().optional(),
|
|
4269
4277
|
additionalInstructions: schemas_exports.string().optional()
|
|
4270
4278
|
});
|
|
4271
4279
|
|
|
4280
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsTemplateWithSectionIds.mjs
|
|
4281
|
+
var DocumentsTemplateWithSectionIds = schemas_exports.object({
|
|
4282
|
+
sectionIds: schemas_exports.list(Uuid),
|
|
4283
|
+
documentName: schemas_exports.string().optional(),
|
|
4284
|
+
additionalInstructions: schemas_exports.string().optional()
|
|
4285
|
+
});
|
|
4286
|
+
|
|
4287
|
+
// node_modules/@corti/sdk/dist/esm/serialization/types/DocumentsTemplate.mjs
|
|
4288
|
+
var DocumentsTemplate = schemas_exports.undiscriminatedUnion([DocumentsTemplateWithSectionKeys, DocumentsTemplateWithSectionIds]);
|
|
4289
|
+
|
|
4272
4290
|
// node_modules/@corti/sdk/dist/esm/serialization/types/InteractionsEncounterResponse.mjs
|
|
4273
4291
|
var InteractionsEncounterResponse = schemas_exports.object({
|
|
4274
4292
|
identifier: schemas_exports.string(),
|
|
@@ -8297,7 +8315,7 @@ var RefreshBearerProvider = class {
|
|
|
8297
8315
|
this.BUFFER_IN_MINUTES = 2;
|
|
8298
8316
|
this._expiresAt = this.getExpiresAt(expiresIn, this.BUFFER_IN_MINUTES);
|
|
8299
8317
|
this._refreshExpiresAt = this.getExpiresAt(refreshExpiresIn, 0);
|
|
8300
|
-
this._accessToken = accessToken;
|
|
8318
|
+
this._accessToken = accessToken || "no_token";
|
|
8301
8319
|
this._refreshToken = refreshToken;
|
|
8302
8320
|
this._refreshAccessToken = refreshAccessToken;
|
|
8303
8321
|
}
|
|
@@ -8329,7 +8347,7 @@ var RefreshBearerProvider = class {
|
|
|
8329
8347
|
};
|
|
8330
8348
|
|
|
8331
8349
|
// node_modules/@corti/sdk/dist/esm/version.mjs
|
|
8332
|
-
var SDK_VERSION = "0.1.
|
|
8350
|
+
var SDK_VERSION = "0.1.1";
|
|
8333
8351
|
|
|
8334
8352
|
// node_modules/@corti/sdk/dist/esm/custom/CortiClient.mjs
|
|
8335
8353
|
var __awaiter28 = function(thisArg, _arguments, P2, generator) {
|
|
@@ -8373,14 +8391,14 @@ var CortiClient = class {
|
|
|
8373
8391
|
"X-Fern-Runtime": RUNTIME.type,
|
|
8374
8392
|
"X-Fern-Runtime-Version": RUNTIME.version
|
|
8375
8393
|
}, _options === null || _options === void 0 ? void 0 : _options.headers), clientId: "clientId" in _options.auth ? _options.auth.clientId : void 0, clientSecret: "clientSecret" in _options.auth ? _options.auth.clientSecret : void 0, token: "accessToken" in _options.auth ? _options.auth.accessToken : void 0, environment: getEnvironment(_options.environment) });
|
|
8376
|
-
this._oauthTokenProvider = "
|
|
8394
|
+
this._oauthTokenProvider = "clientId" in _options.auth ? new OAuthTokenProvider({
|
|
8377
8395
|
clientId: _options.auth.clientId,
|
|
8378
8396
|
clientSecret: _options.auth.clientSecret,
|
|
8379
8397
|
/**
|
|
8380
8398
|
* Patch: provide whole `options` object to the Auth client, since it depends on both tenantName and environment
|
|
8381
8399
|
*/
|
|
8382
8400
|
authClient: new Auth2(this._options)
|
|
8383
|
-
});
|
|
8401
|
+
}) : new RefreshBearerProvider(_options.auth);
|
|
8384
8402
|
}
|
|
8385
8403
|
get interactions() {
|
|
8386
8404
|
var _a;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@corti/dictation-web",
|
|
3
3
|
"description": "Web component for Corti Dictation",
|
|
4
4
|
"author": "Corti ApS",
|
|
5
|
-
"version": "0.1.21-rc",
|
|
5
|
+
"version": "0.1.21-rc.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@corti/sdk": "^0.1.
|
|
54
|
+
"@corti/sdk": "^0.1.21-rc.2",
|
|
55
55
|
"lit": "^3.1.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|