@alva-ai/toolkit 0.23.1 → 0.24.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/browser.global.js +31 -6
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +55 -1
- package/dist/cli.js +412 -36
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +56 -2
- package/dist/dispatch.js +163 -13
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +316 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -2
- package/dist/index.d.ts +56 -2
- package/dist/index.js +315 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
|
@@ -229,7 +229,8 @@ interface Cronjob {
|
|
|
229
229
|
path: string;
|
|
230
230
|
cron_expression: string;
|
|
231
231
|
status: string;
|
|
232
|
-
|
|
232
|
+
/** Valid current rows are objects; legacy invalid rows are returned as strings. */
|
|
233
|
+
args: Record<string, unknown> | string | null;
|
|
233
234
|
/** Whether successful Feed runs may deliver alerts to subscribers. */
|
|
234
235
|
push_notify: boolean;
|
|
235
236
|
/** Per-cronjob V8 heap cap (MB). null when using the server default. */
|
|
@@ -448,6 +449,42 @@ interface AutomationUpdateResponse {
|
|
|
448
449
|
version: string;
|
|
449
450
|
cronjob_id: number;
|
|
450
451
|
}
|
|
452
|
+
interface AutomationEmailDelivery {
|
|
453
|
+
isEnabled: boolean;
|
|
454
|
+
isAvailable: boolean;
|
|
455
|
+
address: string | null;
|
|
456
|
+
}
|
|
457
|
+
interface AutomationAlertDelivery {
|
|
458
|
+
isEnabled: boolean;
|
|
459
|
+
alvaChannels: Array<{
|
|
460
|
+
id: string;
|
|
461
|
+
}>;
|
|
462
|
+
email: AutomationEmailDelivery;
|
|
463
|
+
}
|
|
464
|
+
interface AutomationAlertDeliveryGetRequest {
|
|
465
|
+
/** Positive decimal automation id kept as a string to preserve int64 precision. */
|
|
466
|
+
id: string;
|
|
467
|
+
}
|
|
468
|
+
interface AutomationAlertDeliveryUpdateRequest {
|
|
469
|
+
/** Positive decimal automation id kept as a string to preserve int64 precision. */
|
|
470
|
+
id: string;
|
|
471
|
+
/** Replace Alva destinations when present; an explicit empty list clears them. */
|
|
472
|
+
alvaChannelIds?: readonly string[];
|
|
473
|
+
/** Update only the verified-account email destination when present. */
|
|
474
|
+
emailEnabled?: boolean;
|
|
475
|
+
}
|
|
476
|
+
interface AutomationAlertDeliveryUpdateResponse {
|
|
477
|
+
automation: {
|
|
478
|
+
id: string;
|
|
479
|
+
};
|
|
480
|
+
alertDelivery: {
|
|
481
|
+
isEnabled: boolean;
|
|
482
|
+
alvaChannels?: Array<{
|
|
483
|
+
id: string;
|
|
484
|
+
}>;
|
|
485
|
+
email?: AutomationEmailDelivery;
|
|
486
|
+
};
|
|
487
|
+
}
|
|
451
488
|
interface FeedStatusUpdateRequest {
|
|
452
489
|
/** Numeric feed id to stop/resume. */
|
|
453
490
|
id: number;
|
|
@@ -1085,17 +1122,26 @@ declare class RunResource {
|
|
|
1085
1122
|
private client;
|
|
1086
1123
|
constructor(client: AlvaClient);
|
|
1087
1124
|
execute(params: RunRequest): Promise<RunResponse>;
|
|
1125
|
+
/** @internal Used by the CLI to preserve the exact --args JSON text. */
|
|
1126
|
+
_executeSerializedArgs(params: RunRequest, serializedArgs: string): Promise<RunResponse>;
|
|
1127
|
+
private request;
|
|
1088
1128
|
}
|
|
1089
1129
|
|
|
1090
1130
|
declare class DeployResource {
|
|
1091
1131
|
private client;
|
|
1092
1132
|
constructor(client: AlvaClient);
|
|
1093
1133
|
create(params: CronjobCreateRequest): Promise<Cronjob>;
|
|
1134
|
+
/** @internal Used by the CLI to preserve the exact --args JSON text. */
|
|
1135
|
+
_createSerializedArgs(params: CronjobCreateRequest, serializedArgs: string): Promise<Cronjob>;
|
|
1136
|
+
private createRequest;
|
|
1094
1137
|
list(params?: CronjobListParams): Promise<CronjobListResponse>;
|
|
1095
1138
|
get(params: {
|
|
1096
1139
|
id: number;
|
|
1097
1140
|
}): Promise<Cronjob>;
|
|
1098
1141
|
update(params: CronjobUpdateRequest): Promise<Cronjob>;
|
|
1142
|
+
/** @internal Used by the CLI to preserve the exact --args JSON text. */
|
|
1143
|
+
_updateSerializedArgs(params: CronjobUpdateRequest, serializedArgs: string): Promise<Cronjob>;
|
|
1144
|
+
private updateRequest;
|
|
1099
1145
|
delete(params: {
|
|
1100
1146
|
id: number;
|
|
1101
1147
|
}): Promise<void>;
|
|
@@ -1211,6 +1257,7 @@ declare class FeedResource {
|
|
|
1211
1257
|
*/
|
|
1212
1258
|
declare class AutomationResource {
|
|
1213
1259
|
private client;
|
|
1260
|
+
readonly delivery: AutomationAlertDeliveryResource;
|
|
1214
1261
|
constructor(client: AlvaClient);
|
|
1215
1262
|
list(params?: FeedListParams): Promise<FeedListResponse>;
|
|
1216
1263
|
/**
|
|
@@ -1224,6 +1271,13 @@ declare class AutomationResource {
|
|
|
1224
1271
|
delete(params: FeedDeleteRequest): Promise<FeedDeleteResponse>;
|
|
1225
1272
|
publish(params: FeedReleaseRequest): Promise<FeedReleaseResponse>;
|
|
1226
1273
|
}
|
|
1274
|
+
declare class AutomationAlertDeliveryResource {
|
|
1275
|
+
private client;
|
|
1276
|
+
constructor(client: AlvaClient);
|
|
1277
|
+
get(params: AutomationAlertDeliveryGetRequest): Promise<AutomationAlertDelivery>;
|
|
1278
|
+
update(params: AutomationAlertDeliveryUpdateRequest): Promise<AutomationAlertDeliveryUpdateResponse>;
|
|
1279
|
+
private graphql;
|
|
1280
|
+
}
|
|
1227
1281
|
|
|
1228
1282
|
/** Playbook visibility states understood by the gateway. */
|
|
1229
1283
|
type PlaybookVisibility = 'public' | 'private' | 'paid';
|