# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true require 'sorbet-runtime' require 'faraday' module StackOne module Shared class ConnectSessionTokenCategories < T::Enum enums do ATS = new('ats') HRIS = new('hris') HRIS_LEGACY = new('hris-legacy') CRM = new('crm') MARKETING = new('marketing') STACKONE = new('stackone') end end class ConnectSessionToken < ::StackOne::Utils::FieldAugmented extend T::Sig field :created_at, DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } } field :id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } field :organization_id, Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } } field :origin_owner_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } } field :origin_owner_name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } } field :project_id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } field :token, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } } field :account_id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } field :categories, T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } } field :label, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } } field :origin_username, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } } field :provider, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } } sig { params(created_at: DateTime, id: Float, organization_id: Float, origin_owner_id: String, origin_owner_name: String, project_id: String, token: String, account_id: T.nilable(String), categories: T.nilable(T::Array[Shared::ConnectSessionTokenCategories]), label: T.nilable(String), origin_username: T.nilable(String), provider: T.nilable(String)).void } def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, token: nil, account_id: nil, categories: nil, label: nil, origin_username: nil, provider: nil) @created_at = created_at @id = id @organization_id = organization_id @origin_owner_id = origin_owner_id @origin_owner_name = origin_owner_name @project_id = project_id @token = token @account_id = account_id @categories = categories @label = label @origin_username = origin_username @provider = provider end end end end