| 101 | return messages([]); |
| 102 | }, |
| 103 | }, |
| 104 | get messages() { |
| 105 | return messages(params.threadMessages ?? []); |
| 106 | }, |
| 107 | } as Thread; |
| 108 | } |
| 109 | |
| 110 | function createIntegration(overrides: Partial<PlatformIntegration> = {}): PlatformIntegration { |
| 111 | return { |
| 112 | id: 'pi_1', |
| 113 | owned_by_organization_id: 'org_1', |
| 114 | owned_by_user_id: null, |
| 115 | created_by_user_id: 'user_1', |
| 116 | platform: PLATFORM.GITHUB, |
| 117 | integration_type: 'app', |
| 118 | platform_installation_id: '98765', |
| 119 | platform_account_id: '123', |
| 120 | platform_account_login: 'Kilo-Org', |
| 121 | permissions: null, |
| 122 | scopes: null, |
| 123 | repository_access: 'all', |
| 124 | repositories: null, |
| 125 | repositories_synced_at: null, |
| 126 | auth_invalid_at: null, |
| 127 | auth_invalid_reason: null, |
| 128 | metadata: null, |
| 129 | kilo_requester_user_id: null, |
| 130 | platform_requester_account_id: null, |
| 131 | integration_status: 'active', |
| 132 | suspended_at: null, |
| 133 | suspended_by: null, |
| 134 | github_app_type: 'standard', |
| 135 | github_installation_id: null, |
| 136 | github_disconnected_at: null, |