@crowdedkingdoms/crowdyjs 18.27.0 → 18.28.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 +26 -0
- package/README.md +20 -15
- 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/chunks.d.ts +24 -15
- package/dist/domains/chunks.d.ts.map +1 -1
- package/dist/domains/chunks.js +24 -15
- package/dist/domains/gameApps.d.ts +7 -4
- package/dist/domains/gameApps.d.ts.map +1 -1
- package/dist/domains/gameApps.js +7 -4
- package/dist/domains/voxels.d.ts +22 -16
- package/dist/domains/voxels.d.ts.map +1 -1
- package/dist/domains/voxels.js +22 -16
- package/dist/generated/graphql-schema.d.ts +43 -27
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql.d.ts +1 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1883,9 +1883,9 @@ export type ChunksByDistanceResponse = {
|
|
|
1883
1883
|
__typename?: 'ChunksByDistanceResponse';
|
|
1884
1884
|
/** Chunks found within the search cube. */
|
|
1885
1885
|
chunks: Array<Chunk>;
|
|
1886
|
-
/**
|
|
1886
|
+
/** The `limit` applied to this page: the one asked for, or 1000 when none (or 0) was. */
|
|
1887
1887
|
limit: Maybe<Scalars['Int']['output']>;
|
|
1888
|
-
/**
|
|
1888
|
+
/** The `skip` applied to this page: the one asked for, or 0. */
|
|
1889
1889
|
skip: Maybe<Scalars['Int']['output']>;
|
|
1890
1890
|
};
|
|
1891
1891
|
/** Claim (or re-assert) the hosting slug for an app. */
|
|
@@ -4140,20 +4140,26 @@ export type GetChunkLodsInput = {
|
|
|
4140
4140
|
/** LOD levels to return (each >= 0; 0 is the finest). Only matching levels are included in the response. */
|
|
4141
4141
|
lodLevels: Array<Scalars['Int']['input']>;
|
|
4142
4142
|
};
|
|
4143
|
-
/** Arguments for getChunksByDistance: selects chunks
|
|
4143
|
+
/** Arguments for getChunksByDistance: selects the stored chunks in a region, either a cube (centerCoordinate and maxDistance) or a box (lowChunk and highChunk), with pagination. A cube is ordered by Chebyshev distance from its center, then x, y, z; a box by x, y, z. */
|
|
4144
4144
|
export type GetChunksByDistanceInput = {
|
|
4145
4145
|
/** Id of the app whose chunks to search (decimal string). */
|
|
4146
4146
|
appId: Scalars['BigInt']['input'];
|
|
4147
|
-
/** Center chunk of the search cube. */
|
|
4148
|
-
centerCoordinate
|
|
4149
|
-
/**
|
|
4147
|
+
/** Center chunk of the search cube. With maxDistance; leave both out to search a box (lowChunk and highChunk) instead. */
|
|
4148
|
+
centerCoordinate?: InputMaybe<ChunkCoordinatesInput>;
|
|
4149
|
+
/** The opposite corner of the search box, with lowChunk; both corners are inclusive. */
|
|
4150
|
+
highChunk?: InputMaybe<ChunkCoordinatesInput>;
|
|
4151
|
+
/** Maximum number of chunks to return. Defaults to 1000 when omitted or 0; a cube at maxDistance 8 holds up to 4,913. Must be >= 0. */
|
|
4150
4152
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
4151
|
-
/**
|
|
4152
|
-
|
|
4153
|
+
/** One corner of a search box, with highChunk, instead of a cube: for streaming only the slab a step uncovers. Corners are normalized per axis, and the box may cover at most 4,913 chunks (the cube maxDistance 8 reads). */
|
|
4154
|
+
lowChunk?: InputMaybe<ChunkCoordinatesInput>;
|
|
4155
|
+
/** Cube 'radius' in chunks measured as Chebyshev distance: matches chunks whose x, y and z each differ from the center by at most this many chunks (a (2*maxDistance+1)^3 cube). Integer, 1-8 inclusive. With centerCoordinate. */
|
|
4156
|
+
maxDistance?: InputMaybe<Scalars['Int']['input']>;
|
|
4157
|
+
/** Optional inclusive lower time bound: only chunks whose updatedAt is at or after it, i.e. chunks whose stored grid, chunk state or LODs were written since (updateChunk, updateChunkState, updateChunkLods). Single voxel edits do not move a chunk's updatedAt; read those with listVoxelUpdatesByDistance's since. */
|
|
4158
|
+
since?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4153
4159
|
/** Number of chunks to skip for pagination. Defaults to 0 when omitted. Must be >= 0. */
|
|
4154
4160
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
4155
4161
|
};
|
|
4156
|
-
/** Arguments for getVoxelList: selects
|
|
4162
|
+
/** Arguments for getVoxelList: selects the recorded voxel edits for one chunk by app id and chunk coordinates, by position and at most 65,536 of them (listVoxels pages past that). */
|
|
4157
4163
|
export type GetVoxelListInput = {
|
|
4158
4164
|
/** Id of the app that owns the chunk (decimal string). */
|
|
4159
4165
|
appId: Scalars['BigInt']['input'];
|
|
@@ -4755,29 +4761,37 @@ export type LinkIdentityInput = {
|
|
|
4755
4761
|
provider: Scalars['String']['input'];
|
|
4756
4762
|
state: Scalars['String']['input'];
|
|
4757
4763
|
};
|
|
4758
|
-
/** Arguments for listVoxelUpdatesByDistance: selects recorded voxel edits across chunks
|
|
4764
|
+
/** Arguments for listVoxelUpdatesByDistance: selects recorded voxel edits across the chunks of a region, either a cube (centerCoordinate and maxDistance) or a box (lowChunk and highChunk), grouped per chunk. A cube is ordered by increasing Chebyshev distance, then x, y, z; a box by x, y, z. Edits are returned for chunks whose grid was never stored too. */
|
|
4759
4765
|
export type ListVoxelUpdatesByDistanceInput = {
|
|
4760
4766
|
/** Id of the app whose voxel edits to search (decimal string). */
|
|
4761
4767
|
appId: Scalars['BigInt']['input'];
|
|
4762
|
-
/** Center chunk of the search cube. */
|
|
4763
|
-
centerCoordinate
|
|
4764
|
-
/**
|
|
4768
|
+
/** Center chunk of the search cube. With maxDistance; leave both out to search a box (lowChunk and highChunk) instead. */
|
|
4769
|
+
centerCoordinate?: InputMaybe<ChunkCoordinatesInput>;
|
|
4770
|
+
/** The opposite corner of the search box, with lowChunk; both corners are inclusive. */
|
|
4771
|
+
highChunk?: InputMaybe<ChunkCoordinatesInput>;
|
|
4772
|
+
/** Maximum number of CHUNKS (not voxels) to include. Defaults to 1000 when omitted or 0. Must be >= 0. */
|
|
4765
4773
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
4766
|
-
/**
|
|
4767
|
-
|
|
4774
|
+
/** One corner of a search box, with highChunk, instead of a cube. Corners are normalized per axis, and the box may cover at most 4,913 chunks (the cube maxDistance 8 reads). */
|
|
4775
|
+
lowChunk?: InputMaybe<ChunkCoordinatesInput>;
|
|
4776
|
+
/** Cube radius in chunks measured as Chebyshev distance: matches chunks whose x, y and z each differ from the center by at most this many chunks. Integer, 1-8 inclusive. With centerCoordinate. */
|
|
4777
|
+
maxDistance?: InputMaybe<Scalars['Int']['input']>;
|
|
4768
4778
|
/** Optional inclusive lower time bound; only edits with createdAt >= this timestamp are returned. */
|
|
4769
4779
|
since?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4770
4780
|
/** Number of chunks to skip for pagination. Defaults to 0 when omitted. Must be >= 0. */
|
|
4771
4781
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
4772
4782
|
};
|
|
4773
|
-
/** Arguments for listVoxels: selects recorded voxel edits
|
|
4783
|
+
/** Arguments for listVoxels: selects the recorded voxel edits of one chunk, ordered by voxel position (x, then y, then z), optionally only those at/after a timestamp, a page at a time. */
|
|
4774
4784
|
export type ListVoxelsInput = {
|
|
4775
4785
|
/** Id of the app that owns the chunk (decimal string). */
|
|
4776
4786
|
appId: Scalars['BigInt']['input'];
|
|
4777
4787
|
/** Address of the chunk whose voxel edits to list. */
|
|
4778
4788
|
coordinates: ChunkCoordinatesInput;
|
|
4789
|
+
/** Most edits to return, 1-65,536 (the default). A page shorter than the limit is the last; read the next with skip. */
|
|
4790
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
4779
4791
|
/** Optional inclusive lower time bound. When set, only voxel edits with createdAt >= this timestamp are returned. */
|
|
4780
4792
|
since?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4793
|
+
/** Edits to skip, for the next page. Defaults to 0. */
|
|
4794
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
4781
4795
|
};
|
|
4782
4796
|
/** A single level-of-detail (LOD) representation of a chunk. */
|
|
4783
4797
|
export type LodData = {
|
|
@@ -6342,7 +6356,7 @@ export type MyTierAccess = {
|
|
|
6342
6356
|
/** Why access is granted: platform_role, operator_grant, provisioning or verified_email. */
|
|
6343
6357
|
via: Maybe<Scalars['String']['output']>;
|
|
6344
6358
|
};
|
|
6345
|
-
/** A grid overlapping a scanned region (returned by nearbyGrids)
|
|
6359
|
+
/** A grid overlapping a scanned region (returned by nearbyGrids): its bounds and the caller's own permission keys on it. */
|
|
6346
6360
|
export type NearbyGrid = {
|
|
6347
6361
|
__typename?: 'NearbyGrid';
|
|
6348
6362
|
/** The app (tenant) that owns the grid. */
|
|
@@ -6353,6 +6367,8 @@ export type NearbyGrid = {
|
|
|
6353
6367
|
highChunk: ChunkCoordinates;
|
|
6354
6368
|
/** Low (minimum) corner chunk of the grid box. */
|
|
6355
6369
|
lowChunk: ChunkCoordinates;
|
|
6370
|
+
/** The caller's own unexpired permission keys on this grid, sorted; empty when none. These are the grants the server checks: a voxel edit needs update_voxel_data on the grid that decides its chunk. */
|
|
6371
|
+
permissionKeys: Array<Scalars['String']['output']>;
|
|
6356
6372
|
};
|
|
6357
6373
|
/** A grid overlapping a scanned region, plus a user's effective permission keys on it (returned by nearbyGridPermissions). */
|
|
6358
6374
|
export type NearbyGridPermissions = {
|
|
@@ -6381,7 +6397,7 @@ export type NearbyGridPermissionsInput = {
|
|
|
6381
6397
|
/** The user whose effective permissions to report per grid. */
|
|
6382
6398
|
userId: Scalars['BigInt']['input'];
|
|
6383
6399
|
};
|
|
6384
|
-
/** Scan a region for grids. Player-safe: returns bounds
|
|
6400
|
+
/** Scan a region for grids. Player-safe: returns each grid's bounds and the caller's own permission keys, and takes no userId. */
|
|
6385
6401
|
export type NearbyGridsInput = {
|
|
6386
6402
|
/** The app (tenant) to scan within. */
|
|
6387
6403
|
appId: Scalars['BigInt']['input'];
|
|
@@ -7509,7 +7525,7 @@ export type Query = {
|
|
|
7509
7525
|
getChunk: Maybe<Chunk>;
|
|
7510
7526
|
/** Fetches only the requested level-of-detail (LOD) meshes for one chunk, identified by app id and coordinates. Returns null if the chunk does not exist. Cheaper than getChunk when you only need LODs. Requires a valid bearer token; app-scoped tokens are limited to their own app. Read-only. */
|
|
7511
7527
|
getChunkLods: Maybe<ChunkLodsResponse>;
|
|
7512
|
-
/** Returns
|
|
7528
|
+
/** Returns the stored chunks of an app in a region, paginated: a cube (center +/- maxDistance chunks on each axis, nearest first) or a box between two corners (lowChunk and highChunk, at most 4,913 chunks, by x, y, z), optionally only those written since a time. Pages are stable: each chunk is on exactly one. Each chunk's `voxelStates`, when selected, include its recorded voxel edits as in getChunk (selecting them costs one more read). Use this for bulk region loads; use getChunk for a single chunk. Requires a valid bearer token; app-scoped tokens are limited to their own app. Read-only. */
|
|
7513
7529
|
getChunksByDistance: ChunksByDistanceResponse;
|
|
7514
7530
|
/** Returns all recorded voxel edits (the voxel_updates log) for a single chunk, newest first, as a ChunkVoxelResponse. Use getChunk instead when you want the packed voxel grid rather than the individual edit log. Requires a valid bearer token; app-scoped tokens are limited to their own app. Read-only. */
|
|
7515
7531
|
getVoxelList: ChunkVoxelResponse;
|
|
@@ -7543,9 +7559,9 @@ export type Query = {
|
|
|
7543
7559
|
inputLogSessions: InputLogSessionConnection;
|
|
7544
7560
|
/** OPERATOR: legal holds, newest first (at most 500), on one organization or account if given; only the ones that apply now unless includeReleased. */
|
|
7545
7561
|
legalHolds: Array<LegalHold>;
|
|
7546
|
-
/** Lists recorded voxel edits for
|
|
7562
|
+
/** Lists recorded voxel edits for the chunks of a region, grouped per chunk and paginated over chunks: a cube (center +/- maxDistance, by increasing distance) or a box between two corners (lowChunk and highChunk, at most 4,913 chunks, by x, y, z). It reads the edit log alone, so chunks whose grid was never stored are included. Requires a valid bearer token; app-scoped tokens are limited to their own app. Read-only. */
|
|
7547
7563
|
listVoxelUpdatesByDistance: VoxelUpdatesByDistanceResponse;
|
|
7548
|
-
/** Lists recorded voxel edits
|
|
7564
|
+
/** Lists the recorded voxel edits of a single chunk (optionally only those at/after `since`), one per voxel position, ordered by position and paged by limit (default and most 65,536) and skip. Requires a valid bearer token; app-scoped tokens are limited to their own app. Read-only. */
|
|
7549
7565
|
listVoxels: Array<Voxel>;
|
|
7550
7566
|
/** One managed player by the id your organization knows it by, or null. An org token with players:manage, or an org admin with manage_players. */
|
|
7551
7567
|
managedPlayer: Maybe<ManagedPlayer>;
|
|
@@ -7599,7 +7615,7 @@ export type Query = {
|
|
|
7599
7615
|
myTierAccess: MyTierAccess;
|
|
7600
7616
|
/** List every grid overlapping a chunk-coordinate bounding box, each with the given user's effective permission keys on it. Useful for previewing what a user can do across a region (e.g. around their current position). Requires app-admin ('manage_apps'). */
|
|
7601
7617
|
nearbyGridPermissions: Array<NearbyGridPermissions>;
|
|
7602
|
-
/** List every grid overlapping a chunk-coordinate bounding box
|
|
7618
|
+
/** List every grid overlapping a chunk-coordinate bounding box: its gridId, its bounds and the caller's own permission keys on it. Player-safe: another user's keys need nearbyGridPermissions (app admin). The grid that decides a voxel edit in a chunk is the smallest box covering it (the lower gridId on a tie), and the edit needs update_voxel_data there. Requires an app-scoped token for the same app. */
|
|
7603
7619
|
nearbyGrids: Array<NearbyGrid>;
|
|
7604
7620
|
/** An org's off-session auto-billing configuration (enabled flag, recharge amount, low-water threshold, per-period cap, and last error). Requires the 'view_billing' org permission. */
|
|
7605
7621
|
orgAutoBilling: OrgAutoBilling;
|
|
@@ -10137,16 +10153,16 @@ export type VoxelUpdateResponse = {
|
|
|
10137
10153
|
/** The unique identifier for this voxel update. */
|
|
10138
10154
|
uuid: Scalars['String']['output'];
|
|
10139
10155
|
};
|
|
10140
|
-
/** Result of listVoxelUpdatesByDistance: per-chunk groups of voxel edits ordered by increasing distance from
|
|
10156
|
+
/** Result of listVoxelUpdatesByDistance: per-chunk groups of voxel edits (a cube ordered by increasing distance from its center, a box by x, y, z), plus the pagination applied. */
|
|
10141
10157
|
export type VoxelUpdatesByDistanceResponse = {
|
|
10142
10158
|
__typename?: 'VoxelUpdatesByDistanceResponse';
|
|
10143
|
-
/** The center chunk
|
|
10159
|
+
/** The center chunk of a cube search; for a box, its middle chunk (rounded toward lowChunk). */
|
|
10144
10160
|
centerCoordinate: ChunkCoordinates;
|
|
10145
|
-
/** Per-chunk groups of voxel edits
|
|
10161
|
+
/** Per-chunk groups of voxel edits: for a cube by increasing Chebyshev distance from centerCoordinate, then x, y, z; for a box by x, y, z. */
|
|
10146
10162
|
chunks: Array<ChunkVoxelUpdatesResponse>;
|
|
10147
|
-
/**
|
|
10163
|
+
/** The chunk `limit` applied to this page: the one asked for, or 1000 when none (or 0) was. */
|
|
10148
10164
|
limit: Maybe<Scalars['Int']['output']>;
|
|
10149
|
-
/**
|
|
10165
|
+
/** The chunk `skip` applied to this page: the one asked for, or 0. */
|
|
10150
10166
|
skip: Maybe<Scalars['Int']['output']>;
|
|
10151
10167
|
};
|
|
10152
10168
|
export type WalletTransaction = {
|