@joai/sdk 0.17.1 → 0.18.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 +2183 -488
- package/dist/index.mjs +1245 -258
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WarpBrandUrls, WarpChainName, WarpClient, WarpI18nText, WarpLocale, WarpNativeValue, WarpText, WarpWalletProvider } from "@joai/warps";
|
|
1
|
+
import { WarpBrandUrls, WarpChainInfo, WarpChainName, WarpClient, WarpI18nText, WarpLocale, WarpNativeValue, WarpText, WarpWalletProvider } from "@joai/warps";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/types-CWSaEVa7.d.mts
|
|
4
4
|
//#region src/http/types.d.ts
|
|
@@ -33,7 +33,8 @@ interface IRequestOptions {
|
|
|
33
33
|
} //#endregion
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../core/dist/index.d.mts
|
|
36
|
-
//#
|
|
36
|
+
//#region src/auth/types.d.ts
|
|
37
|
+
type SocialAuthProvider = 'github' | 'apple' | 'google' | 'x' | 'telegram' | 'slack'; //#endregion
|
|
37
38
|
//#region src/config/types.d.ts
|
|
38
39
|
type AppEnv = 'mainnet' | 'testnet' | 'devnet' | 'local'; //#endregion
|
|
39
40
|
//#region src/config/urls.d.ts
|
|
@@ -105,29 +106,39 @@ type Character = {
|
|
|
105
106
|
system: string;
|
|
106
107
|
bio: WarpText | null;
|
|
107
108
|
}; //#endregion
|
|
108
|
-
//#region src/
|
|
109
|
-
type
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
//#region src/flow/types.d.ts
|
|
110
|
+
type FlowCategory = 'none' | 'defi' | 'nft' | 'social' | 'devtools' | 'productivity' | 'trading' | 'portfolio';
|
|
111
|
+
type FlowStatus = 'draft' | 'published';
|
|
112
|
+
type Flow = {
|
|
113
|
+
slug: string;
|
|
114
|
+
team: Team;
|
|
112
115
|
name: string;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
description: string | null;
|
|
117
|
+
category: FlowCategory;
|
|
118
|
+
status: FlowStatus;
|
|
119
|
+
publishedAt: string | null;
|
|
120
|
+
createdAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
steps: FlowStep[];
|
|
123
|
+
locales: WarpLocale[];
|
|
124
|
+
marketplace: MarketplaceInfo;
|
|
125
|
+
screenshots: string[];
|
|
120
126
|
};
|
|
121
|
-
type
|
|
122
|
-
|
|
127
|
+
type FlowStep = {
|
|
128
|
+
stepId: string;
|
|
129
|
+
order: number;
|
|
130
|
+
type: 'warp' | 'condition' | 'delay';
|
|
131
|
+
warpIdentifier: string | null;
|
|
132
|
+
dependsOn: string[] | null;
|
|
133
|
+
inputMappings: FlowInputMapping[] | null;
|
|
134
|
+
staticInputs: Record<string, any> | null;
|
|
135
|
+
condition: Record<string, any> | null;
|
|
123
136
|
};
|
|
124
|
-
type
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
url: string;
|
|
130
|
-
library: MediaLibraryAttributes;
|
|
137
|
+
type FlowInputMapping = {
|
|
138
|
+
sourceStepId: string;
|
|
139
|
+
sourceKey: string;
|
|
140
|
+
targetInput: string;
|
|
141
|
+
transform?: string;
|
|
131
142
|
}; //#endregion
|
|
132
143
|
//#region src/wallet/types.d.ts
|
|
133
144
|
type Wallet = {
|
|
@@ -138,6 +149,73 @@ type Wallet = {
|
|
|
138
149
|
privateKey?: string;
|
|
139
150
|
mnemonic?: string;
|
|
140
151
|
};
|
|
152
|
+
type WalletList = Partial<Record<WarpChainName, {
|
|
153
|
+
provider: WarpWalletProvider;
|
|
154
|
+
address?: string;
|
|
155
|
+
}>>; //#endregion
|
|
156
|
+
//#region src/user/types.d.ts
|
|
157
|
+
type UserMode = 'simple' | 'advanced';
|
|
158
|
+
type UserInterest = 'payments' | 'health' | 'content' | 'business' | 'finance' | 'research' | 'shopping' | 'web3' | 'developer' | 'fitness' | 'ecommerce';
|
|
159
|
+
type UserSettings = {
|
|
160
|
+
mode: UserMode;
|
|
161
|
+
interests: UserInterest[];
|
|
162
|
+
hotkeys?: Record<string, string> | null;
|
|
163
|
+
'payout.address'?: string | null;
|
|
164
|
+
'payout.chain'?: string | null;
|
|
165
|
+
'voice.playback-mode'?: 'voice-control' | 'chat' | 'both' | null;
|
|
166
|
+
'voice.corrections'?: {
|
|
167
|
+
wrong: string;
|
|
168
|
+
correct: string;
|
|
169
|
+
}[];
|
|
170
|
+
'warp.notifications'?: Record<string, Record<string, boolean>>;
|
|
171
|
+
'withdrawal.waiver.accepted-at'?: string | null;
|
|
172
|
+
'active.team'?: string | null;
|
|
173
|
+
};
|
|
174
|
+
type KycStatus = 'pending' | 'approved' | 'rejected';
|
|
175
|
+
type Kyc = {
|
|
176
|
+
status: KycStatus;
|
|
177
|
+
};
|
|
178
|
+
type UserPrivate = {
|
|
179
|
+
id: string;
|
|
180
|
+
name: string;
|
|
181
|
+
email: string;
|
|
182
|
+
hasVerifiedEmail: boolean;
|
|
183
|
+
balance: number;
|
|
184
|
+
wallets: Wallet[];
|
|
185
|
+
hasProfileImage: boolean;
|
|
186
|
+
profileImageUrl: string;
|
|
187
|
+
country: string | null;
|
|
188
|
+
timezone: string | null;
|
|
189
|
+
socials: UserSocialAccount[];
|
|
190
|
+
justCreated: boolean;
|
|
191
|
+
affiliate: Affiliate | null;
|
|
192
|
+
billingAddress: BillingAddress | null;
|
|
193
|
+
betaRestricted: boolean;
|
|
194
|
+
kyc?: Kyc | null;
|
|
195
|
+
settings: UserSettings;
|
|
196
|
+
};
|
|
197
|
+
type Earning = {
|
|
198
|
+
id: number;
|
|
199
|
+
amount: number;
|
|
200
|
+
type: string;
|
|
201
|
+
description: string | null;
|
|
202
|
+
createdAt: string;
|
|
203
|
+
};
|
|
204
|
+
type PayoutEntry = {
|
|
205
|
+
id: number;
|
|
206
|
+
amount: number;
|
|
207
|
+
status: string;
|
|
208
|
+
tx: string | null;
|
|
209
|
+
failureReason: string | null;
|
|
210
|
+
processedAt: string | null;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
};
|
|
213
|
+
type UserSocialAccount = {
|
|
214
|
+
platform: string;
|
|
215
|
+
id: string;
|
|
216
|
+
username: string;
|
|
217
|
+
profileUrl: string;
|
|
218
|
+
};
|
|
141
219
|
type User = {
|
|
142
220
|
id: string;
|
|
143
221
|
name: string;
|
|
@@ -147,27 +225,263 @@ type User = {
|
|
|
147
225
|
profileImageUrl: string;
|
|
148
226
|
swarmRole: string | null;
|
|
149
227
|
};
|
|
228
|
+
type AuthUser = {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
phone: string | null;
|
|
232
|
+
email: string | null;
|
|
233
|
+
};
|
|
234
|
+
type Affiliate = {
|
|
235
|
+
name: string;
|
|
236
|
+
tier: AffiliateTier;
|
|
237
|
+
balance: number;
|
|
238
|
+
payoutAddress: string;
|
|
239
|
+
application: string;
|
|
240
|
+
status: AffiliateStatus;
|
|
241
|
+
createdAt: string;
|
|
242
|
+
inviteLinkUrl: string;
|
|
243
|
+
settings: {
|
|
244
|
+
minPayoutBalance: number;
|
|
245
|
+
commissionExtraPercent?: number;
|
|
246
|
+
customerDiscountPercent: number;
|
|
247
|
+
};
|
|
248
|
+
clicks: number;
|
|
249
|
+
coupons: Coupon[];
|
|
250
|
+
user: User | null;
|
|
251
|
+
};
|
|
252
|
+
type AffiliateTierName = 'bronze' | 'silver' | 'gold';
|
|
253
|
+
type AffiliateTier = {
|
|
254
|
+
name: AffiliateTierName;
|
|
255
|
+
displayName: string;
|
|
256
|
+
commission: number;
|
|
257
|
+
threshold: number;
|
|
258
|
+
};
|
|
259
|
+
type AffiliateStatus = 'pending' | 'approved' | 'rejected' | 'suspended' | 'demoted'; //#endregion
|
|
260
|
+
//#region src/team/constants.d.ts
|
|
261
|
+
declare const teamCategories: readonly ["general", "food-drink", "retail", "beauty-wellness", "health", "sports-fitness", "trades-services", "professional-services", "education-culture", "clubs-organizations", "leisure-tourism"]; //#endregion
|
|
262
|
+
//#region src/team/types.d.ts
|
|
263
|
+
type TeamCategory = typeof teamCategories[number];
|
|
264
|
+
type TeamFeature = 'shop' | 'appointments';
|
|
265
|
+
type TeamMeta = {
|
|
266
|
+
'extra.messages'?: number;
|
|
267
|
+
'limit.spending'?: number | null;
|
|
268
|
+
'currency'?: string;
|
|
269
|
+
'extra.usage.enabled'?: boolean;
|
|
270
|
+
'auto.reload.enabled'?: boolean;
|
|
271
|
+
'auto.reload.threshold_cents'?: number | null;
|
|
272
|
+
'auto.reload.amount_cents'?: number | null;
|
|
273
|
+
'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
|
|
274
|
+
'byok.providers'?: ByokProviders | null;
|
|
275
|
+
'board.auto.enabled'?: boolean;
|
|
276
|
+
'payments.online'?: boolean;
|
|
277
|
+
'payments.coupons'?: boolean;
|
|
278
|
+
'stock.enabled'?: boolean;
|
|
279
|
+
'branding'?: TeamBrand | null;
|
|
280
|
+
settings: Record<string, unknown>;
|
|
281
|
+
};
|
|
282
|
+
type Team = {
|
|
283
|
+
slug: string;
|
|
284
|
+
name: string;
|
|
285
|
+
personal: boolean;
|
|
286
|
+
category: TeamCategory;
|
|
287
|
+
tags?: string[] | null;
|
|
288
|
+
description: TranslatableValue | null;
|
|
289
|
+
locale: WarpLocale;
|
|
290
|
+
timezone: string;
|
|
291
|
+
meta?: TeamMeta;
|
|
292
|
+
features?: TeamFeature[];
|
|
293
|
+
cover?: string | null;
|
|
294
|
+
logo: string | null;
|
|
295
|
+
tagline?: TranslatableValue | null;
|
|
296
|
+
public: boolean;
|
|
297
|
+
createdAt: string;
|
|
298
|
+
blueprints?: Blueprint[];
|
|
299
|
+
flows?: Flow[];
|
|
300
|
+
};
|
|
301
|
+
type TeamBrand = {
|
|
302
|
+
bg?: string;
|
|
303
|
+
fg?: string;
|
|
304
|
+
label?: string;
|
|
305
|
+
logo?: string;
|
|
306
|
+
bankName?: string;
|
|
307
|
+
bankIban?: string;
|
|
308
|
+
bankBic?: string;
|
|
309
|
+
invoiceAddress?: string;
|
|
310
|
+
invoiceVat?: string;
|
|
311
|
+
invoiceCity?: string;
|
|
312
|
+
invoiceZip?: string;
|
|
313
|
+
invoiceCountry?: string;
|
|
314
|
+
};
|
|
315
|
+
type TeamPrivate = {
|
|
316
|
+
slug: string;
|
|
317
|
+
name: string;
|
|
318
|
+
personal: boolean;
|
|
319
|
+
description: TranslatableValue | null;
|
|
320
|
+
tags?: string[] | null;
|
|
321
|
+
tagline: TranslatableValue | null;
|
|
322
|
+
balance: number;
|
|
323
|
+
locale: WarpLocale;
|
|
324
|
+
timezone: string;
|
|
325
|
+
logo: string | null;
|
|
326
|
+
cover: string | null;
|
|
327
|
+
subscription: {
|
|
328
|
+
premium: boolean;
|
|
329
|
+
lifetime: boolean;
|
|
330
|
+
plan: Plan;
|
|
331
|
+
provider: PaymentProvider | null;
|
|
332
|
+
payer: User | null;
|
|
333
|
+
gracePeriod: boolean;
|
|
334
|
+
autoRenew: boolean;
|
|
335
|
+
cycleEndsAt: string | null;
|
|
336
|
+
resetsAt: string | null;
|
|
337
|
+
startedAt: string | null;
|
|
338
|
+
renewedAt: string | null;
|
|
339
|
+
expiresAt: string | null;
|
|
340
|
+
};
|
|
341
|
+
meta: TeamMeta;
|
|
342
|
+
branding: TeamBrand;
|
|
343
|
+
category: TeamCategory;
|
|
344
|
+
createdAt: string;
|
|
345
|
+
justCreated: boolean;
|
|
346
|
+
};
|
|
347
|
+
type ByokProviderConfig = {
|
|
348
|
+
apiKey?: string;
|
|
349
|
+
accessKey?: string;
|
|
350
|
+
secretKey?: string;
|
|
351
|
+
};
|
|
352
|
+
type ByokProviders = {
|
|
353
|
+
openai?: ByokProviderConfig;
|
|
354
|
+
anthropic?: ByokProviderConfig;
|
|
355
|
+
google?: ByokProviderConfig;
|
|
356
|
+
xai?: ByokProviderConfig;
|
|
357
|
+
klingai?: ByokProviderConfig;
|
|
358
|
+
};
|
|
150
359
|
//#endregion
|
|
360
|
+
//#region src/json/types.d.ts
|
|
361
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
362
|
+
[key: string]: JsonValue;
|
|
363
|
+
}; //#endregion
|
|
364
|
+
//#region src/contact/types.d.ts
|
|
365
|
+
type Contact = {
|
|
366
|
+
id: string;
|
|
367
|
+
name: string;
|
|
368
|
+
wallets: Wallet[];
|
|
369
|
+
email: string | null;
|
|
370
|
+
phone: string | null;
|
|
371
|
+
company: string | null;
|
|
372
|
+
title: string | null;
|
|
373
|
+
birthday: string | null;
|
|
374
|
+
website: string | null;
|
|
375
|
+
location: string | null;
|
|
376
|
+
socials: Record<string, string> | null;
|
|
377
|
+
notes: string | null;
|
|
378
|
+
tags: string[] | null;
|
|
379
|
+
userId: string | null;
|
|
380
|
+
locale?: string | null;
|
|
381
|
+
props?: Record<string, string> | null;
|
|
382
|
+
};
|
|
383
|
+
type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form' | 'loyalty';
|
|
384
|
+
type ContactActivityAuthor = {
|
|
385
|
+
name: string;
|
|
386
|
+
imageUrl: string | null;
|
|
387
|
+
};
|
|
388
|
+
type ContactActivity = {
|
|
389
|
+
id: string;
|
|
390
|
+
type: ContactActivityType;
|
|
391
|
+
description: string | null;
|
|
392
|
+
meta: Record<string, JsonValue> | null;
|
|
393
|
+
agentName: string | null;
|
|
394
|
+
createdAt: string;
|
|
395
|
+
author?: ContactActivityAuthor | null;
|
|
396
|
+
};
|
|
397
|
+
type ContactFormData = {
|
|
398
|
+
name?: string;
|
|
399
|
+
email?: string | null;
|
|
400
|
+
phone?: string | null;
|
|
401
|
+
company?: string | null;
|
|
402
|
+
title?: string | null;
|
|
403
|
+
birthday?: string | null;
|
|
404
|
+
website?: string | null;
|
|
405
|
+
location?: string | null;
|
|
406
|
+
socials?: Record<string, string> | null;
|
|
407
|
+
notes?: string | null;
|
|
408
|
+
tags?: string[] | null;
|
|
409
|
+
locale?: string | null;
|
|
410
|
+
props?: Record<string, string> | null;
|
|
411
|
+
};
|
|
412
|
+
type ContactCreatePayload = ContactFormData & {
|
|
413
|
+
name: string;
|
|
414
|
+
wallets?: WalletList;
|
|
415
|
+
}; //#endregion
|
|
416
|
+
//#region src/media/types.d.ts
|
|
417
|
+
type MediaLibraryAttributes = {
|
|
418
|
+
uuid: string;
|
|
419
|
+
order: number;
|
|
420
|
+
name: string;
|
|
421
|
+
custom_properties: {
|
|
422
|
+
[key: string]: JsonValue;
|
|
423
|
+
};
|
|
424
|
+
preview_url: null | string;
|
|
425
|
+
original_url: null | string;
|
|
426
|
+
extension?: string;
|
|
427
|
+
size?: number;
|
|
428
|
+
};
|
|
429
|
+
type MediaLibraryItems = {
|
|
430
|
+
[uuid: string]: MediaLibraryAttributes;
|
|
431
|
+
};
|
|
432
|
+
type MediaMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'video/mp4' | 'video/webm' | 'video/quicktime' | 'video/x-msvideo' | 'audio/mpeg' | 'audio/mp3' | 'audio/ogg' | 'audio/wav' | 'audio/webm' | 'audio/aac' | 'audio/m4a' | 'audio/m4b' | 'audio/m4p' | 'audio/m4v' | 'application/pdf' | 'application/json';
|
|
433
|
+
type Media = {
|
|
434
|
+
id: string;
|
|
435
|
+
name: string;
|
|
436
|
+
mime: MediaMime;
|
|
437
|
+
url: string;
|
|
438
|
+
library: MediaLibraryAttributes;
|
|
439
|
+
tags?: string[];
|
|
440
|
+
}; //#endregion
|
|
151
441
|
//#region src/billing/types.d.ts
|
|
152
442
|
type TranslatableValue = Partial<Record<WarpLocale, string>>;
|
|
443
|
+
type OrderStatus = 'pending' | 'completed' | 'delivered' | 'canceled';
|
|
444
|
+
type OrderSource = 'auto' | 'manual' | 'kiosk';
|
|
153
445
|
type SubscriptionStatus = 'active' | 'canceled' | 'past_due';
|
|
154
|
-
type SubscriptionInterval = 'weekly' | 'monthly' | 'yearly';
|
|
446
|
+
type SubscriptionInterval = 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly';
|
|
447
|
+
type PricingModel = 'free' | 'one-time' | 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'per-run';
|
|
155
448
|
type AppSubscription = {
|
|
156
449
|
id: string;
|
|
157
450
|
orderId: string;
|
|
158
451
|
teamId: string;
|
|
159
|
-
|
|
452
|
+
contact: Contact | null;
|
|
160
453
|
status: SubscriptionStatus;
|
|
161
454
|
interval: SubscriptionInterval | null;
|
|
162
455
|
renewsAt: string | null;
|
|
163
456
|
cancelledAt: string | null;
|
|
164
457
|
locale: string | null;
|
|
165
|
-
meta: Record<string,
|
|
458
|
+
meta: Record<string, JsonValue> | null;
|
|
166
459
|
createdAt: string;
|
|
167
460
|
updatedAt: string;
|
|
168
461
|
};
|
|
169
|
-
type PaymentProvider = 'xmoney' | 'lemonsqueezy' | 'stripe' | 'apple' | 'google' | 'blockchain' | 'offline';
|
|
170
|
-
type
|
|
462
|
+
type PaymentProvider = 'xmoney' | 'lemonsqueezy' | 'stripe' | 'stripe-connect' | 'apple' | 'google' | 'blockchain' | 'offline';
|
|
463
|
+
type PaymentAccount = {
|
|
464
|
+
provider: string;
|
|
465
|
+
connected: boolean;
|
|
466
|
+
chargesEnabled: boolean;
|
|
467
|
+
payoutsEnabled: boolean;
|
|
468
|
+
detailsSubmitted: boolean;
|
|
469
|
+
requirements: string[];
|
|
470
|
+
};
|
|
471
|
+
type PaymentAccountOnboarding = {
|
|
472
|
+
url: string;
|
|
473
|
+
};
|
|
474
|
+
type TerminalConnectionToken = {
|
|
475
|
+
secret: string;
|
|
476
|
+
locationId: string;
|
|
477
|
+
connectedAccountId: string;
|
|
478
|
+
};
|
|
479
|
+
type TerminalPaymentIntent = {
|
|
480
|
+
clientSecret: string;
|
|
481
|
+
paymentIntentId: string;
|
|
482
|
+
connectedAccountId: string;
|
|
483
|
+
};
|
|
484
|
+
type PlanFeature = 'general' | 'messages' | 'team-members' | 'teams' | 'support' | 'agent' | 'auto-mode' | 'cloud-sync' | 'wallet-cloud' | 'wallet-cloud-premium' | 'wallet-multi' | 'cards' | 'alerts' | 'advanced-commands' | 'tasks' | 'integrations' | 'message-history' | 'memory' | 'documents' | 'voice-input' | 'voice-live' | 'image-gen' | 'video-gen' | 'openclaw' | 'skills' | 'items' | 'context-length' | 'workspace-storage' | 'ingestions' | 'agent-email' | 'streak-freezes' | 'byok' | 'mcp' | 'phone-call' | 'phone-number' | 'custom-domain' | 'contacts' | 'links' | 'store-fee-rate' | 'store-fee-rate-physical' | 'tap-to-pay';
|
|
171
485
|
type PlanBenefit = {
|
|
172
486
|
label: Partial<Record<WarpLocale, string>>;
|
|
173
487
|
tip?: Partial<Record<WarpLocale, string>>;
|
|
@@ -178,6 +492,16 @@ type PlanExtra = {
|
|
|
178
492
|
price: number;
|
|
179
493
|
unitName: string;
|
|
180
494
|
};
|
|
495
|
+
type BillingAddress = {
|
|
496
|
+
name: string;
|
|
497
|
+
addressOne: string | null;
|
|
498
|
+
city: string | null;
|
|
499
|
+
state: string | null;
|
|
500
|
+
zipCode: string | null;
|
|
501
|
+
country: string;
|
|
502
|
+
vatId: string | null;
|
|
503
|
+
isEU: boolean;
|
|
504
|
+
};
|
|
181
505
|
type PlanInterval = 'weekly' | 'monthly' | 'yearly' | 'lifetime';
|
|
182
506
|
type Plan = {
|
|
183
507
|
resource: 'plan';
|
|
@@ -189,9 +513,9 @@ type Plan = {
|
|
|
189
513
|
interval: PlanInterval;
|
|
190
514
|
intervalDisplay: PlanInterval;
|
|
191
515
|
features: PlanFeature[];
|
|
192
|
-
benefits: Record<PlanFeature, PlanBenefit
|
|
193
|
-
limits: Record<PlanFeature, string
|
|
194
|
-
extras: Record<PlanFeature, PlanExtra
|
|
516
|
+
benefits: Partial<Record<PlanFeature, PlanBenefit>>;
|
|
517
|
+
limits: Partial<Record<PlanFeature, string>>;
|
|
518
|
+
extras: Partial<Record<PlanFeature, PlanExtra>>;
|
|
195
519
|
meta: {
|
|
196
520
|
appleProductId: string | null;
|
|
197
521
|
googleProductId: string | null;
|
|
@@ -230,11 +554,11 @@ type VolumePrice = {
|
|
|
230
554
|
minQty: number;
|
|
231
555
|
unitPrice: number;
|
|
232
556
|
};
|
|
233
|
-
type
|
|
557
|
+
type Configuration = Record<string, WarpNativeValue>;
|
|
234
558
|
type OrderConfigurationItem = {
|
|
235
559
|
itemId: string | null;
|
|
236
560
|
type: string;
|
|
237
|
-
configuration:
|
|
561
|
+
configuration: Configuration;
|
|
238
562
|
};
|
|
239
563
|
type ProductVariationMeta = {
|
|
240
564
|
itemGroupId?: string | null;
|
|
@@ -269,7 +593,7 @@ type ProductVariation = {
|
|
|
269
593
|
order?: number | null;
|
|
270
594
|
pieces?: ProductPieces | null;
|
|
271
595
|
discount?: ProductDiscount | null;
|
|
272
|
-
settings?: Record<string,
|
|
596
|
+
settings?: Record<string, JsonValue> | null;
|
|
273
597
|
product?: Product;
|
|
274
598
|
meta?: ProductVariationMeta;
|
|
275
599
|
nativePriceStr?: string | null;
|
|
@@ -290,7 +614,7 @@ type Product = {
|
|
|
290
614
|
variations: ProductVariation[];
|
|
291
615
|
relatedProducts?: ProductRelation[];
|
|
292
616
|
rating?: ProductRating;
|
|
293
|
-
settings?: Record<string,
|
|
617
|
+
settings?: Record<string, JsonValue> | null;
|
|
294
618
|
volumePrices?: VolumePrice[];
|
|
295
619
|
media?: Media[];
|
|
296
620
|
};
|
|
@@ -300,6 +624,41 @@ type OrderItem = {
|
|
|
300
624
|
quantity: number;
|
|
301
625
|
unitPrice: number;
|
|
302
626
|
type: 'product-variation' | 'service';
|
|
627
|
+
digital?: boolean | null;
|
|
628
|
+
sellerTeamId?: string | null;
|
|
629
|
+
};
|
|
630
|
+
type OrderContext = {
|
|
631
|
+
type: string;
|
|
632
|
+
label?: string | null;
|
|
633
|
+
value: string;
|
|
634
|
+
};
|
|
635
|
+
type Order = {
|
|
636
|
+
resource: 'order';
|
|
637
|
+
id: string;
|
|
638
|
+
total: number;
|
|
639
|
+
provider: PaymentProvider | null;
|
|
640
|
+
providerAccountId?: string | null;
|
|
641
|
+
requiresConnectedAccount?: boolean;
|
|
642
|
+
usesPlatformAccount?: boolean;
|
|
643
|
+
status: OrderStatus;
|
|
644
|
+
paymentUrl?: string | null;
|
|
645
|
+
invoiceUrl: string | null;
|
|
646
|
+
justCreated?: boolean;
|
|
647
|
+
createdAt: string;
|
|
648
|
+
invoiceDate: string;
|
|
649
|
+
meta: Record<string, JsonValue> | null;
|
|
650
|
+
contactId: string | null;
|
|
651
|
+
source: OrderSource | null;
|
|
652
|
+
context: OrderContext | null;
|
|
653
|
+
paymentMode: string | null;
|
|
654
|
+
linkVariationId: string | null;
|
|
655
|
+
notes: string | null;
|
|
656
|
+
configuration?: OrderConfigurationItem[];
|
|
657
|
+
items: OrderItem[];
|
|
658
|
+
plan: Plan | null;
|
|
659
|
+
user: UserPrivate | null;
|
|
660
|
+
team: TeamPrivate | null;
|
|
661
|
+
isSubscription: boolean;
|
|
303
662
|
};
|
|
304
663
|
type CartItem = {
|
|
305
664
|
id: string;
|
|
@@ -309,7 +668,7 @@ type CartItem = {
|
|
|
309
668
|
type: 'service' | 'product';
|
|
310
669
|
sku: string | null;
|
|
311
670
|
badge: string | null;
|
|
312
|
-
configuration?:
|
|
671
|
+
configuration?: Configuration;
|
|
313
672
|
media: Media[];
|
|
314
673
|
product?: Product | null;
|
|
315
674
|
};
|
|
@@ -330,139 +689,11 @@ type Coupon = {
|
|
|
330
689
|
percent: number;
|
|
331
690
|
expiresAt: string | null;
|
|
332
691
|
};
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
type TeamMeta = {
|
|
338
|
-
'extra.messages'?: number;
|
|
339
|
-
'limit.spending'?: number | null;
|
|
340
|
-
'currency'?: string;
|
|
341
|
-
'extra.usage.enabled'?: boolean;
|
|
342
|
-
'auto.reload.enabled'?: boolean;
|
|
343
|
-
'auto.reload.threshold_cents'?: number | null;
|
|
344
|
-
'auto.reload.amount_cents'?: number | null;
|
|
345
|
-
'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
|
|
346
|
-
'byok.providers'?: ByokProviders | null;
|
|
347
|
-
'board.auto.enabled'?: boolean;
|
|
348
|
-
'payments.online'?: boolean;
|
|
349
|
-
'payments.coupons'?: boolean;
|
|
350
|
-
'stock.enabled'?: boolean;
|
|
351
|
-
'branding'?: TeamBrand | null;
|
|
352
|
-
settings: Record<string, unknown>;
|
|
353
|
-
};
|
|
354
|
-
type Team = {
|
|
355
|
-
slug: string;
|
|
356
|
-
name: string;
|
|
357
|
-
personal: boolean;
|
|
358
|
-
category?: TeamCategory;
|
|
359
|
-
description: TranslatableValue | null;
|
|
360
|
-
locale: WarpLocale;
|
|
361
|
-
timezone: string;
|
|
362
|
-
meta?: TeamMeta;
|
|
363
|
-
features?: TeamFeature[];
|
|
364
|
-
cover?: string | null;
|
|
365
|
-
logo: string | null;
|
|
366
|
-
tagline?: TranslatableValue | null;
|
|
367
|
-
public: boolean;
|
|
368
|
-
createdAt: string;
|
|
369
|
-
blueprints?: Blueprint[];
|
|
370
|
-
flows?: Flow[];
|
|
692
|
+
type PurchaseResult = {
|
|
693
|
+
order_id?: string;
|
|
694
|
+
message?: string;
|
|
695
|
+
subscription_active?: boolean;
|
|
371
696
|
};
|
|
372
|
-
type TeamBrand = {
|
|
373
|
-
bg?: string;
|
|
374
|
-
fg?: string;
|
|
375
|
-
label?: string;
|
|
376
|
-
logo?: string;
|
|
377
|
-
bankName?: string;
|
|
378
|
-
bankIban?: string;
|
|
379
|
-
bankBic?: string;
|
|
380
|
-
invoiceAddress?: string;
|
|
381
|
-
invoiceVat?: string;
|
|
382
|
-
invoiceCity?: string;
|
|
383
|
-
invoiceZip?: string;
|
|
384
|
-
invoiceCountry?: string;
|
|
385
|
-
};
|
|
386
|
-
type TeamPrivate = {
|
|
387
|
-
slug: string;
|
|
388
|
-
name: string;
|
|
389
|
-
personal: boolean;
|
|
390
|
-
description: TranslatableValue | null;
|
|
391
|
-
tagline: TranslatableValue | null;
|
|
392
|
-
balance: number;
|
|
393
|
-
locale: WarpLocale;
|
|
394
|
-
timezone: string;
|
|
395
|
-
logo: string | null;
|
|
396
|
-
cover: string | null;
|
|
397
|
-
subscription: {
|
|
398
|
-
premium: boolean;
|
|
399
|
-
lifetime: boolean;
|
|
400
|
-
plan: Plan;
|
|
401
|
-
provider: PaymentProvider | null;
|
|
402
|
-
payer: User | null;
|
|
403
|
-
gracePeriod: boolean;
|
|
404
|
-
autoRenew: boolean;
|
|
405
|
-
uncapped: boolean;
|
|
406
|
-
cycleEndsAt: string | null;
|
|
407
|
-
resetsAt: string | null;
|
|
408
|
-
startedAt: string | null;
|
|
409
|
-
renewedAt: string | null;
|
|
410
|
-
expiresAt: string | null;
|
|
411
|
-
};
|
|
412
|
-
meta: TeamMeta;
|
|
413
|
-
branding: TeamBrand;
|
|
414
|
-
category?: TeamCategory;
|
|
415
|
-
createdAt: string;
|
|
416
|
-
justCreated: boolean;
|
|
417
|
-
};
|
|
418
|
-
type ByokProviderConfig = {
|
|
419
|
-
apiKey?: string;
|
|
420
|
-
accessKey?: string;
|
|
421
|
-
secretKey?: string;
|
|
422
|
-
};
|
|
423
|
-
type ByokProviders = {
|
|
424
|
-
openai?: ByokProviderConfig;
|
|
425
|
-
anthropic?: ByokProviderConfig;
|
|
426
|
-
google?: ByokProviderConfig;
|
|
427
|
-
xai?: ByokProviderConfig;
|
|
428
|
-
klingai?: ByokProviderConfig;
|
|
429
|
-
};
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region src/flow/types.d.ts
|
|
432
|
-
type FlowCategory = 'none' | 'defi' | 'nft' | 'social' | 'devtools' | 'productivity' | 'trading' | 'portfolio';
|
|
433
|
-
type FlowStatus = 'draft' | 'published';
|
|
434
|
-
type Flow = {
|
|
435
|
-
slug: string;
|
|
436
|
-
team: Team;
|
|
437
|
-
name: string;
|
|
438
|
-
description: string | null;
|
|
439
|
-
category: FlowCategory;
|
|
440
|
-
status: FlowStatus;
|
|
441
|
-
publishedAt: string | null;
|
|
442
|
-
createdAt: string;
|
|
443
|
-
updatedAt: string;
|
|
444
|
-
steps: FlowStep[];
|
|
445
|
-
locales: WarpLocale[];
|
|
446
|
-
marketplace: MarketplaceInfo;
|
|
447
|
-
screenshots: string[];
|
|
448
|
-
};
|
|
449
|
-
type FlowStep = {
|
|
450
|
-
stepId: string;
|
|
451
|
-
order: number;
|
|
452
|
-
type: 'warp' | 'condition' | 'delay';
|
|
453
|
-
warpIdentifier: string | null;
|
|
454
|
-
dependsOn: string[] | null;
|
|
455
|
-
inputMappings: FlowInputMapping[] | null;
|
|
456
|
-
staticInputs: Record<string, any> | null;
|
|
457
|
-
condition: Record<string, any> | null;
|
|
458
|
-
};
|
|
459
|
-
type FlowInputMapping = {
|
|
460
|
-
sourceStepId: string;
|
|
461
|
-
sourceKey: string;
|
|
462
|
-
targetInput: string;
|
|
463
|
-
transform?: string;
|
|
464
|
-
}; //#endregion
|
|
465
|
-
//#region src/skill/types.d.ts
|
|
466
697
|
declare const SkillScope: {
|
|
467
698
|
readonly Agent: "agent";
|
|
468
699
|
readonly Team: "team";
|
|
@@ -487,7 +718,7 @@ type Skill = {
|
|
|
487
718
|
screenshots: string[];
|
|
488
719
|
}; //#endregion
|
|
489
720
|
//#region src/integration/types.d.ts
|
|
490
|
-
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
|
|
721
|
+
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'sms' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
|
|
491
722
|
type IntegrationDetails = {
|
|
492
723
|
type: IntegrationType;
|
|
493
724
|
name: string;
|
|
@@ -506,7 +737,46 @@ type Integration = {
|
|
|
506
737
|
createdAt: string;
|
|
507
738
|
details?: IntegrationDetails;
|
|
508
739
|
};
|
|
740
|
+
type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
|
|
741
|
+
type SocialBot = {
|
|
742
|
+
name: string;
|
|
743
|
+
createdAt: string;
|
|
744
|
+
phoneNumberId?: string;
|
|
745
|
+
phoneNumber?: string;
|
|
746
|
+
applicationId?: string;
|
|
747
|
+
appId?: string;
|
|
748
|
+
installationId?: string;
|
|
749
|
+
};
|
|
750
|
+
type XIntegrationStatus = {
|
|
751
|
+
enabled: boolean;
|
|
752
|
+
integrationId: string | null;
|
|
753
|
+
xAccountLinked: boolean;
|
|
754
|
+
currentAgentName: string | null;
|
|
755
|
+
};
|
|
756
|
+
type EmbedStatus = {
|
|
757
|
+
integrationId: string;
|
|
758
|
+
agentName: string;
|
|
759
|
+
agentAvatar: string | null;
|
|
760
|
+
active: boolean;
|
|
761
|
+
allowedDomains: string[];
|
|
762
|
+
};
|
|
509
763
|
type EmailProvider = 'resend' | 'mailgun' | 'sendgrid';
|
|
764
|
+
type CalendarProvider = 'google' | 'apple' | 'microsoft';
|
|
765
|
+
type CalendarStatus = {
|
|
766
|
+
connected: boolean;
|
|
767
|
+
provider?: CalendarProvider;
|
|
768
|
+
providerDisplayName?: string;
|
|
769
|
+
accountEmail?: string;
|
|
770
|
+
lastSynced?: string;
|
|
771
|
+
tokenHealthy?: boolean;
|
|
772
|
+
upcomingEvents?: {
|
|
773
|
+
title: string;
|
|
774
|
+
startAt: string;
|
|
775
|
+
endAt: string;
|
|
776
|
+
allDay: boolean;
|
|
777
|
+
}[];
|
|
778
|
+
}; //#endregion
|
|
779
|
+
//#region src/room/types.d.ts
|
|
510
780
|
type RoomKind = 'default' | 'phone' | 'meeting';
|
|
511
781
|
type Room = {
|
|
512
782
|
id: string;
|
|
@@ -562,6 +832,15 @@ type AgentPrivate = {
|
|
|
562
832
|
justCreated?: boolean;
|
|
563
833
|
team: string;
|
|
564
834
|
};
|
|
835
|
+
type AgentActionHistoryEntry = {
|
|
836
|
+
id: string;
|
|
837
|
+
action: string | null;
|
|
838
|
+
outcome: 'succeeded' | 'failed';
|
|
839
|
+
outcomeDetail: string | null;
|
|
840
|
+
warpIdentifier: string | null;
|
|
841
|
+
meta: Record<string, unknown> | null;
|
|
842
|
+
createdAt: string | null;
|
|
843
|
+
};
|
|
565
844
|
type AgentSimple = {
|
|
566
845
|
uuid: string;
|
|
567
846
|
name: string;
|
|
@@ -673,7 +952,6 @@ type BrandBackend = {
|
|
|
673
952
|
integrations?: Partial<Record<BrandIntegrationProvider, BrandIntegration>>;
|
|
674
953
|
};
|
|
675
954
|
};
|
|
676
|
-
type PricingModel = 'free' | 'one-time' | 'monthly' | 'per-run';
|
|
677
955
|
type MarketplacePricing = {
|
|
678
956
|
model: PricingModel;
|
|
679
957
|
amount: string;
|
|
@@ -775,6 +1053,20 @@ type BlueprintShortcut = {
|
|
|
775
1053
|
chat: boolean;
|
|
776
1054
|
}; //#endregion
|
|
777
1055
|
//#region src/helpers/string.d.ts
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region src/alert/types.d.ts
|
|
1058
|
+
type Alert = {
|
|
1059
|
+
id: string;
|
|
1060
|
+
chain: string;
|
|
1061
|
+
warp: string;
|
|
1062
|
+
key: string;
|
|
1063
|
+
event: string;
|
|
1064
|
+
contract: string;
|
|
1065
|
+
active: boolean;
|
|
1066
|
+
createdAt: string;
|
|
1067
|
+
agent: Agent | null;
|
|
1068
|
+
}; //#endregion
|
|
1069
|
+
//#region src/api/types.d.ts
|
|
778
1070
|
type PaginatedResponse<T> = {
|
|
779
1071
|
data: T[];
|
|
780
1072
|
current_page: number;
|
|
@@ -818,12 +1110,12 @@ type Meeting = {
|
|
|
818
1110
|
conferenceProvider: MeetingConferenceProvider | null;
|
|
819
1111
|
conferenceUrl: string | null;
|
|
820
1112
|
conferenceExternalId: string | null;
|
|
1113
|
+
configuration?: Configuration;
|
|
821
1114
|
captureMode: 'desktop_local' | null;
|
|
822
1115
|
transcriptUrl: string | null;
|
|
823
1116
|
summaryUrl: string | null;
|
|
824
1117
|
participants?: MeetingParticipant[];
|
|
825
1118
|
speakerAssignments?: MeetingSpeakerAssignment[] | null;
|
|
826
|
-
configuration?: Record<string, WarpNativeValue>;
|
|
827
1119
|
scheduledAt: string | null;
|
|
828
1120
|
calendarEventId: number | null;
|
|
829
1121
|
startedAt: string | null;
|
|
@@ -855,6 +1147,10 @@ type MeetingJoinInfo = {
|
|
|
855
1147
|
canCancel: boolean;
|
|
856
1148
|
features: Record<MeetingFeature, boolean>;
|
|
857
1149
|
};
|
|
1150
|
+
type MeetingSummary = {
|
|
1151
|
+
content: string;
|
|
1152
|
+
}; //#endregion
|
|
1153
|
+
//#region src/appointment/types.d.ts
|
|
858
1154
|
type AppointmentAvailabilityService = {
|
|
859
1155
|
slug: string;
|
|
860
1156
|
name: string | null;
|
|
@@ -902,7 +1198,7 @@ type AppointmentBooking = {
|
|
|
902
1198
|
status: string;
|
|
903
1199
|
attendeeEmail: string | null;
|
|
904
1200
|
attendeeName: string | null;
|
|
905
|
-
configuration?:
|
|
1201
|
+
configuration?: Configuration;
|
|
906
1202
|
};
|
|
907
1203
|
type AppointmentRequest = {
|
|
908
1204
|
id: string;
|
|
@@ -918,64 +1214,146 @@ type AppointmentRequest = {
|
|
|
918
1214
|
start: string;
|
|
919
1215
|
end: string;
|
|
920
1216
|
}[] | null;
|
|
921
|
-
configuration?: Record<string, WarpNativeValue>;
|
|
922
1217
|
service?: Service | null;
|
|
923
1218
|
meeting?: Meeting | null;
|
|
924
1219
|
agent?: Agent | null;
|
|
1220
|
+
configuration?: Configuration;
|
|
925
1221
|
createdAt: string;
|
|
926
1222
|
}; //#endregion
|
|
927
1223
|
//#region src/budget/types.d.ts
|
|
928
1224
|
//#endregion
|
|
929
|
-
//#region src/
|
|
930
|
-
type
|
|
1225
|
+
//#region src/card/types.d.ts
|
|
1226
|
+
type Card = {
|
|
931
1227
|
id: string;
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1228
|
+
warp: string;
|
|
1229
|
+
inputs: string[];
|
|
1230
|
+
order: number;
|
|
1231
|
+
active: boolean;
|
|
1232
|
+
createdAt: string;
|
|
1233
|
+
}; //#endregion
|
|
1234
|
+
//#region src/challenge/types.d.ts
|
|
1235
|
+
type Challenge = {
|
|
1236
|
+
id: number;
|
|
1237
|
+
title: string;
|
|
1238
|
+
description: string;
|
|
1239
|
+
target: number;
|
|
1240
|
+
progress: number;
|
|
1241
|
+
progressPercent: number;
|
|
1242
|
+
completed: boolean;
|
|
1243
|
+
xpReward: number;
|
|
1244
|
+
endsAt?: string;
|
|
947
1245
|
};
|
|
948
|
-
type
|
|
949
|
-
|
|
1246
|
+
type Challenges = {
|
|
1247
|
+
daily: Challenge[];
|
|
1248
|
+
weekly: Challenge[];
|
|
1249
|
+
}; //#endregion
|
|
1250
|
+
//#region src/changelog/types.d.ts
|
|
1251
|
+
type ChangelogEntry = {
|
|
1252
|
+
id: number;
|
|
1253
|
+
version?: string;
|
|
1254
|
+
type: 'feature' | 'fix' | 'improvement' | 'update';
|
|
1255
|
+
title: string;
|
|
1256
|
+
description?: string;
|
|
1257
|
+
createdAt: string;
|
|
1258
|
+
}; //#endregion
|
|
1259
|
+
//#region src/chat-reactions/types.d.ts
|
|
1260
|
+
/** Emoji → array of user hashids who reacted */
|
|
1261
|
+
//#endregion
|
|
1262
|
+
//#region src/contract/types.d.ts
|
|
1263
|
+
type Contract = {
|
|
1264
|
+
id: string;
|
|
1265
|
+
uuid: string;
|
|
1266
|
+
slug: string;
|
|
1267
|
+
agentId: string;
|
|
950
1268
|
name: string;
|
|
951
|
-
|
|
1269
|
+
description: string | null;
|
|
1270
|
+
chain: WarpChainName;
|
|
1271
|
+
category: ContractCategoryName;
|
|
1272
|
+
public: boolean;
|
|
1273
|
+
addresses: Record<string, string | null>;
|
|
1274
|
+
verified: boolean;
|
|
1275
|
+
dockerImage: string | null;
|
|
1276
|
+
verificationTaskId: Record<string, string> | null;
|
|
1277
|
+
abiUrl: string | null;
|
|
1278
|
+
initArgs: Record<string, string[]>;
|
|
1279
|
+
upgradeArgs: Record<string, string[]>;
|
|
1280
|
+
codeMetadata: string | null;
|
|
1281
|
+
errors: Record<string, string> | null;
|
|
1282
|
+
entity: ContractEntity | null;
|
|
1283
|
+
versionsCount: number;
|
|
1284
|
+
createdAt: string;
|
|
1285
|
+
updatedAt: string;
|
|
952
1286
|
};
|
|
953
|
-
type
|
|
1287
|
+
type ContractVersion = {
|
|
1288
|
+
id: number;
|
|
1289
|
+
status: string;
|
|
1290
|
+
env: string;
|
|
1291
|
+
type: 'deploy' | 'upgrade';
|
|
1292
|
+
txHash: string | null;
|
|
1293
|
+
codeHash: string | null;
|
|
1294
|
+
version: number | null;
|
|
1295
|
+
duration: number | null;
|
|
1296
|
+
hasCode: boolean;
|
|
1297
|
+
createdAt: string;
|
|
1298
|
+
};
|
|
1299
|
+
type ContractEntity = {
|
|
1300
|
+
auto: boolean;
|
|
1301
|
+
source: Record<string, string> | null;
|
|
1302
|
+
};
|
|
1303
|
+
type ContractCategoryName = 'default' | 'nft' | 'marketplace' | 'staking' | 'governance' | 'defi' | 'game' | 'social' | 'identity' | 'infra';
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region src/element/types.d.ts
|
|
1306
|
+
type ElementType = 'character' | 'environment' | 'style' | 'product' | 'brand';
|
|
1307
|
+
type ElementSpec = {
|
|
1308
|
+
baseColor?: string | null;
|
|
1309
|
+
material?: string | null;
|
|
1310
|
+
texture?: string | null;
|
|
1311
|
+
pattern?: string | null;
|
|
1312
|
+
finish?: string | null;
|
|
1313
|
+
condition?: string | null;
|
|
1314
|
+
setting?: string | null;
|
|
1315
|
+
background?: string | null;
|
|
1316
|
+
surface?: string | null;
|
|
1317
|
+
weather?: string | null;
|
|
1318
|
+
timeOfDay?: string | null;
|
|
1319
|
+
season?: string | null;
|
|
1320
|
+
lightingType?: string | null;
|
|
1321
|
+
lightingColor?: string | null;
|
|
1322
|
+
lightingDirection?: string | null;
|
|
1323
|
+
mood?: string | null;
|
|
1324
|
+
atmosphere?: string | null;
|
|
1325
|
+
colorPalette?: string | null;
|
|
1326
|
+
style?: string | null;
|
|
1327
|
+
rendering?: string | null;
|
|
1328
|
+
colorGrade?: string | null;
|
|
1329
|
+
shotType?: string | null;
|
|
1330
|
+
cameraAngle?: string | null;
|
|
1331
|
+
lens?: string | null;
|
|
1332
|
+
depthOfField?: string | null;
|
|
1333
|
+
framing?: string | null;
|
|
1334
|
+
avoid?: string | null;
|
|
1335
|
+
};
|
|
1336
|
+
type ElementVariation = {
|
|
954
1337
|
id: string;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1338
|
+
label: string | null;
|
|
1339
|
+
overrides: ElementSpec | null;
|
|
1340
|
+
model: string | null;
|
|
1341
|
+
aspectRatio: string;
|
|
1342
|
+
primaryMediaId: string | null;
|
|
1343
|
+
primaryImage: Media | null;
|
|
1344
|
+
images: Media[];
|
|
959
1345
|
createdAt: string;
|
|
960
|
-
author?: ContactActivityAuthor | null;
|
|
961
1346
|
};
|
|
962
|
-
type
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
socials?: Record<string, string> | null;
|
|
972
|
-
notes?: string | null;
|
|
973
|
-
tags?: string[] | null;
|
|
974
|
-
locale?: string | null;
|
|
975
|
-
props?: Record<string, string> | null;
|
|
1347
|
+
type Element = {
|
|
1348
|
+
id: string;
|
|
1349
|
+
name: string;
|
|
1350
|
+
type: ElementType;
|
|
1351
|
+
description: string | null;
|
|
1352
|
+
spec: ElementSpec | null;
|
|
1353
|
+
media: Media[];
|
|
1354
|
+
variations: ElementVariation[];
|
|
1355
|
+
createdAt: string;
|
|
976
1356
|
}; //#endregion
|
|
977
|
-
//#region src/contract/types.d.ts
|
|
978
|
-
//#endregion
|
|
979
1357
|
//#region src/document/types.d.ts
|
|
980
1358
|
type Document = {
|
|
981
1359
|
id: string;
|
|
@@ -985,6 +1363,30 @@ type Document = {
|
|
|
985
1363
|
createdAt: string;
|
|
986
1364
|
}; //#endregion
|
|
987
1365
|
//#region src/experience/types.d.ts
|
|
1366
|
+
type Experience = {
|
|
1367
|
+
level: number;
|
|
1368
|
+
levelUpperLimit: number;
|
|
1369
|
+
levelProgressPercent: number;
|
|
1370
|
+
};
|
|
1371
|
+
type Achievement = {
|
|
1372
|
+
name: string;
|
|
1373
|
+
description: string;
|
|
1374
|
+
icon: string;
|
|
1375
|
+
earnedAt: string | null;
|
|
1376
|
+
};
|
|
1377
|
+
type RecentExperience = {
|
|
1378
|
+
slug: string;
|
|
1379
|
+
description: string;
|
|
1380
|
+
points: number;
|
|
1381
|
+
earnedAt: string;
|
|
1382
|
+
};
|
|
1383
|
+
type MilestoneType = 'messages' | 'streak' | 'hoursSaved' | 'warps';
|
|
1384
|
+
type Milestone = {
|
|
1385
|
+
type: MilestoneType;
|
|
1386
|
+
current: number;
|
|
1387
|
+
target: number;
|
|
1388
|
+
remaining: number;
|
|
1389
|
+
};
|
|
988
1390
|
//#endregion
|
|
989
1391
|
//#region src/goal/types.d.ts
|
|
990
1392
|
type GoalStatus = 'active' | 'paused' | 'completed' | 'archived';
|
|
@@ -1006,6 +1408,29 @@ type GoalCreatePayload = {
|
|
|
1006
1408
|
}; //#endregion
|
|
1007
1409
|
//#region src/hint/types.d.ts
|
|
1008
1410
|
//#endregion
|
|
1411
|
+
//#region src/inquiry/types.d.ts
|
|
1412
|
+
type Inquiry = {
|
|
1413
|
+
id: string;
|
|
1414
|
+
content: string;
|
|
1415
|
+
type: InquiryType;
|
|
1416
|
+
status: InquiryStatus;
|
|
1417
|
+
user: User;
|
|
1418
|
+
createdAt: string;
|
|
1419
|
+
updatedAt: string;
|
|
1420
|
+
};
|
|
1421
|
+
type InquiryType = 'general' | 'bug' | 'feature';
|
|
1422
|
+
type InquiryStatus = 'pending' | 'active' | 'closed'; //#endregion
|
|
1423
|
+
//#region src/intelligence/types.d.ts
|
|
1424
|
+
//#endregion
|
|
1425
|
+
//#region src/intent/types.d.ts
|
|
1426
|
+
type Intent = {
|
|
1427
|
+
id: string;
|
|
1428
|
+
room: string;
|
|
1429
|
+
warp: string;
|
|
1430
|
+
inputs: string[];
|
|
1431
|
+
seenAt: string | null;
|
|
1432
|
+
createdAt: string;
|
|
1433
|
+
}; //#endregion
|
|
1009
1434
|
//#region src/item/types.d.ts
|
|
1010
1435
|
type ItemStatus = 'backlog' | 'active' | 'review' | 'done' | 'archived';
|
|
1011
1436
|
type ItemPriority = 'normal' | 'high' | 'critical';
|
|
@@ -1040,6 +1465,19 @@ type ItemCreatePayload = {
|
|
|
1040
1465
|
contactIds?: string[];
|
|
1041
1466
|
assignedToIds?: string[];
|
|
1042
1467
|
};
|
|
1468
|
+
type ItemUpdatePayload = {
|
|
1469
|
+
title?: string;
|
|
1470
|
+
description?: string | null;
|
|
1471
|
+
status?: ItemStatus;
|
|
1472
|
+
priority?: ItemPriority;
|
|
1473
|
+
tags?: string[];
|
|
1474
|
+
dueDate?: string | null;
|
|
1475
|
+
goalId?: string | null;
|
|
1476
|
+
agents?: string[];
|
|
1477
|
+
contactIds?: string[];
|
|
1478
|
+
assignedToIds?: string[];
|
|
1479
|
+
}; //#endregion
|
|
1480
|
+
//#region src/marketing/types.d.ts
|
|
1043
1481
|
//#endregion
|
|
1044
1482
|
//#region src/memory/types.d.ts
|
|
1045
1483
|
type Memory = {
|
|
@@ -1051,6 +1489,140 @@ type Memory = {
|
|
|
1051
1489
|
roomId: string | null;
|
|
1052
1490
|
}; //#endregion
|
|
1053
1491
|
//#region src/peerme/types.d.ts
|
|
1492
|
+
type MediaAttributes = {
|
|
1493
|
+
uuid: string;
|
|
1494
|
+
order: number;
|
|
1495
|
+
name: string;
|
|
1496
|
+
custom_properties: {
|
|
1497
|
+
[key: string]: any;
|
|
1498
|
+
};
|
|
1499
|
+
preview_url: null | string;
|
|
1500
|
+
original_url: null | string;
|
|
1501
|
+
extension?: string;
|
|
1502
|
+
size?: number;
|
|
1503
|
+
};
|
|
1504
|
+
type MediaItems = {
|
|
1505
|
+
[uuid: string]: MediaAttributes;
|
|
1506
|
+
};
|
|
1507
|
+
type EntityTemplate = 'default' | 'next' | 'custom' | 'multisig';
|
|
1508
|
+
type Entity = {
|
|
1509
|
+
id: string;
|
|
1510
|
+
address: string;
|
|
1511
|
+
slug: string;
|
|
1512
|
+
name: string;
|
|
1513
|
+
description: string;
|
|
1514
|
+
avatarUrl: string | null;
|
|
1515
|
+
headerImageUrl: string | null;
|
|
1516
|
+
verified: boolean;
|
|
1517
|
+
private: boolean;
|
|
1518
|
+
template: EntityTemplate;
|
|
1519
|
+
specialization: string | null;
|
|
1520
|
+
justCreated: boolean;
|
|
1521
|
+
tags: string[];
|
|
1522
|
+
socials: [string, string];
|
|
1523
|
+
features: string[];
|
|
1524
|
+
governance: {
|
|
1525
|
+
nft: boolean | null;
|
|
1526
|
+
owned: boolean | null;
|
|
1527
|
+
token: string | null;
|
|
1528
|
+
tokenLocking: boolean;
|
|
1529
|
+
tokenName: string | null;
|
|
1530
|
+
tokenDecimals: number | null;
|
|
1531
|
+
minVoteWeight: string | null;
|
|
1532
|
+
minProposeWeight: string | null;
|
|
1533
|
+
quorum: string | null;
|
|
1534
|
+
votingPeriodMinutes: number | null;
|
|
1535
|
+
plug: string | null;
|
|
1536
|
+
rolesRestrictPropose: string[];
|
|
1537
|
+
restrictedNonces: number[];
|
|
1538
|
+
earnStake?: string | null;
|
|
1539
|
+
earnStakeNft?: boolean | null;
|
|
1540
|
+
earnReward?: string | null;
|
|
1541
|
+
earnLockTime?: number;
|
|
1542
|
+
};
|
|
1543
|
+
leaders: number;
|
|
1544
|
+
level: number;
|
|
1545
|
+
credits: any | null;
|
|
1546
|
+
version: string;
|
|
1547
|
+
callerRoles: any[];
|
|
1548
|
+
parent: Entity | null;
|
|
1549
|
+
children: Entity[];
|
|
1550
|
+
favorited: boolean;
|
|
1551
|
+
pipeline: string | null;
|
|
1552
|
+
network: {
|
|
1553
|
+
name: string;
|
|
1554
|
+
displayName: string;
|
|
1555
|
+
env: string;
|
|
1556
|
+
urls: {
|
|
1557
|
+
api: string;
|
|
1558
|
+
explorer: string;
|
|
1559
|
+
};
|
|
1560
|
+
chainId: string;
|
|
1561
|
+
blockTimeMs: number;
|
|
1562
|
+
};
|
|
1563
|
+
kyc: any | null;
|
|
1564
|
+
};
|
|
1565
|
+
type ProposalStatus = 'pending' | 'active' | 'defeated' | 'succeeded' | 'executed' | 'canceled' | 'execution-failed';
|
|
1566
|
+
type ProposalPollOption = {
|
|
1567
|
+
id: number;
|
|
1568
|
+
text: string;
|
|
1569
|
+
weight: string;
|
|
1570
|
+
percent: number;
|
|
1571
|
+
media: MediaItems;
|
|
1572
|
+
};
|
|
1573
|
+
type ProposalActionPayment = {
|
|
1574
|
+
tokenId: string;
|
|
1575
|
+
tokenNonce: number;
|
|
1576
|
+
tokenDecimals?: number | null;
|
|
1577
|
+
amount: string;
|
|
1578
|
+
};
|
|
1579
|
+
type ProposalAction = {
|
|
1580
|
+
destination: string;
|
|
1581
|
+
endpoint: string | null;
|
|
1582
|
+
value: string;
|
|
1583
|
+
payments: ProposalActionPayment[];
|
|
1584
|
+
arguments: string[];
|
|
1585
|
+
targetUser?: any | null;
|
|
1586
|
+
targetContract?: any | null;
|
|
1587
|
+
ticket?: any | null;
|
|
1588
|
+
bounty?: any | null;
|
|
1589
|
+
guards?: any[];
|
|
1590
|
+
};
|
|
1591
|
+
type Proposal = {
|
|
1592
|
+
id: string;
|
|
1593
|
+
chainId: number;
|
|
1594
|
+
title: string;
|
|
1595
|
+
description: string | null;
|
|
1596
|
+
proposer: any;
|
|
1597
|
+
entity: Entity;
|
|
1598
|
+
upvotes: string | null;
|
|
1599
|
+
downvotes: string | null;
|
|
1600
|
+
approvePercent: number;
|
|
1601
|
+
quorumPercent: number;
|
|
1602
|
+
weighted: boolean;
|
|
1603
|
+
startsAt: string | null;
|
|
1604
|
+
endsAt: string | null;
|
|
1605
|
+
createdAt: string;
|
|
1606
|
+
status: ProposalStatus;
|
|
1607
|
+
actions: ProposalAction[];
|
|
1608
|
+
poll: any | null;
|
|
1609
|
+
permissions: string[];
|
|
1610
|
+
guards: any[];
|
|
1611
|
+
signing: {
|
|
1612
|
+
has: boolean;
|
|
1613
|
+
can: boolean;
|
|
1614
|
+
} | null;
|
|
1615
|
+
attachments: MediaItems;
|
|
1616
|
+
processed: boolean;
|
|
1617
|
+
ended: boolean;
|
|
1618
|
+
finalizing: boolean;
|
|
1619
|
+
executable: boolean;
|
|
1620
|
+
justCreated: boolean;
|
|
1621
|
+
tx: string;
|
|
1622
|
+
contentHash: string;
|
|
1623
|
+
actionsHash: string;
|
|
1624
|
+
trashed: boolean;
|
|
1625
|
+
};
|
|
1054
1626
|
type ChatClientAction = 'AGENT_DELEGATE' | 'WARP_EXECUTE' | 'WARP_VIEW' | 'WARP_CREATE' | 'WARP_TEST' | 'WARP_INPUT' | 'WARP_APPROVE' | 'WARP_SELECT' | 'WARP_BATCH' | 'WARP_BULK' | 'ENTITY_PROPOSE' | 'ENTITY_SIGN' | 'SECRET_SET' | 'SECRET_AUTHORIZE' | 'HEALTH_QUERY' | 'HEALTH_WRITE' | 'ITEM_VIEW' | 'BOARD_SUMMARY' | 'GOAL_PROGRESS' | 'CONTACT_VIEW' | 'MARKETPLACE_PURCHASE' | 'WARP_CLOUD_EXECUTE' | 'MISSION_VIEW' | 'ACTIVITY' | 'PERSONA_QUESTION' | 'NFC_WRITE' | 'twilio.sms';
|
|
1055
1627
|
type Message = {
|
|
1056
1628
|
id: string;
|
|
@@ -1076,7 +1648,311 @@ type Message = {
|
|
|
1076
1648
|
};
|
|
1077
1649
|
type MessageRole = 'user' | 'agent' | 'external'; //#endregion
|
|
1078
1650
|
//#region src/mission/types.d.ts
|
|
1651
|
+
type MissionStatus = 'active' | 'paused' | 'awaiting_approval' | 'completed' | 'failed' | 'cancelled';
|
|
1652
|
+
type MissionPriority = 'low' | 'normal' | 'high' | 'urgent';
|
|
1653
|
+
type MissionSchedule = {
|
|
1654
|
+
intervalMs: number;
|
|
1655
|
+
maxTicks: number | null;
|
|
1656
|
+
maxDurationMs: number | null;
|
|
1657
|
+
};
|
|
1658
|
+
type MissionPlan = {
|
|
1659
|
+
strategy: string;
|
|
1660
|
+
tickBehavior: string;
|
|
1661
|
+
completionConditions: string[];
|
|
1662
|
+
reportingStrategy: string;
|
|
1663
|
+
availableTools: string[];
|
|
1664
|
+
needsSandbox: boolean;
|
|
1665
|
+
sandboxTemplate: string | null;
|
|
1666
|
+
needsWorkspace: boolean;
|
|
1667
|
+
};
|
|
1668
|
+
type MissionBudget = {
|
|
1669
|
+
maxTokens: number | null;
|
|
1670
|
+
maxCostCents: number | null;
|
|
1671
|
+
maxIterationsPerTick: number;
|
|
1672
|
+
usedTokens: number;
|
|
1673
|
+
usedCostCents: number;
|
|
1674
|
+
};
|
|
1675
|
+
type Mission = {
|
|
1676
|
+
id: string;
|
|
1677
|
+
title: string;
|
|
1678
|
+
description: string | null;
|
|
1679
|
+
status: MissionStatus;
|
|
1680
|
+
priority: MissionPriority;
|
|
1681
|
+
schedule: MissionSchedule | null;
|
|
1682
|
+
plan: MissionPlan | null;
|
|
1683
|
+
budget: MissionBudget | null;
|
|
1684
|
+
tickCount: number;
|
|
1685
|
+
roomId: string | null;
|
|
1686
|
+
agentId: string;
|
|
1687
|
+
supervisorId: string | null;
|
|
1688
|
+
parentId: string | null;
|
|
1689
|
+
childCount?: number;
|
|
1690
|
+
startedAt: string | null;
|
|
1691
|
+
completedAt: string | null;
|
|
1692
|
+
createdAt: string;
|
|
1693
|
+
updatedAt: string;
|
|
1694
|
+
};
|
|
1695
|
+
type MissionCreatePayload = {
|
|
1696
|
+
title: string;
|
|
1697
|
+
description?: string;
|
|
1698
|
+
priority?: MissionPriority;
|
|
1699
|
+
}; //#endregion
|
|
1700
|
+
//#region src/notification/types.d.ts
|
|
1701
|
+
type NotificationChannel = 'mail' | 'push';
|
|
1702
|
+
type NotificationType = 'unknown' | 'marketing' | 'proactive-message';
|
|
1703
|
+
type NotificationAgent = {
|
|
1704
|
+
uuid: string;
|
|
1705
|
+
name: string;
|
|
1706
|
+
avatar: string;
|
|
1707
|
+
};
|
|
1708
|
+
type Notification = {
|
|
1709
|
+
id: string;
|
|
1710
|
+
type: NotificationType;
|
|
1711
|
+
title: string;
|
|
1712
|
+
message: string | null;
|
|
1713
|
+
url: string | null;
|
|
1714
|
+
agent: NotificationAgent | null;
|
|
1715
|
+
time: string;
|
|
1716
|
+
readAt: string | null;
|
|
1717
|
+
respondedAt: string | null;
|
|
1718
|
+
createdAt: string;
|
|
1719
|
+
actions: NotificationAction[];
|
|
1720
|
+
};
|
|
1721
|
+
type NotificationAction = {
|
|
1722
|
+
identifier: string;
|
|
1723
|
+
text: string;
|
|
1724
|
+
highlight: boolean;
|
|
1725
|
+
};
|
|
1726
|
+
type NotificationSetting = {
|
|
1727
|
+
identifier: string;
|
|
1728
|
+
name: string;
|
|
1729
|
+
description: string;
|
|
1730
|
+
channels: {
|
|
1731
|
+
identifier: NotificationChannel;
|
|
1732
|
+
name: string;
|
|
1733
|
+
isEnabled: boolean;
|
|
1734
|
+
}[];
|
|
1735
|
+
}; //#endregion
|
|
1736
|
+
//#region src/office/types.d.ts
|
|
1737
|
+
type OfficeAgent = {
|
|
1738
|
+
uuid: string;
|
|
1739
|
+
name: string;
|
|
1740
|
+
avatar: string;
|
|
1741
|
+
roomId: string;
|
|
1742
|
+
lastActivityAt: string | null;
|
|
1743
|
+
};
|
|
1744
|
+
type OfficeMember = {
|
|
1745
|
+
id: string;
|
|
1746
|
+
name: string;
|
|
1747
|
+
profileImageUrl: string | null;
|
|
1748
|
+
role: string;
|
|
1749
|
+
lastActivityAt: string | null;
|
|
1750
|
+
};
|
|
1751
|
+
type OfficeSnapshot = {
|
|
1752
|
+
team: string;
|
|
1753
|
+
generatedAt: string;
|
|
1754
|
+
agents: OfficeAgent[];
|
|
1755
|
+
members: OfficeMember[];
|
|
1756
|
+
};
|
|
1079
1757
|
//#endregion
|
|
1758
|
+
//#region src/project/types.d.ts
|
|
1759
|
+
type ProjectStatus = 'draft' | 'planned' | 'render-ready' | 'rendered' | 'composed' | 'exported';
|
|
1760
|
+
type ProjectOutputPreset = '9:16 social' | '16:9 launch' | '1:1 square teaser';
|
|
1761
|
+
type ProjectOutputType = 'video' | 'slideshow' | 'clips';
|
|
1762
|
+
type ProjectRenderMode = 'draft' | 'final';
|
|
1763
|
+
type ProjectAspectRatio = '16:9' | '9:16' | '1:1';
|
|
1764
|
+
type ProjectStudioStage = 'questions' | 'concept' | 'draft-ready' | 'source-processing' | 'candidates-ready';
|
|
1765
|
+
type ProjectSourceMedia = {
|
|
1766
|
+
id?: string | null;
|
|
1767
|
+
name?: string | null;
|
|
1768
|
+
mime?: string | null;
|
|
1769
|
+
url: string;
|
|
1770
|
+
};
|
|
1771
|
+
type ProjectTranscriptSegment = {
|
|
1772
|
+
id: string;
|
|
1773
|
+
startMs: number;
|
|
1774
|
+
endMs: number;
|
|
1775
|
+
text: string;
|
|
1776
|
+
};
|
|
1777
|
+
type ProjectTranscript = {
|
|
1778
|
+
text: string;
|
|
1779
|
+
language?: string | null;
|
|
1780
|
+
durationSeconds?: number | null;
|
|
1781
|
+
segments?: ProjectTranscriptSegment[];
|
|
1782
|
+
};
|
|
1783
|
+
type ProjectClipCandidate = {
|
|
1784
|
+
id: string;
|
|
1785
|
+
title: string;
|
|
1786
|
+
excerpt: string;
|
|
1787
|
+
startMs: number;
|
|
1788
|
+
endMs: number;
|
|
1789
|
+
durationMs: number;
|
|
1790
|
+
score: number;
|
|
1791
|
+
reason: string;
|
|
1792
|
+
platformFit?: string[] | null;
|
|
1793
|
+
selected?: boolean;
|
|
1794
|
+
viralityScore?: number | null;
|
|
1795
|
+
thumbnailUrl?: string | null;
|
|
1796
|
+
};
|
|
1797
|
+
type ProjectSelectedClip = {
|
|
1798
|
+
id: string;
|
|
1799
|
+
candidateId?: string | null;
|
|
1800
|
+
title: string;
|
|
1801
|
+
excerpt?: string | null;
|
|
1802
|
+
startMs: number;
|
|
1803
|
+
endMs: number;
|
|
1804
|
+
durationMs: number;
|
|
1805
|
+
captionsEnabled?: boolean;
|
|
1806
|
+
captionText?: string | null;
|
|
1807
|
+
viralityScore?: number | null;
|
|
1808
|
+
};
|
|
1809
|
+
type ProjectCaptionStyle = {
|
|
1810
|
+
preset?: 'bold' | 'subtitle' | 'minimal' | 'brand' | null;
|
|
1811
|
+
fontSize?: number | null;
|
|
1812
|
+
primaryColor?: string | null;
|
|
1813
|
+
highlightColor?: string | null;
|
|
1814
|
+
position?: 'bottom' | 'center' | null;
|
|
1815
|
+
};
|
|
1816
|
+
type ProjectClips = {
|
|
1817
|
+
sourceMedia?: ProjectSourceMedia[];
|
|
1818
|
+
sourceUrl?: string | null;
|
|
1819
|
+
transcript?: ProjectTranscript | null;
|
|
1820
|
+
candidates?: ProjectClipCandidate[];
|
|
1821
|
+
selected?: ProjectSelectedClip[];
|
|
1822
|
+
captionStyle?: ProjectCaptionStyle | null;
|
|
1823
|
+
targetLanguage?: string | null;
|
|
1824
|
+
};
|
|
1825
|
+
type ProjectStudioHistoryEntry = {
|
|
1826
|
+
role: 'user' | 'assistant';
|
|
1827
|
+
content: string;
|
|
1828
|
+
};
|
|
1829
|
+
type ProjectStudioQuestion = {
|
|
1830
|
+
id: string;
|
|
1831
|
+
question: string;
|
|
1832
|
+
rationale?: string | null;
|
|
1833
|
+
placeholder?: string | null;
|
|
1834
|
+
};
|
|
1835
|
+
type ProjectStyleDirection = {
|
|
1836
|
+
id: string;
|
|
1837
|
+
title: string;
|
|
1838
|
+
summary: string;
|
|
1839
|
+
lookAndFeel: string;
|
|
1840
|
+
hook?: string | null;
|
|
1841
|
+
cta?: string | null;
|
|
1842
|
+
promptSeed: string;
|
|
1843
|
+
previewMedia?: Array<Record<string, any>>;
|
|
1844
|
+
};
|
|
1845
|
+
type ProjectStudioSummary = {
|
|
1846
|
+
name: string;
|
|
1847
|
+
shortSummary: string;
|
|
1848
|
+
brief: string;
|
|
1849
|
+
platformStrategy?: string | null;
|
|
1850
|
+
outputPreset: ProjectOutputPreset;
|
|
1851
|
+
targetPlatforms: string[];
|
|
1852
|
+
hook?: string | null;
|
|
1853
|
+
voiceover?: string | null;
|
|
1854
|
+
cta?: string | null;
|
|
1855
|
+
};
|
|
1856
|
+
type ProjectStudioState = {
|
|
1857
|
+
stage: ProjectStudioStage;
|
|
1858
|
+
assistantReply?: string | null;
|
|
1859
|
+
questions?: ProjectStudioQuestion[];
|
|
1860
|
+
summary?: ProjectStudioSummary | null;
|
|
1861
|
+
styleDirections?: ProjectStyleDirection[];
|
|
1862
|
+
autoSelectedSkills?: Array<{
|
|
1863
|
+
id: string;
|
|
1864
|
+
name: string;
|
|
1865
|
+
type: string | null;
|
|
1866
|
+
}>;
|
|
1867
|
+
conversation?: ProjectStudioHistoryEntry[];
|
|
1868
|
+
updatedAt?: string | null;
|
|
1869
|
+
};
|
|
1870
|
+
type ProjectShot = {
|
|
1871
|
+
title?: string | null;
|
|
1872
|
+
subjectContext?: string | null;
|
|
1873
|
+
action?: string | null;
|
|
1874
|
+
style?: string | null;
|
|
1875
|
+
camera?: string | null;
|
|
1876
|
+
composition?: string | null;
|
|
1877
|
+
lensFocus?: string | null;
|
|
1878
|
+
ambiance?: string | null;
|
|
1879
|
+
audioCues?: string | null;
|
|
1880
|
+
dialogue?: string | null;
|
|
1881
|
+
negativePrompt?: string | null;
|
|
1882
|
+
platformConstraints?: string | null;
|
|
1883
|
+
durationSeconds?: 4 | 6 | 8 | null;
|
|
1884
|
+
aspectRatio?: ProjectAspectRatio | null;
|
|
1885
|
+
renderMode?: ProjectRenderMode | null;
|
|
1886
|
+
prompt?: string;
|
|
1887
|
+
model?: string;
|
|
1888
|
+
mode?: string;
|
|
1889
|
+
referenceImages?: Array<Record<string, any>>;
|
|
1890
|
+
firstFrame?: Record<string, any> | null;
|
|
1891
|
+
lastFrame?: Record<string, any> | null;
|
|
1892
|
+
motionReference?: Record<string, any> | null;
|
|
1893
|
+
};
|
|
1894
|
+
type Project = {
|
|
1895
|
+
id: string;
|
|
1896
|
+
name: string;
|
|
1897
|
+
status: ProjectStatus;
|
|
1898
|
+
brief: string | null;
|
|
1899
|
+
outputPreset: ProjectOutputPreset;
|
|
1900
|
+
outputType: ProjectOutputType;
|
|
1901
|
+
selectedSkills: string[];
|
|
1902
|
+
targetPlatforms: string[];
|
|
1903
|
+
script: Record<string, any> | null;
|
|
1904
|
+
storyboard: ProjectShot[];
|
|
1905
|
+
referenceImages: Array<Record<string, any>>;
|
|
1906
|
+
clips?: ProjectClips | null;
|
|
1907
|
+
generatedImages: Array<Record<string, any>>;
|
|
1908
|
+
generatedVideos: Array<Record<string, any>>;
|
|
1909
|
+
generatedAudio: Array<Record<string, any>>;
|
|
1910
|
+
assembly: Record<string, any> | null;
|
|
1911
|
+
soundtrack: Record<string, any> | null;
|
|
1912
|
+
finalAsset: Record<string, any> | null;
|
|
1913
|
+
nsfw: boolean;
|
|
1914
|
+
studioState?: ProjectStudioState | null;
|
|
1915
|
+
revisions: Array<Record<string, any>>;
|
|
1916
|
+
elements: Element[];
|
|
1917
|
+
latestExport?: ProjectExport | null;
|
|
1918
|
+
team: string | null;
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
updatedAt: string;
|
|
1921
|
+
};
|
|
1922
|
+
type ProjectMutation = Partial<Pick<Project, 'name' | 'brief' | 'status' | 'outputPreset' | 'outputType' | 'selectedSkills' | 'targetPlatforms' | 'storyboard' | 'assembly' | 'soundtrack' | 'finalAsset' | 'referenceImages' | 'clips' | 'generatedImages' | 'generatedVideos' | 'generatedAudio' | 'nsfw' | 'studioState'>> & {
|
|
1923
|
+
script?: Record<string, any> | null;
|
|
1924
|
+
outputAssets?: Record<string, any> | null;
|
|
1925
|
+
};
|
|
1926
|
+
type ProjectExportAsset = {
|
|
1927
|
+
id: string;
|
|
1928
|
+
url: string;
|
|
1929
|
+
name: string;
|
|
1930
|
+
mimeType: string;
|
|
1931
|
+
thumbnailUrl?: string | null;
|
|
1932
|
+
};
|
|
1933
|
+
type ProjectExport = {
|
|
1934
|
+
uuid: string;
|
|
1935
|
+
name: string;
|
|
1936
|
+
assets: ProjectExportAsset[];
|
|
1937
|
+
script: Record<string, any> | null;
|
|
1938
|
+
clientName: string | null;
|
|
1939
|
+
message: string | null;
|
|
1940
|
+
views: number;
|
|
1941
|
+
expiresAt: string | null;
|
|
1942
|
+
url: string;
|
|
1943
|
+
createdAt: string;
|
|
1944
|
+
};
|
|
1945
|
+
type ProjectExportResponse = {
|
|
1946
|
+
project: Project;
|
|
1947
|
+
export: ProjectExport;
|
|
1948
|
+
exportUrl: string;
|
|
1949
|
+
};
|
|
1950
|
+
type ProjectInputAssistIntent = 'clarify' | 'shorten' | 'cinematic' | 'structure';
|
|
1951
|
+
type ProjectInputAssistResponse = {
|
|
1952
|
+
label: string;
|
|
1953
|
+
rationale?: string | null;
|
|
1954
|
+
text: string;
|
|
1955
|
+
}; //#endregion
|
|
1080
1956
|
//#region src/reminder/types.d.ts
|
|
1081
1957
|
type Reminder = {
|
|
1082
1958
|
id: string;
|
|
@@ -1086,7 +1962,17 @@ type Reminder = {
|
|
|
1086
1962
|
createdAt: string;
|
|
1087
1963
|
}; //#endregion
|
|
1088
1964
|
//#region src/shortcut/types.d.ts
|
|
1089
|
-
|
|
1965
|
+
type Shortcut = {
|
|
1966
|
+
id: string;
|
|
1967
|
+
name: string;
|
|
1968
|
+
description: string | null;
|
|
1969
|
+
warp: string;
|
|
1970
|
+
inputs: string[];
|
|
1971
|
+
chat: boolean;
|
|
1972
|
+
tag: boolean;
|
|
1973
|
+
createdAt: string;
|
|
1974
|
+
agent: Agent | null;
|
|
1975
|
+
}; //#endregion
|
|
1090
1976
|
//#region src/site/types.d.ts
|
|
1091
1977
|
type SiteTeam = {
|
|
1092
1978
|
name: string;
|
|
@@ -1103,7 +1989,7 @@ type Site = {
|
|
|
1103
1989
|
enabled: boolean;
|
|
1104
1990
|
team: SiteTeam | null;
|
|
1105
1991
|
agent: SiteAgent | null;
|
|
1106
|
-
settings: Record<string,
|
|
1992
|
+
settings: Record<string, JsonValue>;
|
|
1107
1993
|
};
|
|
1108
1994
|
type SiteRoute = {
|
|
1109
1995
|
path: string;
|
|
@@ -1121,6 +2007,37 @@ type BrandSiteConfig = {
|
|
|
1121
2007
|
logoUrl?: string | null;
|
|
1122
2008
|
};
|
|
1123
2009
|
//#endregion
|
|
2010
|
+
//#region src/stats/types.d.ts
|
|
2011
|
+
type UserStats = {
|
|
2012
|
+
totalMessages: number;
|
|
2013
|
+
totalWarpsExecuted: number;
|
|
2014
|
+
totalTasksExecuted: number;
|
|
2015
|
+
totalChallengesCompleted: number;
|
|
2016
|
+
timeSaved: {
|
|
2017
|
+
seconds: number;
|
|
2018
|
+
formatted: string;
|
|
2019
|
+
};
|
|
2020
|
+
avgResponseTime: {
|
|
2021
|
+
seconds: number;
|
|
2022
|
+
formatted: string;
|
|
2023
|
+
};
|
|
2024
|
+
streak: Streak;
|
|
2025
|
+
};
|
|
2026
|
+
type Streak = {
|
|
2027
|
+
current: number;
|
|
2028
|
+
longest: number;
|
|
2029
|
+
multiplier: number;
|
|
2030
|
+
freezesAvailable: number;
|
|
2031
|
+
}; //#endregion
|
|
2032
|
+
//#region src/stats-store/types.d.ts
|
|
2033
|
+
type GamificationData = {
|
|
2034
|
+
stats: UserStats;
|
|
2035
|
+
experience: Experience;
|
|
2036
|
+
challenges: Challenges;
|
|
2037
|
+
achievements: Achievement[];
|
|
2038
|
+
recentExperiences: RecentExperience[];
|
|
2039
|
+
nextMilestones: Milestone[];
|
|
2040
|
+
}; //#endregion
|
|
1124
2041
|
//#region src/link/types.d.ts
|
|
1125
2042
|
type LinkScanHistory = {
|
|
1126
2043
|
daily: number[];
|
|
@@ -1179,6 +2096,114 @@ type LinkStats = {
|
|
|
1179
2096
|
totalScans: number;
|
|
1180
2097
|
scanHistory: LinkScanHistory;
|
|
1181
2098
|
}; //#endregion
|
|
2099
|
+
//#region src/loyalty/types.d.ts
|
|
2100
|
+
type ProgramSettings = {
|
|
2101
|
+
point_name?: string;
|
|
2102
|
+
'accrual.type'?: string;
|
|
2103
|
+
'accrual.value'?: number;
|
|
2104
|
+
'accrual.min_spend_cents'?: number;
|
|
2105
|
+
'accrual.exempt_items'?: string[];
|
|
2106
|
+
'points.expire_months'?: number | null;
|
|
2107
|
+
};
|
|
2108
|
+
type LoyaltyProgram = {
|
|
2109
|
+
name: string;
|
|
2110
|
+
active: boolean;
|
|
2111
|
+
settings: ProgramSettings;
|
|
2112
|
+
rewardCount: number;
|
|
2113
|
+
tierCount: number;
|
|
2114
|
+
memberCount: number;
|
|
2115
|
+
};
|
|
2116
|
+
type LoyaltyReward = {
|
|
2117
|
+
id: string;
|
|
2118
|
+
type: string;
|
|
2119
|
+
name: string;
|
|
2120
|
+
pointsCost: number;
|
|
2121
|
+
config: Record<string, JsonValue> | null;
|
|
2122
|
+
sortOrder: number;
|
|
2123
|
+
};
|
|
2124
|
+
type LoyaltyTier = {
|
|
2125
|
+
id: string;
|
|
2126
|
+
name: string;
|
|
2127
|
+
minPoints: number;
|
|
2128
|
+
pointsMultiplier: number;
|
|
2129
|
+
color: string | null;
|
|
2130
|
+
benefits: {
|
|
2131
|
+
type: string;
|
|
2132
|
+
label: string;
|
|
2133
|
+
}[] | null;
|
|
2134
|
+
};
|
|
2135
|
+
type LoyaltyPromotion = {
|
|
2136
|
+
id: string;
|
|
2137
|
+
name: string;
|
|
2138
|
+
type: string;
|
|
2139
|
+
value: number;
|
|
2140
|
+
startsAt: string;
|
|
2141
|
+
endsAt: string;
|
|
2142
|
+
minSpendCents: number | null;
|
|
2143
|
+
active: boolean;
|
|
2144
|
+
};
|
|
2145
|
+
type LoyaltyTierInfo = {
|
|
2146
|
+
name: string;
|
|
2147
|
+
multiplier: number;
|
|
2148
|
+
benefits?: {
|
|
2149
|
+
type: string;
|
|
2150
|
+
label: string;
|
|
2151
|
+
}[];
|
|
2152
|
+
};
|
|
2153
|
+
type LoyaltyNextTier = {
|
|
2154
|
+
name: string;
|
|
2155
|
+
pointsNeeded: number;
|
|
2156
|
+
multiplier: number;
|
|
2157
|
+
};
|
|
2158
|
+
type LoyaltyStatus = {
|
|
2159
|
+
contactName: string;
|
|
2160
|
+
points: number;
|
|
2161
|
+
lifetimePoints: number;
|
|
2162
|
+
tier: LoyaltyTierInfo | null;
|
|
2163
|
+
nextTier: LoyaltyNextTier | null;
|
|
2164
|
+
rewardReady: boolean;
|
|
2165
|
+
};
|
|
2166
|
+
type LoyaltyAccount = {
|
|
2167
|
+
contact: Contact;
|
|
2168
|
+
points: number;
|
|
2169
|
+
lifetimePoints: number;
|
|
2170
|
+
tier: {
|
|
2171
|
+
name: string;
|
|
2172
|
+
multiplier: number;
|
|
2173
|
+
} | null;
|
|
2174
|
+
status: LoyaltyStatus | null;
|
|
2175
|
+
};
|
|
2176
|
+
type LoyaltyTransaction = {
|
|
2177
|
+
id: string;
|
|
2178
|
+
type: string;
|
|
2179
|
+
points: number;
|
|
2180
|
+
balanceAfter: number;
|
|
2181
|
+
description: string | null;
|
|
2182
|
+
createdAt: string;
|
|
2183
|
+
};
|
|
2184
|
+
type EarnResponse = {
|
|
2185
|
+
contactName: string;
|
|
2186
|
+
points: number;
|
|
2187
|
+
totalPoints: number;
|
|
2188
|
+
tierName?: string;
|
|
2189
|
+
multiplier?: number;
|
|
2190
|
+
};
|
|
2191
|
+
type RedeemResponse = {
|
|
2192
|
+
rewardName: string;
|
|
2193
|
+
rewardType: string;
|
|
2194
|
+
pointsCost: number;
|
|
2195
|
+
remainingPoints: number;
|
|
2196
|
+
discountConfig?: JsonValue;
|
|
2197
|
+
};
|
|
2198
|
+
type LoyaltyMember = {
|
|
2199
|
+
id: string;
|
|
2200
|
+
contactId: string;
|
|
2201
|
+
contactName: string;
|
|
2202
|
+
points: number;
|
|
2203
|
+
lifetimePoints: number;
|
|
2204
|
+
tier: string | null;
|
|
2205
|
+
updatedAt: string;
|
|
2206
|
+
}; //#endregion
|
|
1182
2207
|
//#region src/store/types.d.ts
|
|
1183
2208
|
type StoreVisibility = 'private' | 'team' | 'public';
|
|
1184
2209
|
type StoreEntry = {
|
|
@@ -1241,31 +2266,190 @@ type Update = {
|
|
|
1241
2266
|
team?: Team;
|
|
1242
2267
|
createdAt: string;
|
|
1243
2268
|
updatedAt: string;
|
|
1244
|
-
};
|
|
1245
|
-
type UpdateCreatePayload = {
|
|
1246
|
-
title: string;
|
|
1247
|
-
type: UpdateType;
|
|
1248
|
-
body?: string;
|
|
1249
|
-
imageUrl?: string;
|
|
1250
|
-
media?: MediaLibraryItems;
|
|
1251
|
-
linkUrl?: string;
|
|
1252
|
-
startsAt?: string;
|
|
1253
|
-
endsAt?: string;
|
|
1254
|
-
status?: UpdateStatus;
|
|
1255
|
-
};
|
|
1256
|
-
type UpdateUpdatePayload = Partial<UpdateCreatePayload>;
|
|
1257
|
-
type UpdateStats = {
|
|
1258
|
-
totalUpdates: number;
|
|
1259
|
-
activeUpdates: number;
|
|
1260
|
-
dealsCount: number;
|
|
1261
|
-
eventsCount: number;
|
|
1262
|
-
newsCount: number;
|
|
1263
|
-
publishedCount: number;
|
|
1264
|
-
draftCount: number;
|
|
1265
|
-
archivedCount: number;
|
|
1266
|
-
creationHistory: number[];
|
|
2269
|
+
};
|
|
2270
|
+
type UpdateCreatePayload = {
|
|
2271
|
+
title: string;
|
|
2272
|
+
type: UpdateType;
|
|
2273
|
+
body?: string;
|
|
2274
|
+
imageUrl?: string;
|
|
2275
|
+
media?: MediaLibraryItems;
|
|
2276
|
+
linkUrl?: string;
|
|
2277
|
+
startsAt?: string;
|
|
2278
|
+
endsAt?: string;
|
|
2279
|
+
status?: UpdateStatus;
|
|
2280
|
+
};
|
|
2281
|
+
type UpdateUpdatePayload = Partial<UpdateCreatePayload>;
|
|
2282
|
+
type UpdateStats = {
|
|
2283
|
+
totalUpdates: number;
|
|
2284
|
+
activeUpdates: number;
|
|
2285
|
+
dealsCount: number;
|
|
2286
|
+
eventsCount: number;
|
|
2287
|
+
newsCount: number;
|
|
2288
|
+
publishedCount: number;
|
|
2289
|
+
draftCount: number;
|
|
2290
|
+
archivedCount: number;
|
|
2291
|
+
creationHistory: number[];
|
|
2292
|
+
}; //#endregion
|
|
2293
|
+
//#region src/upgrade/types.d.ts
|
|
2294
|
+
type UpgradeStatus = 'Pending' | 'Accepted' | 'Rejected';
|
|
2295
|
+
type UpgradeSourceType = 'Agent' | 'Marketplace';
|
|
2296
|
+
type Upgrade = {
|
|
2297
|
+
id: string;
|
|
2298
|
+
entityType: string;
|
|
2299
|
+
sourceType: UpgradeSourceType;
|
|
2300
|
+
agentUuid: string | null;
|
|
2301
|
+
originalContent: string | null;
|
|
2302
|
+
proposedContent: string;
|
|
2303
|
+
status: UpgradeStatus;
|
|
2304
|
+
changeReason: string | null;
|
|
2305
|
+
diff: {
|
|
2306
|
+
original: string;
|
|
2307
|
+
proposed: string;
|
|
2308
|
+
hasChanges: boolean;
|
|
2309
|
+
};
|
|
2310
|
+
proposedAt: string;
|
|
2311
|
+
respondedAt: string | null;
|
|
2312
|
+
}; //#endregion
|
|
2313
|
+
//#region src/swarm/types.d.ts
|
|
2314
|
+
type Swarm = {
|
|
2315
|
+
id: string;
|
|
2316
|
+
chain: WarpChainInfo;
|
|
2317
|
+
extId: string;
|
|
2318
|
+
entity?: Entity;
|
|
2319
|
+
room: Room;
|
|
2320
|
+
createdAt: string;
|
|
2321
|
+
users: User[];
|
|
2322
|
+
agents: AgentPrivate[];
|
|
2323
|
+
};
|
|
2324
|
+
//#endregion
|
|
2325
|
+
//#region src/task/types.d.ts
|
|
2326
|
+
type Task = {
|
|
2327
|
+
id: string;
|
|
2328
|
+
cronExpression: string | null;
|
|
2329
|
+
room: Room;
|
|
2330
|
+
warp: string;
|
|
2331
|
+
active: boolean;
|
|
2332
|
+
lastRunAt: string | null;
|
|
2333
|
+
startsAt: string | null;
|
|
2334
|
+
endsAt: string | null;
|
|
2335
|
+
maxRuns: number | null;
|
|
2336
|
+
runs: number;
|
|
2337
|
+
createdAt: string;
|
|
2338
|
+
agent: Agent | null;
|
|
2339
|
+
inputs: Record<string, string> | null;
|
|
2340
|
+
};
|
|
2341
|
+
//#endregion
|
|
2342
|
+
//#region src/warp-webhooks/types.d.ts
|
|
2343
|
+
type AgentWebhookTriggerCondition = {
|
|
2344
|
+
path: string;
|
|
2345
|
+
operator: 'exists' | 'equals' | 'contains' | 'not_contains';
|
|
2346
|
+
value?: unknown;
|
|
2347
|
+
};
|
|
2348
|
+
type AgentWebhookTriggerInput = string | {
|
|
2349
|
+
source: 'payload';
|
|
2350
|
+
path: string;
|
|
2351
|
+
} | {
|
|
2352
|
+
source: 'literal';
|
|
2353
|
+
value: unknown;
|
|
2354
|
+
};
|
|
2355
|
+
type AgentWebhookTrigger = {
|
|
2356
|
+
event?: string;
|
|
2357
|
+
contract?: string;
|
|
2358
|
+
when?: AgentWebhookTriggerCondition[];
|
|
2359
|
+
inputs?: Record<string, AgentWebhookTriggerInput>;
|
|
2360
|
+
};
|
|
2361
|
+
type AgentWebhookWarp = {
|
|
2362
|
+
id: number;
|
|
2363
|
+
source: string;
|
|
2364
|
+
event?: string | null;
|
|
2365
|
+
contract?: string | null;
|
|
2366
|
+
next: string;
|
|
2367
|
+
active: boolean;
|
|
2368
|
+
managed: boolean;
|
|
2369
|
+
trigger?: AgentWebhookTrigger | null;
|
|
2370
|
+
warpIdentifier: string | null;
|
|
2371
|
+
createdAt: string;
|
|
2372
|
+
};
|
|
2373
|
+
type ActivateAgentWebhookWarpPayload = {
|
|
2374
|
+
warpIdentifier: string;
|
|
2375
|
+
source?: 'internal';
|
|
2376
|
+
trigger?: AgentWebhookTrigger;
|
|
2377
|
+
}; //#endregion
|
|
2378
|
+
//#region src/webhook/types.d.ts
|
|
2379
|
+
type WebhookTriggerEvent = 'agent.action' | 'agent.message' | 'user.message';
|
|
2380
|
+
type Webhook = {
|
|
2381
|
+
id: string;
|
|
2382
|
+
name: string;
|
|
2383
|
+
url: string;
|
|
2384
|
+
trigger: WebhookTriggerEvent;
|
|
2385
|
+
headers: Record<string, string>;
|
|
2386
|
+
description: string | null;
|
|
2387
|
+
active: boolean;
|
|
2388
|
+
verifySsl: boolean;
|
|
2389
|
+
timeout: number;
|
|
2390
|
+
maxRetries: number;
|
|
2391
|
+
lastTriggeredAt: string | null;
|
|
2392
|
+
createdAt: string;
|
|
2393
|
+
updatedAt: string;
|
|
2394
|
+
webhookableType: string;
|
|
2395
|
+
webhookable?: {
|
|
2396
|
+
type: string;
|
|
2397
|
+
uuid: string;
|
|
2398
|
+
name: string;
|
|
2399
|
+
};
|
|
1267
2400
|
}; //#endregion
|
|
1268
|
-
//#region src/
|
|
2401
|
+
//#region src/workspace/types.d.ts
|
|
2402
|
+
//#endregion
|
|
2403
|
+
//#region src/resources/agents.d.ts
|
|
2404
|
+
declare class AgentsResource {
|
|
2405
|
+
private readonly http;
|
|
2406
|
+
constructor(http: IHttpService);
|
|
2407
|
+
list(team?: string): Promise<IAppResponse<AgentPrivate[]>>;
|
|
2408
|
+
get(uuid: string): Promise<MarketplaceAgent | null>;
|
|
2409
|
+
create(params: {
|
|
2410
|
+
team: string;
|
|
2411
|
+
name: string;
|
|
2412
|
+
wallets?: any;
|
|
2413
|
+
settings?: {
|
|
2414
|
+
trainingUrl?: string | null;
|
|
2415
|
+
};
|
|
2416
|
+
}): Promise<IAppResponse<AgentPrivate>>;
|
|
2417
|
+
update(uuid: string, name: string, description: string | null, avatar?: MediaLibraryItems): Promise<IAppResponse<AgentPrivate>>;
|
|
2418
|
+
delete(uuid: string): Promise<IAppResponse<void>>;
|
|
2419
|
+
updatePassword(uuid: string, password: string): Promise<IAppResponse<void>>;
|
|
2420
|
+
storePassword(uuid: string, password: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2421
|
+
updateSetting(uuid: string, key: keyof AgentSettings, value: boolean | string | number | string[] | null): Promise<IAppResponse<AgentPrivate>>;
|
|
2422
|
+
updateMeta(uuid: string, key: string, value: Record<string, unknown> | null): Promise<IAppResponse<AgentPrivate>>;
|
|
2423
|
+
publish(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2424
|
+
unpublish(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2425
|
+
moveToTeam(uuid: string, teamSlug: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2426
|
+
getActions(uuid: string, page?: number): Promise<IAppResponse<AgentActionHistoryEntry[]>>;
|
|
2427
|
+
provisionPhone(uuid: string): Promise<IAppResponse<AgentPrivate>>;
|
|
2428
|
+
execute(agentUuid: string, payload: {
|
|
2429
|
+
sender: string;
|
|
2430
|
+
room: string;
|
|
2431
|
+
message: string;
|
|
2432
|
+
audio?: File;
|
|
2433
|
+
media?: Media[];
|
|
2434
|
+
ghost?: boolean;
|
|
2435
|
+
context?: Record<string, unknown>;
|
|
2436
|
+
}): Promise<IAppResponse<unknown>>;
|
|
2437
|
+
actionCallback(agent: string, room: string, action: string, result: {
|
|
2438
|
+
success: boolean;
|
|
2439
|
+
output?: string;
|
|
2440
|
+
error?: string;
|
|
2441
|
+
meta?: Record<string, any>;
|
|
2442
|
+
}): Promise<IAppResponse<unknown>>;
|
|
2443
|
+
}
|
|
2444
|
+
//#endregion
|
|
2445
|
+
//#region src/resources/alerts.d.ts
|
|
2446
|
+
declare class AlertsResource {
|
|
2447
|
+
private readonly http;
|
|
2448
|
+
constructor(http: IHttpService);
|
|
2449
|
+
list(agent: string, page?: number): Promise<IAppResponse<Alert[]>>;
|
|
2450
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2451
|
+
toggle(id: string): Promise<IAppResponse<Alert>>;
|
|
2452
|
+
}
|
|
1269
2453
|
//#endregion
|
|
1270
2454
|
//#region src/resources/appointments.d.ts
|
|
1271
2455
|
declare const WEEKDAYS: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
@@ -1317,7 +2501,7 @@ declare class AppointmentsResource {
|
|
|
1317
2501
|
}[];
|
|
1318
2502
|
serviceSlug?: string;
|
|
1319
2503
|
appointmentRequestId?: string;
|
|
1320
|
-
configuration?:
|
|
2504
|
+
configuration?: Configuration;
|
|
1321
2505
|
}): Promise<IAppResponse<AppointmentBooking>>;
|
|
1322
2506
|
reschedule(agentUuid: string, meetingId: string, data: {
|
|
1323
2507
|
scheduledAt: string;
|
|
@@ -1341,27 +2525,16 @@ declare class AppointmentsResource {
|
|
|
1341
2525
|
end: string;
|
|
1342
2526
|
}[];
|
|
1343
2527
|
serviceSlug?: string;
|
|
1344
|
-
configuration?:
|
|
2528
|
+
configuration?: Configuration;
|
|
1345
2529
|
}): Promise<IAppResponse<AppointmentRequest>>;
|
|
1346
2530
|
updateRequest(agentUuid: string, requestId: string, data: {
|
|
1347
2531
|
status?: string;
|
|
1348
2532
|
notes?: string;
|
|
1349
2533
|
failureReason?: string;
|
|
2534
|
+
configuration?: Configuration;
|
|
1350
2535
|
}): Promise<IAppResponse<AppointmentRequest>>;
|
|
1351
2536
|
}
|
|
1352
2537
|
//#endregion
|
|
1353
|
-
//#region src/resources/agents.d.ts
|
|
1354
|
-
declare class AgentsResource {
|
|
1355
|
-
private readonly http;
|
|
1356
|
-
constructor(http: IHttpService);
|
|
1357
|
-
list(): Promise<IAppResponse<AgentPrivate[]>>;
|
|
1358
|
-
get(uuid: string): Promise<MarketplaceAgent | null>;
|
|
1359
|
-
execute(agentUuid: string, payload: {
|
|
1360
|
-
room: string;
|
|
1361
|
-
message?: string;
|
|
1362
|
-
}): Promise<IAppResponse<unknown>>;
|
|
1363
|
-
}
|
|
1364
|
-
//#endregion
|
|
1365
2538
|
//#region src/resources/auth.d.ts
|
|
1366
2539
|
type AuthSendCodeRequest = {
|
|
1367
2540
|
name: string;
|
|
@@ -1371,112 +2544,132 @@ type AuthSendCodeRequest = {
|
|
|
1371
2544
|
table?: string;
|
|
1372
2545
|
};
|
|
1373
2546
|
type AuthVerifyResponse = {
|
|
1374
|
-
user:
|
|
1375
|
-
id: string;
|
|
1376
|
-
name: string;
|
|
1377
|
-
phone: string | null;
|
|
1378
|
-
email: string | null;
|
|
1379
|
-
};
|
|
2547
|
+
user: AuthUser;
|
|
1380
2548
|
team: {
|
|
1381
2549
|
slug: string;
|
|
1382
2550
|
name: string;
|
|
1383
2551
|
} | null;
|
|
1384
|
-
contact:
|
|
1385
|
-
id: string;
|
|
1386
|
-
name: string;
|
|
1387
|
-
phone: string | null;
|
|
1388
|
-
email: string | null;
|
|
1389
|
-
} | null;
|
|
2552
|
+
contact: AuthUser | null;
|
|
1390
2553
|
table: string | null;
|
|
1391
2554
|
};
|
|
2555
|
+
type AuthApiTokenResponse = {
|
|
2556
|
+
plainTextToken: string;
|
|
2557
|
+
};
|
|
2558
|
+
type AuthLoginResponse = {
|
|
2559
|
+
user: UserPrivate | null;
|
|
2560
|
+
token: string | null;
|
|
2561
|
+
};
|
|
1392
2562
|
declare class AuthResource {
|
|
1393
2563
|
private http;
|
|
1394
2564
|
constructor(http: IHttpService);
|
|
1395
2565
|
sendCode(data: AuthSendCodeRequest): Promise<IAppResponse<void>>;
|
|
2566
|
+
requestEmail(email: string, redirect?: string): Promise<IAppResponse<AuthLoginResponse>>;
|
|
2567
|
+
loginWithSocialAccessToken(provider: SocialAuthProvider, accessToken: string): Promise<IAppResponse<AuthLoginResponse>>;
|
|
1396
2568
|
verify(token: string): Promise<IAppResponse<AuthVerifyResponse>>;
|
|
1397
|
-
me(): Promise<IAppResponse<
|
|
1398
|
-
id: string;
|
|
1399
|
-
name: string;
|
|
1400
|
-
phone: string | null;
|
|
1401
|
-
email: string | null;
|
|
1402
|
-
}>>;
|
|
2569
|
+
me(): Promise<IAppResponse<AuthUser>>;
|
|
1403
2570
|
logout(): Promise<IAppResponse<void>>;
|
|
2571
|
+
createApiToken(): Promise<IAppResponse<AuthApiTokenResponse>>;
|
|
2572
|
+
verifyWallet(accessToken: string, withMobileApiToken?: boolean): Promise<IAppResponse<UserPrivate>>;
|
|
1404
2573
|
}
|
|
1405
2574
|
//#endregion
|
|
1406
|
-
//#region src/resources/
|
|
1407
|
-
declare class
|
|
2575
|
+
//#region src/resources/billing-addresses.d.ts
|
|
2576
|
+
declare class BillingAddressesResource {
|
|
1408
2577
|
private readonly http;
|
|
1409
2578
|
constructor(http: IHttpService);
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
2579
|
+
get(contact?: string, team?: string): Promise<IAppResponse<BillingAddress | null>>;
|
|
2580
|
+
store(data: {
|
|
2581
|
+
name: string;
|
|
2582
|
+
addressOne?: string;
|
|
2583
|
+
city?: string;
|
|
2584
|
+
state?: string;
|
|
2585
|
+
zipCode?: string;
|
|
2586
|
+
country: string;
|
|
2587
|
+
vatId?: string;
|
|
2588
|
+
contact?: string;
|
|
2589
|
+
team?: string;
|
|
2590
|
+
}): Promise<IAppResponse<BillingAddress>>;
|
|
1415
2591
|
}
|
|
1416
2592
|
//#endregion
|
|
1417
|
-
//#region src/resources/
|
|
1418
|
-
|
|
2593
|
+
//#region src/resources/billing.d.ts
|
|
2594
|
+
type IapReceipt = {
|
|
2595
|
+
productId: string;
|
|
2596
|
+
receipt: string;
|
|
2597
|
+
platform: 'ios' | 'android';
|
|
2598
|
+
};
|
|
2599
|
+
declare class BillingResource {
|
|
1419
2600
|
private readonly http;
|
|
1420
2601
|
constructor(http: IHttpService);
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
applyCoupon(code: string): Promise<IAppResponse<{
|
|
1427
|
-
ok: boolean;
|
|
2602
|
+
plans(type?: 'current' | 'all'): Promise<IAppResponse<Plan[]>>;
|
|
2603
|
+
checkoutProduct(id: string): Promise<IAppResponse<Product>>;
|
|
2604
|
+
orders(team: TeamPrivate | null, page?: number, contactId?: string): Promise<IAppResponse<Order[]>>;
|
|
2605
|
+
payOrder(id: string, provider: string): Promise<IAppResponse<{
|
|
2606
|
+
url: string;
|
|
1428
2607
|
}>>;
|
|
2608
|
+
deleteOrder(id: string): Promise<IAppResponse<void>>;
|
|
2609
|
+
paymentAccount(team: string, provider: string): Promise<IAppResponse<PaymentAccount>>;
|
|
2610
|
+
createPaymentAccountOnboarding(team: string, provider: string): Promise<IAppResponse<PaymentAccountOnboarding>>;
|
|
2611
|
+
updatePaymentAccount(team: string, provider: string, input: {
|
|
2612
|
+
providerAccountId: string;
|
|
2613
|
+
chargesEnabled?: boolean;
|
|
2614
|
+
payoutsEnabled?: boolean;
|
|
2615
|
+
detailsSubmitted?: boolean;
|
|
2616
|
+
requirements?: string[];
|
|
2617
|
+
}): Promise<IAppResponse<PaymentAccount>>;
|
|
2618
|
+
createTerminalConnectionToken(team: string, provider: string): Promise<IAppResponse<TerminalConnectionToken>>;
|
|
2619
|
+
createTerminalPaymentIntent(orderId: string, provider: string): Promise<IAppResponse<TerminalPaymentIntent>>;
|
|
2620
|
+
captureTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
2621
|
+
cancelTerminalPaymentIntent(orderId: string, provider: string, paymentIntentId: string): Promise<IAppResponse<void>>;
|
|
2622
|
+
verifyIap(receipt: IapReceipt, team: string, meta?: Record<string, string>): Promise<IAppResponse<PurchaseResult>>;
|
|
1429
2623
|
}
|
|
1430
2624
|
//#endregion
|
|
1431
|
-
//#region src/resources/
|
|
1432
|
-
declare class
|
|
2625
|
+
//#region src/resources/blueprints.d.ts
|
|
2626
|
+
declare class BlueprintsResource {
|
|
1433
2627
|
private readonly http;
|
|
1434
2628
|
constructor(http: IHttpService);
|
|
1435
2629
|
list(params?: {
|
|
1436
|
-
locale?: string;
|
|
1437
2630
|
page?: number;
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
2631
|
+
size?: number;
|
|
2632
|
+
}): Promise<IAppResponse<Blueprint[]>>;
|
|
2633
|
+
get(slug: string, locale?: string): Promise<IAppResponse<Blueprint>>;
|
|
2634
|
+
create(data: {
|
|
2635
|
+
team: string;
|
|
2636
|
+
name: string;
|
|
2637
|
+
description: string | null;
|
|
2638
|
+
settings: BlueprintSettings;
|
|
2639
|
+
price?: number;
|
|
2640
|
+
}): Promise<IAppResponse<Blueprint>>;
|
|
2641
|
+
assemble(blueprint: string, team: string, name?: string): Promise<IAppResponse<AgentPrivate>>;
|
|
1447
2642
|
}
|
|
1448
2643
|
//#endregion
|
|
1449
|
-
//#region src/resources/
|
|
1450
|
-
declare class
|
|
2644
|
+
//#region src/resources/cards.d.ts
|
|
2645
|
+
declare class CardsResource {
|
|
1451
2646
|
private readonly http;
|
|
1452
2647
|
constructor(http: IHttpService);
|
|
1453
|
-
list(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
durationMinutes: number;
|
|
1459
|
-
category?: string;
|
|
1460
|
-
description?: string;
|
|
1461
|
-
digital?: boolean;
|
|
1462
|
-
public?: boolean;
|
|
1463
|
-
}): Promise<IAppResponse<Service>>;
|
|
1464
|
-
update(id: string, data: Partial<Pick<Service, 'name' | 'price' | 'durationMinutes' | 'category' | 'description' | 'active' | 'digital' | 'public'>>): Promise<IAppResponse<Service>>;
|
|
1465
|
-
delete(id: string): Promise<IAppResponse<unknown>>;
|
|
2648
|
+
list(agent: string): Promise<IAppResponse<Card[]>>;
|
|
2649
|
+
create(agent: string, warp: string, inputs?: string[]): Promise<IAppResponse<Card>>;
|
|
2650
|
+
update(id: string, warp: string, inputs?: string[]): Promise<IAppResponse<Card>>;
|
|
2651
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2652
|
+
toggle(id: string): Promise<IAppResponse<Card>>;
|
|
1466
2653
|
}
|
|
1467
2654
|
//#endregion
|
|
1468
|
-
//#region src/resources/
|
|
1469
|
-
declare class
|
|
2655
|
+
//#region src/resources/carts.d.ts
|
|
2656
|
+
declare class CartsResource {
|
|
1470
2657
|
private readonly http;
|
|
1471
2658
|
constructor(http: IHttpService);
|
|
1472
|
-
get(
|
|
2659
|
+
get(): Promise<IAppResponse<Cart>>;
|
|
2660
|
+
add(type: 'product' | 'service', id: string, quantity?: number, configuration?: Configuration): Promise<IAppResponse<Cart>>;
|
|
2661
|
+
remove(type: 'product' | 'service', id: string): Promise<IAppResponse<Cart>>;
|
|
2662
|
+
updateQuantity(type: 'product' | 'service', id: string, quantity: number): Promise<IAppResponse<Cart>>;
|
|
2663
|
+
clear(): Promise<IAppResponse<Cart>>;
|
|
2664
|
+
applyCoupon(code: string): Promise<IAppResponse<void>>;
|
|
1473
2665
|
}
|
|
1474
2666
|
//#endregion
|
|
1475
|
-
//#region src/resources/
|
|
1476
|
-
declare class
|
|
2667
|
+
//#region src/resources/changelog.d.ts
|
|
2668
|
+
declare class ChangelogResource {
|
|
1477
2669
|
private readonly http;
|
|
1478
2670
|
constructor(http: IHttpService);
|
|
1479
|
-
|
|
2671
|
+
get(locale: WarpLocale): Promise<IAppResponse<ChangelogEntry[]>>;
|
|
2672
|
+
subscribe(email: string): Promise<IAppResponse<void>>;
|
|
1480
2673
|
}
|
|
1481
2674
|
//#endregion
|
|
1482
2675
|
//#region src/resources/contacts.d.ts
|
|
@@ -1486,28 +2679,43 @@ declare class ContactsResource {
|
|
|
1486
2679
|
list(params?: {
|
|
1487
2680
|
search?: string;
|
|
1488
2681
|
page?: number;
|
|
1489
|
-
}): Promise<IAppResponse<
|
|
1490
|
-
data: Contact[];
|
|
1491
|
-
}>>;
|
|
2682
|
+
}): Promise<IAppResponse<Contact[]>>;
|
|
1492
2683
|
get(id: string): Promise<IAppResponse<Contact>>;
|
|
1493
|
-
create(payload:
|
|
1494
|
-
name: string;
|
|
1495
|
-
}): Promise<IAppResponse<Contact>>;
|
|
2684
|
+
create(payload: ContactCreatePayload): Promise<IAppResponse<Contact>>;
|
|
1496
2685
|
update(id: string, data: ContactFormData): Promise<IAppResponse<Contact>>;
|
|
1497
|
-
delete(id: string): Promise<IAppResponse<
|
|
2686
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
1498
2687
|
listActivities(id: string): Promise<IAppResponse<ContactActivity[]>>;
|
|
1499
|
-
getTimeline<T = Record<string,
|
|
2688
|
+
getTimeline<T = Record<string, JsonValue>>(id: string, page?: number): Promise<IAppResponse<PaginatedResponse<T>>>;
|
|
1500
2689
|
addActivity(id: string, data: {
|
|
1501
2690
|
type: ContactActivity['type'];
|
|
1502
2691
|
description?: string;
|
|
1503
|
-
meta?: Record<string,
|
|
2692
|
+
meta?: Record<string, JsonValue>;
|
|
1504
2693
|
}): Promise<IAppResponse<ContactActivity>>;
|
|
1505
2694
|
updateActivity(id: string, activityId: string, data: {
|
|
1506
2695
|
type?: ContactActivity['type'];
|
|
1507
2696
|
description?: string | null;
|
|
1508
|
-
meta?: Record<string,
|
|
2697
|
+
meta?: Record<string, JsonValue> | null;
|
|
1509
2698
|
}): Promise<IAppResponse<ContactActivity>>;
|
|
1510
|
-
deleteActivity(id: string, activityId: string): Promise<IAppResponse<
|
|
2699
|
+
deleteActivity(id: string, activityId: string): Promise<IAppResponse<void>>;
|
|
2700
|
+
send(id: string, message: string, integration?: IntegrationType | 'preferred'): Promise<IAppResponse<void>>;
|
|
2701
|
+
}
|
|
2702
|
+
//#endregion
|
|
2703
|
+
//#region src/resources/contracts.d.ts
|
|
2704
|
+
declare class ContractsResource {
|
|
2705
|
+
private readonly http;
|
|
2706
|
+
constructor(http: IHttpService);
|
|
2707
|
+
list(agentUuid: string): Promise<IAppResponse<Contract[]>>;
|
|
2708
|
+
get(uuid: string): Promise<IAppResponse<Contract>>;
|
|
2709
|
+
create(agentUuid: string, name: string, chain: string, category?: ContractCategoryName, isPublic?: boolean, description?: string): Promise<IAppResponse<Contract>>;
|
|
2710
|
+
update(uuid: string, data: {
|
|
2711
|
+
name?: string;
|
|
2712
|
+
description?: string;
|
|
2713
|
+
}): Promise<IAppResponse<Contract>>;
|
|
2714
|
+
delete(uuid: string): Promise<IAppResponse<void>>;
|
|
2715
|
+
deploy(uuid: string, env: string, txHash: string, type: 'deploy' | 'upgrade'): Promise<IAppResponse<ContractVersion>>;
|
|
2716
|
+
setAddress(uuid: string, env: string, address: string): Promise<IAppResponse<Contract>>;
|
|
2717
|
+
resetAddress(uuid: string, env: string): Promise<IAppResponse<Contract>>;
|
|
2718
|
+
listVersions(uuid: string): Promise<IAppResponse<ContractVersion[]>>;
|
|
1511
2719
|
}
|
|
1512
2720
|
//#endregion
|
|
1513
2721
|
//#region src/resources/documents.d.ts
|
|
@@ -1525,40 +2733,213 @@ declare class DocumentsResource {
|
|
|
1525
2733
|
title?: string;
|
|
1526
2734
|
content?: string;
|
|
1527
2735
|
}): Promise<IAppResponse<Document>>;
|
|
1528
|
-
delete(id: string): Promise<IAppResponse<
|
|
2736
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2737
|
+
trainFromUrl(agent: string, url: string): Promise<IAppResponse<Document>>;
|
|
2738
|
+
}
|
|
2739
|
+
//#endregion
|
|
2740
|
+
//#region src/resources/flows.d.ts
|
|
2741
|
+
declare class FlowsResource {
|
|
2742
|
+
private readonly http;
|
|
2743
|
+
constructor(http: IHttpService);
|
|
2744
|
+
list(params?: {
|
|
2745
|
+
locale?: string;
|
|
2746
|
+
page?: number;
|
|
2747
|
+
}): Promise<IAppResponse<Flow[]>>;
|
|
2748
|
+
get(slug: string, locale?: string): Promise<IAppResponse<Flow>>;
|
|
1529
2749
|
}
|
|
1530
2750
|
//#endregion
|
|
1531
2751
|
//#region src/resources/goals.d.ts
|
|
1532
2752
|
declare class GoalsResource {
|
|
1533
2753
|
private readonly http;
|
|
1534
2754
|
constructor(http: IHttpService);
|
|
1535
|
-
list(): Promise<IAppResponse<
|
|
1536
|
-
data: Goal[];
|
|
1537
|
-
}>>;
|
|
2755
|
+
list(): Promise<IAppResponse<Goal[]>>;
|
|
1538
2756
|
create(payload: {
|
|
1539
2757
|
agentId: string;
|
|
1540
2758
|
} & GoalCreatePayload): Promise<IAppResponse<Goal>>;
|
|
1541
2759
|
update(id: string, data: Partial<Goal>): Promise<IAppResponse<Goal>>;
|
|
2760
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
1542
2761
|
}
|
|
1543
2762
|
//#endregion
|
|
1544
|
-
//#region src/resources/
|
|
1545
|
-
declare class
|
|
2763
|
+
//#region src/resources/hub.d.ts
|
|
2764
|
+
declare class HubResource {
|
|
1546
2765
|
private readonly http;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
2766
|
+
constructor(http: IHttpService);
|
|
2767
|
+
subscribe(email: string, tag: 'blueprint' | 'digest' | 'marketplace'): Promise<IAppResponse<void>>;
|
|
2768
|
+
}
|
|
2769
|
+
//#endregion
|
|
2770
|
+
//#region src/resources/ingestions.d.ts
|
|
2771
|
+
declare class IngestionsResource {
|
|
2772
|
+
private readonly http;
|
|
2773
|
+
constructor(http: IHttpService);
|
|
2774
|
+
list(params?: {
|
|
2775
|
+
page?: number;
|
|
2776
|
+
size?: number;
|
|
2777
|
+
}): Promise<IAppResponse<AppIngestion[]>>;
|
|
2778
|
+
getShared(shareToken: string): Promise<IAppResponse<AppIngestion>>;
|
|
2779
|
+
}
|
|
2780
|
+
//#endregion
|
|
2781
|
+
//#region src/resources/inquiries.d.ts
|
|
2782
|
+
declare class InquiriesResource {
|
|
2783
|
+
private readonly http;
|
|
2784
|
+
constructor(http: IHttpService);
|
|
2785
|
+
create(content: string, type: InquiryType, message?: string): Promise<IAppResponse<Inquiry>>;
|
|
2786
|
+
}
|
|
2787
|
+
//#endregion
|
|
2788
|
+
//#region src/resources/integrations.d.ts
|
|
2789
|
+
declare class IntegrationsResource {
|
|
2790
|
+
private readonly http;
|
|
2791
|
+
constructor(http: IHttpService);
|
|
2792
|
+
list(agent: string, page?: number): Promise<IAppResponse<Integration[]>>;
|
|
2793
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2794
|
+
toggle(id: string): Promise<IAppResponse<Integration>>;
|
|
2795
|
+
storeBot(platform: SocialPlatform, agent: string, data: Record<string, unknown>): Promise<IAppResponse<SocialBot>>;
|
|
2796
|
+
getBot(platform: SocialPlatform, agent: string): Promise<IAppResponse<SocialBot | null>>;
|
|
2797
|
+
storeWhatsAppEmbeddedSignup(agent: string, data: {
|
|
2798
|
+
code: string;
|
|
2799
|
+
phoneNumberId: string;
|
|
2800
|
+
businessAccountId: string;
|
|
2801
|
+
}): Promise<IAppResponse<SocialBot>>;
|
|
2802
|
+
reconfigureWhatsAppWebhook(agent: string): Promise<IAppResponse<{
|
|
2803
|
+
reconfigured: boolean;
|
|
1553
2804
|
}>>;
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
2805
|
+
getXStatus(agent: string): Promise<IAppResponse<XIntegrationStatus>>;
|
|
2806
|
+
setupX(agent: string): Promise<IAppResponse<{
|
|
2807
|
+
enabled: boolean;
|
|
2808
|
+
integrationId: string;
|
|
2809
|
+
}>>;
|
|
2810
|
+
getCalendarStatus(agent: string): Promise<IAppResponse<CalendarStatus>>;
|
|
2811
|
+
syncCalendar(agent: string): Promise<IAppResponse<{
|
|
2812
|
+
synced: boolean;
|
|
2813
|
+
}>>;
|
|
2814
|
+
deleteCalendar(agent: string): Promise<IAppResponse<void>>;
|
|
2815
|
+
getEmbedStatus(agentUuid: string): Promise<IAppResponse<EmbedStatus>>;
|
|
2816
|
+
setupEmbed(agentUuid: string, allowedDomains?: string[]): Promise<IAppResponse<EmbedStatus>>;
|
|
2817
|
+
}
|
|
2818
|
+
//#endregion
|
|
2819
|
+
//#region src/resources/intents.d.ts
|
|
2820
|
+
declare class IntentsResource {
|
|
2821
|
+
private readonly http;
|
|
2822
|
+
constructor(http: IHttpService);
|
|
2823
|
+
getUnseen(agent: string): Promise<IAppResponse<Intent[]>>;
|
|
2824
|
+
}
|
|
2825
|
+
//#endregion
|
|
2826
|
+
//#region src/resources/items.d.ts
|
|
2827
|
+
declare class ItemsResource {
|
|
2828
|
+
private readonly http;
|
|
2829
|
+
constructor(http: IHttpService);
|
|
2830
|
+
list(params?: {
|
|
2831
|
+
status?: string;
|
|
2832
|
+
}): Promise<IAppResponse<Item[]>>;
|
|
2833
|
+
get(id: string): Promise<IAppResponse<Item>>;
|
|
2834
|
+
create(payload: ItemCreatePayload): Promise<IAppResponse<Item>>;
|
|
2835
|
+
update(id: string, data: ItemUpdatePayload): Promise<IAppResponse<Item>>;
|
|
2836
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2837
|
+
sort(team: string, itemIds: string[]): Promise<IAppResponse<void>>;
|
|
2838
|
+
}
|
|
2839
|
+
//#endregion
|
|
2840
|
+
//#region src/resources/links.d.ts
|
|
2841
|
+
declare class LinksResource {
|
|
2842
|
+
private readonly http;
|
|
2843
|
+
constructor(http: IHttpService);
|
|
2844
|
+
list(params?: {
|
|
2845
|
+
type?: string;
|
|
2846
|
+
active?: boolean;
|
|
2847
|
+
}): Promise<IAppResponse<Link[]>>;
|
|
2848
|
+
create(payload: LinkCreatePayload): Promise<IAppResponse<Link>>;
|
|
2849
|
+
update(id: string, payload: LinkUpdatePayload): Promise<IAppResponse<Link>>;
|
|
2850
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
2851
|
+
stats(): Promise<IAppResponse<LinkStats>>;
|
|
2852
|
+
variations(linkId: string): Promise<IAppResponse<LinkVariation[]>>;
|
|
2853
|
+
createVariation(linkId: string, payload: LinkVariationCreatePayload): Promise<IAppResponse<LinkVariation>>;
|
|
2854
|
+
createVariationBatch(linkId: string, payload: LinkVariationBatchCreatePayload): Promise<IAppResponse<LinkVariation[]>>;
|
|
2855
|
+
deleteVariation(linkId: string, variationId: string): Promise<IAppResponse<void>>;
|
|
2856
|
+
}
|
|
2857
|
+
//#endregion
|
|
2858
|
+
//#region src/resources/loyalty.d.ts
|
|
2859
|
+
declare class LoyaltyResource {
|
|
2860
|
+
private readonly http;
|
|
2861
|
+
constructor(http: IHttpService);
|
|
2862
|
+
getProgram(): Promise<IAppResponse<LoyaltyProgram>>;
|
|
2863
|
+
updateProgram(data: {
|
|
2864
|
+
name?: string;
|
|
2865
|
+
settings?: ProgramSettings;
|
|
2866
|
+
}): Promise<IAppResponse<LoyaltyProgram>>;
|
|
2867
|
+
getRewards(): Promise<IAppResponse<LoyaltyReward[]>>;
|
|
2868
|
+
createReward(data: {
|
|
2869
|
+
type: string;
|
|
1557
2870
|
name: string;
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
2871
|
+
pointsCost: number;
|
|
2872
|
+
config?: JsonValue;
|
|
2873
|
+
sortOrder?: number;
|
|
2874
|
+
}): Promise<IAppResponse<LoyaltyReward>>;
|
|
2875
|
+
updateReward(id: string, data: {
|
|
2876
|
+
type?: string;
|
|
2877
|
+
name?: string;
|
|
2878
|
+
pointsCost?: number;
|
|
2879
|
+
config?: JsonValue;
|
|
2880
|
+
sortOrder?: number;
|
|
2881
|
+
}): Promise<IAppResponse<LoyaltyReward>>;
|
|
2882
|
+
deleteReward(id: string): Promise<IAppResponse<void>>;
|
|
2883
|
+
getTiers(): Promise<IAppResponse<LoyaltyTier[]>>;
|
|
2884
|
+
createTier(data: {
|
|
2885
|
+
name: string;
|
|
2886
|
+
minPoints: number;
|
|
2887
|
+
pointsMultiplier: number;
|
|
2888
|
+
color?: string;
|
|
2889
|
+
benefits?: {
|
|
2890
|
+
type: string;
|
|
2891
|
+
label: string;
|
|
2892
|
+
}[];
|
|
2893
|
+
}): Promise<IAppResponse<LoyaltyTier>>;
|
|
2894
|
+
updateTier(id: string, data: {
|
|
2895
|
+
name?: string;
|
|
2896
|
+
minPoints?: number;
|
|
2897
|
+
pointsMultiplier?: number;
|
|
2898
|
+
color?: string;
|
|
2899
|
+
benefits?: {
|
|
2900
|
+
type: string;
|
|
2901
|
+
label: string;
|
|
2902
|
+
}[];
|
|
2903
|
+
}): Promise<IAppResponse<LoyaltyTier>>;
|
|
2904
|
+
deleteTier(id: string): Promise<IAppResponse<void>>;
|
|
2905
|
+
getPromotions(): Promise<IAppResponse<LoyaltyPromotion[]>>;
|
|
2906
|
+
createPromotion(data: {
|
|
2907
|
+
name: string;
|
|
2908
|
+
type: string;
|
|
2909
|
+
value: number;
|
|
2910
|
+
startsAt: string;
|
|
2911
|
+
endsAt: string;
|
|
2912
|
+
minSpendCents?: number;
|
|
2913
|
+
}): Promise<IAppResponse<LoyaltyPromotion>>;
|
|
2914
|
+
updatePromotion(id: string, data: {
|
|
2915
|
+
name?: string;
|
|
2916
|
+
value?: number;
|
|
2917
|
+
startsAt?: string;
|
|
2918
|
+
endsAt?: string;
|
|
2919
|
+
active?: boolean;
|
|
2920
|
+
}): Promise<IAppResponse<LoyaltyPromotion>>;
|
|
2921
|
+
deletePromotion(id: string): Promise<IAppResponse<void>>;
|
|
2922
|
+
enroll(contactId: string): Promise<IAppResponse<LoyaltyAccount>>;
|
|
2923
|
+
getAccount(contactId: string): Promise<IAppResponse<LoyaltyAccount>>;
|
|
2924
|
+
earn(contactId: string, context?: {
|
|
2925
|
+
spendCents?: number;
|
|
2926
|
+
items?: {
|
|
2927
|
+
id: string;
|
|
2928
|
+
category?: string;
|
|
2929
|
+
}[];
|
|
2930
|
+
category?: string;
|
|
2931
|
+
}): Promise<IAppResponse<EarnResponse>>;
|
|
2932
|
+
redeem(contactId: string, rewardId: string): Promise<IAppResponse<RedeemResponse>>;
|
|
2933
|
+
adjustPoints(contactId: string, points: number, reason: string): Promise<IAppResponse<LoyaltyAccount>>;
|
|
2934
|
+
getTransactionHistory(contactId: string): Promise<IAppResponse<LoyaltyTransaction[]>>;
|
|
2935
|
+
listMembers(): Promise<IAppResponse<LoyaltyMember[]>>;
|
|
2936
|
+
}
|
|
2937
|
+
//#endregion
|
|
2938
|
+
//#region src/resources/marketplace.d.ts
|
|
2939
|
+
declare class MarketplaceResource {
|
|
2940
|
+
private readonly http;
|
|
2941
|
+
constructor(http: IHttpService);
|
|
2942
|
+
get(locale?: string): Promise<MarketplaceData>;
|
|
1562
2943
|
}
|
|
1563
2944
|
//#endregion
|
|
1564
2945
|
//#region src/resources/media.d.ts
|
|
@@ -1578,32 +2959,36 @@ declare class MediaResource {
|
|
|
1578
2959
|
label?: string;
|
|
1579
2960
|
tags?: string[];
|
|
1580
2961
|
}): Promise<IAppResponse<Media>>;
|
|
1581
|
-
|
|
1582
|
-
//#endregion
|
|
1583
|
-
//#region src/resources/ingestions.d.ts
|
|
1584
|
-
declare class IngestionsResource {
|
|
1585
|
-
private readonly http;
|
|
1586
|
-
constructor(http: IHttpService);
|
|
1587
|
-
list(params?: {
|
|
2962
|
+
listTeam(team: string, params?: {
|
|
1588
2963
|
page?: number;
|
|
1589
|
-
|
|
1590
|
-
}): Promise<IAppResponse<
|
|
1591
|
-
|
|
2964
|
+
mime?: string;
|
|
2965
|
+
}): Promise<IAppResponse<Media[]>>;
|
|
2966
|
+
uploadTeam(team: string, media: MediaLibraryItems, tags?: string[], options?: {
|
|
2967
|
+
preserveOriginal?: boolean;
|
|
2968
|
+
}): Promise<IAppResponse<Media[]>>;
|
|
2969
|
+
deleteTeam(team: string, mediaId: string): Promise<IAppResponse<void>>;
|
|
2970
|
+
updateTeamMedia(team: string, mediaId: string, data: {
|
|
2971
|
+
name: string;
|
|
2972
|
+
}): Promise<IAppResponse<Media>>;
|
|
2973
|
+
updateTeamMediaTags(team: string, mediaId: string, tags: string[]): Promise<IAppResponse<Media>>;
|
|
1592
2974
|
}
|
|
1593
2975
|
//#endregion
|
|
1594
|
-
//#region src/resources/
|
|
1595
|
-
declare class
|
|
2976
|
+
//#region src/resources/meetings.d.ts
|
|
2977
|
+
declare class MeetingsResource {
|
|
1596
2978
|
private readonly http;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
2979
|
+
private readonly config;
|
|
2980
|
+
constructor(http: IHttpService, config: JoAiClientConfig);
|
|
2981
|
+
listUpcoming(): Promise<IAppResponse<Meeting[]>>;
|
|
2982
|
+
get(id: string): Promise<IAppResponse<Meeting>>;
|
|
2983
|
+
getSummary(id: string): Promise<IAppResponse<MeetingSummary>>;
|
|
2984
|
+
join(code: string): Promise<IAppResponse<MeetingJoinInfo>>;
|
|
2985
|
+
cancel(code: string): Promise<IAppResponse<Meeting>>;
|
|
2986
|
+
share(id: string, recipients: {
|
|
2987
|
+
name: string;
|
|
2988
|
+
email: string;
|
|
2989
|
+
}[]): Promise<IAppResponse<void>>;
|
|
2990
|
+
update(id: string, name: string | null, notify?: boolean, speakers?: MeetingSpeakerAssignment[]): Promise<IAppResponse<Meeting>>;
|
|
2991
|
+
finalize(id: string, notify: boolean): Promise<IAppResponse<Meeting>>;
|
|
1607
2992
|
}
|
|
1608
2993
|
//#endregion
|
|
1609
2994
|
//#region src/resources/memories.d.ts
|
|
@@ -1613,9 +2998,7 @@ declare class MemoriesResource {
|
|
|
1613
2998
|
list(params?: {
|
|
1614
2999
|
search?: string;
|
|
1615
3000
|
contactId?: string;
|
|
1616
|
-
}): Promise<IAppResponse<
|
|
1617
|
-
data: Memory[];
|
|
1618
|
-
}>>;
|
|
3001
|
+
}): Promise<IAppResponse<Memory[]>>;
|
|
1619
3002
|
add(payload: {
|
|
1620
3003
|
agentId: string;
|
|
1621
3004
|
content: string;
|
|
@@ -1625,21 +3008,58 @@ declare class MemoriesResource {
|
|
|
1625
3008
|
name: string;
|
|
1626
3009
|
content: string;
|
|
1627
3010
|
}): Promise<IAppResponse<Memory>>;
|
|
1628
|
-
delete(id: string): Promise<IAppResponse<
|
|
3011
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3012
|
+
}
|
|
3013
|
+
//#endregion
|
|
3014
|
+
//#region src/resources/messages.d.ts
|
|
3015
|
+
declare class MessagesResource {
|
|
3016
|
+
private readonly http;
|
|
3017
|
+
constructor(http: IHttpService);
|
|
3018
|
+
list(team: string, room: string, page?: number, perPage?: number): Promise<IAppResponse<Message[]>>;
|
|
3019
|
+
search(team: string, search: string): Promise<IAppResponse<Message[]>>;
|
|
3020
|
+
delete(messageId: string): Promise<IAppResponse<void>>;
|
|
3021
|
+
pendingApprovals(teams: string[]): Promise<IAppResponse<Message[]>>;
|
|
3022
|
+
generateAudio(messageId: string): Promise<IAppResponse<{
|
|
3023
|
+
audioUrl: string;
|
|
3024
|
+
}>>;
|
|
3025
|
+
}
|
|
3026
|
+
//#endregion
|
|
3027
|
+
//#region src/resources/missions.d.ts
|
|
3028
|
+
declare class MissionsResource {
|
|
3029
|
+
private readonly http;
|
|
3030
|
+
constructor(http: IHttpService);
|
|
3031
|
+
list(agent: string, page?: number): Promise<IAppResponse<Mission[]>>;
|
|
3032
|
+
get(missionId: string): Promise<IAppResponse<Mission>>;
|
|
3033
|
+
create(agent: string, data: MissionCreatePayload): Promise<IAppResponse<Mission>>;
|
|
3034
|
+
cancel(missionId: string): Promise<IAppResponse<Mission>>;
|
|
3035
|
+
pause(missionId: string): Promise<IAppResponse<Mission>>;
|
|
3036
|
+
resume(missionId: string): Promise<IAppResponse<Mission>>;
|
|
3037
|
+
}
|
|
3038
|
+
//#endregion
|
|
3039
|
+
//#region src/resources/notifications.d.ts
|
|
3040
|
+
declare class NotificationsResource {
|
|
3041
|
+
private readonly http;
|
|
3042
|
+
constructor(http: IHttpService);
|
|
3043
|
+
list(page?: number): Promise<IAppResponse<Notification[]>>;
|
|
3044
|
+
getUnread(): Promise<IAppResponse<Notification[]>>;
|
|
3045
|
+
getSettings(): Promise<IAppResponse<NotificationSetting[]>>;
|
|
3046
|
+
updateSettings(notificationType: string, channel: NotificationChannel): Promise<IAppResponse<NotificationSetting[]>>;
|
|
3047
|
+
getAgentSettings(): Promise<IAppResponse<{
|
|
3048
|
+
mutedAgents: string[];
|
|
3049
|
+
}>>;
|
|
3050
|
+
toggleAgent(agentUuid: string): Promise<IAppResponse<{
|
|
3051
|
+
mutedAgents: string[];
|
|
3052
|
+
}>>;
|
|
3053
|
+
}
|
|
3054
|
+
//#endregion
|
|
3055
|
+
//#region src/resources/office.d.ts
|
|
3056
|
+
declare class OfficeResource {
|
|
3057
|
+
private readonly http;
|
|
3058
|
+
constructor(http: IHttpService);
|
|
3059
|
+
getSnapshot(team: string): Promise<IAppResponse<OfficeSnapshot>>;
|
|
1629
3060
|
}
|
|
1630
3061
|
//#endregion
|
|
1631
3062
|
//#region src/resources/orders.d.ts
|
|
1632
|
-
type Order = {
|
|
1633
|
-
id: string;
|
|
1634
|
-
total: number;
|
|
1635
|
-
status: string;
|
|
1636
|
-
paymentUrl: string | null;
|
|
1637
|
-
invoiceUrl: string | null;
|
|
1638
|
-
createdAt: string;
|
|
1639
|
-
items: OrderItem[];
|
|
1640
|
-
configuration: OrderConfigurationItem[];
|
|
1641
|
-
contactId: string | null;
|
|
1642
|
-
};
|
|
1643
3063
|
declare class OrdersResource {
|
|
1644
3064
|
private readonly http;
|
|
1645
3065
|
constructor(http: IHttpService);
|
|
@@ -1650,13 +3070,34 @@ declare class OrdersResource {
|
|
|
1650
3070
|
notes?: string;
|
|
1651
3071
|
team: string;
|
|
1652
3072
|
fresh?: boolean;
|
|
3073
|
+
source?: 'kiosk';
|
|
3074
|
+
context?: OrderContext;
|
|
3075
|
+
linkVariationId?: string;
|
|
3076
|
+
priceMode?: string;
|
|
3077
|
+
sendConfirmation?: boolean;
|
|
1653
3078
|
items: {
|
|
1654
3079
|
id: string;
|
|
1655
3080
|
type: 'product' | 'service';
|
|
1656
3081
|
quantity: number;
|
|
1657
|
-
configuration?:
|
|
3082
|
+
configuration?: Configuration;
|
|
1658
3083
|
}[];
|
|
1659
3084
|
}): Promise<IAppResponse<Order>>;
|
|
3085
|
+
update(id: string, data: {
|
|
3086
|
+
status?: OrderStatus;
|
|
3087
|
+
date?: string;
|
|
3088
|
+
}): Promise<IAppResponse<Order>>;
|
|
3089
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3090
|
+
pay(id: string, provider: string): Promise<IAppResponse<{
|
|
3091
|
+
url: string;
|
|
3092
|
+
}>>;
|
|
3093
|
+
}
|
|
3094
|
+
//#endregion
|
|
3095
|
+
//#region src/resources/persona.d.ts
|
|
3096
|
+
declare class PersonaResource {
|
|
3097
|
+
private readonly http;
|
|
3098
|
+
constructor(http: IHttpService);
|
|
3099
|
+
recordAnswer(questionKey: string, answer: string | string[]): Promise<IAppResponse<void>>;
|
|
3100
|
+
dismiss(questionKey: string): Promise<IAppResponse<void>>;
|
|
1660
3101
|
}
|
|
1661
3102
|
//#endregion
|
|
1662
3103
|
//#region src/resources/products.d.ts
|
|
@@ -1668,27 +3109,61 @@ declare class ProductsResource {
|
|
|
1668
3109
|
create(data: {
|
|
1669
3110
|
name: TranslatableValue;
|
|
1670
3111
|
unit?: string;
|
|
3112
|
+
tags?: string[];
|
|
1671
3113
|
}): Promise<IAppResponse<Product>>;
|
|
1672
3114
|
update(id: string, data: {
|
|
1673
3115
|
name?: TranslatableValue;
|
|
1674
3116
|
active?: boolean;
|
|
3117
|
+
tags?: string[] | null;
|
|
1675
3118
|
}): Promise<IAppResponse<Product>>;
|
|
1676
|
-
delete(id: string): Promise<IAppResponse<
|
|
3119
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3120
|
+
}
|
|
3121
|
+
//#endregion
|
|
3122
|
+
//#region src/resources/projects.d.ts
|
|
3123
|
+
declare class ProjectsResource {
|
|
3124
|
+
private readonly http;
|
|
3125
|
+
constructor(http: IHttpService);
|
|
3126
|
+
list(team: string): Promise<IAppResponse<Project[]>>;
|
|
3127
|
+
get(team: string, projectId: string): Promise<IAppResponse<Project>>;
|
|
3128
|
+
update(team: string, agent: string, projectId: string, payload: ProjectMutation): Promise<IAppResponse<Project>>;
|
|
3129
|
+
orchestrate(team: string, agent: string, payload: {
|
|
3130
|
+
message: string;
|
|
3131
|
+
projectId?: string | null;
|
|
3132
|
+
history?: ProjectStudioHistoryEntry[];
|
|
3133
|
+
selectedSkills?: string[];
|
|
3134
|
+
elementIds?: string[];
|
|
3135
|
+
outputPreset?: ProjectOutputPreset | null;
|
|
3136
|
+
outputType?: ProjectOutputType | null;
|
|
3137
|
+
sourceUrl?: string | null;
|
|
3138
|
+
nsfw?: boolean;
|
|
3139
|
+
}): Promise<IAppResponse<{
|
|
3140
|
+
project: Project;
|
|
3141
|
+
}>>;
|
|
3142
|
+
assist(team: string, agent: string, payload: {
|
|
3143
|
+
draft: string;
|
|
3144
|
+
intent: ProjectInputAssistIntent;
|
|
3145
|
+
projectId?: string | null;
|
|
3146
|
+
selectedSkills?: string[];
|
|
3147
|
+
outputPreset?: ProjectOutputPreset | null;
|
|
3148
|
+
}): Promise<IAppResponse<ProjectInputAssistResponse>>;
|
|
3149
|
+
delete(team: string, projectId: string): Promise<IAppResponse<void>>;
|
|
3150
|
+
produce(team: string, agent: string, projectId: string): Promise<IAppResponse<{
|
|
3151
|
+
status: string;
|
|
3152
|
+
}>>;
|
|
3153
|
+
exportProject(team: string, agent: string, projectId: string): Promise<IAppResponse<ProjectExportResponse>>;
|
|
1677
3154
|
}
|
|
1678
3155
|
//#endregion
|
|
1679
3156
|
//#region src/resources/reminders.d.ts
|
|
1680
3157
|
declare class RemindersResource {
|
|
1681
3158
|
private readonly http;
|
|
1682
3159
|
constructor(http: IHttpService);
|
|
1683
|
-
list(): Promise<IAppResponse<
|
|
1684
|
-
data: Reminder[];
|
|
1685
|
-
}>>;
|
|
3160
|
+
list(): Promise<IAppResponse<Reminder[]>>;
|
|
1686
3161
|
add(payload: {
|
|
1687
3162
|
agentId: string;
|
|
1688
3163
|
text: string;
|
|
1689
3164
|
scheduledAt: string;
|
|
1690
3165
|
}): Promise<IAppResponse<Reminder>>;
|
|
1691
|
-
delete(id: string): Promise<IAppResponse<
|
|
3166
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
1692
3167
|
}
|
|
1693
3168
|
//#endregion
|
|
1694
3169
|
//#region src/resources/rooms.d.ts
|
|
@@ -1701,6 +3176,42 @@ declare class RoomsResource {
|
|
|
1701
3176
|
}): Promise<IAppResponse<Message[]>>;
|
|
1702
3177
|
}
|
|
1703
3178
|
//#endregion
|
|
3179
|
+
//#region src/resources/services.d.ts
|
|
3180
|
+
declare class ServicesResource {
|
|
3181
|
+
private readonly http;
|
|
3182
|
+
constructor(http: IHttpService);
|
|
3183
|
+
list(team?: string): Promise<IAppResponse<Service[]>>;
|
|
3184
|
+
get(slug: string): Promise<IAppResponse<Service>>;
|
|
3185
|
+
store(team: string, data: {
|
|
3186
|
+
name: string;
|
|
3187
|
+
price: number;
|
|
3188
|
+
durationMinutes: number;
|
|
3189
|
+
description?: string;
|
|
3190
|
+
digital?: boolean;
|
|
3191
|
+
public?: boolean;
|
|
3192
|
+
}): Promise<IAppResponse<Service>>;
|
|
3193
|
+
update(id: string, data: Partial<Pick<Service, 'name' | 'price' | 'durationMinutes' | 'description' | 'active' | 'digital' | 'public'>>): Promise<IAppResponse<Service>>;
|
|
3194
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3195
|
+
}
|
|
3196
|
+
//#endregion
|
|
3197
|
+
//#region src/resources/shortcuts.d.ts
|
|
3198
|
+
declare class ShortcutsResource {
|
|
3199
|
+
private readonly http;
|
|
3200
|
+
constructor(http: IHttpService);
|
|
3201
|
+
list(agent: string, page?: number): Promise<IAppResponse<Shortcut[]>>;
|
|
3202
|
+
create(agent: string, name: string, warp: string, options?: {
|
|
3203
|
+
description?: string | null;
|
|
3204
|
+
inputs?: string[] | null;
|
|
3205
|
+
chat?: boolean;
|
|
3206
|
+
}): Promise<IAppResponse<Shortcut>>;
|
|
3207
|
+
update(id: string, name: string, warp: string, options?: {
|
|
3208
|
+
description?: string | null;
|
|
3209
|
+
inputs?: string[] | null;
|
|
3210
|
+
chat?: boolean;
|
|
3211
|
+
}): Promise<IAppResponse<Shortcut>>;
|
|
3212
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3213
|
+
}
|
|
3214
|
+
//#endregion
|
|
1704
3215
|
//#region src/resources/sites.d.ts
|
|
1705
3216
|
declare class SitesResource {
|
|
1706
3217
|
private readonly http;
|
|
@@ -1712,36 +3223,62 @@ declare class SitesResource {
|
|
|
1712
3223
|
customDomain?: string | null;
|
|
1713
3224
|
enabled?: boolean;
|
|
1714
3225
|
modules?: string[];
|
|
1715
|
-
}): Promise<IAppResponse<
|
|
1716
|
-
|
|
3226
|
+
}): Promise<IAppResponse<void>>;
|
|
3227
|
+
}
|
|
3228
|
+
//#endregion
|
|
3229
|
+
//#region src/resources/skills.d.ts
|
|
3230
|
+
declare class SkillsResource {
|
|
3231
|
+
private readonly http;
|
|
3232
|
+
constructor(http: IHttpService);
|
|
3233
|
+
list(agent: string): Promise<IAppResponse<Skill[]>>;
|
|
3234
|
+
get(id: string): Promise<IAppResponse<Skill>>;
|
|
3235
|
+
create(params: {
|
|
3236
|
+
agent: string;
|
|
3237
|
+
name: string;
|
|
3238
|
+
content: string;
|
|
3239
|
+
description: string;
|
|
3240
|
+
scope: SkillScopeValue;
|
|
3241
|
+
meta?: Record<string, unknown>;
|
|
3242
|
+
license?: string;
|
|
3243
|
+
compatibility?: string;
|
|
3244
|
+
allowedTools?: string;
|
|
3245
|
+
media?: MediaLibraryItems;
|
|
3246
|
+
active?: boolean;
|
|
3247
|
+
isPublic?: boolean;
|
|
3248
|
+
price?: number;
|
|
3249
|
+
}): Promise<IAppResponse<Skill>>;
|
|
3250
|
+
update(id: string, data: Partial<Omit<Skill, 'media' | 'marketplace'>> & {
|
|
3251
|
+
media?: MediaLibraryItems;
|
|
3252
|
+
public?: boolean;
|
|
3253
|
+
price?: number;
|
|
3254
|
+
}): Promise<IAppResponse<Skill>>;
|
|
3255
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3256
|
+
toggle(id: string): Promise<IAppResponse<Skill>>;
|
|
3257
|
+
parseFile(content: string): Promise<IAppResponse<{
|
|
3258
|
+
name: string;
|
|
3259
|
+
description: string;
|
|
3260
|
+
content: string;
|
|
3261
|
+
meta: Record<string, unknown> | null;
|
|
3262
|
+
}>>;
|
|
3263
|
+
importSkill(agent: string, content: string): Promise<IAppResponse<Skill>>;
|
|
3264
|
+
exportSkill(id: string): Promise<IAppResponse<{
|
|
3265
|
+
content: string;
|
|
3266
|
+
filename: string;
|
|
1717
3267
|
}>>;
|
|
1718
3268
|
}
|
|
1719
3269
|
//#endregion
|
|
1720
|
-
//#region src/resources/
|
|
1721
|
-
declare class
|
|
3270
|
+
//#region src/resources/stats.d.ts
|
|
3271
|
+
declare class StatsResource {
|
|
1722
3272
|
private readonly http;
|
|
1723
3273
|
constructor(http: IHttpService);
|
|
1724
|
-
|
|
1725
|
-
listPublic(params?: {
|
|
1726
|
-
tags?: string;
|
|
1727
|
-
}): Promise<IAppResponse<Team[]>>;
|
|
1728
|
-
get(slug: string): Promise<IAppResponse<Team>>;
|
|
1729
|
-
invite(teamSlug: string, payload: {
|
|
1730
|
-
email: string;
|
|
1731
|
-
role: 'owner' | 'admin' | 'member';
|
|
1732
|
-
}): Promise<IAppResponse<unknown>>;
|
|
1733
|
-
updateLogo(teamSlug: string, logo: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
1734
|
-
updateCover(teamSlug: string, cover: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
1735
|
-
updateSetting(teamSlug: string, key: string, value: boolean | string | number | object | null): Promise<IAppResponse<TeamPrivate>>;
|
|
3274
|
+
getGamification(): Promise<IAppResponse<GamificationData>>;
|
|
1736
3275
|
}
|
|
1737
3276
|
//#endregion
|
|
1738
3277
|
//#region src/resources/stores.d.ts
|
|
1739
3278
|
declare class StoresResource {
|
|
1740
3279
|
private readonly http;
|
|
1741
3280
|
constructor(http: IHttpService);
|
|
1742
|
-
list(): Promise<IAppResponse<
|
|
1743
|
-
data: Store[];
|
|
1744
|
-
}>>;
|
|
3281
|
+
list(): Promise<IAppResponse<Store[]>>;
|
|
1745
3282
|
create(payload: StoreCreatePayload): Promise<IAppResponse<Store>>;
|
|
1746
3283
|
entries(params?: {
|
|
1747
3284
|
storeName?: string;
|
|
@@ -1752,7 +3289,93 @@ declare class StoresResource {
|
|
|
1752
3289
|
setEntry(payload: StoreEntryPayload): Promise<IAppResponse<StoreEntryResult>>;
|
|
1753
3290
|
appendEntry(payload: StoreEntryPayload): Promise<IAppResponse<StoreEntryResult>>;
|
|
1754
3291
|
toggle(storeName?: string): Promise<IAppResponse<StoreToggleResult>>;
|
|
1755
|
-
delete(storeName: string): Promise<IAppResponse<
|
|
3292
|
+
delete(storeName: string): Promise<IAppResponse<void>>;
|
|
3293
|
+
}
|
|
3294
|
+
//#endregion
|
|
3295
|
+
//#region src/resources/subscriptions.d.ts
|
|
3296
|
+
declare class SubscriptionsResource {
|
|
3297
|
+
private readonly http;
|
|
3298
|
+
constructor(http: IHttpService);
|
|
3299
|
+
list(team: string): Promise<IAppResponse<AppSubscription[]>>;
|
|
3300
|
+
get(id: string): Promise<IAppResponse<AppSubscription>>;
|
|
3301
|
+
cancel(id: string): Promise<IAppResponse<AppSubscription>>;
|
|
3302
|
+
resume(id: string): Promise<IAppResponse<AppSubscription>>;
|
|
3303
|
+
cancelPlan(team: string): Promise<IAppResponse<void>>;
|
|
3304
|
+
resumePlan(team: string): Promise<IAppResponse<void>>;
|
|
3305
|
+
}
|
|
3306
|
+
//#endregion
|
|
3307
|
+
//#region src/resources/swarms.d.ts
|
|
3308
|
+
declare class SwarmsResource {
|
|
3309
|
+
private readonly http;
|
|
3310
|
+
constructor(http: IHttpService);
|
|
3311
|
+
listSwarms(team: string): Promise<IAppResponse<Swarm[]>>;
|
|
3312
|
+
listAgents(swarm: string): Promise<IAppResponse<Agent[]>>;
|
|
3313
|
+
storeProposal(agent: string, swarm: string, title: string, description: string, actions: ProposalAction[], attachments: MediaLibraryItems, poll: ProposalPollOption[]): Promise<IAppResponse<Proposal>>;
|
|
3314
|
+
finalizeProposal(swarm: string, txHash: string, proposal: string): Promise<IAppResponse<void>>;
|
|
3315
|
+
finalizeSignature(swarm: string, txHash: string, proposal: string): Promise<IAppResponse<void>>;
|
|
3316
|
+
finalizeExecution(chain: WarpChainName, txHash: string, actions?: ProposalAction[]): Promise<IAppResponse<void>>;
|
|
3317
|
+
}
|
|
3318
|
+
//#endregion
|
|
3319
|
+
//#region src/resources/tasks.d.ts
|
|
3320
|
+
declare class TasksResource {
|
|
3321
|
+
private readonly http;
|
|
3322
|
+
constructor(http: IHttpService);
|
|
3323
|
+
list(agent: string, page?: number): Promise<IAppResponse<Task[]>>;
|
|
3324
|
+
create(agent: string, room: string, warp: string, options?: {
|
|
3325
|
+
cronExpression?: string;
|
|
3326
|
+
inputs?: string[];
|
|
3327
|
+
maxRuns?: number | null;
|
|
3328
|
+
startsAt?: string | null;
|
|
3329
|
+
endsAt?: string | null;
|
|
3330
|
+
}): Promise<IAppResponse<Task>>;
|
|
3331
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
3332
|
+
toggle(id: string): Promise<IAppResponse<Task>>;
|
|
3333
|
+
}
|
|
3334
|
+
//#endregion
|
|
3335
|
+
//#region src/resources/teams.d.ts
|
|
3336
|
+
type TeamInviteInfo = {
|
|
3337
|
+
slug: string;
|
|
3338
|
+
name: string;
|
|
3339
|
+
};
|
|
3340
|
+
type TeamMutationPayload = {
|
|
3341
|
+
name?: string;
|
|
3342
|
+
slug?: string;
|
|
3343
|
+
description?: TranslatableValue | null;
|
|
3344
|
+
tagline?: TranslatableValue | null;
|
|
3345
|
+
category?: TeamCategory;
|
|
3346
|
+
public?: boolean;
|
|
3347
|
+
tags?: string[];
|
|
3348
|
+
features?: TeamFeature[];
|
|
3349
|
+
meta?: Partial<TeamMeta>;
|
|
3350
|
+
settings?: Record<string, JsonValue>;
|
|
3351
|
+
website?: string | null;
|
|
3352
|
+
phone?: string | null;
|
|
3353
|
+
email?: string | null;
|
|
3354
|
+
address?: string | null;
|
|
3355
|
+
location?: string | null;
|
|
3356
|
+
};
|
|
3357
|
+
declare class TeamsResource {
|
|
3358
|
+
private readonly http;
|
|
3359
|
+
constructor(http: IHttpService);
|
|
3360
|
+
list(): Promise<IAppResponse<Team[]>>;
|
|
3361
|
+
listPublic(params?: {
|
|
3362
|
+
tags?: string;
|
|
3363
|
+
}): Promise<IAppResponse<Team[]>>;
|
|
3364
|
+
get(slug: string): Promise<IAppResponse<Team>>;
|
|
3365
|
+
create(data: TeamMutationPayload & {
|
|
3366
|
+
name: string;
|
|
3367
|
+
}): Promise<IAppResponse<TeamPrivate>>;
|
|
3368
|
+
update(teamSlug: string, data: TeamMutationPayload): Promise<IAppResponse<TeamPrivate>>;
|
|
3369
|
+
invite(teamSlug: string, payload: {
|
|
3370
|
+
email: string;
|
|
3371
|
+
role: 'owner' | 'admin' | 'member';
|
|
3372
|
+
}): Promise<IAppResponse<void>>;
|
|
3373
|
+
updateLogo(teamSlug: string, logo: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
3374
|
+
updateCover(teamSlug: string, cover: MediaLibraryItems): Promise<IAppResponse<TeamPrivate>>;
|
|
3375
|
+
updateSetting(teamSlug: string, key: string, value: boolean | string | number | object | null): Promise<IAppResponse<TeamPrivate>>;
|
|
3376
|
+
listPrivate(): Promise<IAppResponse<TeamPrivate[]>>;
|
|
3377
|
+
getInviteByToken(token: string): Promise<IAppResponse<TeamInviteInfo>>;
|
|
3378
|
+
acceptInvite(slug: string): Promise<IAppResponse<void>>;
|
|
1756
3379
|
}
|
|
1757
3380
|
//#endregion
|
|
1758
3381
|
//#region src/resources/updates.d.ts
|
|
@@ -1763,44 +3386,76 @@ declare class UpdatesResource {
|
|
|
1763
3386
|
type?: string;
|
|
1764
3387
|
tags?: string;
|
|
1765
3388
|
with?: UpdateRelation[];
|
|
1766
|
-
}): Promise<IAppResponse<
|
|
1767
|
-
data: Update[];
|
|
1768
|
-
}>>;
|
|
3389
|
+
}): Promise<IAppResponse<Update[]>>;
|
|
1769
3390
|
list(params?: {
|
|
1770
3391
|
type?: UpdateType;
|
|
1771
3392
|
active?: boolean;
|
|
1772
3393
|
with?: UpdateRelation[];
|
|
1773
|
-
}): Promise<IAppResponse<
|
|
1774
|
-
data: Update[];
|
|
1775
|
-
}>>;
|
|
3394
|
+
}): Promise<IAppResponse<Update[]>>;
|
|
1776
3395
|
create(payload: UpdateCreatePayload): Promise<IAppResponse<Update>>;
|
|
1777
3396
|
update(id: string, payload: UpdateUpdatePayload): Promise<IAppResponse<Update>>;
|
|
1778
|
-
delete(id: string): Promise<IAppResponse<
|
|
3397
|
+
delete(id: string): Promise<IAppResponse<void>>;
|
|
1779
3398
|
stats(): Promise<IAppResponse<UpdateStats>>;
|
|
1780
3399
|
}
|
|
1781
3400
|
//#endregion
|
|
1782
|
-
//#region src/resources/
|
|
1783
|
-
declare class
|
|
3401
|
+
//#region src/resources/upgrades.d.ts
|
|
3402
|
+
declare class UpgradesResource {
|
|
1784
3403
|
private readonly http;
|
|
1785
3404
|
constructor(http: IHttpService);
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
data: LinkVariation[];
|
|
3405
|
+
listPendingByTeam(teamSlug: string): Promise<IAppResponse<Upgrade[]>>;
|
|
3406
|
+
listPendingByAgent(agentId: string, entityType?: string, status?: UpgradeStatus): Promise<IAppResponse<Upgrade[]>>;
|
|
3407
|
+
get(agentId: string, upgradeId: string): Promise<IAppResponse<Upgrade>>;
|
|
3408
|
+
accept(agentId: string, upgradeId: string): Promise<IAppResponse<Upgrade>>;
|
|
3409
|
+
reject(agentId: string, upgradeId: string): Promise<IAppResponse<Upgrade>>;
|
|
3410
|
+
propose(agentId: string, entityType: 'character' | 'skill', proposedContent: string, reason?: string | null, entityId?: string | null): Promise<IAppResponse<Upgrade>>;
|
|
3411
|
+
}
|
|
3412
|
+
//#endregion
|
|
3413
|
+
//#region src/resources/users.d.ts
|
|
3414
|
+
declare class UsersResource {
|
|
3415
|
+
private readonly http;
|
|
3416
|
+
constructor(http: IHttpService);
|
|
3417
|
+
getPreference(key: keyof UserSettings): Promise<IAppResponse<{
|
|
3418
|
+
key: typeof key;
|
|
3419
|
+
value: JsonValue;
|
|
1802
3420
|
}>>;
|
|
1803
|
-
|
|
3421
|
+
updatePreference(key: keyof UserSettings, value: JsonValue): Promise<IAppResponse<UserPrivate>>;
|
|
3422
|
+
getMe(): Promise<IAppResponse<UserPrivate>>;
|
|
3423
|
+
updateMe(name: string, timezone: string): Promise<IAppResponse<UserPrivate>>;
|
|
3424
|
+
updateEmail(email: string): Promise<IAppResponse<UserPrivate>>;
|
|
3425
|
+
resendEmailVerification(): Promise<IAppResponse<UserPrivate>>;
|
|
3426
|
+
deleteMe(): Promise<IAppResponse<void>>;
|
|
3427
|
+
updatePayoutAddress(address: string, chain?: string): Promise<IAppResponse<void>>;
|
|
3428
|
+
getAffiliate(code: string): Promise<IAppResponse<Affiliate>>;
|
|
3429
|
+
getAffiliateTiers(): Promise<IAppResponse<AffiliateTier[]>>;
|
|
3430
|
+
storeAffiliate(name: string, email: string, application: string): Promise<IAppResponse<void>>;
|
|
3431
|
+
getEarnings(page: number): Promise<IAppResponse<Earning[]>>;
|
|
3432
|
+
getPayouts(page: number): Promise<IAppResponse<PayoutEntry[]>>;
|
|
3433
|
+
requestPayout(): Promise<IAppResponse<PayoutEntry>>;
|
|
3434
|
+
}
|
|
3435
|
+
//#endregion
|
|
3436
|
+
//#region src/resources/voice.d.ts
|
|
3437
|
+
type TranscriptionResponse = {
|
|
3438
|
+
text: string;
|
|
3439
|
+
language?: string | null;
|
|
3440
|
+
duration?: number | null;
|
|
3441
|
+
};
|
|
3442
|
+
declare class VoiceResource {
|
|
3443
|
+
private readonly http;
|
|
3444
|
+
constructor(http: IHttpService);
|
|
3445
|
+
transcribe(teamSlug: string, audio: File, language?: string | null, prompt?: string | null): Promise<IAppResponse<TranscriptionResponse>>;
|
|
3446
|
+
}
|
|
3447
|
+
//#endregion
|
|
3448
|
+
//#region src/resources/wallets.d.ts
|
|
3449
|
+
declare class WalletsResource {
|
|
3450
|
+
private readonly http;
|
|
3451
|
+
constructor(http: IHttpService);
|
|
3452
|
+
store(agentUuid: string, provider: WarpWalletProvider, chain: WarpChainName, address: string | null): Promise<IAppResponse<Record<string, unknown>>>;
|
|
3453
|
+
delete(agentUuid: string, chain: WarpChainName): Promise<IAppResponse<void>>;
|
|
3454
|
+
sort(agentUuid: string, walletOrders: {
|
|
3455
|
+
chain: WarpChainName;
|
|
3456
|
+
order: number;
|
|
3457
|
+
}[]): Promise<IAppResponse<Record<string, unknown>>>;
|
|
3458
|
+
getProviders(agentUuid: string): Promise<IAppResponse<Record<string, unknown>>>;
|
|
1804
3459
|
}
|
|
1805
3460
|
//#endregion
|
|
1806
3461
|
//#region src/resources/warps.d.ts
|
|
@@ -1811,11 +3466,14 @@ type BackendWarpBrand = {
|
|
|
1811
3466
|
logo?: string | null;
|
|
1812
3467
|
isPublic?: boolean;
|
|
1813
3468
|
};
|
|
3469
|
+
type WarpDefinition = Record<string, JsonValue>;
|
|
3470
|
+
type BackendWarpCreateResponse = Pick<BackendWarp, 'id' | 'url' | 'definition' | 'brand'>;
|
|
3471
|
+
type BackendWarpUpdateResponse = Pick<BackendWarp, 'id'>;
|
|
1814
3472
|
type BackendWarp = {
|
|
1815
3473
|
id: string;
|
|
1816
3474
|
title: string;
|
|
1817
3475
|
url: string;
|
|
1818
|
-
definition:
|
|
3476
|
+
definition: WarpDefinition;
|
|
1819
3477
|
brand: BackendWarpBrand | null;
|
|
1820
3478
|
agent?: AgentPrivate | null;
|
|
1821
3479
|
};
|
|
@@ -1826,36 +3484,48 @@ declare class WarpsResource {
|
|
|
1826
3484
|
show(identifier: string): Promise<IAppResponse<BackendWarp>>;
|
|
1827
3485
|
create(data: {
|
|
1828
3486
|
brand: string;
|
|
1829
|
-
definition:
|
|
3487
|
+
definition: WarpDefinition;
|
|
1830
3488
|
public?: boolean;
|
|
1831
3489
|
agent?: string | null;
|
|
1832
|
-
}): Promise<IAppResponse<
|
|
1833
|
-
id: string;
|
|
1834
|
-
url: string;
|
|
1835
|
-
definition: Record<string, any>;
|
|
1836
|
-
brand: any;
|
|
1837
|
-
}>>;
|
|
3490
|
+
}): Promise<IAppResponse<BackendWarpCreateResponse>>;
|
|
1838
3491
|
update(identifier: string, data: {
|
|
1839
|
-
definition?:
|
|
3492
|
+
definition?: WarpDefinition;
|
|
1840
3493
|
agent?: string | null;
|
|
1841
3494
|
public?: boolean;
|
|
1842
|
-
}): Promise<IAppResponse<
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
destroy(identifier: string): Promise<IAppResponse<unknown>>;
|
|
1846
|
-
execute(identifier: string, inputs: string[], room?: string): Promise<IAppResponse<any>>;
|
|
3495
|
+
}): Promise<IAppResponse<BackendWarpUpdateResponse>>;
|
|
3496
|
+
destroy(identifier: string): Promise<IAppResponse<void>>;
|
|
3497
|
+
execute(identifier: string, inputs: string[], room?: string): Promise<IAppResponse<JsonValue>>;
|
|
1847
3498
|
}
|
|
1848
3499
|
//#endregion
|
|
1849
|
-
//#region src/resources/
|
|
1850
|
-
declare class
|
|
3500
|
+
//#region src/resources/webhooks.d.ts
|
|
3501
|
+
declare class WebhooksResource {
|
|
1851
3502
|
private readonly http;
|
|
1852
3503
|
constructor(http: IHttpService);
|
|
1853
|
-
list(
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
3504
|
+
list(agentId: string): Promise<IAppResponse<Webhook[]>>;
|
|
3505
|
+
create(agentId: string, name: string, url: string, trigger: WebhookTriggerEvent, options?: {
|
|
3506
|
+
headers?: Record<string, string>;
|
|
3507
|
+
description?: string;
|
|
3508
|
+
active?: boolean;
|
|
3509
|
+
verifySsl?: boolean;
|
|
3510
|
+
timeout?: number;
|
|
3511
|
+
maxRetries?: number;
|
|
3512
|
+
}): Promise<IAppResponse<Webhook>>;
|
|
3513
|
+
update(agentId: string, webhookId: string, updates: {
|
|
3514
|
+
name?: string;
|
|
3515
|
+
url?: string;
|
|
3516
|
+
trigger?: WebhookTriggerEvent;
|
|
3517
|
+
headers?: Record<string, string>;
|
|
3518
|
+
description?: string;
|
|
3519
|
+
active?: boolean;
|
|
3520
|
+
verifySsl?: boolean;
|
|
3521
|
+
timeout?: number;
|
|
3522
|
+
maxRetries?: number;
|
|
3523
|
+
}): Promise<IAppResponse<Webhook>>;
|
|
3524
|
+
delete(agentId: string, webhookId: string): Promise<IAppResponse<void>>;
|
|
3525
|
+
listWarps(agentId: string): Promise<IAppResponse<AgentWebhookWarp[]>>;
|
|
3526
|
+
activateWarp(agentId: string, payload: ActivateAgentWebhookWarpPayload): Promise<IAppResponse<AgentWebhookWarp>>;
|
|
3527
|
+
deactivateWarp(agentId: string, warpIdentifier: string): Promise<IAppResponse<void>>;
|
|
3528
|
+
deleteWarpHook(agentId: string, webhookId: number): Promise<IAppResponse<void>>;
|
|
1859
3529
|
}
|
|
1860
3530
|
//#endregion
|
|
1861
3531
|
//#region src/cache/types.d.ts
|
|
@@ -1876,35 +3546,60 @@ interface JoAiClientConfig {
|
|
|
1876
3546
|
declare class JoAiClient {
|
|
1877
3547
|
readonly http: IHttpService;
|
|
1878
3548
|
private readonly env;
|
|
1879
|
-
readonly appointments: AppointmentsResource;
|
|
1880
|
-
readonly hub: HubResource;
|
|
1881
|
-
readonly teams: TeamsResource;
|
|
1882
3549
|
readonly agents: AgentsResource;
|
|
3550
|
+
readonly alerts: AlertsResource;
|
|
3551
|
+
readonly appointments: AppointmentsResource;
|
|
3552
|
+
readonly auth: AuthResource;
|
|
3553
|
+
readonly billing: BillingResource;
|
|
3554
|
+
readonly billingAddresses: BillingAddressesResource;
|
|
1883
3555
|
readonly blueprints: BlueprintsResource;
|
|
3556
|
+
readonly cards: CardsResource;
|
|
3557
|
+
readonly cart: CartsResource;
|
|
3558
|
+
readonly changelog: ChangelogResource;
|
|
3559
|
+
readonly contacts: ContactsResource;
|
|
3560
|
+
readonly contracts: ContractsResource;
|
|
3561
|
+
readonly documents: DocumentsResource;
|
|
1884
3562
|
readonly flows: FlowsResource;
|
|
1885
|
-
readonly
|
|
1886
|
-
readonly
|
|
1887
|
-
readonly skills: SkillsResource;
|
|
3563
|
+
readonly goals: GoalsResource;
|
|
3564
|
+
readonly hub: HubResource;
|
|
1888
3565
|
readonly ingestions: IngestionsResource;
|
|
1889
|
-
readonly
|
|
1890
|
-
readonly
|
|
3566
|
+
readonly inquiries: InquiriesResource;
|
|
3567
|
+
readonly integrations: IntegrationsResource;
|
|
3568
|
+
readonly intents: IntentsResource;
|
|
1891
3569
|
readonly items: ItemsResource;
|
|
3570
|
+
readonly links: LinksResource;
|
|
3571
|
+
readonly loyalty: LoyaltyResource;
|
|
3572
|
+
readonly marketplace: MarketplaceResource;
|
|
3573
|
+
readonly media: MediaResource;
|
|
3574
|
+
readonly meetings: MeetingsResource;
|
|
1892
3575
|
readonly memories: MemoriesResource;
|
|
1893
|
-
readonly
|
|
1894
|
-
readonly
|
|
3576
|
+
readonly messages: MessagesResource;
|
|
3577
|
+
readonly missions: MissionsResource;
|
|
3578
|
+
readonly notifications: NotificationsResource;
|
|
3579
|
+
readonly office: OfficeResource;
|
|
1895
3580
|
readonly orders: OrdersResource;
|
|
3581
|
+
readonly persona: PersonaResource;
|
|
3582
|
+
readonly privateWarps: WarpsResource;
|
|
1896
3583
|
readonly products: ProductsResource;
|
|
3584
|
+
readonly projects: ProjectsResource;
|
|
3585
|
+
readonly reminders: RemindersResource;
|
|
3586
|
+
readonly rooms: RoomsResource;
|
|
3587
|
+
readonly services: ServicesResource;
|
|
3588
|
+
readonly shortcuts: ShortcutsResource;
|
|
1897
3589
|
readonly sites: SitesResource;
|
|
1898
|
-
readonly
|
|
1899
|
-
readonly
|
|
1900
|
-
readonly media: MediaResource;
|
|
3590
|
+
readonly skills: SkillsResource;
|
|
3591
|
+
readonly stats: StatsResource;
|
|
1901
3592
|
readonly stores: StoresResource;
|
|
1902
|
-
readonly updates: UpdatesResource;
|
|
1903
|
-
readonly links: LinksResource;
|
|
1904
|
-
readonly privateWarps: WarpsResource;
|
|
1905
3593
|
readonly subscriptions: SubscriptionsResource;
|
|
1906
|
-
readonly
|
|
1907
|
-
readonly
|
|
3594
|
+
readonly swarms: SwarmsResource;
|
|
3595
|
+
readonly tasks: TasksResource;
|
|
3596
|
+
readonly teams: TeamsResource;
|
|
3597
|
+
readonly updates: UpdatesResource;
|
|
3598
|
+
readonly upgrades: UpgradesResource;
|
|
3599
|
+
readonly users: UsersResource;
|
|
3600
|
+
readonly voice: VoiceResource;
|
|
3601
|
+
readonly wallets: WalletsResource;
|
|
3602
|
+
readonly webhooks: WebhooksResource;
|
|
1908
3603
|
constructor(config: JoAiClientConfig);
|
|
1909
3604
|
clearCache(): void;
|
|
1910
3605
|
warps(locale?: WarpLocale, currentUrl?: string): WarpClient;
|
|
@@ -1921,16 +3616,16 @@ declare class CachedHttpService implements IHttpService {
|
|
|
1921
3616
|
private ttlMap;
|
|
1922
3617
|
private defaultTtl;
|
|
1923
3618
|
onNetworkError: (error: Error) => void;
|
|
1924
|
-
onUnauthorized: (response: IAppResponse<
|
|
1925
|
-
onSuccessfulResponse: (response: IAppResponse<
|
|
1926
|
-
onMaintenanceMode: (response: IAppResponse<
|
|
1927
|
-
onTooManyRequests: (response: IAppResponse<
|
|
3619
|
+
onUnauthorized: (response: IAppResponse<JsonValue>) => void;
|
|
3620
|
+
onSuccessfulResponse: (response: IAppResponse<JsonValue>) => void;
|
|
3621
|
+
onMaintenanceMode: (response: IAppResponse<JsonValue>) => void;
|
|
3622
|
+
onTooManyRequests: (response: IAppResponse<JsonValue>) => void;
|
|
1928
3623
|
constructor(inner: IHttpService, overrides?: TtlMap, defaultTtl?: number);
|
|
1929
3624
|
clearCache(): void;
|
|
1930
3625
|
get<T>(url: string, options?: IRequestOptions): Promise<IAppResponse<T>>;
|
|
1931
|
-
post<T>(url: string, data?:
|
|
1932
|
-
put<T>(url: string, data?:
|
|
1933
|
-
patch<T>(url: string, data?:
|
|
3626
|
+
post<T>(url: string, data?: JsonValue | FormData, options?: IRequestOptions): Promise<IAppResponse<T>>;
|
|
3627
|
+
put<T>(url: string, data?: JsonValue | FormData, options?: IRequestOptions): Promise<IAppResponse<T>>;
|
|
3628
|
+
patch<T>(url: string, data?: JsonValue | FormData, options?: IRequestOptions): Promise<IAppResponse<T>>;
|
|
1934
3629
|
delete<T>(url: string, options?: IRequestOptions): Promise<IAppResponse<T>>;
|
|
1935
3630
|
}
|
|
1936
3631
|
//#endregion
|
|
@@ -1940,4 +3635,4 @@ declare class DistributionResource {
|
|
|
1940
3635
|
private fetchDistribution;
|
|
1941
3636
|
}
|
|
1942
3637
|
//#endregion
|
|
1943
|
-
export { AppointmentsResource, AuthResource, type AuthSendCodeRequest, type AuthVerifyResponse, type BackendWarp, type BackendWarpBrand, BlueprintsResource, type CacheConfig, CachedHttpService, CartsResource, ContactsResource, DistributionResource, FlowsResource, IngestionsResource, JoAiClient, type JoAiClientConfig, LinksResource, MarketplaceResource, MeetingsResource,
|
|
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, MarketplaceResource, MeetingsResource, MemoriesResource, MessagesResource, MissionsResource, NotificationsResource, OfficeResource, type OpeningHoursEntry, type OpeningHoursFormatOptions, OrdersResource, PersonaResource, type Product, type ProductVariation, ProductsResource, ProjectsResource, RemindersResource, ServicesResource, ShortcutsResource, SitesResource, SkillsResource, StatsResource, StoresResource, SubscriptionsResource, SwarmsResource, TasksResource, type TeamInviteInfo, TeamsResource, UpdatesResource, UpgradesResource, UsersResource, VoiceResource, WalletsResource, WarpsResource, WebhooksResource, createClient, formatOpeningHours };
|