@alva-ai/toolkit 0.15.0 → 0.15.1-beta.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 +3 -3
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +96 -1
- package/dist/cli.js +481 -14
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +104 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -2
- package/dist/index.d.ts +97 -2
- package/dist/index.js +102 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
|
@@ -307,6 +307,56 @@ interface FeedDeleteRequest {
|
|
|
307
307
|
/** Numeric feed id to delete. */
|
|
308
308
|
id: number;
|
|
309
309
|
}
|
|
310
|
+
type FeedListStatus = 'active' | 'paused' | 'all';
|
|
311
|
+
interface FeedListParams {
|
|
312
|
+
/** Page size, default 50, max 100 server-side. */
|
|
313
|
+
limit?: number;
|
|
314
|
+
/** Opaque cursor token from the previous page. */
|
|
315
|
+
cursor?: string;
|
|
316
|
+
/** Runtime status filter; defaults to active on the gateway. */
|
|
317
|
+
status?: FeedListStatus;
|
|
318
|
+
}
|
|
319
|
+
interface FeedListItem {
|
|
320
|
+
/** Numeric feed id encoded as a string, matching the gateway response. */
|
|
321
|
+
id: string;
|
|
322
|
+
name: string;
|
|
323
|
+
/** Feed runtime status. */
|
|
324
|
+
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | (string & {});
|
|
325
|
+
cron_expression?: string;
|
|
326
|
+
total_runs: number;
|
|
327
|
+
used_by_total: number;
|
|
328
|
+
}
|
|
329
|
+
interface FeedListResponse {
|
|
330
|
+
feeds: FeedListItem[];
|
|
331
|
+
next_cursor?: string;
|
|
332
|
+
has_more: boolean;
|
|
333
|
+
}
|
|
334
|
+
interface AutomationInspectRequest {
|
|
335
|
+
/** Numeric automation id. Currently the same underlying feed id. */
|
|
336
|
+
id: number;
|
|
337
|
+
}
|
|
338
|
+
interface AutomationInspectResponse {
|
|
339
|
+
/** Numeric automation id encoded as a string, matching the gateway response. */
|
|
340
|
+
id: string;
|
|
341
|
+
/** Backing feed id encoded as a string. */
|
|
342
|
+
feed_id: string;
|
|
343
|
+
name: string;
|
|
344
|
+
description?: string;
|
|
345
|
+
/** Automation runtime status. */
|
|
346
|
+
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | (string & {});
|
|
347
|
+
cron_expression?: string;
|
|
348
|
+
total_runs: number;
|
|
349
|
+
/**
|
|
350
|
+
* Backend product-flow registry id. Null for ordinary non-flow automations.
|
|
351
|
+
*/
|
|
352
|
+
flow_id: string | null;
|
|
353
|
+
/**
|
|
354
|
+
* Absolute ALFS config path for caller-owned product-flow automations.
|
|
355
|
+
* Null for ordinary automations and product-flow automations not owned by
|
|
356
|
+
* the caller.
|
|
357
|
+
*/
|
|
358
|
+
flow_config_path: string | null;
|
|
359
|
+
}
|
|
310
360
|
interface FeedStatusUpdateRequest {
|
|
311
361
|
/** Numeric feed id to stop/resume. */
|
|
312
362
|
id: number;
|
|
@@ -315,7 +365,7 @@ interface FeedStatusUpdateResponse {
|
|
|
315
365
|
/** Echoed feed id (string form, matching gateway response). */
|
|
316
366
|
id: string;
|
|
317
367
|
/** Feed runtime status after the update. */
|
|
318
|
-
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | string;
|
|
368
|
+
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | (string & {});
|
|
319
369
|
}
|
|
320
370
|
interface FeedDeleteResponse {
|
|
321
371
|
/** Echoed feed id (string form, matching gateway response). */
|
|
@@ -995,6 +1045,10 @@ declare class ReleaseResource {
|
|
|
995
1045
|
declare class FeedResource {
|
|
996
1046
|
private client;
|
|
997
1047
|
constructor(client: AlvaClient);
|
|
1048
|
+
/**
|
|
1049
|
+
* List feeds owned by the caller. Backed by GET /api/v1/feed.
|
|
1050
|
+
*/
|
|
1051
|
+
list(params?: FeedListParams): Promise<FeedListResponse>;
|
|
998
1052
|
/**
|
|
999
1053
|
* Stop a feed's producer cronjob. This pauses future scheduled runs while
|
|
1000
1054
|
* preserving the feed and its existing data.
|
|
@@ -1019,6 +1073,24 @@ declare class FeedResource {
|
|
|
1019
1073
|
delete(params: FeedDeleteRequest): Promise<FeedDeleteResponse>;
|
|
1020
1074
|
}
|
|
1021
1075
|
|
|
1076
|
+
/**
|
|
1077
|
+
* Product-facing automation API. Backed by the existing feed/release gateway
|
|
1078
|
+
* surfaces while those lower-level names remain on the wire for compatibility.
|
|
1079
|
+
*/
|
|
1080
|
+
declare class AutomationResource {
|
|
1081
|
+
private client;
|
|
1082
|
+
constructor(client: AlvaClient);
|
|
1083
|
+
list(params?: FeedListParams): Promise<FeedListResponse>;
|
|
1084
|
+
/**
|
|
1085
|
+
* Inspect one automation. Backed by GET /api/v1/automation/:id.
|
|
1086
|
+
*/
|
|
1087
|
+
inspect(params: AutomationInspectRequest): Promise<AutomationInspectResponse>;
|
|
1088
|
+
stop(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
1089
|
+
resume(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
1090
|
+
delete(params: FeedDeleteRequest): Promise<FeedDeleteResponse>;
|
|
1091
|
+
publish(params: FeedReleaseRequest): Promise<FeedReleaseResponse>;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1022
1094
|
/** Playbook visibility states understood by the gateway. */
|
|
1023
1095
|
type PlaybookVisibility = 'public' | 'private' | 'paid';
|
|
1024
1096
|
interface SetVisibilityParams {
|
|
@@ -1473,6 +1545,25 @@ declare class SubscriptionsResource {
|
|
|
1473
1545
|
unsubscribeBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
|
|
1474
1546
|
}
|
|
1475
1547
|
|
|
1548
|
+
/**
|
|
1549
|
+
* Product-facing alert API. The current transport still calls the legacy
|
|
1550
|
+
* subscription and notification-history endpoints.
|
|
1551
|
+
*/
|
|
1552
|
+
declare class AlertsResource {
|
|
1553
|
+
private client;
|
|
1554
|
+
constructor(client: AlvaClient);
|
|
1555
|
+
list(params?: PushSubscriptionListParams): Promise<PushSubscriptionListResponse>;
|
|
1556
|
+
enableAutomation(params: PushSubscriptionFeedParams): Promise<SubscribeFeedResponse>;
|
|
1557
|
+
disableAutomation(params: PushSubscriptionFeedParams): Promise<UnsubscribeResponse>;
|
|
1558
|
+
enablePlaybook(params: PushSubscriptionPlaybookParams): Promise<SubscribePlaybookResponse>;
|
|
1559
|
+
disablePlaybook(params: PushSubscriptionPlaybookParams): Promise<UnsubscribeResponse>;
|
|
1560
|
+
disableBatch(params: UnsubscribeBatchParams): Promise<UnsubscribeBatchResponse>;
|
|
1561
|
+
historyAutomation(params: NotificationListParams): Promise<FeedNotificationListResponse>;
|
|
1562
|
+
historyPlaybook(params: NotificationListParams): Promise<PlaybookNotificationListResponse>;
|
|
1563
|
+
preferences(): Promise<NotificationPreferencesResponse>;
|
|
1564
|
+
updatePreference(params: NotificationPreferenceUpdateParams): Promise<NotificationPreferenceUpdateResponse>;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1476
1567
|
/**
|
|
1477
1568
|
* Group push subscriptions for an external channel session.
|
|
1478
1569
|
*
|
|
@@ -1640,6 +1731,7 @@ declare class AlvaClient {
|
|
|
1640
1731
|
private _serviceAccount?;
|
|
1641
1732
|
private _release?;
|
|
1642
1733
|
private _feed?;
|
|
1734
|
+
private _automation?;
|
|
1643
1735
|
private _playbooks?;
|
|
1644
1736
|
private _secrets?;
|
|
1645
1737
|
private _sdk?;
|
|
@@ -1655,6 +1747,7 @@ declare class AlvaClient {
|
|
|
1655
1747
|
private _notifications?;
|
|
1656
1748
|
private _notificationPreferences?;
|
|
1657
1749
|
private _subscriptions?;
|
|
1750
|
+
private _alerts?;
|
|
1658
1751
|
private _channelGroupSubscriptions?;
|
|
1659
1752
|
private _feedback?;
|
|
1660
1753
|
private _functions?;
|
|
@@ -1666,6 +1759,7 @@ declare class AlvaClient {
|
|
|
1666
1759
|
get serviceAccount(): ServiceAccountResource;
|
|
1667
1760
|
get release(): ReleaseResource;
|
|
1668
1761
|
get feed(): FeedResource;
|
|
1762
|
+
get automation(): AutomationResource;
|
|
1669
1763
|
get playbooks(): PlaybooksResource;
|
|
1670
1764
|
get secrets(): SecretsResource;
|
|
1671
1765
|
get sdk(): SdkDocsResource;
|
|
@@ -1681,6 +1775,7 @@ declare class AlvaClient {
|
|
|
1681
1775
|
get notifications(): NotificationsResource;
|
|
1682
1776
|
get notificationPreferences(): NotificationPreferencesResource;
|
|
1683
1777
|
get subscriptions(): SubscriptionsResource;
|
|
1778
|
+
get alerts(): AlertsResource;
|
|
1684
1779
|
get channelGroupSubscriptions(): ChannelGroupSubscriptionsResource;
|
|
1685
1780
|
get feedback(): FeedbackResource;
|
|
1686
1781
|
get functions(): FunctionsResource;
|