@joai/sdk 0.9.1 → 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.d.mts +10 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1184,6 +1184,16 @@ declare class WarpsResource {
|
|
|
1184
1184
|
brand: string;
|
|
1185
1185
|
definition: Record<string, any>;
|
|
1186
1186
|
public?: boolean;
|
|
1187
|
+
agent?: string | null;
|
|
1188
|
+
}): Promise<IAppResponse<{
|
|
1189
|
+
id: string;
|
|
1190
|
+
url: string;
|
|
1191
|
+
definition: Record<string, any>;
|
|
1192
|
+
brand: any;
|
|
1193
|
+
}>>;
|
|
1194
|
+
update(identifier: string, data: {
|
|
1195
|
+
definition?: Record<string, any>;
|
|
1196
|
+
agent?: string | null;
|
|
1187
1197
|
}): Promise<IAppResponse<{
|
|
1188
1198
|
id: string;
|
|
1189
1199
|
}>>;
|
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
|
}
|