@joai/sdk 12.0.3 → 12.0.4
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 +5 -2
- package/dist/index.mjs +6 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -678,7 +678,7 @@ declare class ContentResource {
|
|
|
678
678
|
//#region src/resources/auth.d.ts
|
|
679
679
|
type NativeSocialAuthProvider = Extract<SocialAuthProvider, 'apple' | 'google'>;
|
|
680
680
|
type AuthSendCodeRequest = {
|
|
681
|
-
name
|
|
681
|
+
/** Required when the account is new or only has a placeholder name; omit when JoAi already has a usable name. */name?: string;
|
|
682
682
|
phone?: string;
|
|
683
683
|
email: string;
|
|
684
684
|
team?: string;
|
|
@@ -2098,7 +2098,10 @@ declare class UpdatesResource {
|
|
|
2098
2098
|
upcoming?: boolean;
|
|
2099
2099
|
past?: boolean;
|
|
2100
2100
|
}): Promise<_$_joai_core0.IAppResponse<Update[]>>;
|
|
2101
|
-
|
|
2101
|
+
/** Fetch by hashid or slug. Public for published updates when `team` is set (header or param). */
|
|
2102
|
+
get(id: string, params?: {
|
|
2103
|
+
team?: string;
|
|
2104
|
+
}): Promise<_$_joai_core0.IAppResponse<Update>>;
|
|
2102
2105
|
create(payload: UpdateCreatePayload): Promise<_$_joai_core0.IAppResponse<Update>>;
|
|
2103
2106
|
update(id: string, payload: UpdateUpdatePayload): Promise<_$_joai_core0.IAppResponse<Update>>;
|
|
2104
2107
|
delete(id: string): Promise<_$_joai_core0.IAppResponse<void>>;
|
package/dist/index.mjs
CHANGED
|
@@ -3064,8 +3064,12 @@ var UpdatesResource = class {
|
|
|
3064
3064
|
const qs = query.toString();
|
|
3065
3065
|
return this.http.get(`updates${qs ? "?" + qs : ""}`);
|
|
3066
3066
|
}
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
/** Fetch by hashid or slug. Public for published updates when `team` is set (header or param). */
|
|
3068
|
+
get(id, params) {
|
|
3069
|
+
const query = new URLSearchParams();
|
|
3070
|
+
if (params?.team) query.set("team", params.team);
|
|
3071
|
+
const qs = query.toString();
|
|
3072
|
+
return this.http.get(`updates/${id}${qs ? "?" + qs : ""}`);
|
|
3069
3073
|
}
|
|
3070
3074
|
create(payload) {
|
|
3071
3075
|
return this.http.post("updates", payload);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joai/sdk",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.4",
|
|
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.3.
|
|
38
|
+
"@joai/core": "^5.3.4",
|
|
39
39
|
"@joai/warps": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@joai/core": "^5.3.
|
|
42
|
+
"@joai/core": "^5.3.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsdown": "^0.21.0",
|