@joai/sdk 0.18.0 → 0.19.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 +608 -87
- package/dist/index.mjs +508 -39
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -121,7 +121,7 @@ type Flow = {
|
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
steps: FlowStep[];
|
|
123
123
|
locales: WarpLocale[];
|
|
124
|
-
marketplace:
|
|
124
|
+
marketplace: StoreInfo;
|
|
125
125
|
screenshots: string[];
|
|
126
126
|
};
|
|
127
127
|
type FlowStep = {
|
|
@@ -154,6 +154,7 @@ type WalletList = Partial<Record<WarpChainName, {
|
|
|
154
154
|
address?: string;
|
|
155
155
|
}>>; //#endregion
|
|
156
156
|
//#region src/user/types.d.ts
|
|
157
|
+
type UserRole = 'owner' | 'member';
|
|
157
158
|
type UserMode = 'simple' | 'advanced';
|
|
158
159
|
type UserInterest = 'payments' | 'health' | 'content' | 'business' | 'finance' | 'research' | 'shopping' | 'web3' | 'developer' | 'fitness' | 'ecommerce';
|
|
159
160
|
type UserSettings = {
|
|
@@ -262,6 +263,11 @@ declare const teamCategories: readonly ["general", "food-drink", "retail", "beau
|
|
|
262
263
|
//#region src/team/types.d.ts
|
|
263
264
|
type TeamCategory = typeof teamCategories[number];
|
|
264
265
|
type TeamFeature = 'shop' | 'appointments';
|
|
266
|
+
type TeamMember = User & {
|
|
267
|
+
role: UserRole | null;
|
|
268
|
+
roleAcceptedAt: string | null;
|
|
269
|
+
email: string | null;
|
|
270
|
+
};
|
|
265
271
|
type TeamMeta = {
|
|
266
272
|
'extra.messages'?: number;
|
|
267
273
|
'limit.spending'?: number | null;
|
|
@@ -356,7 +362,60 @@ type ByokProviders = {
|
|
|
356
362
|
xai?: ByokProviderConfig;
|
|
357
363
|
klingai?: ByokProviderConfig;
|
|
358
364
|
};
|
|
359
|
-
|
|
365
|
+
type TeamUsage = Partial<Record<PlanFeature, TeamFeatureUsage>> & {
|
|
366
|
+
extraUsageEnabled?: boolean;
|
|
367
|
+
currentSpending?: number;
|
|
368
|
+
walletCloudUsed?: number;
|
|
369
|
+
walletCloudPremiumUsed?: number;
|
|
370
|
+
spendingLimit?: number | null;
|
|
371
|
+
cycleEndsAt?: string | null;
|
|
372
|
+
resetsAt?: string | null;
|
|
373
|
+
autoReload?: {
|
|
374
|
+
enabled: boolean;
|
|
375
|
+
thresholdCents: number | null;
|
|
376
|
+
amountCents: number | null;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
type TeamFeatureUsage = {
|
|
380
|
+
current: number;
|
|
381
|
+
limit: number;
|
|
382
|
+
reached?: boolean;
|
|
383
|
+
};
|
|
384
|
+
type AiCostEntry = {
|
|
385
|
+
id: number;
|
|
386
|
+
model: string | null;
|
|
387
|
+
agent: {
|
|
388
|
+
name: string;
|
|
389
|
+
uuid: string;
|
|
390
|
+
} | null;
|
|
391
|
+
inputTokens: number;
|
|
392
|
+
outputTokens: number;
|
|
393
|
+
totalTokens: number;
|
|
394
|
+
costCents: number | null;
|
|
395
|
+
createdAt: string;
|
|
396
|
+
};
|
|
397
|
+
type AiCostsSummary = {
|
|
398
|
+
totalCostCents: number;
|
|
399
|
+
totalTokens: number;
|
|
400
|
+
totalRequests: number;
|
|
401
|
+
byModel: Record<string, {
|
|
402
|
+
costCents: number;
|
|
403
|
+
tokens: number;
|
|
404
|
+
count: number;
|
|
405
|
+
}>;
|
|
406
|
+
};
|
|
407
|
+
type AiCostsResponse = {
|
|
408
|
+
summary: AiCostsSummary;
|
|
409
|
+
usages: {
|
|
410
|
+
data: AiCostEntry[];
|
|
411
|
+
pagination: {
|
|
412
|
+
currentPage: number;
|
|
413
|
+
lastPage: number;
|
|
414
|
+
perPage: number;
|
|
415
|
+
total: number;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
}; //#endregion
|
|
360
419
|
//#region src/json/types.d.ts
|
|
361
420
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
362
421
|
[key: string]: JsonValue;
|
|
@@ -712,7 +771,7 @@ type Skill = {
|
|
|
712
771
|
sourcePath: string | null;
|
|
713
772
|
scope?: SkillScopeValue;
|
|
714
773
|
active: boolean;
|
|
715
|
-
marketplace:
|
|
774
|
+
marketplace: StoreInfo;
|
|
716
775
|
createdAt: string;
|
|
717
776
|
media?: Media[];
|
|
718
777
|
screenshots: string[];
|
|
@@ -806,7 +865,7 @@ type Agent = {
|
|
|
806
865
|
avatar: string;
|
|
807
866
|
wallets: Wallet[];
|
|
808
867
|
settings: AgentSettings;
|
|
809
|
-
marketplace:
|
|
868
|
+
marketplace: StoreInfo;
|
|
810
869
|
character?: AgentCharacter | null;
|
|
811
870
|
room: Room;
|
|
812
871
|
role: string | null;
|
|
@@ -820,7 +879,7 @@ type AgentPrivate = {
|
|
|
820
879
|
avatar: string;
|
|
821
880
|
wallets: Wallet[];
|
|
822
881
|
settings: AgentSettings;
|
|
823
|
-
marketplace:
|
|
882
|
+
marketplace: StoreInfo;
|
|
824
883
|
password: string | null;
|
|
825
884
|
authKey: string | null;
|
|
826
885
|
secKey: string;
|
|
@@ -844,6 +903,11 @@ type AgentActionHistoryEntry = {
|
|
|
844
903
|
type AgentSimple = {
|
|
845
904
|
uuid: string;
|
|
846
905
|
name: string;
|
|
906
|
+
avatar?: string | null;
|
|
907
|
+
authKey?: string | null;
|
|
908
|
+
team?: {
|
|
909
|
+
slug: string;
|
|
910
|
+
} | null;
|
|
847
911
|
};
|
|
848
912
|
type AgentEngine = 'cortex' | 'openclaw';
|
|
849
913
|
type AgentGender = 'male' | 'female' | 'neutral';
|
|
@@ -952,7 +1016,52 @@ type BrandBackend = {
|
|
|
952
1016
|
integrations?: Partial<Record<BrandIntegrationProvider, BrandIntegration>>;
|
|
953
1017
|
};
|
|
954
1018
|
};
|
|
955
|
-
|
|
1019
|
+
//#endregion
|
|
1020
|
+
//#region src/store/types.d.ts
|
|
1021
|
+
type StoreVisibility = 'private' | 'team' | 'public';
|
|
1022
|
+
type StoreEntry = {
|
|
1023
|
+
value: number | string | boolean;
|
|
1024
|
+
label?: string;
|
|
1025
|
+
at: string;
|
|
1026
|
+
};
|
|
1027
|
+
type Store = {
|
|
1028
|
+
name: string;
|
|
1029
|
+
description: string;
|
|
1030
|
+
valueType: 'scalar' | 'series';
|
|
1031
|
+
unit?: string;
|
|
1032
|
+
visibility: StoreVisibility;
|
|
1033
|
+
entryCount: number;
|
|
1034
|
+
lastValue?: number | string | boolean;
|
|
1035
|
+
lastAt?: string;
|
|
1036
|
+
};
|
|
1037
|
+
type StoreWithEntries = {
|
|
1038
|
+
name: string;
|
|
1039
|
+
description: string;
|
|
1040
|
+
unit?: string;
|
|
1041
|
+
entries: StoreEntry[];
|
|
1042
|
+
};
|
|
1043
|
+
type StoreCreatePayload = {
|
|
1044
|
+
name: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
valueType?: 'scalar' | 'series';
|
|
1047
|
+
unit?: string;
|
|
1048
|
+
visibility?: StoreVisibility;
|
|
1049
|
+
};
|
|
1050
|
+
type StoreEntryPayload = {
|
|
1051
|
+
storeName?: string;
|
|
1052
|
+
value: number | string | boolean;
|
|
1053
|
+
label?: string;
|
|
1054
|
+
};
|
|
1055
|
+
type StoreEntryResult = {
|
|
1056
|
+
name: string;
|
|
1057
|
+
entryCount: number;
|
|
1058
|
+
};
|
|
1059
|
+
type StoreToggleResult = {
|
|
1060
|
+
name: string;
|
|
1061
|
+
value: number | string | boolean;
|
|
1062
|
+
previous: number | string | boolean;
|
|
1063
|
+
};
|
|
1064
|
+
type StorePricing = {
|
|
956
1065
|
model: PricingModel;
|
|
957
1066
|
amount: string;
|
|
958
1067
|
currency: string;
|
|
@@ -963,17 +1072,18 @@ type MarketplacePricing = {
|
|
|
963
1072
|
trialDays?: number;
|
|
964
1073
|
} | null;
|
|
965
1074
|
};
|
|
966
|
-
type
|
|
1075
|
+
type StoreInfo = {
|
|
967
1076
|
price: number | null;
|
|
968
1077
|
purchased: boolean;
|
|
969
1078
|
uses: number;
|
|
970
1079
|
public: boolean;
|
|
971
|
-
pricing:
|
|
1080
|
+
pricing: StorePricing;
|
|
972
1081
|
};
|
|
973
|
-
type
|
|
1082
|
+
type StoreAgent = {
|
|
974
1083
|
uuid: string;
|
|
975
1084
|
name: string;
|
|
976
1085
|
description: string | null;
|
|
1086
|
+
public: boolean;
|
|
977
1087
|
avatar: string | null;
|
|
978
1088
|
wallets: {
|
|
979
1089
|
address: string;
|
|
@@ -983,12 +1093,15 @@ type MarketplaceAgent = {
|
|
|
983
1093
|
name: string | null;
|
|
984
1094
|
bio: string | null;
|
|
985
1095
|
} | null;
|
|
986
|
-
marketplace:
|
|
1096
|
+
marketplace: StoreInfo;
|
|
987
1097
|
screenshots: string[];
|
|
1098
|
+
mcpEndpoint: string;
|
|
1099
|
+
a2aCard: string;
|
|
1100
|
+
blueprint: Blueprint | null;
|
|
988
1101
|
};
|
|
989
|
-
type
|
|
1102
|
+
type StoreItem = {
|
|
990
1103
|
type: 'agent';
|
|
991
|
-
item:
|
|
1104
|
+
item: StoreAgent;
|
|
992
1105
|
} | {
|
|
993
1106
|
type: 'blueprint';
|
|
994
1107
|
item: Blueprint;
|
|
@@ -999,15 +1112,53 @@ type MarketplaceItem = {
|
|
|
999
1112
|
type: 'skill';
|
|
1000
1113
|
item: Skill;
|
|
1001
1114
|
};
|
|
1002
|
-
type
|
|
1115
|
+
type StoreData = {
|
|
1003
1116
|
blueprints: Blueprint[];
|
|
1004
1117
|
skills: Skill[];
|
|
1005
1118
|
flows: Flow[];
|
|
1006
1119
|
creators: BrandBackend[];
|
|
1007
|
-
agents:
|
|
1008
|
-
items:
|
|
1120
|
+
agents: StoreAgent[];
|
|
1121
|
+
items: StoreItem[];
|
|
1009
1122
|
};
|
|
1010
|
-
|
|
1123
|
+
type StorePriceTier = {
|
|
1124
|
+
sku: string;
|
|
1125
|
+
priceCents: number;
|
|
1126
|
+
label: string;
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* Normalized representation of any marketplace entity for use in checkout flows.
|
|
1130
|
+
* All marketplace entities share a `.marketplace: StoreInfo` property —
|
|
1131
|
+
* combine that with the entity type and ID to construct this.
|
|
1132
|
+
*/
|
|
1133
|
+
type StorePurchaseResult = {
|
|
1134
|
+
purchased: boolean;
|
|
1135
|
+
pricePaid: number;
|
|
1136
|
+
entityType: string;
|
|
1137
|
+
entityId: string;
|
|
1138
|
+
paymentMethod: string;
|
|
1139
|
+
};
|
|
1140
|
+
type TeamEarning = {
|
|
1141
|
+
id: string;
|
|
1142
|
+
amount: number;
|
|
1143
|
+
status: 'pending' | 'paid';
|
|
1144
|
+
orderId: string | null;
|
|
1145
|
+
createdAt: string;
|
|
1146
|
+
};
|
|
1147
|
+
type TeamEarningsBalance = {
|
|
1148
|
+
pendingCents: number;
|
|
1149
|
+
paidCents: number;
|
|
1150
|
+
totalCents: number;
|
|
1151
|
+
};
|
|
1152
|
+
type CommissionAgreement = {
|
|
1153
|
+
id: number;
|
|
1154
|
+
rate: number;
|
|
1155
|
+
status: string;
|
|
1156
|
+
recipientTeam: {
|
|
1157
|
+
name: string;
|
|
1158
|
+
slug: string;
|
|
1159
|
+
};
|
|
1160
|
+
createdAt: string;
|
|
1161
|
+
}; //#endregion
|
|
1011
1162
|
//#region src/blueprint/types.d.ts
|
|
1012
1163
|
type BlueprintTeam = {
|
|
1013
1164
|
slug: string;
|
|
@@ -1025,7 +1176,7 @@ type Blueprint = {
|
|
|
1025
1176
|
verified: boolean;
|
|
1026
1177
|
createdAt: string;
|
|
1027
1178
|
locales: WarpLocale[];
|
|
1028
|
-
marketplace:
|
|
1179
|
+
marketplace: StoreInfo;
|
|
1029
1180
|
tags: string[];
|
|
1030
1181
|
screenshots: string[];
|
|
1031
1182
|
};
|
|
@@ -1067,6 +1218,13 @@ type Alert = {
|
|
|
1067
1218
|
agent: Agent | null;
|
|
1068
1219
|
}; //#endregion
|
|
1069
1220
|
//#region src/api/types.d.ts
|
|
1221
|
+
type ApiToken = {
|
|
1222
|
+
id: number;
|
|
1223
|
+
name: string;
|
|
1224
|
+
teams: Team[];
|
|
1225
|
+
createdAt: string;
|
|
1226
|
+
token?: string;
|
|
1227
|
+
};
|
|
1070
1228
|
type PaginatedResponse<T> = {
|
|
1071
1229
|
data: T[];
|
|
1072
1230
|
current_page: number;
|
|
@@ -1479,6 +1637,23 @@ type ItemUpdatePayload = {
|
|
|
1479
1637
|
}; //#endregion
|
|
1480
1638
|
//#region src/marketing/types.d.ts
|
|
1481
1639
|
//#endregion
|
|
1640
|
+
//#region src/mcp/types.d.ts
|
|
1641
|
+
type McpToolCallStatus = 'pending' | 'success' | 'error';
|
|
1642
|
+
type McpToolCall = {
|
|
1643
|
+
id: string;
|
|
1644
|
+
toolName: string;
|
|
1645
|
+
serverName: string | null;
|
|
1646
|
+
status: McpToolCallStatus;
|
|
1647
|
+
durationMs: number | null;
|
|
1648
|
+
inputSummary: Record<string, unknown> | null;
|
|
1649
|
+
outputSummary: Record<string, unknown> | null;
|
|
1650
|
+
error: string | null;
|
|
1651
|
+
roomId: string | null;
|
|
1652
|
+
integrationId: string | null;
|
|
1653
|
+
agentUuid: string;
|
|
1654
|
+
createdAt: string;
|
|
1655
|
+
};
|
|
1656
|
+
//#endregion
|
|
1482
1657
|
//#region src/memory/types.d.ts
|
|
1483
1658
|
type Memory = {
|
|
1484
1659
|
id: string;
|
|
@@ -2006,6 +2181,10 @@ type BrandSiteConfig = {
|
|
|
2006
2181
|
name?: string;
|
|
2007
2182
|
logoUrl?: string | null;
|
|
2008
2183
|
};
|
|
2184
|
+
type SiteBrand = {
|
|
2185
|
+
slug: string;
|
|
2186
|
+
configureRoute: Pick<SiteRoute, 'path' | 'label'> | null;
|
|
2187
|
+
};
|
|
2009
2188
|
//#endregion
|
|
2010
2189
|
//#region src/stats/types.d.ts
|
|
2011
2190
|
type UserStats = {
|
|
@@ -2204,50 +2383,6 @@ type LoyaltyMember = {
|
|
|
2204
2383
|
tier: string | null;
|
|
2205
2384
|
updatedAt: string;
|
|
2206
2385
|
}; //#endregion
|
|
2207
|
-
//#region src/store/types.d.ts
|
|
2208
|
-
type StoreVisibility = 'private' | 'team' | 'public';
|
|
2209
|
-
type StoreEntry = {
|
|
2210
|
-
value: number | string | boolean;
|
|
2211
|
-
label?: string;
|
|
2212
|
-
at: string;
|
|
2213
|
-
};
|
|
2214
|
-
type Store = {
|
|
2215
|
-
name: string;
|
|
2216
|
-
description: string;
|
|
2217
|
-
valueType: 'scalar' | 'series';
|
|
2218
|
-
unit?: string;
|
|
2219
|
-
visibility: StoreVisibility;
|
|
2220
|
-
entryCount: number;
|
|
2221
|
-
lastValue?: number | string | boolean;
|
|
2222
|
-
lastAt?: string;
|
|
2223
|
-
};
|
|
2224
|
-
type StoreWithEntries = {
|
|
2225
|
-
name: string;
|
|
2226
|
-
description: string;
|
|
2227
|
-
unit?: string;
|
|
2228
|
-
entries: StoreEntry[];
|
|
2229
|
-
};
|
|
2230
|
-
type StoreCreatePayload = {
|
|
2231
|
-
name: string;
|
|
2232
|
-
description?: string;
|
|
2233
|
-
valueType?: 'scalar' | 'series';
|
|
2234
|
-
unit?: string;
|
|
2235
|
-
visibility?: StoreVisibility;
|
|
2236
|
-
};
|
|
2237
|
-
type StoreEntryPayload = {
|
|
2238
|
-
storeName?: string;
|
|
2239
|
-
value: number | string | boolean;
|
|
2240
|
-
label?: string;
|
|
2241
|
-
};
|
|
2242
|
-
type StoreEntryResult = {
|
|
2243
|
-
name: string;
|
|
2244
|
-
entryCount: number;
|
|
2245
|
-
};
|
|
2246
|
-
type StoreToggleResult = {
|
|
2247
|
-
name: string;
|
|
2248
|
-
value: number | string | boolean;
|
|
2249
|
-
previous: number | string | boolean;
|
|
2250
|
-
}; //#endregion
|
|
2251
2386
|
//#region src/update/types.d.ts
|
|
2252
2387
|
type UpdateType = 'deal' | 'event' | 'update';
|
|
2253
2388
|
type UpdateStatus = 'draft' | 'published' | 'archived';
|
|
@@ -2399,13 +2534,36 @@ type Webhook = {
|
|
|
2399
2534
|
};
|
|
2400
2535
|
}; //#endregion
|
|
2401
2536
|
//#region src/workspace/types.d.ts
|
|
2537
|
+
type WorkspaceInfo = {
|
|
2538
|
+
id?: string;
|
|
2539
|
+
teamId?: string;
|
|
2540
|
+
deviceType?: string;
|
|
2541
|
+
workspacePath: string;
|
|
2542
|
+
createdAt: string;
|
|
2543
|
+
filesCount: number;
|
|
2544
|
+
totalSize: number;
|
|
2545
|
+
lastSyncAt: string;
|
|
2546
|
+
};
|
|
2547
|
+
type FileInfo = {
|
|
2548
|
+
name: string;
|
|
2549
|
+
path: string;
|
|
2550
|
+
size: number;
|
|
2551
|
+
mimeType: string;
|
|
2552
|
+
isEncrypted: boolean;
|
|
2553
|
+
modifiedAt: string;
|
|
2554
|
+
};
|
|
2555
|
+
type WorkspaceCloudFile = FileInfo & {
|
|
2556
|
+
id?: string;
|
|
2557
|
+
createdAt?: string;
|
|
2558
|
+
};
|
|
2402
2559
|
//#endregion
|
|
2403
2560
|
//#region src/resources/agents.d.ts
|
|
2404
2561
|
declare class AgentsResource {
|
|
2405
2562
|
private readonly http;
|
|
2406
2563
|
constructor(http: IHttpService);
|
|
2407
2564
|
list(team?: string): Promise<IAppResponse<AgentPrivate[]>>;
|
|
2408
|
-
get(uuid: string): Promise<
|
|
2565
|
+
get(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2566
|
+
getPublic(uuid: string): Promise<IAppResponse<StoreAgent>>;
|
|
2409
2567
|
create(params: {
|
|
2410
2568
|
team: string;
|
|
2411
2569
|
name: string;
|
|
@@ -2451,6 +2609,116 @@ declare class AlertsResource {
|
|
|
2451
2609
|
toggle(id: string): Promise<IAppResponse<Alert>>;
|
|
2452
2610
|
}
|
|
2453
2611
|
//#endregion
|
|
2612
|
+
//#region src/resources/api-tokens.d.ts
|
|
2613
|
+
declare class ApiTokensResource {
|
|
2614
|
+
private readonly http;
|
|
2615
|
+
constructor(http: IHttpService);
|
|
2616
|
+
list(): Promise<IAppResponse<ApiToken[]>>;
|
|
2617
|
+
create(name: string, teams?: string[] | null): Promise<IAppResponse<ApiToken>>;
|
|
2618
|
+
update(id: number, teams: string[] | null): Promise<IAppResponse<ApiToken>>;
|
|
2619
|
+
delete(id: number): Promise<IAppResponse<void>>;
|
|
2620
|
+
}
|
|
2621
|
+
//#endregion
|
|
2622
|
+
//#region src/resources/characters.d.ts
|
|
2623
|
+
declare class CharactersResource {
|
|
2624
|
+
private readonly http;
|
|
2625
|
+
constructor(http: IHttpService);
|
|
2626
|
+
getByAgent(agent: string): Promise<IAppResponse<Character | null>>;
|
|
2627
|
+
create(agent: string, name: string, system: string, bio: string): Promise<IAppResponse<Character>>;
|
|
2628
|
+
update(id: string, name: string, system: string, bio: string): Promise<IAppResponse<Character>>;
|
|
2629
|
+
}
|
|
2630
|
+
//#endregion
|
|
2631
|
+
//#region src/resources/desk.d.ts
|
|
2632
|
+
type DeskUploadResponse = {
|
|
2633
|
+
media: Array<{
|
|
2634
|
+
id: string;
|
|
2635
|
+
name: string;
|
|
2636
|
+
mime: string;
|
|
2637
|
+
url: string;
|
|
2638
|
+
}>;
|
|
2639
|
+
};
|
|
2640
|
+
declare class DeskResource {
|
|
2641
|
+
private readonly http;
|
|
2642
|
+
constructor(http: IHttpService);
|
|
2643
|
+
upload(agentUuid: string, roomId: string, files: File[]): Promise<IAppResponse<DeskUploadResponse>>;
|
|
2644
|
+
}
|
|
2645
|
+
//#endregion
|
|
2646
|
+
//#region src/resources/elements.d.ts
|
|
2647
|
+
declare class ElementsResource {
|
|
2648
|
+
private readonly http;
|
|
2649
|
+
constructor(http: IHttpService);
|
|
2650
|
+
generateSpec(team: string, payload: {
|
|
2651
|
+
description?: string | null;
|
|
2652
|
+
imageUrl?: string | null;
|
|
2653
|
+
imageDataUrl?: string | null;
|
|
2654
|
+
}): Promise<IAppResponse<ElementSpec>>;
|
|
2655
|
+
list(team: string): Promise<IAppResponse<Element[]>>;
|
|
2656
|
+
get(team: string, elementId: string): Promise<IAppResponse<Element>>;
|
|
2657
|
+
create(team: string, payload: {
|
|
2658
|
+
name: string;
|
|
2659
|
+
type: string;
|
|
2660
|
+
description?: string | null;
|
|
2661
|
+
spec?: ElementSpec | null;
|
|
2662
|
+
media?: any[];
|
|
2663
|
+
}): Promise<IAppResponse<Element>>;
|
|
2664
|
+
update(team: string, elementId: string, payload: {
|
|
2665
|
+
name?: string;
|
|
2666
|
+
type?: string;
|
|
2667
|
+
description?: string | null;
|
|
2668
|
+
spec?: ElementSpec | null;
|
|
2669
|
+
media?: any[];
|
|
2670
|
+
}): Promise<IAppResponse<Element>>;
|
|
2671
|
+
delete(team: string, elementId: string): Promise<IAppResponse<void>>;
|
|
2672
|
+
generateVariation(team: string, elementId: string, payload?: {
|
|
2673
|
+
label?: string | null;
|
|
2674
|
+
overrides?: ElementSpec | null;
|
|
2675
|
+
aspectRatio?: string | null;
|
|
2676
|
+
}): Promise<IAppResponse<ElementVariation>>;
|
|
2677
|
+
updateVariation(team: string, elementId: string, variationId: string, payload: {
|
|
2678
|
+
label?: string | null;
|
|
2679
|
+
overrides?: ElementSpec | null;
|
|
2680
|
+
model?: string | null;
|
|
2681
|
+
aspectRatio?: string | null;
|
|
2682
|
+
}): Promise<IAppResponse<ElementVariation>>;
|
|
2683
|
+
deleteVariation(team: string, elementId: string, variationId: string): Promise<IAppResponse<void>>;
|
|
2684
|
+
regenerateVariation(team: string, elementId: string, variationId: string): Promise<IAppResponse<{
|
|
2685
|
+
status: string;
|
|
2686
|
+
}>>;
|
|
2687
|
+
reorderVariations(team: string, elementId: string, orderedIds: string[]): Promise<IAppResponse<void>>;
|
|
2688
|
+
setVariationPrimaryImage(team: string, elementId: string, variationId: string, mediaId: string): Promise<IAppResponse<ElementVariation>>;
|
|
2689
|
+
}
|
|
2690
|
+
//#endregion
|
|
2691
|
+
//#region src/resources/entities.d.ts
|
|
2692
|
+
declare class EntitiesResource {
|
|
2693
|
+
private readonly http;
|
|
2694
|
+
constructor(http: IHttpService);
|
|
2695
|
+
get(entityId: string, withParams?: string[]): Promise<IAppResponse<Entity>>;
|
|
2696
|
+
listProposals(entityId: string, page?: number): Promise<IAppResponse<Proposal[]>>;
|
|
2697
|
+
getProposal(proposalId: string, withParams?: string[]): Promise<IAppResponse<Proposal>>;
|
|
2698
|
+
}
|
|
2699
|
+
//#endregion
|
|
2700
|
+
//#region src/resources/mcp.d.ts
|
|
2701
|
+
declare class McpResource {
|
|
2702
|
+
private readonly http;
|
|
2703
|
+
constructor(http: IHttpService);
|
|
2704
|
+
listToolCalls(agent: string, page?: number, integration?: string): Promise<IAppResponse<McpToolCall[]>>;
|
|
2705
|
+
}
|
|
2706
|
+
//#endregion
|
|
2707
|
+
//#region src/resources/secrets/index.d.ts
|
|
2708
|
+
declare class SecretsResource {
|
|
2709
|
+
private readonly http;
|
|
2710
|
+
constructor(http: IHttpService);
|
|
2711
|
+
getStatus(agent: string, keys: string[]): Promise<IAppResponse<Record<string, boolean>>>;
|
|
2712
|
+
set(agent: string, key: string, value: string): Promise<IAppResponse<{
|
|
2713
|
+
key: string;
|
|
2714
|
+
isSet: boolean;
|
|
2715
|
+
}>>;
|
|
2716
|
+
clear(agent: string, key: string): Promise<IAppResponse<{
|
|
2717
|
+
key: string;
|
|
2718
|
+
isSet: boolean;
|
|
2719
|
+
}>>;
|
|
2720
|
+
}
|
|
2721
|
+
//#endregion
|
|
2454
2722
|
//#region src/resources/appointments.d.ts
|
|
2455
2723
|
declare const WEEKDAYS: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
2456
2724
|
type Weekday = typeof WEEKDAYS[number];
|
|
@@ -2536,6 +2804,7 @@ declare class AppointmentsResource {
|
|
|
2536
2804
|
}
|
|
2537
2805
|
//#endregion
|
|
2538
2806
|
//#region src/resources/auth.d.ts
|
|
2807
|
+
type NativeSocialAuthProvider = Extract<SocialAuthProvider, 'apple' | 'google'>;
|
|
2539
2808
|
type AuthSendCodeRequest = {
|
|
2540
2809
|
name: string;
|
|
2541
2810
|
phone?: string;
|
|
@@ -2552,19 +2821,19 @@ type AuthVerifyResponse = {
|
|
|
2552
2821
|
contact: AuthUser | null;
|
|
2553
2822
|
table: string | null;
|
|
2554
2823
|
};
|
|
2555
|
-
type AuthApiTokenResponse = {
|
|
2556
|
-
plainTextToken: string;
|
|
2557
|
-
};
|
|
2558
2824
|
type AuthLoginResponse = {
|
|
2559
2825
|
user: UserPrivate | null;
|
|
2560
2826
|
token: string | null;
|
|
2561
2827
|
};
|
|
2828
|
+
type AuthApiTokenResponse = {
|
|
2829
|
+
plainTextToken: string;
|
|
2830
|
+
};
|
|
2562
2831
|
declare class AuthResource {
|
|
2563
2832
|
private http;
|
|
2564
2833
|
constructor(http: IHttpService);
|
|
2565
2834
|
sendCode(data: AuthSendCodeRequest): Promise<IAppResponse<void>>;
|
|
2566
2835
|
requestEmail(email: string, redirect?: string): Promise<IAppResponse<AuthLoginResponse>>;
|
|
2567
|
-
loginWithSocialAccessToken(provider:
|
|
2836
|
+
loginWithSocialAccessToken(provider: NativeSocialAuthProvider, accessToken: string): Promise<IAppResponse<AuthLoginResponse>>;
|
|
2568
2837
|
verify(token: string): Promise<IAppResponse<AuthVerifyResponse>>;
|
|
2569
2838
|
me(): Promise<IAppResponse<AuthUser>>;
|
|
2570
2839
|
logout(): Promise<IAppResponse<void>>;
|
|
@@ -2619,6 +2888,8 @@ declare class BillingResource {
|
|
|
2619
2888
|
createTerminalPaymentIntent(orderId: string, provider: string): Promise<IAppResponse<TerminalPaymentIntent>>;
|
|
2620
2889
|
captureTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
2621
2890
|
cancelTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
2891
|
+
cancelSubscription(teamSlug: string): Promise<IAppResponse<void>>;
|
|
2892
|
+
resumeSubscription(teamSlug: string): Promise<IAppResponse<void>>;
|
|
2622
2893
|
verifyIap(receipt: IapReceipt, team: string, meta?: Record<string, string>): Promise<IAppResponse<PurchaseResult>>;
|
|
2623
2894
|
}
|
|
2624
2895
|
//#endregion
|
|
@@ -2629,8 +2900,11 @@ declare class BlueprintsResource {
|
|
|
2629
2900
|
list(params?: {
|
|
2630
2901
|
page?: number;
|
|
2631
2902
|
size?: number;
|
|
2903
|
+
locale?: string;
|
|
2904
|
+
team?: string;
|
|
2905
|
+
verified?: boolean;
|
|
2632
2906
|
}): Promise<IAppResponse<Blueprint[]>>;
|
|
2633
|
-
get(slug: string, locale?: string): Promise<IAppResponse<Blueprint>>;
|
|
2907
|
+
get(slug: string, locale?: string, team?: string): Promise<IAppResponse<Blueprint>>;
|
|
2634
2908
|
create(data: {
|
|
2635
2909
|
team: string;
|
|
2636
2910
|
name: string;
|
|
@@ -2716,6 +2990,25 @@ declare class ContractsResource {
|
|
|
2716
2990
|
setAddress(uuid: string, env: string, address: string): Promise<IAppResponse<Contract>>;
|
|
2717
2991
|
resetAddress(uuid: string, env: string): Promise<IAppResponse<Contract>>;
|
|
2718
2992
|
listVersions(uuid: string): Promise<IAppResponse<ContractVersion[]>>;
|
|
2993
|
+
uploadAbi(uuid: string, file: File): Promise<IAppResponse<Contract>>;
|
|
2994
|
+
uploadCode(uuid: string, versionId: number, file: File): Promise<IAppResponse<void>>;
|
|
2995
|
+
getCode(uuid: string, versionId: number): Promise<IAppResponse<{
|
|
2996
|
+
code: string;
|
|
2997
|
+
}>>;
|
|
2998
|
+
prepareVerification(uuid: string, data: {
|
|
2999
|
+
env: string;
|
|
3000
|
+
sourceCode: object;
|
|
3001
|
+
dockerImage?: string;
|
|
3002
|
+
}): Promise<IAppResponse<{
|
|
3003
|
+
message: string;
|
|
3004
|
+
}>>;
|
|
3005
|
+
submitVerification(uuid: string, data: {
|
|
3006
|
+
env: string;
|
|
3007
|
+
signature: string;
|
|
3008
|
+
}): Promise<IAppResponse<{
|
|
3009
|
+
taskId: string | null;
|
|
3010
|
+
contract: Contract;
|
|
3011
|
+
}>>;
|
|
2719
3012
|
}
|
|
2720
3013
|
//#endregion
|
|
2721
3014
|
//#region src/resources/documents.d.ts
|
|
@@ -2735,6 +3028,7 @@ declare class DocumentsResource {
|
|
|
2735
3028
|
}): Promise<IAppResponse<Document>>;
|
|
2736
3029
|
delete(id: string): Promise<IAppResponse<void>>;
|
|
2737
3030
|
trainFromUrl(agent: string, url: string): Promise<IAppResponse<Document>>;
|
|
3031
|
+
uploadFile(agentUuid: string, name: string, document: MediaLibraryItems): Promise<IAppResponse<Document>>;
|
|
2738
3032
|
}
|
|
2739
3033
|
//#endregion
|
|
2740
3034
|
//#region src/resources/flows.d.ts
|
|
@@ -2744,8 +3038,22 @@ declare class FlowsResource {
|
|
|
2744
3038
|
list(params?: {
|
|
2745
3039
|
locale?: string;
|
|
2746
3040
|
page?: number;
|
|
3041
|
+
team?: string;
|
|
3042
|
+
all?: boolean;
|
|
2747
3043
|
}): Promise<IAppResponse<Flow[]>>;
|
|
2748
3044
|
get(slug: string, locale?: string): Promise<IAppResponse<Flow>>;
|
|
3045
|
+
create(data: {
|
|
3046
|
+
team: string;
|
|
3047
|
+
name: string;
|
|
3048
|
+
description?: string;
|
|
3049
|
+
}): Promise<IAppResponse<Flow>>;
|
|
3050
|
+
update(slug: string, data: {
|
|
3051
|
+
name?: string;
|
|
3052
|
+
description?: string;
|
|
3053
|
+
steps?: any[];
|
|
3054
|
+
price?: number | null;
|
|
3055
|
+
}): Promise<IAppResponse<Flow>>;
|
|
3056
|
+
delete(slug: string): Promise<IAppResponse<void>>;
|
|
2749
3057
|
}
|
|
2750
3058
|
//#endregion
|
|
2751
3059
|
//#region src/resources/goals.d.ts
|
|
@@ -2774,8 +3082,19 @@ declare class IngestionsResource {
|
|
|
2774
3082
|
list(params?: {
|
|
2775
3083
|
page?: number;
|
|
2776
3084
|
size?: number;
|
|
3085
|
+
agent?: string;
|
|
2777
3086
|
}): Promise<IAppResponse<AppIngestion[]>>;
|
|
3087
|
+
get(id: string): Promise<IAppResponse<AppIngestion>>;
|
|
2778
3088
|
getShared(shareToken: string): Promise<IAppResponse<AppIngestion>>;
|
|
3089
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3090
|
+
publish(id: string): Promise<IAppResponse<{
|
|
3091
|
+
slug: string;
|
|
3092
|
+
url: string;
|
|
3093
|
+
isPublic: boolean;
|
|
3094
|
+
}>>;
|
|
3095
|
+
unpublish(id: string): Promise<IAppResponse<{
|
|
3096
|
+
isPublic: boolean;
|
|
3097
|
+
}>>;
|
|
2779
3098
|
}
|
|
2780
3099
|
//#endregion
|
|
2781
3100
|
//#region src/resources/inquiries.d.ts
|
|
@@ -2786,6 +3105,27 @@ declare class InquiriesResource {
|
|
|
2786
3105
|
}
|
|
2787
3106
|
//#endregion
|
|
2788
3107
|
//#region src/resources/integrations.d.ts
|
|
3108
|
+
type CalendarEvent = {
|
|
3109
|
+
externalId: string;
|
|
3110
|
+
title: string;
|
|
3111
|
+
description?: string;
|
|
3112
|
+
startAt: string;
|
|
3113
|
+
endAt: string;
|
|
3114
|
+
timezone?: string;
|
|
3115
|
+
location?: string;
|
|
3116
|
+
allDay: boolean;
|
|
3117
|
+
};
|
|
3118
|
+
type PushCalendarEventsPayload = {
|
|
3119
|
+
events: CalendarEvent[];
|
|
3120
|
+
syncWindowFrom: string;
|
|
3121
|
+
syncWindowTo: string;
|
|
3122
|
+
};
|
|
3123
|
+
type PushCalendarEventsResponse = {
|
|
3124
|
+
synced: boolean;
|
|
3125
|
+
pendingEvents: (CalendarEvent & {
|
|
3126
|
+
id: number;
|
|
3127
|
+
})[];
|
|
3128
|
+
};
|
|
2789
3129
|
declare class IntegrationsResource {
|
|
2790
3130
|
private readonly http;
|
|
2791
3131
|
constructor(http: IHttpService);
|
|
@@ -2814,6 +3154,30 @@ declare class IntegrationsResource {
|
|
|
2814
3154
|
deleteCalendar(agent: string): Promise<IAppResponse<void>>;
|
|
2815
3155
|
getEmbedStatus(agentUuid: string): Promise<IAppResponse<EmbedStatus>>;
|
|
2816
3156
|
setupEmbed(agentUuid: string, allowedDomains?: string[]): Promise<IAppResponse<EmbedStatus>>;
|
|
3157
|
+
connectDeviceCalendar(agent: string, timezone: string | null): Promise<IAppResponse<{
|
|
3158
|
+
connected: boolean;
|
|
3159
|
+
provider: string;
|
|
3160
|
+
integrationId: number;
|
|
3161
|
+
}>>;
|
|
3162
|
+
pushCalendarEvents(agent: string, payload: PushCalendarEventsPayload): Promise<IAppResponse<PushCalendarEventsResponse>>;
|
|
3163
|
+
confirmDevicePush(agent: string, eventIds: number[]): Promise<IAppResponse<{
|
|
3164
|
+
confirmed: boolean;
|
|
3165
|
+
}>>;
|
|
3166
|
+
updateEmailHandle(agent: string, handle: string | null): Promise<IAppResponse<{
|
|
3167
|
+
emailAddress: string | null;
|
|
3168
|
+
}>>;
|
|
3169
|
+
generateEmailHandle(agent: string): Promise<IAppResponse<{
|
|
3170
|
+
emailAddress: string | null;
|
|
3171
|
+
}>>;
|
|
3172
|
+
getSecretStatus(agent: string, keys: string[]): Promise<IAppResponse<Record<string, boolean>>>;
|
|
3173
|
+
setSecret(agent: string, key: string, value: string): Promise<IAppResponse<{
|
|
3174
|
+
key: string;
|
|
3175
|
+
isSet: boolean;
|
|
3176
|
+
}>>;
|
|
3177
|
+
clearSecret(agent: string, key: string): Promise<IAppResponse<{
|
|
3178
|
+
key: string;
|
|
3179
|
+
isSet: boolean;
|
|
3180
|
+
}>>;
|
|
2817
3181
|
}
|
|
2818
3182
|
//#endregion
|
|
2819
3183
|
//#region src/resources/intents.d.ts
|
|
@@ -2935,11 +3299,16 @@ declare class LoyaltyResource {
|
|
|
2935
3299
|
listMembers(): Promise<IAppResponse<LoyaltyMember[]>>;
|
|
2936
3300
|
}
|
|
2937
3301
|
//#endregion
|
|
2938
|
-
//#region src/resources/
|
|
2939
|
-
declare class
|
|
3302
|
+
//#region src/resources/store.d.ts
|
|
3303
|
+
declare class StoreResource {
|
|
2940
3304
|
private readonly http;
|
|
2941
3305
|
constructor(http: IHttpService);
|
|
2942
|
-
get(locale?: string): Promise<
|
|
3306
|
+
get(locale?: string): Promise<StoreData>;
|
|
3307
|
+
earnings(teamSlug: string, page?: number): Promise<IAppResponse<TeamEarning[]>>;
|
|
3308
|
+
earningsBalance(teamSlug: string): Promise<IAppResponse<TeamEarningsBalance>>;
|
|
3309
|
+
commissions(teamSlug: string): Promise<IAppResponse<CommissionAgreement[]>>;
|
|
3310
|
+
priceTiers(): Promise<IAppResponse<StorePriceTier[]>>;
|
|
3311
|
+
purchase(entityType: string, entityId: string, paymentMethod?: string): Promise<IAppResponse<StorePurchaseResult>>;
|
|
2943
3312
|
}
|
|
2944
3313
|
//#endregion
|
|
2945
3314
|
//#region src/resources/media.d.ts
|
|
@@ -3022,6 +3391,7 @@ declare class MessagesResource {
|
|
|
3022
3391
|
generateAudio(messageId: string): Promise<IAppResponse<{
|
|
3023
3392
|
audioUrl: string;
|
|
3024
3393
|
}>>;
|
|
3394
|
+
storeFeedback(agent: string, message: string, positive: boolean, inquiry: Inquiry | null): Promise<IAppResponse<void>>;
|
|
3025
3395
|
}
|
|
3026
3396
|
//#endregion
|
|
3027
3397
|
//#region src/resources/missions.d.ts
|
|
@@ -3075,7 +3445,7 @@ declare class OrdersResource {
|
|
|
3075
3445
|
linkVariationId?: string;
|
|
3076
3446
|
priceMode?: string;
|
|
3077
3447
|
sendConfirmation?: boolean;
|
|
3078
|
-
items
|
|
3448
|
+
items?: {
|
|
3079
3449
|
id: string;
|
|
3080
3450
|
type: 'product' | 'service';
|
|
3081
3451
|
quantity: number;
|
|
@@ -3108,15 +3478,54 @@ declare class ProductsResource {
|
|
|
3108
3478
|
get(id: string): Promise<IAppResponse<Product>>;
|
|
3109
3479
|
create(data: {
|
|
3110
3480
|
name: TranslatableValue;
|
|
3111
|
-
|
|
3481
|
+
price?: number;
|
|
3482
|
+
unit?: TranslatableValue;
|
|
3112
3483
|
tags?: string[];
|
|
3113
|
-
|
|
3484
|
+
description?: TranslatableValue | null;
|
|
3485
|
+
virtual?: boolean;
|
|
3486
|
+
public?: boolean;
|
|
3487
|
+
}, teamSlug?: string): Promise<IAppResponse<Product>>;
|
|
3114
3488
|
update(id: string, data: {
|
|
3115
3489
|
name?: TranslatableValue;
|
|
3116
|
-
|
|
3490
|
+
unit?: TranslatableValue | null;
|
|
3117
3491
|
tags?: string[] | null;
|
|
3492
|
+
description?: TranslatableValue | null;
|
|
3493
|
+
settings?: Record<string, unknown> | null;
|
|
3494
|
+
active?: boolean;
|
|
3495
|
+
public?: boolean;
|
|
3496
|
+
virtual?: boolean;
|
|
3497
|
+
media?: MediaLibraryAttributes[];
|
|
3118
3498
|
}): Promise<IAppResponse<Product>>;
|
|
3119
3499
|
delete(id: string): Promise<IAppResponse<void>>;
|
|
3500
|
+
createVariation(productSlug: string, data: {
|
|
3501
|
+
name: TranslatableValue;
|
|
3502
|
+
sku: string;
|
|
3503
|
+
price: number;
|
|
3504
|
+
type?: string;
|
|
3505
|
+
}): Promise<IAppResponse<ProductVariation>>;
|
|
3506
|
+
updateVariation(variationId: string, data: {
|
|
3507
|
+
name?: TranslatableValue;
|
|
3508
|
+
price?: number;
|
|
3509
|
+
active?: boolean;
|
|
3510
|
+
hidden?: boolean;
|
|
3511
|
+
type?: string;
|
|
3512
|
+
settings?: Record<string, unknown> | null;
|
|
3513
|
+
media?: MediaLibraryAttributes[];
|
|
3514
|
+
preview?: MediaLibraryAttributes[];
|
|
3515
|
+
stock?: number | null;
|
|
3516
|
+
weight?: number | null;
|
|
3517
|
+
}): Promise<IAppResponse<ProductVariation>>;
|
|
3518
|
+
sortVariations(ids: string[]): Promise<IAppResponse<unknown>>;
|
|
3519
|
+
deleteVariation(variationId: string): Promise<IAppResponse<unknown>>;
|
|
3520
|
+
createRelation(productSlug: string, data: {
|
|
3521
|
+
relatedProductId: string;
|
|
3522
|
+
type?: string;
|
|
3523
|
+
}): Promise<IAppResponse<ProductRelation>>;
|
|
3524
|
+
deleteRelation(productSlug: string, relatedProductId: string): Promise<IAppResponse<unknown>>;
|
|
3525
|
+
updateVolumePrices(productSlug: string, data: {
|
|
3526
|
+
min_qty: number;
|
|
3527
|
+
unit_price: number;
|
|
3528
|
+
}[]): Promise<IAppResponse<VolumePrice[]>>;
|
|
3120
3529
|
}
|
|
3121
3530
|
//#endregion
|
|
3122
3531
|
//#region src/resources/projects.d.ts
|
|
@@ -3170,7 +3579,23 @@ declare class RemindersResource {
|
|
|
3170
3579
|
declare class RoomsResource {
|
|
3171
3580
|
private readonly http;
|
|
3172
3581
|
constructor(http: IHttpService);
|
|
3173
|
-
list(
|
|
3582
|
+
list(options?: {
|
|
3583
|
+
team?: string;
|
|
3584
|
+
agent?: string;
|
|
3585
|
+
integration?: string;
|
|
3586
|
+
includeArchived?: boolean;
|
|
3587
|
+
}): Promise<IAppResponse<Room[]>>;
|
|
3588
|
+
create(agent: string, name: string, description: string | null, isPublic: boolean, kind?: RoomKind | null, archivedAt?: string | null, meta?: Record<string, unknown>): Promise<IAppResponse<Room>>;
|
|
3589
|
+
update(id: string, data: {
|
|
3590
|
+
name?: string;
|
|
3591
|
+
description?: string | null;
|
|
3592
|
+
public?: boolean;
|
|
3593
|
+
kind?: RoomKind | null;
|
|
3594
|
+
archivedAt?: string | null;
|
|
3595
|
+
active?: boolean;
|
|
3596
|
+
meta?: Record<string, unknown>;
|
|
3597
|
+
}): Promise<IAppResponse<Room>>;
|
|
3598
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3174
3599
|
messages(roomId: string, params?: {
|
|
3175
3600
|
perPage?: number;
|
|
3176
3601
|
}): Promise<IAppResponse<Message[]>>;
|
|
@@ -3183,14 +3608,19 @@ declare class ServicesResource {
|
|
|
3183
3608
|
list(team?: string): Promise<IAppResponse<Service[]>>;
|
|
3184
3609
|
get(slug: string): Promise<IAppResponse<Service>>;
|
|
3185
3610
|
store(team: string, data: {
|
|
3186
|
-
name:
|
|
3611
|
+
name: TranslatableValue;
|
|
3187
3612
|
price: number;
|
|
3188
|
-
durationMinutes: number;
|
|
3189
|
-
description?:
|
|
3613
|
+
durationMinutes: number | null;
|
|
3614
|
+
description?: TranslatableValue | null;
|
|
3190
3615
|
digital?: boolean;
|
|
3191
3616
|
public?: boolean;
|
|
3617
|
+
pricingModel?: string;
|
|
3618
|
+
settings?: Record<string, unknown> | null;
|
|
3619
|
+
}): Promise<IAppResponse<Service>>;
|
|
3620
|
+
update(id: string, data: Partial<Pick<Service, 'name' | 'price' | 'description' | 'active' | 'digital' | 'public'>> & {
|
|
3621
|
+
durationMinutes?: number | null;
|
|
3622
|
+
settings?: Record<string, unknown> | null;
|
|
3192
3623
|
}): Promise<IAppResponse<Service>>;
|
|
3193
|
-
update(id: string, data: Partial<Pick<Service, 'name' | 'price' | 'durationMinutes' | 'description' | 'active' | 'digital' | 'public'>>): Promise<IAppResponse<Service>>;
|
|
3194
3624
|
delete(id: string): Promise<IAppResponse<void>>;
|
|
3195
3625
|
}
|
|
3196
3626
|
//#endregion
|
|
@@ -3216,10 +3646,11 @@ declare class ShortcutsResource {
|
|
|
3216
3646
|
declare class SitesResource {
|
|
3217
3647
|
private readonly http;
|
|
3218
3648
|
constructor(http: IHttpService);
|
|
3649
|
+
brands(): Promise<IAppResponse<SiteBrand[]>>;
|
|
3219
3650
|
listMine(teamSlug: string): Promise<IAppResponse<Site[]>>;
|
|
3220
3651
|
resolve(teamSlug: string, brandSlug?: string): Promise<IAppResponse<Site>>;
|
|
3221
3652
|
resolveByDomain(domain: string): Promise<IAppResponse<Site>>;
|
|
3222
|
-
update(
|
|
3653
|
+
update(siteId: number, data: {
|
|
3223
3654
|
customDomain?: string | null;
|
|
3224
3655
|
enabled?: boolean;
|
|
3225
3656
|
modules?: string[];
|
|
@@ -3274,8 +3705,8 @@ declare class StatsResource {
|
|
|
3274
3705
|
getGamification(): Promise<IAppResponse<GamificationData>>;
|
|
3275
3706
|
}
|
|
3276
3707
|
//#endregion
|
|
3277
|
-
//#region src/resources/
|
|
3278
|
-
declare class
|
|
3708
|
+
//#region src/resources/kv.d.ts
|
|
3709
|
+
declare class KvResource {
|
|
3279
3710
|
private readonly http;
|
|
3280
3711
|
constructor(http: IHttpService);
|
|
3281
3712
|
list(): Promise<IAppResponse<Store[]>>;
|
|
@@ -3362,20 +3793,31 @@ declare class TeamsResource {
|
|
|
3362
3793
|
tags?: string;
|
|
3363
3794
|
}): Promise<IAppResponse<Team[]>>;
|
|
3364
3795
|
get(slug: string): Promise<IAppResponse<Team>>;
|
|
3796
|
+
getPublic(slug: string): Promise<IAppResponse<Team>>;
|
|
3365
3797
|
create(data: TeamMutationPayload & {
|
|
3366
3798
|
name: string;
|
|
3367
3799
|
}): Promise<IAppResponse<TeamPrivate>>;
|
|
3800
|
+
delete(teamSlug: string): Promise<IAppResponse<void>>;
|
|
3368
3801
|
update(teamSlug: string, data: TeamMutationPayload): Promise<IAppResponse<TeamPrivate>>;
|
|
3802
|
+
updateDescription(teamSlug: string, description: TranslatableValue | null): Promise<IAppResponse<TeamPrivate>>;
|
|
3803
|
+
updateTagline(teamSlug: string, tagline: TranslatableValue | null): Promise<IAppResponse<TeamPrivate>>;
|
|
3369
3804
|
invite(teamSlug: string, payload: {
|
|
3370
3805
|
email: string;
|
|
3371
3806
|
role: 'owner' | 'admin' | 'member';
|
|
3372
3807
|
}): Promise<IAppResponse<void>>;
|
|
3808
|
+
inviteMember(teamSlug: string, email: string, role: UserRole): Promise<IAppResponse<void>>;
|
|
3809
|
+
removeMember(teamSlug: string, memberId: string): Promise<IAppResponse<void>>;
|
|
3810
|
+
listMembers(teamSlug: string): Promise<IAppResponse<TeamMember[]>>;
|
|
3373
3811
|
updateLogo(teamSlug: string, logo: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
3374
3812
|
updateCover(teamSlug: string, cover: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
3375
3813
|
updateSetting(teamSlug: string, key: string, value: boolean | string | number | object | null): Promise<IAppResponse<TeamPrivate>>;
|
|
3376
3814
|
listPrivate(): Promise<IAppResponse<TeamPrivate[]>>;
|
|
3377
3815
|
getInviteByToken(token: string): Promise<IAppResponse<TeamInviteInfo>>;
|
|
3378
3816
|
acceptInvite(slug: string): Promise<IAppResponse<void>>;
|
|
3817
|
+
usage(teamSlug: string): Promise<IAppResponse<TeamUsage>>;
|
|
3818
|
+
featureUsage(teamSlug: string, feature: PlanFeature): Promise<IAppResponse<TeamFeatureUsage>>;
|
|
3819
|
+
aiCosts(teamSlug: string, page?: number): Promise<IAppResponse<AiCostsResponse>>;
|
|
3820
|
+
topupFinalize(tx: string): Promise<IAppResponse<void>>;
|
|
3379
3821
|
}
|
|
3380
3822
|
//#endregion
|
|
3381
3823
|
//#region src/resources/updates.d.ts
|
|
@@ -3458,6 +3900,21 @@ declare class WalletsResource {
|
|
|
3458
3900
|
getProviders(agentUuid: string): Promise<IAppResponse<Record<string, unknown>>>;
|
|
3459
3901
|
}
|
|
3460
3902
|
//#endregion
|
|
3903
|
+
//#region src/resources/workspace.d.ts
|
|
3904
|
+
declare class WorkspaceResource {
|
|
3905
|
+
private readonly http;
|
|
3906
|
+
constructor(http: IHttpService);
|
|
3907
|
+
register(teamId: string, deviceId: string, deviceName: string, deviceType: string, workspacePath: string, encryptionKeyHash: string, platformVersion: string, name?: string): Promise<IAppResponse<WorkspaceInfo>>;
|
|
3908
|
+
get(teamIdOrSlug: string): Promise<IAppResponse<WorkspaceInfo[]>>;
|
|
3909
|
+
files(workspaceId: string, opts?: {
|
|
3910
|
+
path?: string;
|
|
3911
|
+
offset?: number;
|
|
3912
|
+
limit?: number;
|
|
3913
|
+
}): Promise<IAppResponse<WorkspaceCloudFile[]>>;
|
|
3914
|
+
uploadFile(workspaceId: string, file: File, pathOverride?: string): Promise<IAppResponse<unknown>>;
|
|
3915
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3916
|
+
}
|
|
3917
|
+
//#endregion
|
|
3461
3918
|
//#region src/resources/warps.d.ts
|
|
3462
3919
|
type BackendWarpBrand = {
|
|
3463
3920
|
slug: string;
|
|
@@ -3480,8 +3937,15 @@ type BackendWarp = {
|
|
|
3480
3937
|
declare class WarpsResource {
|
|
3481
3938
|
private readonly http;
|
|
3482
3939
|
constructor(http: IHttpService);
|
|
3483
|
-
list(
|
|
3484
|
-
|
|
3940
|
+
list(options?: {
|
|
3941
|
+
brand?: string;
|
|
3942
|
+
creator?: string;
|
|
3943
|
+
primaryAddress?: string;
|
|
3944
|
+
status?: WarpBackendStatus;
|
|
3945
|
+
page?: number;
|
|
3946
|
+
perPage?: number;
|
|
3947
|
+
}): Promise<IAppResponse<WarpBackend[]>>;
|
|
3948
|
+
show(identifier: string): Promise<IAppResponse<WarpBackend>>;
|
|
3485
3949
|
create(data: {
|
|
3486
3950
|
brand: string;
|
|
3487
3951
|
definition: WarpDefinition;
|
|
@@ -3495,6 +3959,53 @@ declare class WarpsResource {
|
|
|
3495
3959
|
}): Promise<IAppResponse<BackendWarpUpdateResponse>>;
|
|
3496
3960
|
destroy(identifier: string): Promise<IAppResponse<void>>;
|
|
3497
3961
|
execute(identifier: string, inputs: string[], room?: string): Promise<IAppResponse<JsonValue>>;
|
|
3962
|
+
sync(tx: string): Promise<IAppResponse<void>>;
|
|
3963
|
+
listBrands(locale: WarpLocale, options?: {
|
|
3964
|
+
chain?: string | string[];
|
|
3965
|
+
}): Promise<IAppResponse<BrandBackend[]>>;
|
|
3966
|
+
getBrand(slug: string, locale: WarpLocale): Promise<IAppResponse<BrandBackend>>;
|
|
3967
|
+
lookupBrand(hash: string, locale: WarpLocale): Promise<IAppResponse<BrandBackend>>;
|
|
3968
|
+
listPopularBrands(locale: WarpLocale): Promise<IAppResponse<BrandBackend[]>>;
|
|
3969
|
+
previewBrandInvite(code: string): Promise<IAppResponse<{
|
|
3970
|
+
name: string;
|
|
3971
|
+
description: string;
|
|
3972
|
+
logo: string;
|
|
3973
|
+
colors: string;
|
|
3974
|
+
}>>;
|
|
3975
|
+
joinBrand(inviteCode: string, teamSlug: string): Promise<IAppResponse<BrandBackend>>;
|
|
3976
|
+
listTeamBrands(teamSlug: string): Promise<IAppResponse<BrandBackend[]>>;
|
|
3977
|
+
getTeamBrand(teamSlug: string, brandSlug: string): Promise<IAppResponse<BrandBackend>>;
|
|
3978
|
+
createTeamBrand(teamSlug: string, data: {
|
|
3979
|
+
name: string;
|
|
3980
|
+
description?: string;
|
|
3981
|
+
public?: boolean;
|
|
3982
|
+
source?: BrandSourceConfig | null;
|
|
3983
|
+
}): Promise<IAppResponse<BrandBackend>>;
|
|
3984
|
+
updateTeamBrand(teamSlug: string, brandSlug: string, data: {
|
|
3985
|
+
name?: string;
|
|
3986
|
+
description?: string;
|
|
3987
|
+
public?: boolean;
|
|
3988
|
+
logo?: MediaLibraryItems | null;
|
|
3989
|
+
source?: BrandSourceConfig | null;
|
|
3990
|
+
}): Promise<IAppResponse<BrandBackend>>;
|
|
3991
|
+
deleteTeamBrand(teamSlug: string, brandSlug: string): Promise<IAppResponse<void>>;
|
|
3992
|
+
regenerateBrandInvite(teamSlug: string, brandSlug: string): Promise<IAppResponse<{
|
|
3993
|
+
invite_code: string;
|
|
3994
|
+
}>>;
|
|
3995
|
+
createBrandWarp(teamSlug: string, brandSlug: string, data: {
|
|
3996
|
+
name: string;
|
|
3997
|
+
title: Record<string, string>;
|
|
3998
|
+
description?: Record<string, string>;
|
|
3999
|
+
definition: Record<string, any>;
|
|
4000
|
+
agent?: string | null;
|
|
4001
|
+
}): Promise<IAppResponse<WarpBackend>>;
|
|
4002
|
+
updateBrandWarp(teamSlug: string, brandSlug: string, warpHash: string, data: {
|
|
4003
|
+
name?: string;
|
|
4004
|
+
definition?: Record<string, any>;
|
|
4005
|
+
agent?: string | null;
|
|
4006
|
+
}): Promise<IAppResponse<WarpBackend>>;
|
|
4007
|
+
deleteBrandWarp(teamSlug: string, brandSlug: string, warpHash: string): Promise<IAppResponse<void>>;
|
|
4008
|
+
fetchSourceSchemaFromUrl(url: string): Promise<IAppResponse<any>>;
|
|
3498
4009
|
}
|
|
3499
4010
|
//#endregion
|
|
3500
4011
|
//#region src/resources/webhooks.d.ts
|
|
@@ -3546,8 +4057,16 @@ interface JoAiClientConfig {
|
|
|
3546
4057
|
declare class JoAiClient {
|
|
3547
4058
|
readonly http: IHttpService;
|
|
3548
4059
|
private readonly env;
|
|
4060
|
+
isReady: boolean;
|
|
4061
|
+
hasApiToken: boolean;
|
|
3549
4062
|
readonly agents: AgentsResource;
|
|
3550
4063
|
readonly alerts: AlertsResource;
|
|
4064
|
+
readonly apiTokens: ApiTokensResource;
|
|
4065
|
+
readonly characters: CharactersResource;
|
|
4066
|
+
readonly desk: DeskResource;
|
|
4067
|
+
readonly elements: ElementsResource;
|
|
4068
|
+
readonly entities: EntitiesResource;
|
|
4069
|
+
readonly mcp: McpResource;
|
|
3551
4070
|
readonly appointments: AppointmentsResource;
|
|
3552
4071
|
readonly auth: AuthResource;
|
|
3553
4072
|
readonly billing: BillingResource;
|
|
@@ -3569,7 +4088,7 @@ declare class JoAiClient {
|
|
|
3569
4088
|
readonly items: ItemsResource;
|
|
3570
4089
|
readonly links: LinksResource;
|
|
3571
4090
|
readonly loyalty: LoyaltyResource;
|
|
3572
|
-
readonly
|
|
4091
|
+
readonly store: StoreResource;
|
|
3573
4092
|
readonly media: MediaResource;
|
|
3574
4093
|
readonly meetings: MeetingsResource;
|
|
3575
4094
|
readonly memories: MemoriesResource;
|
|
@@ -3584,12 +4103,13 @@ declare class JoAiClient {
|
|
|
3584
4103
|
readonly projects: ProjectsResource;
|
|
3585
4104
|
readonly reminders: RemindersResource;
|
|
3586
4105
|
readonly rooms: RoomsResource;
|
|
4106
|
+
readonly secrets: SecretsResource;
|
|
3587
4107
|
readonly services: ServicesResource;
|
|
3588
4108
|
readonly shortcuts: ShortcutsResource;
|
|
3589
4109
|
readonly sites: SitesResource;
|
|
3590
4110
|
readonly skills: SkillsResource;
|
|
3591
4111
|
readonly stats: StatsResource;
|
|
3592
|
-
readonly
|
|
4112
|
+
readonly kv: KvResource;
|
|
3593
4113
|
readonly subscriptions: SubscriptionsResource;
|
|
3594
4114
|
readonly swarms: SwarmsResource;
|
|
3595
4115
|
readonly tasks: TasksResource;
|
|
@@ -3600,6 +4120,7 @@ declare class JoAiClient {
|
|
|
3600
4120
|
readonly voice: VoiceResource;
|
|
3601
4121
|
readonly wallets: WalletsResource;
|
|
3602
4122
|
readonly webhooks: WebhooksResource;
|
|
4123
|
+
readonly workspace: WorkspaceResource;
|
|
3603
4124
|
constructor(config: JoAiClientConfig);
|
|
3604
4125
|
clearCache(): void;
|
|
3605
4126
|
warps(locale?: WarpLocale, currentUrl?: string): WarpClient;
|
|
@@ -3635,4 +4156,4 @@ declare class DistributionResource {
|
|
|
3635
4156
|
private fetchDistribution;
|
|
3636
4157
|
}
|
|
3637
4158
|
//#endregion
|
|
3638
|
-
export { AgentsResource, AlertsResource, AppointmentsResource, AuthResource, type AuthSendCodeRequest, type AuthVerifyResponse, type BackendWarp, type BackendWarpBrand, BillingAddressesResource, BillingResource, BlueprintsResource, type CacheConfig, CachedHttpService, CardsResource, CartsResource, ChangelogResource, ContactsResource, ContractsResource, DistributionResource, DocumentsResource, FlowsResource, GoalsResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, type JoAiClientConfig, LinksResource, LoyaltyResource,
|
|
4159
|
+
export { AgentsResource, AlertsResource, ApiTokensResource, AppointmentsResource, AuthResource, type AuthSendCodeRequest, type AuthVerifyResponse, type BackendWarp, type BackendWarpBrand, BillingAddressesResource, BillingResource, BlueprintsResource, type CacheConfig, CachedHttpService, CardsResource, CartsResource, ChangelogResource, CharactersResource, ContactsResource, ContractsResource, DeskResource, DistributionResource, DocumentsResource, ElementsResource, EntitiesResource, FlowsResource, GoalsResource, IngestionsResource, InquiriesResource, IntegrationsResource, IntentsResource, ItemsResource, JoAiClient, type JoAiClientConfig, KvResource, LinksResource, LoyaltyResource, McpResource, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, type OpeningHoursEntry, type OpeningHoursFormatOptions, OrdersResource, PersonaResource, type Product, type ProductVariation, ProductsResource, ProjectsResource, RemindersResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoreResource, SubscriptionsResource, SwarmsResource, TasksResource, type TeamInviteInfo, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, WebhooksResource, WorkspaceResource, createClient, formatOpeningHours };
|