Skip to content

Latest commit

 

History

History
82 lines (77 loc) · 3.17 KB

accountv1settingsgetresponse.md

File metadata and controls

82 lines (77 loc) · 3.17 KB

AccountV1SettingsGetResponse

Example Usage

import { AccountV1SettingsGetResponse } from "@steamsets/client-ts/models/operations";

let value: AccountV1SettingsGetResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  v1GetSettingsBody: {
    dollarSchema: "https://api.steamsets.com/schemas/V1GetSettingsBody.json",
    chosenRole: {
      role: "ruby",
      tier: "tier_1",
    },
    connections: [
      {
        avatar:
          "https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/f1/f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9.jpg",
        connectionId: "123456",
        externalId: "123456",
        failed: true,
        hide: true,
        name: "steamsets",
        provider: "discord",
        verified: true,
      },
    ],
    developerApps: [
      {
        apiKey: "api_123",
        description: "My App Description",
        environment: "production",
        id: "da_123456",
        name: "My App",
      },
    ],
    email: "[email protected]",
    emailVerifiedAt: new Date("2023-01-01T00:00:00Z"),
    hidden: true,
    images: [
      {
        active: true,
        fileName: "avatar.png",
        imageId: "img_wasd123",
        imageType: "avatar",
      },
    ],
    language: "en",
    privacy: "public",
    sessions: [
      {
        createdAt: new Date("2023-01-01T00:00:00Z"),
        expiresAt: new Date("2023-01-01T00:00:00Z"),
        ip: "127.0.0.1",
        lastSeen: new Date("2023-01-01T00:00:00Z"),
        level: 1,
        sessionId: "123456",
        userAgent:
          "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
      },
    ],
    subscribed: false,
    vanity: "flo",
    vanityAnalytics: {
      clicks: 929297,
    },
  },
};

Fields

Field Type Required Description
httpMeta components.HTTPMetadata ✔️ N/A
v1GetSettingsBody components.V1GetSettingsBody OK