@anweather/game-plugin-ssdk 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist-cjs/runtime/defaultService.js +18 -0
  2. package/dist-cjs/runtime/express.js +39 -0
  3. package/dist-cjs/runtime/index.js +7 -0
  4. package/dist-cjs/src/endpoint/EndpointParameters.js +12 -0
  5. package/dist-cjs/src/endpoint/endpointResolver.js +16 -0
  6. package/dist-cjs/src/endpoint/ruleset.js +38 -0
  7. package/dist-cjs/src/index.js +7 -0
  8. package/dist-cjs/src/models/index.js +4 -0
  9. package/dist-cjs/src/models/models_0.js +860 -0
  10. package/dist-cjs/src/protocols/Aws_restJson1.js +1077 -0
  11. package/dist-cjs/src/server/GamePluginService.js +231 -0
  12. package/dist-cjs/src/server/index.js +5 -0
  13. package/dist-cjs/src/server/operations/ApplyMove.js +109 -0
  14. package/dist-cjs/src/server/operations/ApplySaveFileEdit.js +109 -0
  15. package/dist-cjs/src/server/operations/AssignParticipants.js +101 -0
  16. package/dist-cjs/src/server/operations/DescribeSaveFile.js +101 -0
  17. package/dist-cjs/src/server/operations/GetGameResult.js +101 -0
  18. package/dist-cjs/src/server/operations/GetGameStatus.js +101 -0
  19. package/dist-cjs/src/server/operations/GetMetadata.js +99 -0
  20. package/dist-cjs/src/server/operations/GetPlayerView.js +101 -0
  21. package/dist-cjs/src/server/operations/GetSaveFileEditorState.js +101 -0
  22. package/dist-cjs/src/server/operations/Health.js +99 -0
  23. package/dist-cjs/src/server/operations/InitializeGame.js +101 -0
  24. package/dist-cjs/src/server/operations/IsConfigMove.js +101 -0
  25. package/dist-cjs/src/server/operations/IsOutOfTurnMove.js +101 -0
  26. package/dist-cjs/src/server/operations/SelectBotMove.js +101 -0
  27. package/dist-cjs/src/server/operations/ValidateMove.js +101 -0
  28. package/dist-cjs/src/server/operations/index.js +18 -0
  29. package/dist-cjs/tsconfig.cjs.tsbuildinfo +1 -0
  30. package/dist-es/runtime/defaultService.js +15 -0
  31. package/dist-es/runtime/express.js +36 -0
  32. package/dist-es/runtime/index.js +2 -0
  33. package/dist-es/src/endpoint/EndpointParameters.js +8 -0
  34. package/dist-es/src/endpoint/endpointResolver.js +12 -0
  35. package/dist-es/src/endpoint/ruleset.js +35 -0
  36. package/dist-es/src/index.js +3 -0
  37. package/dist-es/src/models/index.js +1 -0
  38. package/dist-es/src/models/models_0.js +855 -0
  39. package/dist-es/src/protocols/Aws_restJson1.js +1041 -0
  40. package/dist-es/src/server/GamePluginService.js +226 -0
  41. package/dist-es/src/server/index.js +2 -0
  42. package/dist-es/src/server/operations/ApplyMove.js +103 -0
  43. package/dist-es/src/server/operations/ApplySaveFileEdit.js +103 -0
  44. package/dist-es/src/server/operations/AssignParticipants.js +95 -0
  45. package/dist-es/src/server/operations/DescribeSaveFile.js +95 -0
  46. package/dist-es/src/server/operations/GetGameResult.js +95 -0
  47. package/dist-es/src/server/operations/GetGameStatus.js +95 -0
  48. package/dist-es/src/server/operations/GetMetadata.js +93 -0
  49. package/dist-es/src/server/operations/GetPlayerView.js +95 -0
  50. package/dist-es/src/server/operations/GetSaveFileEditorState.js +95 -0
  51. package/dist-es/src/server/operations/Health.js +93 -0
  52. package/dist-es/src/server/operations/InitializeGame.js +95 -0
  53. package/dist-es/src/server/operations/IsConfigMove.js +95 -0
  54. package/dist-es/src/server/operations/IsOutOfTurnMove.js +95 -0
  55. package/dist-es/src/server/operations/SelectBotMove.js +95 -0
  56. package/dist-es/src/server/operations/ValidateMove.js +95 -0
  57. package/dist-es/src/server/operations/index.js +15 -0
  58. package/dist-es/tsconfig.es.tsbuildinfo +1 -0
  59. package/dist-types/runtime/defaultService.d.ts +9 -0
  60. package/dist-types/runtime/express.d.ts +12 -0
  61. package/dist-types/runtime/index.d.ts +3 -0
  62. package/dist-types/src/endpoint/EndpointParameters.d.ts +20 -0
  63. package/dist-types/src/endpoint/endpointResolver.d.ts +5 -0
  64. package/dist-types/src/endpoint/ruleset.d.ts +2 -0
  65. package/dist-types/src/index.d.ts +22 -0
  66. package/dist-types/src/models/index.d.ts +1 -0
  67. package/dist-types/src/models/models_0.d.ts +402 -0
  68. package/dist-types/src/protocols/Aws_restJson1.d.ts +52 -0
  69. package/dist-types/src/server/GamePluginService.d.ts +54 -0
  70. package/dist-types/src/server/index.d.ts +2 -0
  71. package/dist-types/src/server/operations/ApplyMove.d.ts +41 -0
  72. package/dist-types/src/server/operations/ApplySaveFileEdit.d.ts +41 -0
  73. package/dist-types/src/server/operations/AssignParticipants.d.ts +41 -0
  74. package/dist-types/src/server/operations/DescribeSaveFile.d.ts +41 -0
  75. package/dist-types/src/server/operations/GetGameResult.d.ts +41 -0
  76. package/dist-types/src/server/operations/GetGameStatus.d.ts +41 -0
  77. package/dist-types/src/server/operations/GetMetadata.d.ts +41 -0
  78. package/dist-types/src/server/operations/GetPlayerView.d.ts +41 -0
  79. package/dist-types/src/server/operations/GetSaveFileEditorState.d.ts +41 -0
  80. package/dist-types/src/server/operations/Health.d.ts +41 -0
  81. package/dist-types/src/server/operations/InitializeGame.d.ts +41 -0
  82. package/dist-types/src/server/operations/IsConfigMove.d.ts +41 -0
  83. package/dist-types/src/server/operations/IsOutOfTurnMove.d.ts +41 -0
  84. package/dist-types/src/server/operations/SelectBotMove.d.ts +41 -0
  85. package/dist-types/src/server/operations/ValidateMove.d.ts +41 -0
  86. package/dist-types/src/server/operations/index.d.ts +15 -0
  87. package/package.json +88 -0
  88. package/runtime/package.json +5 -0
@@ -0,0 +1,41 @@
1
+ import { DescribeSaveFileInput, DescribeSaveFileOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type DescribeSaveFile<Context> = __Operation<DescribeSaveFileServerInput, DescribeSaveFileServerOutput, Context>;
6
+ export interface DescribeSaveFileServerInput extends DescribeSaveFileInput {
7
+ }
8
+ export declare namespace DescribeSaveFileServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof DescribeSaveFileInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface DescribeSaveFileServerOutput extends DescribeSaveFileOutput {
15
+ }
16
+ export type DescribeSaveFileErrors = never;
17
+ export declare class DescribeSaveFileSerializer implements __OperationSerializer<GamePluginService<any>, "DescribeSaveFile", DescribeSaveFileErrors> {
18
+ serialize: (input: DescribeSaveFileServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<DescribeSaveFileServerInput>;
20
+ isOperationError(error: any): error is DescribeSaveFileErrors;
21
+ serializeError(error: DescribeSaveFileErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getDescribeSaveFileHandler: <Context>(operation: __Operation<DescribeSaveFileServerInput, DescribeSaveFileServerOutput, Context>, customizer: __ValidationCustomizer<"DescribeSaveFile">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class DescribeSaveFileHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a DescribeSaveFile handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for DescribeSaveFile
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for DescribeSaveFile that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<DescribeSaveFileServerInput, DescribeSaveFileServerOutput, Context>, mux: __Mux<"GamePlugin", "DescribeSaveFile">, serializer: __OperationSerializer<GamePluginService<Context>, "DescribeSaveFile", DescribeSaveFileErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"DescribeSaveFile">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GameResultOutput, PluginStateOnlyInput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type GetGameResult<Context> = __Operation<GetGameResultServerInput, GetGameResultServerOutput, Context>;
6
+ export interface GetGameResultServerInput extends PluginStateOnlyInput {
7
+ }
8
+ export declare namespace GetGameResultServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof PluginStateOnlyInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetGameResultServerOutput extends GameResultOutput {
15
+ }
16
+ export type GetGameResultErrors = never;
17
+ export declare class GetGameResultSerializer implements __OperationSerializer<GamePluginService<any>, "GetGameResult", GetGameResultErrors> {
18
+ serialize: (input: GetGameResultServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetGameResultServerInput>;
20
+ isOperationError(error: any): error is GetGameResultErrors;
21
+ serializeError(error: GetGameResultErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetGameResultHandler: <Context>(operation: __Operation<GetGameResultServerInput, GetGameResultServerOutput, Context>, customizer: __ValidationCustomizer<"GetGameResult">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetGameResultHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a GetGameResult handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetGameResult
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for GetGameResult that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<GetGameResultServerInput, GetGameResultServerOutput, Context>, mux: __Mux<"GamePlugin", "GetGameResult">, serializer: __OperationSerializer<GamePluginService<Context>, "GetGameResult", GetGameResultErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetGameResult">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GameStatusOutput, PluginStateOnlyInput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type GetGameStatus<Context> = __Operation<GetGameStatusServerInput, GetGameStatusServerOutput, Context>;
6
+ export interface GetGameStatusServerInput extends PluginStateOnlyInput {
7
+ }
8
+ export declare namespace GetGameStatusServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof PluginStateOnlyInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetGameStatusServerOutput extends GameStatusOutput {
15
+ }
16
+ export type GetGameStatusErrors = never;
17
+ export declare class GetGameStatusSerializer implements __OperationSerializer<GamePluginService<any>, "GetGameStatus", GetGameStatusErrors> {
18
+ serialize: (input: GetGameStatusServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetGameStatusServerInput>;
20
+ isOperationError(error: any): error is GetGameStatusErrors;
21
+ serializeError(error: GetGameStatusErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetGameStatusHandler: <Context>(operation: __Operation<GetGameStatusServerInput, GetGameStatusServerOutput, Context>, customizer: __ValidationCustomizer<"GetGameStatus">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetGameStatusHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a GetGameStatus handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetGameStatus
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for GetGameStatus that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<GetGameStatusServerInput, GetGameStatusServerOutput, Context>, mux: __Mux<"GamePlugin", "GetGameStatus">, serializer: __OperationSerializer<GamePluginService<Context>, "GetGameStatus", GetGameStatusErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetGameStatus">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GameTypeMetadata } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type GetMetadata<Context> = __Operation<GetMetadataServerInput, GetMetadataServerOutput, Context>;
6
+ export interface GetMetadataServerInput {
7
+ }
8
+ export declare namespace GetMetadataServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: () => __ValidationFailure[];
13
+ }
14
+ export interface GetMetadataServerOutput extends GameTypeMetadata {
15
+ }
16
+ export type GetMetadataErrors = never;
17
+ export declare class GetMetadataSerializer implements __OperationSerializer<GamePluginService<any>, "GetMetadata", GetMetadataErrors> {
18
+ serialize: (input: GetMetadataServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetMetadataServerInput>;
20
+ isOperationError(error: any): error is GetMetadataErrors;
21
+ serializeError(error: GetMetadataErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetMetadataHandler: <Context>(operation: __Operation<GetMetadataServerInput, GetMetadataServerOutput, Context>, customizer: __ValidationCustomizer<"GetMetadata">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetMetadataHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a GetMetadata handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetMetadata
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for GetMetadata that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<GetMetadataServerInput, GetMetadataServerOutput, Context>, mux: __Mux<"GamePlugin", "GetMetadata">, serializer: __OperationSerializer<GamePluginService<Context>, "GetMetadata", GetMetadataErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetMetadata">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GetPlayerViewInput, GetPlayerViewOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type GetPlayerView<Context> = __Operation<GetPlayerViewServerInput, GetPlayerViewServerOutput, Context>;
6
+ export interface GetPlayerViewServerInput extends GetPlayerViewInput {
7
+ }
8
+ export declare namespace GetPlayerViewServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof GetPlayerViewInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetPlayerViewServerOutput extends GetPlayerViewOutput {
15
+ }
16
+ export type GetPlayerViewErrors = never;
17
+ export declare class GetPlayerViewSerializer implements __OperationSerializer<GamePluginService<any>, "GetPlayerView", GetPlayerViewErrors> {
18
+ serialize: (input: GetPlayerViewServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetPlayerViewServerInput>;
20
+ isOperationError(error: any): error is GetPlayerViewErrors;
21
+ serializeError(error: GetPlayerViewErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetPlayerViewHandler: <Context>(operation: __Operation<GetPlayerViewServerInput, GetPlayerViewServerOutput, Context>, customizer: __ValidationCustomizer<"GetPlayerView">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetPlayerViewHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a GetPlayerView handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetPlayerView
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for GetPlayerView that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<GetPlayerViewServerInput, GetPlayerViewServerOutput, Context>, mux: __Mux<"GamePlugin", "GetPlayerView">, serializer: __OperationSerializer<GamePluginService<Context>, "GetPlayerView", GetPlayerViewErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetPlayerView">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GetSaveFileEditorStateInput, GetSaveFileEditorStateOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type GetSaveFileEditorState<Context> = __Operation<GetSaveFileEditorStateServerInput, GetSaveFileEditorStateServerOutput, Context>;
6
+ export interface GetSaveFileEditorStateServerInput extends GetSaveFileEditorStateInput {
7
+ }
8
+ export declare namespace GetSaveFileEditorStateServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof GetSaveFileEditorStateInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetSaveFileEditorStateServerOutput extends GetSaveFileEditorStateOutput {
15
+ }
16
+ export type GetSaveFileEditorStateErrors = never;
17
+ export declare class GetSaveFileEditorStateSerializer implements __OperationSerializer<GamePluginService<any>, "GetSaveFileEditorState", GetSaveFileEditorStateErrors> {
18
+ serialize: (input: GetSaveFileEditorStateServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetSaveFileEditorStateServerInput>;
20
+ isOperationError(error: any): error is GetSaveFileEditorStateErrors;
21
+ serializeError(error: GetSaveFileEditorStateErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetSaveFileEditorStateHandler: <Context>(operation: __Operation<GetSaveFileEditorStateServerInput, GetSaveFileEditorStateServerOutput, Context>, customizer: __ValidationCustomizer<"GetSaveFileEditorState">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetSaveFileEditorStateHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a GetSaveFileEditorState handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetSaveFileEditorState
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for GetSaveFileEditorState that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<GetSaveFileEditorStateServerInput, GetSaveFileEditorStateServerOutput, Context>, mux: __Mux<"GamePlugin", "GetSaveFileEditorState">, serializer: __OperationSerializer<GamePluginService<Context>, "GetSaveFileEditorState", GetSaveFileEditorStateErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetSaveFileEditorState">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { HealthOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type Health<Context> = __Operation<HealthServerInput, HealthServerOutput, Context>;
6
+ export interface HealthServerInput {
7
+ }
8
+ export declare namespace HealthServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: () => __ValidationFailure[];
13
+ }
14
+ export interface HealthServerOutput extends HealthOutput {
15
+ }
16
+ export type HealthErrors = never;
17
+ export declare class HealthSerializer implements __OperationSerializer<GamePluginService<any>, "Health", HealthErrors> {
18
+ serialize: (input: HealthServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<HealthServerInput>;
20
+ isOperationError(error: any): error is HealthErrors;
21
+ serializeError(error: HealthErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getHealthHandler: <Context>(operation: __Operation<HealthServerInput, HealthServerOutput, Context>, customizer: __ValidationCustomizer<"Health">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class HealthHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a Health handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for Health
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for Health that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<HealthServerInput, HealthServerOutput, Context>, mux: __Mux<"GamePlugin", "Health">, serializer: __OperationSerializer<GamePluginService<Context>, "Health", HealthErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"Health">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { InitializeGameInput, PluginStateUpdate } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type InitializeGame<Context> = __Operation<InitializeGameServerInput, InitializeGameServerOutput, Context>;
6
+ export interface InitializeGameServerInput extends InitializeGameInput {
7
+ }
8
+ export declare namespace InitializeGameServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof InitializeGameInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface InitializeGameServerOutput extends PluginStateUpdate {
15
+ }
16
+ export type InitializeGameErrors = never;
17
+ export declare class InitializeGameSerializer implements __OperationSerializer<GamePluginService<any>, "InitializeGame", InitializeGameErrors> {
18
+ serialize: (input: InitializeGameServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<InitializeGameServerInput>;
20
+ isOperationError(error: any): error is InitializeGameErrors;
21
+ serializeError(error: InitializeGameErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getInitializeGameHandler: <Context>(operation: __Operation<InitializeGameServerInput, InitializeGameServerOutput, Context>, customizer: __ValidationCustomizer<"InitializeGame">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class InitializeGameHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a InitializeGame handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for InitializeGame
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for InitializeGame that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<InitializeGameServerInput, InitializeGameServerOutput, Context>, mux: __Mux<"GamePlugin", "InitializeGame">, serializer: __OperationSerializer<GamePluginService<Context>, "InitializeGame", InitializeGameErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"InitializeGame">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { IsConfigMoveInput, IsConfigMoveOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type IsConfigMove<Context> = __Operation<IsConfigMoveServerInput, IsConfigMoveServerOutput, Context>;
6
+ export interface IsConfigMoveServerInput extends IsConfigMoveInput {
7
+ }
8
+ export declare namespace IsConfigMoveServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof IsConfigMoveInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface IsConfigMoveServerOutput extends IsConfigMoveOutput {
15
+ }
16
+ export type IsConfigMoveErrors = never;
17
+ export declare class IsConfigMoveSerializer implements __OperationSerializer<GamePluginService<any>, "IsConfigMove", IsConfigMoveErrors> {
18
+ serialize: (input: IsConfigMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<IsConfigMoveServerInput>;
20
+ isOperationError(error: any): error is IsConfigMoveErrors;
21
+ serializeError(error: IsConfigMoveErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getIsConfigMoveHandler: <Context>(operation: __Operation<IsConfigMoveServerInput, IsConfigMoveServerOutput, Context>, customizer: __ValidationCustomizer<"IsConfigMove">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class IsConfigMoveHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a IsConfigMove handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for IsConfigMove
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for IsConfigMove that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<IsConfigMoveServerInput, IsConfigMoveServerOutput, Context>, mux: __Mux<"GamePlugin", "IsConfigMove">, serializer: __OperationSerializer<GamePluginService<Context>, "IsConfigMove", IsConfigMoveErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"IsConfigMove">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { IsOutOfTurnMoveInput, IsOutOfTurnMoveOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type IsOutOfTurnMove<Context> = __Operation<IsOutOfTurnMoveServerInput, IsOutOfTurnMoveServerOutput, Context>;
6
+ export interface IsOutOfTurnMoveServerInput extends IsOutOfTurnMoveInput {
7
+ }
8
+ export declare namespace IsOutOfTurnMoveServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof IsOutOfTurnMoveInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface IsOutOfTurnMoveServerOutput extends IsOutOfTurnMoveOutput {
15
+ }
16
+ export type IsOutOfTurnMoveErrors = never;
17
+ export declare class IsOutOfTurnMoveSerializer implements __OperationSerializer<GamePluginService<any>, "IsOutOfTurnMove", IsOutOfTurnMoveErrors> {
18
+ serialize: (input: IsOutOfTurnMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<IsOutOfTurnMoveServerInput>;
20
+ isOperationError(error: any): error is IsOutOfTurnMoveErrors;
21
+ serializeError(error: IsOutOfTurnMoveErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getIsOutOfTurnMoveHandler: <Context>(operation: __Operation<IsOutOfTurnMoveServerInput, IsOutOfTurnMoveServerOutput, Context>, customizer: __ValidationCustomizer<"IsOutOfTurnMove">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class IsOutOfTurnMoveHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a IsOutOfTurnMove handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for IsOutOfTurnMove
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for IsOutOfTurnMove that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<IsOutOfTurnMoveServerInput, IsOutOfTurnMoveServerOutput, Context>, mux: __Mux<"GamePlugin", "IsOutOfTurnMove">, serializer: __OperationSerializer<GamePluginService<Context>, "IsOutOfTurnMove", IsOutOfTurnMoveErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"IsOutOfTurnMove">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { SelectBotMoveInput, SelectBotMoveOutput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type SelectBotMove<Context> = __Operation<SelectBotMoveServerInput, SelectBotMoveServerOutput, Context>;
6
+ export interface SelectBotMoveServerInput extends SelectBotMoveInput {
7
+ }
8
+ export declare namespace SelectBotMoveServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof SelectBotMoveInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface SelectBotMoveServerOutput extends SelectBotMoveOutput {
15
+ }
16
+ export type SelectBotMoveErrors = never;
17
+ export declare class SelectBotMoveSerializer implements __OperationSerializer<GamePluginService<any>, "SelectBotMove", SelectBotMoveErrors> {
18
+ serialize: (input: SelectBotMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<SelectBotMoveServerInput>;
20
+ isOperationError(error: any): error is SelectBotMoveErrors;
21
+ serializeError(error: SelectBotMoveErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getSelectBotMoveHandler: <Context>(operation: __Operation<SelectBotMoveServerInput, SelectBotMoveServerOutput, Context>, customizer: __ValidationCustomizer<"SelectBotMove">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class SelectBotMoveHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a SelectBotMove handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for SelectBotMove
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for SelectBotMove that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<SelectBotMoveServerInput, SelectBotMoveServerOutput, Context>, mux: __Mux<"GamePlugin", "SelectBotMove">, serializer: __OperationSerializer<GamePluginService<Context>, "SelectBotMove", SelectBotMoveErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"SelectBotMove">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { MoveValidation, ValidateMoveInput } from "../../models/models_0";
2
+ import { GamePluginService } from "../GamePluginService";
3
+ import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
4
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
+ export type ValidateMove<Context> = __Operation<ValidateMoveServerInput, ValidateMoveServerOutput, Context>;
6
+ export interface ValidateMoveServerInput extends ValidateMoveInput {
7
+ }
8
+ export declare namespace ValidateMoveServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof ValidateMoveInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface ValidateMoveServerOutput extends MoveValidation {
15
+ }
16
+ export type ValidateMoveErrors = never;
17
+ export declare class ValidateMoveSerializer implements __OperationSerializer<GamePluginService<any>, "ValidateMove", ValidateMoveErrors> {
18
+ serialize: (input: ValidateMoveServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<ValidateMoveServerInput>;
20
+ isOperationError(error: any): error is ValidateMoveErrors;
21
+ serializeError(error: ValidateMoveErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getValidateMoveHandler: <Context>(operation: __Operation<ValidateMoveServerInput, ValidateMoveServerOutput, Context>, customizer: __ValidationCustomizer<"ValidateMove">) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class ValidateMoveHandler<Context> implements __ServiceHandler<Context> {
25
+ private readonly operation;
26
+ private readonly mux;
27
+ private readonly serializer;
28
+ private readonly serializeFrameworkException;
29
+ private readonly validationCustomizer;
30
+ /**
31
+ * Construct a ValidateMove handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for ValidateMove
33
+ * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
34
+ * @param serializer An {@link __OperationSerializer} for ValidateMove that
35
+ * handles deserialization of requests and serialization of responses
36
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
37
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
38
+ */
39
+ constructor(operation: __Operation<ValidateMoveServerInput, ValidateMoveServerOutput, Context>, mux: __Mux<"GamePlugin", "ValidateMove">, serializer: __OperationSerializer<GamePluginService<Context>, "ValidateMove", ValidateMoveErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"ValidateMove">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./ApplyMove";
2
+ export * from "./ApplySaveFileEdit";
3
+ export * from "./AssignParticipants";
4
+ export * from "./DescribeSaveFile";
5
+ export * from "./GetGameResult";
6
+ export * from "./GetGameStatus";
7
+ export * from "./GetMetadata";
8
+ export * from "./GetPlayerView";
9
+ export * from "./GetSaveFileEditorState";
10
+ export * from "./Health";
11
+ export * from "./InitializeGame";
12
+ export * from "./IsConfigMove";
13
+ export * from "./IsOutOfTurnMove";
14
+ export * from "./SelectBotMove";
15
+ export * from "./ValidateMove";
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@anweather/game-plugin-ssdk",
3
+ "description": "Generated GamePlugin RPC types/server (plugin-protocol/model/game-plugin.smithy) plus a hand-written Express bridge and default-handler wrapper (./runtime) -- see plugin-protocol/CLAUDE.md's \"Publishing for cross-repo plugins\".",
4
+ "version": "1.2.0",
5
+ "scripts": {
6
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:es": "tsc -p tsconfig.es.json",
9
+ "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
+ "prepack": "npm run clean && npm run build"
13
+ },
14
+ "main": "./dist-cjs/src/index.js",
15
+ "types": "./dist-types/src/index.d.ts",
16
+ "module": "./dist-es/src/index.js",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist-types/src/index.d.ts",
20
+ "require": "./dist-cjs/src/index.js",
21
+ "default": "./dist-cjs/src/index.js"
22
+ },
23
+ "./runtime": {
24
+ "types": "./dist-types/runtime/index.d.ts",
25
+ "require": "./dist-cjs/runtime/index.js",
26
+ "default": "./dist-cjs/runtime/index.js"
27
+ }
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "sideEffects": false,
33
+ "peerDependencies": {
34
+ "express": "^4.21.2"
35
+ },
36
+ "dependencies": {
37
+ "tslib": "^2.6.2",
38
+ "@aws-crypto/sha256-browser": "5.2.0",
39
+ "@aws-crypto/sha256-js": "5.2.0",
40
+ "@aws-sdk/core": "3.835.0",
41
+ "@aws-sdk/types": "3.821.0",
42
+ "@aws-smithy/server-common": "1.0.0-alpha.10",
43
+ "@smithy/config-resolver": "^4.1.4",
44
+ "@smithy/fetch-http-handler": "^5.0.4",
45
+ "@smithy/hash-node": "^4.0.4",
46
+ "@smithy/invalid-dependency": "^4.0.4",
47
+ "@smithy/middleware-content-length": "^4.0.4",
48
+ "@smithy/middleware-retry": "^4.1.13",
49
+ "@smithy/middleware-serde": "^4.0.8",
50
+ "@smithy/middleware-stack": "^4.0.4",
51
+ "@smithy/node-http-handler": "^4.0.6",
52
+ "@smithy/protocol-http": "^5.1.2",
53
+ "@smithy/smithy-client": "^4.4.4",
54
+ "@smithy/types": "^4.3.1",
55
+ "@smithy/url-parser": "^4.0.4",
56
+ "@smithy/util-base64": "^4.0.0",
57
+ "@smithy/util-body-length-browser": "^4.0.0",
58
+ "@smithy/util-body-length-node": "^4.0.0",
59
+ "@smithy/util-defaults-mode-browser": "^4.0.20",
60
+ "@smithy/util-defaults-mode-node": "^4.0.20",
61
+ "@smithy/util-endpoints": "^3.0.6",
62
+ "@smithy/util-utf8": "^4.0.0"
63
+ },
64
+ "devDependencies": {
65
+ "@tsconfig/node18": "18.2.4",
66
+ "@types/express": "^4.17.21",
67
+ "concurrently": "7.0.0",
68
+ "downlevel-dts": "0.10.1",
69
+ "express": "^4.21.2",
70
+ "rimraf": "^3.0.0",
71
+ "typescript": "~5.8.3",
72
+ "@types/node": "^18.19.69"
73
+ },
74
+ "engines": {
75
+ "node": ">=18.0.0"
76
+ },
77
+ "typesVersions": {
78
+ "<4.0": {
79
+ "dist-types/*": [
80
+ "dist-types/ts3.4/*"
81
+ ]
82
+ }
83
+ },
84
+ "files": [
85
+ "dist-*/**",
86
+ "runtime/package.json"
87
+ ]
88
+ }