krapio
Library referenceTypes

KpdCall

type KpdCall = {
  called_id: number;
  called_name: string;
  called_score: number;
  caller_id: number;
  caller_job_rating: number;
  caller_job_rating_positive: number;
  caller_name: string;
  caller_score: number;
  date: string;
  game_code: string;
  host: string;
  id: number;
  kdf_type: KpdCallContext;
  kdf_type_label: string;
  officer_id: number;
  officer_name: string;
  port: string;
  rating: KpdCallRating;
  rating_label: string;
  status: KpdCallStatus;
  status_date: string;
  status_label: string;
  token: string;
};

one row of GET /api/kpd/latest-calls

Properties

PropertyTypeDescription
called_idnumberReported player id
called_namestring"guest" when unregistered
called_scorenumberReported player score
caller_idnumberReporter player id
caller_job_ratingnumberReporter's total KPD job rating
caller_job_rating_positivenumbercorrect calls of the reporter
caller_namestringReporter name
caller_scorenumberReporter score
datestringrfc3339 utc
game_codestringGame instance code
hoststringGame server host
idnumberReport id
kdf_typeKpdCallContextCall context: 0=public, 1=ranked, 2=comp, 3=custom
kdf_type_labelstringReadable kdf_type
officer_idnumber0 without one
officer_namestringOfficer name
portstringGame server port
ratingKpdCallRatingOfficer verdict: 0=pending, 1=banned, 2=rejected
rating_labelstringReadable rating
statusKpdCallStatus1=not responded, 2=responded, 3=reviewed
status_datestringlast status change, rfc3339 utc
status_labelstringReadable status
tokenstringinternal call token

On this page