@joai/core 0.8.0 → 0.10.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-
|
|
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
|
-
|
|
308
|
-
lastName: string;
|
|
308
|
+
name: string;
|
|
309
309
|
addressOne: string | null;
|
|
310
310
|
city: string | null;
|
|
311
311
|
state: string | null;
|
|
@@ -370,6 +370,7 @@ type ProductDiscount = {
|
|
|
370
370
|
type ProductVariationType = {
|
|
371
371
|
name: string;
|
|
372
372
|
};
|
|
373
|
+
type ProductRelationType = 'cross_sell' | 'upsell' | 'add_on';
|
|
373
374
|
type ProductVariation = {
|
|
374
375
|
resource: 'product-variation';
|
|
375
376
|
sku: string;
|
|
@@ -412,6 +413,7 @@ type Order = {
|
|
|
412
413
|
status: OrderStatus;
|
|
413
414
|
invoiceUrl: string;
|
|
414
415
|
createdAt: string;
|
|
416
|
+
invoiceDate: string;
|
|
415
417
|
items: OrderItem[];
|
|
416
418
|
plan: Plan | null;
|
|
417
419
|
user: UserPrivate | null;
|
|
@@ -513,7 +515,7 @@ type ByokProviderName = keyof ByokProviders;
|
|
|
513
515
|
type TeamSettings = {
|
|
514
516
|
'extra.messages': number;
|
|
515
517
|
'limit.spending': number | null;
|
|
516
|
-
'currency'
|
|
518
|
+
'currency': string;
|
|
517
519
|
'extra.usage.enabled'?: boolean;
|
|
518
520
|
'auto.reload.enabled'?: boolean;
|
|
519
521
|
'auto.reload.threshold_cents'?: number | null;
|
|
@@ -659,6 +661,173 @@ type Skill = {
|
|
|
659
661
|
screenshots: string[];
|
|
660
662
|
};
|
|
661
663
|
//#endregion
|
|
664
|
+
//#region src/integration/types.d.ts
|
|
665
|
+
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'ai-nexus' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
|
|
666
|
+
type IntegrationDetails = {
|
|
667
|
+
type: IntegrationType;
|
|
668
|
+
name: string;
|
|
669
|
+
description?: string;
|
|
670
|
+
logoUrl?: string;
|
|
671
|
+
logoUrlDark?: string;
|
|
672
|
+
slug?: string;
|
|
673
|
+
category?: string;
|
|
674
|
+
[key: string]: unknown;
|
|
675
|
+
};
|
|
676
|
+
type Integration = {
|
|
677
|
+
id: string;
|
|
678
|
+
type: IntegrationType;
|
|
679
|
+
name: string;
|
|
680
|
+
active: boolean;
|
|
681
|
+
createdAt: string;
|
|
682
|
+
details?: IntegrationDetails;
|
|
683
|
+
};
|
|
684
|
+
type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
|
|
685
|
+
type SocialBot = {
|
|
686
|
+
name: string;
|
|
687
|
+
createdAt: string;
|
|
688
|
+
phoneNumberId?: string;
|
|
689
|
+
phoneNumber?: string;
|
|
690
|
+
applicationId?: string;
|
|
691
|
+
appId?: string;
|
|
692
|
+
installationId?: string;
|
|
693
|
+
};
|
|
694
|
+
type XIntegrationStatus = {
|
|
695
|
+
enabled: boolean;
|
|
696
|
+
integrationId: string | null;
|
|
697
|
+
xAccountLinked: boolean;
|
|
698
|
+
currentAgentName: string | null;
|
|
699
|
+
};
|
|
700
|
+
type EmbedStatus = {
|
|
701
|
+
integrationId: string;
|
|
702
|
+
agentName: string;
|
|
703
|
+
agentAvatar: string | null;
|
|
704
|
+
active: boolean;
|
|
705
|
+
allowedDomains: string[];
|
|
706
|
+
};
|
|
707
|
+
type EmailProvider = 'resend' | 'mailgun' | 'sendgrid';
|
|
708
|
+
type CalendarProvider = 'google' | 'apple' | 'microsoft';
|
|
709
|
+
type CalendarStatus = {
|
|
710
|
+
connected: boolean;
|
|
711
|
+
provider?: CalendarProvider;
|
|
712
|
+
providerDisplayName?: string;
|
|
713
|
+
accountEmail?: string;
|
|
714
|
+
lastSynced?: string;
|
|
715
|
+
tokenHealthy?: boolean;
|
|
716
|
+
upcomingEvents?: {
|
|
717
|
+
title: string;
|
|
718
|
+
startAt: string;
|
|
719
|
+
endAt: string;
|
|
720
|
+
allDay: boolean;
|
|
721
|
+
}[];
|
|
722
|
+
};
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region src/room/types.d.ts
|
|
725
|
+
type RoomId = string;
|
|
726
|
+
type RoomKind = 'default' | 'phone' | 'meeting';
|
|
727
|
+
type Room = {
|
|
728
|
+
id: string;
|
|
729
|
+
name: string;
|
|
730
|
+
description: string | null;
|
|
731
|
+
public: boolean;
|
|
732
|
+
default: boolean;
|
|
733
|
+
active: boolean;
|
|
734
|
+
kind?: RoomKind | null;
|
|
735
|
+
archivedAt?: string | null;
|
|
736
|
+
secKey: string | null;
|
|
737
|
+
createdAt: string | null;
|
|
738
|
+
contactId?: string | null;
|
|
739
|
+
agent: AgentSimple;
|
|
740
|
+
integration: Integration | null;
|
|
741
|
+
};
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region src/agent/types.d.ts
|
|
744
|
+
type AgentCharacter = {
|
|
745
|
+
name: string | null;
|
|
746
|
+
system: string | null;
|
|
747
|
+
bio: string | null;
|
|
748
|
+
};
|
|
749
|
+
type Agent = {
|
|
750
|
+
uuid: string;
|
|
751
|
+
name: string;
|
|
752
|
+
description: string;
|
|
753
|
+
avatar: string;
|
|
754
|
+
wallets: Wallet[];
|
|
755
|
+
settings: AgentSettings;
|
|
756
|
+
marketplace: MarketplaceInfo;
|
|
757
|
+
character?: AgentCharacter | null;
|
|
758
|
+
room: Room;
|
|
759
|
+
role: string | null;
|
|
760
|
+
blueprint: Blueprint | null;
|
|
761
|
+
team: string;
|
|
762
|
+
};
|
|
763
|
+
type AgentPrivate = {
|
|
764
|
+
uuid: string;
|
|
765
|
+
name: string;
|
|
766
|
+
description: string;
|
|
767
|
+
avatar: string;
|
|
768
|
+
wallets: Wallet[];
|
|
769
|
+
settings: AgentSettings;
|
|
770
|
+
marketplace: MarketplaceInfo;
|
|
771
|
+
password: string | null;
|
|
772
|
+
authKey: string | null;
|
|
773
|
+
secKey: string;
|
|
774
|
+
emailAddress: string | null;
|
|
775
|
+
phoneNumber: string | null;
|
|
776
|
+
room: Room;
|
|
777
|
+
role: string | null;
|
|
778
|
+
blueprint: Blueprint | null;
|
|
779
|
+
justCreated?: boolean;
|
|
780
|
+
team: string;
|
|
781
|
+
};
|
|
782
|
+
type AgentActionHistoryEntry = {
|
|
783
|
+
id: string;
|
|
784
|
+
action: string | null;
|
|
785
|
+
outcome: 'succeeded' | 'failed';
|
|
786
|
+
outcomeDetail: string | null;
|
|
787
|
+
warpIdentifier: string | null;
|
|
788
|
+
meta: Record<string, unknown> | null;
|
|
789
|
+
createdAt: string | null;
|
|
790
|
+
};
|
|
791
|
+
type AgentSimple = {
|
|
792
|
+
uuid: string;
|
|
793
|
+
name: string;
|
|
794
|
+
};
|
|
795
|
+
type AgentWalletMode = 'local' | 'cloud' | 'external';
|
|
796
|
+
type AgentEngine = 'cortex' | 'openclaw';
|
|
797
|
+
type AgentGender = 'male' | 'female' | 'neutral';
|
|
798
|
+
type AgentSettings = {
|
|
799
|
+
auto: boolean;
|
|
800
|
+
'model.url': string;
|
|
801
|
+
'voice.output': boolean;
|
|
802
|
+
'voice.id': string;
|
|
803
|
+
'agent.gender'?: AgentGender;
|
|
804
|
+
'proactivity.enabled': boolean;
|
|
805
|
+
'proactivity.quietHoursStart'?: number;
|
|
806
|
+
'proactivity.quietHoursEnd'?: number;
|
|
807
|
+
'proactivity.maxMessagesPerDay'?: number;
|
|
808
|
+
'proactivity.timezone'?: string;
|
|
809
|
+
'proactivity.blockedBehaviors'?: string[];
|
|
810
|
+
engine: AgentEngine;
|
|
811
|
+
'training.url'?: string | null;
|
|
812
|
+
'training.status'?: 'idle' | 'training' | 'completed' | 'failed' | null;
|
|
813
|
+
'training.recrawlInterval'?: number | null;
|
|
814
|
+
'email_provider'?: EmailProvider | null;
|
|
815
|
+
};
|
|
816
|
+
type LocalAgentWallet = {
|
|
817
|
+
provider: WarpWalletProvider;
|
|
818
|
+
address: string;
|
|
819
|
+
mnemonic?: string | null;
|
|
820
|
+
privateKey?: string | null;
|
|
821
|
+
};
|
|
822
|
+
type AgentExecuteHandler = (prompt: string, options?: AgentExecuteOptions) => void;
|
|
823
|
+
type AgentExecuteOptions = {
|
|
824
|
+
audio?: File;
|
|
825
|
+
sender?: string;
|
|
826
|
+
media?: Media[];
|
|
827
|
+
ghost?: boolean;
|
|
828
|
+
context?: Record<string, unknown>;
|
|
829
|
+
};
|
|
830
|
+
//#endregion
|
|
662
831
|
//#region src/warp/types.d.ts
|
|
663
832
|
type WarpExtrasFaq = {
|
|
664
833
|
question: string;
|
|
@@ -691,6 +860,7 @@ type WarpBackend = {
|
|
|
691
860
|
brand: BrandBackend | null;
|
|
692
861
|
definition?: Record<string, any> | null;
|
|
693
862
|
extras?: WarpExtras | null;
|
|
863
|
+
agent?: AgentSimple | null;
|
|
694
864
|
};
|
|
695
865
|
type WarpBackendStatus = 'unverified' | 'verified' | 'blacklisted';
|
|
696
866
|
type WarpBackendCategory = 'none';
|
|
@@ -947,173 +1117,6 @@ declare const getWarpScreenshotUrl: (brandSlug: string, warpAlias: string, varia
|
|
|
947
1117
|
//#region src/helpers/warp.d.ts
|
|
948
1118
|
declare function resolveWarpText(text?: WarpText | null, locale?: string): string;
|
|
949
1119
|
//#endregion
|
|
950
|
-
//#region src/integration/types.d.ts
|
|
951
|
-
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'ai-nexus' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
|
|
952
|
-
type IntegrationDetails = {
|
|
953
|
-
type: IntegrationType;
|
|
954
|
-
name: string;
|
|
955
|
-
description?: string;
|
|
956
|
-
logoUrl?: string;
|
|
957
|
-
logoUrlDark?: string;
|
|
958
|
-
slug?: string;
|
|
959
|
-
category?: string;
|
|
960
|
-
[key: string]: unknown;
|
|
961
|
-
};
|
|
962
|
-
type Integration = {
|
|
963
|
-
id: string;
|
|
964
|
-
type: IntegrationType;
|
|
965
|
-
name: string;
|
|
966
|
-
active: boolean;
|
|
967
|
-
createdAt: string;
|
|
968
|
-
details?: IntegrationDetails;
|
|
969
|
-
};
|
|
970
|
-
type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
|
|
971
|
-
type SocialBot = {
|
|
972
|
-
name: string;
|
|
973
|
-
createdAt: string;
|
|
974
|
-
phoneNumberId?: string;
|
|
975
|
-
phoneNumber?: string;
|
|
976
|
-
applicationId?: string;
|
|
977
|
-
appId?: string;
|
|
978
|
-
installationId?: string;
|
|
979
|
-
};
|
|
980
|
-
type XIntegrationStatus = {
|
|
981
|
-
enabled: boolean;
|
|
982
|
-
integrationId: string | null;
|
|
983
|
-
xAccountLinked: boolean;
|
|
984
|
-
currentAgentName: string | null;
|
|
985
|
-
};
|
|
986
|
-
type EmbedStatus = {
|
|
987
|
-
integrationId: string;
|
|
988
|
-
agentName: string;
|
|
989
|
-
agentAvatar: string | null;
|
|
990
|
-
active: boolean;
|
|
991
|
-
allowedDomains: string[];
|
|
992
|
-
};
|
|
993
|
-
type EmailProvider = 'resend' | 'mailgun' | 'sendgrid';
|
|
994
|
-
type CalendarProvider = 'google' | 'apple' | 'microsoft';
|
|
995
|
-
type CalendarStatus = {
|
|
996
|
-
connected: boolean;
|
|
997
|
-
provider?: CalendarProvider;
|
|
998
|
-
providerDisplayName?: string;
|
|
999
|
-
accountEmail?: string;
|
|
1000
|
-
lastSynced?: string;
|
|
1001
|
-
tokenHealthy?: boolean;
|
|
1002
|
-
upcomingEvents?: {
|
|
1003
|
-
title: string;
|
|
1004
|
-
startAt: string;
|
|
1005
|
-
endAt: string;
|
|
1006
|
-
allDay: boolean;
|
|
1007
|
-
}[];
|
|
1008
|
-
};
|
|
1009
|
-
//#endregion
|
|
1010
|
-
//#region src/room/types.d.ts
|
|
1011
|
-
type RoomId = string;
|
|
1012
|
-
type RoomKind = 'default' | 'phone' | 'meeting';
|
|
1013
|
-
type Room = {
|
|
1014
|
-
id: string;
|
|
1015
|
-
name: string;
|
|
1016
|
-
description: string | null;
|
|
1017
|
-
public: boolean;
|
|
1018
|
-
default: boolean;
|
|
1019
|
-
active: boolean;
|
|
1020
|
-
kind?: RoomKind | null;
|
|
1021
|
-
archivedAt?: string | null;
|
|
1022
|
-
secKey: string | null;
|
|
1023
|
-
createdAt: string | null;
|
|
1024
|
-
contactId?: string | null;
|
|
1025
|
-
agent: AgentSimple;
|
|
1026
|
-
integration: Integration | null;
|
|
1027
|
-
};
|
|
1028
|
-
//#endregion
|
|
1029
|
-
//#region src/agent/types.d.ts
|
|
1030
|
-
type AgentCharacter = {
|
|
1031
|
-
name: string | null;
|
|
1032
|
-
system: string | null;
|
|
1033
|
-
bio: string | null;
|
|
1034
|
-
};
|
|
1035
|
-
type Agent = {
|
|
1036
|
-
uuid: string;
|
|
1037
|
-
name: string;
|
|
1038
|
-
description: string;
|
|
1039
|
-
avatar: string;
|
|
1040
|
-
wallets: Wallet[];
|
|
1041
|
-
settings: AgentSettings;
|
|
1042
|
-
marketplace: MarketplaceInfo;
|
|
1043
|
-
character?: AgentCharacter | null;
|
|
1044
|
-
room: Room;
|
|
1045
|
-
role: string | null;
|
|
1046
|
-
blueprint: Blueprint | null;
|
|
1047
|
-
team: string;
|
|
1048
|
-
};
|
|
1049
|
-
type AgentPrivate = {
|
|
1050
|
-
uuid: string;
|
|
1051
|
-
name: string;
|
|
1052
|
-
description: string;
|
|
1053
|
-
avatar: string;
|
|
1054
|
-
wallets: Wallet[];
|
|
1055
|
-
settings: AgentSettings;
|
|
1056
|
-
marketplace: MarketplaceInfo;
|
|
1057
|
-
password: string | null;
|
|
1058
|
-
authKey: string | null;
|
|
1059
|
-
secKey: string;
|
|
1060
|
-
emailAddress: string | null;
|
|
1061
|
-
phoneNumber: string | null;
|
|
1062
|
-
room: Room;
|
|
1063
|
-
role: string | null;
|
|
1064
|
-
blueprint: Blueprint | null;
|
|
1065
|
-
justCreated?: boolean;
|
|
1066
|
-
team: string;
|
|
1067
|
-
};
|
|
1068
|
-
type AgentActionHistoryEntry = {
|
|
1069
|
-
id: string;
|
|
1070
|
-
action: string | null;
|
|
1071
|
-
outcome: 'succeeded' | 'failed';
|
|
1072
|
-
outcomeDetail: string | null;
|
|
1073
|
-
warpIdentifier: string | null;
|
|
1074
|
-
meta: Record<string, unknown> | null;
|
|
1075
|
-
createdAt: string | null;
|
|
1076
|
-
};
|
|
1077
|
-
type AgentSimple = {
|
|
1078
|
-
uuid: string;
|
|
1079
|
-
name: string;
|
|
1080
|
-
};
|
|
1081
|
-
type AgentWalletMode = 'local' | 'cloud' | 'external';
|
|
1082
|
-
type AgentEngine = 'cortex' | 'openclaw';
|
|
1083
|
-
type AgentGender = 'male' | 'female' | 'neutral';
|
|
1084
|
-
type AgentSettings = {
|
|
1085
|
-
auto: boolean;
|
|
1086
|
-
'model.url': string;
|
|
1087
|
-
'voice.output': boolean;
|
|
1088
|
-
'voice.id': string;
|
|
1089
|
-
'agent.gender'?: AgentGender;
|
|
1090
|
-
'proactivity.enabled': boolean;
|
|
1091
|
-
'proactivity.quietHoursStart'?: number;
|
|
1092
|
-
'proactivity.quietHoursEnd'?: number;
|
|
1093
|
-
'proactivity.maxMessagesPerDay'?: number;
|
|
1094
|
-
'proactivity.timezone'?: string;
|
|
1095
|
-
'proactivity.blockedBehaviors'?: string[];
|
|
1096
|
-
engine: AgentEngine;
|
|
1097
|
-
'training.url'?: string | null;
|
|
1098
|
-
'training.status'?: 'idle' | 'training' | 'completed' | 'failed' | null;
|
|
1099
|
-
'training.recrawlInterval'?: number | null;
|
|
1100
|
-
'email_provider'?: EmailProvider | null;
|
|
1101
|
-
};
|
|
1102
|
-
type LocalAgentWallet = {
|
|
1103
|
-
provider: WarpWalletProvider;
|
|
1104
|
-
address: string;
|
|
1105
|
-
mnemonic?: string | null;
|
|
1106
|
-
privateKey?: string | null;
|
|
1107
|
-
};
|
|
1108
|
-
type AgentExecuteHandler = (prompt: string, options?: AgentExecuteOptions) => void;
|
|
1109
|
-
type AgentExecuteOptions = {
|
|
1110
|
-
audio?: File;
|
|
1111
|
-
sender?: string;
|
|
1112
|
-
media?: Media[];
|
|
1113
|
-
ghost?: boolean;
|
|
1114
|
-
context?: Record<string, unknown>;
|
|
1115
|
-
};
|
|
1116
|
-
//#endregion
|
|
1117
1120
|
//#region src/alert/types.d.ts
|
|
1118
1121
|
type Alert = {
|
|
1119
1122
|
id: string;
|
|
@@ -1220,6 +1223,10 @@ type Contact = {
|
|
|
1220
1223
|
locale?: string | null;
|
|
1221
1224
|
props?: Record<string, string> | null;
|
|
1222
1225
|
};
|
|
1226
|
+
type ContactActivityAuthor = {
|
|
1227
|
+
name: string;
|
|
1228
|
+
imageUrl: string | null;
|
|
1229
|
+
};
|
|
1223
1230
|
type ContactActivity = {
|
|
1224
1231
|
id: string;
|
|
1225
1232
|
type: 'note' | 'call' | 'meeting' | 'email' | 'task' | 'update' | 'custom';
|
|
@@ -1227,6 +1234,7 @@ type ContactActivity = {
|
|
|
1227
1234
|
meta: Record<string, any> | null;
|
|
1228
1235
|
agentName: string | null;
|
|
1229
1236
|
createdAt: string;
|
|
1237
|
+
author?: ContactActivityAuthor | null;
|
|
1230
1238
|
};
|
|
1231
1239
|
type ContactFormData = {
|
|
1232
1240
|
name?: string;
|
|
@@ -2584,11 +2592,11 @@ type Reminder = {
|
|
|
2584
2592
|
type Service = {
|
|
2585
2593
|
id: string;
|
|
2586
2594
|
slug: string;
|
|
2587
|
-
name:
|
|
2595
|
+
name: TranslatableValue;
|
|
2588
2596
|
price: number;
|
|
2589
2597
|
durationMinutes: number;
|
|
2590
2598
|
category: string | null;
|
|
2591
|
-
description:
|
|
2599
|
+
description: TranslatableValue | null;
|
|
2592
2600
|
active: boolean;
|
|
2593
2601
|
digital: boolean;
|
|
2594
2602
|
public: boolean;
|
|
@@ -2691,25 +2699,18 @@ type GamificationData = {
|
|
|
2691
2699
|
//#region src/link/types.d.ts
|
|
2692
2700
|
type Link = {
|
|
2693
2701
|
id: string;
|
|
2694
|
-
slug: string;
|
|
2695
2702
|
url: string;
|
|
2696
2703
|
shortUrl: string;
|
|
2697
2704
|
status: 'active' | 'paused' | 'expired';
|
|
2698
2705
|
title: string | null;
|
|
2699
2706
|
scanCount: number;
|
|
2700
|
-
|
|
2701
|
-
startsAt: string | null;
|
|
2702
|
-
expiresAt: string | null;
|
|
2707
|
+
lastScannedAt: string | null;
|
|
2703
2708
|
createdAt: string;
|
|
2704
2709
|
updatedAt: string;
|
|
2705
2710
|
};
|
|
2706
2711
|
type LinkCreatePayload = {
|
|
2707
2712
|
url: string;
|
|
2708
2713
|
title: string;
|
|
2709
|
-
maxScans?: number;
|
|
2710
|
-
startsAt?: string;
|
|
2711
|
-
expiresAt?: string;
|
|
2712
|
-
status?: 'active' | 'paused' | 'expired';
|
|
2713
2714
|
};
|
|
2714
2715
|
type LinkUpdatePayload = Partial<LinkCreatePayload>;
|
|
2715
2716
|
//#endregion
|
|
@@ -2962,4 +2963,4 @@ type CliSessionStatus = {
|
|
|
2962
2963
|
meta: CliSessionMeta | null;
|
|
2963
2964
|
};
|
|
2964
2965
|
//#endregion
|
|
2965
|
-
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, 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, 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 };
|
|
2966
|
+
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
|
@@ -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;
|
package/dist/react/index.d.mts
CHANGED
|
@@ -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> {
|