Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@memori.ai/memori-api-client

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memori.ai/memori-api-client - npm Package Compare versions

Comparing version 0.11.0 to 1.0.0

7

CHANGELOG.md
## [1.0.0](https://github.com/memori-ai/memori-api-client/compare/v0.11.0...v1.0.0) (2023-02-01)
### Maintenance
* remove legacy experimental code ([69fc7c6](https://github.com/memori-ai/memori-api-client/commit/69fc7c6c56e1e55d77e95821a40d39d522b20abd))
## [0.11.0](https://github.com/memori-ai/memori-api-client/compare/v0.10.3...v0.11.0) (2023-02-01)

@@ -4,0 +11,0 @@

@@ -20,2 +20,5 @@ declare const backendAPI: (apiUrl: string) => {

}>;
getMemoriInvitations: (authToken: string, memoriId: string) => Promise<import("./types").ResponseSpec & {
invitations: import("./types").Invitation[];
}>;
getReceivedInvitations: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -101,2 +104,5 @@ invitations: import("./types").Invitation[];

}>;
getTenantMetaverseMemoriList: (tenant: string) => Promise<import("./types").ResponseSpec & {
memori: import("./types").Memori[];
}>;
getPublicMemoriList: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -146,2 +152,3 @@ memori: import("./types").Memori[];

}) => Promise<import("./types").ResponseSpec>;
memoriContentUpdated: (authToken: string, memoriID: string) => Promise<import("./types").ResponseSpec>;
getUploadAssetURL: (authToken: string, memoriID: string, memoryID?: string | undefined) => string;

@@ -171,2 +178,5 @@ uploadAsset: (fileName: string, fileUrl: string, authToken: string, memoriID: string, memoryID?: string | undefined) => Promise<import("./types").ResponseSpec & {

}>;
getTenantMetaverseMemoriList: (tenant: string) => Promise<import("./types").ResponseSpec & {
memori: import("./types").Memori[];
}>;
getPublicMemoriList: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -216,2 +226,3 @@ memori: import("./types").Memori[];

}) => Promise<import("./types").ResponseSpec>;
memoriContentUpdated: (authToken: string, memoriID: string) => Promise<import("./types").ResponseSpec>;
};

@@ -279,2 +290,5 @@ user: {

}>;
getMemoriInvitations: (authToken: string, memoriId: string) => Promise<import("./types").ResponseSpec & {
invitations: import("./types").Invitation[];
}>;
getReceivedInvitations: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -281,0 +295,0 @@ invitations: import("./types").Invitation[];

58

dist/engine.d.ts

@@ -5,2 +5,5 @@ declare const _default: (apiUrl: string) => {

}>;
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
chatLogs: import("./types").ChatLog[];
}>;
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;

@@ -12,2 +15,5 @@ deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;

}>;
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
chatLogs: import("./types").ChatLog[];
}>;
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;

@@ -69,2 +75,9 @@ deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;

}>;
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<import("./types").ResponseSpec & {
count: number;
unansweredQuestions: import("./types").UnansweredQuestion[];
}>;
postUnansweredQuestion: (sessionId: string, unansweredQuestion: import("./types").UnansweredQuestion) => Promise<import("./types").ResponseSpec & {
unansweredQuestion: import("./types").UnansweredQuestion;
}>;
deleteUnansweredQuestion: (sessionId: string, unansweredQuestionId: string) => Promise<import("./types").ResponseSpec>;

@@ -75,2 +88,9 @@ unansweredQuestions: {

}>;
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<import("./types").ResponseSpec & {
count: number;
unansweredQuestions: import("./types").UnansweredQuestion[];
}>;
postUnansweredQuestion: (sessionId: string, unansweredQuestion: import("./types").UnansweredQuestion) => Promise<import("./types").ResponseSpec & {
unansweredQuestion: import("./types").UnansweredQuestion;
}>;
deleteUnansweredQuestion: (sessionId: string, unansweredQuestionId: string) => Promise<import("./types").ResponseSpec>;

@@ -234,5 +254,9 @@ };

};
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
getMemories: (sessionId: string, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
memories: import("./types").Memory[];
}>;
getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
count: number;
memories: import("./types").Memory[];
}>;
getMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec & {

@@ -243,3 +267,3 @@ memory: import("./types").Memory;

deleteMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec>;
postMemory: (sessionId: string, memory: import("./types").Memory) => Promise<import("./types").ResponseSpec & {
postMemory: (sessionId: string, memory: Pick<import("./types").Memory, "text" | "placeName" | "memoryType" | "lastRead" | "readOccurrencies" | "receiverID" | "receiverTag" | "receiverName" | "media" | "textVariants" | "answers" | "title" | "titleVariants" | "date" | "dateUncertaintyDays" | "placeLatitude" | "placeLongitude" | "placeUncertaintyKm" | "preformatted" | "conclusive" | "help" | "notPickable" | "hints" | "minTimeout" | "maxTimeout" | "contextVarsToSet" | "contextVarsToMatch" | "contextVars" | "creationTimestamp" | "creationName" | "creationSessionID" | "lastChangeTimestamp" | "lastChangeName" | "lastChangeSessionID">) => Promise<import("./types").ResponseSpec & {
memoryID: string;

@@ -249,5 +273,9 @@ }>;

memories: {
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
getMemories: (sessionId: string, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
memories: import("./types").Memory[];
}>;
getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
count: number;
memories: import("./types").Memory[];
}>;
getMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec & {

@@ -258,3 +286,3 @@ memory: import("./types").Memory;

deleteMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec>;
postMemory: (sessionId: string, memory: import("./types").Memory) => Promise<import("./types").ResponseSpec & {
postMemory: (sessionId: string, memory: Pick<import("./types").Memory, "text" | "placeName" | "memoryType" | "lastRead" | "readOccurrencies" | "receiverID" | "receiverTag" | "receiverName" | "media" | "textVariants" | "answers" | "title" | "titleVariants" | "date" | "dateUncertaintyDays" | "placeLatitude" | "placeLongitude" | "placeUncertaintyKm" | "preformatted" | "conclusive" | "help" | "notPickable" | "hints" | "minTimeout" | "maxTimeout" | "contextVarsToSet" | "contextVarsToMatch" | "contextVars" | "creationTimestamp" | "creationName" | "creationSessionID" | "lastChangeTimestamp" | "lastChangeName" | "lastChangeSessionID">) => Promise<import("./types").ResponseSpec & {
memoryID: string;

@@ -372,7 +400,7 @@ }>;

};
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
importCSV: (sessionId: string, csvRows: string[], params: import("./types").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./types").ImportReponse>;
exportCSV: (sessionID: string, params: import("./types").ExportCSVParams) => Promise<string>;
importExport: {
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
importCSV: (sessionId: string, csvRows: string[], params: import("./types").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./types").ImportReponse>;
exportCSV: (sessionID: string, params: import("./types").ExportCSVParams) => Promise<string>;
};

@@ -437,6 +465,16 @@ postTextEnteredEvent: ({ sessionId, text, }: {

};
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
getCorrelationPairs: (sessionId: string, from?: number | undefined, howMany?: number | undefined) => Promise<import("./types").ResponseSpec & {
correlationPairs: import("./types").CorrelationPair[];
}>;
postCorrelationPair: (sessionId: string, correlationPair: import("./types").CorrelationPair) => Promise<import("./types").ResponseSpec & {
correlationPair: import("./types").CorrelationPair;
}>;
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;
correlationPairs: {
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
getCorrelationPairs: (sessionId: string, from?: number | undefined, howMany?: number | undefined) => Promise<import("./types").ResponseSpec & {
correlationPairs: import("./types").CorrelationPair[];
}>;
postCorrelationPair: (sessionId: string, correlationPair: import("./types").CorrelationPair) => Promise<import("./types").ResponseSpec & {
correlationPair: import("./types").CorrelationPair;
}>;
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;

@@ -443,0 +481,0 @@ };

80

dist/index.d.ts
import * as constants from './constants';
declare const api: (hostname?: string | undefined) => {
speech: (AZURE_COGNITIVE_SERVICES_TTS_KEY: string, DEBUG?: boolean) => (lang: string, voiceType: "FEMALE" | "MALE") => {
speak: (text: string, onAudioEnd?: ((sender: import("microsoft-cognitiveservices-speech-sdk").IPlayer) => void) | undefined) => void;
isSpeaking: () => boolean;
stopSpeaking: () => void;
recognize: (onRecognized: (transcript: string) => void) => void;
isRecognizing: () => boolean;
stopRecognizing: (onStop?: (() => void) | undefined) => void;
};
constants: typeof constants;

@@ -18,2 +10,5 @@ asset: {

}>;
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
chatLogs: import("./types").ChatLog[];
}>;
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;

@@ -25,2 +20,5 @@ deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;

}>;
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
chatLogs: import("./types").ChatLog[];
}>;
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;

@@ -82,2 +80,9 @@ deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;

}>;
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<import("./types").ResponseSpec & {
count: number;
unansweredQuestions: import("./types").UnansweredQuestion[];
}>;
postUnansweredQuestion: (sessionId: string, unansweredQuestion: import("./types").UnansweredQuestion) => Promise<import("./types").ResponseSpec & {
unansweredQuestion: import("./types").UnansweredQuestion;
}>;
deleteUnansweredQuestion: (sessionId: string, unansweredQuestionId: string) => Promise<import("./types").ResponseSpec>;

@@ -88,2 +93,9 @@ unansweredQuestions: {

}>;
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<import("./types").ResponseSpec & {
count: number;
unansweredQuestions: import("./types").UnansweredQuestion[];
}>;
postUnansweredQuestion: (sessionId: string, unansweredQuestion: import("./types").UnansweredQuestion) => Promise<import("./types").ResponseSpec & {
unansweredQuestion: import("./types").UnansweredQuestion;
}>;
deleteUnansweredQuestion: (sessionId: string, unansweredQuestionId: string) => Promise<import("./types").ResponseSpec>;

@@ -247,5 +259,9 @@ };

};
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
getMemories: (sessionId: string, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
memories: import("./types").Memory[];
}>;
getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
count: number;
memories: import("./types").Memory[];
}>;
getMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec & {

@@ -256,3 +272,3 @@ memory: import("./types").Memory;

deleteMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec>;
postMemory: (sessionId: string, memory: import("./types").Memory) => Promise<import("./types").ResponseSpec & {
postMemory: (sessionId: string, memory: Pick<import("./types").Memory, "text" | "creationTimestamp" | "lastChangeTimestamp" | "placeName" | "memoryType" | "lastRead" | "readOccurrencies" | "receiverID" | "receiverTag" | "receiverName" | "media" | "textVariants" | "answers" | "title" | "titleVariants" | "date" | "dateUncertaintyDays" | "placeLatitude" | "placeLongitude" | "placeUncertaintyKm" | "preformatted" | "conclusive" | "help" | "notPickable" | "hints" | "minTimeout" | "maxTimeout" | "contextVarsToSet" | "contextVarsToMatch" | "contextVars" | "creationName" | "creationSessionID" | "lastChangeName" | "lastChangeSessionID">) => Promise<import("./types").ResponseSpec & {
memoryID: string;

@@ -262,5 +278,9 @@ }>;

memories: {
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
getMemories: (sessionId: string, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
memories: import("./types").Memory[];
}>;
getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<import("./types").ResponseSpec & {
count: number;
memories: import("./types").Memory[];
}>;
getMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec & {

@@ -271,3 +291,3 @@ memory: import("./types").Memory;

deleteMemory: (sessionId: string, memoryId: string) => Promise<import("./types").ResponseSpec>;
postMemory: (sessionId: string, memory: import("./types").Memory) => Promise<import("./types").ResponseSpec & {
postMemory: (sessionId: string, memory: Pick<import("./types").Memory, "text" | "creationTimestamp" | "lastChangeTimestamp" | "placeName" | "memoryType" | "lastRead" | "readOccurrencies" | "receiverID" | "receiverTag" | "receiverName" | "media" | "textVariants" | "answers" | "title" | "titleVariants" | "date" | "dateUncertaintyDays" | "placeLatitude" | "placeLongitude" | "placeUncertaintyKm" | "preformatted" | "conclusive" | "help" | "notPickable" | "hints" | "minTimeout" | "maxTimeout" | "contextVarsToSet" | "contextVarsToMatch" | "contextVars" | "creationName" | "creationSessionID" | "lastChangeName" | "lastChangeSessionID">) => Promise<import("./types").ResponseSpec & {
memoryID: string;

@@ -385,7 +405,7 @@ }>;

};
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
importCSV: (sessionId: string, csvRows: string[], params: import("./types").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./types").ImportReponse>;
exportCSV: (sessionID: string, params: import("./types").ExportCSVParams) => Promise<string>;
importExport: {
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
importCSV: (sessionId: string, csvRows: string[], params: import("./types").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./types").ImportReponse>;
exportCSV: (sessionID: string, params: import("./types").ExportCSVParams) => Promise<string>;
};

@@ -450,6 +470,16 @@ postTextEnteredEvent: ({ sessionId, text, }: {

};
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
getCorrelationPairs: (sessionId: string, from?: number | undefined, howMany?: number | undefined) => Promise<import("./types").ResponseSpec & {
correlationPairs: import("./types").CorrelationPair[];
}>;
postCorrelationPair: (sessionId: string, correlationPair: import("./types").CorrelationPair) => Promise<import("./types").ResponseSpec & {
correlationPair: import("./types").CorrelationPair;
}>;
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;
correlationPairs: {
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
getCorrelationPairs: (sessionId: string, from?: number | undefined, howMany?: number | undefined) => Promise<import("./types").ResponseSpec & {
correlationPairs: import("./types").CorrelationPair[];
}>;
postCorrelationPair: (sessionId: string, correlationPair: import("./types").CorrelationPair) => Promise<import("./types").ResponseSpec & {
correlationPair: import("./types").CorrelationPair;
}>;
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;

@@ -476,2 +506,5 @@ };

}>;
getMemoriInvitations: (authToken: string, memoriId: string) => Promise<import("./types").ResponseSpec & {
invitations: import("./types").Invitation[];
}>;
getReceivedInvitations: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -557,2 +590,5 @@ invitations: import("./types").Invitation[];

}>;
getTenantMetaverseMemoriList: (tenant: string) => Promise<import("./types").ResponseSpec & {
memori: import("./types").Memori[];
}>;
getPublicMemoriList: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -602,2 +638,3 @@ memori: import("./types").Memori[];

}) => Promise<import("./types").ResponseSpec>;
memoriContentUpdated: (authToken: string, memoriID: string) => Promise<import("./types").ResponseSpec>;
getUploadAssetURL: (authToken: string, memoriID: string, memoryID?: string | undefined) => string;

@@ -627,2 +664,5 @@ uploadAsset: (fileName: string, fileUrl: string, authToken: string, memoriID: string, memoryID?: string | undefined) => Promise<import("./types").ResponseSpec & {

}>;
getTenantMetaverseMemoriList: (tenant: string) => Promise<import("./types").ResponseSpec & {
memori: import("./types").Memori[];
}>;
getPublicMemoriList: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -672,2 +712,3 @@ memori: import("./types").Memori[];

}) => Promise<import("./types").ResponseSpec>;
memoriContentUpdated: (authToken: string, memoriID: string) => Promise<import("./types").ResponseSpec>;
};

@@ -735,2 +776,5 @@ user: {

}>;
getMemoriInvitations: (authToken: string, memoriId: string) => Promise<import("./types").ResponseSpec & {
invitations: import("./types").Invitation[];
}>;
getReceivedInvitations: (authToken: string) => Promise<import("./types").ResponseSpec & {

@@ -737,0 +781,0 @@ invitations: import("./types").Invitation[];

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=(t=require("cross-fetch"))&&"object"==typeof t&&"default"in t?t.default:t,r=require("microsoft-cognitiveservices-speech-sdk");function n(){n=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new x(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=p(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function l(){}function d(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==e&&r.call(y,i)&&(m=y);var g=h.prototype=l.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function U(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,u){var s=p(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=h,s(g,"constructor",h),s(h,"constructor",d),d.displayName=s(h,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(U.prototype),s(U.prototype,a,(function(){return this})),t.AsyncIterator=U,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new U(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),s(g,u,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function o(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function u(t){o(a,n,i,u,s,"next",t)}function s(t){o(a,n,i,u,s,"throw",t)}u(void 0)}))}}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var u=function(t,r){return e(""+r.apiUrl+t,a({},r,{body:null!=r&&r.body?JSON.stringify(r.body):void 0,mode:"cors",credentials:"include",headers:a({"Content-Type":"application/json"},null==r?void 0:r.headers)})).then((function(t){return null!=r&&r.text?t.text():t.json()}))},s=function(t){return{getTenantPublicMemoriList:function(e){return u("/TenantPublicMemori/"+encodeURI(e),{apiUrl:t})},getTenantMetaverseMemoriList:function(e){return u("/TenantMetaverseMemori/"+encodeURI(e),{apiUrl:t})},getPublicMemoriList:function(e){return u("/PublicMemori/"+e,{apiUrl:t})},getAllMemori:function(e){return u("/AllMemori/"+e,{apiUrl:t})},getUserMemoriList:function(e){return u("/Memori/"+e,{apiUrl:t})},getSharedMemoriList:function(e){return u("/SharedMemori/"+e,{apiUrl:t})},getTenantCategories:function(e){return u("/TenantMemoriCategories/"+encodeURI(e),{apiUrl:t})},getMemoriConfigs:function(e){return u("/MemoriConfigs/"+e,{apiUrl:t})},createMemori:function(e,r){return u("/Memori/"+e,{apiUrl:t,body:r,method:"POST"})},updateMemori:function(e,r){return u("/Memori/"+e+"/"+r.memoriID,{apiUrl:t,body:r,method:"PATCH"})},deleteMemori:function(e,r){return u("/Memori/"+e,{apiUrl:t,body:r,method:"DELETE"})},getMemoriById:function(e,r){return u("/Memori/"+e+"/"+r,{apiUrl:t})},getMemoriByUserAndId:function(e,r,n,o){return u("/MemoriById/"+e+"/"+r+"/"+n+(o?"/"+o:""),{apiUrl:t})},getMemori:function(e,r,n,o){return u("/Memori/"+encodeURI(e)+"/"+encodeURI(r)+"/"+encodeURI(n)+"/"+(null!=o?o:""),{apiUrl:t})},getMemoriSessions:function(e,r,n,o){return u("/MemoriSessions/"+e+"/"+r+(n?"/"+n:"")+(n&&o?"/"+o:""),{apiUrl:t})},transferMemori:function(e,r){return u("/TransferMemori/"+e,{apiUrl:t,body:r,method:"POST"})},memoriContentUpdated:function(e,r){return u("/MemoriContentUpdated/"+e+"/"+r,{apiUrl:t,method:"POST"})}}},c=function(t){return{userSignIn:function(e){return u("/User",{apiUrl:t,body:e,method:"POST"})},userConfirmSignIn:function(e){return u("/UserConfirm",{apiUrl:t,body:e,method:"POST"})},userLogin:function(e){return u("/Login",{apiUrl:t,body:e,method:"POST"})},userLogout:function(e){return u("/Logout/"+e,{apiUrl:t,method:"POST"})},getUser:function(e,r){return u("/User/"+e+"/"+r,{apiUrl:t})},getUsersList:function(e){return u("/Users/"+e,{apiUrl:t})},deleteUser:function(e,r){return u("/User/"+e+"/"+r,{apiUrl:t,method:"DELETE"})},updateUser:function(e,r,n){return u("/User/"+e+"/"+r,{apiUrl:t,method:"PATCH",body:n})},resetPassword:function(e){return u("/ResetPassword",{apiUrl:t,body:e,method:"POST"})},resetConfirm:function(e){return u("/ResetConfirm",{apiUrl:t,body:e,method:"POST"})},recoverUsername:function(e){return u("/RecoverUsername",{apiUrl:t,body:e,method:"POST"})},getTenantConfig:function(e){return u("/Tenant/"+e,{apiUrl:t})},resendVerificationCode:function(e){return u("/ResendVerificationCode",{apiUrl:t,body:e,method:"POST"})},createUser:function(e,r){return u("/User/"+e,{apiUrl:t,body:r,method:"POST"})}}},p=function(t){return{getMemoriIntegrationsList:function(e,r){return u("/Integrations/"+e+"/"+r,{apiUrl:t})},getAllIntegrationsList:function(e){return u("/AllIntegrations/"+e,{apiUrl:t})},getIntegration:function(e,r){return u("/Integration/"+e+"/"+r,{apiUrl:t})},deleteIntegration:function(e,r){return u("/Integration/"+e+"/"+r,{apiUrl:t,method:"DELETE"})},createIntegration:function(e,r){return u("/Integration/"+e,{apiUrl:t,method:"POST",body:r})},updateIntegration:function(e,r,n){return u("/Integration/"+e+"/"+r,{apiUrl:t,method:"PATCH",body:n})}}},f=function(t){return{getUploadAssetURL:function(e,r,n){return t+"/Asset/"+e+"/"+r+(n?"/"+n:"")},uploadAsset:(e=i(n().mark((function e(r,o,i,a,u){var s,c,p;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=new FormData,e.next=3,fetch(o);case 3:return c=e.sent,e.next=6,c.blob();case 6:return s.append(r,e.sent,r),e.next=10,fetch(t+"/Asset/"+i+"/"+a+(u?"/"+u:""),{method:"POST",body:s});case 10:return p=e.sent,e.next=13,p.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)}))),function(t,r,n,o,i){return e.apply(this,arguments)}),getAsset:function(e,r){return u("/Asset/"+e+"/"+r,{apiUrl:t,method:"GET"})},updateAsset:function(e,r,n){return u("/Asset/"+e+"/"+r.split("/").reverse()[0],{apiUrl:t,method:"PATCH",body:n})},deleteAsset:function(e,r){return u("/Asset/"+e+"/"+r.split("/").reverse()[0],{apiUrl:t,method:"DELETE"})}};var e},l=function(t){return{getSentInvitations:function(e){return u("/SentInvitations/"+e,{apiUrl:t})},getMemoriInvitations:function(e,r){return u("/MemoriInvitations/"+e+"/"+r,{apiUrl:t})},getReceivedInvitations:function(e){return u("/ReceivedInvitations/"+e,{apiUrl:t})},getAllInvitations:function(e){return u("/AllInvitations/"+e,{apiUrl:t})},getInvitation:function(e,r){return u("/Invitation/"+e+"/"+r,{apiUrl:t})},updateInvitation:function(e,r){return u("/Invitation/"+e+"/"+r.invitationID,{apiUrl:t,method:"PATCH",body:r})},deleteInvitation:function(e,r){return u("/Invitation/"+e+"/"+r,{apiUrl:t,method:"DELETE"})},acceptInvitation:function(e,r){return u("/AcceptInvitation/"+e+"/"+r,{apiUrl:t,method:"POST"})},rejectInvitation:function(e,r){return u("/RejectInvitation/"+e+"/"+r,{apiUrl:t,method:"POST"})},sendInvitation:function(e,r){return u("/SendInvitation/"+e,{apiUrl:t,method:"POST",body:r})}}},d=function(t){return{getTenantConsumptionLogs:function(e,r,n,o,i){return u("/TenantConsumptionLogs/"+e+"/"+r+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})},getUserConsumptionLogs:function(e,r,n,o,i){return u("/UserConsumptionLogs/"+e+"/"+r+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})},getMemoriConsumptionLogs:function(e,r,n,o,i){return u("/MemoriConsumptionLogs/"+e+"/"+r+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})}}},h=function(t){return{getTenantNotifications:function(e){return u("/TenantNotifications/"+e,{apiUrl:t})},getUserNotifications:function(e){return u("/UserNotifications/"+e,{apiUrl:t})}}},m=function(t){return a({asset:f(t),memori:s(t),user:c(t),integration:p(t),invitation:l(t),consumptionLogs:d(t),notifications:h(t)},f(t),s(t),c(t),p(t),l(t),d(t),h(t))},v=function(t){return{getCorrelationPairs:(o=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CorrelationPairs/"+r+(o?"/"+o+(i?"/"+i:""):""),{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return o.apply(this,arguments)}),postCorrelationPair:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CorrelationPair/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),deleteCorrelationPair:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CorrelationPair/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o},y=function(t){return{postTextEnteredEvent:(l=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/TextEnteredEvent/"+r.sessionId,{method:"POST",apiUrl:t,body:{text:r.text}}));case 2:case"end":return e.stop()}}),e)}))),function(t){return l.apply(this,arguments)}),postPlaceChangedEvent:(f=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PlaceChangedEvent/"+r.sessionId,{method:"POST",apiUrl:t,body:{placeName:r.placeName,latitude:r.latitude,longitude:r.longitude,uncertaintyKm:r.uncertaintyKm}}));case 2:case"end":return e.stop()}}),e)}))),function(t){return f.apply(this,arguments)}),postDateChangedEvent:(p=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/DateChangedEvent/"+r,{method:"POST",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return p.apply(this,arguments)}),postTagChangedEvent:(c=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/TagChangedEvent/"+r,{method:"POST",apiUrl:t,body:{tag:o}}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return c.apply(this,arguments)}),postTimeoutEvent:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/TimeoutEvent/"+r,{method:"POST",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),postMediumSelectedEvent:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/MediumSelectedEvent/"+r,{method:"POST",apiUrl:t,body:{medium:o}}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),postDateSelectedEvent:(o=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/DateSelectedEvent/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return o.apply(this,arguments)}),postPlaceSelectedEvent:(r=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PlaceSelectedEvent/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)}),postTagSelectedEvent:(e=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/TagSelectedEvent/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})};var e,r,o,a,s,c,p,f,l},g=function(t){return{importCSV:(r=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ImportExport/ImportCSV/"+r,{method:"POST",apiUrl:t,body:a({csvRows:o},i)}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)}),exportCSV:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ImportExport/ExportCSV/"+r,{method:"POST",apiUrl:t,body:o,text:!0}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r},w=function(t){return{getIntents:(d=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Intents/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return d.apply(this,arguments)}),getIntent:(l=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Intent/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return l.apply(this,arguments)}),patchIntent:(f=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Intent/"+r+"/"+o.intentID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return f.apply(this,arguments)}),deleteIntent:(p=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Intent/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return p.apply(this,arguments)}),createIntent:(c=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Intent/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return c.apply(this,arguments)}),getIntentSlots:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/IntentSlots/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getIntentSlot:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/IntentSlot/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),patchIntentSlot:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/IntentSlot/"+r+"/"+o.intentSlotID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),deleteIntentSlot:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/IntentSlot/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),createIntentSlot:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/IntentSlot/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s,c,p,f,l,d},U=function(t){return{getLocalizationKeys:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/LocalizationKeys/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getLocalizationKey:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/LocalizationKey/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),deleteLocalizationKey:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/LocalizationKey/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),postLocalizationKey:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/LocalizationKey/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),patchLocalizationKey:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/LocalizationKey/"+r,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s},E=function(t){return{getMedia:(s=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Media/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)}),deleteMedia:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Media/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),getMedium:(o=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Medium/"+r+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return o.apply(this,arguments)}),patchMedium:(r=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Medium/"+r+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)}),deleteMedium:function(e,r,n){return u("/Medium/"+e+"/"+r+"/"+n,{method:"GET",apiUrl:t})},postMedium:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Medium/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s},b=function(t){return{getMemories:(p=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memories/"+r+(o?"/"+o:""),{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return p.apply(this,arguments)}),getMemoriesPaginated:(c=i(n().mark((function e(r,o,i,a){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memories/"+r+"/"+o+"/"+i+(a?"/"+a:""),{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r,n){return c.apply(this,arguments)}),getMemory:(s=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memory/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)}),patchMemory:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memory/"+r+"/"+o.memoryID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),deleteMemory:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memory/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),postMemory:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Memory/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),getMemoryAccess:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/MemoryAccess/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s,c,p},T=function(t){return{getWordVector:(s=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/WordVector/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)}),getSimilarWords:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/SimilarWords/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),guessLanguage:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/GuessLanguage/"+r,{method:"POST",apiUrl:t,body:{text:o}}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),computeSimilarity:(r=i(n().mark((function e(r,o,i,a,s){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ComputeSimilarity/"+r,{method:"POST",apiUrl:t,body:{referenceText:o,referenceTextType:i,comparisonText:a,comparisonTextType:s}}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n,o,i){return r.apply(this,arguments)}),checkWords:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CheckWords/"+r,{method:"POST",apiUrl:t,body:{text:o}}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s},x=function(t){return{getPeople:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/People/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getPerson:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Person/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),patchPerson:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Person/"+r+"/"+o.personID,{method:"PATCH",body:o,apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),deletePerson:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Person/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),postPerson:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Person/"+r,{method:"POST",body:o,apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s},k=function(t){return{getPromptedQuestions:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PromptedQuestions/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getPromptedQuestion:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PromptedQuestion/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),patchPromptedQuestion:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PromptedQuestion/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),deletePromptedQuestion:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PromptedQuestion/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),postPromptedQuestion:(e=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/PromptedQuestion/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})};var e,r,o,a,s},S=function(t){return{searchMemory:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Search/"+r,{method:"POST",body:o,apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),postRandom:(r=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Random/"+r,{method:"POST",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)}),postHints:(e=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Hints/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})};var e,r,o},L=function(t){return{initSession:(o=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Session",{method:"POST",body:r,apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return o.apply(this,arguments)}),getSession:(r=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Session/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)}),deleteSession:(e=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Session/"+r,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})};var e,r,o},P=function(t){return{getStatistics:(c=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/Statistics/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return c.apply(this,arguments)}),getContentQualityIndexes:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ContentQualityIndexes/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getTextQualityIndexes:(a=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/TextQualityIndexes/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)}),getEventLogs:(o=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/EventLogs/"+r+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return o.apply(this,arguments)}),getMemoryEventLogs:(r=i(n().mark((function e(r,o,i,a){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/EventLogs/"+r+"/"+o+"/"+i+"/"+a,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n,o){return r.apply(this,arguments)}),getIntentEventLogs:(e=i(n().mark((function e(r,o,i,a){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/EventLogs/"+r+"/"+o+"/"+i+"/"+a,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r,n,o){return e.apply(this,arguments)})};var e,r,o,a,s,c},C=function(t){return{getUnansweredQuestions:(a=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/UnansweredQuestions/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)}),getUnansweredQuestionsPaginated:(o=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/UnansweredQuestions/"+r+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return o.apply(this,arguments)}),postUnansweredQuestion:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/UnansweredQuestion/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),deleteUnansweredQuestion:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/UnansweredQuestion/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a},I=function(t){return{getContextVars:(o=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ContextVars/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return o.apply(this,arguments)}),getContextVarNames:(r=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ContextVarNames/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)}),getContextVarValues:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ContextVarValues/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o},M=function(t){return{getCustomWords:(s=i(n().mark((function e(r){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CustomWords/"+r,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t){return s.apply(this,arguments)}),getCustomWord:(a=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CustomWord/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)}),deleteCustomWord:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CustomWord/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),postCustomWord:(r=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CustomWord/"+r,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)}),patchCustomWord:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/CustomWord/"+r+"/"+o.customWordID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a,s},G=function(t){return{getChatLogs:(a=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ChatLogs/"+r+(o?"/"+o:"")+(o&&i?"/"+i:""),{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return a.apply(this,arguments)}),getSessionChatLogs:(o=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/SessionChatLogs/"+r+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return o.apply(this,arguments)}),deleteChatLogs:(r=i(n().mark((function e(r,o,i){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ChatLogs/"+r+(o?"/"+o:"")+(o&&i?"/"+i:""),{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)}),deleteChatLog:(e=i(n().mark((function e(r,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u("/ChatLog/"+r+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})};var e,r,o,a},O={__proto__:null,allowedMediaTypes:["image/jpeg","image/png","image/jpg","image/gif","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","video/mp4","video/avi","audio/mpeg3","audio/wav","audio/mpeg","video/mpeg","model/gltf-binary"],anonTag:"👤"},A=function(t,e){return void 0===e&&(e=!1),function(n,o){var i,a,u=r.SpeechConfig.fromSubscription(t,"eastus");a=new r.SpeakerAudioDestination;var s=r.AudioConfig.fromSpeakerOutput(a);u.speechSynthesisVoiceName=function(t,e){var r="";switch(t.toUpperCase()){case"IT":r="MALE"===e?"it-IT-DiegoNeural":"it-IT-ElsaNeural";break;case"DE":r="MALE"===e?"de-DE-ConradNeural":"de-DE-KatjaNeural";break;case"EN":r="MALE"===e?"en-GB-RyanNeural":"en-GB-SoniaNeural";break;case"ES":r="MALE"===e?"es-ES-AlvaroNeural":"es-ES-ElviraNeural";break;case"FR":r="MALE"===e?"fr-FR-HenriNeural":"fr-FR-DeniseNeural";break;case"PT":r="MALE"===e?"pt-PT-DuarteNeural":"pt-PT-RaquelNeural";break;default:r="MALE"===e?"it-IT-DiegoNeural":"it-IT-IsabellaNeural"}return r}(n,o);var c=function(t){var e="";switch(t.toUpperCase()){case"IT":e="it-IT";break;case"DE":e="de-DE";break;case"EN":e="en-US";break;case"ES":e="es-ES";break;case"FR":e="fr-FR";break;case"PT":e="pt-PT";break;default:e="it-IT"}return e}(n);u.speechSynthesisLanguage=c,u.speechRecognitionLanguage=c;var p,f=function(){a&&a.pause(),i&&(i.close(),i=null)},l=r.AudioConfig.fromDefaultMicrophoneInput(),d=function(t){p&&(p.stopContinuousRecognitionAsync(),p.close(),p=null,t&&t())};return{speak:function(t,n){f(),i=new r.SpeechSynthesizer(u,s),n&&(a.onAudioEnd=n),i.speakTextAsync(t,(function(r){if(r)try{e&&console.log("speak result",r),i&&(i.close(),i=null)}catch(e){console.error("speak error: ",e),window.speechSynthesis.speak(new SpeechSynthesisUtterance(t))}else e&&console.log("speak no result",r)}),(function(e){console.error("speak:",e),window.speechSynthesis.speak(new SpeechSynthesisUtterance(t))}))},isSpeaking:function(){return!!i},stopSpeaking:f,recognize:function(t){(p=new r.SpeechRecognizer(u,l)).recognizing=function(t,r){e&&console.log("RECOGNIZING: Text="+r.result.text)},p.recognized=function(n,o){var i;o.result.reason===r.ResultReason.RecognizedSpeech?(e&&console.log("RECOGNIZED: Text="+o.result.text),t(null!=(i=o.result.text)?i:"")):o.result.reason===r.ResultReason.NoMatch&&e&&console.log("NOMATCH: Speech could not be recognized.")},p.canceled=function(t,n){e&&console.log("CANCELED: Reason="+n.reason),n.reason===r.CancellationReason.Error&&e&&(console.log('"CANCELED: ErrorCode='+n.errorCode),console.log('"CANCELED: ErrorDetails='+n.errorDetails),console.log("CANCELED: Did you set the speech resource key and region values?")),d()},p.sessionStopped=function(t,r){e&&console.log("\n Session stopped event."),p&&p.stopContinuousRecognitionAsync()},p.startContinuousRecognitionAsync()},isRecognizing:function(){return!!p},stopRecognizing:d}}},D=function(t){return{getResourceUrl:function(e){var r=e.resourceURI,n=e.sessionID,o=e.baseURL,i=void 0===o?"https://app.twincreator.com":o,a="cover"===e.type?i+"/images/memoriCover.png":i+"/images/memoriAvatar.png";return r&&0!==r.length?r.includes("memoriai/memory")?r+"?memori-ai-session-id="+n:r.startsWith("https://")||r.startsWith("http://")?r+(n?"/"+n:""):r.startsWith("cloud://")?t.replace(/v2/,"v1")+"/CloudAsset/"+r.replace("cloud://",""):r.startsWith("guid://")?t.replace(/v2/,"v1")+"/GuidAsset/"+r.replace("guid://",""):a:a}}};exports.default=function(t){var e=function(t){return t?new URL(t.startsWith("http")?t:"https://"+t).origin.replace("http://","https://"):"https://backend.memori.ai"}(t);return a({backend:m(e+"/api/v2")},function(t){return a({correlationPairs:v(t)},v(t),{dialog:y(t)},y(t),{importExport:g(t)},g(t),{intents:w(t)},w(t),{localizationKeys:U(t)},U(t),{media:E(t)},E(t),{memories:b(t)},b(t),{nlp:T(t)},T(t),{people:x(t)},x(t),{promptedQuestions:k(t)},k(t),{search:S(t)},S(t),{session:L(t)},L(t),{stats:P(t)},P(t),{unansweredQuestions:C(t)},C(t),{contextVars:I(t)},I(t),{customDictionary:M(t)},M(t),{chatLogs:G(t)},G(t))}(e+"/memori/v2"),{speech:A,constants:O,asset:D(e+"/api/v2")})};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("cross-fetch"))&&"object"==typeof t&&"default"in t?t.default:t;function e(){e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=Object.create((r&&r.prototype instanceof d?r:d).prototype),i=new E(n||[]);return o._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=b(a,e);if(u){if(u===f)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=p(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,i),o}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function d(){}function l(){}function h(){}var m={};c(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==r&&n.call(y,i)&&(m=y);var w=h.prototype=d.prototype=Object.create(m);function g(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function U(t,r){var e;this._invoke=function(o,i){function a(){return new r((function(e,a){!function e(o,i,a,u){var c=p(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}(o,i,e,a)}))}return e=e?e.then(a,a):a()}}function b(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,b(t,r),"throw"===r.method))return f;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=p(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function x(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return l.prototype=h,c(w,"constructor",h),c(h,"constructor",l),l.displayName=c(h,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===l||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},g(U.prototype),c(U.prototype,a,(function(){return this})),t.AsyncIterator=U,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new U(s(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(w),c(w,u,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),f},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),f}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:P(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},t}function n(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}var a=function(t,e){return r(""+e.apiUrl+t,i({},e,{body:null!=e&&e.body?JSON.stringify(e.body):void 0,mode:"cors",credentials:"include",headers:i({"Content-Type":"application/json"},null==e?void 0:e.headers)})).then((function(t){return null!=e&&e.text?t.text():t.json()}))},u=function(t){return{getTenantPublicMemoriList:function(r){return a("/TenantPublicMemori/"+encodeURI(r),{apiUrl:t})},getTenantMetaverseMemoriList:function(r){return a("/TenantMetaverseMemori/"+encodeURI(r),{apiUrl:t})},getPublicMemoriList:function(r){return a("/PublicMemori/"+r,{apiUrl:t})},getAllMemori:function(r){return a("/AllMemori/"+r,{apiUrl:t})},getUserMemoriList:function(r){return a("/Memori/"+r,{apiUrl:t})},getSharedMemoriList:function(r){return a("/SharedMemori/"+r,{apiUrl:t})},getTenantCategories:function(r){return a("/TenantMemoriCategories/"+encodeURI(r),{apiUrl:t})},getMemoriConfigs:function(r){return a("/MemoriConfigs/"+r,{apiUrl:t})},createMemori:function(r,e){return a("/Memori/"+r,{apiUrl:t,body:e,method:"POST"})},updateMemori:function(r,e){return a("/Memori/"+r+"/"+e.memoriID,{apiUrl:t,body:e,method:"PATCH"})},deleteMemori:function(r,e){return a("/Memori/"+r,{apiUrl:t,body:e,method:"DELETE"})},getMemoriById:function(r,e){return a("/Memori/"+r+"/"+e,{apiUrl:t})},getMemoriByUserAndId:function(r,e,n,o){return a("/MemoriById/"+r+"/"+e+"/"+n+(o?"/"+o:""),{apiUrl:t})},getMemori:function(r,e,n,o){return a("/Memori/"+encodeURI(r)+"/"+encodeURI(e)+"/"+encodeURI(n)+"/"+(null!=o?o:""),{apiUrl:t})},getMemoriSessions:function(r,e,n,o){return a("/MemoriSessions/"+r+"/"+e+(n?"/"+n:"")+(n&&o?"/"+o:""),{apiUrl:t})},transferMemori:function(r,e){return a("/TransferMemori/"+r,{apiUrl:t,body:e,method:"POST"})},memoriContentUpdated:function(r,e){return a("/MemoriContentUpdated/"+r+"/"+e,{apiUrl:t,method:"POST"})}}},c=function(t){return{userSignIn:function(r){return a("/User",{apiUrl:t,body:r,method:"POST"})},userConfirmSignIn:function(r){return a("/UserConfirm",{apiUrl:t,body:r,method:"POST"})},userLogin:function(r){return a("/Login",{apiUrl:t,body:r,method:"POST"})},userLogout:function(r){return a("/Logout/"+r,{apiUrl:t,method:"POST"})},getUser:function(r,e){return a("/User/"+r+"/"+e,{apiUrl:t})},getUsersList:function(r){return a("/Users/"+r,{apiUrl:t})},deleteUser:function(r,e){return a("/User/"+r+"/"+e,{apiUrl:t,method:"DELETE"})},updateUser:function(r,e,n){return a("/User/"+r+"/"+e,{apiUrl:t,method:"PATCH",body:n})},resetPassword:function(r){return a("/ResetPassword",{apiUrl:t,body:r,method:"POST"})},resetConfirm:function(r){return a("/ResetConfirm",{apiUrl:t,body:r,method:"POST"})},recoverUsername:function(r){return a("/RecoverUsername",{apiUrl:t,body:r,method:"POST"})},getTenantConfig:function(r){return a("/Tenant/"+r,{apiUrl:t})},resendVerificationCode:function(r){return a("/ResendVerificationCode",{apiUrl:t,body:r,method:"POST"})},createUser:function(r,e){return a("/User/"+r,{apiUrl:t,body:e,method:"POST"})}}},s=function(t){return{getMemoriIntegrationsList:function(r,e){return a("/Integrations/"+r+"/"+e,{apiUrl:t})},getAllIntegrationsList:function(r){return a("/AllIntegrations/"+r,{apiUrl:t})},getIntegration:function(r,e){return a("/Integration/"+r+"/"+e,{apiUrl:t})},deleteIntegration:function(r,e){return a("/Integration/"+r+"/"+e,{apiUrl:t,method:"DELETE"})},createIntegration:function(r,e){return a("/Integration/"+r,{apiUrl:t,method:"POST",body:e})},updateIntegration:function(r,e,n){return a("/Integration/"+r+"/"+e,{apiUrl:t,method:"PATCH",body:n})}}},p=function(t){return{getUploadAssetURL:function(r,e,n){return t+"/Asset/"+r+"/"+e+(n?"/"+n:"")},uploadAsset:(r=o(e().mark((function r(n,o,i,a,u){var c,s,p;return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=new FormData,r.next=3,fetch(o);case 3:return s=r.sent,r.next=6,s.blob();case 6:return c.append(n,r.sent,n),r.next=10,fetch(t+"/Asset/"+i+"/"+a+(u?"/"+u:""),{method:"POST",body:c});case 10:return p=r.sent,r.next=13,p.json();case 13:return r.abrupt("return",r.sent);case 14:case"end":return r.stop()}}),r)}))),function(t,e,n,o,i){return r.apply(this,arguments)}),getAsset:function(r,e){return a("/Asset/"+r+"/"+e,{apiUrl:t,method:"GET"})},updateAsset:function(r,e,n){return a("/Asset/"+r+"/"+e.split("/").reverse()[0],{apiUrl:t,method:"PATCH",body:n})},deleteAsset:function(r,e){return a("/Asset/"+r+"/"+e.split("/").reverse()[0],{apiUrl:t,method:"DELETE"})}};var r},f=function(t){return{getSentInvitations:function(r){return a("/SentInvitations/"+r,{apiUrl:t})},getMemoriInvitations:function(r,e){return a("/MemoriInvitations/"+r+"/"+e,{apiUrl:t})},getReceivedInvitations:function(r){return a("/ReceivedInvitations/"+r,{apiUrl:t})},getAllInvitations:function(r){return a("/AllInvitations/"+r,{apiUrl:t})},getInvitation:function(r,e){return a("/Invitation/"+r+"/"+e,{apiUrl:t})},updateInvitation:function(r,e){return a("/Invitation/"+r+"/"+e.invitationID,{apiUrl:t,method:"PATCH",body:e})},deleteInvitation:function(r,e){return a("/Invitation/"+r+"/"+e,{apiUrl:t,method:"DELETE"})},acceptInvitation:function(r,e){return a("/AcceptInvitation/"+r+"/"+e,{apiUrl:t,method:"POST"})},rejectInvitation:function(r,e){return a("/RejectInvitation/"+r+"/"+e,{apiUrl:t,method:"POST"})},sendInvitation:function(r,e){return a("/SendInvitation/"+r,{apiUrl:t,method:"POST",body:e})}}},d=function(t){return{getTenantConsumptionLogs:function(r,e,n,o,i){return a("/TenantConsumptionLogs/"+r+"/"+e+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})},getUserConsumptionLogs:function(r,e,n,o,i){return a("/UserConsumptionLogs/"+r+"/"+e+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})},getMemoriConsumptionLogs:function(r,e,n,o,i){return a("/MemoriConsumptionLogs/"+r+"/"+e+"/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{apiUrl:t})}}},l=function(t){return{getTenantNotifications:function(r){return a("/TenantNotifications/"+r,{apiUrl:t})},getUserNotifications:function(r){return a("/UserNotifications/"+r,{apiUrl:t})}}},h=function(t){return i({asset:p(t),memori:u(t),user:c(t),integration:s(t),invitation:f(t),consumptionLogs:d(t),notifications:l(t)},p(t),u(t),c(t),s(t),f(t),d(t),l(t))},m=function(t){return{getCorrelationPairs:(i=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CorrelationPairs/"+n+(o?"/"+o+(i?"/"+i:""):""),{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return i.apply(this,arguments)}),postCorrelationPair:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CorrelationPair/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),deleteCorrelationPair:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CorrelationPair/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i},v=function(t){return{postTextEnteredEvent:(d=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/TextEnteredEvent/"+n.sessionId,{method:"POST",apiUrl:t,body:{text:n.text}}));case 2:case"end":return r.stop()}}),r)}))),function(t){return d.apply(this,arguments)}),postPlaceChangedEvent:(f=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PlaceChangedEvent/"+n.sessionId,{method:"POST",apiUrl:t,body:{placeName:n.placeName,latitude:n.latitude,longitude:n.longitude,uncertaintyKm:n.uncertaintyKm}}));case 2:case"end":return r.stop()}}),r)}))),function(t){return f.apply(this,arguments)}),postDateChangedEvent:(p=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/DateChangedEvent/"+n,{method:"POST",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return p.apply(this,arguments)}),postTagChangedEvent:(s=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/TagChangedEvent/"+n,{method:"POST",apiUrl:t,body:{tag:o}}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return s.apply(this,arguments)}),postTimeoutEvent:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/TimeoutEvent/"+n,{method:"POST",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),postMediumSelectedEvent:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/MediumSelectedEvent/"+n,{method:"POST",apiUrl:t,body:{medium:o}}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),postDateSelectedEvent:(i=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/DateSelectedEvent/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return i.apply(this,arguments)}),postPlaceSelectedEvent:(n=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PlaceSelectedEvent/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return n.apply(this,arguments)}),postTagSelectedEvent:(r=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/TagSelectedEvent/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return r.apply(this,arguments)})};var r,n,i,u,c,s,p,f,d},y=function(t){return{importCSV:(n=o(e().mark((function r(n,o,u){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ImportExport/ImportCSV/"+n,{method:"POST",apiUrl:t,body:i({csvRows:o},u)}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return n.apply(this,arguments)}),exportCSV:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ImportExport/ExportCSV/"+n,{method:"POST",apiUrl:t,body:o,text:!0}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n},w=function(t){return{getIntents:(l=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Intents/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return l.apply(this,arguments)}),getIntent:(d=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Intent/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return d.apply(this,arguments)}),patchIntent:(f=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Intent/"+n+"/"+o.intentID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return f.apply(this,arguments)}),deleteIntent:(p=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Intent/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return p.apply(this,arguments)}),createIntent:(s=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Intent/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return s.apply(this,arguments)}),getIntentSlots:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/IntentSlots/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getIntentSlot:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/IntentSlot/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),patchIntentSlot:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/IntentSlot/"+n+"/"+o.intentSlotID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),deleteIntentSlot:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/IntentSlot/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),createIntentSlot:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/IntentSlot/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c,s,p,f,d,l},g=function(t){return{getLocalizationKeys:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/LocalizationKeys/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getLocalizationKey:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/LocalizationKey/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),deleteLocalizationKey:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/LocalizationKey/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),postLocalizationKey:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/LocalizationKey/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),patchLocalizationKey:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/LocalizationKey/"+n,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c},U=function(t){return{getMedia:(c=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Media/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return c.apply(this,arguments)}),deleteMedia:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Media/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),getMedium:(i=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Medium/"+n+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return i.apply(this,arguments)}),patchMedium:(n=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Medium/"+n+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return n.apply(this,arguments)}),deleteMedium:function(r,e,n){return a("/Medium/"+r+"/"+e+"/"+n,{method:"GET",apiUrl:t})},postMedium:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Medium/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c},b=function(t){return{getMemories:(p=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memories/"+n+(o?"/"+o:""),{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return p.apply(this,arguments)}),getMemoriesPaginated:(s=o(e().mark((function r(n,o,i,u){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memories/"+n+"/"+o+"/"+i+(u?"/"+u:""),{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e,n){return s.apply(this,arguments)}),getMemory:(c=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memory/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return c.apply(this,arguments)}),patchMemory:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memory/"+n+"/"+o.memoryID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),deleteMemory:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memory/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),postMemory:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Memory/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),getMemoryAccess:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/MemoryAccess/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c,s,p},x=function(t){return{getWordVector:(c=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/WordVector/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return c.apply(this,arguments)}),getSimilarWords:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/SimilarWords/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),guessLanguage:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/GuessLanguage/"+n,{method:"POST",apiUrl:t,body:{text:o}}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),computeSimilarity:(n=o(e().mark((function r(n,o,i,u,c){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ComputeSimilarity/"+n,{method:"POST",apiUrl:t,body:{referenceText:o,referenceTextType:i,comparisonText:u,comparisonTextType:c}}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e,o,i){return n.apply(this,arguments)}),checkWords:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CheckWords/"+n,{method:"POST",apiUrl:t,body:{text:o}}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c},T=function(t){return{getPeople:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/People/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getPerson:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Person/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),patchPerson:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Person/"+n+"/"+o.personID,{method:"PATCH",body:o,apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),deletePerson:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Person/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),postPerson:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Person/"+n,{method:"POST",body:o,apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c},E=function(t){return{getPromptedQuestions:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PromptedQuestions/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getPromptedQuestion:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PromptedQuestion/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),patchPromptedQuestion:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PromptedQuestion/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),deletePromptedQuestion:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PromptedQuestion/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),postPromptedQuestion:(r=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/PromptedQuestion/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return r.apply(this,arguments)})};var r,n,i,u,c},P=function(t){return{searchMemory:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Search/"+n,{method:"POST",body:o,apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),postRandom:(n=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Random/"+n,{method:"POST",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return n.apply(this,arguments)}),postHints:(r=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Hints/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return r.apply(this,arguments)})};var r,n,i},k=function(t){return{initSession:(i=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Session",{method:"POST",body:n,apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return i.apply(this,arguments)}),getSession:(n=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Session/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return n.apply(this,arguments)}),deleteSession:(r=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Session/"+n,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return r.apply(this,arguments)})};var r,n,i},L=function(t){return{getStatistics:(s=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/Statistics/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return s.apply(this,arguments)}),getContentQualityIndexes:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ContentQualityIndexes/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getTextQualityIndexes:(u=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/TextQualityIndexes/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return u.apply(this,arguments)}),getEventLogs:(i=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/EventLogs/"+n+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return i.apply(this,arguments)}),getMemoryEventLogs:(n=o(e().mark((function r(n,o,i,u){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/EventLogs/"+n+"/"+o+"/"+i+"/"+u,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e,o){return n.apply(this,arguments)}),getIntentEventLogs:(r=o(e().mark((function r(n,o,i,u){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/EventLogs/"+n+"/"+o+"/"+i+"/"+u,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e,n,o){return r.apply(this,arguments)})};var r,n,i,u,c,s},S=function(t){return{getUnansweredQuestions:(u=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/UnansweredQuestions/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return u.apply(this,arguments)}),getUnansweredQuestionsPaginated:(i=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/UnansweredQuestions/"+n+"/"+o+"/"+i,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return i.apply(this,arguments)}),postUnansweredQuestion:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/UnansweredQuestion/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),deleteUnansweredQuestion:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/UnansweredQuestion/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u},I=function(t){return{getContextVars:(i=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ContextVars/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return i.apply(this,arguments)}),getContextVarNames:(n=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ContextVarNames/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return n.apply(this,arguments)}),getContextVarValues:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ContextVarValues/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i},C=function(t){return{getCustomWords:(c=o(e().mark((function r(n){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CustomWords/"+n,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)}),getCustomWord:(u=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CustomWord/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return u.apply(this,arguments)}),deleteCustomWord:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CustomWord/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),postCustomWord:(n=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CustomWord/"+n,{method:"POST",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return n.apply(this,arguments)}),patchCustomWord:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/CustomWord/"+n+"/"+o.customWordID,{method:"PATCH",apiUrl:t,body:o}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u,c},M=function(t){return{getChatLogs:(u=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ChatLogs/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return u.apply(this,arguments)}),getSessionChatLogs:(i=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/SessionChatLogs/"+n+"/"+o,{method:"GET",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r){return i.apply(this,arguments)}),deleteChatLogs:(n=o(e().mark((function r(n,o,i){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ChatLogs/"+n+(o?"/"+o:"")+(o&&i?"/"+i:""),{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,r,e){return n.apply(this,arguments)}),deleteChatLog:(r=o(e().mark((function r(n,o){return e().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",a("/ChatLog/"+n+"/"+o,{method:"DELETE",apiUrl:t}));case 1:case"end":return r.stop()}}),r)}))),function(t,e){return r.apply(this,arguments)})};var r,n,i,u},O={__proto__:null,allowedMediaTypes:["image/jpeg","image/png","image/jpg","image/gif","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","video/mp4","video/avi","audio/mpeg3","audio/wav","audio/mpeg","video/mpeg","model/gltf-binary"],anonTag:"👤"},G=function(t){return{getResourceUrl:function(r){var e=r.resourceURI,n=r.sessionID,o=r.baseURL,i=void 0===o?"https://app.twincreator.com":o,a="cover"===r.type?i+"/images/memoriCover.png":i+"/images/memoriAvatar.png";return e&&0!==e.length?e.includes("memoriai/memory")?e+"?memori-ai-session-id="+n:e.startsWith("https://")||e.startsWith("http://")?e+(n?"/"+n:""):e.startsWith("cloud://")?t.replace(/v2/,"v1")+"/CloudAsset/"+e.replace("cloud://",""):e.startsWith("guid://")?t.replace(/v2/,"v1")+"/GuidAsset/"+e.replace("guid://",""):a:a}}};exports.default=function(t){var r=function(t){return t?new URL(t.startsWith("http")?t:"https://"+t).origin.replace("http://","https://"):"https://backend.memori.ai"}(t);return i({backend:h(r+"/api/v2")},function(t){return i({correlationPairs:m(t)},m(t),{dialog:v(t)},v(t),{importExport:y(t)},y(t),{intents:w(t)},w(t),{localizationKeys:g(t)},g(t),{media:U(t)},U(t),{memories:b(t)},b(t),{nlp:x(t)},x(t),{people:T(t)},T(t),{promptedQuestions:E(t)},E(t),{search:P(t)},P(t),{session:k(t)},k(t),{stats:L(t)},L(t),{unansweredQuestions:S(t)},S(t),{contextVars:I(t)},I(t),{customDictionary:C(t)},C(t),{chatLogs:M(t)},M(t))}(r+"/memori/v2"),{constants:O,asset:G(r+"/api/v2")})};
//# sourceMappingURL=memori-api-client.cjs.production.min.js.map
{
"version": "0.11.0",
"version": "1.0.0",
"name": "@memori.ai/memori-api-client",

@@ -129,5 +129,4 @@ "description": "React library to integrate a Memori in your app or website",

"dependencies": {
"cross-fetch": "^3.1.5",
"microsoft-cognitiveservices-speech-sdk": "1.20.0"
"cross-fetch": "^3.1.5"
}
}

@@ -70,48 +70,2 @@ # memori-api-client

### TTS
> Experimental
Bundled with this client there is a TTS utility that can be used to synthesize text to speech.
```ts
const memori = memoriApiClient('https://backend.memori.ai');
// Needs Azure Speech API key
// See https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstarts/setup-platform?pivots=programming-language-javascript
// Second parameter is for debug mode
const speechSdk = memori.speech(AZURE_COGNITIVE_SERVICES_TTS_KEY, true);
// Requires the language code of the text to be spoken
// And the voice type (female or male)
const speech = speechSdk('it', 'FEMALE');
speech.speak('Ciao, Memori!', () => {
console.log('spoken');
});
speech.isSpeaking();
speech.stopSpeaking();
```
### STT
> Experimental
There is also a speech recognition utility.
```ts
// Same as for the TTS
const speech = speechSdk('it', 'FEMALE');
speech.recognize(transcript => {
console.log('Recognized ', transcript);
});
speech.isRecognizing();
speech.stopRecognizing();
```
## Development

@@ -118,0 +72,0 @@

@@ -5,3 +5,2 @@ import { getApiUrl } from './helpers/getApiUrl';

import * as constants from './constants';
import speech from './speech';
import asset from './helpers/asset';

@@ -15,3 +14,2 @@

...engine(`${apiUrl}/memori/v2`),
speech,
constants,

@@ -18,0 +16,0 @@ asset: asset(`${apiUrl}/api/v2`),

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc