@flashbacktech/tsclient 0.4.38 → 0.4.42
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.cjs +114 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +114 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -516,7 +516,7 @@ interface UpdateCredentialRequest {
|
|
|
516
516
|
interface ListCredentialsQuery {
|
|
517
517
|
projectId: string;
|
|
518
518
|
provider?: ProviderID;
|
|
519
|
-
capability?: 'storage' | 'ai' | 'compute' | 'vcs';
|
|
519
|
+
capability?: 'storage' | 'ai' | 'compute' | 'vcs' | 'notify';
|
|
520
520
|
}
|
|
521
521
|
interface SandboxCredential {
|
|
522
522
|
sandboxId: string;
|
|
@@ -576,6 +576,7 @@ declare const CAP_STORAGE = 1;
|
|
|
576
576
|
declare const CAP_AI = 2;
|
|
577
577
|
declare const CAP_COMPUTE = 4;
|
|
578
578
|
declare const CAP_VCS = 8;
|
|
579
|
+
declare const CAP_NOTIFY = 16;
|
|
579
580
|
declare const CAP_GENERAL = 255;
|
|
580
581
|
interface ProviderSpec {
|
|
581
582
|
id: string;
|
|
@@ -785,6 +786,13 @@ interface ConfirmChatToolCallResponse {
|
|
|
785
786
|
type ActionCategory = 'write_data' | 'create_resource' | 'delete_data' | 'destroy_resource' | 'scale_capacity' | 'modify_iam' | 'modify_network' | 'execute_runtime';
|
|
786
787
|
/** Run status stamped on agent_chat_schedules.last_run_status. */
|
|
787
788
|
type ChatScheduleRunStatus = 'success' | 'blocked' | 'failed' | 'running';
|
|
789
|
+
/**
|
|
790
|
+
* ChatScheduleNotifyOn gates which run outcomes emit a completion digest to
|
|
791
|
+
* the schedule's notify_channel. 'always' (the default) digests every run;
|
|
792
|
+
* the others fire only on the matching outcome. Only meaningful when
|
|
793
|
+
* notify_channel is set — an empty channel means no digest at all.
|
|
794
|
+
*/
|
|
795
|
+
type ChatScheduleNotifyOn = 'always' | 'success' | 'failure' | 'blocked';
|
|
788
796
|
/**
|
|
789
797
|
* ChatSchedule mirrors one row of agent_chat_schedules (M3 Stage 4).
|
|
790
798
|
* The scheduler dispatcher fires due rows on its tick interval and
|
|
@@ -812,6 +820,13 @@ interface ChatSchedule {
|
|
|
812
820
|
max_runtime_minutes: number;
|
|
813
821
|
max_consecutive_failures?: number;
|
|
814
822
|
concurrency_policy: string;
|
|
823
|
+
/** Logical notify-channel label a completion digest is sent to after
|
|
824
|
+
* each run. Matches an attached notify credential's label
|
|
825
|
+
* (case-insensitive). Empty/omitted = no digest (opt-in). */
|
|
826
|
+
notify_channel?: string;
|
|
827
|
+
/** Which outcomes emit a digest. Defaults to 'always'. Only relevant
|
|
828
|
+
* when notify_channel is set. */
|
|
829
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
815
830
|
next_fire_at?: string;
|
|
816
831
|
last_fire_at?: string;
|
|
817
832
|
last_run_status?: ChatScheduleRunStatus;
|
|
@@ -837,6 +852,12 @@ interface CreateChatScheduleRequest {
|
|
|
837
852
|
max_runtime_minutes?: number;
|
|
838
853
|
max_consecutive_failures?: number;
|
|
839
854
|
concurrency_policy?: string;
|
|
855
|
+
/** Notify-channel label for the completion digest. Empty/omitted = no
|
|
856
|
+
* digest. */
|
|
857
|
+
notify_channel?: string;
|
|
858
|
+
/** When to emit the digest. Server defaults to 'always' when omitted.
|
|
859
|
+
* Rejected with `invalid_notify_on` (HTTP 400) for unknown values. */
|
|
860
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
840
861
|
}
|
|
841
862
|
interface UpdateChatScheduleRequest {
|
|
842
863
|
name?: string;
|
|
@@ -853,6 +874,11 @@ interface UpdateChatScheduleRequest {
|
|
|
853
874
|
max_runtime_minutes?: number;
|
|
854
875
|
max_consecutive_failures?: number;
|
|
855
876
|
concurrency_policy?: string;
|
|
877
|
+
/** Pass to change the digest channel; "" clears it (disables digest).
|
|
878
|
+
* Omit to leave unchanged. */
|
|
879
|
+
notify_channel?: string;
|
|
880
|
+
/** Pass to change; omit to leave unchanged. */
|
|
881
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
856
882
|
}
|
|
857
883
|
interface ListChatSchedulesResponse {
|
|
858
884
|
schedules: ChatSchedule[];
|
|
@@ -2071,4 +2097,4 @@ declare class NotImplementedError extends Error {
|
|
|
2071
2097
|
constructor(method: string);
|
|
2072
2098
|
}
|
|
2073
2099
|
|
|
2074
|
-
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
2100
|
+
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_NOTIFY, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleNotifyOn, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
package/dist/index.d.ts
CHANGED
|
@@ -516,7 +516,7 @@ interface UpdateCredentialRequest {
|
|
|
516
516
|
interface ListCredentialsQuery {
|
|
517
517
|
projectId: string;
|
|
518
518
|
provider?: ProviderID;
|
|
519
|
-
capability?: 'storage' | 'ai' | 'compute' | 'vcs';
|
|
519
|
+
capability?: 'storage' | 'ai' | 'compute' | 'vcs' | 'notify';
|
|
520
520
|
}
|
|
521
521
|
interface SandboxCredential {
|
|
522
522
|
sandboxId: string;
|
|
@@ -576,6 +576,7 @@ declare const CAP_STORAGE = 1;
|
|
|
576
576
|
declare const CAP_AI = 2;
|
|
577
577
|
declare const CAP_COMPUTE = 4;
|
|
578
578
|
declare const CAP_VCS = 8;
|
|
579
|
+
declare const CAP_NOTIFY = 16;
|
|
579
580
|
declare const CAP_GENERAL = 255;
|
|
580
581
|
interface ProviderSpec {
|
|
581
582
|
id: string;
|
|
@@ -785,6 +786,13 @@ interface ConfirmChatToolCallResponse {
|
|
|
785
786
|
type ActionCategory = 'write_data' | 'create_resource' | 'delete_data' | 'destroy_resource' | 'scale_capacity' | 'modify_iam' | 'modify_network' | 'execute_runtime';
|
|
786
787
|
/** Run status stamped on agent_chat_schedules.last_run_status. */
|
|
787
788
|
type ChatScheduleRunStatus = 'success' | 'blocked' | 'failed' | 'running';
|
|
789
|
+
/**
|
|
790
|
+
* ChatScheduleNotifyOn gates which run outcomes emit a completion digest to
|
|
791
|
+
* the schedule's notify_channel. 'always' (the default) digests every run;
|
|
792
|
+
* the others fire only on the matching outcome. Only meaningful when
|
|
793
|
+
* notify_channel is set — an empty channel means no digest at all.
|
|
794
|
+
*/
|
|
795
|
+
type ChatScheduleNotifyOn = 'always' | 'success' | 'failure' | 'blocked';
|
|
788
796
|
/**
|
|
789
797
|
* ChatSchedule mirrors one row of agent_chat_schedules (M3 Stage 4).
|
|
790
798
|
* The scheduler dispatcher fires due rows on its tick interval and
|
|
@@ -812,6 +820,13 @@ interface ChatSchedule {
|
|
|
812
820
|
max_runtime_minutes: number;
|
|
813
821
|
max_consecutive_failures?: number;
|
|
814
822
|
concurrency_policy: string;
|
|
823
|
+
/** Logical notify-channel label a completion digest is sent to after
|
|
824
|
+
* each run. Matches an attached notify credential's label
|
|
825
|
+
* (case-insensitive). Empty/omitted = no digest (opt-in). */
|
|
826
|
+
notify_channel?: string;
|
|
827
|
+
/** Which outcomes emit a digest. Defaults to 'always'. Only relevant
|
|
828
|
+
* when notify_channel is set. */
|
|
829
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
815
830
|
next_fire_at?: string;
|
|
816
831
|
last_fire_at?: string;
|
|
817
832
|
last_run_status?: ChatScheduleRunStatus;
|
|
@@ -837,6 +852,12 @@ interface CreateChatScheduleRequest {
|
|
|
837
852
|
max_runtime_minutes?: number;
|
|
838
853
|
max_consecutive_failures?: number;
|
|
839
854
|
concurrency_policy?: string;
|
|
855
|
+
/** Notify-channel label for the completion digest. Empty/omitted = no
|
|
856
|
+
* digest. */
|
|
857
|
+
notify_channel?: string;
|
|
858
|
+
/** When to emit the digest. Server defaults to 'always' when omitted.
|
|
859
|
+
* Rejected with `invalid_notify_on` (HTTP 400) for unknown values. */
|
|
860
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
840
861
|
}
|
|
841
862
|
interface UpdateChatScheduleRequest {
|
|
842
863
|
name?: string;
|
|
@@ -853,6 +874,11 @@ interface UpdateChatScheduleRequest {
|
|
|
853
874
|
max_runtime_minutes?: number;
|
|
854
875
|
max_consecutive_failures?: number;
|
|
855
876
|
concurrency_policy?: string;
|
|
877
|
+
/** Pass to change the digest channel; "" clears it (disables digest).
|
|
878
|
+
* Omit to leave unchanged. */
|
|
879
|
+
notify_channel?: string;
|
|
880
|
+
/** Pass to change; omit to leave unchanged. */
|
|
881
|
+
notify_on?: ChatScheduleNotifyOn;
|
|
856
882
|
}
|
|
857
883
|
interface ListChatSchedulesResponse {
|
|
858
884
|
schedules: ChatSchedule[];
|
|
@@ -2071,4 +2097,4 @@ declare class NotImplementedError extends Error {
|
|
|
2071
2097
|
constructor(method: string);
|
|
2072
2098
|
}
|
|
2073
2099
|
|
|
2074
|
-
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
2100
|
+
export { type AcceptInviteRequest, AccessType, type AcquireScanLeaseRequest, type AcquireScanLeaseResponse, type ActionCategory, type ActivateRequest, type AddMemberRequest, type AnswerChatQuestionRequest, type AnswerChatQuestionResponse, type AuthUser, BaseClient, type BaseClientOptions, type BudgetScope, BudgetsClient, type BuyCustomCreditRequest, type BuyCustomCreditResponse, type BuySubscriptionRequest, type BuySubscriptionResponse, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_NOTIFY, CAP_STORAGE, CAP_VCS, type CancelChatTurnResponse, type CancelSubscriptionResponse, type ChatAssistantMessagePayload, type ChatBillingRefuseCode, type ChatBillingRefuseError, type ChatBudget, type ChatCheckpointedPayload, type ChatCompactionFiredPayload, type ChatDonePayload, type ChatEvent, type ChatEventType, type ChatMessage, type ChatMessageKind, type ChatMessageRole, type ChatNarrationPayload, type ChatPhase, type ChatPhasePayload, type ChatPlanDraftPayload, type ChatQuestionPayload, type ChatSchedule, type ChatScheduleEnvelope, type ChatScheduleNotifyOn, type ChatScheduleRunStatus, type ChatScope, type ChatSession, type ChatSessionSource, type ChatSessionTitlePayload, type ChatStepEventPayload, type ChatStepProgressPayload, type ChatStreamHandle, type ChatToolCallConfirmationRequiredPayload, type ChatToolCallFinishedPayload, type ChatToolCallStartedPayload, type ClarificationOption, CloudAgentClient, type CloudAgentClientOptions, type CloudResource, type CloudResourceContainerRef, type CloudResourceEdge, type CloudScanHistory, type CloudScanLease, type ConfirmChatToolCallRequest, type ConfirmChatToolCallResponse, type CreateAgentTemplateRequest, type CreateChatScheduleRequest, type CreateChatSessionRequest, type CreateChatSessionResponse, type CreateCredentialRequest, type CreateGatewayTokenRequest, type CreateGatewayTokenResponse, type CreateOrganizationUserRequest, type CreateProjectRequest, type CreateSandboxRequest, type CreateScheduledTaskRequest, type Credential, type CreditBalance, type CreditTransaction, type CreditTransactionKind, type CreditTransactionType, type CustomCreditPurchaseConfig, type DebugPayload, type DebugReceipt, type EffectiveChatBudget, type ExchangeCodeRequest, type FieldSpec, type FieldType, type FineTuneParams, type GatewayToken, type GetChatSessionResponse, type GetUsageSummaryQuery, type GetUsageSummaryResponse, HttpError, type ImpersonationProvider, type InviteOrgRequest, type InviteOrgResult, type ListAgentTemplatesQuery, type ListAgentTemplatesResponse, type ListChatScheduleRunsResponse, type ListChatSchedulesResponse, type ListChatSessionsQuery, type ListChatSessionsResponse, type ListCredentialsQuery, type ListCreditsTransactionsQuery, type ListCreditsTransactionsResponse, type ListPaymentsResponse, type ListSandboxesQuery, type ListScanHistoryQuery, type ListScanHistoryResponse, type ListScheduledTasksQuery, type ListScheduledTasksResponse, type LoginRequest, type MFASetupResponse, type MFASimpleResponse, type MFAStatus, MFAType, type MFAVerifyLoginRequest, type MFAVerifyLoginResponse, type MFAVerifySetupRequest, type MagicLinkActivateRequest, type MagicLinkSendResponse, type ModeType, type MonthlyCreditStats, NotImplementedError, type OpenChatStreamOptions, type OrgBudget, OrgRoles, type OrgSubscription, type Organization, type OrganizationUser, PROVIDER_CATALOG, type Payment, type PeekScanLeaseResponse, type PostChatMessageRequest, type PostChatMessageResponse, type Project, type ProjectMember, type ProviderID, type ProviderSpec, ProviderType, type PublicConfig, type Query, type ReconcileScope, type ReconcileTuple, type RefreshRequest, type RegisterRequest, type RequestOptions, type ResetPasswordRequest, type ResourceTreeCategory, type ResourceTreeCredential, type ResourceTreeGrouping, type ResourceTreeResource, type ResourceTreeResponse, ResourcesClient, type Sandbox, type SandboxCredential, type ScanInProgressError, type ScheduledTask, type ScopedBudget, type SessionResponse, type SessionTokens, type SimpleAgentResponse, type SimpleKeysResponse, type SimpleOrgResponse, type SimpleResponse$2 as SimpleResponse, type StorageType, type SubgraphDirection, type SubgraphRequest, type SubgraphResponse, type Subscription, type SubscriptionCapability, type SubscriptionPeriod, type SystemEvent, type SystemEventQuery, type SystemEventQueryResponse, type SystemEventReadResponse, type Template, type TokenProvider, type UnauthorizedHandler, type UpdateChatBudgetRequest, type UpdateChatScheduleRequest, type UpdateCostLimitRequest, type UpdateCredentialRequest, type UpdateMemberRoleRequest, type UpdateOrgBudgetRequest, type UpdateOrgUserRequest, type UpdateOrganizationRequest, type UpdateProjectRequest, type UpdateSandboxRequest, type UpdateScopedBudgetRequest, type UpdateUserRequest, type UpdateUserResponse, type UsageBucket, type UsageByModelQuery, type UsageByModelResponse, type UsageByModelRow, type UsageReportQuery, type UsageReportResponse, type UsageSummary, type UsageSummaryQuery, type UsageSummaryResponse, type UsageTotals, type UsageWindow, type UserProfile, type UserSummary, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
package/dist/index.js
CHANGED
|
@@ -1186,6 +1186,7 @@ var CAP_STORAGE = 1;
|
|
|
1186
1186
|
var CAP_AI = 2;
|
|
1187
1187
|
var CAP_COMPUTE = 4;
|
|
1188
1188
|
var CAP_VCS = 8;
|
|
1189
|
+
var CAP_NOTIFY = 16;
|
|
1189
1190
|
var CAP_GENERAL = 255;
|
|
1190
1191
|
var PROVIDER_CATALOG = {
|
|
1191
1192
|
AWS: {
|
|
@@ -1573,9 +1574,113 @@ var PROVIDER_CATALOG = {
|
|
|
1573
1574
|
help: "Override for proxies or regional endpoints. Most users leave blank to use the default Gemini API base URL."
|
|
1574
1575
|
}
|
|
1575
1576
|
]
|
|
1577
|
+
},
|
|
1578
|
+
SLACK: {
|
|
1579
|
+
id: "SLACK",
|
|
1580
|
+
displayName: "Slack",
|
|
1581
|
+
capabilities: CAP_NOTIFY,
|
|
1582
|
+
fields: [
|
|
1583
|
+
{
|
|
1584
|
+
path: "secret",
|
|
1585
|
+
label: "Incoming Webhook URL",
|
|
1586
|
+
type: "password",
|
|
1587
|
+
required: true,
|
|
1588
|
+
secret: true,
|
|
1589
|
+
placeholder: "https://hooks.slack.com/services/T000/B000/xxxxxxxx",
|
|
1590
|
+
help: "A Slack Incoming Webhook URL. The target channel is fixed by the webhook. Encrypted at rest; never injected into the sandbox."
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
path: "metadata.channelHint",
|
|
1594
|
+
label: "Channel Hint (optional)",
|
|
1595
|
+
type: "text",
|
|
1596
|
+
required: false,
|
|
1597
|
+
placeholder: "#oncall",
|
|
1598
|
+
help: "Display-only label for the channel this webhook posts to. Does not change routing \u2014 the webhook URL controls the destination."
|
|
1599
|
+
}
|
|
1600
|
+
]
|
|
1601
|
+
},
|
|
1602
|
+
TEAMS: {
|
|
1603
|
+
id: "TEAMS",
|
|
1604
|
+
displayName: "Microsoft Teams",
|
|
1605
|
+
capabilities: CAP_NOTIFY,
|
|
1606
|
+
fields: [
|
|
1607
|
+
{
|
|
1608
|
+
path: "secret",
|
|
1609
|
+
label: "Incoming Webhook URL",
|
|
1610
|
+
type: "password",
|
|
1611
|
+
required: true,
|
|
1612
|
+
secret: true,
|
|
1613
|
+
placeholder: "https://outlook.office.com/webhook/...",
|
|
1614
|
+
help: "A Teams Incoming Webhook (connector) URL. The target channel is fixed by the webhook. Encrypted at rest; never injected into the sandbox."
|
|
1615
|
+
}
|
|
1616
|
+
]
|
|
1617
|
+
},
|
|
1618
|
+
PAGERDUTY: {
|
|
1619
|
+
id: "PAGERDUTY",
|
|
1620
|
+
displayName: "PagerDuty",
|
|
1621
|
+
capabilities: CAP_NOTIFY,
|
|
1622
|
+
fields: [
|
|
1623
|
+
{
|
|
1624
|
+
path: "secret",
|
|
1625
|
+
label: "Integration / Routing Key",
|
|
1626
|
+
type: "password",
|
|
1627
|
+
required: true,
|
|
1628
|
+
secret: true,
|
|
1629
|
+
placeholder: "R0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
1630
|
+
help: "An Events API v2 integration (routing) key from a PagerDuty service. Encrypted at rest; never injected into the sandbox."
|
|
1631
|
+
}
|
|
1632
|
+
]
|
|
1633
|
+
},
|
|
1634
|
+
SMTP: {
|
|
1635
|
+
id: "SMTP",
|
|
1636
|
+
displayName: "Email (SMTP)",
|
|
1637
|
+
capabilities: CAP_NOTIFY,
|
|
1638
|
+
fields: [
|
|
1639
|
+
{
|
|
1640
|
+
path: "metadata.host",
|
|
1641
|
+
label: "SMTP Host",
|
|
1642
|
+
type: "text",
|
|
1643
|
+
required: true,
|
|
1644
|
+
placeholder: "smtp.example.com",
|
|
1645
|
+
help: "Hostname of the SMTP relay."
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
path: "metadata.port",
|
|
1649
|
+
label: "Port",
|
|
1650
|
+
type: "number",
|
|
1651
|
+
required: false,
|
|
1652
|
+
default: 587,
|
|
1653
|
+
placeholder: "587",
|
|
1654
|
+
help: "SMTP port. Defaults to 587 (STARTTLS). TLS is always required."
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
path: "metadata.fromAddress",
|
|
1658
|
+
label: "From Address",
|
|
1659
|
+
type: "text",
|
|
1660
|
+
required: true,
|
|
1661
|
+
placeholder: "alerts@example.com",
|
|
1662
|
+
help: "Envelope-from / From header for messages the agent sends. Also used as the SMTP AUTH username."
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
path: "metadata.toAddresses",
|
|
1666
|
+
label: "To Addresses",
|
|
1667
|
+
type: "stringList",
|
|
1668
|
+
required: true,
|
|
1669
|
+
placeholder: "oncall@example.com",
|
|
1670
|
+
help: "One or more recipient addresses. Every notify message is sent to all of them."
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
path: "secret",
|
|
1674
|
+
label: "Password",
|
|
1675
|
+
type: "password",
|
|
1676
|
+
required: true,
|
|
1677
|
+
secret: true,
|
|
1678
|
+
help: "SMTP AUTH password for the From address. Encrypted at rest; never injected into the sandbox."
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1576
1681
|
}
|
|
1577
1682
|
};
|
|
1578
|
-
var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI"];
|
|
1683
|
+
var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI", "SLACK", "TEAMS", "PAGERDUTY", "SMTP"];
|
|
1579
1684
|
function listProviders() {
|
|
1580
1685
|
return PROVIDER_ORDER.flatMap((id) => PROVIDER_CATALOG[id] ? [PROVIDER_CATALOG[id]] : []);
|
|
1581
1686
|
}
|
|
@@ -1787,6 +1892,13 @@ function computeDisplayHint(providerId, metadata) {
|
|
|
1787
1892
|
const prefix = str(metadata["tokenPrefix"]);
|
|
1788
1893
|
return prefix ? `${prefix}\u2026` : "";
|
|
1789
1894
|
}
|
|
1895
|
+
case "SLACK":
|
|
1896
|
+
return str(metadata["channelHint"]);
|
|
1897
|
+
case "SMTP": {
|
|
1898
|
+
const from = str(metadata["fromAddress"]);
|
|
1899
|
+
const host = str(metadata["host"]);
|
|
1900
|
+
return from + (host ? ` @ ${host}` : "");
|
|
1901
|
+
}
|
|
1790
1902
|
default:
|
|
1791
1903
|
return "";
|
|
1792
1904
|
}
|
|
@@ -1814,6 +1926,6 @@ var usdMicros = {
|
|
|
1814
1926
|
fromDollars: (dollars) => Math.round(dollars * 1e6)
|
|
1815
1927
|
};
|
|
1816
1928
|
|
|
1817
|
-
export { AccessType, BaseClient, BudgetsClient, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_STORAGE, CAP_VCS, CloudAgentClient, HttpError, MFAType, NotImplementedError, OrgRoles, PROVIDER_CATALOG, ProviderType, ResourcesClient, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
1929
|
+
export { AccessType, BaseClient, BudgetsClient, CAP_AI, CAP_COMPUTE, CAP_GENERAL, CAP_NOTIFY, CAP_STORAGE, CAP_VCS, CloudAgentClient, HttpError, MFAType, NotImplementedError, OrgRoles, PROVIDER_CATALOG, ProviderType, ResourcesClient, computeDisplayHint, getProvider, getValueAt, isMetadataPath, isSecretPath, listProviders, metadataKey, setValueAt, usdMicros, validate };
|
|
1818
1930
|
//# sourceMappingURL=index.js.map
|
|
1819
1931
|
//# sourceMappingURL=index.js.map
|