@alva-ai/toolkit 0.11.2-beta.0 → 0.11.2
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 +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.js +53 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +36 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +36 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -228,6 +228,16 @@ interface FeedDeleteRequest {
|
|
|
228
228
|
/** Numeric feed id to delete. */
|
|
229
229
|
id: number;
|
|
230
230
|
}
|
|
231
|
+
interface FeedStatusUpdateRequest {
|
|
232
|
+
/** Numeric feed id to stop/resume. */
|
|
233
|
+
id: number;
|
|
234
|
+
}
|
|
235
|
+
interface FeedStatusUpdateResponse {
|
|
236
|
+
/** Echoed feed id (string form, matching gateway response). */
|
|
237
|
+
id: string;
|
|
238
|
+
/** Feed runtime status after the update. */
|
|
239
|
+
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | string;
|
|
240
|
+
}
|
|
231
241
|
interface FeedDeleteResponse {
|
|
232
242
|
/** Echoed feed id (string form, matching gateway response). */
|
|
233
243
|
id: string;
|
|
@@ -803,6 +813,19 @@ declare class ReleaseResource {
|
|
|
803
813
|
declare class FeedResource {
|
|
804
814
|
private client;
|
|
805
815
|
constructor(client: AlvaClient);
|
|
816
|
+
/**
|
|
817
|
+
* Stop a feed's producer cronjob. This pauses future scheduled runs while
|
|
818
|
+
* preserving the feed and its existing data.
|
|
819
|
+
*
|
|
820
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
821
|
+
*/
|
|
822
|
+
stop(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
823
|
+
/**
|
|
824
|
+
* Resume a stopped feed's producer cronjob.
|
|
825
|
+
*
|
|
826
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
827
|
+
*/
|
|
828
|
+
resume(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
806
829
|
/**
|
|
807
830
|
* Soft-delete a feed and all its active majors. Cascades:
|
|
808
831
|
* - all active feed_majors are soft-deleted in the same transaction
|
|
@@ -1397,4 +1420,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
|
|
|
1397
1420
|
/** SDK version, injected at build time from package.json. */
|
|
1398
1421
|
declare const VERSION: string;
|
|
1399
1422
|
|
|
1400
|
-
export { AlvaClient, type AlvaClientConfig, AlvaError, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, type FeedDeleteRequest, type FeedDeleteResponse, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, VERSION, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, udf };
|
|
1423
|
+
export { AlvaClient, type AlvaClientConfig, AlvaError, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, type FeedDeleteRequest, type FeedDeleteResponse, type FeedStatusUpdateRequest, type FeedStatusUpdateResponse, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, VERSION, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, udf };
|
package/dist/index.d.ts
CHANGED
|
@@ -228,6 +228,16 @@ interface FeedDeleteRequest {
|
|
|
228
228
|
/** Numeric feed id to delete. */
|
|
229
229
|
id: number;
|
|
230
230
|
}
|
|
231
|
+
interface FeedStatusUpdateRequest {
|
|
232
|
+
/** Numeric feed id to stop/resume. */
|
|
233
|
+
id: number;
|
|
234
|
+
}
|
|
235
|
+
interface FeedStatusUpdateResponse {
|
|
236
|
+
/** Echoed feed id (string form, matching gateway response). */
|
|
237
|
+
id: string;
|
|
238
|
+
/** Feed runtime status after the update. */
|
|
239
|
+
status: 'ACTIVE' | 'PAUSED' | 'UNSPECIFIED' | string;
|
|
240
|
+
}
|
|
231
241
|
interface FeedDeleteResponse {
|
|
232
242
|
/** Echoed feed id (string form, matching gateway response). */
|
|
233
243
|
id: string;
|
|
@@ -803,6 +813,19 @@ declare class ReleaseResource {
|
|
|
803
813
|
declare class FeedResource {
|
|
804
814
|
private client;
|
|
805
815
|
constructor(client: AlvaClient);
|
|
816
|
+
/**
|
|
817
|
+
* Stop a feed's producer cronjob. This pauses future scheduled runs while
|
|
818
|
+
* preserving the feed and its existing data.
|
|
819
|
+
*
|
|
820
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
821
|
+
*/
|
|
822
|
+
stop(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
823
|
+
/**
|
|
824
|
+
* Resume a stopped feed's producer cronjob.
|
|
825
|
+
*
|
|
826
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
827
|
+
*/
|
|
828
|
+
resume(params: FeedStatusUpdateRequest): Promise<FeedStatusUpdateResponse>;
|
|
806
829
|
/**
|
|
807
830
|
* Soft-delete a feed and all its active majors. Cascades:
|
|
808
831
|
* - all active feed_majors are soft-deleted in the same transaction
|
|
@@ -1397,4 +1420,4 @@ declare const installPlaybookRuntime: (targetWindow?: Window) => void;
|
|
|
1397
1420
|
/** SDK version, injected at build time from package.json. */
|
|
1398
1421
|
declare const VERSION: string;
|
|
1399
1422
|
|
|
1400
|
-
export { AlvaClient, type AlvaClientConfig, AlvaError, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, type FeedDeleteRequest, type FeedDeleteResponse, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, VERSION, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, udf };
|
|
1423
|
+
export { AlvaClient, type AlvaClientConfig, AlvaError, type ChannelGroupAdminInfo, type ChannelGroupCallerInfo, type ChannelGroupSubscription, type ChannelGroupSubscriptionContextResponse, type ChannelGroupSubscriptionListResponse, type ChannelGroupSubscriptionMutationParams, type ChannelGroupSubscriptionMutationResponse, type ChannelGroupSubscriptionSessionParams, type ChannelGroupSubscriptionTarget, type ChannelGroupSubscriptionTargetType, type FeedDeleteRequest, type FeedDeleteResponse, type FeedStatusUpdateRequest, type FeedStatusUpdateResponse, type FsChmodParams, type FsCopyParams, type FsEntry, type FsGrantParams, type FsMkdirParams, type FsRawWriteParams, type FsReadParams, type FsReaddirParams, type FsReaddirResponse, type FsReadlinkParams, type FsRemoveParams, type FsRenameParams, type FsRevokeParams, type FsStat, type FsSymlinkParams, type FsWriteParams, type FsWriteResponse, type NotificationPreference, type NotificationPreferenceKey, type NotificationPreferenceUpdateParams, type NotificationPreferenceUpdateResponse, type NotificationPreferencesResponse, PBSV_UPDATE_MESSAGE, type PlaybookSkillFile, type PlaybookSkillFileMeta, type PlaybookSkillMeta, type PlaybookSkillSummary, type PlaybookSkillTagEntry, type SkillDoc, type SkillEndpointMetadata, type SkillEndpointTier, type SkillMetadata, type SkillSummary, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type TrendingPlaybookItem, type TrendingPlaybooksDir, type TrendingPlaybooksParams, type TrendingPlaybooksResponse, type TrendingPlaybooksSort, UDF_AUTH_REQUIRED_MESSAGE, UDF_CONSENT_REQUEST_MESSAGE, UDF_CONSENT_RESPONSE_MESSAGE, type UdfApi, UdfAuthRequiredError, type UdfButtonEventDetail, type UdfButtonOptions, UdfConsentDeniedError, UdfConsentRequiredError, UdfConsentTimeoutError, type UdfDescriptor, UdfError, UdfExecutionError, UdfFunctionDisabledError, UdfFunctionNotFoundError, UdfInsufficientCredits, type UdfInvokeResponse, UdfPidMismatchError, UdfRateLimitedError, UdfTokenExpiredError, UdfTokenInvalidError, UdfTransportError, VERSION, getViewerToken, installPlaybookRuntime, mapUdfErrorResponse, playbookIdFromToken, udf };
|
package/dist/index.js
CHANGED
|
@@ -302,6 +302,33 @@ var FeedResource = class {
|
|
|
302
302
|
this.client = client;
|
|
303
303
|
}
|
|
304
304
|
client;
|
|
305
|
+
/**
|
|
306
|
+
* Stop a feed's producer cronjob. This pauses future scheduled runs while
|
|
307
|
+
* preserving the feed and its existing data.
|
|
308
|
+
*
|
|
309
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
310
|
+
*/
|
|
311
|
+
async stop(params) {
|
|
312
|
+
this.client._requireAuth();
|
|
313
|
+
const id = requireFeedID(params.id);
|
|
314
|
+
return this.client._request(
|
|
315
|
+
"POST",
|
|
316
|
+
`/api/v1/feed/${encodeURIComponent(String(id))}/stop`
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Resume a stopped feed's producer cronjob.
|
|
321
|
+
*
|
|
322
|
+
* Auth: caller must own the feed (uid match), enforced by the backend.
|
|
323
|
+
*/
|
|
324
|
+
async resume(params) {
|
|
325
|
+
this.client._requireAuth();
|
|
326
|
+
const id = requireFeedID(params.id);
|
|
327
|
+
return this.client._request(
|
|
328
|
+
"POST",
|
|
329
|
+
`/api/v1/feed/${encodeURIComponent(String(id))}/resume`
|
|
330
|
+
);
|
|
331
|
+
}
|
|
305
332
|
/**
|
|
306
333
|
* Soft-delete a feed and all its active majors. Cascades:
|
|
307
334
|
* - all active feed_majors are soft-deleted in the same transaction
|
|
@@ -312,15 +339,19 @@ var FeedResource = class {
|
|
|
312
339
|
*/
|
|
313
340
|
async delete(params) {
|
|
314
341
|
this.client._requireAuth();
|
|
315
|
-
|
|
316
|
-
throw new Error("feed id must be a positive integer");
|
|
317
|
-
}
|
|
342
|
+
const id = requireFeedID(params.id);
|
|
318
343
|
return this.client._request(
|
|
319
344
|
"DELETE",
|
|
320
|
-
`/api/v1/feed/${encodeURIComponent(String(
|
|
345
|
+
`/api/v1/feed/${encodeURIComponent(String(id))}`
|
|
321
346
|
);
|
|
322
347
|
}
|
|
323
348
|
};
|
|
349
|
+
function requireFeedID(id) {
|
|
350
|
+
if (!Number.isInteger(id) || id <= 0) {
|
|
351
|
+
throw new Error("feed id must be a positive integer");
|
|
352
|
+
}
|
|
353
|
+
return id;
|
|
354
|
+
}
|
|
324
355
|
|
|
325
356
|
// src/resources/playbooks.ts
|
|
326
357
|
var PLAYBOOK_VISIBILITIES = [
|
|
@@ -2761,7 +2792,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
2761
2792
|
};
|
|
2762
2793
|
|
|
2763
2794
|
// src/index.ts
|
|
2764
|
-
var VERSION = true ? "0.11.2
|
|
2795
|
+
var VERSION = true ? "0.11.2" : "dev";
|
|
2765
2796
|
export {
|
|
2766
2797
|
AlvaClient,
|
|
2767
2798
|
AlvaError,
|