-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
437b5d3
commit 6e0c8b7
Showing
31 changed files
with
974 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...rk/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/AccessTokenApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.api.v7.authenticated.AccessTokenApiV7 | ||
import io.ktor.client.HttpClient | ||
|
||
internal open class AccessTokenApiV8 internal constructor( | ||
httpClient: HttpClient | ||
) : AccessTokenApiV7(httpClient) |
28 changes: 28 additions & 0 deletions
28
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/AssetApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.model.UserId | ||
import com.wire.kalium.network.api.v7.authenticated.AssetApiV7 | ||
|
||
internal open class AssetApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient, | ||
selfUserId: UserId | ||
) : AssetApiV7(authenticatedNetworkClient, selfUserId) |
26 changes: 26 additions & 0 deletions
26
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/CallApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.CallApiV7 | ||
|
||
internal open class CallApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : CallApiV7(authenticatedNetworkClient) |
26 changes: 26 additions & 0 deletions
26
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/ClientApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.ClientApiV7 | ||
|
||
internal open class ClientApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : ClientApiV7(authenticatedNetworkClient) |
26 changes: 26 additions & 0 deletions
26
...ork/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/ConnectionApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.ConnectionApiV7 | ||
|
||
internal open class ConnectionApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : ConnectionApiV7(authenticatedNetworkClient) |
43 changes: 43 additions & 0 deletions
43
...k/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/ConversationApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.authenticated.conversation.AddServiceRequest | ||
import com.wire.kalium.network.api.authenticated.conversation.ConversationResponse | ||
import com.wire.kalium.network.api.authenticated.conversation.ConversationResponseV6 | ||
import com.wire.kalium.network.api.model.ApiModelMapper | ||
import com.wire.kalium.network.api.model.ApiModelMapperImpl | ||
import com.wire.kalium.network.api.model.ConversationId | ||
import com.wire.kalium.network.api.model.ServiceAddedResponse | ||
import com.wire.kalium.network.api.model.UserId | ||
import com.wire.kalium.network.api.v7.authenticated.ConversationApiV7 | ||
import com.wire.kalium.network.exceptions.KaliumException | ||
import com.wire.kalium.network.utils.NetworkResponse | ||
import com.wire.kalium.network.utils.mapSuccess | ||
import com.wire.kalium.network.utils.wrapKaliumResponse | ||
import io.ktor.client.request.get | ||
import io.ktor.client.request.post | ||
import io.ktor.client.request.setBody | ||
import okio.IOException | ||
|
||
internal open class ConversationApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient, | ||
apiModelMapper: ApiModelMapper = ApiModelMapperImpl(), | ||
) : ConversationApiV7(authenticatedNetworkClient) |
25 changes: 25 additions & 0 deletions
25
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/E2EIApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.E2EIApiV7 | ||
|
||
internal open class E2EIApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : E2EIApiV7(authenticatedNetworkClient) |
26 changes: 26 additions & 0 deletions
26
.../src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/FeatureConfigApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.FeatureConfigApiV7 | ||
|
||
internal open class FeatureConfigApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : FeatureConfigApiV7(authenticatedNetworkClient) |
26 changes: 26 additions & 0 deletions
26
...ork/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/KeyPackageApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.KeyPackageApiV7 | ||
|
||
internal open class KeyPackageApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : KeyPackageApiV7(authenticatedNetworkClient) |
28 changes: 28 additions & 0 deletions
28
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/LogoutApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.LogoutApiV7 | ||
import com.wire.kalium.network.session.SessionManager | ||
|
||
internal open class LogoutApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient, | ||
sessionManager: SessionManager | ||
) : LogoutApiV7(authenticatedNetworkClient, sessionManager) |
26 changes: 26 additions & 0 deletions
26
...ork/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/MLSMessageApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.MLSMessageApiV7 | ||
|
||
internal open class MLSMessageApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : MLSMessageApiV7(authenticatedNetworkClient) |
26 changes: 26 additions & 0 deletions
26
...k/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/MLSPublicKeyApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.v7.authenticated.MLSPublicKeyApiV7 | ||
|
||
internal open class MLSPublicKeyApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient | ||
) : MLSPublicKeyApiV7(authenticatedNetworkClient) |
28 changes: 28 additions & 0 deletions
28
network/src/commonMain/kotlin/com/wire/kalium/network/api/v8/authenticated/MessageApiV8.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2025 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
package com.wire.kalium.network.api.v8.authenticated | ||
|
||
import com.wire.kalium.network.AuthenticatedNetworkClient | ||
import com.wire.kalium.network.api.base.authenticated.message.EnvelopeProtoMapper | ||
import com.wire.kalium.network.api.v7.authenticated.MessageApiV7 | ||
|
||
internal open class MessageApiV8 internal constructor( | ||
authenticatedNetworkClient: AuthenticatedNetworkClient, | ||
envelopeProtoMapper: EnvelopeProtoMapper | ||
) : MessageApiV7(authenticatedNetworkClient, envelopeProtoMapper) |
Oops, something went wrong.