@agent-play/sdk 3.4.1 → 3.4.3
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-BA5gjpPq.d.ts} +503 -40
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +79 -1
- package/dist/{chunk-Z2PYRHFU.js → chunk-27BMLID7.js} +794 -82
- package/dist/chunk-27BMLID7.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +93 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- 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 effectiveParkingStreet, c9 as enumerateIntegerCellsInRect, ca as expandBoundsToMinimumPlayArea, cb as featuredGameIdForUtcDate, cc as findHouseSlot, cd as findParkingSpot, ce as formatHouseOwnerDisplayName, cf as getGameCabinetByGameId, cg as getGameCabinetById, ch as getHouseBlueprint, ci as getStreetPoolEntryById, cj as getWalletBundleById, ck as housePurchaseDetail, cl as houseSpawnPosition, cm as isAgentSpawnOccupancyPointAvailable, cn as isAgentSpawnOccupancyPointAvailableInRect, co as isAgentSpawnOccupancyPointAvailableInZone, cp as isGameId, cq as isHouseOwned, cr as isItemAvailableForPurchase, cs as isParkingOccupantActive, ct as isSpaceAnchorOccupancyPointAvailable, cu as isSpaceAnchorOccupancyPointAvailableInRect, cv as isSpaceAnchorOccupancyPointAvailableInZone, cw as layoutHasParkingZone, cx as layoutHouseFixtures, cz as listActiveParkingOccupancies, cA as listAllowedOccupancyPoints, cB as listOccupancyPointsForSpatialZone, cC as listOccupancyPointsForZone, cD as listOccupancyPointsInRect, cE as mergeSnapshotWithPlayerChainNode, cG as migrateLayoutToParkingRow, cH as migrateWorldLayoutBounds, cI as nextStreetFromPool, cJ as occupancyKeyForPosition, cK as occupancyPointsGroupedBySpatialZone, cL as occupancyPointsGroupedByZones, cO as parsePlayerChainFanoutNotify, cP as parsePlayerChainFanoutNotifyFromSsePayload, cQ as parsePlayerChainNodeRpcBody, cR as pickZoneForGroup, cS as pointCellInRect, cT as pointCellInSpatialZone, cU as pointCellInZone, cV as primaryZoneForGroup, cW as sortNodeRefsForSerializedFetch, cX as spatialZoneBounds, cY as spatialZoneCenter, cZ as streetFromPoolEntry, c_ as utcDateKey, c$ as zonesForGroup } from './browser-BA5gjpPq.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,63 @@ 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,
|
|
91
|
+
effectiveParkingStreet,
|
|
65
92
|
enumerateIntegerCellsInRect,
|
|
66
93
|
expandBoundsToMinimumPlayArea,
|
|
67
94
|
featuredGameIdForUtcDate,
|
|
95
|
+
findHouseSlot,
|
|
96
|
+
findParkingSpot,
|
|
97
|
+
formatHouseOwnerDisplayName,
|
|
68
98
|
getGameCabinetByGameId,
|
|
69
99
|
getGameCabinetById,
|
|
100
|
+
getHouseBlueprint,
|
|
70
101
|
getStreetPoolEntryById,
|
|
71
102
|
getWalletBundleById,
|
|
103
|
+
housePurchaseDetail,
|
|
104
|
+
houseSpawnPosition,
|
|
72
105
|
isAgentSpawnOccupancyPointAvailable,
|
|
73
106
|
isAgentSpawnOccupancyPointAvailableInRect,
|
|
74
107
|
isAgentSpawnOccupancyPointAvailableInZone,
|
|
75
108
|
isGameId,
|
|
109
|
+
isHouseOwned,
|
|
76
110
|
isItemAvailableForPurchase,
|
|
111
|
+
isParkingOccupantActive,
|
|
77
112
|
isSpaceAnchorOccupancyPointAvailable,
|
|
78
113
|
isSpaceAnchorOccupancyPointAvailableInRect,
|
|
79
114
|
isSpaceAnchorOccupancyPointAvailableInZone,
|
|
115
|
+
layoutHasParkingZone,
|
|
116
|
+
layoutHouseFixtures,
|
|
117
|
+
listActiveParkingOccupancies,
|
|
80
118
|
listAllowedOccupancyPoints,
|
|
81
119
|
listOccupancyPointsForSpatialZone,
|
|
82
120
|
listOccupancyPointsForZone,
|
|
83
121
|
listOccupancyPointsInRect,
|
|
84
122
|
mergeSnapshotWithPlayerChainNode,
|
|
123
|
+
migrateLayoutToParkingRow,
|
|
85
124
|
migrateWorldLayoutBounds,
|
|
86
125
|
nextStreetFromPool,
|
|
87
126
|
occupancyKeyForPosition,
|
|
@@ -101,7 +140,7 @@ import {
|
|
|
101
140
|
streetFromPoolEntry,
|
|
102
141
|
utcDateKey,
|
|
103
142
|
zonesForGroup
|
|
104
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-27BMLID7.js";
|
|
105
144
|
export {
|
|
106
145
|
ANALYTICS_EVENT_NAMES,
|
|
107
146
|
APU_TOKEN,
|
|
@@ -112,17 +151,35 @@ export {
|
|
|
112
151
|
CarWashCarSchema,
|
|
113
152
|
DAILY_GAME_PU_CAP,
|
|
114
153
|
DEFAULT_AGENT_SPAWN_MIN_DISTANCE,
|
|
154
|
+
DEFAULT_LAYOUT_BOUNDS_WITH_PARKING,
|
|
155
|
+
DEFAULT_PARKING_RATES_USD,
|
|
115
156
|
DEFAULT_PLAYER_WALLET_BALANCE_USD,
|
|
116
157
|
GAME_CABINET_CATALOG,
|
|
117
158
|
GameEventSchema,
|
|
118
159
|
GamePerTitleStatsSchema,
|
|
119
160
|
GameStatsSchema,
|
|
161
|
+
HOUSE_BLUEPRINTS,
|
|
162
|
+
HOUSE_CATALOG,
|
|
163
|
+
HOUSE_WORLD_X,
|
|
164
|
+
HouseIdSchema,
|
|
165
|
+
HouseSlotSchema,
|
|
166
|
+
HouseStreetContentSchema,
|
|
167
|
+
MAX_SLOTS_WITH_FOREVER,
|
|
168
|
+
MAX_TIMED_PARKING_SLOTS_PER_NODE,
|
|
120
169
|
MINIMUM_PLAY_WORLD_BOUNDS,
|
|
121
170
|
MINIMUM_STREET_LAYOUT_BOUNDS,
|
|
122
171
|
OCCUPANCY_POINT_MULTIPLIER,
|
|
172
|
+
PARKING_BAY_COUNT,
|
|
173
|
+
PARKING_DURATION_TIERS,
|
|
174
|
+
PARKING_HOUSE_COUNT,
|
|
175
|
+
PARKING_LAYERS_PER_BAY,
|
|
176
|
+
PARKING_SPOT_COUNT,
|
|
123
177
|
PLAYABLE_GAME_IDS,
|
|
124
178
|
PLAYER_CHAIN_GENESIS_STABLE_KEY,
|
|
125
179
|
PLAYER_CHAIN_HEADER_STABLE_KEY,
|
|
180
|
+
ParkingDurationTierSchema,
|
|
181
|
+
ParkingSpotSchema,
|
|
182
|
+
ParkingStreetContentSchema,
|
|
126
183
|
PlayerWalletSchema,
|
|
127
184
|
PurchaseRecordSchema,
|
|
128
185
|
SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE,
|
|
@@ -150,42 +207,63 @@ export {
|
|
|
150
207
|
boundsContain,
|
|
151
208
|
buildAmenityPurchaseApuFields,
|
|
152
209
|
buildApuWalletTransaction,
|
|
210
|
+
buildHouseOwnershipPanelLines,
|
|
153
211
|
buildRankedOccupancyPoints,
|
|
154
212
|
buildRankedOccupancyPointsForSpatialZone,
|
|
155
213
|
buildRankedOccupancyPointsForZone,
|
|
156
214
|
buildRankedOccupancyPointsInRect,
|
|
157
215
|
buildWalletBundleApuFields,
|
|
216
|
+
canNodeAcquireParkingSpot,
|
|
158
217
|
cellsForZone,
|
|
159
218
|
centerOfZone,
|
|
219
|
+
clampHousePosition,
|
|
160
220
|
clampWorldPosition,
|
|
221
|
+
computeParkingExpiresAt,
|
|
161
222
|
computeRoundPuDelta,
|
|
162
223
|
computeTalkAgentPowerUpsEarned,
|
|
163
224
|
costForSeconds,
|
|
164
225
|
createEmptyGameStats,
|
|
226
|
+
createEmptyHouseStreetContent,
|
|
227
|
+
createEmptyParkingStreetContent,
|
|
165
228
|
createInitialAgentRewardWallet,
|
|
166
229
|
createInitialPlayerWallet,
|
|
167
230
|
createVerticalStripSeedLayout,
|
|
231
|
+
createWorldLayoutWithParkingRow,
|
|
168
232
|
desaturateColor,
|
|
233
|
+
effectiveHourlyRateUsd,
|
|
234
|
+
effectiveParkingStreet,
|
|
169
235
|
enumerateIntegerCellsInRect,
|
|
170
236
|
expandBoundsToMinimumPlayArea,
|
|
171
237
|
featuredGameIdForUtcDate,
|
|
238
|
+
findHouseSlot,
|
|
239
|
+
findParkingSpot,
|
|
240
|
+
formatHouseOwnerDisplayName,
|
|
172
241
|
getGameCabinetByGameId,
|
|
173
242
|
getGameCabinetById,
|
|
243
|
+
getHouseBlueprint,
|
|
174
244
|
getStreetPoolEntryById,
|
|
175
245
|
getWalletBundleById,
|
|
246
|
+
housePurchaseDetail,
|
|
247
|
+
houseSpawnPosition,
|
|
176
248
|
isAgentSpawnOccupancyPointAvailable,
|
|
177
249
|
isAgentSpawnOccupancyPointAvailableInRect,
|
|
178
250
|
isAgentSpawnOccupancyPointAvailableInZone,
|
|
179
251
|
isGameId,
|
|
252
|
+
isHouseOwned,
|
|
180
253
|
isItemAvailableForPurchase,
|
|
254
|
+
isParkingOccupantActive,
|
|
181
255
|
isSpaceAnchorOccupancyPointAvailable,
|
|
182
256
|
isSpaceAnchorOccupancyPointAvailableInRect,
|
|
183
257
|
isSpaceAnchorOccupancyPointAvailableInZone,
|
|
258
|
+
layoutHasParkingZone,
|
|
259
|
+
layoutHouseFixtures,
|
|
260
|
+
listActiveParkingOccupancies,
|
|
184
261
|
listAllowedOccupancyPoints,
|
|
185
262
|
listOccupancyPointsForSpatialZone,
|
|
186
263
|
listOccupancyPointsForZone,
|
|
187
264
|
listOccupancyPointsInRect,
|
|
188
265
|
mergeSnapshotWithPlayerChainNode,
|
|
266
|
+
migrateLayoutToParkingRow,
|
|
189
267
|
migrateWorldLayoutBounds,
|
|
190
268
|
nextStreetFromPool,
|
|
191
269
|
occupancyKeyForPosition,
|