@joai/core 0.7.1 → 0.9.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/index.d.mts +33 -17
- package/dist/index.mjs +1 -13
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -273,7 +273,24 @@ type AffiliateTier = {
|
|
|
273
273
|
type AffiliateStatus = 'pending' | 'approved' | 'rejected' | 'suspended' | 'demoted';
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region src/billing/types.d.ts
|
|
276
|
+
type TranslatableValue = Partial<Record<WarpLocale, string>>;
|
|
276
277
|
type OrderStatus = 'pending' | 'completed' | 'delivered' | 'canceled';
|
|
278
|
+
type SubscriptionStatus = 'active' | 'canceled' | 'past_due';
|
|
279
|
+
type SubscriptionInterval = 'weekly' | 'monthly' | 'yearly';
|
|
280
|
+
type AppSubscription = {
|
|
281
|
+
id: string;
|
|
282
|
+
orderId: string;
|
|
283
|
+
teamId: string;
|
|
284
|
+
contactId: string | null;
|
|
285
|
+
status: SubscriptionStatus;
|
|
286
|
+
interval: SubscriptionInterval | null;
|
|
287
|
+
renewsAt: string | null;
|
|
288
|
+
cancelledAt: string | null;
|
|
289
|
+
locale: string | null;
|
|
290
|
+
meta: Record<string, any> | null;
|
|
291
|
+
createdAt: string;
|
|
292
|
+
updatedAt: string;
|
|
293
|
+
};
|
|
277
294
|
type PaymentProvider = 'xmoney' | 'lemonsqueezy' | 'stripe' | 'apple' | 'google' | 'blockchain' | 'offline';
|
|
278
295
|
type PlanFeature = 'general' | 'messages' | 'team-members' | 'teams' | 'support' | 'agent' | 'auto-mode' | 'cloud-sync' | 'wallet-cloud' | 'wallet-cloud-premium' | 'wallet-multi' | 'cards' | 'alerts' | 'advanced-commands' | 'tasks' | 'integrations' | 'message-history' | 'memory' | 'documents' | 'voice-input' | 'voice-live' | 'image-gen' | 'video-gen' | 'openclaw' | 'skills' | 'items' | 'context-length' | 'workspace-storage' | 'ingestions' | 'agent-email' | 'streak-freezes' | 'byok' | 'mcp' | 'phone-call' | 'phone-number' | 'custom-domain' | 'contacts' | 'marketplace-fee-rate' | 'marketplace-fee-rate-physical';
|
|
279
296
|
type PlanBenefit = {
|
|
@@ -350,10 +367,15 @@ type ProductDiscount = {
|
|
|
350
367
|
original: number;
|
|
351
368
|
percent: number;
|
|
352
369
|
};
|
|
370
|
+
type ProductVariationType = {
|
|
371
|
+
name: string;
|
|
372
|
+
};
|
|
373
|
+
type ProductRelationType = 'cross_sell' | 'upsell' | 'add_on';
|
|
353
374
|
type ProductVariation = {
|
|
354
375
|
resource: 'product-variation';
|
|
355
376
|
sku: string;
|
|
356
377
|
name: string;
|
|
378
|
+
type?: ProductVariationType | null;
|
|
357
379
|
description?: Partial<Record<WarpLocale, string>>;
|
|
358
380
|
price: number;
|
|
359
381
|
badge?: string;
|
|
@@ -492,7 +514,7 @@ type ByokProviderName = keyof ByokProviders;
|
|
|
492
514
|
type TeamSettings = {
|
|
493
515
|
'extra.messages': number;
|
|
494
516
|
'limit.spending': number | null;
|
|
495
|
-
'currency'
|
|
517
|
+
'currency': string;
|
|
496
518
|
'extra.usage.enabled'?: boolean;
|
|
497
519
|
'auto.reload.enabled'?: boolean;
|
|
498
520
|
'auto.reload.threshold_cents'?: number | null;
|
|
@@ -1196,8 +1218,13 @@ type Contact = {
|
|
|
1196
1218
|
notes: string | null;
|
|
1197
1219
|
tags: string[] | null;
|
|
1198
1220
|
userId: string | null;
|
|
1221
|
+
locale?: string | null;
|
|
1199
1222
|
props?: Record<string, string> | null;
|
|
1200
1223
|
};
|
|
1224
|
+
type ContactActivityAuthor = {
|
|
1225
|
+
name: string;
|
|
1226
|
+
imageUrl: string | null;
|
|
1227
|
+
};
|
|
1201
1228
|
type ContactActivity = {
|
|
1202
1229
|
id: string;
|
|
1203
1230
|
type: 'note' | 'call' | 'meeting' | 'email' | 'task' | 'update' | 'custom';
|
|
@@ -1205,6 +1232,7 @@ type ContactActivity = {
|
|
|
1205
1232
|
meta: Record<string, any> | null;
|
|
1206
1233
|
agentName: string | null;
|
|
1207
1234
|
createdAt: string;
|
|
1235
|
+
author?: ContactActivityAuthor | null;
|
|
1208
1236
|
};
|
|
1209
1237
|
type ContactFormData = {
|
|
1210
1238
|
name?: string;
|
|
@@ -1218,6 +1246,7 @@ type ContactFormData = {
|
|
|
1218
1246
|
socials?: Record<string, string> | null;
|
|
1219
1247
|
notes?: string | null;
|
|
1220
1248
|
tags?: string[] | null;
|
|
1249
|
+
locale?: string | null;
|
|
1221
1250
|
props?: Record<string, string> | null;
|
|
1222
1251
|
};
|
|
1223
1252
|
//#endregion
|
|
@@ -2666,33 +2695,20 @@ type GamificationData = {
|
|
|
2666
2695
|
};
|
|
2667
2696
|
//#endregion
|
|
2668
2697
|
//#region src/link/types.d.ts
|
|
2669
|
-
declare const LINK_TYPES: readonly ["short", "qr", "nfc"];
|
|
2670
|
-
type LinkTypeName = (typeof LINK_TYPES)[number];
|
|
2671
|
-
declare const LINK_TYPE_LABELS: Record<LinkTypeName, string>;
|
|
2672
2698
|
type Link = {
|
|
2673
2699
|
id: string;
|
|
2674
|
-
slug: string;
|
|
2675
2700
|
url: string;
|
|
2676
2701
|
shortUrl: string;
|
|
2677
|
-
type: LinkTypeName;
|
|
2678
2702
|
status: 'active' | 'paused' | 'expired';
|
|
2679
2703
|
title: string | null;
|
|
2680
2704
|
scanCount: number;
|
|
2681
|
-
|
|
2682
|
-
startsAt: string | null;
|
|
2683
|
-
expiresAt: string | null;
|
|
2705
|
+
lastScannedAt: string | null;
|
|
2684
2706
|
createdAt: string;
|
|
2685
2707
|
updatedAt: string;
|
|
2686
2708
|
};
|
|
2687
2709
|
type LinkCreatePayload = {
|
|
2688
2710
|
url: string;
|
|
2689
|
-
|
|
2690
|
-
title?: string;
|
|
2691
|
-
slug?: string;
|
|
2692
|
-
maxScans?: number;
|
|
2693
|
-
startsAt?: string;
|
|
2694
|
-
expiresAt?: string;
|
|
2695
|
-
status?: 'active' | 'paused' | 'expired';
|
|
2711
|
+
title: string;
|
|
2696
2712
|
};
|
|
2697
2713
|
type LinkUpdatePayload = Partial<LinkCreatePayload>;
|
|
2698
2714
|
//#endregion
|
|
@@ -2945,4 +2961,4 @@ type CliSessionStatus = {
|
|
|
2945
2961
|
meta: CliSessionMeta | null;
|
|
2946
2962
|
};
|
|
2947
2963
|
//#endregion
|
|
2948
|
-
export { Achievement, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Card, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, Contact, ContactActivity, ContactFormData, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, Earning, Element, ElementSpec, ElementType, ElementVariation, EmailProvider, EmbedStatus, EncryptionStatus, Entity, EntityDirectExecuteRequest, EntityProposable, EntitySignable, EntityTemplate, Experience, FileInfo, FileMetadata, Flow, FlowCategory, FlowInputMapping, FlowStatus, FlowStep, GamificationData, GamificationEventType, Goal, GoalCreatePayload, GoalPriority, GoalProgressViewable, GoalStatus, HintOptions, HintPosition, HttpService, IAppResponse, IHttpService, IRequestOptions, IngestionSourceType, IngestionStatus, Inquiry, InquiryStatus, InquiryType, Integration, IntegrationDetails, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, Kyc, KycStatus,
|
|
2964
|
+
export { Achievement, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, AppSubscription, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Card, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, Contact, ContactActivity, ContactActivityAuthor, ContactFormData, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, Earning, Element, ElementSpec, ElementType, ElementVariation, EmailProvider, EmbedStatus, EncryptionStatus, Entity, EntityDirectExecuteRequest, EntityProposable, EntitySignable, EntityTemplate, Experience, FileInfo, FileMetadata, Flow, FlowCategory, FlowInputMapping, FlowStatus, FlowStep, GamificationData, GamificationEventType, Goal, GoalCreatePayload, GoalPriority, GoalProgressViewable, GoalStatus, HintOptions, HintPosition, HttpService, IAppResponse, IHttpService, IRequestOptions, IngestionSourceType, IngestionStatus, Inquiry, InquiryStatus, InquiryType, Integration, IntegrationDetails, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, Kyc, KycStatus, Link, LinkCreatePayload, LinkUpdatePayload, LocalAgentWallet, MarketplaceAgent, MarketplaceCheckoutItem, MarketplaceData, MarketplaceEntityType, MarketplaceInfo, MarketplaceItem, MarketplaceListing, MarketplacePriceTier, MarketplacePricing, MarketplacePurchasable, MarketplacePurchaseResult, McpToolCall, McpToolCallBroadcast, McpToolCallStatus, Media, MediaAttributes, MediaItems, MediaLibraryAttributes, MediaLibraryItems, MediaMime, Meeting, MeetingConferenceProvider, MeetingFeature, MeetingJoinInfo, MeetingJoinTeam, MeetingParticipant, MeetingSessionState, MeetingSpeakerAssignment, MeetingStatus, MeetingTranscriptEntry, MeetingUsage, Memory, Message, MessageId, MessageRole, Milestone, MilestoneType, Mission, MissionBudget, MissionCreatePayload, MissionPlan, MissionPriority, MissionSchedule, MissionStatus, MissionViewable, MultimodalContent, MultimodalFile, Notification, NotificationAction, NotificationAgent, NotificationChannel, NotificationSetting, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OfficeAgent, OfficeEntity, OfficeEntityKind, OfficeLiveOverrides, OfficeMember, OfficeSnapshot, OfficeStatus, OfficeStatusFilter, OfficeTypeFilter, OgImageColors, OgImageParams, OgImageType, Order, OrderItem, OrderStatus, PaymentProvider, PayoutEntry, PeriodTypeLabels, PeriodTypeOptions, PermissionConfigType, PersonaQuestionable, Plan, PlanBenefit, PlanExtra, PlanFeature, PlanInterval, PolicyMethod, PolicySetting, PricingModel, Product, ProductDiscount, ProductPieces, ProductRating, ProductRelationType, ProductVariation, ProductVariationType, Project, ProjectAspectRatio, ProjectAssembly, ProjectCaptionStyle, ProjectClipCandidate, ProjectClips, ProjectExport, ProjectExportAsset, ProjectExportResponse, ProjectImages, ProjectInputAssistIntent, ProjectInputAssistResponse, ProjectMutation, ProjectOutputPreset, ProjectOutputType, ProjectPlan, ProjectRender, ProjectRenderMode, ProjectSelectedClip, ProjectShot, ProjectSoundtrack, ProjectSourceMedia, ProjectStatus, ProjectStudioHistoryEntry, ProjectStudioQuestion, ProjectStudioResponse, ProjectStudioStage, ProjectStudioState, ProjectStudioSummary, ProjectStyleDirection, ProjectTranscript, ProjectTranscriptSegment, Proposal, ProposalAction, ProposalActionPayment, ProposalActionPaymentSerializable, ProposalActionSerializable, ProposalPollOption, ProposalStatus, PurchaseOptions, PurchaseResult, RampProvider, RampProviderInfo, Reactions, RecentExperience, Reminder, Room, RoomId, RoomKind, ScInfo, SchedulePreset, SecretAuthorizable, SecretSettable, SendableActivityUpdate, SendableAgentAction, SendableAgentMessage, SendableAgentThought, SendableMedia, SendableUserMessage, Service, Shortcut, Site, SiteAgent, SiteBrand, SiteRoute, SiteTeam, Skill, SkillMediaBindingRole, SkillMediaBindingRoleValue, SkillScope, SkillScopeValue, SkillType, SkillTypeValue, SocialAuthProvider, SocialBot, SocialPlatform, Store, StoreCreatePayload, StoreEntry, StoreEntryPayload, StoreEntryResult, StoreToggleResult, StoreVisibility, StoreWithEntries, Streak, SubscriptionInterval, SubscriptionPlan, SubscriptionStatus, Swarm, Task, Team, TeamBrand, TeamFeatureUsage, TeamMember, TeamPrivate, TeamSettings, TeamUsage, Tier, TierFeature, TierName, TranscriptEntry, TranscriptionCorrection, TranscriptionResponse, TranslatableValue, Update, UpdateCreatePayload, UpdateStatus, UpdateType, UpdateUpdatePayload, User, UserInterest, UserMode, UserPrivate, UserRole, UserSettings, UserSocialAccount, UserStats, Wallet, WalletList, WarpApprovable, WarpBackend, WarpBackendCategory, WarpBackendStatus, WarpBatchItem, WarpBatchable, WarpCloudExecutable, WarpCreateable, WarpExecutable, WarpExtras, WarpExtrasFaq, WarpInputable, WarpScreenshotVariant, WarpSearchHit, WarpSelectable, WarpSelectableDetails, WarpSuggestion, WarpTestable, WarpViewable, Webhook, WebhookTriggerEvent, WorkspaceCloudFile, WorkspaceContext, WorkspaceInfo, WorkspaceSettings, XIntegrationStatus, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getMarketplaceBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
|
package/dist/index.mjs
CHANGED
|
@@ -349,16 +349,4 @@ const SkillScope = {
|
|
|
349
349
|
Team: "team"
|
|
350
350
|
};
|
|
351
351
|
//#endregion
|
|
352
|
-
|
|
353
|
-
const LINK_TYPES = [
|
|
354
|
-
"short",
|
|
355
|
-
"qr",
|
|
356
|
-
"nfc"
|
|
357
|
-
];
|
|
358
|
-
const LINK_TYPE_LABELS = {
|
|
359
|
-
short: "Short Link",
|
|
360
|
-
qr: "QR Code",
|
|
361
|
-
nfc: "NFC Tag"
|
|
362
|
-
};
|
|
363
|
-
//#endregion
|
|
364
|
-
export { ContractCategoryDisplayNames, DefaultCodeMetadata, HttpService, JoaiUrls, LINK_TYPES, LINK_TYPE_LABELS, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OgImageColors, PeriodTypeLabels, PeriodTypeOptions, SkillMediaBindingRole, SkillScope, SkillType, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getMarketplaceBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
|
|
352
|
+
export { ContractCategoryDisplayNames, DefaultCodeMetadata, HttpService, JoaiUrls, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OgImageColors, PeriodTypeLabels, PeriodTypeOptions, SkillMediaBindingRole, SkillScope, SkillType, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getMarketplaceBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
|