Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=file:///tmp/gradle-8.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
252 changes: 252 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.serialization.kotlinx.json.*
import kotlinx.serialization.json.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import kotlinx.serialization.json.*
* println(updated.messages?.last()?.content)
* ```
*/
class AgentsModule(
class AgentsModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.base44.sdk.http.Base44HttpClient
import kotlinx.serialization.json.*

/** Lists application log entries from your Base44 app. */
class AppLogsModule(
class AppLogsModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand All @@ -14,6 +14,6 @@ class AppLogsModule(
limit?.let { put("limit", it.toString()) }
skip?.let { put("skip", it.toString()) }
}
return http.get("/apps/$appId/app-logs", params).jsonArray.map { it.jsonObject }
return http.get("/app-logs/$appId", params).jsonArray.map { it.jsonObject }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlinx.serialization.json.*
* val me = base44.auth.me()
* ```
*/
class AuthModule(
class AuthModule internal constructor(
private val http: Base44HttpClient,
private val functionsHttp: Base44HttpClient,
private val appId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import kotlinx.serialization.json.*
* val order = base44.entities["Orders"].get("order-id")
* ```
*/
class EntitiesModule(
class EntitiesModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand All @@ -28,7 +28,7 @@ class EntitiesModule(
/**
* Provides CRUD and query operations for a specific entity type.
*/
class EntityHandler(
class EntityHandler internal constructor(
private val http: Base44HttpClient,
private val appId: String,
private val entityName: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.serialization.json.*
* val result = base44.functions.invoke("sendWelcomeEmail", buildJsonObject { put("userId", "abc") })
* ```
*/
class FunctionsModule(
class FunctionsModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import kotlinx.serialization.json.*
* val response = base44.integrations.invoke("MyPackage", "MyEndpoint", buildJsonObject { put("param", "val") })
* ```
*/
class IntegrationsModule(
class IntegrationsModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand Down Expand Up @@ -72,7 +72,7 @@ class IntegrationsModule(
}

/** Typed wrappers for Base44 Core integration endpoints. */
class CoreIntegrations(
class CoreIntegrations internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.base44.sdk.http.Base44HttpClient
import kotlinx.serialization.json.*

/** Lists and manages users in your Base44 app. */
class UsersModule(
class UsersModule internal constructor(
private val http: Base44HttpClient,
private val appId: String,
) {
Expand All @@ -23,6 +23,6 @@ class UsersModule(
put("user_email", email)
put("role", role)
}
return http.post("/apps/$appId/users/invite-user", body).jsonObject
return http.post("/apps/$appId/runtime/users/invite-user", body).jsonObject
}
}
Loading