@joai/sdk 1.0.0 → 1.0.1
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 +13 -12
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -121,7 +121,7 @@ type Flow = {
|
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
steps: FlowStep[];
|
|
123
123
|
locales: WarpLocale[];
|
|
124
|
-
|
|
124
|
+
store: StoreInfo;
|
|
125
125
|
screenshots: string[];
|
|
126
126
|
};
|
|
127
127
|
type FlowStep = {
|
|
@@ -775,7 +775,7 @@ type Skill = {
|
|
|
775
775
|
sourcePath: string | null;
|
|
776
776
|
scope?: SkillScopeValue;
|
|
777
777
|
active: boolean;
|
|
778
|
-
|
|
778
|
+
store: StoreInfo;
|
|
779
779
|
createdAt: string;
|
|
780
780
|
media?: Media[];
|
|
781
781
|
screenshots: string[];
|
|
@@ -806,7 +806,7 @@ type Integration = {
|
|
|
806
806
|
meta?: IntegrationMeta;
|
|
807
807
|
details?: IntegrationDetails;
|
|
808
808
|
};
|
|
809
|
-
type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | '
|
|
809
|
+
type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'sms' | 'discord' | 'github';
|
|
810
810
|
type SocialBot = {
|
|
811
811
|
name: string;
|
|
812
812
|
createdAt: string;
|
|
@@ -875,7 +875,7 @@ type Agent = {
|
|
|
875
875
|
avatar: string;
|
|
876
876
|
wallets: Wallet[];
|
|
877
877
|
settings: AgentSettings;
|
|
878
|
-
|
|
878
|
+
store: StoreInfo;
|
|
879
879
|
character?: AgentCharacter | null;
|
|
880
880
|
room: Room;
|
|
881
881
|
role: string | null;
|
|
@@ -889,7 +889,7 @@ type AgentPrivate = {
|
|
|
889
889
|
avatar: string;
|
|
890
890
|
wallets: Wallet[];
|
|
891
891
|
settings: AgentSettings;
|
|
892
|
-
|
|
892
|
+
store: StoreInfo;
|
|
893
893
|
password: string | null;
|
|
894
894
|
authKey: string | null;
|
|
895
895
|
secKey: string;
|
|
@@ -924,7 +924,7 @@ type AgentSettings = {
|
|
|
924
924
|
auto: boolean;
|
|
925
925
|
'model.url': string;
|
|
926
926
|
'voice.output': boolean;
|
|
927
|
-
'voice.id': string;
|
|
927
|
+
'voice.id': string | null;
|
|
928
928
|
'agent.gender'?: AgentGender;
|
|
929
929
|
'proactivity.enabled': boolean;
|
|
930
930
|
'proactivity.quietHoursStart'?: number;
|
|
@@ -1106,7 +1106,7 @@ type StoreAgent = {
|
|
|
1106
1106
|
name: string | null;
|
|
1107
1107
|
bio: string | null;
|
|
1108
1108
|
} | null;
|
|
1109
|
-
|
|
1109
|
+
store: StoreInfo;
|
|
1110
1110
|
screenshots: string[];
|
|
1111
1111
|
mcpEndpoint: string;
|
|
1112
1112
|
a2aCard: string;
|
|
@@ -1139,8 +1139,8 @@ type StorePriceTier = {
|
|
|
1139
1139
|
label: string;
|
|
1140
1140
|
};
|
|
1141
1141
|
/**
|
|
1142
|
-
* Normalized representation of any
|
|
1143
|
-
* All
|
|
1142
|
+
* Normalized representation of any store entity for use in checkout flows.
|
|
1143
|
+
* All store entities share a `.store: StoreInfo` property —
|
|
1144
1144
|
* combine that with the entity type and ID to construct this.
|
|
1145
1145
|
*/
|
|
1146
1146
|
type StorePurchaseResult = {
|
|
@@ -1189,7 +1189,7 @@ type Blueprint = {
|
|
|
1189
1189
|
verified: boolean;
|
|
1190
1190
|
createdAt: string;
|
|
1191
1191
|
locales: WarpLocale[];
|
|
1192
|
-
|
|
1192
|
+
store: StoreInfo;
|
|
1193
1193
|
tags: string[];
|
|
1194
1194
|
screenshots: string[];
|
|
1195
1195
|
};
|
|
@@ -2619,7 +2619,7 @@ declare class AgentsResource {
|
|
|
2619
2619
|
delete(uuid: string): Promise<IAppResponse<void>>;
|
|
2620
2620
|
updatePassword(uuid: string, password: string): Promise<IAppResponse<void>>;
|
|
2621
2621
|
storePassword(uuid: string, password: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2622
|
-
updateSetting(uuid: string, key:
|
|
2622
|
+
updateSetting<K extends keyof AgentSettings>(uuid: string, key: K, value: AgentSettings[K]): Promise<IAppResponse<AgentPrivate>>;
|
|
2623
2623
|
updateMeta(uuid: string, key: string, value: Record<string, unknown> | null): Promise<IAppResponse<AgentPrivate>>;
|
|
2624
2624
|
publish(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2625
2625
|
unpublish(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
@@ -3627,6 +3627,7 @@ declare class RemindersResource {
|
|
|
3627
3627
|
declare class RoomsResource {
|
|
3628
3628
|
private readonly http;
|
|
3629
3629
|
constructor(http: IHttpService);
|
|
3630
|
+
get(id: string): Promise<IAppResponse<Room>>;
|
|
3630
3631
|
list(options?: {
|
|
3631
3632
|
team?: string;
|
|
3632
3633
|
agent?: string;
|
|
@@ -3726,7 +3727,7 @@ declare class SkillsResource {
|
|
|
3726
3727
|
isPublic?: boolean;
|
|
3727
3728
|
price?: number;
|
|
3728
3729
|
}): Promise<IAppResponse<Skill>>;
|
|
3729
|
-
update(id: string, data: Partial<Omit<Skill, 'media' | '
|
|
3730
|
+
update(id: string, data: Partial<Omit<Skill, 'media' | 'store'>> & {
|
|
3730
3731
|
media?: MediaLibraryItems;
|
|
3731
3732
|
public?: boolean;
|
|
3732
3733
|
price?: number;
|
package/dist/index.mjs
CHANGED
|
@@ -149,7 +149,7 @@ var AgentsResource = class {
|
|
|
149
149
|
return this.http.put(`agents/${uuid}/settings/${key}`, { value });
|
|
150
150
|
}
|
|
151
151
|
updateMeta(uuid, key, value) {
|
|
152
|
-
return this.http.put(`agents/${uuid}/
|
|
152
|
+
return this.http.put(`agents/${uuid}/meta/${key}`, { value });
|
|
153
153
|
}
|
|
154
154
|
publish(uuid) {
|
|
155
155
|
return this.http.post(`agents/${uuid}/publish`, {});
|
|
@@ -1587,7 +1587,10 @@ var ProjectsResource = class {
|
|
|
1587
1587
|
return this.http.delete(`teams/${team}/projects/${projectId}`);
|
|
1588
1588
|
}
|
|
1589
1589
|
produce(team, agent, projectId) {
|
|
1590
|
-
return this.http.post(`
|
|
1590
|
+
return this.http.post(`studio/projects/${projectId}/produce`, {
|
|
1591
|
+
agentId: agent,
|
|
1592
|
+
team
|
|
1593
|
+
});
|
|
1591
1594
|
}
|
|
1592
1595
|
exportProject(team, agent, projectId) {
|
|
1593
1596
|
return this.http.post(`teams/${team}/projects/${projectId}/export`, { agentId: agent });
|
|
@@ -1615,6 +1618,9 @@ var RoomsResource = class {
|
|
|
1615
1618
|
constructor(http) {
|
|
1616
1619
|
this.http = http;
|
|
1617
1620
|
}
|
|
1621
|
+
get(id) {
|
|
1622
|
+
return this.http.get(`rooms/${id}`);
|
|
1623
|
+
}
|
|
1618
1624
|
list(options) {
|
|
1619
1625
|
const params = new URLSearchParams();
|
|
1620
1626
|
if (options) {
|
|
@@ -2366,7 +2372,7 @@ const DEFAULT_TTL = 15e3;
|
|
|
2366
2372
|
const DEFAULTS = {
|
|
2367
2373
|
blueprints: 3e5,
|
|
2368
2374
|
flows: 3e5,
|
|
2369
|
-
|
|
2375
|
+
"billing/catalog": 3e5,
|
|
2370
2376
|
skills: 3e5,
|
|
2371
2377
|
sites: 3e5,
|
|
2372
2378
|
stores: 3e4,
|