@joai/sdk 0.9.1 → 0.10.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 CHANGED
@@ -1022,7 +1022,7 @@ declare class OrdersResource {
1022
1022
  type ProductVariation = {
1023
1023
  id: string;
1024
1024
  sku: string;
1025
- name: string;
1025
+ name: TranslatableValue;
1026
1026
  description: string | null;
1027
1027
  price: number;
1028
1028
  badge: string;
@@ -1034,7 +1034,7 @@ type ProductVariation = {
1034
1034
  type ProductItem = {
1035
1035
  id: string;
1036
1036
  slug: string;
1037
- name: string;
1037
+ name: TranslatableValue;
1038
1038
  price: number;
1039
1039
  unit: string;
1040
1040
  tags: string[];
@@ -1051,7 +1051,7 @@ declare class ProductsResource {
1051
1051
  list(): Promise<IAppResponse<ProductItem[]>>;
1052
1052
  get(id: string): Promise<IAppResponse<ProductItem>>;
1053
1053
  create(data: {
1054
- name: string;
1054
+ name: TranslatableValue;
1055
1055
  price: number;
1056
1056
  unit?: string;
1057
1057
  description?: string;
@@ -1174,6 +1174,7 @@ type WarpResponseData = {
1174
1174
  description?: string;
1175
1175
  logo?: string | null;
1176
1176
  } | null;
1177
+ agent?: AgentPrivate | null;
1177
1178
  };
1178
1179
  declare class WarpsResource {
1179
1180
  private readonly http;
@@ -1184,6 +1185,16 @@ declare class WarpsResource {
1184
1185
  brand: string;
1185
1186
  definition: Record<string, any>;
1186
1187
  public?: boolean;
1188
+ agent?: string | null;
1189
+ }): Promise<IAppResponse<{
1190
+ id: string;
1191
+ url: string;
1192
+ definition: Record<string, any>;
1193
+ brand: any;
1194
+ }>>;
1195
+ update(identifier: string, data: {
1196
+ definition?: Record<string, any>;
1197
+ agent?: string | null;
1187
1198
  }): Promise<IAppResponse<{
1188
1199
  id: string;
1189
1200
  }>>;
package/dist/index.mjs CHANGED
@@ -586,6 +586,9 @@ var WarpsResource = class {
586
586
  create(data) {
587
587
  return this.http.post("warps", data);
588
588
  }
589
+ update(identifier, data) {
590
+ return this.http.put(`warps/${identifier}`, data);
591
+ }
589
592
  destroy(identifier) {
590
593
  return this.http.delete(`warps/${identifier}`);
591
594
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "0.9.1",
3
+ "version": "0.10.1",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",