OpenRouterManagementClient class
Methods
-
close()
→ void
-
-
createApiKey(OpenRouterCreateApiKeyRequest request)
→ Future<OpenRouterCreatedApiKey>
-
-
createKey(OpenRouterCreateApiKeyRequest request)
→ Future<OpenRouterCreatedApiKey>
-
-
createOneTimeBurnKey({required String name, required double limit, String? creatorUserId, DateTime? expiresAt, bool? includeByokInLimit})
→ Future<OpenRouterCreatedApiKey>
-
-
createOneTimeUseBurnKey({required String name, required double limit, String? creatorUserId, DateTime? expiresAt, bool? includeByokInLimit})
→ Future<OpenRouterCreatedApiKey>
-
-
createRecurringKey({required String name, required double limit, required OpenRouterApiKeyLimitReset reset, String? creatorUserId, DateTime? expiresAt, bool? includeByokInLimit})
→ Future<OpenRouterCreatedApiKey>
-
-
deleteApiKey(String hash)
→ Future<OpenRouterDeleteApiKeyResponse>
-
-
deleteKey(String hash)
→ Future<OpenRouterDeleteApiKeyResponse>
-
-
disableKey(String hash)
→ Future<OpenRouterManagedApiKey>
-
-
enableKey(String hash)
→ Future<OpenRouterManagedApiKey>
-
-
getApiKey(String hash)
→ Future<OpenRouterManagedApiKey>
-
-
getCurrentApiKey()
→ Future<OpenRouterCurrentApiKey>
-
-
getCurrentKey()
→ Future<OpenRouterCurrentApiKey>
-
-
getKey(String hash)
→ Future<OpenRouterManagedApiKey>
-
-
listApiKeys({int? offset, bool? includeDisabled})
→ Future<List<OpenRouterManagedApiKey>>
-
-
listKeys({int? offset, bool? includeDisabled})
→ Future<List<OpenRouterManagedApiKey>>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
removeApiKey(String hash)
→ Future<OpenRouterDeleteApiKeyResponse>
-
-
removeKey(String hash)
→ Future<OpenRouterDeleteApiKeyResponse>
-
-
setOneTimeBurnLimit(String hash, {required double limit, String? name, bool? disabled, bool? includeByokInLimit})
→ Future<OpenRouterManagedApiKey>
-
-
setOneTimeUseBurnLimit(String hash, {required double limit, String? name, bool? disabled, bool? includeByokInLimit})
→ Future<OpenRouterManagedApiKey>
-
-
setRecurringLimit(String hash, {required double limit, required OpenRouterApiKeyLimitReset reset, String? name, bool? disabled, bool? includeByokInLimit})
→ Future<OpenRouterManagedApiKey>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateApiKey(String hash, OpenRouterUpdateApiKeyRequest request)
→ Future<OpenRouterManagedApiKey>
-
-
updateKey(String hash, OpenRouterUpdateApiKeyRequest request)
→ Future<OpenRouterManagedApiKey>
-