@inneropen/marvin-sdk 3.2.0-next.10 → 3.2.0-next.12
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/platform.cjs +11 -8
- package/dist/platform.d.cts +6 -2
- package/dist/platform.d.ts +6 -2
- package/dist/platform.js +11 -8
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -1172,23 +1172,15 @@ var WebhooksModule = class {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Create a new webhook
|
|
1175
|
-
* Validates URL to prevent SSRF attacks
|
|
1176
1175
|
*/
|
|
1177
1176
|
async create(data) {
|
|
1178
|
-
if (data.url) {
|
|
1179
|
-
this.validateWebhookUrl(data.url);
|
|
1180
|
-
}
|
|
1181
1177
|
return this.http.post("/api/groups/webhooks", data);
|
|
1182
1178
|
}
|
|
1183
1179
|
/**
|
|
1184
1180
|
* Update a webhook
|
|
1185
|
-
* Validates URL if provided to prevent SSRF attacks
|
|
1186
1181
|
*/
|
|
1187
1182
|
async update(id, data) {
|
|
1188
1183
|
const validId = this.http.validatePathParam(id, "webhook ID");
|
|
1189
|
-
if (data.url) {
|
|
1190
|
-
this.validateWebhookUrl(data.url);
|
|
1191
|
-
}
|
|
1192
1184
|
return this.http.put(`/api/groups/webhooks/${validId}`, data);
|
|
1193
1185
|
}
|
|
1194
1186
|
/**
|
|
@@ -1674,6 +1666,17 @@ var ScheduledTasksModule = class {
|
|
|
1674
1666
|
`/api/platform/scheduled-tasks/${idOrSlug}/history${query}`
|
|
1675
1667
|
);
|
|
1676
1668
|
}
|
|
1669
|
+
/**
|
|
1670
|
+
* Get execution log for all tasks in the current workspace
|
|
1671
|
+
*/
|
|
1672
|
+
async log(options) {
|
|
1673
|
+
const params = new URLSearchParams();
|
|
1674
|
+
if (options?.limit) {
|
|
1675
|
+
params.set("limit", options.limit.toString());
|
|
1676
|
+
}
|
|
1677
|
+
const query = params.toString() ? `?${params.toString()}` : "";
|
|
1678
|
+
return this.http.get(`/api/platform/scheduled-tasks/log${query}`);
|
|
1679
|
+
}
|
|
1677
1680
|
/**
|
|
1678
1681
|
* Get available task types
|
|
1679
1682
|
*/
|
package/dist/platform.d.cts
CHANGED
|
@@ -552,12 +552,10 @@ declare class WebhooksModule {
|
|
|
552
552
|
get(id: string): Promise<Webhook>;
|
|
553
553
|
/**
|
|
554
554
|
* Create a new webhook
|
|
555
|
-
* Validates URL to prevent SSRF attacks
|
|
556
555
|
*/
|
|
557
556
|
create(data: WebhookCreate): Promise<Webhook>;
|
|
558
557
|
/**
|
|
559
558
|
* Update a webhook
|
|
560
|
-
* Validates URL if provided to prevent SSRF attacks
|
|
561
559
|
*/
|
|
562
560
|
update(id: string, data: WebhookUpdate): Promise<Webhook>;
|
|
563
561
|
/**
|
|
@@ -1091,6 +1089,12 @@ declare class ScheduledTasksModule {
|
|
|
1091
1089
|
history(idOrSlug: string, options?: {
|
|
1092
1090
|
limit?: number;
|
|
1093
1091
|
}): Promise<ScheduledTaskExecutionLog[]>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Get execution log for all tasks in the current workspace
|
|
1094
|
+
*/
|
|
1095
|
+
log(options?: {
|
|
1096
|
+
limit?: number;
|
|
1097
|
+
}): Promise<ScheduledTaskExecutionLog[]>;
|
|
1094
1098
|
/**
|
|
1095
1099
|
* Get available task types
|
|
1096
1100
|
*/
|
package/dist/platform.d.ts
CHANGED
|
@@ -552,12 +552,10 @@ declare class WebhooksModule {
|
|
|
552
552
|
get(id: string): Promise<Webhook>;
|
|
553
553
|
/**
|
|
554
554
|
* Create a new webhook
|
|
555
|
-
* Validates URL to prevent SSRF attacks
|
|
556
555
|
*/
|
|
557
556
|
create(data: WebhookCreate): Promise<Webhook>;
|
|
558
557
|
/**
|
|
559
558
|
* Update a webhook
|
|
560
|
-
* Validates URL if provided to prevent SSRF attacks
|
|
561
559
|
*/
|
|
562
560
|
update(id: string, data: WebhookUpdate): Promise<Webhook>;
|
|
563
561
|
/**
|
|
@@ -1091,6 +1089,12 @@ declare class ScheduledTasksModule {
|
|
|
1091
1089
|
history(idOrSlug: string, options?: {
|
|
1092
1090
|
limit?: number;
|
|
1093
1091
|
}): Promise<ScheduledTaskExecutionLog[]>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Get execution log for all tasks in the current workspace
|
|
1094
|
+
*/
|
|
1095
|
+
log(options?: {
|
|
1096
|
+
limit?: number;
|
|
1097
|
+
}): Promise<ScheduledTaskExecutionLog[]>;
|
|
1094
1098
|
/**
|
|
1095
1099
|
* Get available task types
|
|
1096
1100
|
*/
|
package/dist/platform.js
CHANGED
|
@@ -728,23 +728,15 @@ var WebhooksModule = class {
|
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
730
|
* Create a new webhook
|
|
731
|
-
* Validates URL to prevent SSRF attacks
|
|
732
731
|
*/
|
|
733
732
|
async create(data) {
|
|
734
|
-
if (data.url) {
|
|
735
|
-
this.validateWebhookUrl(data.url);
|
|
736
|
-
}
|
|
737
733
|
return this.http.post("/api/groups/webhooks", data);
|
|
738
734
|
}
|
|
739
735
|
/**
|
|
740
736
|
* Update a webhook
|
|
741
|
-
* Validates URL if provided to prevent SSRF attacks
|
|
742
737
|
*/
|
|
743
738
|
async update(id, data) {
|
|
744
739
|
const validId = this.http.validatePathParam(id, "webhook ID");
|
|
745
|
-
if (data.url) {
|
|
746
|
-
this.validateWebhookUrl(data.url);
|
|
747
|
-
}
|
|
748
740
|
return this.http.put(`/api/groups/webhooks/${validId}`, data);
|
|
749
741
|
}
|
|
750
742
|
/**
|
|
@@ -1230,6 +1222,17 @@ var ScheduledTasksModule = class {
|
|
|
1230
1222
|
`/api/platform/scheduled-tasks/${idOrSlug}/history${query}`
|
|
1231
1223
|
);
|
|
1232
1224
|
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Get execution log for all tasks in the current workspace
|
|
1227
|
+
*/
|
|
1228
|
+
async log(options) {
|
|
1229
|
+
const params = new URLSearchParams();
|
|
1230
|
+
if (options?.limit) {
|
|
1231
|
+
params.set("limit", options.limit.toString());
|
|
1232
|
+
}
|
|
1233
|
+
const query = params.toString() ? `?${params.toString()}` : "";
|
|
1234
|
+
return this.http.get(`/api/platform/scheduled-tasks/log${query}`);
|
|
1235
|
+
}
|
|
1233
1236
|
/**
|
|
1234
1237
|
* Get available task types
|
|
1235
1238
|
*/
|