@animaapp/anima-sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -386,6 +386,7 @@ export declare type GetCodeFromWebsiteHandler = ((message: SSEGetCodeFromWebsite
|
|
|
386
386
|
export declare type GetCodeFromWebsiteParams = {
|
|
387
387
|
url?: string;
|
|
388
388
|
mhtml?: string;
|
|
389
|
+
mhtmlUrl?: string;
|
|
389
390
|
assetsStorage?: AssetsStorage;
|
|
390
391
|
settings: GetCodeFromWebsiteSettings;
|
|
391
392
|
tracking?: TrackingInfos;
|
package/dist/index.js
CHANGED
|
@@ -4128,7 +4128,9 @@ class Gs {
|
|
|
4128
4128
|
codegenSettings: s.codegenSettings,
|
|
4129
4129
|
webhookUrl: t.webhookUrl,
|
|
4130
4130
|
prompt: t.prompt,
|
|
4131
|
-
images: t.images
|
|
4131
|
+
images: t.images,
|
|
4132
|
+
// @ts-expect-error: We don't need to expose this parameter to GetCodeParams
|
|
4133
|
+
createSession: t.createSession
|
|
4132
4134
|
};
|
|
4133
4135
|
return F(this, le, Ke).call(this, "/v1/codegen", c, n, "codegen", r);
|
|
4134
4136
|
});
|
|
@@ -4138,7 +4140,13 @@ class Gs {
|
|
|
4138
4140
|
let i = t.tracking;
|
|
4139
4141
|
w(this, C) && "userId" in w(this, C) && w(this, C).userId && (i != null && i.externalId || (i = { externalId: w(this, C).userId }));
|
|
4140
4142
|
let s;
|
|
4141
|
-
if (t.
|
|
4143
|
+
if (t.mhtmlUrl)
|
|
4144
|
+
s = {
|
|
4145
|
+
type: "hosted-mhtml",
|
|
4146
|
+
mhtmlUrl: t.mhtmlUrl,
|
|
4147
|
+
url: t.url
|
|
4148
|
+
};
|
|
4149
|
+
else if (t.mhtml)
|
|
4142
4150
|
s = {
|
|
4143
4151
|
type: "mhtml",
|
|
4144
4152
|
mhtml: t.mhtml,
|
|
@@ -4150,7 +4158,7 @@ class Gs {
|
|
|
4150
4158
|
url: t.url
|
|
4151
4159
|
};
|
|
4152
4160
|
else
|
|
4153
|
-
throw new Error("Either 'url' or '
|
|
4161
|
+
throw new Error("Either 'url', 'mhtml' or 'mhtmlUrl' must be provided");
|
|
4154
4162
|
let o;
|
|
4155
4163
|
t.experimental_useNewReactEngine && (o = "react-v2");
|
|
4156
4164
|
const c = {
|