@joai/core 1.2.0 → 1.3.1

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +25 -13
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -153,7 +153,7 @@ type Flow = {
153
153
  updatedAt: string;
154
154
  steps: FlowStep[];
155
155
  locales: WarpLocale[];
156
- marketplace: StoreInfo;
156
+ store: StoreInfo;
157
157
  screenshots: string[];
158
158
  };
159
159
  type FlowStep = {
@@ -883,7 +883,7 @@ type Skill = {
883
883
  sourcePath: string | null;
884
884
  scope?: SkillScopeValue;
885
885
  active: boolean;
886
- marketplace: StoreInfo;
886
+ store: StoreInfo;
887
887
  createdAt: string;
888
888
  media?: Media[];
889
889
  screenshots: string[];
@@ -915,7 +915,7 @@ type Integration = {
915
915
  meta?: IntegrationMeta;
916
916
  details?: IntegrationDetails;
917
917
  };
918
- type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'discord' | 'github';
918
+ type SocialPlatform = 'telegram' | 'slack' | 'whatsapp' | 'sms' | 'discord' | 'github';
919
919
  type SocialBot = {
920
920
  name: string;
921
921
  createdAt: string;
@@ -987,7 +987,7 @@ type Agent = {
987
987
  avatar: string;
988
988
  wallets: Wallet[];
989
989
  settings: AgentSettings;
990
- marketplace: StoreInfo;
990
+ store: StoreInfo;
991
991
  character?: AgentCharacter | null;
992
992
  room: Room;
993
993
  role: string | null;
@@ -1001,7 +1001,7 @@ type AgentPrivate = {
1001
1001
  avatar: string;
1002
1002
  wallets: Wallet[];
1003
1003
  settings: AgentSettings;
1004
- marketplace: StoreInfo;
1004
+ store: StoreInfo;
1005
1005
  password: string | null;
1006
1006
  authKey: string | null;
1007
1007
  secKey: string;
@@ -1037,7 +1037,7 @@ type AgentSettings = {
1037
1037
  auto: boolean;
1038
1038
  'model.url': string;
1039
1039
  'voice.output': boolean;
1040
- 'voice.id': string;
1040
+ 'voice.id': string | null;
1041
1041
  'agent.gender'?: AgentGender;
1042
1042
  'proactivity.enabled': boolean;
1043
1043
  'proactivity.quietHoursStart'?: number;
@@ -1272,7 +1272,7 @@ type StoreAgent = {
1272
1272
  name: string | null;
1273
1273
  bio: string | null;
1274
1274
  } | null;
1275
- marketplace: StoreInfo;
1275
+ store: StoreInfo;
1276
1276
  screenshots: string[];
1277
1277
  mcpEndpoint: string;
1278
1278
  a2aCard: string;
@@ -1305,15 +1305,15 @@ type StorePriceTier = {
1305
1305
  label: string;
1306
1306
  };
1307
1307
  /**
1308
- * Normalized representation of any marketplace entity for use in checkout flows.
1309
- * All marketplace entities share a `.marketplace: StoreInfo` property —
1308
+ * Normalized representation of any store entity for use in checkout flows.
1309
+ * All store entities share a `.store: StoreInfo` property —
1310
1310
  * combine that with the entity type and ID to construct this.
1311
1311
  */
1312
1312
  type StoreCheckoutItem = {
1313
1313
  entityType: StoreEntityType;
1314
1314
  entityId: string;
1315
1315
  name: string;
1316
- marketplace: StoreInfo;
1316
+ store: StoreInfo;
1317
1317
  };
1318
1318
  type StorePurchaseResult = {
1319
1319
  purchased: boolean;
@@ -1362,7 +1362,7 @@ type Blueprint = {
1362
1362
  verified: boolean;
1363
1363
  createdAt: string;
1364
1364
  locales: WarpLocale[];
1365
- marketplace: StoreInfo;
1365
+ store: StoreInfo;
1366
1366
  tags: string[];
1367
1367
  screenshots: string[];
1368
1368
  };
@@ -3142,6 +3142,7 @@ type LoyaltyReward = {
3142
3142
  pointsCost: number;
3143
3143
  config: Record<string, JsonValue> | null;
3144
3144
  sortOrder: number;
3145
+ createdAt: string;
3145
3146
  };
3146
3147
  type LoyaltyTier = {
3147
3148
  id: string;
@@ -3222,10 +3223,21 @@ type Pass = {
3222
3223
  team: Team;
3223
3224
  points: number;
3224
3225
  tier: string | null;
3225
- walletUrl: string | null;
3226
+ benefit: {
3227
+ pointName: string | null;
3228
+ earning: {
3229
+ type: 'per_visit' | 'per_spend' | 'per_item' | 'per_category';
3230
+ value: number;
3231
+ minimumSpendCents: number | null;
3232
+ currency: string | null;
3233
+ };
3234
+ reward: {
3235
+ name: string;
3236
+ pointsCost: number;
3237
+ };
3238
+ } | null;
3226
3239
  };
3227
3240
  type LoyaltyMember = {
3228
- id: string;
3229
3241
  contactId: string;
3230
3242
  contactName: string;
3231
3243
  points: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/core",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "JoAi shared types, HTTP service, and config",
5
5
  "license": "MIT",
6
6
  "type": "module",