@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.
Files changed (51) hide show
  1. package/MIGRATION.md +62 -0
  2. package/README.md +401 -2
  3. package/dist/binary-wire.d.ts +94 -1
  4. package/dist/binary-wire.d.ts.map +1 -1
  5. package/dist/binary-wire.js +122 -20
  6. package/dist/crowdy-client.d.ts +7 -0
  7. package/dist/crowdy-client.d.ts.map +1 -1
  8. package/dist/crowdy-client.js +3 -0
  9. package/dist/default-origin.d.ts +6 -6
  10. package/dist/default-origin.d.ts.map +1 -1
  11. package/dist/default-origin.js +6 -6
  12. package/dist/domains/admin.d.ts +7 -0
  13. package/dist/domains/admin.d.ts.map +1 -1
  14. package/dist/domains/admin.js +1 -0
  15. package/dist/domains/exec.d.ts +91 -3
  16. package/dist/domains/exec.d.ts.map +1 -1
  17. package/dist/domains/exec.js +132 -5
  18. package/dist/domains/fleetSessions.d.ts +87 -0
  19. package/dist/domains/fleetSessions.d.ts.map +1 -0
  20. package/dist/domains/fleetSessions.js +87 -0
  21. package/dist/dropped-read.d.ts +2 -1
  22. package/dist/dropped-read.d.ts.map +1 -1
  23. package/dist/dropped-read.js +2 -6
  24. package/dist/errors.d.ts +59 -0
  25. package/dist/errors.d.ts.map +1 -1
  26. package/dist/errors.js +70 -0
  27. package/dist/fleet/index.d.ts +4 -0
  28. package/dist/fleet/index.d.ts.map +1 -0
  29. package/dist/fleet/index.js +21 -0
  30. package/dist/fleet/session.d.ts +730 -0
  31. package/dist/fleet/session.d.ts.map +1 -0
  32. package/dist/fleet/session.js +1376 -0
  33. package/dist/fleet/socket.d.ts +59 -0
  34. package/dist/fleet/socket.d.ts.map +1 -0
  35. package/dist/fleet/socket.js +111 -0
  36. package/dist/fleet-wire.d.ts +272 -0
  37. package/dist/fleet-wire.d.ts.map +1 -0
  38. package/dist/fleet-wire.js +472 -0
  39. package/dist/generated/graphql-schema.d.ts +176 -13
  40. package/dist/generated/graphql-schema.d.ts.map +1 -1
  41. package/dist/generated/graphql-schema.js +15 -3
  42. package/dist/generated/graphql.d.ts +79 -0
  43. package/dist/generated/graphql.d.ts.map +1 -1
  44. package/dist/generated/graphql.js +5 -0
  45. package/dist/index.d.ts +6 -3
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +7 -3
  48. package/dist/server-only.d.ts +54 -0
  49. package/dist/server-only.d.ts.map +1 -0
  50. package/dist/server-only.js +55 -0
  51. package/package.json +5 -1
@@ -473,7 +473,7 @@ export var FreeTierLevel;
473
473
  FreeTierLevel["Domain"] = "DOMAIN";
474
474
  /** One of the organization's apps had at least 10 different player accounts play on at least 3 of the last 7 UTC days; the organization's own members do not count. 500 GB. */
475
475
  FreeTierLevel["Measured"] = "MEASURED";
476
- /** The organization has completed its project profile. 200 GB. */
476
+ /** The organization has completed its project profile and Crowded Kingdoms has approved it. 200 GB. */
477
477
  FreeTierLevel["Profile"] = "PROFILE";
478
478
  })(FreeTierLevel || (FreeTierLevel = {}));
479
479
  /** How a player claim confers grid ownership in this app (D4): SELF_CLAIM (the claim alone assigns ownership), APPROVAL (claims create requests designated approvers accept), INVITE (only against a standing invite), or MARKETPLACE_ONLY (direct claims refused). setAppGridClaimPolicy refuses MARKETPLACE_ONLY while paid grid commerce is off the public API. */
@@ -581,13 +581,25 @@ export var PriceBandBasis;
581
581
  PriceBandBasis["Rate"] = "RATE";
582
582
  PriceBandBasis["Volume"] = "VOLUME";
583
583
  })(PriceBandBasis || (PriceBandBasis = {}));
584
- /** Where the game's logic runs: on the clients, in light server code, or in a full server simulation. */
584
+ /** Where the project's logic runs: on the clients, in light server code, or in a full server simulation. */
585
585
  export var ProjectLogicLocation;
586
586
  (function (ProjectLogicLocation) {
587
587
  ProjectLogicLocation["Clients"] = "CLIENTS";
588
588
  ProjectLogicLocation["FullServerSimulation"] = "FULL_SERVER_SIMULATION";
589
589
  ProjectLogicLocation["LightServerCode"] = "LIGHT_SERVER_CODE";
590
590
  })(ProjectLogicLocation || (ProjectLogicLocation = {}));
591
+ /** Where an organization's project profile stands. The PROFILE free tier level needs it APPROVED. */
592
+ export var ProjectProfileStatus;
593
+ (function (ProjectProfileStatus) {
594
+ /** Crowded Kingdoms approved it: the PROFILE level applies from the start of the next month. */
595
+ ProjectProfileStatus["Approved"] = "APPROVED";
596
+ /** Crowded Kingdoms declined it: the organization has the level its other conditions give it. */
597
+ ProjectProfileStatus["Declined"] = "DECLINED";
598
+ /** An answer is missing (anythingElse is optional). */
599
+ ProjectProfileStatus["Incomplete"] = "INCOMPLETE";
600
+ /** Every answer is in, and Crowded Kingdoms has not decided yet. */
601
+ ProjectProfileStatus["WaitingForReview"] = "WAITING_FOR_REVIEW";
602
+ })(ProjectProfileStatus || (ProjectProfileStatus = {}));
591
603
  /** The project's stage. */
592
604
  export var ProjectStage;
593
605
  (function (ProjectStage) {
@@ -597,7 +609,7 @@ export var ProjectStage;
597
609
  ProjectStage["Production"] = "PRODUCTION";
598
610
  ProjectStage["Prototype"] = "PROTOTYPE";
599
611
  })(ProjectStage || (ProjectStage = {}));
600
- /** Whether the game is one world with everyone in it or many copies of a small one. */
612
+ /** Whether the project is one shared world or many copies of a small one. */
601
613
  export var ProjectWorldShape;
602
614
  (function (ProjectWorldShape) {
603
615
  ProjectWorldShape["ManyCopies"] = "MANY_COPIES";
@@ -1960,6 +1960,19 @@ export type ExecConnectAsDeveloperMutation = {
1960
1960
  expiresAt: string;
1961
1961
  };
1962
1962
  };
1963
+ export type ExecConnectAsServerMutationVariables = Exact<{
1964
+ appId: string;
1965
+ nodeType?: string | null | undefined;
1966
+ key?: string | null | undefined;
1967
+ }>;
1968
+ export type ExecConnectAsServerMutation = {
1969
+ execConnectAsServer: {
1970
+ gatewayUrl: string;
1971
+ token: string;
1972
+ host: string;
1973
+ expiresAt: string;
1974
+ };
1975
+ };
1963
1976
  export type ExecLogsQueryVariables = Exact<{
1964
1977
  appId: string;
1965
1978
  nodeType?: string | null | undefined;
@@ -2738,6 +2751,67 @@ export type ExecModClientArtifactQuery = {
2738
2751
  abiVersion: number;
2739
2752
  };
2740
2753
  };
2754
+ export type FleetSessionFieldsFragment = {
2755
+ token: string;
2756
+ gameTokenId: string;
2757
+ appId: string;
2758
+ expiresAt: string;
2759
+ maxPlayers: number;
2760
+ server: {
2761
+ serverId: string;
2762
+ ip4: string;
2763
+ ip6: string;
2764
+ clientPort: number;
2765
+ status: Types.ServerState;
2766
+ clients: number;
2767
+ };
2768
+ };
2769
+ export type OpenFleetSessionMutationVariables = Exact<{
2770
+ input: Types.OpenFleetSessionInput;
2771
+ }>;
2772
+ export type OpenFleetSessionMutation = {
2773
+ openFleetSession: {
2774
+ token: string;
2775
+ gameTokenId: string;
2776
+ appId: string;
2777
+ expiresAt: string;
2778
+ maxPlayers: number;
2779
+ server: {
2780
+ serverId: string;
2781
+ ip4: string;
2782
+ ip6: string;
2783
+ clientPort: number;
2784
+ status: Types.ServerState;
2785
+ clients: number;
2786
+ };
2787
+ };
2788
+ };
2789
+ export type RefreshFleetSessionMutationVariables = Exact<{
2790
+ input: Types.RefreshFleetSessionInput;
2791
+ }>;
2792
+ export type RefreshFleetSessionMutation = {
2793
+ refreshFleetSession: {
2794
+ token: string;
2795
+ gameTokenId: string;
2796
+ appId: string;
2797
+ expiresAt: string;
2798
+ maxPlayers: number;
2799
+ server: {
2800
+ serverId: string;
2801
+ ip4: string;
2802
+ ip6: string;
2803
+ clientPort: number;
2804
+ status: Types.ServerState;
2805
+ clients: number;
2806
+ };
2807
+ };
2808
+ };
2809
+ export type CloseFleetSessionMutationVariables = Exact<{
2810
+ input: Types.CloseFleetSessionInput;
2811
+ }>;
2812
+ export type CloseFleetSessionMutation = {
2813
+ closeFleetSession: boolean;
2814
+ };
2741
2815
  export type GridOwnershipFieldsFragment = {
2742
2816
  gridOwnershipId: string;
2743
2817
  gridId: string;
@@ -6074,6 +6148,7 @@ export declare const ExecModListingFieldsFragmentDoc: DocumentNode<ExecModListin
6074
6148
  export declare const ExecModSwitchFieldsFragmentDoc: DocumentNode<ExecModSwitchFieldsFragment, unknown>;
6075
6149
  export declare const ExecModClientFieldsFragmentDoc: DocumentNode<ExecModClientFieldsFragment, unknown>;
6076
6150
  export declare const ExecGridClientModFieldsFragmentDoc: DocumentNode<ExecGridClientModFieldsFragment, unknown>;
6151
+ export declare const FleetSessionFieldsFragmentDoc: DocumentNode<FleetSessionFieldsFragment, unknown>;
6077
6152
  export declare const GridOwnershipFieldsFragmentDoc: DocumentNode<GridOwnershipFieldsFragment, unknown>;
6078
6153
  export declare const HostedGameFieldsFragmentDoc: DocumentNode<HostedGameFieldsFragment, unknown>;
6079
6154
  export declare const HostedGamePublishFieldsFragmentDoc: DocumentNode<HostedGamePublishFieldsFragment, unknown>;
@@ -6195,6 +6270,7 @@ export declare const CrowdyStudioLinksDocument: DocumentNode<CrowdyStudioLinksQu
6195
6270
  export declare const ExecConnectDocument: DocumentNode<ExecConnectMutation, ExecConnectMutationVariables>;
6196
6271
  export declare const ExecDeployDocument: DocumentNode<ExecDeployMutation, ExecDeployMutationVariables>;
6197
6272
  export declare const ExecConnectAsDeveloperDocument: DocumentNode<ExecConnectAsDeveloperMutation, ExecConnectAsDeveloperMutationVariables>;
6273
+ export declare const ExecConnectAsServerDocument: DocumentNode<ExecConnectAsServerMutation, ExecConnectAsServerMutationVariables>;
6198
6274
  export declare const ExecLogsDocument: DocumentNode<ExecLogsQuery, ExecLogsQueryVariables>;
6199
6275
  export declare const ExecInstancesDocument: DocumentNode<ExecInstancesQuery, ExecInstancesQueryVariables>;
6200
6276
  export declare const ExecVersionsDocument: DocumentNode<ExecVersionsQuery, ExecVersionsQueryVariables>;
@@ -6232,6 +6308,9 @@ export declare const ExecTrustAuthorDocument: DocumentNode<ExecTrustAuthorMutati
6232
6308
  export declare const ExecRevokeClientModConsentDocument: DocumentNode<ExecRevokeClientModConsentMutation, ExecRevokeClientModConsentMutationVariables>;
6233
6309
  export declare const ExecRevokeAuthorTrustDocument: DocumentNode<ExecRevokeAuthorTrustMutation, ExecRevokeAuthorTrustMutationVariables>;
6234
6310
  export declare const ExecModClientArtifactDocument: DocumentNode<ExecModClientArtifactQuery, ExecModClientArtifactQueryVariables>;
6311
+ export declare const OpenFleetSessionDocument: DocumentNode<OpenFleetSessionMutation, OpenFleetSessionMutationVariables>;
6312
+ export declare const RefreshFleetSessionDocument: DocumentNode<RefreshFleetSessionMutation, RefreshFleetSessionMutationVariables>;
6313
+ export declare const CloseFleetSessionDocument: DocumentNode<CloseFleetSessionMutation, CloseFleetSessionMutationVariables>;
6235
6314
  export declare const GridOwnershipDocument: DocumentNode<GridOwnershipQuery, GridOwnershipQueryVariables>;
6236
6315
  export declare const AssignGridOwnershipDocument: DocumentNode<AssignGridOwnershipMutation, AssignGridOwnershipMutationVariables>;
6237
6316
  export declare const TransferGridOwnershipDocument: DocumentNode<TransferGridOwnershipMutation, TransferGridOwnershipMutationVariables>;