@joai/core 0.9.0 → 0.11.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { n as IHttpService, r as IRequestOptions, t as IAppResponse } from "./types-C4eYYzWF.mjs";
1
+ import { n as IHttpService, r as IRequestOptions, t as IAppResponse } from "./types-CWSaEVa7.mjs";
2
2
  import { Warp, WarpActionInput, WarpBrandUrls, WarpChainInfo, WarpChainName, WarpI18nText, WarpLocale, WarpSecret, WarpText, WarpWalletProvider } from "@joai/warps";
3
3
 
4
4
  //#region src/auth/types.d.ts
@@ -51,6 +51,7 @@ declare class HttpService implements IHttpService {
51
51
  get: <T>(url: string, options?: IRequestOptions) => Promise<IAppResponse<T>>;
52
52
  post: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
53
53
  put: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
54
+ patch: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
54
55
  delete: <T>(url: string, options?: IRequestOptions) => Promise<IAppResponse<T>>;
55
56
  private getCsrfToken;
56
57
  private request;
@@ -304,8 +305,7 @@ type PlanExtra = {
304
305
  unitName: string;
305
306
  };
306
307
  type BillingAddress = {
307
- firstName: string;
308
- lastName: string;
308
+ name: string;
309
309
  addressOne: string | null;
310
310
  city: string | null;
311
311
  state: string | null;
@@ -318,7 +318,7 @@ type PlanInterval = 'weekly' | 'monthly' | 'yearly' | 'lifetime';
318
318
  type Plan = {
319
319
  resource: 'plan';
320
320
  sku: string;
321
- name: string;
321
+ name: TranslatableValue;
322
322
  description: Partial<Record<WarpLocale, string>>;
323
323
  price: number;
324
324
  priceDisplay: string;
@@ -371,20 +371,32 @@ type ProductVariationType = {
371
371
  name: string;
372
372
  };
373
373
  type ProductRelationType = 'cross_sell' | 'upsell' | 'add_on';
374
+ type ProductRelation = {
375
+ id: string;
376
+ name: TranslatableValue;
377
+ slug: string;
378
+ price: number;
379
+ unit: string | null;
380
+ type: ProductRelationType;
381
+ position: number;
382
+ variations: ProductVariation[];
383
+ };
374
384
  type ProductVariation = {
375
- resource: 'product-variation';
385
+ resource?: 'product-variation';
376
386
  sku: string;
377
- name: string;
387
+ name: TranslatableValue;
378
388
  type?: ProductVariationType | null;
379
389
  description?: Partial<Record<WarpLocale, string>>;
380
390
  price: number;
381
391
  badge?: string;
382
392
  quantity?: number;
383
393
  media?: Media[];
384
- preorder: boolean;
385
- availableAt?: string;
386
- pieces?: ProductPieces;
387
- discount?: ProductDiscount;
394
+ preorder?: boolean;
395
+ active?: boolean;
396
+ hidden?: boolean;
397
+ availableAt?: string | null;
398
+ pieces?: ProductPieces | null;
399
+ discount?: ProductDiscount | null;
388
400
  product?: Product;
389
401
  meta?: {
390
402
  appleProductId: string | null;
@@ -394,10 +406,18 @@ type ProductVariation = {
394
406
  };
395
407
  type Product = {
396
408
  slug: string;
397
- name: string;
409
+ name: TranslatableValue;
398
410
  description?: Partial<Record<WarpLocale, string>>;
411
+ price?: number;
412
+ unit?: string | null;
413
+ active?: boolean;
414
+ virtual?: boolean;
415
+ tags?: string[] | null;
416
+ createdAt?: string;
417
+ updatedAt?: string;
399
418
  variations: ProductVariation[];
400
- rating: ProductRating;
419
+ relatedProducts?: ProductRelation[];
420
+ rating?: ProductRating;
401
421
  };
402
422
  type OrderItem = {
403
423
  name: string;
@@ -413,6 +433,8 @@ type Order = {
413
433
  status: OrderStatus;
414
434
  invoiceUrl: string;
415
435
  createdAt: string;
436
+ invoiceDate: string;
437
+ meta: Record<string, any> | null;
416
438
  items: OrderItem[];
417
439
  plan: Plan | null;
418
440
  user: UserPrivate | null;
@@ -660,6 +682,173 @@ type Skill = {
660
682
  screenshots: string[];
661
683
  };
662
684
  //#endregion
685
+ //#region src/integration/types.d.ts
686
+ type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'ai-nexus' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
687
+ type IntegrationDetails = {
688
+ type: IntegrationType;
689
+ name: string;
690
+ description?: string;
691
+ logoUrl?: string;
692
+ logoUrlDark?: string;
693
+ slug?: string;
694
+ category?: string;
695
+ [key: string]: unknown;
696
+ };
697
+ type Integration = {
698
+ id: string;
699
+ type: IntegrationType;
700
+ name: string;
701
+ active: boolean;
702
+ createdAt: string;
703
+ details?: IntegrationDetails;
704
+ };
705
+ type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
706
+ type SocialBot = {
707
+ name: string;
708
+ createdAt: string;
709
+ phoneNumberId?: string;
710
+ phoneNumber?: string;
711
+ applicationId?: string;
712
+ appId?: string;
713
+ installationId?: string;
714
+ };
715
+ type XIntegrationStatus = {
716
+ enabled: boolean;
717
+ integrationId: string | null;
718
+ xAccountLinked: boolean;
719
+ currentAgentName: string | null;
720
+ };
721
+ type EmbedStatus = {
722
+ integrationId: string;
723
+ agentName: string;
724
+ agentAvatar: string | null;
725
+ active: boolean;
726
+ allowedDomains: string[];
727
+ };
728
+ type EmailProvider = 'resend' | 'mailgun' | 'sendgrid';
729
+ type CalendarProvider = 'google' | 'apple' | 'microsoft';
730
+ type CalendarStatus = {
731
+ connected: boolean;
732
+ provider?: CalendarProvider;
733
+ providerDisplayName?: string;
734
+ accountEmail?: string;
735
+ lastSynced?: string;
736
+ tokenHealthy?: boolean;
737
+ upcomingEvents?: {
738
+ title: string;
739
+ startAt: string;
740
+ endAt: string;
741
+ allDay: boolean;
742
+ }[];
743
+ };
744
+ //#endregion
745
+ //#region src/room/types.d.ts
746
+ type RoomId = string;
747
+ type RoomKind = 'default' | 'phone' | 'meeting';
748
+ type Room = {
749
+ id: string;
750
+ name: string;
751
+ description: string | null;
752
+ public: boolean;
753
+ default: boolean;
754
+ active: boolean;
755
+ kind?: RoomKind | null;
756
+ archivedAt?: string | null;
757
+ secKey: string | null;
758
+ createdAt: string | null;
759
+ contactId?: string | null;
760
+ agent: AgentSimple;
761
+ integration: Integration | null;
762
+ };
763
+ //#endregion
764
+ //#region src/agent/types.d.ts
765
+ type AgentCharacter = {
766
+ name: string | null;
767
+ system: string | null;
768
+ bio: string | null;
769
+ };
770
+ type Agent = {
771
+ uuid: string;
772
+ name: string;
773
+ description: string;
774
+ avatar: string;
775
+ wallets: Wallet[];
776
+ settings: AgentSettings;
777
+ marketplace: MarketplaceInfo;
778
+ character?: AgentCharacter | null;
779
+ room: Room;
780
+ role: string | null;
781
+ blueprint: Blueprint | null;
782
+ team: string;
783
+ };
784
+ type AgentPrivate = {
785
+ uuid: string;
786
+ name: string;
787
+ description: string;
788
+ avatar: string;
789
+ wallets: Wallet[];
790
+ settings: AgentSettings;
791
+ marketplace: MarketplaceInfo;
792
+ password: string | null;
793
+ authKey: string | null;
794
+ secKey: string;
795
+ emailAddress: string | null;
796
+ phoneNumber: string | null;
797
+ room: Room;
798
+ role: string | null;
799
+ blueprint: Blueprint | null;
800
+ justCreated?: boolean;
801
+ team: string;
802
+ };
803
+ type AgentActionHistoryEntry = {
804
+ id: string;
805
+ action: string | null;
806
+ outcome: 'succeeded' | 'failed';
807
+ outcomeDetail: string | null;
808
+ warpIdentifier: string | null;
809
+ meta: Record<string, unknown> | null;
810
+ createdAt: string | null;
811
+ };
812
+ type AgentSimple = {
813
+ uuid: string;
814
+ name: string;
815
+ };
816
+ type AgentWalletMode = 'local' | 'cloud' | 'external';
817
+ type AgentEngine = 'cortex' | 'openclaw';
818
+ type AgentGender = 'male' | 'female' | 'neutral';
819
+ type AgentSettings = {
820
+ auto: boolean;
821
+ 'model.url': string;
822
+ 'voice.output': boolean;
823
+ 'voice.id': string;
824
+ 'agent.gender'?: AgentGender;
825
+ 'proactivity.enabled': boolean;
826
+ 'proactivity.quietHoursStart'?: number;
827
+ 'proactivity.quietHoursEnd'?: number;
828
+ 'proactivity.maxMessagesPerDay'?: number;
829
+ 'proactivity.timezone'?: string;
830
+ 'proactivity.blockedBehaviors'?: string[];
831
+ engine: AgentEngine;
832
+ 'training.url'?: string | null;
833
+ 'training.status'?: 'idle' | 'training' | 'completed' | 'failed' | null;
834
+ 'training.recrawlInterval'?: number | null;
835
+ 'email_provider'?: EmailProvider | null;
836
+ };
837
+ type LocalAgentWallet = {
838
+ provider: WarpWalletProvider;
839
+ address: string;
840
+ mnemonic?: string | null;
841
+ privateKey?: string | null;
842
+ };
843
+ type AgentExecuteHandler = (prompt: string, options?: AgentExecuteOptions) => void;
844
+ type AgentExecuteOptions = {
845
+ audio?: File;
846
+ sender?: string;
847
+ media?: Media[];
848
+ ghost?: boolean;
849
+ context?: Record<string, unknown>;
850
+ };
851
+ //#endregion
663
852
  //#region src/warp/types.d.ts
664
853
  type WarpExtrasFaq = {
665
854
  question: string;
@@ -692,6 +881,7 @@ type WarpBackend = {
692
881
  brand: BrandBackend | null;
693
882
  definition?: Record<string, any> | null;
694
883
  extras?: WarpExtras | null;
884
+ agent?: AgentSimple | null;
695
885
  };
696
886
  type WarpBackendStatus = 'unverified' | 'verified' | 'blacklisted';
697
887
  type WarpBackendCategory = 'none';
@@ -948,173 +1138,6 @@ declare const getWarpScreenshotUrl: (brandSlug: string, warpAlias: string, varia
948
1138
  //#region src/helpers/warp.d.ts
949
1139
  declare function resolveWarpText(text?: WarpText | null, locale?: string): string;
950
1140
  //#endregion
951
- //#region src/integration/types.d.ts
952
- type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'ai-nexus' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
953
- type IntegrationDetails = {
954
- type: IntegrationType;
955
- name: string;
956
- description?: string;
957
- logoUrl?: string;
958
- logoUrlDark?: string;
959
- slug?: string;
960
- category?: string;
961
- [key: string]: unknown;
962
- };
963
- type Integration = {
964
- id: string;
965
- type: IntegrationType;
966
- name: string;
967
- active: boolean;
968
- createdAt: string;
969
- details?: IntegrationDetails;
970
- };
971
- type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
972
- type SocialBot = {
973
- name: string;
974
- createdAt: string;
975
- phoneNumberId?: string;
976
- phoneNumber?: string;
977
- applicationId?: string;
978
- appId?: string;
979
- installationId?: string;
980
- };
981
- type XIntegrationStatus = {
982
- enabled: boolean;
983
- integrationId: string | null;
984
- xAccountLinked: boolean;
985
- currentAgentName: string | null;
986
- };
987
- type EmbedStatus = {
988
- integrationId: string;
989
- agentName: string;
990
- agentAvatar: string | null;
991
- active: boolean;
992
- allowedDomains: string[];
993
- };
994
- type EmailProvider = 'resend' | 'mailgun' | 'sendgrid';
995
- type CalendarProvider = 'google' | 'apple' | 'microsoft';
996
- type CalendarStatus = {
997
- connected: boolean;
998
- provider?: CalendarProvider;
999
- providerDisplayName?: string;
1000
- accountEmail?: string;
1001
- lastSynced?: string;
1002
- tokenHealthy?: boolean;
1003
- upcomingEvents?: {
1004
- title: string;
1005
- startAt: string;
1006
- endAt: string;
1007
- allDay: boolean;
1008
- }[];
1009
- };
1010
- //#endregion
1011
- //#region src/room/types.d.ts
1012
- type RoomId = string;
1013
- type RoomKind = 'default' | 'phone' | 'meeting';
1014
- type Room = {
1015
- id: string;
1016
- name: string;
1017
- description: string | null;
1018
- public: boolean;
1019
- default: boolean;
1020
- active: boolean;
1021
- kind?: RoomKind | null;
1022
- archivedAt?: string | null;
1023
- secKey: string | null;
1024
- createdAt: string | null;
1025
- contactId?: string | null;
1026
- agent: AgentSimple;
1027
- integration: Integration | null;
1028
- };
1029
- //#endregion
1030
- //#region src/agent/types.d.ts
1031
- type AgentCharacter = {
1032
- name: string | null;
1033
- system: string | null;
1034
- bio: string | null;
1035
- };
1036
- type Agent = {
1037
- uuid: string;
1038
- name: string;
1039
- description: string;
1040
- avatar: string;
1041
- wallets: Wallet[];
1042
- settings: AgentSettings;
1043
- marketplace: MarketplaceInfo;
1044
- character?: AgentCharacter | null;
1045
- room: Room;
1046
- role: string | null;
1047
- blueprint: Blueprint | null;
1048
- team: string;
1049
- };
1050
- type AgentPrivate = {
1051
- uuid: string;
1052
- name: string;
1053
- description: string;
1054
- avatar: string;
1055
- wallets: Wallet[];
1056
- settings: AgentSettings;
1057
- marketplace: MarketplaceInfo;
1058
- password: string | null;
1059
- authKey: string | null;
1060
- secKey: string;
1061
- emailAddress: string | null;
1062
- phoneNumber: string | null;
1063
- room: Room;
1064
- role: string | null;
1065
- blueprint: Blueprint | null;
1066
- justCreated?: boolean;
1067
- team: string;
1068
- };
1069
- type AgentActionHistoryEntry = {
1070
- id: string;
1071
- action: string | null;
1072
- outcome: 'succeeded' | 'failed';
1073
- outcomeDetail: string | null;
1074
- warpIdentifier: string | null;
1075
- meta: Record<string, unknown> | null;
1076
- createdAt: string | null;
1077
- };
1078
- type AgentSimple = {
1079
- uuid: string;
1080
- name: string;
1081
- };
1082
- type AgentWalletMode = 'local' | 'cloud' | 'external';
1083
- type AgentEngine = 'cortex' | 'openclaw';
1084
- type AgentGender = 'male' | 'female' | 'neutral';
1085
- type AgentSettings = {
1086
- auto: boolean;
1087
- 'model.url': string;
1088
- 'voice.output': boolean;
1089
- 'voice.id': string;
1090
- 'agent.gender'?: AgentGender;
1091
- 'proactivity.enabled': boolean;
1092
- 'proactivity.quietHoursStart'?: number;
1093
- 'proactivity.quietHoursEnd'?: number;
1094
- 'proactivity.maxMessagesPerDay'?: number;
1095
- 'proactivity.timezone'?: string;
1096
- 'proactivity.blockedBehaviors'?: string[];
1097
- engine: AgentEngine;
1098
- 'training.url'?: string | null;
1099
- 'training.status'?: 'idle' | 'training' | 'completed' | 'failed' | null;
1100
- 'training.recrawlInterval'?: number | null;
1101
- 'email_provider'?: EmailProvider | null;
1102
- };
1103
- type LocalAgentWallet = {
1104
- provider: WarpWalletProvider;
1105
- address: string;
1106
- mnemonic?: string | null;
1107
- privateKey?: string | null;
1108
- };
1109
- type AgentExecuteHandler = (prompt: string, options?: AgentExecuteOptions) => void;
1110
- type AgentExecuteOptions = {
1111
- audio?: File;
1112
- sender?: string;
1113
- media?: Media[];
1114
- ghost?: boolean;
1115
- context?: Record<string, unknown>;
1116
- };
1117
- //#endregion
1118
1141
  //#region src/alert/types.d.ts
1119
1142
  type Alert = {
1120
1143
  id: string;
@@ -2590,11 +2613,11 @@ type Reminder = {
2590
2613
  type Service = {
2591
2614
  id: string;
2592
2615
  slug: string;
2593
- name: string;
2616
+ name: TranslatableValue;
2594
2617
  price: number;
2595
2618
  durationMinutes: number;
2596
2619
  category: string | null;
2597
- description: string | null;
2620
+ description: TranslatableValue | null;
2598
2621
  active: boolean;
2599
2622
  digital: boolean;
2600
2623
  public: boolean;
@@ -2961,4 +2984,4 @@ type CliSessionStatus = {
2961
2984
  meta: CliSessionMeta | null;
2962
2985
  };
2963
2986
  //#endregion
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 };
2987
+ 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, ProductRelation, 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
@@ -65,6 +65,7 @@ var HttpService = class {
65
65
  this.get = async (url, options) => await this.request("GET", url, void 0, options);
66
66
  this.post = async (url, data, options) => await this.request("POST", url, data, options);
67
67
  this.put = async (url, data, options) => await this.request("PUT", url, data, options);
68
+ this.patch = async (url, data, options) => await this.request("PATCH", url, data, options);
68
69
  this.delete = async (url, options) => await this.request("DELETE", url, void 0, options);
69
70
  this.getCsrfToken = () => {
70
71
  if (typeof document === "undefined") return null;
@@ -1,4 +1,4 @@
1
- import { n as IHttpService } from "../types-C4eYYzWF.mjs";
1
+ import { n as IHttpService } from "../types-CWSaEVa7.mjs";
2
2
  import * as react from "react";
3
3
  import { ReactNode } from "react";
4
4
 
@@ -9,6 +9,7 @@ interface IHttpService {
9
9
  get: <T>(url: string, options?: IRequestOptions) => Promise<IAppResponse<T>>;
10
10
  post: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
11
11
  put: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
12
+ patch: <T>(url: string, data?: any, options?: IRequestOptions) => Promise<IAppResponse<T>>;
12
13
  delete: <T>(url: string, options?: IRequestOptions) => Promise<IAppResponse<T>>;
13
14
  }
14
15
  interface IAppResponse<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/core",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "JoAi shared types, HTTP service, and config",
5
5
  "license": "MIT",
6
6
  "type": "module",