Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchRecoveryRequest

Interface: MatchRecoveryRequest ​

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

Request to restore an unfinished Solo-versus-AI match whose original live runtime is no longer available.

Example:

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

const matchRecoveryRequest: MatchRecoveryRequest = {
  "sourceMatchId": 'example',
  "section": "solo",
  "identities": [],
  "restoreRequestId": 'example',
}

console.log(matchRecoveryRequest)

Properties ​

identities ​

Example:

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

const matchRecoveryRequest: MatchRecoveryRequest = {
  "sourceMatchId": 'example',
  "section": "solo",
  "identities": [],
  "restoreRequestId": 'example',
}

const { identities } = matchRecoveryRequest

console.log(identities)

identities: HistoryIdentityInput[]

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


restoreRequestId ​

Example:

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

const matchRecoveryRequest: MatchRecoveryRequest = {
  "sourceMatchId": 'example',
  "section": "solo",
  "identities": [],
  "restoreRequestId": 'example',
}

const { restoreRequestId } = matchRecoveryRequest

console.log(restoreRequestId)

restoreRequestId: string

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

Stable browser-generated id that makes recovery retries idempotent.


section ​

Example:

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

const matchRecoveryRequest: MatchRecoveryRequest = {
  "sourceMatchId": 'example',
  "section": "solo",
  "identities": [],
  "restoreRequestId": 'example',
}

const { section } = matchRecoveryRequest

console.log(section)

section: HistorySection

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


sourceMatchId ​

Example:

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

const matchRecoveryRequest: MatchRecoveryRequest = {
  "sourceMatchId": 'example',
  "section": "solo",
  "identities": [],
  "restoreRequestId": 'example',
}

const { sourceMatchId } = matchRecoveryRequest

console.log(sourceMatchId)

sourceMatchId: string

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

Id of the original runtime, never a public history id.

Released under the MIT License.