@scalemule/sdk 0.0.2 → 0.0.4
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.d.mts +49 -4
- package/dist/index.d.ts +49 -4
- package/dist/index.js +32 -5
- package/dist/index.mjs +32 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2548,7 +2548,7 @@ interface TeamInvitation {
|
|
|
2548
2548
|
email: string;
|
|
2549
2549
|
invited_by: string;
|
|
2550
2550
|
role: string;
|
|
2551
|
-
token
|
|
2551
|
+
token?: string;
|
|
2552
2552
|
status: string;
|
|
2553
2553
|
expires_at: string;
|
|
2554
2554
|
created_at: string;
|
|
@@ -2605,7 +2605,7 @@ declare class TeamsService extends ServiceModule {
|
|
|
2605
2605
|
role: string;
|
|
2606
2606
|
}, options?: RequestOptions): Promise<ApiResponse<TeamInvitation>>;
|
|
2607
2607
|
listInvitations(teamId: string, options?: RequestOptions): Promise<ApiResponse<TeamInvitation[]>>;
|
|
2608
|
-
acceptInvitation(token: string, options?: RequestOptions): Promise<ApiResponse<
|
|
2608
|
+
acceptInvitation(token: string, options?: RequestOptions): Promise<ApiResponse<TeamInvitation>>;
|
|
2609
2609
|
cancelInvitation(id: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
2610
2610
|
cancelled: boolean;
|
|
2611
2611
|
}>>;
|
|
@@ -4188,6 +4188,12 @@ interface ProjectMember {
|
|
|
4188
4188
|
user_id: string;
|
|
4189
4189
|
role: string;
|
|
4190
4190
|
created_at: string;
|
|
4191
|
+
/** Populated when ?hydrate=true */
|
|
4192
|
+
full_name?: string;
|
|
4193
|
+
/** Populated when ?hydrate=true */
|
|
4194
|
+
email?: string;
|
|
4195
|
+
/** Populated when ?hydrate=true */
|
|
4196
|
+
avatar_url?: string;
|
|
4191
4197
|
}
|
|
4192
4198
|
interface Task {
|
|
4193
4199
|
id: string;
|
|
@@ -4259,6 +4265,30 @@ interface PipelineVersion {
|
|
|
4259
4265
|
config: Record<string, unknown>;
|
|
4260
4266
|
created_at: string;
|
|
4261
4267
|
}
|
|
4268
|
+
interface ProjectGrant {
|
|
4269
|
+
id: string;
|
|
4270
|
+
project_id: string;
|
|
4271
|
+
role: string;
|
|
4272
|
+
user_email: string;
|
|
4273
|
+
status: 'pending' | 'redeemed' | 'revoked' | 'expired';
|
|
4274
|
+
created_by: string;
|
|
4275
|
+
created_at: string;
|
|
4276
|
+
expires_at: string;
|
|
4277
|
+
redeemed_at?: string;
|
|
4278
|
+
}
|
|
4279
|
+
interface GrantInfo {
|
|
4280
|
+
id: string;
|
|
4281
|
+
project_name: string;
|
|
4282
|
+
role: string;
|
|
4283
|
+
email_hint: string;
|
|
4284
|
+
status: string;
|
|
4285
|
+
expires_at: string;
|
|
4286
|
+
}
|
|
4287
|
+
interface RedeemResult {
|
|
4288
|
+
project_id: string;
|
|
4289
|
+
role: string;
|
|
4290
|
+
already_member: boolean;
|
|
4291
|
+
}
|
|
4262
4292
|
declare class AgentProjectsService extends ServiceModule {
|
|
4263
4293
|
protected basePath: string;
|
|
4264
4294
|
private withAppId;
|
|
@@ -4279,7 +4309,10 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4279
4309
|
user_id: string;
|
|
4280
4310
|
role: string;
|
|
4281
4311
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ProjectMember>>;
|
|
4282
|
-
listMembers(projectId: string,
|
|
4312
|
+
listMembers(projectId: string, params?: {
|
|
4313
|
+
application_id?: string;
|
|
4314
|
+
hydrate?: boolean;
|
|
4315
|
+
}, options?: RequestOptions): Promise<ApiResponse<ProjectMember[]>>;
|
|
4283
4316
|
updateMember(projectId: string, userId: string, data: {
|
|
4284
4317
|
role: string;
|
|
4285
4318
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ProjectMember>>;
|
|
@@ -4349,6 +4382,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4349
4382
|
config: Record<string, unknown>;
|
|
4350
4383
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<PipelineVersion>>;
|
|
4351
4384
|
listPipelineVersions(pipelineId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<PipelineVersion[]>>;
|
|
4385
|
+
createGrant(data: {
|
|
4386
|
+
project_id: string;
|
|
4387
|
+
role: string;
|
|
4388
|
+
user_email: string;
|
|
4389
|
+
expires_at: string;
|
|
4390
|
+
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4391
|
+
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4392
|
+
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4393
|
+
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4394
|
+
getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
|
|
4395
|
+
revokeGrant(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
|
|
4396
|
+
redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
|
|
4352
4397
|
}
|
|
4353
4398
|
|
|
4354
4399
|
interface Tool {
|
|
@@ -4795,4 +4840,4 @@ declare class ScaleMule {
|
|
|
4795
4840
|
getClient(): ScaleMuleClient;
|
|
4796
4841
|
}
|
|
4797
4842
|
|
|
4798
|
-
export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateSessionResponse, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagCheck, FlagContentService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectMember, type PushToken, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RequestOptions, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type Severity, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UploadCompleteResponse, type UploadEngineConfig, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, validateIP };
|
|
4843
|
+
export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateSessionResponse, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagCheck, FlagContentService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushToken, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RequestOptions, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type Severity, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UploadCompleteResponse, type UploadEngineConfig, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, validateIP };
|
package/dist/index.d.ts
CHANGED
|
@@ -2548,7 +2548,7 @@ interface TeamInvitation {
|
|
|
2548
2548
|
email: string;
|
|
2549
2549
|
invited_by: string;
|
|
2550
2550
|
role: string;
|
|
2551
|
-
token
|
|
2551
|
+
token?: string;
|
|
2552
2552
|
status: string;
|
|
2553
2553
|
expires_at: string;
|
|
2554
2554
|
created_at: string;
|
|
@@ -2605,7 +2605,7 @@ declare class TeamsService extends ServiceModule {
|
|
|
2605
2605
|
role: string;
|
|
2606
2606
|
}, options?: RequestOptions): Promise<ApiResponse<TeamInvitation>>;
|
|
2607
2607
|
listInvitations(teamId: string, options?: RequestOptions): Promise<ApiResponse<TeamInvitation[]>>;
|
|
2608
|
-
acceptInvitation(token: string, options?: RequestOptions): Promise<ApiResponse<
|
|
2608
|
+
acceptInvitation(token: string, options?: RequestOptions): Promise<ApiResponse<TeamInvitation>>;
|
|
2609
2609
|
cancelInvitation(id: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
2610
2610
|
cancelled: boolean;
|
|
2611
2611
|
}>>;
|
|
@@ -4188,6 +4188,12 @@ interface ProjectMember {
|
|
|
4188
4188
|
user_id: string;
|
|
4189
4189
|
role: string;
|
|
4190
4190
|
created_at: string;
|
|
4191
|
+
/** Populated when ?hydrate=true */
|
|
4192
|
+
full_name?: string;
|
|
4193
|
+
/** Populated when ?hydrate=true */
|
|
4194
|
+
email?: string;
|
|
4195
|
+
/** Populated when ?hydrate=true */
|
|
4196
|
+
avatar_url?: string;
|
|
4191
4197
|
}
|
|
4192
4198
|
interface Task {
|
|
4193
4199
|
id: string;
|
|
@@ -4259,6 +4265,30 @@ interface PipelineVersion {
|
|
|
4259
4265
|
config: Record<string, unknown>;
|
|
4260
4266
|
created_at: string;
|
|
4261
4267
|
}
|
|
4268
|
+
interface ProjectGrant {
|
|
4269
|
+
id: string;
|
|
4270
|
+
project_id: string;
|
|
4271
|
+
role: string;
|
|
4272
|
+
user_email: string;
|
|
4273
|
+
status: 'pending' | 'redeemed' | 'revoked' | 'expired';
|
|
4274
|
+
created_by: string;
|
|
4275
|
+
created_at: string;
|
|
4276
|
+
expires_at: string;
|
|
4277
|
+
redeemed_at?: string;
|
|
4278
|
+
}
|
|
4279
|
+
interface GrantInfo {
|
|
4280
|
+
id: string;
|
|
4281
|
+
project_name: string;
|
|
4282
|
+
role: string;
|
|
4283
|
+
email_hint: string;
|
|
4284
|
+
status: string;
|
|
4285
|
+
expires_at: string;
|
|
4286
|
+
}
|
|
4287
|
+
interface RedeemResult {
|
|
4288
|
+
project_id: string;
|
|
4289
|
+
role: string;
|
|
4290
|
+
already_member: boolean;
|
|
4291
|
+
}
|
|
4262
4292
|
declare class AgentProjectsService extends ServiceModule {
|
|
4263
4293
|
protected basePath: string;
|
|
4264
4294
|
private withAppId;
|
|
@@ -4279,7 +4309,10 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4279
4309
|
user_id: string;
|
|
4280
4310
|
role: string;
|
|
4281
4311
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ProjectMember>>;
|
|
4282
|
-
listMembers(projectId: string,
|
|
4312
|
+
listMembers(projectId: string, params?: {
|
|
4313
|
+
application_id?: string;
|
|
4314
|
+
hydrate?: boolean;
|
|
4315
|
+
}, options?: RequestOptions): Promise<ApiResponse<ProjectMember[]>>;
|
|
4283
4316
|
updateMember(projectId: string, userId: string, data: {
|
|
4284
4317
|
role: string;
|
|
4285
4318
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ProjectMember>>;
|
|
@@ -4349,6 +4382,18 @@ declare class AgentProjectsService extends ServiceModule {
|
|
|
4349
4382
|
config: Record<string, unknown>;
|
|
4350
4383
|
}, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<PipelineVersion>>;
|
|
4351
4384
|
listPipelineVersions(pipelineId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<PipelineVersion[]>>;
|
|
4385
|
+
createGrant(data: {
|
|
4386
|
+
project_id: string;
|
|
4387
|
+
role: string;
|
|
4388
|
+
user_email: string;
|
|
4389
|
+
expires_at: string;
|
|
4390
|
+
}, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4391
|
+
listGrants(projectId: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant[]>>;
|
|
4392
|
+
getGrant(id: string, options?: RequestOptions): Promise<ApiResponse<ProjectGrant>>;
|
|
4393
|
+
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4394
|
+
getGrantInfo(id: string, options?: RequestOptions): Promise<ApiResponse<GrantInfo>>;
|
|
4395
|
+
revokeGrant(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
|
|
4396
|
+
redeemGrant(id: string, options?: RequestOptions): Promise<ApiResponse<RedeemResult>>;
|
|
4352
4397
|
}
|
|
4353
4398
|
|
|
4354
4399
|
interface Tool {
|
|
@@ -4795,4 +4840,4 @@ declare class ScaleMule {
|
|
|
4795
4840
|
getClient(): ScaleMuleClient;
|
|
4796
4841
|
}
|
|
4797
4842
|
|
|
4798
|
-
export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateSessionResponse, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagCheck, FlagContentService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectMember, type PushToken, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RequestOptions, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type Severity, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UploadCompleteResponse, type UploadEngineConfig, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, validateIP };
|
|
4843
|
+
export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateSessionResponse, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagCheck, FlagContentService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushToken, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RequestOptions, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type Severity, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UploadCompleteResponse, type UploadEngineConfig, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, validateIP };
|
package/dist/index.js
CHANGED
|
@@ -4772,11 +4772,12 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4772
4772
|
async addMember(projectId, data, applicationId, options) {
|
|
4773
4773
|
return this.post(this.withAppId(`/projects/${projectId}/members`, applicationId), data, options);
|
|
4774
4774
|
}
|
|
4775
|
-
async listMembers(projectId,
|
|
4776
|
-
const
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
)
|
|
4775
|
+
async listMembers(projectId, params, options) {
|
|
4776
|
+
const qs = {};
|
|
4777
|
+
if (params?.application_id) qs.application_id = params.application_id;
|
|
4778
|
+
if (params?.hydrate) qs.hydrate = "true";
|
|
4779
|
+
const path = Object.keys(qs).length ? this.withQuery(`/projects/${projectId}/members`, qs) : `/projects/${projectId}/members`;
|
|
4780
|
+
const result = await this._get(path, options);
|
|
4780
4781
|
return { data: result.data?.members ?? [], error: result.error };
|
|
4781
4782
|
}
|
|
4782
4783
|
async updateMember(projectId, userId, data, applicationId, options) {
|
|
@@ -4895,6 +4896,32 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4895
4896
|
);
|
|
4896
4897
|
return { data: result.data?.versions ?? [], error: result.error };
|
|
4897
4898
|
}
|
|
4899
|
+
// --------------------------------------------------------------------------
|
|
4900
|
+
// Project Grants
|
|
4901
|
+
// --------------------------------------------------------------------------
|
|
4902
|
+
async createGrant(data, options) {
|
|
4903
|
+
return this.post("/project-grants", data, options);
|
|
4904
|
+
}
|
|
4905
|
+
async listGrants(projectId, options) {
|
|
4906
|
+
const result = await this._get(
|
|
4907
|
+
this.withQuery("/project-grants", { project_id: projectId }),
|
|
4908
|
+
options
|
|
4909
|
+
);
|
|
4910
|
+
return { data: result.data?.grants ?? result.data ?? [], error: result.error };
|
|
4911
|
+
}
|
|
4912
|
+
async getGrant(id, options) {
|
|
4913
|
+
return this._get(`/project-grants/${id}`, options);
|
|
4914
|
+
}
|
|
4915
|
+
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4916
|
+
async getGrantInfo(id, options) {
|
|
4917
|
+
return this._get(`/project-grants/${id}/info`, { skipAuth: true, ...options });
|
|
4918
|
+
}
|
|
4919
|
+
async revokeGrant(id, options) {
|
|
4920
|
+
return this.del(`/project-grants/${id}`, options);
|
|
4921
|
+
}
|
|
4922
|
+
async redeemGrant(id, options) {
|
|
4923
|
+
return this.post(`/project-grants/${id}/redeem`, void 0, options);
|
|
4924
|
+
}
|
|
4898
4925
|
};
|
|
4899
4926
|
|
|
4900
4927
|
// src/services/agent-tools.ts
|
package/dist/index.mjs
CHANGED
|
@@ -4420,11 +4420,12 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4420
4420
|
async addMember(projectId, data, applicationId, options) {
|
|
4421
4421
|
return this.post(this.withAppId(`/projects/${projectId}/members`, applicationId), data, options);
|
|
4422
4422
|
}
|
|
4423
|
-
async listMembers(projectId,
|
|
4424
|
-
const
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
)
|
|
4423
|
+
async listMembers(projectId, params, options) {
|
|
4424
|
+
const qs = {};
|
|
4425
|
+
if (params?.application_id) qs.application_id = params.application_id;
|
|
4426
|
+
if (params?.hydrate) qs.hydrate = "true";
|
|
4427
|
+
const path = Object.keys(qs).length ? this.withQuery(`/projects/${projectId}/members`, qs) : `/projects/${projectId}/members`;
|
|
4428
|
+
const result = await this._get(path, options);
|
|
4428
4429
|
return { data: result.data?.members ?? [], error: result.error };
|
|
4429
4430
|
}
|
|
4430
4431
|
async updateMember(projectId, userId, data, applicationId, options) {
|
|
@@ -4543,6 +4544,32 @@ var AgentProjectsService = class extends ServiceModule {
|
|
|
4543
4544
|
);
|
|
4544
4545
|
return { data: result.data?.versions ?? [], error: result.error };
|
|
4545
4546
|
}
|
|
4547
|
+
// --------------------------------------------------------------------------
|
|
4548
|
+
// Project Grants
|
|
4549
|
+
// --------------------------------------------------------------------------
|
|
4550
|
+
async createGrant(data, options) {
|
|
4551
|
+
return this.post("/project-grants", data, options);
|
|
4552
|
+
}
|
|
4553
|
+
async listGrants(projectId, options) {
|
|
4554
|
+
const result = await this._get(
|
|
4555
|
+
this.withQuery("/project-grants", { project_id: projectId }),
|
|
4556
|
+
options
|
|
4557
|
+
);
|
|
4558
|
+
return { data: result.data?.grants ?? result.data ?? [], error: result.error };
|
|
4559
|
+
}
|
|
4560
|
+
async getGrant(id, options) {
|
|
4561
|
+
return this._get(`/project-grants/${id}`, options);
|
|
4562
|
+
}
|
|
4563
|
+
/** Public endpoint — no auth required. Returns masked email + project name. */
|
|
4564
|
+
async getGrantInfo(id, options) {
|
|
4565
|
+
return this._get(`/project-grants/${id}/info`, { skipAuth: true, ...options });
|
|
4566
|
+
}
|
|
4567
|
+
async revokeGrant(id, options) {
|
|
4568
|
+
return this.del(`/project-grants/${id}`, options);
|
|
4569
|
+
}
|
|
4570
|
+
async redeemGrant(id, options) {
|
|
4571
|
+
return this.post(`/project-grants/${id}/redeem`, void 0, options);
|
|
4572
|
+
}
|
|
4546
4573
|
};
|
|
4547
4574
|
|
|
4548
4575
|
// src/services/agent-tools.ts
|