@joai/core 2.1.0 → 2.2.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 +59 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -323,6 +323,21 @@ type TeamMeta = {
|
|
|
323
323
|
branding?: TeamBrand | null;
|
|
324
324
|
settings: Record<string, unknown>;
|
|
325
325
|
};
|
|
326
|
+
type TeamPlace = {
|
|
327
|
+
provider: 'google';
|
|
328
|
+
sourceId: string;
|
|
329
|
+
name: string | null;
|
|
330
|
+
address: string | null;
|
|
331
|
+
location: {
|
|
332
|
+
lat: number | null;
|
|
333
|
+
lng: number | null;
|
|
334
|
+
};
|
|
335
|
+
rating?: number | null;
|
|
336
|
+
reviewCount?: number | null;
|
|
337
|
+
websiteUrl?: string | null;
|
|
338
|
+
mapsUrl?: string | null;
|
|
339
|
+
businessStatus?: string | null;
|
|
340
|
+
};
|
|
326
341
|
type Team = {
|
|
327
342
|
slug: string;
|
|
328
343
|
name: string;
|
|
@@ -332,6 +347,7 @@ type Team = {
|
|
|
332
347
|
description: TranslatableValue | null;
|
|
333
348
|
locale: WarpLocale;
|
|
334
349
|
timezone: string;
|
|
350
|
+
place?: TeamPlace | null;
|
|
335
351
|
meta?: TeamMeta;
|
|
336
352
|
features?: TeamFeature[];
|
|
337
353
|
cover?: string | null;
|
|
@@ -367,6 +383,7 @@ type TeamPrivate = {
|
|
|
367
383
|
balance: number;
|
|
368
384
|
locale: WarpLocale;
|
|
369
385
|
timezone: string;
|
|
386
|
+
place?: TeamPlace | null;
|
|
370
387
|
logo: string | null;
|
|
371
388
|
cover: string | null;
|
|
372
389
|
subscription: {
|
|
@@ -481,6 +498,25 @@ type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
|
481
498
|
//#endregion
|
|
482
499
|
//#region src/contact/types.d.ts
|
|
483
500
|
type ContactHealth = 'active' | 'lukewarm' | 'cold' | 'stale' | 'unknown';
|
|
501
|
+
type ContactConsentStatus = 'pending' | 'confirmed' | 'superseded' | 'unsubscribed';
|
|
502
|
+
type ContactConsent = {
|
|
503
|
+
id: string;
|
|
504
|
+
purpose: string;
|
|
505
|
+
status: ContactConsentStatus;
|
|
506
|
+
email: string;
|
|
507
|
+
consentText: {
|
|
508
|
+
label?: string | Record<string, string>;
|
|
509
|
+
description?: string | Record<string, string> | null;
|
|
510
|
+
};
|
|
511
|
+
privacyUrl: string | null;
|
|
512
|
+
source: {
|
|
513
|
+
formIdentifier?: string | null;
|
|
514
|
+
formTitle?: string | Record<string, string> | null;
|
|
515
|
+
};
|
|
516
|
+
requestedAt: string;
|
|
517
|
+
confirmedAt: string | null;
|
|
518
|
+
unsubscribedAt: string | null;
|
|
519
|
+
};
|
|
484
520
|
type Contact = {
|
|
485
521
|
id: string;
|
|
486
522
|
name: string;
|
|
@@ -501,8 +537,11 @@ type Contact = {
|
|
|
501
537
|
settings?: {
|
|
502
538
|
marketingOptOut?: boolean;
|
|
503
539
|
} | null;
|
|
540
|
+
consents?: ContactConsent[];
|
|
504
541
|
lastActivityAt?: string | null;
|
|
505
542
|
health?: ContactHealth;
|
|
543
|
+
nextFollowUpAt?: string | null;
|
|
544
|
+
followUpNote?: string | null;
|
|
506
545
|
};
|
|
507
546
|
type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form' | 'loyalty';
|
|
508
547
|
type ContactActivityAuthor = {
|
|
@@ -535,6 +574,8 @@ type ContactFormData = {
|
|
|
535
574
|
settings?: {
|
|
536
575
|
marketingOptOut?: boolean;
|
|
537
576
|
};
|
|
577
|
+
nextFollowUpAt?: string | null;
|
|
578
|
+
followUpNote?: string | null;
|
|
538
579
|
};
|
|
539
580
|
type ContactCreatePayload = ContactFormData & {
|
|
540
581
|
name: string;
|
|
@@ -559,10 +600,8 @@ type MediaLibraryAttributes = {
|
|
|
559
600
|
extension?: string;
|
|
560
601
|
size?: number;
|
|
561
602
|
};
|
|
562
|
-
type MediaLibraryItems = {
|
|
563
|
-
[uuid: string]: MediaLibraryAttributes;
|
|
564
|
-
};
|
|
565
603
|
type MediaMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'video/mp4' | 'video/webm' | 'video/quicktime' | 'video/x-msvideo' | 'audio/mpeg' | 'audio/mp3' | 'audio/ogg' | 'audio/wav' | 'audio/webm' | 'audio/aac' | 'audio/m4a' | 'audio/m4b' | 'audio/m4p' | 'audio/m4v' | 'application/pdf' | 'application/json';
|
|
604
|
+
type MediaAspectRatio = 'free' | '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
|
|
566
605
|
type Media = {
|
|
567
606
|
id: string;
|
|
568
607
|
name: string;
|
|
@@ -1182,6 +1221,12 @@ type WarpExtras = {
|
|
|
1182
1221
|
enabled?: boolean;
|
|
1183
1222
|
contact?: string | null;
|
|
1184
1223
|
};
|
|
1224
|
+
optIn?: {
|
|
1225
|
+
enabled?: boolean;
|
|
1226
|
+
};
|
|
1227
|
+
results?: {
|
|
1228
|
+
public?: boolean;
|
|
1229
|
+
};
|
|
1185
1230
|
};
|
|
1186
1231
|
type WarpBackend = {
|
|
1187
1232
|
hash: string;
|
|
@@ -1718,7 +1763,13 @@ type AppointmentAvailability = {
|
|
|
1718
1763
|
service: AppointmentAvailabilityService | null;
|
|
1719
1764
|
slots: AppointmentAvailabilitySlot[];
|
|
1720
1765
|
};
|
|
1766
|
+
type AppointmentPolicySync = {
|
|
1767
|
+
enabled: boolean;
|
|
1768
|
+
lastSyncedAt?: string | null;
|
|
1769
|
+
lastSyncError?: string | null;
|
|
1770
|
+
};
|
|
1721
1771
|
type AppointmentPolicy = {
|
|
1772
|
+
active: boolean;
|
|
1722
1773
|
timezone: string | null;
|
|
1723
1774
|
availability: Record<string, {
|
|
1724
1775
|
start: string;
|
|
@@ -1734,7 +1785,9 @@ type AppointmentPolicy = {
|
|
|
1734
1785
|
serviceSelectionEnabled?: boolean | null;
|
|
1735
1786
|
paymentEnabled?: boolean | null;
|
|
1736
1787
|
requireApproval?: boolean | null;
|
|
1788
|
+
sync?: AppointmentPolicySync | null;
|
|
1737
1789
|
agent?: Agent | null;
|
|
1790
|
+
agentUuid?: string | null;
|
|
1738
1791
|
};
|
|
1739
1792
|
type AppointmentBookingContext = {
|
|
1740
1793
|
resolved: AppointmentPolicy | null;
|
|
@@ -3325,7 +3378,7 @@ type LoyaltyMember = {
|
|
|
3325
3378
|
};
|
|
3326
3379
|
//#endregion
|
|
3327
3380
|
//#region src/segment/types.d.ts
|
|
3328
|
-
type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'has_user' | 'last_purchase_after' | 'last_purchase_before' | 'total_order_amount' | 'order_count_at_least' | 'never_purchased' | 'avg_order_value_at_least' | 'last_contact_after' | 'last_contact_before' | 'created_after' | 'created_before' | 'email_contains';
|
|
3381
|
+
type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'has_user' | 'last_purchase_after' | 'last_purchase_before' | 'total_order_amount' | 'order_count_at_least' | 'never_purchased' | 'avg_order_value_at_least' | 'last_contact_after' | 'last_contact_before' | 'waiting_on' | 'created_after' | 'created_before' | 'email_contains';
|
|
3329
3382
|
type SegmentCondition = {
|
|
3330
3383
|
type: SegmentConditionType;
|
|
3331
3384
|
value: string | boolean;
|
|
@@ -3435,7 +3488,7 @@ type UpdateCreatePayload = {
|
|
|
3435
3488
|
type: UpdateType;
|
|
3436
3489
|
body?: string;
|
|
3437
3490
|
imageUrl?: string;
|
|
3438
|
-
media?:
|
|
3491
|
+
media?: string[];
|
|
3439
3492
|
linkUrl?: string;
|
|
3440
3493
|
startsAt?: string;
|
|
3441
3494
|
endsAt?: string;
|
|
@@ -3687,4 +3740,4 @@ type CliSessionStatus = {
|
|
|
3687
3740
|
meta: CliSessionMeta | null;
|
|
3688
3741
|
};
|
|
3689
3742
|
//#endregion
|
|
3690
|
-
export { Achievement, ActivateAgentWebhookWarpPayload, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookTrigger, AgentWebhookTriggerCondition, AgentWebhookTriggerInput, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, AppSubscription, AppointmentAvailability, AppointmentAvailabilityService, AppointmentAvailabilitySlot, AppointmentBooking, AppointmentBookingContext, AppointmentPolicy, AppointmentRequest, AppointmentSlot, AuthUser, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Campaign, CampaignApproval, CampaignCategory, CampaignChannel, CampaignCreatePayload, CampaignStats, CampaignStatus, CampaignUpdatePayload, Card, Cart, CartItem, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, CommissionAgreement, Configuration, Contact, ContactActivity, ContactActivityAuthor, ContactActivityType, ContactCreatePayload, ContactFormData, ContactHealth, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, CouponCondition, CouponRestrictedItem, CouponRestrictedItemType, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, EarnResponse, 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, IntegrationMeta, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, JsonValue, Kyc, KycStatus, Link, LinkCreatePayload, LinkScanHistory, LinkStats, LinkUpdatePayload, LinkVariation, LinkVariationBatchCreatePayload, LinkVariationCreatePayload, LocalAgentWallet, LoyaltyAccount, LoyaltyMember, LoyaltyNextTier, LoyaltyProgram, LoyaltyPromotion, LoyaltyReward, LoyaltyStatus, LoyaltyTier, LoyaltyTierInfo, LoyaltyTransaction, McpToolCall, McpToolCallBroadcast, McpToolCallStatus, Media, MediaAttributes, MediaItems, MediaLibraryAttributes,
|
|
3743
|
+
export { Achievement, ActivateAgentWebhookWarpPayload, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookTrigger, AgentWebhookTriggerCondition, AgentWebhookTriggerInput, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, AppSubscription, AppointmentAvailability, AppointmentAvailabilityService, AppointmentAvailabilitySlot, AppointmentBooking, AppointmentBookingContext, AppointmentPolicy, AppointmentPolicySync, AppointmentRequest, AppointmentSlot, AuthUser, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Campaign, CampaignApproval, CampaignCategory, CampaignChannel, CampaignCreatePayload, CampaignStats, CampaignStatus, CampaignUpdatePayload, Card, Cart, CartItem, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, CommissionAgreement, Configuration, Contact, ContactActivity, ContactActivityAuthor, ContactActivityType, ContactConsent, ContactConsentStatus, ContactCreatePayload, ContactFormData, ContactHealth, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, CouponCondition, CouponRestrictedItem, CouponRestrictedItemType, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, EarnResponse, 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, IntegrationMeta, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, JsonValue, Kyc, KycStatus, Link, LinkCreatePayload, LinkScanHistory, LinkStats, LinkUpdatePayload, LinkVariation, LinkVariationBatchCreatePayload, LinkVariationCreatePayload, LocalAgentWallet, LoyaltyAccount, LoyaltyMember, LoyaltyNextTier, LoyaltyProgram, LoyaltyPromotion, LoyaltyReward, LoyaltyStatus, LoyaltyTier, LoyaltyTierInfo, LoyaltyTransaction, McpToolCall, McpToolCallBroadcast, McpToolCallStatus, Media, MediaAspectRatio, MediaAttributes, MediaItems, MediaLibraryAttributes, MediaMime, Meeting, MeetingConferenceProvider, MeetingFeature, MeetingJoinInfo, MeetingJoinTeam, MeetingParticipant, MeetingSessionState, MeetingSpeakerAssignment, MeetingStatus, MeetingSummary, MeetingTranscriptEntry, MeetingUsage, Memory, Message, MessageId, MessageRole, Milestone, MilestoneType, Mission, MissionBudget, MissionCreatePayload, MissionPlan, MissionPriority, MissionSchedule, MissionStatus, MissionViewable, MollieTerminalPaymentResult, 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, OrderConfigurationItem, OrderContext, OrderItem, OrderSource, OrderStatus, OrderType, PaginatedResponse, Pass, PaymentAccount, PaymentAccountOnboarding, PaymentProvider, PayoutEntry, PeriodTypeLabels, PeriodTypeOptions, PermissionConfigType, PersonaQuestionable, Plan, PlanBenefit, PlanExtra, PlanFeature, PlanInterval, PolicyMethod, PolicySetting, PricingModel, Product, ProductDiscount, ProductMeta, ProductPieces, ProductRating, ProductRelation, ProductRelationType, ProductVariation, ProductVariationMeta, ProductVariationType, ProgramSettings, 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, RedeemResponse, Reminder, Room, RoomId, RoomKind, ScInfo, SchedulePreset, SecretAuthorizable, SecretSettable, Segment, SegmentCondition, SegmentConditionType, SegmentCountPayload, SegmentCountResult, SegmentCreatePayload, SegmentGroup, SendableActivityUpdate, SendableAgentAction, SendableAgentMessage, SendableAgentThought, SendableMedia, SendableUserMessage, Service, Shortcut, Site, SiteAgent, SiteBrand, SiteRoute, SiteTeam, Skill, SkillMediaBindingRole, SkillMediaBindingRoleValue, SkillScope, SkillScopeValue, SkillType, SkillTypeValue, SocialAuthProvider, SocialBot, SocialPlatform, StampResponse, Store, StoreAgent, StoreCheckoutItem, StoreCreatePayload, StoreData, StoreEntityType, StoreEntry, StoreEntryPayload, StoreEntryResult, StoreInfo, StoreItem, StoreListing, StorePriceTier, StorePricing, StorePurchasable, StorePurchaseResult, StoreToggleResult, StoreVisibility, StoreWithEntries, Streak, SubscriptionInterval, SubscriptionPlan, SubscriptionStatus, Swarm, Tag, TagType, Task, Team, TeamBrand, TeamCategory, TeamEarning, TeamEarningsBalance, TeamFeature, TeamFeatureUsage, TeamMember, TeamMeta, TeamPayout, TeamPayoutAddress, TeamPlace, TeamPrivate, TeamSettings, TeamUsage, TerminalConnectionToken, TerminalPaymentIntent, Tier, TierFeature, TierName, TranscriptEntry, TranscriptionCorrection, TranscriptionResponse, TranslatableValue, Update, UpdateCreatePayload, UpdateRelation, UpdateStats, UpdateStatus, UpdateType, UpdateUpdatePayload, Upgrade, UpgradeSourceType, UpgradeStatus, User, UserInterest, UserMode, UserPrivate, UserRole, UserSettings, UserSocialAccount, UserStats, VolumePrice, Wallet, WalletList, WarpApprovable, WarpBackend, WarpBackendStatus, WarpBatchItem, WarpBatchable, WarpCloudExecutable, WarpCreateable, WarpExecutable, WarpExecutionBackend, 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, getFormsBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getStoreBaseUrl, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, localize, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, teamCategories, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
|