Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / SubmitAiGameFeedbackInput

Interface: SubmitAiGameFeedbackInput ​

Defined in: packages/ts-sdk/src/resources/match-history.ts:48

Participant-authorized feedback for one completed AI game.

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

console.log(submitAiGameFeedbackInput)

Extends ​

Properties ​

comments? ​

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

const { comments } = submitAiGameFeedbackInput

console.log(comments)

optional comments?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:5904

Inherited from ​

SubmitAiGameFeedbackRequest.comments


gameNumber ​

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

const { gameNumber } = submitAiGameFeedbackInput

console.log(gameNumber)

gameNumber: number

Defined in: packages/ts-sdk/src/generated/types/common.ts:5905

Inherited from ​

SubmitAiGameFeedbackRequest.gameNumber


identities ​

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

const { identities } = submitAiGameFeedbackInput

console.log(identities)

identities: [HistoryIdentityInput, ...HistoryIdentityInput[]]

Defined in: packages/ts-sdk/src/generated/types/common.ts:5909

Min Items ​

1

Inherited from ​

SubmitAiGameFeedbackRequest.identities


rating ​

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

const { rating } = submitAiGameFeedbackInput

console.log(rating)

rating: AiGameFeedbackRating

Defined in: packages/ts-sdk/src/generated/types/common.ts:5910

Inherited from ​

SubmitAiGameFeedbackRequest.rating


sourceMatchId ​

Example:

ts
import type { SubmitAiGameFeedbackInput } from '@my-swu/simulator-client'

const submitAiGameFeedbackInput: SubmitAiGameFeedbackInput = {
  sourceMatchId: 'match_123',
  identities: [{ kind: 'browser', key: 'browser-identity-key' }],
  gameNumber: 1,
  rating: 'poorly',
}

const { sourceMatchId } = submitAiGameFeedbackInput

console.log(sourceMatchId)

sourceMatchId: string

Defined in: packages/ts-sdk/src/resources/match-history.ts:50

Original server match id, never the opaque history row id.

Released under the MIT License.