@joai/sdk 10.0.0 → 12.0.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.d.mts +4 -1
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -689,7 +689,10 @@ type AuthConfirmCodeRequest = {
|
|
|
689
689
|
phone?: string;
|
|
690
690
|
email?: string;
|
|
691
691
|
team?: string;
|
|
692
|
-
table?: string;
|
|
692
|
+
table?: string; /** Newsletter signup: the confirmed code also records a confirmed marketing consent on the user's contact of `team` (required then). */
|
|
693
|
+
marketingConsent?: boolean; /** Language of the consent record, e.g. `de`. */
|
|
694
|
+
locale?: string; /** Page the signup happened on, kept as consent evidence. */
|
|
695
|
+
sourceUrl?: string;
|
|
693
696
|
};
|
|
694
697
|
type AuthConfirmCodeResponse = {
|
|
695
698
|
authUrl: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2928,6 +2928,7 @@ const audiencePreviewQuery = (payload) => {
|
|
|
2928
2928
|
if (payload.segmentId) search.set("segmentId", payload.segmentId);
|
|
2929
2929
|
if (payload.tags?.length) search.set("tags", payload.tags.join(","));
|
|
2930
2930
|
if (payload.contactIds?.length) search.set("contactIds", payload.contactIds.join(","));
|
|
2931
|
+
if (payload.installIds?.length) search.set("installIds", payload.installIds.join(","));
|
|
2931
2932
|
}
|
|
2932
2933
|
const query = search.toString();
|
|
2933
2934
|
return query ? `?${query}` : "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joai/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "JoAi public API SDK — build with your AI agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"test": "jest --config jest.config.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@joai/core": "^5.
|
|
38
|
+
"@joai/core": "^5.3.0",
|
|
39
39
|
"@joai/warps": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@joai/core": "^5.
|
|
42
|
+
"@joai/core": "^5.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsdown": "^0.21.0",
|