@crowdedkingdoms/crowdyjs 18.39.1-test.1 → 18.40.0-dev.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.
- package/MIGRATION.md +62 -0
- package/README.md +401 -2
- package/dist/binary-wire.d.ts +94 -1
- package/dist/binary-wire.d.ts.map +1 -1
- package/dist/binary-wire.js +122 -20
- package/dist/crowdy-client.d.ts +7 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +3 -0
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/domains/admin.d.ts +7 -0
- package/dist/domains/admin.d.ts.map +1 -1
- package/dist/domains/admin.js +1 -0
- package/dist/domains/exec.d.ts +91 -3
- package/dist/domains/exec.d.ts.map +1 -1
- package/dist/domains/exec.js +132 -5
- package/dist/domains/fleetSessions.d.ts +87 -0
- package/dist/domains/fleetSessions.d.ts.map +1 -0
- package/dist/domains/fleetSessions.js +87 -0
- package/dist/dropped-read.d.ts +2 -1
- package/dist/dropped-read.d.ts.map +1 -1
- package/dist/dropped-read.js +2 -6
- package/dist/errors.d.ts +59 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +70 -0
- package/dist/fleet/index.d.ts +4 -0
- package/dist/fleet/index.d.ts.map +1 -0
- package/dist/fleet/index.js +21 -0
- package/dist/fleet/session.d.ts +730 -0
- package/dist/fleet/session.d.ts.map +1 -0
- package/dist/fleet/session.js +1376 -0
- package/dist/fleet/socket.d.ts +59 -0
- package/dist/fleet/socket.d.ts.map +1 -0
- package/dist/fleet/socket.js +111 -0
- package/dist/fleet-wire.d.ts +272 -0
- package/dist/fleet-wire.d.ts.map +1 -0
- package/dist/fleet-wire.js +472 -0
- package/dist/generated/graphql-schema.d.ts +176 -13
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +15 -3
- package/dist/generated/graphql.d.ts +79 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +5 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/server-only.d.ts +54 -0
- package/dist/server-only.d.ts.map +1 -0
- package/dist/server-only.js +55 -0
- package/package.json +5 -1
|
@@ -8,6 +8,7 @@ export const ExecModListingFieldsFragmentDoc = { "kind": "Document", "definition
|
|
|
8
8
|
export const ExecModSwitchFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ExecModSwitchFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExecModSwitch" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "scope" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "reason" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdBy" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }] };
|
|
9
9
|
export const ExecModClientFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ExecModClientFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExecModClient" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "modId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "digest" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sizeBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilitySummaryJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilityHash" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tickIntervalMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "studioProjectId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "studioRevision" } }] } }] };
|
|
10
10
|
export const ExecGridClientModFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "ExecGridClientModFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExecGridClientMod" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "modId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "listingId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "digest" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilitySummaryJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilityHash" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tickIntervalMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "callerConsented" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorCapabilitySummaryJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "authorCapabilityHash" } }, { "kind": "Field", "name": { "kind": "Name", "value": "callerTrustsAuthor" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] };
|
|
11
|
+
export const FleetSessionFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "FleetSessionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FleetSession" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gameTokenId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxPlayers" } }, { "kind": "Field", "name": { "kind": "Name", "value": "server" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "serverId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip4" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip6" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientPort" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clients" } }] } }] } }] };
|
|
11
12
|
export const GridOwnershipFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridOwnershipFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridOwnership" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnershipId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tenure" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredVia" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] };
|
|
12
13
|
export const HostedGameFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "HostedGameFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "HostedGame" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgSlug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "listed" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contentOrigin" } }, { "kind": "Field", "name": { "kind": "Name", "value": "launchUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currentPublishId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "publishedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] };
|
|
13
14
|
export const HostedGamePublishFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "HostedGamePublishFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "HostedGamePublish" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "publishId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fileCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "failureReason" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "completedAt" } }] } }] };
|
|
@@ -129,6 +130,7 @@ export const CrowdyStudioLinksDocument = { "kind": "Document", "definitions": [{
|
|
|
129
130
|
export const ExecConnectDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecConnect" }, "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": "nodeType" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execConnect" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "nodeType" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "nodeType" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "key" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gatewayUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "host" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] } }] };
|
|
130
131
|
export const ExecDeployDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecDeploy" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExecDeployInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execDeploy" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "version" } }] } }] } }] };
|
|
131
132
|
export const ExecConnectAsDeveloperDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecConnectAsDeveloper" }, "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": "nodeType" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execConnectAsDeveloper" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "nodeType" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "nodeType" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "key" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gatewayUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "host" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] } }] };
|
|
133
|
+
export const ExecConnectAsServerDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecConnectAsServer" }, "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": "nodeType" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execConnectAsServer" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "nodeType" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "nodeType" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "key" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gatewayUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "host" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] } }] };
|
|
132
134
|
export const ExecLogsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExecLogs" }, "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": "nodeType" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "maxLevel" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "before" } }, "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" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "flow" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execLogs" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "nodeType" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "nodeType" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "key" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "key" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "maxLevel" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "maxLevel" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "before" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "before" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "flow" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "flow" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nodeType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "level" } }, { "kind": "Field", "name": { "kind": "Name", "value": "host" } }, { "kind": "Field", "name": { "kind": "Name", "value": "at" } }, { "kind": "Field", "name": { "kind": "Name", "value": "text" } }, { "kind": "Field", "name": { "kind": "Name", "value": "flow" } }] } }] } }] };
|
|
133
135
|
export const ExecInstancesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExecInstances" }, "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": "execInstances" }, "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": "instanceId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nodeType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "kind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "phase" } }, { "kind": "Field", "name": { "kind": "Name", "value": "host" } }, { "kind": "Field", "name": { "kind": "Name", "value": "epoch" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sinceMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "heldBack" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orphaned" } }] } }] } }] };
|
|
134
136
|
export const ExecVersionsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExecVersions" }, "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": "execVersions" }, "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": "version" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdBy" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "types" } }, { "kind": "Field", "name": { "kind": "Name", "value": "active" } }, { "kind": "Field", "name": { "kind": "Name", "value": "manifestJson" } }] } }] } }] };
|
|
@@ -166,6 +168,9 @@ export const ExecTrustAuthorDocument = { "kind": "Document", "definitions": [{ "
|
|
|
166
168
|
export const ExecRevokeClientModConsentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecRevokeClientModConsent" }, "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": "modId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execRevokeClientModConsent" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "modId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "modId" } } }] }] } }] };
|
|
167
169
|
export const ExecRevokeAuthorTrustDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExecRevokeAuthorTrust" }, "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": "gridId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "authorId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execRevokeAuthorTrust" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "gridId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "authorId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "authorId" } } }] }] } }] };
|
|
168
170
|
export const ExecModClientArtifactDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ExecModClientArtifact" }, "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": "modId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "execModClientArtifact" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "modId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "modId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "modId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "digest" } }, { "kind": "Field", "name": { "kind": "Name", "value": "wasmBase64" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sizeBytes" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilitySummaryJson" } }, { "kind": "Field", "name": { "kind": "Name", "value": "capabilityHash" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tickIntervalMs" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fuelPerDispatch" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abiVersion" } }] } }] } }] };
|
|
171
|
+
export const OpenFleetSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "OpenFleetSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "OpenFleetSessionInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "openFleetSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "FleetSessionFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "FleetSessionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FleetSession" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gameTokenId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxPlayers" } }, { "kind": "Field", "name": { "kind": "Name", "value": "server" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "serverId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip4" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip6" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientPort" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clients" } }] } }] } }] };
|
|
172
|
+
export const RefreshFleetSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "RefreshFleetSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "RefreshFleetSessionInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "refreshFleetSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "FleetSessionFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "FleetSessionFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FleetSession" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gameTokenId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxPlayers" } }, { "kind": "Field", "name": { "kind": "Name", "value": "server" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "serverId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip4" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ip6" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clientPort" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "clients" } }] } }] } }] };
|
|
173
|
+
export const CloseFleetSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CloseFleetSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CloseFleetSessionInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "closeFleetSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }] }] } }] };
|
|
169
174
|
export const GridOwnershipDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GridOwnership" }, "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": "gridId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BigInt" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnership" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "appId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "appId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "gridId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "gridId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "GridOwnershipFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridOwnershipFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridOwnership" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnershipId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tenure" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredVia" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] };
|
|
170
175
|
export const AssignGridOwnershipDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AssignGridOwnership" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "AssignGridOwnershipInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "assignGridOwnership" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "GridOwnershipFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridOwnershipFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridOwnership" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnershipId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tenure" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredVia" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] };
|
|
171
176
|
export const TransferGridOwnershipDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "TransferGridOwnership" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "TransferGridOwnershipInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "transferGridOwnership" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "GridOwnershipFields" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "GridOwnershipFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "GridOwnership" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "gridOwnershipId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "gridId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "appId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerKind" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ownerRef" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tenure" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredVia" } }, { "kind": "Field", "name": { "kind": "Name", "value": "acquiredAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expiresAt" } }] } }] };
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* never an untrusted browser.
|
|
47
47
|
*/
|
|
48
48
|
/** The published package version. Mirrors `package.json`. */
|
|
49
|
-
export declare const VERSION = "18.
|
|
49
|
+
export declare const VERSION = "18.40.0-dev.1";
|
|
50
50
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
51
51
|
export { CrowdyClient, createCrowdyClient, type CrowdyClientConfig, } from './crowdy-client.js';
|
|
52
52
|
export { CROWDY_DEFAULT_TIER, CROWDY_DEFAULT_HOST, CROWDY_DEFAULT_HTTP_ORIGIN, CROWDY_DEFAULT_WS_ORIGIN, } from './default-origin.js';
|
|
@@ -54,14 +54,15 @@ export { BrowserLocalStorageTokenStore, SessionStore, type SessionListener, type
|
|
|
54
54
|
export { GraphQLClient, GraphQLTransport, type GraphQLClientConfig, } from './client.js';
|
|
55
55
|
export { IDLE_TIMEOUT_CODE, RealtimeClient, type RealtimeConfig, type RealtimeStatus, type SpatialNotification, type UdpNotification, type UdpNotificationHandlers, } from './realtime.js';
|
|
56
56
|
export { BinaryRelayTransport, GAMEPLAY_IDLE_CLOSE_CODE, RELAY_SUBPROTOCOL, type BinaryRelayCallbacks, type BinaryRelayConfig, type BinaryRelaySendStats, } from './binary-relay.js';
|
|
57
|
-
export { BUNDLE_HEADER_BYTES, BUNDLE_LENGTH_PREFIX_BYTES, RELAY_MAX_BUNDLE_MEMBERS, RELAY_MAX_BUNDLE_MEMBER_BYTES, RELAY_MAX_DATAGRAM_BYTES, WireMessageType, bundleSizeOf, createSignContext, packMessageBundle, parseRelayFrame, serializeActorUpdate, serializeAudioPacket, serializeVideoPacket, serializeChannelAudio, serializeChannelMessage, serializeClientEvent, serializeGenericSpatial, GENERIC_SPATIAL_MAX_PAYLOAD_BYTES, serializeRangedChannelMessage, CHANNEL_RANGED_MAX_DISTANCE, serializeSingleActorMessage, serializeTextPacket, serializeVoxelUpdate, assertVoxelEdit, VOXEL_STATE_MAX_BYTES, type ChannelSendInput, type RelaySignContext, } from './binary-wire.js';
|
|
57
|
+
export { BUNDLE_HEADER_BYTES, BUNDLE_LENGTH_PREFIX_BYTES, RELAY_MAX_BUNDLE_MEMBERS, RELAY_MAX_BUNDLE_MEMBER_BYTES, RELAY_MAX_DATAGRAM_BYTES, WireMessageType, bundleSizeOf, createSignContext, packMessageBundle, parseRelayFrame, serializeActorUpdate, serializeAudioPacket, serializeVideoPacket, serializeChannelAudio, serializeChannelMessage, serializeClientEvent, serializeGenericSpatial, GENERIC_SPATIAL_MAX_PAYLOAD_BYTES, serializeRangedChannelMessage, CHANNEL_RANGED_MAX_DISTANCE, serializeSingleActorMessage, serializeTextPacket, serializeVoxelUpdate, assertVoxelEdit, VOXEL_STATE_MAX_BYTES, serializeActorHeartbeat, serializeClientCapabilities, serializeClientMediaSpeakers, parseNotification, ClientCapability, CONTROL_NONCE_BYTES, SpeakerListMode, MAX_MEDIA_SPEAKERS, type ChannelSendInput, type RelaySignContext, type SpeakerListChange, } from './binary-wire.js';
|
|
58
|
+
export { FLEET_MAX_DATAGRAM_BYTES, FLEET_MAX_DELIVERY_PLAYERS, FLEET_TOKEN_CHARS, FLEET_CARRY_PROOF_LABEL, FLEET_CARRY_CLOCK_TOLERANCE_MS, FLEET_CARRY_PAYLOAD_BYTES, FLEET_CARRY_RESULT_BYTES, FLEET_RELEASED_BYTES, FleetCarryStatus, FleetReleaseReason, SessionReleaseReason, createFleetSignContext, carriedPlayerContext, fleetCarryProof, serializeFleetCarry, serializeFleetRelease, parseFleetCarryResult, parseFleetReleased, parseFleetDelivery, parseFleetDatagram, type FleetId, type FleetCarryInput, type FleetCarryResultFrame, type FleetReleasedFrame, type FleetDeliveryFrame, type FleetInbound, type FleetDatagram, type FleetParseOptions, } from './fleet-wire.js';
|
|
58
59
|
export { VIDEO_FRAGMENT_HEADER_BYTES, MAX_VIDEO_FRAGMENT_BODY_BYTES, MAX_VIDEO_FRAGMENTS, VIDEO_FRAME_TIMEOUT_MS, VIDEO_FRAGMENT_VERSION, VideoCodec, fragmentFrame, parseVideoFragmentHeader, isNewerFrameId, VideoFrameAssembler, type VideoFragmentHeader, type AssembledVideoFrame, } from './media/video-frames.js';
|
|
59
60
|
export { VOICE_HEADER_BYTES, VOICE_HEADER_VERSION, MAX_VOICE_FRAME_BYTES, VOICE_TARGET_DELAY_MS, VOICE_JITTER_MAX_FRAMES, VOICE_RESET_AFTER_MS, VoiceCodec, VoiceFlag, voiceClockRate, voiceSamplesPerFrame, voiceSeqDiff, encodeVoiceHeader, encodeVoicePacket, decodeVoicePacket, VoicePacketizer, VoiceJitterBuffer, type VoiceHeader, type VoicePacket, type VoicePacketizerOptions, type VoiceJitterBufferOptions, type VoicePushResult, type VoicePlayout, } from './media/voice-frames.js';
|
|
60
61
|
export { RealtimeMetrics, payloadBytesOf, type RealtimeMetricsCounters, type RealtimeMetricsKind, type RealtimeMetricsSnapshot, } from './metrics.js';
|
|
61
62
|
export { WorldClient, ActorClient, type ActorOptions } from './world.js';
|
|
62
63
|
export * from './kit/index.js';
|
|
63
64
|
export type { StateCodec, Ticker, WorldSession, WorldSessionConfig, WorldStoresClient, } from './stores/index.js';
|
|
64
|
-
export { ACCESS_NOT_GRANTED_CODE, ACCESS_REVOKED_CODE, ACCESS_SUSPENDED_CODE, ACCOUNT_BLOCKED_CODE, GROUP_MEMBER_BANNED_CODE, GROUP_LIMIT_REACHED_CODE, APP_LIMIT_REACHED_CODE, accountBlockedOf, groupMemberBannedOf, groupLimitReachedOf, appLimitReachedOf, MANAGED_PLAYER_NOT_ALLOWED_CODE, ASSERTION_REJECTED_CODE, ORG_LEGAL_ACCEPTANCE_REQUIRED_CODE, managedPlayerNotAllowedOf, assertionRejectedOf, orgLegalAcceptanceRequiredOf, LEGAL_ACCEPTANCE_REQUIRED_CODE, AGE_REQUIRED_CODE, AGE_REQUIREMENT_NOT_MET_CODE, TERRITORY_NOT_SUPPORTED_CODE, SAFETY_LOG_REQUIRED_CODE, SAFETY_MODERATOR_REQUIRED_CODE, PARENTAL_CONSENT_UNAVAILABLE_CODE, SOCIAL_LIMIT_REACHED_CODE, MINECRAFT_VERIFICATION_FAILED_CODE, MINECRAFT_VERIFICATION_UNAVAILABLE_CODE, legalAcceptanceRequiredOf, ageRequiredOf, ageRequirementNotMetOf, territoryNotSupportedOf, safetyLogRequiredOf, safetyModeratorRequiredOf, parentalConsentUnavailableOf, socialLimitReachedOf, minecraftVerificationFailedOf, minecraftVerificationUnavailableOf, ACTOR_EXISTS_CODE, APP_PAUSED_CODE, accessRefusalOf, actorExistsOf, appPausedOf, isAppPaused, APP_UNAVAILABLE_CODE, CrowdyAppUnavailableError, CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, CrowdyUserCodeFaultError, playerFaultOf, WRONG_DATACENTER_CODE, } from './errors.js';
|
|
65
|
+
export { ACCESS_NOT_GRANTED_CODE, ACCESS_REVOKED_CODE, ACCESS_SUSPENDED_CODE, ACCOUNT_BLOCKED_CODE, GROUP_MEMBER_BANNED_CODE, GROUP_LIMIT_REACHED_CODE, APP_LIMIT_REACHED_CODE, accountBlockedOf, groupMemberBannedOf, groupLimitReachedOf, appLimitReachedOf, MANAGED_PLAYER_NOT_ALLOWED_CODE, ASSERTION_REJECTED_CODE, ORG_LEGAL_ACCEPTANCE_REQUIRED_CODE, managedPlayerNotAllowedOf, assertionRejectedOf, orgLegalAcceptanceRequiredOf, ORG_TOKEN_REQUIRED_CODE, FLEET_SESSION_LIMIT_CODE, NOT_FOUND_CODE, PLATFORM_BUSY_CODE, orgTokenRequiredOf, fleetSessionLimitOf, fleetSessionNotFoundOf, platformBusyOf, LEGAL_ACCEPTANCE_REQUIRED_CODE, AGE_REQUIRED_CODE, AGE_REQUIREMENT_NOT_MET_CODE, TERRITORY_NOT_SUPPORTED_CODE, SAFETY_LOG_REQUIRED_CODE, SAFETY_MODERATOR_REQUIRED_CODE, PARENTAL_CONSENT_UNAVAILABLE_CODE, SOCIAL_LIMIT_REACHED_CODE, MINECRAFT_VERIFICATION_FAILED_CODE, MINECRAFT_VERIFICATION_UNAVAILABLE_CODE, legalAcceptanceRequiredOf, ageRequiredOf, ageRequirementNotMetOf, territoryNotSupportedOf, safetyLogRequiredOf, safetyModeratorRequiredOf, parentalConsentUnavailableOf, socialLimitReachedOf, minecraftVerificationFailedOf, minecraftVerificationUnavailableOf, ACTOR_EXISTS_CODE, APP_PAUSED_CODE, accessRefusalOf, actorExistsOf, appPausedOf, isAppPaused, APP_UNAVAILABLE_CODE, CrowdyAppUnavailableError, CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, CrowdyUserCodeFaultError, playerFaultOf, WRONG_DATACENTER_CODE, } from './errors.js';
|
|
65
66
|
export type { AppPauseReason, CrowdyAccessRefusal, CrowdyFaultBlame, CrowdyFaultCode, CrowdyPlayerFault, MinecraftVerificationFailure, MissingLegalDocument, ParentalConsentUnavailableReason, } from './errors.js';
|
|
66
67
|
export { moveFromError, moveFromErrors } from './datacenter-redirect.js';
|
|
67
68
|
export type { DatacenterMove } from './datacenter-redirect.js';
|
|
@@ -80,6 +81,7 @@ export { generatePkcePair, generateState, type PkcePair } from './pkce.js';
|
|
|
80
81
|
export { PlatformAPI, type PlatformConfig, type TerritoryPolicyRecord, } from './domains/platform.js';
|
|
81
82
|
export { OrganizationsAPI } from './domains/organizations.js';
|
|
82
83
|
export { ManagedPlayersAPI, type OrgSigningKeyRegistration, type ManagedPlayerAssertionClaims, } from './domains/managedPlayers.js';
|
|
84
|
+
export { FleetSessionsAPI, type FleetSessionAnswer } from './domains/fleetSessions.js';
|
|
83
85
|
export { AppAccessAPI } from './domains/appAccess.js';
|
|
84
86
|
export { BillingAPI } from './domains/billing.js';
|
|
85
87
|
export { PaymentsAPI } from './domains/payments.js';
|
|
@@ -120,6 +122,7 @@ export { createBootstrapRediscover, type BootstrapRediscoverOptions, } from './b
|
|
|
120
122
|
export type { ChunkCoordinatesInput, VoxelCoordinatesInput, ActorUpdateRequestInput, VoxelUpdateRequestInput, ClientAudioPacketInput, ClientVideoPacketInput, ClientTextPacketInput, ClientEventNotificationInput, UdpProxyConnectionStatus, RealtimeConnectionEvent, GameClientBootstrap, GridOwnership, AssignGridOwnershipInput, TransferGridOwnershipInput, UpdateGamertagInput, CreateActorInput, UpdateActorInput, ActorFilterInput, BatchActorLookupInput, CreateUserAppStateInput, UpdateUserStateInput, UpdateAvatarStateInput, UpdateActorStateInput, UpdateChunkStateInput, UpdateChunkLodsInput, ChunkUpdateInput, UpdateVoxelInput, RollbackVoxelUpdatesInput, GetChunkInput, GetChunkLodsInput, GetChunksByDistanceInput, GetVoxelListInput, ListVoxelsInput, ListVoxelUpdatesByDistanceInput, TeleportRequestInput, LodDataInput, VoxelStateInput, Chunk, ChunkLodsResponse, ChunksByDistanceResponse, ChunkVoxelResponse, ChunkVoxelUpdatesResponse, Voxel, VoxelUpdatesByDistanceResponse, VoxelUpdateHistoryEvent, RollbackVoxelEventResult, Actor, Avatar, AvatarDto, TeleportResponse, UserAppState, ServerStatus, GraphQlServer, ServerVersionInfo, VersionInfo, PageInfo, UdpNotificationsSubscription, GmAppFeature, GmTierFeature, DefineAppFeatureInput, GrantTierFeatureInput, Scalars, } from './generated/graphql.js';
|
|
121
123
|
export type { CreateAppInput, UpdateAppInput, CreateOrganizationInput, CreateOrgTokenInput, UpdateOrgTokenInput, InviteOrgMemberInput, CreateOrgRoleInput, UpdateOrgRoleInput, CreateAccessTierInput, UpdateAccessTierInput, GrantAppAccessInput, CreateCheckoutInput, CheckoutFilterInput, SetQuotaInput, AppCodeAdmission, AdmitAppCodeInput, } from './generated/graphql.js';
|
|
122
124
|
export type { LegalDocument, AppRecording, AppRequiredDocumentInput, CommSettings, CommChoices, PlayerContact, ContactRequest, PlayerBlock, ParentalConsentRequest, SafetyReport, SafetyReportCapture, SafetyReportReceipt, TerritoryPolicy, RecordPlayerAgeInput, SetCommSettingsInput, FileSafetyReportInput, SignInWithMinecraftInput, AcceptedDocumentInput, MintManagedPlayerTokenInput, } from './generated/graphql.js';
|
|
125
|
+
export type { OpenFleetSessionInput, RefreshFleetSessionInput, CloseFleetSessionInput, CurrentServerInput, } from './generated/graphql.js';
|
|
123
126
|
export { ServerState, AppVisibility, GridOwnerKind, GridTenure, CodeAdmissionMode, CodeAdmissionSubjectKind, CommScope, ContactState, ContactRequestDirection, ParentalConsentFeature, ParentalConsentRequestStatus, SafetyReportReason, SafetyReportStatus, SafetyCaptureStatus, LegalAcceptanceMethod, } from './generated/graphql.js';
|
|
124
127
|
export { DiscoveryDomain, type AppEndpoint } from './domains/discovery.js';
|
|
125
128
|
//# sourceMappingURL=index.d.ts.map
|
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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AAyB,EACzB,KAAK,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,wBAAwB,EACxB,KAAK,EACL,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,4BAA4B,EAE5B,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,qBAAqB,EAErB,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,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,SAAS,EACT,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;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ACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAMhC,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,SAAS,EACT,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* never an untrusted browser.
|
|
47
47
|
*/
|
|
48
48
|
/** The published package version. Mirrors `package.json`. */
|
|
49
|
-
export const VERSION = '18.
|
|
49
|
+
export const VERSION = '18.40.0-dev.1';
|
|
50
50
|
export { LbCookieStore } from './lb-cookie-store.js';
|
|
51
51
|
export { CrowdyClient, createCrowdyClient, } from './crowdy-client.js';
|
|
52
52
|
// The tier this build defaults to, exported so a consumer can PRINT what it is
|
|
@@ -58,7 +58,10 @@ export { BrowserLocalStorageTokenStore, SessionStore, } from './session.js';
|
|
|
58
58
|
export { GraphQLClient, GraphQLTransport, } from './client.js';
|
|
59
59
|
export { IDLE_TIMEOUT_CODE, RealtimeClient, } from './realtime.js';
|
|
60
60
|
export { BinaryRelayTransport, GAMEPLAY_IDLE_CLOSE_CODE, RELAY_SUBPROTOCOL, } from './binary-relay.js';
|
|
61
|
-
export { BUNDLE_HEADER_BYTES, BUNDLE_LENGTH_PREFIX_BYTES, RELAY_MAX_BUNDLE_MEMBERS, RELAY_MAX_BUNDLE_MEMBER_BYTES, RELAY_MAX_DATAGRAM_BYTES, WireMessageType, bundleSizeOf, createSignContext, packMessageBundle, parseRelayFrame, serializeActorUpdate, serializeAudioPacket, serializeVideoPacket, serializeChannelAudio, serializeChannelMessage, serializeClientEvent, serializeGenericSpatial, GENERIC_SPATIAL_MAX_PAYLOAD_BYTES, serializeRangedChannelMessage, CHANNEL_RANGED_MAX_DISTANCE, serializeSingleActorMessage, serializeTextPacket, serializeVoxelUpdate, assertVoxelEdit, VOXEL_STATE_MAX_BYTES, } from './binary-wire.js';
|
|
61
|
+
export { BUNDLE_HEADER_BYTES, BUNDLE_LENGTH_PREFIX_BYTES, RELAY_MAX_BUNDLE_MEMBERS, RELAY_MAX_BUNDLE_MEMBER_BYTES, RELAY_MAX_DATAGRAM_BYTES, WireMessageType, bundleSizeOf, createSignContext, packMessageBundle, parseRelayFrame, serializeActorUpdate, serializeAudioPacket, serializeVideoPacket, serializeChannelAudio, serializeChannelMessage, serializeClientEvent, serializeGenericSpatial, GENERIC_SPATIAL_MAX_PAYLOAD_BYTES, serializeRangedChannelMessage, CHANNEL_RANGED_MAX_DISTANCE, serializeSingleActorMessage, serializeTextPacket, serializeVoxelUpdate, assertVoxelEdit, VOXEL_STATE_MAX_BYTES, serializeActorHeartbeat, serializeClientCapabilities, serializeClientMediaSpeakers, parseNotification, ClientCapability, CONTROL_NONCE_BYTES, SpeakerListMode, MAX_MEDIA_SPEAKERS, } from './binary-wire.js';
|
|
62
|
+
// The fleet session's wire codecs: pure functions, for an organization's game server. The
|
|
63
|
+
// session itself (UDP, Node) is `@crowdedkingdoms/crowdyjs/fleet`.
|
|
64
|
+
export { FLEET_MAX_DATAGRAM_BYTES, FLEET_MAX_DELIVERY_PLAYERS, FLEET_TOKEN_CHARS, FLEET_CARRY_PROOF_LABEL, FLEET_CARRY_CLOCK_TOLERANCE_MS, FLEET_CARRY_PAYLOAD_BYTES, FLEET_CARRY_RESULT_BYTES, FLEET_RELEASED_BYTES, FleetCarryStatus, FleetReleaseReason, SessionReleaseReason, createFleetSignContext, carriedPlayerContext, fleetCarryProof, serializeFleetCarry, serializeFleetRelease, parseFleetCarryResult, parseFleetReleased, parseFleetDelivery, parseFleetDatagram, } from './fleet-wire.js';
|
|
62
65
|
export { VIDEO_FRAGMENT_HEADER_BYTES, MAX_VIDEO_FRAGMENT_BODY_BYTES, MAX_VIDEO_FRAGMENTS, VIDEO_FRAME_TIMEOUT_MS, VIDEO_FRAGMENT_VERSION, VideoCodec, fragmentFrame, parseVideoFragmentHeader, isNewerFrameId, VideoFrameAssembler, } from './media/video-frames.js';
|
|
63
66
|
export { VOICE_HEADER_BYTES, VOICE_HEADER_VERSION, MAX_VOICE_FRAME_BYTES, VOICE_TARGET_DELAY_MS, VOICE_JITTER_MAX_FRAMES, VOICE_RESET_AFTER_MS, VoiceCodec, VoiceFlag, voiceClockRate, voiceSamplesPerFrame, voiceSeqDiff, encodeVoiceHeader, encodeVoicePacket, decodeVoicePacket, VoicePacketizer, VoiceJitterBuffer, } from './media/voice-frames.js';
|
|
64
67
|
export { RealtimeMetrics, payloadBytesOf, } from './metrics.js';
|
|
@@ -66,7 +69,7 @@ export { WorldClient, ActorClient } from './world.js';
|
|
|
66
69
|
// The Game Kit: typed clients for the ck-exec starter hubs, their protocol, mirrors and
|
|
67
70
|
// topology, the realtime wire and conventions, and social.
|
|
68
71
|
export * from './kit/index.js';
|
|
69
|
-
export { ACCESS_NOT_GRANTED_CODE, ACCESS_REVOKED_CODE, ACCESS_SUSPENDED_CODE, ACCOUNT_BLOCKED_CODE, GROUP_MEMBER_BANNED_CODE, GROUP_LIMIT_REACHED_CODE, APP_LIMIT_REACHED_CODE, accountBlockedOf, groupMemberBannedOf, groupLimitReachedOf, appLimitReachedOf, MANAGED_PLAYER_NOT_ALLOWED_CODE, ASSERTION_REJECTED_CODE, ORG_LEGAL_ACCEPTANCE_REQUIRED_CODE, managedPlayerNotAllowedOf, assertionRejectedOf, orgLegalAcceptanceRequiredOf, LEGAL_ACCEPTANCE_REQUIRED_CODE, AGE_REQUIRED_CODE, AGE_REQUIREMENT_NOT_MET_CODE, TERRITORY_NOT_SUPPORTED_CODE, SAFETY_LOG_REQUIRED_CODE, SAFETY_MODERATOR_REQUIRED_CODE, PARENTAL_CONSENT_UNAVAILABLE_CODE, SOCIAL_LIMIT_REACHED_CODE, MINECRAFT_VERIFICATION_FAILED_CODE, MINECRAFT_VERIFICATION_UNAVAILABLE_CODE, legalAcceptanceRequiredOf, ageRequiredOf, ageRequirementNotMetOf, territoryNotSupportedOf, safetyLogRequiredOf, safetyModeratorRequiredOf, parentalConsentUnavailableOf, socialLimitReachedOf, minecraftVerificationFailedOf, minecraftVerificationUnavailableOf, ACTOR_EXISTS_CODE, APP_PAUSED_CODE, accessRefusalOf, actorExistsOf, appPausedOf, isAppPaused, APP_UNAVAILABLE_CODE, CrowdyAppUnavailableError, CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, CrowdyUserCodeFaultError, playerFaultOf, WRONG_DATACENTER_CODE, } from './errors.js';
|
|
72
|
+
export { ACCESS_NOT_GRANTED_CODE, ACCESS_REVOKED_CODE, ACCESS_SUSPENDED_CODE, ACCOUNT_BLOCKED_CODE, GROUP_MEMBER_BANNED_CODE, GROUP_LIMIT_REACHED_CODE, APP_LIMIT_REACHED_CODE, accountBlockedOf, groupMemberBannedOf, groupLimitReachedOf, appLimitReachedOf, MANAGED_PLAYER_NOT_ALLOWED_CODE, ASSERTION_REJECTED_CODE, ORG_LEGAL_ACCEPTANCE_REQUIRED_CODE, managedPlayerNotAllowedOf, assertionRejectedOf, orgLegalAcceptanceRequiredOf, ORG_TOKEN_REQUIRED_CODE, FLEET_SESSION_LIMIT_CODE, NOT_FOUND_CODE, PLATFORM_BUSY_CODE, orgTokenRequiredOf, fleetSessionLimitOf, fleetSessionNotFoundOf, platformBusyOf, LEGAL_ACCEPTANCE_REQUIRED_CODE, AGE_REQUIRED_CODE, AGE_REQUIREMENT_NOT_MET_CODE, TERRITORY_NOT_SUPPORTED_CODE, SAFETY_LOG_REQUIRED_CODE, SAFETY_MODERATOR_REQUIRED_CODE, PARENTAL_CONSENT_UNAVAILABLE_CODE, SOCIAL_LIMIT_REACHED_CODE, MINECRAFT_VERIFICATION_FAILED_CODE, MINECRAFT_VERIFICATION_UNAVAILABLE_CODE, legalAcceptanceRequiredOf, ageRequiredOf, ageRequirementNotMetOf, territoryNotSupportedOf, safetyLogRequiredOf, safetyModeratorRequiredOf, parentalConsentUnavailableOf, socialLimitReachedOf, minecraftVerificationFailedOf, minecraftVerificationUnavailableOf, ACTOR_EXISTS_CODE, APP_PAUSED_CODE, accessRefusalOf, actorExistsOf, appPausedOf, isAppPaused, APP_UNAVAILABLE_CODE, CrowdyAppUnavailableError, CrowdyError, CrowdyGraphQLError, CrowdyHttpError, CrowdyNetworkError, CrowdyProtocolError, CrowdyRealtimeError, CrowdyTimeoutError, CrowdyUserCodeFaultError, playerFaultOf, WRONG_DATACENTER_CODE, } from './errors.js';
|
|
70
73
|
export { moveFromError, moveFromErrors } from './datacenter-redirect.js';
|
|
71
74
|
export { SequenceAllocator, decodeBase64, encodeBase64, generateCrowdyUuid, validateChunkCoordinates, validateCrowdyUuid, } from './utils.js';
|
|
72
75
|
export { UdpErrorCode } from './types.js';
|
|
@@ -86,6 +89,7 @@ export { generatePkcePair, generateState } from './pkce.js';
|
|
|
86
89
|
export { PlatformAPI, } from './domains/platform.js';
|
|
87
90
|
export { OrganizationsAPI } from './domains/organizations.js';
|
|
88
91
|
export { ManagedPlayersAPI, } from './domains/managedPlayers.js';
|
|
92
|
+
export { FleetSessionsAPI } from './domains/fleetSessions.js';
|
|
89
93
|
export { AppAccessAPI } from './domains/appAccess.js';
|
|
90
94
|
export { BillingAPI } from './domains/billing.js';
|
|
91
95
|
export { PaymentsAPI } from './domains/payments.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** The globals {@link organizationServerRefusal} reads, so a test can describe a runtime. */
|
|
2
|
+
export interface RuntimeScope {
|
|
3
|
+
window?: unknown;
|
|
4
|
+
document?: unknown;
|
|
5
|
+
process?: {
|
|
6
|
+
versions?: {
|
|
7
|
+
node?: unknown;
|
|
8
|
+
};
|
|
9
|
+
} | null;
|
|
10
|
+
Deno?: {
|
|
11
|
+
version?: {
|
|
12
|
+
deno?: unknown;
|
|
13
|
+
};
|
|
14
|
+
} | null;
|
|
15
|
+
Bun?: {
|
|
16
|
+
version?: unknown;
|
|
17
|
+
} | null;
|
|
18
|
+
EdgeRuntime?: unknown;
|
|
19
|
+
navigator?: {
|
|
20
|
+
userAgent?: unknown;
|
|
21
|
+
} | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Why a call that takes an organization's org token may not be made from this runtime, or
|
|
25
|
+
* null when it may.
|
|
26
|
+
*
|
|
27
|
+
* An org token signs in any of the organization's players and opens its fleet sessions, so it
|
|
28
|
+
* is used only on a server the organization runs. The call is made when the runtime says it
|
|
29
|
+
* is one, and refused everywhere else:
|
|
30
|
+
*
|
|
31
|
+
* - **A browser page** (`window` and `document`): refused, whatever else the page defines.
|
|
32
|
+
* That covers a desktop shell's page and a test's simulated one.
|
|
33
|
+
* - **Node, and a Node worker thread** (`process.versions.node`): allowed.
|
|
34
|
+
* - **Bun** (`Bun.version`; it also reports a Node version): allowed.
|
|
35
|
+
* - **Deno** (`Deno.version.deno`; Deno 2 also reports a Node version): allowed.
|
|
36
|
+
* - **A server-side worker** that says what it is, the Cloudflare Workers runtime
|
|
37
|
+
* (`navigator.userAgent` is `Cloudflare-Workers`) and Vercel's Edge Runtime (`EdgeRuntime`):
|
|
38
|
+
* allowed. An organization deploys those itself, and no browser reports either.
|
|
39
|
+
* - **A browser's web worker or service worker**, and any runtime that names itself in none
|
|
40
|
+
* of these ways: refused. A page's worker has no `window`, so the absence of a page proves
|
|
41
|
+
* nothing; only a server's own mark does.
|
|
42
|
+
*
|
|
43
|
+
* This guards against a mistake, before the token is put on a request. A page that lies
|
|
44
|
+
* about its globals is stopped by the Application API, which refuses an org token sent with
|
|
45
|
+
* an `Origin` header.
|
|
46
|
+
*/
|
|
47
|
+
export declare function organizationServerRefusal(scope?: RuntimeScope): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Refuses a call that takes an organization's org token unless the runtime is a server's
|
|
50
|
+
* ({@link organizationServerRefusal}): an org token and a fleet token never go into a browser
|
|
51
|
+
* page, a page's worker or a game client.
|
|
52
|
+
*/
|
|
53
|
+
export declare function assertOrganizationServer(what: string): void;
|
|
54
|
+
//# sourceMappingURL=server-only.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-only.d.ts","sourceRoot":"","sources":["../src/server-only.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACnD,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAC/C,GAAG,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,GAAE,YAAyC,GAAG,MAAM,GAAG,IAAI,CAUzG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAQ3D"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CrowdyError } from './errors.js';
|
|
2
|
+
/**
|
|
3
|
+
* Why a call that takes an organization's org token may not be made from this runtime, or
|
|
4
|
+
* null when it may.
|
|
5
|
+
*
|
|
6
|
+
* An org token signs in any of the organization's players and opens its fleet sessions, so it
|
|
7
|
+
* is used only on a server the organization runs. The call is made when the runtime says it
|
|
8
|
+
* is one, and refused everywhere else:
|
|
9
|
+
*
|
|
10
|
+
* - **A browser page** (`window` and `document`): refused, whatever else the page defines.
|
|
11
|
+
* That covers a desktop shell's page and a test's simulated one.
|
|
12
|
+
* - **Node, and a Node worker thread** (`process.versions.node`): allowed.
|
|
13
|
+
* - **Bun** (`Bun.version`; it also reports a Node version): allowed.
|
|
14
|
+
* - **Deno** (`Deno.version.deno`; Deno 2 also reports a Node version): allowed.
|
|
15
|
+
* - **A server-side worker** that says what it is, the Cloudflare Workers runtime
|
|
16
|
+
* (`navigator.userAgent` is `Cloudflare-Workers`) and Vercel's Edge Runtime (`EdgeRuntime`):
|
|
17
|
+
* allowed. An organization deploys those itself, and no browser reports either.
|
|
18
|
+
* - **A browser's web worker or service worker**, and any runtime that names itself in none
|
|
19
|
+
* of these ways: refused. A page's worker has no `window`, so the absence of a page proves
|
|
20
|
+
* nothing; only a server's own mark does.
|
|
21
|
+
*
|
|
22
|
+
* This guards against a mistake, before the token is put on a request. A page that lies
|
|
23
|
+
* about its globals is stopped by the Application API, which refuses an org token sent with
|
|
24
|
+
* an `Origin` header.
|
|
25
|
+
*/
|
|
26
|
+
export function organizationServerRefusal(scope = globalThis) {
|
|
27
|
+
if (typeof scope.window !== 'undefined' && typeof scope.document !== 'undefined') {
|
|
28
|
+
return 'this is a browser page';
|
|
29
|
+
}
|
|
30
|
+
if (typeof scope.process?.versions?.node === 'string')
|
|
31
|
+
return null;
|
|
32
|
+
if (typeof scope.Deno?.version?.deno === 'string')
|
|
33
|
+
return null;
|
|
34
|
+
if (typeof scope.Bun?.version === 'string')
|
|
35
|
+
return null;
|
|
36
|
+
if (typeof scope.EdgeRuntime === 'string')
|
|
37
|
+
return null;
|
|
38
|
+
if (scope.navigator?.userAgent === 'Cloudflare-Workers')
|
|
39
|
+
return null;
|
|
40
|
+
return 'this runtime does not say it is a server (Node, Bun, Deno, or a server-side worker)';
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Refuses a call that takes an organization's org token unless the runtime is a server's
|
|
44
|
+
* ({@link organizationServerRefusal}): an org token and a fleet token never go into a browser
|
|
45
|
+
* page, a page's worker or a game client.
|
|
46
|
+
*/
|
|
47
|
+
export function assertOrganizationServer(what) {
|
|
48
|
+
const why = organizationServerRefusal();
|
|
49
|
+
if (!why)
|
|
50
|
+
return;
|
|
51
|
+
throw new CrowdyError({
|
|
52
|
+
message: `${what} takes your organization's org token, which never goes into a browser page or a ` +
|
|
53
|
+
`game client, and ${why}. Call it from a server your organization runs.`,
|
|
54
|
+
});
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crowdedkingdoms/crowdyjs",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.40.0-dev.1",
|
|
4
4
|
"description": "Browser-first Crowded Kingdoms SDK with GraphQL, realtime, and local Rust authoring support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"import": "./dist/hosting/index.js",
|
|
31
31
|
"types": "./dist/hosting/index.d.ts"
|
|
32
32
|
},
|
|
33
|
+
"./fleet": {
|
|
34
|
+
"import": "./dist/fleet/index.js",
|
|
35
|
+
"types": "./dist/fleet/index.d.ts"
|
|
36
|
+
},
|
|
33
37
|
"./player-host": {
|
|
34
38
|
"import": "./dist/player-host/index.js",
|
|
35
39
|
"types": "./dist/player-host/index.d.ts"
|