@crowdedkingdoms/crowdyjs 8.7.0 → 8.9.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/MIGRATION.md +85 -0
- package/README.md +2 -2
- package/dist/domains/compute.d.ts +12 -1
- package/dist/domains/compute.d.ts.map +1 -1
- package/dist/domains/compute.js +18 -1
- package/dist/generated/graphql.d.ts +60 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/kit/abilities.d.ts +66 -0
- package/dist/kit/abilities.d.ts.map +1 -0
- package/dist/kit/abilities.js +71 -0
- package/dist/kit/blueprints/index.d.ts +2 -0
- package/dist/kit/blueprints/index.d.ts.map +1 -1
- package/dist/kit/blueprints/index.js +2 -0
- package/dist/kit/blueprints/liveops.d.ts +42 -0
- package/dist/kit/blueprints/liveops.d.ts.map +1 -0
- package/dist/kit/blueprints/liveops.js +170 -0
- package/dist/kit/blueprints/moderation.d.ts +32 -0
- package/dist/kit/blueprints/moderation.d.ts.map +1 -0
- package/dist/kit/blueprints/moderation.js +140 -0
- package/dist/kit/decks.d.ts +33 -1
- package/dist/kit/decks.d.ts.map +1 -1
- package/dist/kit/decks.js +49 -1
- package/dist/kit/director.d.ts +88 -0
- package/dist/kit/director.d.ts.map +1 -0
- package/dist/kit/director.js +86 -0
- package/dist/kit/economy.d.ts +46 -1
- package/dist/kit/economy.d.ts.map +1 -1
- package/dist/kit/economy.js +63 -1
- package/dist/kit/index.d.ts +14 -3
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/index.js +14 -3
- package/dist/kit/instances.d.ts +52 -0
- package/dist/kit/instances.d.ts.map +1 -0
- package/dist/kit/instances.js +60 -0
- package/dist/kit/kit.d.ts +60 -0
- package/dist/kit/kit.d.ts.map +1 -1
- package/dist/kit/kit.js +47 -5
- package/dist/kit/leaderboards.d.ts +21 -1
- package/dist/kit/leaderboards.d.ts.map +1 -1
- package/dist/kit/leaderboards.js +40 -1
- package/dist/kit/liveops.d.ts +112 -0
- package/dist/kit/liveops.d.ts.map +1 -0
- package/dist/kit/liveops.js +183 -0
- package/dist/kit/loot.d.ts +22 -1
- package/dist/kit/loot.d.ts.map +1 -1
- package/dist/kit/loot.js +41 -1
- package/dist/kit/matches.d.ts +33 -1
- package/dist/kit/matches.d.ts.map +1 -1
- package/dist/kit/matches.js +56 -1
- package/dist/kit/matchmaking.d.ts +57 -0
- package/dist/kit/matchmaking.d.ts.map +1 -0
- package/dist/kit/matchmaking.js +59 -0
- package/dist/kit/minigames.d.ts +30 -0
- package/dist/kit/minigames.d.ts.map +1 -0
- package/dist/kit/minigames.js +38 -0
- package/dist/kit/moderation.d.ts +73 -0
- package/dist/kit/moderation.d.ts.map +1 -0
- package/dist/kit/moderation.js +103 -0
- package/dist/kit/movement.d.ts +78 -0
- package/dist/kit/movement.d.ts.map +1 -0
- package/dist/kit/movement.js +103 -0
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/quests.d.ts +57 -0
- package/dist/kit/quests.d.ts.map +1 -1
- package/dist/kit/quests.js +72 -0
- package/dist/kit/racing.d.ts +85 -0
- package/dist/kit/racing.d.ts.map +1 -0
- package/dist/kit/racing.js +99 -0
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/kit/telemetry.d.ts +66 -0
- package/dist/kit/telemetry.d.ts.map +1 -0
- package/dist/kit/telemetry.js +133 -0
- package/dist/kit/territory.d.ts +97 -0
- package/dist/kit/territory.d.ts.map +1 -0
- package/dist/kit/territory.js +114 -0
- package/dist/kit/wire.d.ts +88 -0
- package/dist/kit/wire.d.ts.map +1 -1
- package/dist/kit/wire.js +110 -0
- package/package.json +1 -1
|
@@ -285,6 +285,8 @@ export const ComputeModuleRunsDocument = { "kind": "Document", "definitions": [{
|
|
|
285
285
|
export const ComputeModuleStatsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ComputeModuleStats" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "windowMinutes" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "computeModuleStats" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "windowMinutes" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "windowMinutes" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "windowMinutes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalRuns" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failedRuns" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failureRatePct" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalFuelUsed" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalEgressMsgs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avgDurationUs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "byModule" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "moduleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failures" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelUsed" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avgDurationUs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitState" } }] } }] } }] } }] };
|
|
286
286
|
export const ComputeModuleLogsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ComputeModuleLogs" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "moduleName" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "computeModuleLogs" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "moduleName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "moduleName" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "ts" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "level" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerSource" } }] } }] } }] };
|
|
287
287
|
export const ComputeAppDiagnosticsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ComputeAppDiagnostics" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "computeAppDiagnostics" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "moduleCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabledModuleCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "versionCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "triggerCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runs24h" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failedRuns24h" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelUsed24h" } }, { "kind": "Field", "name": { "kind": "Name", "value": "topModules" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "moduleName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failures" } }] } }] } }] } }] };
|
|
288
|
+
export const ComputeTemplatesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ComputeTemplates" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "computeTemplates" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "exports" } }] } }] } }] };
|
|
289
|
+
export const ComputeDeployTemplateDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ComputeDeployTemplate" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "templateName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "moduleName" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "computeDeployTemplate" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "templateName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "templateName" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "moduleName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "moduleName" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "ComputeModuleFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ComputeModuleFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "WasmModule" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "moduleId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "enabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alwaysOn" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentVersionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "circuitState" } }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutiveFailures" } }, { "kind": "Field", "name": { "kind": "Name", "value": "cooldownUntil" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastError" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] };
|
|
288
290
|
export const CpEnvironmentsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CpEnvironments" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "pageSize" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cpEnvironments" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "page" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "pageSize" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "pageSize" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "rows" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "primaryCloud" } }, { "kind": "Field", "name": { "kind": "Name", "value": "primaryRegion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "deletionProtectionEnabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "subdomainHandle" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "total" } }, { "kind": "Field", "name": { "kind": "Name", "value": "page" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageSize" } }] } }] } }] };
|
|
289
291
|
export const CpEnvironmentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CpEnvironment" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "slug" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cpEnvironment" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "slug" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "slug" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "primaryCloud" } }, { "kind": "Field", "name": { "kind": "Name", "value": "primaryRegion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "deletionProtectionEnabled" } }, { "kind": "Field", "name": { "kind": "Name", "value": "deletionProtectionSetAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "deletionProtectionSetByEmail" } }, { "kind": "Field", "name": { "kind": "Name", "value": "subdomainHandle" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
290
292
|
export const CpChangeOrdersDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CpChangeOrders" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "environmentId" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "pageSize" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "cpChangeOrders" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "environmentId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "environmentId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "page" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "pageSize" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "pageSize" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "rows" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "environmentId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "kind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "claimedBy" } }, { "kind": "Field", "name": { "kind": "Name", "value": "claimedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "finishedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "error" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "total" } }, { "kind": "Field", "name": { "kind": "Name", "value": "page" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageSize" } }] } }] } }] };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export declare const VERSION = "8.
|
|
48
|
+
export declare const VERSION = "8.9.0";
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, type CrowdyClientConfig, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, type SessionListener, type TokenStore, } from './session.js';
|
|
@@ -53,7 +53,7 @@ export { GraphQLClient, GraphQLTransport, type GraphQLClientConfig, } from './cl
|
|
|
53
53
|
export { RealtimeClient, type RealtimeConfig, type RealtimeStatus, type SpatialNotification, type UdpNotification, type UdpNotificationHandlers, } from './realtime.js';
|
|
54
54
|
export { RealtimeMetrics, payloadBytesOf, type RealtimeMetricsCounters, type RealtimeMetricsKind, type RealtimeMetricsSnapshot, } from './metrics.js';
|
|
55
55
|
export { WorldClient, ActorClient, type ActorOptions } from './world.js';
|
|
56
|
-
export { CombatKit, DecksKit, EconomyKit, EngineDetector, FeaturesKit, GameKitClient, InventoryKit, LeaderboardsKit, LootKit, MatchesKit, MobsKit, NpcsKit, ObjectsKit, PetsKit, PlotsKit, ProgressionKit, QuestsKit, SocialKit, WorldsimKit, EVENT_CONTACT_DAMAGE, EVENT_WEATHER, FLAG_GROUNDED, FLAG_MOB, FLAG_NPC, FLAG_RESERVED3, POSE_BYTES, decodeEnginePose, encodeEnginePose, engineLanes, enginePoseCodec, parseContactDamage, parseEngineEvent, parseWeatherEvent, poseSuffix, andPolicies, combatBlueprint, combatNames, composeBlueprints, decksBlueprint, decksNames, economyBlueprint, economyCurrencyFn, economyNames, featureGate, guildBlueprint, guildNames, inventoryBlueprint, inventoryNames, kitInvoke, kitPolicyJson, leaderboardsBlueprint, leaderboardsNames, lockBlueprint, lockNames, lootBlueprint, lootNames, lootRollFn, matchesBlueprint, matchesNames, mergeBlueprints, npcBehaviorFunctionName, npcBlueprint, ownerEqualsCaller, ownerMirrorProperty, ownerEquals, plotBlueprint, plotNames, progressionBlueprint, progressionNames, questsBlueprint, questsNames, toKitInvokeResult, trustedAuthorityFields, worldsimBlueprint, worldsimNames, type CombatBlueprintOptions, type CombatKitOptions, type CombatNames, type ContactDamageEvent, type EnginePose, type EngineInvokeResult, type DecksBlueprintOptions, type DecksKitOptions, type DecksNames, type EconomyBlueprintOptions, type EconomyKitOptions, type EconomyNames, type GameKitDomains, type GameKitOptions, type GuildBlueprintOptions, type GuildNames, type InventoryBlueprintOptions, type InventoryKitOptions, type InventoryNames, type KitAchievementDef, type KitAchievementUnlock, type KitAutomationSpec, type KitAutomationTriggerSpec, type KitBlueprint, type KitCard, type KitChatMessage, type KitCombatant, type KitCrop, type KitGroupWithChannel, type KitDeployResult, type KitInvokePolicy, type KitInvokeResult, type KitItemStack, type KitLeaderboardEntry, type KitLootRoll, type KitMarketListing, type KitAttackResult, type KitForecast, type KitMatch, type KitMatchScore, type KitMobDef, type KitMobSlot, type KitNpc, type KitOwnerIdKind, type KitPet, type KitPetResult, type KitPlot, type KitRoutedAttack, type KitProgress, type KitQuestDef, type KitQuestProgress, type KitResourceNode, type KitSelectorSpec, type KitShopListing, type KitSkillDef, type KitSkillRank, type KitStatusEffect, type KitTradeOffer, type KitTrustedAuthority, type KitWallet, type KitWaveSpawner, type LeaderboardsBlueprintOptions, type LeaderboardsKitOptions, type LeaderboardsNames, type KitWorldState, type LockAuthority, type LockBlueprintOptions, type LockNames, type LootBlueprintOptions, type LootDropSpec, type LootEntrySpec, type LootKitOptions, type LootNames, type LootTableSpec, type MatchesBlueprintOptions, type MatchesKitOptions, type MatchesNames, type MergedBlueprints, type MobsKitOptions, type LiveNpcPose, type NpcBehaviorSpec, type NpcBehaviorTrigger, type NpcBlueprintOptions, type NpcsKitOptions, type ObjectsKitOptions, type PetsKitOptions, type PlotBlueprintOptions, type PlotNames, type PlotsKitOptions, type ProgressionBlueprintOptions, type ProgressionKitOptions, type ProgressionNames, type QuestAdvanceSpec, type QuestsBlueprintOptions, type QuestsKitOptions, type QuestsNames, type SelectorPermissionPredicate, type SocialKitOptions, type WeatherEvent, type WorldsimBlueprintOptions, type WorldsimKitOptions, type WorldsimNames, } from './kit/index.js';
|
|
56
|
+
export { CombatKit, DecksKit, EconomyKit, DirectorKit, EngineDetector, FeaturesKit, GameKitClient, InventoryKit, LeaderboardsKit, InstancesKit, LootKit, MarketKit, MatchesKit, AbilitiesKit, LiveopsKit, MovementKit, RacingKit, TerritoryKit, ModerationKit, TelemetryKit, telemetryBlueprint, MatchmakingKit, MinigamesKit, MobsKit, NpcsKit, ObjectsKit, PetsKit, PlotsKit, ProgressionKit, QuestsKit, SocialKit, WorldsimKit, EVENT_CONTACT_DAMAGE, EVENT_ABILITY, EVENT_CONTROL_POINT, EVENT_MOVEMENT_VIOLATION, EVENT_PROPOSAL, EVENT_RACE_TIMING, EVENT_ZONE_CHANGE, EVENT_SCORE, EVENT_TURN, EVENT_WEATHER, FLAG_GROUNDED, FLAG_MOB, FLAG_NPC, FLAG_RESERVED3, POSE_BYTES, decodeEnginePose, encodeEnginePose, engineLanes, enginePoseCodec, parseContactDamage, parseEngineEvent, parseAbilityEvent, parseControlPointEvent, parseMovementViolation, parseProposalEvent, parseRaceTimingEvent, parseScoreEvent, parseTurnEvent, parseWeatherEvent, poseSuffix, andPolicies, combatBlueprint, combatNames, composeBlueprints, decksBlueprint, decksNames, economyBlueprint, economyCurrencyFn, economyNames, featureGate, guildBlueprint, guildNames, inventoryBlueprint, inventoryNames, kitInvoke, kitPolicyJson, leaderboardsBlueprint, leaderboardsNames, lockBlueprint, lockNames, lootBlueprint, lootNames, lootRollFn, liveopsBlueprint, liveopsNames, moderationBlueprint, moderationNames, matchesBlueprint, matchesNames, mergeBlueprints, npcBehaviorFunctionName, npcBlueprint, ownerEqualsCaller, ownerMirrorProperty, ownerEquals, plotBlueprint, plotNames, progressionBlueprint, progressionNames, questsBlueprint, questsNames, toKitInvokeResult, trustedAuthorityFields, worldsimBlueprint, worldsimNames, type CombatBlueprintOptions, type CombatKitOptions, type CombatNames, type ContactDamageEvent, type EnginePose, type EngineInvokeResult, type DecksBlueprintOptions, type DecksKitOptions, type DecksNames, type EconomyBlueprintOptions, type EconomyKitOptions, type EconomyNames, type GameKitDomains, type GameKitOptions, type GuildBlueprintOptions, type GuildNames, type InventoryBlueprintOptions, type InventoryKitOptions, type InventoryNames, type KitAchievementDef, type KitAchievementUnlock, type KitAutomationSpec, type KitAutomationTriggerSpec, type KitBlueprint, type KitCard, type KitChatMessage, type KitCombatant, type KitCrop, type KitGroupWithChannel, type KitDeployResult, type KitInvokePolicy, type KitInvokeResult, type KitItemStack, type KitLeaderboardEntry, type KitLootRoll, type KitMarketListing, type KitAttackResult, type KitDirectorRun, type KitForecast, type KitInstance, type KitMatch, type KitMatchScore, type KitMobDef, type KitMobSlot, type KitNpc, type KitOwnerIdKind, type KitPet, type KitPetResult, type KitPlot, type KitQueueStatus, type KitRoutedAttack, type KitProgress, type KitQuestDef, type KitQuestProgress, type KitResourceNode, type KitSelectorSpec, type KitShopListing, type KitSkillDef, type KitSkillRank, type KitStatusEffect, type KitTradeOffer, type KitTrustedAuthority, type KitWallet, type KitWaveSpawner, type LeaderboardsBlueprintOptions, type LeaderboardsKitOptions, type LeaderboardsNames, type KitWorldState, type LockAuthority, type LockBlueprintOptions, type LockNames, type LootBlueprintOptions, type LootDropSpec, type LootEntrySpec, type LootKitOptions, type LootNames, type LootTableSpec, type MatchesBlueprintOptions, type MatchesKitOptions, type MatchesNames, type MergedBlueprints, type MatchmakingKitOptions, type MinigamesKitOptions, type MobsKitOptions, type LiveNpcPose, type InstancesKitOptions, type DirectorKitOptions, type KitWaveSpec, type NpcBehaviorSpec, type NpcBehaviorTrigger, type NpcBlueprintOptions, type NpcsKitOptions, type ObjectsKitOptions, type PetsKitOptions, type PlotBlueprintOptions, type PlotNames, type PlotsKitOptions, type ProgressionBlueprintOptions, type ProgressionKitOptions, type ProgressionNames, type QuestAdvanceSpec, type QuestsBlueprintOptions, type QuestsKitOptions, type QuestsNames, type SelectorPermissionPredicate, type SocialKitOptions, type AbilityEvent, type ControlPointEvent, type KitEventWindow, type KitSeason, type LiveopsBlueprintOptions, type LiveopsKitOptions, type LiveopsNames, type AbilitiesKitOptions, type KitAbility, type KitControlPoint, type KitModReport, type KitRaceRun, type KitViolations, type MovementKitOptions, type RacingKitOptions, type TerritoryKitOptions, type ModerationBlueprintOptions, type ModerationKitOptions, type ModerationNames, type MovementViolationEvent, type TelemetryKitOptions, type ProposalEvent, type RaceTimingEvent, type ZoneChangeEvent, type ScoreEvent, type TurnEvent, type WeatherEvent, type WorldsimBlueprintOptions, type WorldsimKitOptions, type WorldsimNames, } from './kit/index.js';
|
|
57
57
|
export type { StateCodec, Ticker, WorldSession, WorldSessionConfig, WorldStoresClient, } from './stores/index.js';
|
|
58
58
|
export { CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, } from './errors.js';
|
|
59
59
|
export { SequenceAllocator, decodeBase64, encodeBase64, generateCrowdyUuid, validateChunkCoordinates, validateCrowdyUuid, } from './utils.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[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QAAQ,EACR,4BAA4B,EAG5B,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EAEvB,OAAO,GACR,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GACd,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* or internal tooling, never an untrusted browser.
|
|
46
46
|
*/
|
|
47
47
|
/** The published package version. Mirrors `package.json`. */
|
|
48
|
-
export const VERSION = '8.
|
|
48
|
+
export const VERSION = '8.9.0';
|
|
49
49
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
50
50
|
export { CrowdyClient, createCrowdyClient, } from './crowdy-client.js';
|
|
51
51
|
export { BrowserLocalStorageTokenStore, SessionStore, } from './session.js';
|
|
@@ -53,7 +53,7 @@ export { GraphQLClient, GraphQLTransport, } from './client.js';
|
|
|
53
53
|
export { RealtimeClient, } from './realtime.js';
|
|
54
54
|
export { RealtimeMetrics, payloadBytesOf, } from './metrics.js';
|
|
55
55
|
export { WorldClient, ActorClient } from './world.js';
|
|
56
|
-
export { CombatKit, DecksKit, EconomyKit, EngineDetector, FeaturesKit, GameKitClient, InventoryKit, LeaderboardsKit, LootKit, MatchesKit, MobsKit, NpcsKit, ObjectsKit, PetsKit, PlotsKit, ProgressionKit, QuestsKit, SocialKit, WorldsimKit, EVENT_CONTACT_DAMAGE, EVENT_WEATHER, FLAG_GROUNDED, FLAG_MOB, FLAG_NPC, FLAG_RESERVED3, POSE_BYTES, decodeEnginePose, encodeEnginePose, engineLanes, enginePoseCodec, parseContactDamage, parseEngineEvent, parseWeatherEvent, poseSuffix, andPolicies, combatBlueprint, combatNames, composeBlueprints, decksBlueprint, decksNames, economyBlueprint, economyCurrencyFn, economyNames, featureGate, guildBlueprint, guildNames, inventoryBlueprint, inventoryNames, kitInvoke, kitPolicyJson, leaderboardsBlueprint, leaderboardsNames, lockBlueprint, lockNames, lootBlueprint, lootNames, lootRollFn, matchesBlueprint, matchesNames, mergeBlueprints, npcBehaviorFunctionName, npcBlueprint, ownerEqualsCaller, ownerMirrorProperty, ownerEquals, plotBlueprint, plotNames, progressionBlueprint, progressionNames, questsBlueprint, questsNames, toKitInvokeResult, trustedAuthorityFields, worldsimBlueprint, worldsimNames, } from './kit/index.js';
|
|
56
|
+
export { CombatKit, DecksKit, EconomyKit, DirectorKit, EngineDetector, FeaturesKit, GameKitClient, InventoryKit, LeaderboardsKit, InstancesKit, LootKit, MarketKit, MatchesKit, AbilitiesKit, LiveopsKit, MovementKit, RacingKit, TerritoryKit, ModerationKit, TelemetryKit, telemetryBlueprint, MatchmakingKit, MinigamesKit, MobsKit, NpcsKit, ObjectsKit, PetsKit, PlotsKit, ProgressionKit, QuestsKit, SocialKit, WorldsimKit, EVENT_CONTACT_DAMAGE, EVENT_ABILITY, EVENT_CONTROL_POINT, EVENT_MOVEMENT_VIOLATION, EVENT_PROPOSAL, EVENT_RACE_TIMING, EVENT_ZONE_CHANGE, EVENT_SCORE, EVENT_TURN, EVENT_WEATHER, FLAG_GROUNDED, FLAG_MOB, FLAG_NPC, FLAG_RESERVED3, POSE_BYTES, decodeEnginePose, encodeEnginePose, engineLanes, enginePoseCodec, parseContactDamage, parseEngineEvent, parseAbilityEvent, parseControlPointEvent, parseMovementViolation, parseProposalEvent, parseRaceTimingEvent, parseScoreEvent, parseTurnEvent, parseWeatherEvent, poseSuffix, andPolicies, combatBlueprint, combatNames, composeBlueprints, decksBlueprint, decksNames, economyBlueprint, economyCurrencyFn, economyNames, featureGate, guildBlueprint, guildNames, inventoryBlueprint, inventoryNames, kitInvoke, kitPolicyJson, leaderboardsBlueprint, leaderboardsNames, lockBlueprint, lockNames, lootBlueprint, lootNames, lootRollFn, liveopsBlueprint, liveopsNames, moderationBlueprint, moderationNames, matchesBlueprint, matchesNames, mergeBlueprints, npcBehaviorFunctionName, npcBlueprint, ownerEqualsCaller, ownerMirrorProperty, ownerEquals, plotBlueprint, plotNames, progressionBlueprint, progressionNames, questsBlueprint, questsNames, toKitInvokeResult, trustedAuthorityFields, worldsimBlueprint, worldsimNames, } from './kit/index.js';
|
|
57
57
|
export { CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, } from './errors.js';
|
|
58
58
|
export { SequenceAllocator, decodeBase64, encodeBase64, generateCrowdyUuid, validateChunkCoordinates, validateCrowdyUuid, } from './utils.js';
|
|
59
59
|
export { UdpErrorCode } from './types.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { GameModelAPI } from '../domains/gameModel.js';
|
|
2
|
+
import type { Scalars } from '../generated/graphql.js';
|
|
3
|
+
import type { EngineDetector } from './engine.js';
|
|
4
|
+
import { type AbilityEvent } from './wire.js';
|
|
5
|
+
/** Options for {@link AbilitiesKit}. */
|
|
6
|
+
export interface AbilitiesKitOptions {
|
|
7
|
+
/** The abilities engine module name. Defaults to `'abilities-engine'`. */
|
|
8
|
+
moduleName?: string;
|
|
9
|
+
/** The ability-definition container type. Defaults to `'AbilityDef'`. */
|
|
10
|
+
defTypeName?: string;
|
|
11
|
+
}
|
|
12
|
+
/** One ability as the engine's loadout reports it. */
|
|
13
|
+
export interface KitAbility {
|
|
14
|
+
abilityId: string;
|
|
15
|
+
cooldownMs: number;
|
|
16
|
+
resourceCost: number;
|
|
17
|
+
range: number;
|
|
18
|
+
kind: 'instant' | 'projectile' | 'aoe' | string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Runtime helpers for the abilities engine (Wave 3): realtime casts with
|
|
22
|
+
* server-side cooldown/resource/range books, tick-stepped projectiles, and
|
|
23
|
+
* delayed AoEs. The caster's position is their live pose — `cast()` only
|
|
24
|
+
* carries the TARGET; the server decides everything else. Type-94
|
|
25
|
+
* cast/impact events carry the visuals.
|
|
26
|
+
*
|
|
27
|
+
* Obtained via `client.kit(appId).abilities`.
|
|
28
|
+
*/
|
|
29
|
+
export declare class AbilitiesKit {
|
|
30
|
+
private readonly appId;
|
|
31
|
+
private readonly gameModel;
|
|
32
|
+
private readonly engines;
|
|
33
|
+
private readonly moduleName;
|
|
34
|
+
private readonly defTypeName;
|
|
35
|
+
constructor(appId: Scalars['BigInt']['input'], gameModel: GameModelAPI, engines: EngineDetector, options?: AbilitiesKitOptions);
|
|
36
|
+
/** Is the abilities engine deployed + enabled (cached per session)? */
|
|
37
|
+
engineAvailable(): Promise<boolean>;
|
|
38
|
+
/** STUDIO (admin) — create an ability definition container. */
|
|
39
|
+
defineAbility(input: {
|
|
40
|
+
abilityId: string;
|
|
41
|
+
displayName?: string;
|
|
42
|
+
spec: Record<string, unknown>;
|
|
43
|
+
}): Promise<{
|
|
44
|
+
__typename?: "GmContainer";
|
|
45
|
+
containerId: string;
|
|
46
|
+
appId: string;
|
|
47
|
+
sessionId: string | null;
|
|
48
|
+
typeName: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
description: string | null;
|
|
51
|
+
ownerUserId: string | null;
|
|
52
|
+
metadataJson: string;
|
|
53
|
+
}>;
|
|
54
|
+
/** Cast at a target point (your position comes from your live pose). */
|
|
55
|
+
cast(abilityId: string, targetX: number, targetZ: number): Promise<Record<string, unknown>>;
|
|
56
|
+
/** The deployed ability loadout. */
|
|
57
|
+
loadout(): Promise<KitAbility[]>;
|
|
58
|
+
/** YOUR caster book: resource pool + live cooldowns. */
|
|
59
|
+
book(): Promise<Record<string, unknown>>;
|
|
60
|
+
/** Engine totals (casters, live projectiles, hits). */
|
|
61
|
+
status(): Promise<Record<string, unknown>>;
|
|
62
|
+
/** Parse a type-94 cast/impact server event. */
|
|
63
|
+
parseAbilityEvent(bytes: Uint8Array): AbilityEvent | null;
|
|
64
|
+
private invoke;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=abilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abilities.d.ts","sourceRoot":"","sources":["../../src/kit/abilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEjE,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,qBAAa,YAAY;IAKrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAN1B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAGlB,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EACjC,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,cAAc,EACxC,OAAO,GAAE,mBAAwB;IAMnC,uEAAuE;IACvE,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAInC,+DAA+D;IACzD,aAAa,CAAC,KAAK,EAAE;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/B;;;;;;;;;;;IAYD,wEAAwE;IAClE,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAI9D,oCAAoC;IAC9B,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAatC,wDAAwD;IAClD,IAAI;IAIV,uDAAuD;IACjD,MAAM;IAIZ,gDAAgD;IAChD,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,GAAG,IAAI;YAI3C,MAAM;CAOrB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { parseAbilityEvent } from './wire.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime helpers for the abilities engine (Wave 3): realtime casts with
|
|
4
|
+
* server-side cooldown/resource/range books, tick-stepped projectiles, and
|
|
5
|
+
* delayed AoEs. The caster's position is their live pose — `cast()` only
|
|
6
|
+
* carries the TARGET; the server decides everything else. Type-94
|
|
7
|
+
* cast/impact events carry the visuals.
|
|
8
|
+
*
|
|
9
|
+
* Obtained via `client.kit(appId).abilities`.
|
|
10
|
+
*/
|
|
11
|
+
export class AbilitiesKit {
|
|
12
|
+
constructor(appId, gameModel, engines, options = {}) {
|
|
13
|
+
this.appId = appId;
|
|
14
|
+
this.gameModel = gameModel;
|
|
15
|
+
this.engines = engines;
|
|
16
|
+
this.moduleName = options.moduleName ?? 'abilities-engine';
|
|
17
|
+
this.defTypeName = options.defTypeName ?? 'AbilityDef';
|
|
18
|
+
}
|
|
19
|
+
/** Is the abilities engine deployed + enabled (cached per session)? */
|
|
20
|
+
engineAvailable() {
|
|
21
|
+
return this.engines.has(this.moduleName);
|
|
22
|
+
}
|
|
23
|
+
/** STUDIO (admin) — create an ability definition container. */
|
|
24
|
+
async defineAbility(input) {
|
|
25
|
+
return this.gameModel.createContainer({
|
|
26
|
+
appId: this.appId,
|
|
27
|
+
typeName: this.defTypeName,
|
|
28
|
+
displayName: input.displayName ?? `ability-${input.abilityId}`,
|
|
29
|
+
properties: [
|
|
30
|
+
{ key: 'ability_id', valueType: 'string', valueJson: JSON.stringify(input.abilityId) },
|
|
31
|
+
{ key: 'spec', valueType: 'string', valueJson: JSON.stringify(JSON.stringify(input.spec)) },
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/** Cast at a target point (your position comes from your live pose). */
|
|
36
|
+
async cast(abilityId, targetX, targetZ) {
|
|
37
|
+
return this.invoke('cast', { abilityId, targetX, targetZ });
|
|
38
|
+
}
|
|
39
|
+
/** The deployed ability loadout. */
|
|
40
|
+
async loadout() {
|
|
41
|
+
const body = await this.invoke('loadout', {});
|
|
42
|
+
return Array.isArray(body.abilities)
|
|
43
|
+
? body.abilities.map((a) => ({
|
|
44
|
+
abilityId: String(a.abilityId ?? ''),
|
|
45
|
+
cooldownMs: Number(a.cooldownMs ?? 0),
|
|
46
|
+
resourceCost: Number(a.resourceCost ?? 0),
|
|
47
|
+
range: Number(a.range ?? 0),
|
|
48
|
+
kind: String(a.kind ?? ''),
|
|
49
|
+
}))
|
|
50
|
+
: [];
|
|
51
|
+
}
|
|
52
|
+
/** YOUR caster book: resource pool + live cooldowns. */
|
|
53
|
+
async book() {
|
|
54
|
+
return this.invoke('book', {});
|
|
55
|
+
}
|
|
56
|
+
/** Engine totals (casters, live projectiles, hits). */
|
|
57
|
+
async status() {
|
|
58
|
+
return this.invoke('status', {});
|
|
59
|
+
}
|
|
60
|
+
/** Parse a type-94 cast/impact server event. */
|
|
61
|
+
parseAbilityEvent(bytes) {
|
|
62
|
+
return parseAbilityEvent(bytes);
|
|
63
|
+
}
|
|
64
|
+
async invoke(exportName, params) {
|
|
65
|
+
const result = await this.engines.invoke(this.moduleName, exportName, params);
|
|
66
|
+
if (!result.success) {
|
|
67
|
+
throw new Error(`abilities.${exportName} failed: ${result.reason ?? 'unknown'}`);
|
|
68
|
+
}
|
|
69
|
+
return result.body;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -18,4 +18,6 @@ export { plotBlueprint, plotNames, type PlotBlueprintOptions, type PlotNames, }
|
|
|
18
18
|
export { matchesBlueprint, matchesNames, type MatchesBlueprintOptions, type MatchesNames, } from './matches.js';
|
|
19
19
|
export { npcBehaviorFunctionName, npcBlueprint, type NpcBehaviorSpec, type NpcBehaviorTrigger, type NpcBlueprintOptions, } from './npcs.js';
|
|
20
20
|
export { worldsimBlueprint, worldsimNames, type WorldsimBlueprintOptions, type WorldsimNames, } from './worldsim.js';
|
|
21
|
+
export { liveopsBlueprint, liveopsNames, type LiveopsBlueprintOptions, type LiveopsNames, } from './liveops.js';
|
|
22
|
+
export { moderationBlueprint, moderationNames, type ModerationBlueprintOptions, type ModerationNames, } from './moderation.js';
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kit/blueprints/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,qBAAqB,EAC1B,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,qBAAqB,EAC1B,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,cAAc,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,EACb,SAAS,EACT,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,aAAa,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACb,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,SAAS,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,SAAS,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,aAAa,GACnB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kit/blueprints/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,WAAW,GACjB,MAAM,aAA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L,uBAAuB,EACvB,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,aAAa,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -18,3 +18,5 @@ export { plotBlueprint, plotNames, } from './plots.js';
|
|
|
18
18
|
export { matchesBlueprint, matchesNames, } from './matches.js';
|
|
19
19
|
export { npcBehaviorFunctionName, npcBlueprint, } from './npcs.js';
|
|
20
20
|
export { worldsimBlueprint, worldsimNames, } from './worldsim.js';
|
|
21
|
+
export { liveopsBlueprint, liveopsNames, } from './liveops.js';
|
|
22
|
+
export { moderationBlueprint, moderationNames, } from './moderation.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type KitBlueprint, type KitTrustedAuthority } from './core.js';
|
|
2
|
+
/** Options for {@link liveopsBlueprint}. */
|
|
3
|
+
export interface LiveopsBlueprintOptions {
|
|
4
|
+
/** Prefix for the type/function names. Defaults to none. */
|
|
5
|
+
typePrefix?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Who may open/close windows and roll seasons: `'server'` (app admins /
|
|
8
|
+
* studio backend; default) or `'automation'` (cron-driven flips).
|
|
9
|
+
*/
|
|
10
|
+
adminAuthority?: KitTrustedAuthority;
|
|
11
|
+
}
|
|
12
|
+
/** Names derived by {@link liveopsBlueprint} for a given prefix. */
|
|
13
|
+
export interface LiveopsNames {
|
|
14
|
+
windowType: string;
|
|
15
|
+
seasonType: string;
|
|
16
|
+
openWindowFn: string;
|
|
17
|
+
closeWindowFn: string;
|
|
18
|
+
activateSeasonFn: string;
|
|
19
|
+
}
|
|
20
|
+
/** Compute the type/function names a liveops blueprint (and its runtime helper) uses. */
|
|
21
|
+
export declare function liveopsNames(typePrefix?: string): LiveopsNames;
|
|
22
|
+
/**
|
|
23
|
+
* Blueprint for **liveops** (matrix P4, P3): event windows, seasons, and
|
|
24
|
+
* battle-pass composition — MODEL-FIRST (the coexistence policy):
|
|
25
|
+
*
|
|
26
|
+
* - `EventWindow` containers carry a `window_id`, an `active` flag, optional
|
|
27
|
+
* `opens_at_ms`/`closes_at_ms` timestamps, and an opaque `modifiers` JSON
|
|
28
|
+
* blob. Admin (or cron-automation) functions flip `active`; when both
|
|
29
|
+
* timestamps are set, the **liveops-scheduler compute engine** flips the
|
|
30
|
+
* flag itself and broadcasts the modifiers on the compute bus
|
|
31
|
+
* (`liveops_window_opened`/`closed`) for other engines to apply — spawn
|
|
32
|
+
* multipliers, weather locks, double gold.
|
|
33
|
+
* - `SeasonDef` containers name a season (`season_id`, `active`,
|
|
34
|
+
* `starts_at_ms`/`ends_at_ms`) and its battle-pass composition: the
|
|
35
|
+
* `pass_track` is a progression-layer track name and `pass_features` a
|
|
36
|
+
* JSON array of feature gates unlocked per tier — a battle pass is a
|
|
37
|
+
* SEASON + PROGRESSION TRACK + FEATURE GATES, no new machinery.
|
|
38
|
+
*
|
|
39
|
+
* Runtime counterpart: `client.kit(appId).liveops`.
|
|
40
|
+
*/
|
|
41
|
+
export declare function liveopsBlueprint(options?: LiveopsBlueprintOptions): KitBlueprint;
|
|
42
|
+
//# sourceMappingURL=liveops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveops.d.ts","sourceRoot":"","sources":["../../../src/kit/blueprints/liveops.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,WAAW,CAAC;AAEnB,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,yFAAyF;AACzF,wBAAgB,YAAY,CAAC,UAAU,SAAK,GAAG,YAAY,CAS1D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,YAAY,CAqJpF"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { kitPolicyJson, toSnakeCase, trustedAuthorityFields, } from './core.js';
|
|
2
|
+
/** Compute the type/function names a liveops blueprint (and its runtime helper) uses. */
|
|
3
|
+
export function liveopsNames(typePrefix = '') {
|
|
4
|
+
const fnPrefix = typePrefix ? `${toSnakeCase(typePrefix)}_` : '';
|
|
5
|
+
return {
|
|
6
|
+
windowType: `${typePrefix}EventWindow`,
|
|
7
|
+
seasonType: `${typePrefix}SeasonDef`,
|
|
8
|
+
openWindowFn: `${fnPrefix}open_window`,
|
|
9
|
+
closeWindowFn: `${fnPrefix}close_window`,
|
|
10
|
+
activateSeasonFn: `${fnPrefix}activate_season`,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Blueprint for **liveops** (matrix P4, P3): event windows, seasons, and
|
|
15
|
+
* battle-pass composition — MODEL-FIRST (the coexistence policy):
|
|
16
|
+
*
|
|
17
|
+
* - `EventWindow` containers carry a `window_id`, an `active` flag, optional
|
|
18
|
+
* `opens_at_ms`/`closes_at_ms` timestamps, and an opaque `modifiers` JSON
|
|
19
|
+
* blob. Admin (or cron-automation) functions flip `active`; when both
|
|
20
|
+
* timestamps are set, the **liveops-scheduler compute engine** flips the
|
|
21
|
+
* flag itself and broadcasts the modifiers on the compute bus
|
|
22
|
+
* (`liveops_window_opened`/`closed`) for other engines to apply — spawn
|
|
23
|
+
* multipliers, weather locks, double gold.
|
|
24
|
+
* - `SeasonDef` containers name a season (`season_id`, `active`,
|
|
25
|
+
* `starts_at_ms`/`ends_at_ms`) and its battle-pass composition: the
|
|
26
|
+
* `pass_track` is a progression-layer track name and `pass_features` a
|
|
27
|
+
* JSON array of feature gates unlocked per tier — a battle pass is a
|
|
28
|
+
* SEASON + PROGRESSION TRACK + FEATURE GATES, no new machinery.
|
|
29
|
+
*
|
|
30
|
+
* Runtime counterpart: `client.kit(appId).liveops`.
|
|
31
|
+
*/
|
|
32
|
+
export function liveopsBlueprint(options = {}) {
|
|
33
|
+
const { typePrefix = '', adminAuthority = 'server' } = options;
|
|
34
|
+
const names = liveopsNames(typePrefix);
|
|
35
|
+
const trusted = trustedAuthorityFields(adminAuthority);
|
|
36
|
+
const propertyDefinitions = [
|
|
37
|
+
{
|
|
38
|
+
containerTypeName: names.windowType,
|
|
39
|
+
key: 'window_id',
|
|
40
|
+
valueType: 'string',
|
|
41
|
+
defaultValueJson: '""',
|
|
42
|
+
description: 'Stable id other systems reference (unique per app by convention).',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
containerTypeName: names.windowType,
|
|
46
|
+
key: 'active',
|
|
47
|
+
valueType: 'bool',
|
|
48
|
+
defaultValueJson: 'false',
|
|
49
|
+
description: 'Live flag. Flipped by the admin functions, cron automations, or the liveops-scheduler engine (timestamp windows).',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
containerTypeName: names.windowType,
|
|
53
|
+
key: 'opens_at_ms',
|
|
54
|
+
valueType: 'int',
|
|
55
|
+
defaultValueJson: '0',
|
|
56
|
+
description: 'Optional epoch-ms open time (with closes_at_ms, the scheduler owns the flag).',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
containerTypeName: names.windowType,
|
|
60
|
+
key: 'closes_at_ms',
|
|
61
|
+
valueType: 'int',
|
|
62
|
+
defaultValueJson: '0',
|
|
63
|
+
description: 'Optional epoch-ms close time.',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
containerTypeName: names.windowType,
|
|
67
|
+
key: 'modifiers',
|
|
68
|
+
valueType: 'string',
|
|
69
|
+
defaultValueJson: '"{}"',
|
|
70
|
+
description: 'Opaque JSON broadcast on the compute bus when the window opens/closes (consumed by engines).',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
containerTypeName: names.seasonType,
|
|
74
|
+
key: 'season_id',
|
|
75
|
+
valueType: 'string',
|
|
76
|
+
defaultValueJson: '""',
|
|
77
|
+
description: 'Stable season id (e.g. "s3").',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
containerTypeName: names.seasonType,
|
|
81
|
+
key: 'active',
|
|
82
|
+
valueType: 'bool',
|
|
83
|
+
defaultValueJson: 'false',
|
|
84
|
+
description: 'The one live season (activate_season deactivates the rest by convention).',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
containerTypeName: names.seasonType,
|
|
88
|
+
key: 'starts_at_ms',
|
|
89
|
+
valueType: 'int',
|
|
90
|
+
defaultValueJson: '0',
|
|
91
|
+
description: 'Season start (epoch ms; informational).',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
containerTypeName: names.seasonType,
|
|
95
|
+
key: 'ends_at_ms',
|
|
96
|
+
valueType: 'int',
|
|
97
|
+
defaultValueJson: '0',
|
|
98
|
+
description: 'Season end (epoch ms; informational).',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
containerTypeName: names.seasonType,
|
|
102
|
+
key: 'pass_track',
|
|
103
|
+
valueType: 'string',
|
|
104
|
+
defaultValueJson: '""',
|
|
105
|
+
description: "Battle-pass composition: the progression layer's track name whose tiers gate rewards.",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
containerTypeName: names.seasonType,
|
|
109
|
+
key: 'pass_features',
|
|
110
|
+
valueType: 'string',
|
|
111
|
+
defaultValueJson: '"[]"',
|
|
112
|
+
description: 'Battle-pass composition: JSON array of feature-gate keys unlocked per pass tier.',
|
|
113
|
+
},
|
|
114
|
+
];
|
|
115
|
+
const functions = [
|
|
116
|
+
{
|
|
117
|
+
name: names.openWindowFn,
|
|
118
|
+
containerTypeName: names.windowType,
|
|
119
|
+
returnType: 'bool',
|
|
120
|
+
mutations: [{ target: 'self', property: 'active', expression: 'true' }],
|
|
121
|
+
returnExpression: 'self.active',
|
|
122
|
+
invokePolicyJson: trusted.invokePolicyJson ?? kitPolicyJson({ type: 'is_automation' }),
|
|
123
|
+
...(trusted.autonomousInvocable !== undefined
|
|
124
|
+
? { autonomousInvocable: trusted.autonomousInvocable }
|
|
125
|
+
: {}),
|
|
126
|
+
description: 'Open the window (admin/automation). The liveops-scheduler engine broadcasts the modifiers on the next tick.',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: names.closeWindowFn,
|
|
130
|
+
containerTypeName: names.windowType,
|
|
131
|
+
returnType: 'bool',
|
|
132
|
+
mutations: [{ target: 'self', property: 'active', expression: 'false' }],
|
|
133
|
+
returnExpression: 'self.active',
|
|
134
|
+
invokePolicyJson: trusted.invokePolicyJson ?? kitPolicyJson({ type: 'is_automation' }),
|
|
135
|
+
...(trusted.autonomousInvocable !== undefined
|
|
136
|
+
? { autonomousInvocable: trusted.autonomousInvocable }
|
|
137
|
+
: {}),
|
|
138
|
+
description: 'Close the window (admin/automation).',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: names.activateSeasonFn,
|
|
142
|
+
containerTypeName: names.seasonType,
|
|
143
|
+
returnType: 'bool',
|
|
144
|
+
mutations: [{ target: 'self', property: 'active', expression: 'true' }],
|
|
145
|
+
returnExpression: 'self.active',
|
|
146
|
+
invokePolicyJson: trusted.invokePolicyJson ?? kitPolicyJson({ type: 'is_automation' }),
|
|
147
|
+
...(trusted.autonomousInvocable !== undefined
|
|
148
|
+
? { autonomousInvocable: trusted.autonomousInvocable }
|
|
149
|
+
: {}),
|
|
150
|
+
description: 'Activate this season (admin/automation). Deactivate the previous season separately (one live season by convention).',
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
return {
|
|
154
|
+
name: 'liveops',
|
|
155
|
+
containerTypes: [
|
|
156
|
+
{
|
|
157
|
+
typeName: names.windowType,
|
|
158
|
+
displayName: 'Liveops event window',
|
|
159
|
+
description: 'A liveops window: active flag + optional timestamps + modifier JSON broadcast by the scheduler engine.',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
typeName: names.seasonType,
|
|
163
|
+
displayName: 'Liveops season',
|
|
164
|
+
description: 'A season definition; battle passes compose a season with a progression track + feature gates.',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
propertyDefinitions,
|
|
168
|
+
functions,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type KitBlueprint } from './core.js';
|
|
2
|
+
/** Options for {@link moderationBlueprint}. */
|
|
3
|
+
export interface ModerationBlueprintOptions {
|
|
4
|
+
/** Prefix for the type/function names. Defaults to none. */
|
|
5
|
+
typePrefix?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Names derived by {@link moderationBlueprint} for a given prefix. */
|
|
8
|
+
export interface ModerationNames {
|
|
9
|
+
reportType: string;
|
|
10
|
+
muteType: string;
|
|
11
|
+
fileReportFn: string;
|
|
12
|
+
resolveReportFn: string;
|
|
13
|
+
}
|
|
14
|
+
/** Compute the type/function names a moderation blueprint (and its runtime helper) uses. */
|
|
15
|
+
export declare function moderationNames(typePrefix?: string): ModerationNames;
|
|
16
|
+
/**
|
|
17
|
+
* Blueprint for **moderation** (matrix P6) — MODEL + CLIENT, no compute:
|
|
18
|
+
*
|
|
19
|
+
* - `ModReport` containers are the escalation queue: any player files one
|
|
20
|
+
* against a subject (`file_report` is member-instantiable through the
|
|
21
|
+
* runtime helper — the caller's own report row); app admins read the
|
|
22
|
+
* open queue and `resolve_report` with a disposition.
|
|
23
|
+
* - `ModMute` containers are per-player mute lists (client-enforced: the
|
|
24
|
+
* runtime helper filters chat client-side — mutes are personal, not
|
|
25
|
+
* punitive).
|
|
26
|
+
* - ENFORCEMENT stays on existing platform surfaces: admins revoke access
|
|
27
|
+
* tiers / grid permissions; nothing new to trust here.
|
|
28
|
+
*
|
|
29
|
+
* Runtime counterpart: `client.kit(appId).moderation`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function moderationBlueprint(options?: ModerationBlueprintOptions): KitBlueprint;
|
|
32
|
+
//# sourceMappingURL=moderation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/kit/blueprints/moderation.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEnF,+CAA+C;AAC/C,MAAM,WAAW,0BAA0B;IACzC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,UAAU,SAAK,GAAG,eAAe,CAQhE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,YAAY,CAqH1F"}
|