@joai/core 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -136,34 +136,39 @@ type Character = {
136
136
  bio: WarpText | null;
137
137
  };
138
138
  //#endregion
139
- //#region src/media/types.d.ts
140
- type AppFileType = 'abi' | 'pdf' | 'image' | 'video' | 'json';
141
- type AppFile = {
142
- type: AppFileType;
143
- original: File;
144
- };
145
- type MediaLibraryAttributes = {
146
- uuid: string;
147
- order: number;
139
+ //#region src/flow/types.d.ts
140
+ type FlowCategory = 'none' | 'defi' | 'nft' | 'social' | 'devtools' | 'productivity' | 'trading' | 'portfolio';
141
+ type FlowStatus = 'draft' | 'published';
142
+ type Flow = {
143
+ slug: string;
144
+ team: Team;
148
145
  name: string;
149
- custom_properties: {
150
- [key: string]: any;
151
- };
152
- preview_url: null | string;
153
- original_url: null | string;
154
- extension?: string;
155
- size?: number;
146
+ description: string | null;
147
+ category: FlowCategory;
148
+ status: FlowStatus;
149
+ publishedAt: string | null;
150
+ createdAt: string;
151
+ updatedAt: string;
152
+ steps: FlowStep[];
153
+ locales: WarpLocale[];
154
+ marketplace: MarketplaceInfo;
155
+ screenshots: string[];
156
156
  };
157
- type MediaLibraryItems = {
158
- [uuid: string]: MediaLibraryAttributes;
157
+ type FlowStep = {
158
+ stepId: string;
159
+ order: number;
160
+ type: 'warp' | 'condition' | 'delay';
161
+ warpIdentifier: string | null;
162
+ dependsOn: string[] | null;
163
+ inputMappings: FlowInputMapping[] | null;
164
+ staticInputs: Record<string, any> | null;
165
+ condition: Record<string, any> | null;
159
166
  };
160
- 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';
161
- type Media = {
162
- id: string;
163
- name: string;
164
- mime: MediaMime;
165
- url: string;
166
- library: MediaLibraryAttributes;
167
+ type FlowInputMapping = {
168
+ sourceStepId: string;
169
+ sourceKey: string;
170
+ targetInput: string;
171
+ transform?: string;
167
172
  };
168
173
  //#endregion
169
174
  //#region src/wallet/types.d.ts
@@ -188,10 +193,16 @@ type UserSettings = {
188
193
  mode: UserMode;
189
194
  interests: UserInterest[];
190
195
  hotkeys?: Record<string, string> | null;
191
- payoutAddress?: string | null;
192
- payoutChain?: string | null;
193
- voicePlaybackMode?: 'voice-control' | 'chat' | 'both' | null;
194
- withdrawalWaiverAcceptedAt?: string | null;
196
+ 'payout.address'?: string | null;
197
+ 'payout.chain'?: string | null;
198
+ 'voice.playback-mode'?: 'voice-control' | 'chat' | 'both' | null;
199
+ 'voice.corrections'?: {
200
+ wrong: string;
201
+ correct: string;
202
+ }[];
203
+ 'warp.notifications'?: Record<string, Record<string, boolean>>;
204
+ 'withdrawal.waiver.accepted-at'?: string | null;
205
+ 'active.team'?: string | null;
195
206
  };
196
207
  type KycStatus = 'pending' | 'approved' | 'rejected';
197
208
  type Kyc = {
@@ -247,6 +258,12 @@ type User = {
247
258
  profileImageUrl: string;
248
259
  swarmRole: string | null;
249
260
  };
261
+ type AuthUser = {
262
+ id: string;
263
+ name: string;
264
+ phone: string | null;
265
+ email: string | null;
266
+ };
250
267
  type Affiliate = {
251
268
  name: string;
252
269
  tier: AffiliateTier;
@@ -274,27 +291,316 @@ type AffiliateTier = {
274
291
  };
275
292
  type AffiliateStatus = 'pending' | 'approved' | 'rejected' | 'suspended' | 'demoted';
276
293
  //#endregion
294
+ //#region src/team/constants.d.ts
295
+ declare const teamCategories: readonly ["general", "food-drink", "retail", "beauty-wellness", "health", "sports-fitness", "trades-services", "professional-services", "education-culture", "clubs-organizations", "leisure-tourism"];
296
+ //#endregion
297
+ //#region src/team/types.d.ts
298
+ type TeamCategory = typeof teamCategories[number];
299
+ type TeamFeature = 'shop' | 'appointments';
300
+ type TeamMember = User & {
301
+ role: UserRole | null;
302
+ roleAcceptedAt: string | null;
303
+ email: string | null;
304
+ };
305
+ type TeamMeta = {
306
+ 'extra.messages'?: number;
307
+ 'limit.spending'?: number | null;
308
+ 'currency'?: string;
309
+ 'extra.usage.enabled'?: boolean;
310
+ 'auto.reload.enabled'?: boolean;
311
+ 'auto.reload.threshold_cents'?: number | null;
312
+ 'auto.reload.amount_cents'?: number | null;
313
+ 'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
314
+ 'byok.providers'?: ByokProviders | null;
315
+ 'board.auto.enabled'?: boolean;
316
+ 'payments.online'?: boolean;
317
+ 'payments.coupons'?: boolean;
318
+ 'stock.enabled'?: boolean;
319
+ 'branding'?: TeamBrand | null;
320
+ settings: Record<string, unknown>;
321
+ };
322
+ type Team = {
323
+ slug: string;
324
+ name: string;
325
+ personal: boolean;
326
+ category: TeamCategory;
327
+ tags?: string[] | null;
328
+ description: TranslatableValue | null;
329
+ locale: WarpLocale;
330
+ timezone: string;
331
+ meta?: TeamMeta;
332
+ features?: TeamFeature[];
333
+ cover?: string | null;
334
+ logo: string | null;
335
+ tagline?: TranslatableValue | null;
336
+ public: boolean;
337
+ createdAt: string;
338
+ blueprints?: Blueprint[];
339
+ flows?: Flow[];
340
+ };
341
+ type TeamBrand = {
342
+ bg?: string;
343
+ fg?: string;
344
+ label?: string;
345
+ logo?: string;
346
+ bankName?: string;
347
+ bankIban?: string;
348
+ bankBic?: string;
349
+ invoiceAddress?: string;
350
+ invoiceVat?: string;
351
+ invoiceCity?: string;
352
+ invoiceZip?: string;
353
+ invoiceCountry?: string;
354
+ };
355
+ type TeamPrivate = {
356
+ slug: string;
357
+ name: string;
358
+ personal: boolean;
359
+ description: TranslatableValue | null;
360
+ tags?: string[] | null;
361
+ tagline: TranslatableValue | null;
362
+ balance: number;
363
+ locale: WarpLocale;
364
+ timezone: string;
365
+ logo: string | null;
366
+ cover: string | null;
367
+ subscription: {
368
+ premium: boolean;
369
+ lifetime: boolean;
370
+ plan: Plan;
371
+ provider: PaymentProvider | null;
372
+ payer: User | null;
373
+ gracePeriod: boolean;
374
+ autoRenew: boolean;
375
+ cycleEndsAt: string | null;
376
+ resetsAt: string | null;
377
+ startedAt: string | null;
378
+ renewedAt: string | null;
379
+ expiresAt: string | null;
380
+ };
381
+ meta: TeamMeta;
382
+ branding: TeamBrand;
383
+ category: TeamCategory;
384
+ createdAt: string;
385
+ justCreated: boolean;
386
+ };
387
+ type ByokProviderConfig = {
388
+ apiKey?: string;
389
+ accessKey?: string;
390
+ secretKey?: string;
391
+ };
392
+ type ByokProviders = {
393
+ openai?: ByokProviderConfig;
394
+ anthropic?: ByokProviderConfig;
395
+ google?: ByokProviderConfig;
396
+ xai?: ByokProviderConfig;
397
+ klingai?: ByokProviderConfig;
398
+ };
399
+ type ByokProviderName = keyof ByokProviders;
400
+ type TeamSettings = {
401
+ 'extra.messages': number;
402
+ 'limit.spending': number | null;
403
+ 'currency': string;
404
+ 'extra.usage.enabled'?: boolean;
405
+ 'auto.reload.enabled'?: boolean;
406
+ 'auto.reload.threshold_cents'?: number | null;
407
+ 'auto.reload.amount_cents'?: number | null;
408
+ 'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
409
+ 'byok.providers'?: ByokProviders | null;
410
+ 'board.auto.enabled'?: boolean;
411
+ 'payments.online'?: boolean;
412
+ 'payments.coupons'?: boolean;
413
+ 'stock.enabled'?: boolean;
414
+ 'branding'?: TeamBrand | null;
415
+ };
416
+ type TeamUsage = Partial<Record<PlanFeature, TeamFeatureUsage>> & {
417
+ extraUsageEnabled?: boolean;
418
+ currentSpending?: number;
419
+ walletCloudUsed?: number;
420
+ walletCloudPremiumUsed?: number;
421
+ spendingLimit?: number | null;
422
+ cycleEndsAt?: string | null;
423
+ resetsAt?: string | null;
424
+ autoReload?: {
425
+ enabled: boolean;
426
+ thresholdCents: number | null;
427
+ amountCents: number | null;
428
+ };
429
+ };
430
+ type TeamFeatureUsage = {
431
+ current: number;
432
+ limit: number;
433
+ reached?: boolean;
434
+ };
435
+ type AiCostEntry = {
436
+ id: number;
437
+ model: string | null;
438
+ agent: {
439
+ name: string;
440
+ uuid: string;
441
+ } | null;
442
+ inputTokens: number;
443
+ outputTokens: number;
444
+ totalTokens: number;
445
+ costCents: number | null;
446
+ createdAt: string;
447
+ };
448
+ type AiCostsSummary = {
449
+ totalCostCents: number;
450
+ totalTokens: number;
451
+ totalRequests: number;
452
+ byModel: Record<string, {
453
+ costCents: number;
454
+ tokens: number;
455
+ count: number;
456
+ }>;
457
+ };
458
+ type AiCostsResponse = {
459
+ summary: AiCostsSummary;
460
+ usages: {
461
+ data: AiCostEntry[];
462
+ pagination: {
463
+ currentPage: number;
464
+ lastPage: number;
465
+ perPage: number;
466
+ total: number;
467
+ };
468
+ };
469
+ };
470
+ //#endregion
471
+ //#region src/json/types.d.ts
472
+ type JsonValue = string | number | boolean | null | JsonValue[] | {
473
+ [key: string]: JsonValue;
474
+ };
475
+ //#endregion
476
+ //#region src/contact/types.d.ts
477
+ type Contact = {
478
+ id: string;
479
+ name: string;
480
+ wallets: Wallet[];
481
+ email: string | null;
482
+ phone: string | null;
483
+ company: string | null;
484
+ title: string | null;
485
+ birthday: string | null;
486
+ website: string | null;
487
+ location: string | null;
488
+ socials: Record<string, string> | null;
489
+ notes: string | null;
490
+ tags: string[] | null;
491
+ userId: string | null;
492
+ locale?: string | null;
493
+ props?: Record<string, string> | null;
494
+ };
495
+ type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form' | 'loyalty';
496
+ type ContactActivityAuthor = {
497
+ name: string;
498
+ imageUrl: string | null;
499
+ };
500
+ type ContactActivity = {
501
+ id: string;
502
+ type: ContactActivityType;
503
+ description: string | null;
504
+ meta: Record<string, JsonValue> | null;
505
+ agentName: string | null;
506
+ createdAt: string;
507
+ author?: ContactActivityAuthor | null;
508
+ };
509
+ type ContactFormData = {
510
+ name?: string;
511
+ email?: string | null;
512
+ phone?: string | null;
513
+ company?: string | null;
514
+ title?: string | null;
515
+ birthday?: string | null;
516
+ website?: string | null;
517
+ location?: string | null;
518
+ socials?: Record<string, string> | null;
519
+ notes?: string | null;
520
+ tags?: string[] | null;
521
+ locale?: string | null;
522
+ props?: Record<string, string> | null;
523
+ };
524
+ type ContactCreatePayload = ContactFormData & {
525
+ name: string;
526
+ wallets?: WalletList;
527
+ };
528
+ //#endregion
529
+ //#region src/media/types.d.ts
530
+ type AppFileType = 'abi' | 'pdf' | 'image' | 'video' | 'json';
531
+ type AppFile = {
532
+ type: AppFileType;
533
+ original: File;
534
+ };
535
+ type MediaLibraryAttributes = {
536
+ uuid: string;
537
+ order: number;
538
+ name: string;
539
+ custom_properties: {
540
+ [key: string]: JsonValue;
541
+ };
542
+ preview_url: null | string;
543
+ original_url: null | string;
544
+ extension?: string;
545
+ size?: number;
546
+ };
547
+ type MediaLibraryItems = {
548
+ [uuid: string]: MediaLibraryAttributes;
549
+ };
550
+ 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';
551
+ type Media = {
552
+ id: string;
553
+ name: string;
554
+ mime: MediaMime;
555
+ url: string;
556
+ library: MediaLibraryAttributes;
557
+ tags?: string[];
558
+ };
559
+ //#endregion
277
560
  //#region src/billing/types.d.ts
278
561
  type TranslatableValue = Partial<Record<WarpLocale, string>>;
279
562
  type OrderStatus = 'pending' | 'completed' | 'delivered' | 'canceled';
563
+ type OrderSource = 'auto' | 'manual' | 'kiosk';
280
564
  type SubscriptionStatus = 'active' | 'canceled' | 'past_due';
281
- type SubscriptionInterval = 'weekly' | 'monthly' | 'yearly';
565
+ type SubscriptionInterval = 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly';
566
+ type PricingModel = 'free' | 'one-time' | 'weekly' | 'biweekly' | 'monthly' | 'quarterly' | 'yearly' | 'per-run';
282
567
  type AppSubscription = {
283
568
  id: string;
284
569
  orderId: string;
285
570
  teamId: string;
286
- contactId: string | null;
571
+ contact: Contact | null;
287
572
  status: SubscriptionStatus;
288
573
  interval: SubscriptionInterval | null;
289
574
  renewsAt: string | null;
290
575
  cancelledAt: string | null;
291
576
  locale: string | null;
292
- meta: Record<string, any> | null;
577
+ meta: Record<string, JsonValue> | null;
293
578
  createdAt: string;
294
579
  updatedAt: string;
295
580
  };
296
- type PaymentProvider = 'xmoney' | 'lemonsqueezy' | 'stripe' | 'apple' | 'google' | 'blockchain' | 'offline';
297
- 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';
581
+ type PaymentProvider = 'xmoney' | 'lemonsqueezy' | 'stripe' | 'stripe-connect' | 'apple' | 'google' | 'blockchain' | 'offline';
582
+ type PaymentAccount = {
583
+ provider: string;
584
+ connected: boolean;
585
+ chargesEnabled: boolean;
586
+ payoutsEnabled: boolean;
587
+ detailsSubmitted: boolean;
588
+ requirements: string[];
589
+ };
590
+ type PaymentAccountOnboarding = {
591
+ url: string;
592
+ };
593
+ type TerminalConnectionToken = {
594
+ secret: string;
595
+ locationId: string;
596
+ connectedAccountId: string;
597
+ };
598
+ type TerminalPaymentIntent = {
599
+ clientSecret: string;
600
+ paymentIntentId: string;
601
+ connectedAccountId: string;
602
+ };
603
+ 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';
298
604
  type PlanBenefit = {
299
605
  label: Partial<Record<WarpLocale, string>>;
300
606
  tip?: Partial<Record<WarpLocale, string>>;
@@ -326,9 +632,9 @@ type Plan = {
326
632
  interval: PlanInterval;
327
633
  intervalDisplay: PlanInterval;
328
634
  features: PlanFeature[];
329
- benefits: Record<PlanFeature, PlanBenefit>;
330
- limits: Record<PlanFeature, string>;
331
- extras: Record<PlanFeature, PlanExtra>;
635
+ benefits: Partial<Record<PlanFeature, PlanBenefit>>;
636
+ limits: Partial<Record<PlanFeature, string>>;
637
+ extras: Partial<Record<PlanFeature, PlanExtra>>;
332
638
  meta: {
333
639
  appleProductId: string | null;
334
640
  googleProductId: string | null;
@@ -345,8 +651,8 @@ type Tier = {
345
651
  price: string;
346
652
  priceSuffix?: string;
347
653
  description: string;
348
- benefits: Record<PlanFeature, PlanBenefit>;
349
- extras: Record<PlanFeature, PlanExtra>;
654
+ benefits: Partial<Record<PlanFeature, PlanBenefit>>;
655
+ extras: Partial<Record<PlanFeature, PlanExtra>>;
350
656
  mostPopular: boolean;
351
657
  mostRecommended: boolean;
352
658
  cta?: string;
@@ -387,11 +693,11 @@ type VolumePrice = {
387
693
  minQty: number;
388
694
  unitPrice: number;
389
695
  };
390
- type ProductConfiguration = Record<string, WarpNativeValue>;
696
+ type Configuration = Record<string, WarpNativeValue>;
391
697
  type OrderConfigurationItem = {
392
698
  itemId: string | null;
393
699
  type: string;
394
- configuration: ProductConfiguration;
700
+ configuration: Configuration;
395
701
  };
396
702
  type ProductVariationMeta = {
397
703
  itemGroupId?: string | null;
@@ -426,7 +732,7 @@ type ProductVariation = {
426
732
  order?: number | null;
427
733
  pieces?: ProductPieces | null;
428
734
  discount?: ProductDiscount | null;
429
- settings?: Record<string, unknown> | null;
735
+ settings?: Record<string, JsonValue> | null;
430
736
  product?: Product;
431
737
  meta?: ProductVariationMeta;
432
738
  nativePriceStr?: string | null;
@@ -441,287 +747,96 @@ type Product = {
441
747
  public?: boolean;
442
748
  meta?: ProductMeta;
443
749
  virtual?: boolean;
444
- tags?: string[] | null;
445
- createdAt?: string;
446
- updatedAt?: string;
447
- variations: ProductVariation[];
448
- relatedProducts?: ProductRelation[];
449
- rating?: ProductRating;
450
- settings?: Record<string, unknown> | null;
451
- volumePrices?: VolumePrice[];
452
- media?: Media[];
453
- };
454
- type OrderItem = {
455
- id: string;
456
- name: string;
457
- quantity: number;
458
- unitPrice: number;
459
- type: 'product-variation' | 'service';
460
- };
461
- type Order = {
462
- resource: 'order';
463
- id: string;
464
- total: number;
465
- provider: PaymentProvider;
466
- status: OrderStatus;
467
- paymentUrl?: string | null;
468
- invoiceUrl: string;
469
- createdAt: string;
470
- invoiceDate: string;
471
- meta: Record<string, any> | null;
472
- configuration?: OrderConfigurationItem[];
473
- items: OrderItem[];
474
- plan: Plan | null;
475
- user: UserPrivate | null;
476
- team: TeamPrivate | null;
477
- isSubscription: boolean;
478
- };
479
- type CartItem = {
480
- id: string;
481
- name: TranslatableValue;
482
- price: number;
483
- quantity: number;
484
- type: 'service' | 'product';
485
- sku: string | null;
486
- badge: string | null;
487
- configuration?: ProductConfiguration;
488
- media: Media[];
489
- product?: Product | null;
490
- };
491
- type Cart = {
492
- subtotal: number;
493
- taxes: {
494
- amount: number;
495
- percent: number;
496
- };
497
- total: number;
498
- items: CartItem[];
499
- coupon: Coupon | null;
500
- couponDiscount: number;
501
- };
502
- type Coupon = {
503
- code: string;
504
- amount: number;
505
- percent: number;
506
- expiresAt: string | null;
507
- };
508
- type PurchaseResult = {
509
- order_id?: string;
510
- message?: string;
511
- subscription_active?: boolean;
512
- };
513
- type PurchaseOptions = {
514
- forceProvider?: PaymentProvider;
515
- billingAddress?: BillingAddress | null;
516
- meta?: Record<string, string>;
517
- };
518
- //#endregion
519
- //#region src/team/types.d.ts
520
- type TeamCategory = 'general' | 'appointment' | 'restaurant' | 'service' | 'fitness' | 'beauty' | 'consultation';
521
- type TeamFeature = 'shop' | 'appointments';
522
- type TeamMember = User & {
523
- role: UserRole | null;
524
- roleAcceptedAt: string | null;
525
- email: string | null;
526
- };
527
- type TeamMeta = {
528
- 'extra.messages'?: number;
529
- 'limit.spending'?: number | null;
530
- 'currency'?: string;
531
- 'extra.usage.enabled'?: boolean;
532
- 'auto.reload.enabled'?: boolean;
533
- 'auto.reload.threshold_cents'?: number | null;
534
- 'auto.reload.amount_cents'?: number | null;
535
- 'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
536
- 'byok.providers'?: ByokProviders | null;
537
- 'board.auto.enabled'?: boolean;
538
- 'payments.online'?: boolean;
539
- 'payments.coupons'?: boolean;
540
- 'stock.enabled'?: boolean;
541
- 'branding'?: TeamBrand | null;
542
- settings: Record<string, unknown>;
543
- };
544
- type Team = {
545
- slug: string;
546
- name: string;
547
- personal: boolean;
548
- category?: TeamCategory;
549
- description: TranslatableValue | null;
550
- locale: WarpLocale;
551
- timezone: string;
552
- meta?: TeamMeta;
553
- features?: TeamFeature[];
554
- cover?: string | null;
555
- logo: string | null;
556
- tagline?: TranslatableValue | null;
557
- public: boolean;
558
- createdAt: string;
559
- blueprints?: Blueprint[];
560
- flows?: Flow[];
561
- };
562
- type TeamBrand = {
563
- bg?: string;
564
- fg?: string;
565
- label?: string;
566
- logo?: string;
567
- bankName?: string;
568
- bankIban?: string;
569
- bankBic?: string;
570
- invoiceAddress?: string;
571
- invoiceVat?: string;
572
- invoiceCity?: string;
573
- invoiceZip?: string;
574
- invoiceCountry?: string;
575
- };
576
- type TeamPrivate = {
577
- slug: string;
578
- name: string;
579
- personal: boolean;
580
- description: TranslatableValue | null;
581
- tagline: TranslatableValue | null;
582
- balance: number;
583
- locale: WarpLocale;
584
- timezone: string;
585
- logo: string | null;
586
- cover: string | null;
587
- subscription: {
588
- premium: boolean;
589
- lifetime: boolean;
590
- plan: Plan;
591
- provider: PaymentProvider | null;
592
- payer: User | null;
593
- gracePeriod: boolean;
594
- autoRenew: boolean;
595
- uncapped: boolean;
596
- cycleEndsAt: string | null;
597
- resetsAt: string | null;
598
- startedAt: string | null;
599
- renewedAt: string | null;
600
- expiresAt: string | null;
601
- };
602
- meta: TeamMeta;
603
- branding: TeamBrand;
604
- category?: TeamCategory;
605
- createdAt: string;
606
- justCreated: boolean;
607
- };
608
- type ByokProviderConfig = {
609
- apiKey?: string;
610
- accessKey?: string;
611
- secretKey?: string;
612
- };
613
- type ByokProviders = {
614
- openai?: ByokProviderConfig;
615
- anthropic?: ByokProviderConfig;
616
- google?: ByokProviderConfig;
617
- xai?: ByokProviderConfig;
618
- klingai?: ByokProviderConfig;
619
- };
620
- type ByokProviderName = keyof ByokProviders;
621
- type TeamSettings = {
622
- 'extra.messages': number;
623
- 'limit.spending': number | null;
624
- 'currency': string;
625
- 'extra.usage.enabled'?: boolean;
626
- 'auto.reload.enabled'?: boolean;
627
- 'auto.reload.threshold_cents'?: number | null;
628
- 'auto.reload.amount_cents'?: number | null;
629
- 'llm.provider'?: 'openai' | 'anthropic' | 'google' | 'xai' | null;
630
- 'byok.providers'?: ByokProviders | null;
631
- 'board.auto.enabled'?: boolean;
632
- 'payments.online'?: boolean;
633
- 'payments.coupons'?: boolean;
634
- 'stock.enabled'?: boolean;
635
- 'branding'?: TeamBrand | null;
750
+ tags?: string[] | null;
751
+ createdAt?: string;
752
+ updatedAt?: string;
753
+ variations: ProductVariation[];
754
+ relatedProducts?: ProductRelation[];
755
+ rating?: ProductRating;
756
+ settings?: Record<string, JsonValue> | null;
757
+ volumePrices?: VolumePrice[];
758
+ media?: Media[];
636
759
  };
637
- type TeamUsage = Partial<Record<PlanFeature, TeamFeatureUsage>> & {
638
- extraUsageEnabled?: boolean;
639
- currentSpending?: number;
640
- walletCloudUsed?: number;
641
- walletCloudPremiumUsed?: number;
642
- spendingLimit?: number | null;
643
- cycleEndsAt?: string | null;
644
- resetsAt?: string | null;
645
- autoReload?: {
646
- enabled: boolean;
647
- thresholdCents: number | null;
648
- amountCents: number | null;
649
- };
760
+ type OrderItem = {
761
+ id: string;
762
+ name: string;
763
+ quantity: number;
764
+ unitPrice: number;
765
+ type: 'product-variation' | 'service';
766
+ digital?: boolean | null;
767
+ sellerTeamId?: string | null;
650
768
  };
651
- type TeamFeatureUsage = {
652
- current: number;
653
- limit: number;
654
- reached?: boolean;
769
+ type OrderContext = {
770
+ type: string;
771
+ label?: string | null;
772
+ value: string;
655
773
  };
656
- type AiCostEntry = {
657
- id: number;
658
- model: string | null;
659
- agent: {
660
- name: string;
661
- uuid: string;
662
- } | null;
663
- inputTokens: number;
664
- outputTokens: number;
665
- totalTokens: number;
666
- costCents: number | null;
774
+ type Order = {
775
+ resource: 'order';
776
+ id: string;
777
+ total: number;
778
+ provider: PaymentProvider | null;
779
+ providerAccountId?: string | null;
780
+ requiresConnectedAccount?: boolean;
781
+ usesPlatformAccount?: boolean;
782
+ status: OrderStatus;
783
+ paymentUrl?: string | null;
784
+ invoiceUrl: string | null;
785
+ justCreated?: boolean;
667
786
  createdAt: string;
787
+ invoiceDate: string;
788
+ meta: Record<string, JsonValue> | null;
789
+ contactId: string | null;
790
+ source: OrderSource | null;
791
+ context: OrderContext | null;
792
+ paymentMode: string | null;
793
+ linkVariationId: string | null;
794
+ notes: string | null;
795
+ configuration?: OrderConfigurationItem[];
796
+ items: OrderItem[];
797
+ plan: Plan | null;
798
+ user: UserPrivate | null;
799
+ team: TeamPrivate | null;
800
+ isSubscription: boolean;
668
801
  };
669
- type AiCostsSummary = {
670
- totalCostCents: number;
671
- totalTokens: number;
672
- totalRequests: number;
673
- byModel: Record<string, {
674
- costCents: number;
675
- tokens: number;
676
- count: number;
677
- }>;
802
+ type CartItem = {
803
+ id: string;
804
+ name: TranslatableValue;
805
+ price: number;
806
+ quantity: number;
807
+ type: 'service' | 'product';
808
+ sku: string | null;
809
+ badge: string | null;
810
+ configuration?: Configuration;
811
+ media: Media[];
812
+ product?: Product | null;
678
813
  };
679
- type AiCostsResponse = {
680
- summary: AiCostsSummary;
681
- usages: {
682
- data: AiCostEntry[];
683
- pagination: {
684
- currentPage: number;
685
- lastPage: number;
686
- perPage: number;
687
- total: number;
688
- };
814
+ type Cart = {
815
+ subtotal: number;
816
+ taxes: {
817
+ amount: number;
818
+ percent: number;
689
819
  };
820
+ total: number;
821
+ items: CartItem[];
822
+ coupon: Coupon | null;
823
+ couponDiscount: number;
690
824
  };
691
- //#endregion
692
- //#region src/flow/types.d.ts
693
- type FlowCategory = 'none' | 'defi' | 'nft' | 'social' | 'devtools' | 'productivity' | 'trading' | 'portfolio';
694
- type FlowStatus = 'draft' | 'published';
695
- type Flow = {
696
- slug: string;
697
- team: Team;
698
- name: string;
699
- description: string | null;
700
- category: FlowCategory;
701
- status: FlowStatus;
702
- publishedAt: string | null;
703
- createdAt: string;
704
- updatedAt: string;
705
- steps: FlowStep[];
706
- locales: WarpLocale[];
707
- marketplace: MarketplaceInfo;
708
- screenshots: string[];
825
+ type Coupon = {
826
+ code: string;
827
+ amount: number;
828
+ percent: number;
829
+ expiresAt: string | null;
709
830
  };
710
- type FlowStep = {
711
- stepId: string;
712
- order: number;
713
- type: 'warp' | 'condition' | 'delay';
714
- warpIdentifier: string | null;
715
- dependsOn: string[] | null;
716
- inputMappings: FlowInputMapping[] | null;
717
- staticInputs: Record<string, any> | null;
718
- condition: Record<string, any> | null;
831
+ type PurchaseResult = {
832
+ order_id?: string;
833
+ message?: string;
834
+ subscription_active?: boolean;
719
835
  };
720
- type FlowInputMapping = {
721
- sourceStepId: string;
722
- sourceKey: string;
723
- targetInput: string;
724
- transform?: string;
836
+ type PurchaseOptions = {
837
+ forceProvider?: PaymentProvider;
838
+ billingAddress?: BillingAddress | null;
839
+ meta?: Record<string, string>;
725
840
  };
726
841
  //#endregion
727
842
  //#region src/skill/types.d.ts
@@ -769,7 +884,7 @@ type Skill = {
769
884
  };
770
885
  //#endregion
771
886
  //#region src/integration/types.d.ts
772
- type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
887
+ type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'sms' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
773
888
  type IntegrationDetails = {
774
889
  type: IntegrationType;
775
890
  name: string;
@@ -1050,7 +1165,6 @@ type WarpSearchHit = {
1050
1165
  //#endregion
1051
1166
  //#region src/marketplace/types.d.ts
1052
1167
  type MarketplaceEntityType = 'skill' | 'flow' | 'blueprint' | 'agent' | 'service';
1053
- type PricingModel = 'free' | 'one-time' | 'monthly' | 'per-run';
1054
1168
  type MarketplacePricing = {
1055
1169
  model: PricingModel;
1056
1170
  amount: string;
@@ -1306,12 +1420,12 @@ type Meeting = {
1306
1420
  conferenceProvider: MeetingConferenceProvider | null;
1307
1421
  conferenceUrl: string | null;
1308
1422
  conferenceExternalId: string | null;
1423
+ configuration?: Configuration;
1309
1424
  captureMode: 'desktop_local' | null;
1310
1425
  transcriptUrl: string | null;
1311
1426
  summaryUrl: string | null;
1312
1427
  participants?: MeetingParticipant[];
1313
1428
  speakerAssignments?: MeetingSpeakerAssignment[] | null;
1314
- configuration?: Record<string, WarpNativeValue>;
1315
1429
  scheduledAt: string | null;
1316
1430
  calendarEventId: number | null;
1317
1431
  startedAt: string | null;
@@ -1354,6 +1468,9 @@ type MeetingUsage = {
1354
1468
  reached: boolean;
1355
1469
  remainingWords: number | null;
1356
1470
  };
1471
+ type MeetingSummary = {
1472
+ content: string;
1473
+ };
1357
1474
  //#endregion
1358
1475
  //#region src/appointment/types.d.ts
1359
1476
  type AppointmentSlot = {
@@ -1418,7 +1535,7 @@ type AppointmentBooking = {
1418
1535
  status: string;
1419
1536
  attendeeEmail: string | null;
1420
1537
  attendeeName: string | null;
1421
- configuration?: Record<string, WarpNativeValue>;
1538
+ configuration?: Configuration;
1422
1539
  };
1423
1540
  type AppointmentRequest = {
1424
1541
  id: string;
@@ -1434,10 +1551,10 @@ type AppointmentRequest = {
1434
1551
  start: string;
1435
1552
  end: string;
1436
1553
  }[] | null;
1437
- configuration?: Record<string, WarpNativeValue>;
1438
1554
  service?: Service | null;
1439
1555
  meeting?: Meeting | null;
1440
1556
  agent?: Agent | null;
1557
+ configuration?: Configuration;
1441
1558
  createdAt: string;
1442
1559
  };
1443
1560
  //#endregion
@@ -1507,55 +1624,6 @@ type ChangelogEntry = {
1507
1624
  /** Emoji → array of user hashids who reacted */
1508
1625
  type Reactions = Record<string, string[]>;
1509
1626
  //#endregion
1510
- //#region src/contact/types.d.ts
1511
- type Contact = {
1512
- id: string;
1513
- name: string;
1514
- wallets: Wallet[];
1515
- email: string | null;
1516
- phone: string | null;
1517
- company: string | null;
1518
- title: string | null;
1519
- birthday: string | null;
1520
- website: string | null;
1521
- location: string | null;
1522
- socials: Record<string, string> | null;
1523
- notes: string | null;
1524
- tags: string[] | null;
1525
- userId: string | null;
1526
- locale?: string | null;
1527
- props?: Record<string, string> | null;
1528
- };
1529
- type ContactActivityType = 'note' | 'call' | 'meeting' | 'task' | 'update' | 'custom' | 'form';
1530
- type ContactActivityAuthor = {
1531
- name: string;
1532
- imageUrl: string | null;
1533
- };
1534
- type ContactActivity = {
1535
- id: string;
1536
- type: ContactActivityType;
1537
- description: string | null;
1538
- meta: Record<string, any> | null;
1539
- agentName: string | null;
1540
- createdAt: string;
1541
- author?: ContactActivityAuthor | null;
1542
- };
1543
- type ContactFormData = {
1544
- name?: string;
1545
- email?: string | null;
1546
- phone?: string | null;
1547
- company?: string | null;
1548
- title?: string | null;
1549
- birthday?: string | null;
1550
- website?: string | null;
1551
- location?: string | null;
1552
- socials?: Record<string, string> | null;
1553
- notes?: string | null;
1554
- tags?: string[] | null;
1555
- locale?: string | null;
1556
- props?: Record<string, string> | null;
1557
- };
1558
- //#endregion
1559
1627
  //#region src/contract/types.d.ts
1560
1628
  type Contract = {
1561
1629
  id: string;
@@ -2219,7 +2287,7 @@ type ContactViewable = {
2219
2287
  title?: string | null;
2220
2288
  tags?: string[] | null;
2221
2289
  wallets?: {
2222
- chain: string;
2290
+ chain: WarpChainName;
2223
2291
  address: string;
2224
2292
  }[];
2225
2293
  };
@@ -2839,7 +2907,7 @@ type Site = {
2839
2907
  enabled: boolean;
2840
2908
  team: SiteTeam | null;
2841
2909
  agent: SiteAgent | null;
2842
- settings: Record<string, unknown>;
2910
+ settings: Record<string, JsonValue>;
2843
2911
  };
2844
2912
  type SiteRoute = {
2845
2913
  path: string;
@@ -2961,6 +3029,115 @@ type LinkStats = {
2961
3029
  scanHistory: LinkScanHistory;
2962
3030
  };
2963
3031
  //#endregion
3032
+ //#region src/loyalty/types.d.ts
3033
+ type ProgramSettings = {
3034
+ point_name?: string;
3035
+ 'accrual.type'?: string;
3036
+ 'accrual.value'?: number;
3037
+ 'accrual.min_spend_cents'?: number;
3038
+ 'accrual.exempt_items'?: string[];
3039
+ 'points.expire_months'?: number | null;
3040
+ };
3041
+ type LoyaltyProgram = {
3042
+ name: string;
3043
+ active: boolean;
3044
+ settings: ProgramSettings;
3045
+ rewardCount: number;
3046
+ tierCount: number;
3047
+ memberCount: number;
3048
+ };
3049
+ type LoyaltyReward = {
3050
+ id: string;
3051
+ type: string;
3052
+ name: string;
3053
+ pointsCost: number;
3054
+ config: Record<string, JsonValue> | null;
3055
+ sortOrder: number;
3056
+ };
3057
+ type LoyaltyTier = {
3058
+ id: string;
3059
+ name: string;
3060
+ minPoints: number;
3061
+ pointsMultiplier: number;
3062
+ color: string | null;
3063
+ benefits: {
3064
+ type: string;
3065
+ label: string;
3066
+ }[] | null;
3067
+ };
3068
+ type LoyaltyPromotion = {
3069
+ id: string;
3070
+ name: string;
3071
+ type: string;
3072
+ value: number;
3073
+ startsAt: string;
3074
+ endsAt: string;
3075
+ minSpendCents: number | null;
3076
+ active: boolean;
3077
+ };
3078
+ type LoyaltyTierInfo = {
3079
+ name: string;
3080
+ multiplier: number;
3081
+ benefits?: {
3082
+ type: string;
3083
+ label: string;
3084
+ }[];
3085
+ };
3086
+ type LoyaltyNextTier = {
3087
+ name: string;
3088
+ pointsNeeded: number;
3089
+ multiplier: number;
3090
+ };
3091
+ type LoyaltyStatus = {
3092
+ contactName: string;
3093
+ points: number;
3094
+ lifetimePoints: number;
3095
+ tier: LoyaltyTierInfo | null;
3096
+ nextTier: LoyaltyNextTier | null;
3097
+ rewardReady: boolean;
3098
+ };
3099
+ type LoyaltyAccount = {
3100
+ contact: Contact;
3101
+ points: number;
3102
+ lifetimePoints: number;
3103
+ tier: {
3104
+ name: string;
3105
+ multiplier: number;
3106
+ } | null;
3107
+ status: LoyaltyStatus | null;
3108
+ };
3109
+ type LoyaltyTransaction = {
3110
+ id: string;
3111
+ type: string;
3112
+ points: number;
3113
+ balanceAfter: number;
3114
+ description: string | null;
3115
+ createdAt: string;
3116
+ };
3117
+ type EarnResponse = {
3118
+ contactName: string;
3119
+ points: number;
3120
+ totalPoints: number;
3121
+ tierName?: string;
3122
+ multiplier?: number;
3123
+ };
3124
+ type RedeemResponse = {
3125
+ rewardName: string;
3126
+ rewardType: string;
3127
+ pointsCost: number;
3128
+ remainingPoints: number;
3129
+ discountConfig?: JsonValue;
3130
+ };
3131
+ type LoyaltyMember = {
3132
+ id: string;
3133
+ contactId: string;
3134
+ contactName: string;
3135
+ points: number;
3136
+ lifetimePoints: number;
3137
+ tier: string | null;
3138
+ updatedAt: string;
3139
+ };
3140
+ //#endregion
2964
3141
  //#region src/store/types.d.ts
2965
3142
  type StoreVisibility = 'private' | 'team' | 'public';
2966
3143
  type StoreEntry = {
@@ -3049,6 +3226,27 @@ type UpdateStats = {
3049
3226
  creationHistory: number[];
3050
3227
  };
3051
3228
  //#endregion
3229
+ //#region src/upgrade/types.d.ts
3230
+ type UpgradeStatus = 'Pending' | 'Accepted' | 'Rejected';
3231
+ type UpgradeSourceType = 'Agent' | 'Marketplace';
3232
+ type Upgrade = {
3233
+ id: string;
3234
+ entityType: string;
3235
+ sourceType: UpgradeSourceType;
3236
+ agentUuid: string | null;
3237
+ originalContent: string | null;
3238
+ proposedContent: string;
3239
+ status: UpgradeStatus;
3240
+ changeReason: string | null;
3241
+ diff: {
3242
+ original: string;
3243
+ proposed: string;
3244
+ hasChanges: boolean;
3245
+ };
3246
+ proposedAt: string;
3247
+ respondedAt: string | null;
3248
+ };
3249
+ //#endregion
3052
3250
  //#region src/swarm/types.d.ts
3053
3251
  type Swarm = {
3054
3252
  id: string;
@@ -3105,13 +3303,41 @@ type RampProviderInfo = {
3105
3303
  };
3106
3304
  //#endregion
3107
3305
  //#region src/warp-webhooks/types.d.ts
3306
+ type AgentWebhookTriggerCondition = {
3307
+ path: string;
3308
+ operator: 'exists' | 'equals' | 'contains' | 'not_contains';
3309
+ value?: unknown;
3310
+ };
3311
+ type AgentWebhookTriggerInput = string | {
3312
+ source: 'payload';
3313
+ path: string;
3314
+ } | {
3315
+ source: 'literal';
3316
+ value: unknown;
3317
+ };
3318
+ type AgentWebhookTrigger = {
3319
+ event?: string;
3320
+ contract?: string;
3321
+ when?: AgentWebhookTriggerCondition[];
3322
+ inputs?: Record<string, AgentWebhookTriggerInput>;
3323
+ };
3108
3324
  type AgentWebhookWarp = {
3109
3325
  id: number;
3110
3326
  source: string;
3327
+ event?: string | null;
3328
+ contract?: string | null;
3111
3329
  next: string;
3330
+ active: boolean;
3331
+ managed: boolean;
3332
+ trigger?: AgentWebhookTrigger | null;
3112
3333
  warpIdentifier: string | null;
3113
3334
  createdAt: string;
3114
3335
  };
3336
+ type ActivateAgentWebhookWarpPayload = {
3337
+ warpIdentifier: string;
3338
+ source?: 'internal';
3339
+ trigger?: AgentWebhookTrigger;
3340
+ };
3115
3341
  //#endregion
3116
3342
  //#region src/webhook/types.d.ts
3117
3343
  type WebhookTriggerEvent = 'agent.action' | 'agent.message' | 'user.message';
@@ -3225,4 +3451,4 @@ type CliSessionStatus = {
3225
3451
  meta: CliSessionMeta | null;
3226
3452
  };
3227
3453
  //#endregion
3228
- export { Achievement, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, AppSubscription, AppointmentAvailability, AppointmentAvailabilityService, AppointmentAvailabilitySlot, AppointmentBooking, AppointmentBookingContext, AppointmentPolicy, AppointmentRequest, AppointmentSlot, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Card, Cart, CartItem, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, Contact, ContactActivity, ContactActivityAuthor, ContactActivityType, ContactFormData, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, Earning, Element, ElementSpec, ElementType, ElementVariation, EmailProvider, EmbedStatus, EncryptionStatus, Entity, EntityDirectExecuteRequest, EntityProposable, EntitySignable, EntityTemplate, Experience, FileInfo, FileMetadata, Flow, FlowCategory, FlowInputMapping, FlowStatus, FlowStep, GamificationData, GamificationEventType, Goal, GoalCreatePayload, GoalPriority, GoalProgressViewable, GoalStatus, HintOptions, HintPosition, HttpService, IAppResponse, IHttpService, IRequestOptions, IngestionSourceType, IngestionStatus, Inquiry, InquiryStatus, InquiryType, Integration, IntegrationDetails, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, Kyc, KycStatus, Link, LinkCreatePayload, LinkScanHistory, LinkStats, LinkUpdatePayload, LinkVariation, LinkVariationBatchCreatePayload, LinkVariationCreatePayload, LocalAgentWallet, MarketplaceAgent, MarketplaceCheckoutItem, MarketplaceData, MarketplaceEntityType, MarketplaceInfo, MarketplaceItem, MarketplaceListing, MarketplacePriceTier, MarketplacePricing, MarketplacePurchasable, MarketplacePurchaseResult, McpToolCall, McpToolCallBroadcast, McpToolCallStatus, Media, MediaAttributes, MediaItems, MediaLibraryAttributes, MediaLibraryItems, MediaMime, Meeting, MeetingConferenceProvider, MeetingFeature, MeetingJoinInfo, MeetingJoinTeam, MeetingParticipant, MeetingSessionState, MeetingSpeakerAssignment, MeetingStatus, MeetingTranscriptEntry, MeetingUsage, Memory, Message, MessageId, MessageRole, Milestone, MilestoneType, Mission, MissionBudget, MissionCreatePayload, MissionPlan, MissionPriority, MissionSchedule, MissionStatus, MissionViewable, MultimodalContent, MultimodalFile, Notification, NotificationAction, NotificationAgent, NotificationChannel, NotificationSetting, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OfficeAgent, OfficeEntity, OfficeEntityKind, OfficeLiveOverrides, OfficeMember, OfficeSnapshot, OfficeStatus, OfficeStatusFilter, OfficeTypeFilter, OgImageColors, OgImageParams, OgImageType, Order, OrderConfigurationItem, OrderItem, OrderStatus, PaginatedResponse, PaymentProvider, PayoutEntry, PeriodTypeLabels, PeriodTypeOptions, PermissionConfigType, PersonaQuestionable, Plan, PlanBenefit, PlanExtra, PlanFeature, PlanInterval, PolicyMethod, PolicySetting, PricingModel, Product, ProductConfiguration, ProductDiscount, ProductMeta, ProductPieces, ProductRating, ProductRelation, ProductRelationType, ProductVariation, ProductVariationMeta, ProductVariationType, Project, ProjectAspectRatio, ProjectAssembly, ProjectCaptionStyle, ProjectClipCandidate, ProjectClips, ProjectExport, ProjectExportAsset, ProjectExportResponse, ProjectImages, ProjectInputAssistIntent, ProjectInputAssistResponse, ProjectMutation, ProjectOutputPreset, ProjectOutputType, ProjectPlan, ProjectRender, ProjectRenderMode, ProjectSelectedClip, ProjectShot, ProjectSoundtrack, ProjectSourceMedia, ProjectStatus, ProjectStudioHistoryEntry, ProjectStudioQuestion, ProjectStudioResponse, ProjectStudioStage, ProjectStudioState, ProjectStudioSummary, ProjectStyleDirection, ProjectTranscript, ProjectTranscriptSegment, Proposal, ProposalAction, ProposalActionPayment, ProposalActionPaymentSerializable, ProposalActionSerializable, ProposalPollOption, ProposalStatus, PurchaseOptions, PurchaseResult, RampProvider, RampProviderInfo, Reactions, RecentExperience, Reminder, Room, RoomId, RoomKind, ScInfo, SchedulePreset, SecretAuthorizable, SecretSettable, SendableActivityUpdate, SendableAgentAction, SendableAgentMessage, SendableAgentThought, SendableMedia, SendableUserMessage, Service, Shortcut, Site, SiteAgent, SiteBrand, SiteRoute, SiteTeam, Skill, SkillMediaBindingRole, SkillMediaBindingRoleValue, SkillScope, SkillScopeValue, SkillType, SkillTypeValue, SocialAuthProvider, SocialBot, SocialPlatform, Store, StoreCreatePayload, StoreEntry, StoreEntryPayload, StoreEntryResult, StoreToggleResult, StoreVisibility, StoreWithEntries, Streak, SubscriptionInterval, SubscriptionPlan, SubscriptionStatus, Swarm, Task, Team, TeamBrand, TeamCategory, TeamFeature, TeamFeatureUsage, TeamMember, TeamMeta, TeamPrivate, TeamSettings, TeamUsage, Tier, TierFeature, TierName, TranscriptEntry, TranscriptionCorrection, TranscriptionResponse, TranslatableValue, Update, UpdateCreatePayload, UpdateRelation, UpdateStats, UpdateStatus, UpdateType, UpdateUpdatePayload, User, UserInterest, UserMode, UserPrivate, UserRole, UserSettings, UserSocialAccount, UserStats, VolumePrice, Wallet, WalletList, WarpApprovable, WarpBackend, WarpBackendCategory, WarpBackendStatus, WarpBatchItem, WarpBatchable, WarpCloudExecutable, WarpCreateable, WarpExecutable, WarpExtras, WarpExtrasFaq, WarpInputable, WarpScreenshotVariant, WarpSearchHit, WarpSelectable, WarpSelectableDetails, WarpSuggestion, WarpTestable, WarpViewable, Webhook, WebhookTriggerEvent, WorkspaceCloudFile, WorkspaceContext, WorkspaceInfo, WorkspaceSettings, XIntegrationStatus, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getFormsBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getStoreBaseUrl, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, localize, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
3454
+ export { Achievement, ActivateAgentWebhookWarpPayload, Affiliate, AffiliateStatus, AffiliateTier, AffiliateTierName, Agent, AgentActionHistoryEntry, AgentCharacter, AgentDelegatable, AgentEngine, AgentExecuteHandler, AgentExecuteOptions, AgentGender, AgentMessageMeta, AgentMessageOptions, AgentPrivate, AgentSettings, AgentSimple, AgentWalletMode, AgentWebhookTrigger, AgentWebhookTriggerCondition, AgentWebhookTriggerInput, AgentWebhookWarp, AggregatedRoute, AiCostEntry, AiCostsResponse, AiCostsSummary, Alert, ApiToken, AppEnv, AppFile, AppFileType, AppIngestion, AppSubscription, AppointmentAvailability, AppointmentAvailabilityService, AppointmentAvailabilitySlot, AppointmentBooking, AppointmentBookingContext, AppointmentPolicy, AppointmentRequest, AppointmentSlot, AuthUser, BillingAddress, Blueprint, BlueprintOnboardingStep, BlueprintRedirect, BlueprintSettings, BlueprintShortcut, BlueprintTask, BlueprintTeam, BoardSummaryViewable, BookmarkEntry, BrandBackend, BrandIntegration, BrandIntegrationAction, BrandIntegrationProvider, BrandSearchHit, BrandSiteConfig, BrandSourceConfig, Budget, ByokProviderConfig, ByokProviderName, ByokProviders, CalendarProvider, CalendarStatus, Card, Cart, CartItem, Challenge, Challenges, ChangelogEntry, Character, ChatClientAction, ChatClientThought, ChatStreamData, ChatStreamEventType, CliSessionMeta, CliSessionStatus, Configuration, Contact, ContactActivity, ContactActivityAuthor, ContactActivityType, ContactCreatePayload, ContactFormData, ContactViewable, Contract, ContractCategoryDisplayNames, ContractCategoryName, ContractCodeMetadata, ContractEntity, ContractOnNetwork, ContractVersion, ContractsAddressConfig, CortexExecuteOptions, Coupon, DefaultCodeMetadata, DemoFlow, DemoMessage, Desk, DeskItem, DeskItemRole, Document, EarnResponse, Earning, Element, ElementSpec, ElementType, ElementVariation, EmailProvider, EmbedStatus, EncryptionStatus, Entity, EntityDirectExecuteRequest, EntityProposable, EntitySignable, EntityTemplate, Experience, FileInfo, FileMetadata, Flow, FlowCategory, FlowInputMapping, FlowStatus, FlowStep, GamificationData, GamificationEventType, Goal, GoalCreatePayload, GoalPriority, GoalProgressViewable, GoalStatus, HintOptions, HintPosition, HttpService, IAppResponse, IHttpService, IRequestOptions, IngestionSourceType, IngestionStatus, Inquiry, InquiryStatus, InquiryType, Integration, IntegrationDetails, IntegrationType, Intent, Item, ItemCreatePayload, ItemExecutionStatus, ItemPriority, ItemStatus, ItemUpdatePayload, ItemViewable, JoaiUrls, JsonValue, Kyc, KycStatus, Link, LinkCreatePayload, LinkScanHistory, LinkStats, LinkUpdatePayload, LinkVariation, LinkVariationBatchCreatePayload, LinkVariationCreatePayload, LocalAgentWallet, LoyaltyAccount, LoyaltyMember, LoyaltyNextTier, LoyaltyProgram, LoyaltyPromotion, LoyaltyReward, LoyaltyStatus, LoyaltyTier, LoyaltyTierInfo, LoyaltyTransaction, MarketplaceAgent, MarketplaceCheckoutItem, MarketplaceData, MarketplaceEntityType, MarketplaceInfo, MarketplaceItem, MarketplaceListing, MarketplacePriceTier, MarketplacePricing, MarketplacePurchasable, MarketplacePurchaseResult, McpToolCall, McpToolCallBroadcast, McpToolCallStatus, Media, MediaAttributes, MediaItems, MediaLibraryAttributes, MediaLibraryItems, MediaMime, Meeting, MeetingConferenceProvider, MeetingFeature, MeetingJoinInfo, MeetingJoinTeam, MeetingParticipant, MeetingSessionState, MeetingSpeakerAssignment, MeetingStatus, MeetingSummary, MeetingTranscriptEntry, MeetingUsage, Memory, Message, MessageId, MessageRole, Milestone, MilestoneType, Mission, MissionBudget, MissionCreatePayload, MissionPlan, MissionPriority, MissionSchedule, MissionStatus, MissionViewable, MultimodalContent, MultimodalFile, Notification, NotificationAction, NotificationAgent, NotificationChannel, NotificationSetting, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OfficeAgent, OfficeEntity, OfficeEntityKind, OfficeLiveOverrides, OfficeMember, OfficeSnapshot, OfficeStatus, OfficeStatusFilter, OfficeTypeFilter, OgImageColors, OgImageParams, OgImageType, Order, OrderConfigurationItem, OrderContext, OrderItem, OrderSource, OrderStatus, PaginatedResponse, PaymentAccount, PaymentAccountOnboarding, PaymentProvider, PayoutEntry, PeriodTypeLabels, PeriodTypeOptions, PermissionConfigType, PersonaQuestionable, Plan, PlanBenefit, PlanExtra, PlanFeature, PlanInterval, PolicyMethod, PolicySetting, PricingModel, Product, ProductDiscount, ProductMeta, ProductPieces, ProductRating, ProductRelation, ProductRelationType, ProductVariation, ProductVariationMeta, ProductVariationType, ProgramSettings, Project, ProjectAspectRatio, ProjectAssembly, ProjectCaptionStyle, ProjectClipCandidate, ProjectClips, ProjectExport, ProjectExportAsset, ProjectExportResponse, ProjectImages, ProjectInputAssistIntent, ProjectInputAssistResponse, ProjectMutation, ProjectOutputPreset, ProjectOutputType, ProjectPlan, ProjectRender, ProjectRenderMode, ProjectSelectedClip, ProjectShot, ProjectSoundtrack, ProjectSourceMedia, ProjectStatus, ProjectStudioHistoryEntry, ProjectStudioQuestion, ProjectStudioResponse, ProjectStudioStage, ProjectStudioState, ProjectStudioSummary, ProjectStyleDirection, ProjectTranscript, ProjectTranscriptSegment, Proposal, ProposalAction, ProposalActionPayment, ProposalActionPaymentSerializable, ProposalActionSerializable, ProposalPollOption, ProposalStatus, PurchaseOptions, PurchaseResult, RampProvider, RampProviderInfo, Reactions, RecentExperience, RedeemResponse, Reminder, Room, RoomId, RoomKind, ScInfo, SchedulePreset, SecretAuthorizable, SecretSettable, SendableActivityUpdate, SendableAgentAction, SendableAgentMessage, SendableAgentThought, SendableMedia, SendableUserMessage, Service, Shortcut, Site, SiteAgent, SiteBrand, SiteRoute, SiteTeam, Skill, SkillMediaBindingRole, SkillMediaBindingRoleValue, SkillScope, SkillScopeValue, SkillType, SkillTypeValue, SocialAuthProvider, SocialBot, SocialPlatform, Store, StoreCreatePayload, StoreEntry, StoreEntryPayload, StoreEntryResult, StoreToggleResult, StoreVisibility, StoreWithEntries, Streak, SubscriptionInterval, SubscriptionPlan, SubscriptionStatus, Swarm, Task, Team, TeamBrand, TeamCategory, TeamFeature, TeamFeatureUsage, TeamMember, TeamMeta, TeamPrivate, TeamSettings, TeamUsage, TerminalConnectionToken, TerminalPaymentIntent, Tier, TierFeature, TierName, TranscriptEntry, TranscriptionCorrection, TranscriptionResponse, TranslatableValue, Update, UpdateCreatePayload, UpdateRelation, UpdateStats, UpdateStatus, UpdateType, UpdateUpdatePayload, Upgrade, UpgradeSourceType, UpgradeStatus, User, UserInterest, UserMode, UserPrivate, UserRole, UserSettings, UserSocialAccount, UserStats, VolumePrice, Wallet, WalletList, WarpApprovable, WarpBackend, WarpBackendCategory, WarpBackendStatus, WarpBatchItem, WarpBatchable, WarpCloudExecutable, WarpCreateable, WarpExecutable, WarpExtras, WarpExtrasFaq, WarpInputable, WarpScreenshotVariant, WarpSearchHit, WarpSelectable, WarpSelectableDetails, WarpSuggestion, WarpTestable, WarpViewable, Webhook, WebhookTriggerEvent, WorkspaceCloudFile, WorkspaceContext, WorkspaceInfo, WorkspaceSettings, XIntegrationStatus, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getFormsBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getStoreBaseUrl, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, localize, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, teamCategories, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
package/dist/index.mjs CHANGED
@@ -361,4 +361,19 @@ const SkillScope = {
361
361
  Team: "team"
362
362
  };
363
363
  //#endregion
364
- export { ContractCategoryDisplayNames, DefaultCodeMetadata, HttpService, JoaiUrls, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OgImageColors, PeriodTypeLabels, PeriodTypeOptions, SkillMediaBindingRole, SkillScope, SkillType, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getFormsBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getStoreBaseUrl, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, localize, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
364
+ //#region src/team/constants.ts
365
+ const teamCategories = [
366
+ "general",
367
+ "food-drink",
368
+ "retail",
369
+ "beauty-wellness",
370
+ "health",
371
+ "sports-fitness",
372
+ "trades-services",
373
+ "professional-services",
374
+ "education-culture",
375
+ "clubs-organizations",
376
+ "leisure-tourism"
377
+ ];
378
+ //#endregion
379
+ export { ContractCategoryDisplayNames, DefaultCodeMetadata, HttpService, JoaiUrls, OG_IMAGE_CONFIG, OG_IMAGE_HEIGHT, OG_IMAGE_WIDTH, OgImageColors, PeriodTypeLabels, PeriodTypeOptions, SkillMediaBindingRole, SkillScope, SkillType, abbreviateNumber, getAgentsBaseUrl, getApiBaseUrl, getAppBaseUrl, getAssetAppLogoUrl, getAssetChainLogoUrl, getAssetPartnerLogoUrl, getAssetTokenLogoUrl, getAssetWalletLogoUrl, getCortexBaseUrl, getDigestBaseUrl, getFormsBaseUrl, getMcpServerAgentUrl, getSiteUrl, getSitesRootDomain, getStoreBaseUrl, getWarpScreenshotUrl, isFileFormatAudio, isFileFormatImage, isFileFormatVideo, localize, ogImageUrl, resolveWarpText, sanitizeAlphanumeric, sanitizeNumeric, teamCategories, toCurrencyDisplay, toHexEncodedNonce, toNameInitials, toNftId, toPreviewText, withRetry };
@@ -1,5 +1,5 @@
1
1
  import { n as IHttpService } from "../types-CWSaEVa7.mjs";
2
- import * as react from "react";
2
+ import * as _$react from "react";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/react/types.d.ts
@@ -48,7 +48,7 @@ declare function EmbedChatList({
48
48
  classNames,
49
49
  renderEmptyState,
50
50
  renderAgentContent
51
- }: EmbedChatListProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
51
+ }: EmbedChatListProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | _$react.ReactPortal | _$react.ReactElement<unknown, string | _$react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | _$react.JSX.Element | null | undefined;
52
52
  type EmbedChatInputProps = {
53
53
  onSend: (message: string) => void;
54
54
  disabled: boolean;
@@ -70,7 +70,7 @@ declare function EmbedChatInput({
70
70
  maxLength,
71
71
  classNames,
72
72
  renderSendButton
73
- }: EmbedChatInputProps): react.JSX.Element;
73
+ }: EmbedChatInputProps): _$react.JSX.Element;
74
74
  //#endregion
75
75
  //#region src/react/use-embed-chat.d.ts
76
76
  type Options = {
@@ -92,11 +92,11 @@ declare function useEmbedChat({
92
92
  extraPayload
93
93
  }: Options): {
94
94
  items: EmbedChatItem[];
95
- setItems: react.Dispatch<react.SetStateAction<EmbedChatItem[]>>;
95
+ setItems: _$react.Dispatch<_$react.SetStateAction<EmbedChatItem[]>>;
96
96
  sending: boolean;
97
97
  awaitingResponse: boolean;
98
98
  roomId: string | null;
99
- setRoomId: react.Dispatch<react.SetStateAction<string | null>>;
99
+ setRoomId: _$react.Dispatch<_$react.SetStateAction<string | null>>;
100
100
  send: (message: string) => Promise<void>;
101
101
  connectionError: boolean;
102
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/core",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "JoAi shared types, HTTP service, and config",
5
5
  "license": "MIT",
6
6
  "type": "module",