@agent-play/sdk 3.4.0 → 3.4.2
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/{browser-DhKo5Hv7.d.ts → browser-tX4_SW1K.d.ts} +502 -40
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +77 -1
- package/dist/{chunk-Z2PYRHFU.js → chunk-WTI6DVRD.js} +777 -82
- package/dist/chunk-WTI6DVRD.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +91 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-Z2PYRHFU.js.map +0 -1
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as ANALYTICS_EVENT_NAMES, f as APU_TOKEN, A as AgentPlaySnapshot, g as AgentPlayWorldLayout, o as AnalyticsEvent, p as AnalyticsEventName, q as AnalyticsEventSchema, v as AnalyticsTraits, w as AnalyticsTraitsSchema, x as ApplyGameOutcomeInput, y as ApplyGameOutcomeInputSchema,
|
|
1
|
+
export { e as ANALYTICS_EVENT_NAMES, f as APU_TOKEN, A as AgentPlaySnapshot, g as AgentPlayWorldLayout, o as AnalyticsEvent, p as AnalyticsEventName, q as AnalyticsEventSchema, v as AnalyticsTraits, w as AnalyticsTraitsSchema, x as ApplyGameOutcomeInput, y as ApplyGameOutcomeInputSchema, E as CONTINUOUS_RENDER_OFFSET, F as CarWashCar, G as CarWashCarSchema, H as ComputeTalkAgentPowerUpsEarnedInput, I as DAILY_GAME_PU_CAP, K as DEFAULT_AGENT_SPAWN_MIN_DISTANCE, M as DEFAULT_LAYOUT_BOUNDS_WITH_PARKING, N as DEFAULT_PARKING_RATES_USD, O as DEFAULT_PLAYER_WALLET_BALANCE_USD, S as GAME_CABINET_CATALOG, T as GameCabinetEntry, U as GameEvent, V as GameEventSchema, X as GameId, Y as GamePerTitleStats, Z as GamePerTitleStatsSchema, _ as GameStats, $ as GameStatsSchema, a0 as HOUSE_BLUEPRINTS, a1 as HOUSE_CATALOG, a2 as HOUSE_WORLD_X, a3 as HouseBlueprint, a4 as HouseFixtureKind, a5 as HouseFixtureSlot, a6 as HouseId, a7 as HouseIdSchema, a8 as HouseSlot, a9 as HouseSlotSchema, aa as HouseStageBounds, ab as HouseStreetContent, ac as HouseStreetContentSchema, ae as MAX_SLOTS_WITH_FOREVER, af as MAX_TIMED_PARKING_SLOTS_PER_NODE, ag as MINIMUM_PLAY_WORLD_BOUNDS, ah as MINIMUM_STREET_LAYOUT_BOUNDS, ai as OCCUPANCY_POINT_MULTIPLIER, aj as OccupancyGridPoint, ak as OccupantGroup, an as PARKING_BAY_COUNT, ap as PARKING_DURATION_TIERS, aq as PARKING_HOUSE_COUNT, ar as PARKING_LAYERS_PER_BAY, as as PARKING_SPOT_COUNT, au as PLAYABLE_GAME_IDS, av as PLAYER_CHAIN_GENESIS_STABLE_KEY, aw as PLAYER_CHAIN_HEADER_STABLE_KEY, ax as ParkingDurationTier, ay as ParkingDurationTierSchema, az as ParkingOccupancyRef, aA as ParkingOccupant, aB as ParkingOwnershipError, aC as ParkingSpot, aD as ParkingSpotSchema, aE as ParkingStreetContent, aF as ParkingStreetContentSchema, aO as PlayerWallet, aP as PlayerWalletSchema, aR as PurchaseRecord, aS as PurchaseRecordSchema, aW as SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE, aX as SPATIAL_ZONE_INDEX_AGENTS, aY as SPATIAL_ZONE_INDEX_SPACES, a$ as STREET_NAME_POOL, b0 as SaleState, b1 as SaleStateSchema, b2 as ScannerBlockRecord, b3 as ScannerBlockRecordSchema, b4 as ScannerHead, b5 as ScannerHeadSchema, b6 as ScannerMigrationState, b7 as ScannerMigrationStateSchema, ba as ScannerNodeProfile, bb as ScannerNodeProfileSchema, be as ScannerTxRecord, bf as ScannerTxRecordSchema, bg as ScannerWalletSnapshot, bh as ScannerWalletSnapshotSchema, bi as ShopItem, bj as ShopItemSchema, bk as SpaceContentItem, bl as Street, bm as StreetPoolEntry, bo as SupermarketItem, bp as SupermarketItemSchema, bq as TALK_AGENT_PU_BILLED_SECONDS_PER_UNIT, br as TALK_AGENT_PU_MAX_PER_LEG, bs as TALK_PRICE_PER_60S_USD, bt as TALK_PRICE_PER_SECOND_USD, bu as TALK_TICK_SECONDS, bv as WALLET_BUNDLE_OFFERS, bw as WalletBundleId, bx as WalletBundleOffer, by as WorldBounds, bA as WorldLayout, bB as WorldLayoutBoundsField, bD as Zone, bF as applyBoundsFieldUpdateToLayout, bG as availableCellsForZone, bH as boundingWorldRectForOccupancyPoints, bI as boundsContain, bJ as buildAmenityPurchaseApuFields, bK as buildApuWalletTransaction, bL as buildHouseOwnershipPanelLines, bM as buildRankedOccupancyPoints, bN as buildRankedOccupancyPointsForSpatialZone, bO as buildRankedOccupancyPointsForZone, bP as buildRankedOccupancyPointsInRect, bQ as buildWalletBundleApuFields, bR as canNodeAcquireParkingSpot, bS as cellsForZone, bT as centerOfZone, bU as clampHousePosition, bV as clampWorldPosition, bX as computeParkingExpiresAt, bY as computeRoundPuDelta, bZ as computeTalkAgentPowerUpsEarned, b_ as costForSeconds, b$ as createEmptyGameStats, c0 as createEmptyHouseStreetContent, c1 as createEmptyParkingStreetContent, c2 as createInitialAgentRewardWallet, c3 as createInitialPlayerWallet, c4 as createVerticalStripSeedLayout, c5 as createWorldLayoutWithParkingRow, c6 as desaturateColor, c7 as effectiveHourlyRateUsd, c8 as enumerateIntegerCellsInRect, c9 as expandBoundsToMinimumPlayArea, ca as featuredGameIdForUtcDate, cb as findHouseSlot, cc as findParkingSpot, cd as formatHouseOwnerDisplayName, ce as getGameCabinetByGameId, cf as getGameCabinetById, cg as getHouseBlueprint, ch as getStreetPoolEntryById, ci as getWalletBundleById, cj as housePurchaseDetail, ck as houseSpawnPosition, cl as isAgentSpawnOccupancyPointAvailable, cm as isAgentSpawnOccupancyPointAvailableInRect, cn as isAgentSpawnOccupancyPointAvailableInZone, co as isGameId, cp as isHouseOwned, cq as isItemAvailableForPurchase, cr as isParkingOccupantActive, cs as isSpaceAnchorOccupancyPointAvailable, ct as isSpaceAnchorOccupancyPointAvailableInRect, cu as isSpaceAnchorOccupancyPointAvailableInZone, cv as layoutHasParkingZone, cw as layoutHouseFixtures, cy as listActiveParkingOccupancies, cz as listAllowedOccupancyPoints, cA as listOccupancyPointsForSpatialZone, cB as listOccupancyPointsForZone, cC as listOccupancyPointsInRect, cD as mergeSnapshotWithPlayerChainNode, cF as migrateLayoutToParkingRow, cG as migrateWorldLayoutBounds, cH as nextStreetFromPool, cI as occupancyKeyForPosition, cJ as occupancyPointsGroupedBySpatialZone, cK as occupancyPointsGroupedByZones, cN as parsePlayerChainFanoutNotify, cO as parsePlayerChainFanoutNotifyFromSsePayload, cP as parsePlayerChainNodeRpcBody, cQ as pickZoneForGroup, cR as pointCellInRect, cS as pointCellInSpatialZone, cT as pointCellInZone, cU as primaryZoneForGroup, cV as sortNodeRefsForSerializedFetch, cW as spatialZoneBounds, cX as spatialZoneCenter, cY as streetFromPoolEntry, cZ as utcDateKey, c_ as zonesForGroup } from './browser-tX4_SW1K.js';
|
|
2
2
|
import 'zod';
|
package/dist/browser.js
CHANGED
|
@@ -8,17 +8,35 @@ import {
|
|
|
8
8
|
CarWashCarSchema,
|
|
9
9
|
DAILY_GAME_PU_CAP,
|
|
10
10
|
DEFAULT_AGENT_SPAWN_MIN_DISTANCE,
|
|
11
|
+
DEFAULT_LAYOUT_BOUNDS_WITH_PARKING,
|
|
12
|
+
DEFAULT_PARKING_RATES_USD,
|
|
11
13
|
DEFAULT_PLAYER_WALLET_BALANCE_USD,
|
|
12
14
|
GAME_CABINET_CATALOG,
|
|
13
15
|
GameEventSchema,
|
|
14
16
|
GamePerTitleStatsSchema,
|
|
15
17
|
GameStatsSchema,
|
|
18
|
+
HOUSE_BLUEPRINTS,
|
|
19
|
+
HOUSE_CATALOG,
|
|
20
|
+
HOUSE_WORLD_X,
|
|
21
|
+
HouseIdSchema,
|
|
22
|
+
HouseSlotSchema,
|
|
23
|
+
HouseStreetContentSchema,
|
|
24
|
+
MAX_SLOTS_WITH_FOREVER,
|
|
25
|
+
MAX_TIMED_PARKING_SLOTS_PER_NODE,
|
|
16
26
|
MINIMUM_PLAY_WORLD_BOUNDS,
|
|
17
27
|
MINIMUM_STREET_LAYOUT_BOUNDS,
|
|
18
28
|
OCCUPANCY_POINT_MULTIPLIER,
|
|
29
|
+
PARKING_BAY_COUNT,
|
|
30
|
+
PARKING_DURATION_TIERS,
|
|
31
|
+
PARKING_HOUSE_COUNT,
|
|
32
|
+
PARKING_LAYERS_PER_BAY,
|
|
33
|
+
PARKING_SPOT_COUNT,
|
|
19
34
|
PLAYABLE_GAME_IDS,
|
|
20
35
|
PLAYER_CHAIN_GENESIS_STABLE_KEY,
|
|
21
36
|
PLAYER_CHAIN_HEADER_STABLE_KEY,
|
|
37
|
+
ParkingDurationTierSchema,
|
|
38
|
+
ParkingSpotSchema,
|
|
39
|
+
ParkingStreetContentSchema,
|
|
22
40
|
PlayerWalletSchema,
|
|
23
41
|
PurchaseRecordSchema,
|
|
24
42
|
SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE,
|
|
@@ -46,42 +64,62 @@ import {
|
|
|
46
64
|
boundsContain,
|
|
47
65
|
buildAmenityPurchaseApuFields,
|
|
48
66
|
buildApuWalletTransaction,
|
|
67
|
+
buildHouseOwnershipPanelLines,
|
|
49
68
|
buildRankedOccupancyPoints,
|
|
50
69
|
buildRankedOccupancyPointsForSpatialZone,
|
|
51
70
|
buildRankedOccupancyPointsForZone,
|
|
52
71
|
buildRankedOccupancyPointsInRect,
|
|
53
72
|
buildWalletBundleApuFields,
|
|
73
|
+
canNodeAcquireParkingSpot,
|
|
54
74
|
cellsForZone,
|
|
55
75
|
centerOfZone,
|
|
76
|
+
clampHousePosition,
|
|
56
77
|
clampWorldPosition,
|
|
78
|
+
computeParkingExpiresAt,
|
|
57
79
|
computeRoundPuDelta,
|
|
58
80
|
computeTalkAgentPowerUpsEarned,
|
|
59
81
|
costForSeconds,
|
|
60
82
|
createEmptyGameStats,
|
|
83
|
+
createEmptyHouseStreetContent,
|
|
84
|
+
createEmptyParkingStreetContent,
|
|
61
85
|
createInitialAgentRewardWallet,
|
|
62
86
|
createInitialPlayerWallet,
|
|
63
87
|
createVerticalStripSeedLayout,
|
|
88
|
+
createWorldLayoutWithParkingRow,
|
|
64
89
|
desaturateColor,
|
|
90
|
+
effectiveHourlyRateUsd,
|
|
65
91
|
enumerateIntegerCellsInRect,
|
|
66
92
|
expandBoundsToMinimumPlayArea,
|
|
67
93
|
featuredGameIdForUtcDate,
|
|
94
|
+
findHouseSlot,
|
|
95
|
+
findParkingSpot,
|
|
96
|
+
formatHouseOwnerDisplayName,
|
|
68
97
|
getGameCabinetByGameId,
|
|
69
98
|
getGameCabinetById,
|
|
99
|
+
getHouseBlueprint,
|
|
70
100
|
getStreetPoolEntryById,
|
|
71
101
|
getWalletBundleById,
|
|
102
|
+
housePurchaseDetail,
|
|
103
|
+
houseSpawnPosition,
|
|
72
104
|
isAgentSpawnOccupancyPointAvailable,
|
|
73
105
|
isAgentSpawnOccupancyPointAvailableInRect,
|
|
74
106
|
isAgentSpawnOccupancyPointAvailableInZone,
|
|
75
107
|
isGameId,
|
|
108
|
+
isHouseOwned,
|
|
76
109
|
isItemAvailableForPurchase,
|
|
110
|
+
isParkingOccupantActive,
|
|
77
111
|
isSpaceAnchorOccupancyPointAvailable,
|
|
78
112
|
isSpaceAnchorOccupancyPointAvailableInRect,
|
|
79
113
|
isSpaceAnchorOccupancyPointAvailableInZone,
|
|
114
|
+
layoutHasParkingZone,
|
|
115
|
+
layoutHouseFixtures,
|
|
116
|
+
listActiveParkingOccupancies,
|
|
80
117
|
listAllowedOccupancyPoints,
|
|
81
118
|
listOccupancyPointsForSpatialZone,
|
|
82
119
|
listOccupancyPointsForZone,
|
|
83
120
|
listOccupancyPointsInRect,
|
|
84
121
|
mergeSnapshotWithPlayerChainNode,
|
|
122
|
+
migrateLayoutToParkingRow,
|
|
85
123
|
migrateWorldLayoutBounds,
|
|
86
124
|
nextStreetFromPool,
|
|
87
125
|
occupancyKeyForPosition,
|
|
@@ -101,7 +139,7 @@ import {
|
|
|
101
139
|
streetFromPoolEntry,
|
|
102
140
|
utcDateKey,
|
|
103
141
|
zonesForGroup
|
|
104
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-WTI6DVRD.js";
|
|
105
143
|
export {
|
|
106
144
|
ANALYTICS_EVENT_NAMES,
|
|
107
145
|
APU_TOKEN,
|
|
@@ -112,17 +150,35 @@ export {
|
|
|
112
150
|
CarWashCarSchema,
|
|
113
151
|
DAILY_GAME_PU_CAP,
|
|
114
152
|
DEFAULT_AGENT_SPAWN_MIN_DISTANCE,
|
|
153
|
+
DEFAULT_LAYOUT_BOUNDS_WITH_PARKING,
|
|
154
|
+
DEFAULT_PARKING_RATES_USD,
|
|
115
155
|
DEFAULT_PLAYER_WALLET_BALANCE_USD,
|
|
116
156
|
GAME_CABINET_CATALOG,
|
|
117
157
|
GameEventSchema,
|
|
118
158
|
GamePerTitleStatsSchema,
|
|
119
159
|
GameStatsSchema,
|
|
160
|
+
HOUSE_BLUEPRINTS,
|
|
161
|
+
HOUSE_CATALOG,
|
|
162
|
+
HOUSE_WORLD_X,
|
|
163
|
+
HouseIdSchema,
|
|
164
|
+
HouseSlotSchema,
|
|
165
|
+
HouseStreetContentSchema,
|
|
166
|
+
MAX_SLOTS_WITH_FOREVER,
|
|
167
|
+
MAX_TIMED_PARKING_SLOTS_PER_NODE,
|
|
120
168
|
MINIMUM_PLAY_WORLD_BOUNDS,
|
|
121
169
|
MINIMUM_STREET_LAYOUT_BOUNDS,
|
|
122
170
|
OCCUPANCY_POINT_MULTIPLIER,
|
|
171
|
+
PARKING_BAY_COUNT,
|
|
172
|
+
PARKING_DURATION_TIERS,
|
|
173
|
+
PARKING_HOUSE_COUNT,
|
|
174
|
+
PARKING_LAYERS_PER_BAY,
|
|
175
|
+
PARKING_SPOT_COUNT,
|
|
123
176
|
PLAYABLE_GAME_IDS,
|
|
124
177
|
PLAYER_CHAIN_GENESIS_STABLE_KEY,
|
|
125
178
|
PLAYER_CHAIN_HEADER_STABLE_KEY,
|
|
179
|
+
ParkingDurationTierSchema,
|
|
180
|
+
ParkingSpotSchema,
|
|
181
|
+
ParkingStreetContentSchema,
|
|
126
182
|
PlayerWalletSchema,
|
|
127
183
|
PurchaseRecordSchema,
|
|
128
184
|
SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE,
|
|
@@ -150,42 +206,62 @@ export {
|
|
|
150
206
|
boundsContain,
|
|
151
207
|
buildAmenityPurchaseApuFields,
|
|
152
208
|
buildApuWalletTransaction,
|
|
209
|
+
buildHouseOwnershipPanelLines,
|
|
153
210
|
buildRankedOccupancyPoints,
|
|
154
211
|
buildRankedOccupancyPointsForSpatialZone,
|
|
155
212
|
buildRankedOccupancyPointsForZone,
|
|
156
213
|
buildRankedOccupancyPointsInRect,
|
|
157
214
|
buildWalletBundleApuFields,
|
|
215
|
+
canNodeAcquireParkingSpot,
|
|
158
216
|
cellsForZone,
|
|
159
217
|
centerOfZone,
|
|
218
|
+
clampHousePosition,
|
|
160
219
|
clampWorldPosition,
|
|
220
|
+
computeParkingExpiresAt,
|
|
161
221
|
computeRoundPuDelta,
|
|
162
222
|
computeTalkAgentPowerUpsEarned,
|
|
163
223
|
costForSeconds,
|
|
164
224
|
createEmptyGameStats,
|
|
225
|
+
createEmptyHouseStreetContent,
|
|
226
|
+
createEmptyParkingStreetContent,
|
|
165
227
|
createInitialAgentRewardWallet,
|
|
166
228
|
createInitialPlayerWallet,
|
|
167
229
|
createVerticalStripSeedLayout,
|
|
230
|
+
createWorldLayoutWithParkingRow,
|
|
168
231
|
desaturateColor,
|
|
232
|
+
effectiveHourlyRateUsd,
|
|
169
233
|
enumerateIntegerCellsInRect,
|
|
170
234
|
expandBoundsToMinimumPlayArea,
|
|
171
235
|
featuredGameIdForUtcDate,
|
|
236
|
+
findHouseSlot,
|
|
237
|
+
findParkingSpot,
|
|
238
|
+
formatHouseOwnerDisplayName,
|
|
172
239
|
getGameCabinetByGameId,
|
|
173
240
|
getGameCabinetById,
|
|
241
|
+
getHouseBlueprint,
|
|
174
242
|
getStreetPoolEntryById,
|
|
175
243
|
getWalletBundleById,
|
|
244
|
+
housePurchaseDetail,
|
|
245
|
+
houseSpawnPosition,
|
|
176
246
|
isAgentSpawnOccupancyPointAvailable,
|
|
177
247
|
isAgentSpawnOccupancyPointAvailableInRect,
|
|
178
248
|
isAgentSpawnOccupancyPointAvailableInZone,
|
|
179
249
|
isGameId,
|
|
250
|
+
isHouseOwned,
|
|
180
251
|
isItemAvailableForPurchase,
|
|
252
|
+
isParkingOccupantActive,
|
|
181
253
|
isSpaceAnchorOccupancyPointAvailable,
|
|
182
254
|
isSpaceAnchorOccupancyPointAvailableInRect,
|
|
183
255
|
isSpaceAnchorOccupancyPointAvailableInZone,
|
|
256
|
+
layoutHasParkingZone,
|
|
257
|
+
layoutHouseFixtures,
|
|
258
|
+
listActiveParkingOccupancies,
|
|
184
259
|
listAllowedOccupancyPoints,
|
|
185
260
|
listOccupancyPointsForSpatialZone,
|
|
186
261
|
listOccupancyPointsForZone,
|
|
187
262
|
listOccupancyPointsInRect,
|
|
188
263
|
mergeSnapshotWithPlayerChainNode,
|
|
264
|
+
migrateLayoutToParkingRow,
|
|
189
265
|
migrateWorldLayoutBounds,
|
|
190
266
|
nextStreetFromPool,
|
|
191
267
|
occupancyKeyForPosition,
|