Skip to content

Commit d67156a

Browse files
committed
fix: default Swift usage agent scope
1 parent 9932a64 commit d67156a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ public struct SessionsUsageParams: Codable, Sendable {
23932393
public init(
23942394
key: String?,
23952395
agentid: String? = nil,
2396-
agentscope: String?,
2396+
agentscope: String? = nil,
23972397
startdate: String?,
23982398
enddate: String?,
23992399
mode: AnyCodable?,

scripts/protocol-gen-swift.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const STRICT_LITERAL_STRUCTS = new Set([
4242

4343
const DEFAULTED_OPTIONAL_INIT_PARAMS: Record<string, Set<string>> = {
4444
SessionsAbortParams: new Set(["agentId"]),
45-
SessionsUsageParams: new Set(["agentId"]),
45+
SessionsUsageParams: new Set(["agentId", "agentScope"]),
4646
ArtifactsListParams: new Set(["agentId"]),
4747
ArtifactsGetParams: new Set(["agentId"]),
4848
ArtifactsDownloadParams: new Set(["agentId"]),

0 commit comments

Comments
 (0)