Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSecretCloud/opensecret
/ functions
Functions
1,278 in github.com/OpenSecretCloud/opensecret
⨍
Functions
1,278
◇
Types & classes
392
↓ 5 callers
Function
validate_token
( original_token: &str, data: &AppState, expected_audience: &str, )
src/jwt.rs:685
↓ 4 callers
Function
alias_target
(model: &str)
src/model_config.rs:431
↓ 4 callers
Function
append_streamed_tool_calls
(tool_calls: &mut Vec<StreamedToolCall>, tool_call_delta: &Value)
src/web/responses/handlers.rs:234
↓ 4 callers
Method
apply_to_claims
(&self, claims: &mut CustomClaims)
src/jwt.rs:137
↓ 4 callers
Function
build_conversation_response
( state: &AppState, user_uuid: Uuid, conversation: &crate::models::responses::Conversation, us
src/web/responses/conversations.rs:355
↓ 4 callers
Method
check_usage
( &self, user_id: Uuid, is_api: bool, )
src/billing.rs:42
↓ 4 callers
Function
clamp_token_count
(text: &str, label: &str)
src/web/responses/storage.rs:34
↓ 4 callers
Function
create_oauth_wrapped_user
( app_state: &AppState, project_id: i32, email: String, provider_name: &str, provider_user
src/aead_db_tamper_tests.rs:1384
↓ 4 callers
Method
decrypt
(&self, encrypted_data: &[u8], nonce: &[u8; 12])
src/web/attestation_routes.rs:37
↓ 4 callers
Function
decrypt_content
Decrypt and deserialize encrypted content with type safety This is a high-level helper that decrypts content and automatically deserializes it into t
src/encrypt.rs:249
↓ 4 callers
Method
decrypt_content
Decrypt instruction name and prompt # Returns Tuple of (name, prompt) # Errors Returns ApiError if decryption fails
src/web/responses/instructions.rs:93
↓ 4 callers
Method
from
(error: CreateUserSeedWrapTransactionError)
src/main.rs:247
↓ 4 callers
Function
from_opensecret_email
(app_mode: AppMode)
src/email.rs:755
↓ 4 callers
Method
get
( &self, user: &User, auth_context: &AuthContext, key: String, )
src/main.rs:1412
↓ 4 callers
Method
get
(&self, key: &UserFlagsCacheKey)
src/os_flags.rs:88
↓ 4 callers
Method
get_conversation_by_uuid_and_user
( &self, conversation_uuid: Uuid, user_id: Uuid, )
src/db.rs:2208
↓ 4 callers
Method
get_id
(&self)
src/models/users.rs:87
↓ 4 callers
Method
get_tinfoil_proxy
(&self)
src/proxy_config.rs:65
↓ 4 callers
Method
insert
(&self, conn: &mut PgConnection)
src/models/responses.rs:232
↓ 4 callers
Method
is_expired
(&self)
src/models/password_reset.rs:50
↓ 4 callers
Function
mark_pending_items_incomplete
( db: &Arc<dyn DBConnection + Send + Sync>, user_key: &SecretKey, pending_messages: &mut HashMap<U
src/web/responses/storage.rs:249
↓ 4 callers
Method
output
Set the output items # Arguments `output` - Vector of OutputItem objects
src/web/responses/builders.rs:104
↓ 4 callers
Function
put
( pool: &diesel::r2d2::Pool<diesel::r2d2::ConnectionManager<PgConnection>>, user_id: Uuid, key: St
src/kv.rs:74
↓ 4 callers
Function
update_terminal_response_status
( db: &Arc<dyn DBConnection + Send + Sync>, response_id: i64, response_uuid: Uuid, status: Res
src/web/responses/storage.rs:83
↓ 4 callers
Method
update_user_password_and_seed_wrap
( &self, user: &User, expected_password_enc: &[u8], new_password_enc: Vec<u8>,
src/db.rs:960
↓ 4 callers
Method
upsert_by_credential
( &self, conn: &mut PgConnection, )
src/models/user_seed_wrappings.rs:121
↓ 3 callers
Method
add_provider
(&mut self, name: String, provider: Box<dyn OAuthProvider>)
src/oauth.rs:392
↓ 3 callers
Method
app_mode
(mut self, app_mode: AppMode)
src/main.rs:513
↓ 3 callers
Method
as_str
(self)
src/provider_routing.rs:12
↓ 3 callers
Method
as_str
(&self)
src/models/project_settings.rs:26
↓ 3 callers
Function
assert_patterns_in_order
(source: &str, patterns: &[&str])
src/security_invariants.rs:836
↓ 3 callers
Function
attach_reasoning_to_assistant_message
(message: &mut Value, reasoning: Option<&str>)
src/web/responses/context_builder.rs:773
↓ 3 callers
Function
authenticated_oauth_user
( app_state: &AppState, user: User, provider_name: &str, provider_user_id: &str, )
src/web/oauth_routes.rs:1090
↓ 3 callers
Method
aws_credential_manager
( mut self, aws_credential_manager: Arc<tokio::sync::RwLock<Option<AwsCredentialManager>>>,
src/main.rs:528
↓ 3 callers
Function
build_context_entries
( metadata: &[crate::models::responses::RawThreadMessageMetadata], include_reasoning_history: bool, )
src/web/responses/context_builder.rs:509
↓ 3 callers
Function
build_internal_system_prompt_for_now
( now: chrono::DateTime<Utc>, web_search_enabled: bool, )
src/web/responses/handlers.rs:153
↓ 3 callers
Function
build_project_response
( project: &crate::models::responses::ConversationProject, name: String, instructions: Option<Stri
src/web/responses/conversation_projects.rs:143
↓ 3 callers
Function
close_reasoning_if_active
( state: &mut ReasoningState, tx_storage: &mpsc::Sender<StorageMessage>, tx_client: &mpsc::Sender<
src/web/responses/handlers.rs:2325
↓ 3 callers
Function
copyHeaders
(dst, src http.Header)
tinfoil-proxy/main.go:106
↓ 3 callers
Method
create_oauth_provider
OAuth Provider method implementations
src/db.rs:1107
↓ 3 callers
Method
create_password_reset_request
( &self, new_request: NewPasswordResetRequest, )
src/db.rs:934
↓ 3 callers
Function
create_test_response
()
src/web/responses/builders.rs:296
↓ 3 callers
Function
create_tool_call_chat_msg
Build a tool_call ChatMsg exactly as `build_prompt` would store it once a tool call is persisted and later re-read from the database.
src/web/responses/context_builder.rs:1232
↓ 3 callers
Method
create_user
(&self, new_user: NewUser)
src/db.rs:745
↓ 3 callers
Method
db
(mut self, db: Arc<dyn DBConnection + Send + Sync>)
src/main.rs:518
↓ 3 callers
Function
derive_bip85_mnemonic_from_root
( root_mnemonic: Mnemonic, bip85_path: &str, )
src/private_key.rs:144
↓ 3 callers
Function
derive_key
(root_key: &[u8], info: &[u8])
src/encrypt.rs:87
↓ 3 callers
Function
doWithResponseStartTimeout
( client *http.Client, req *http.Request, timeout time.Duration, )
tinfoil-proxy/main.go:133
↓ 3 callers
Method
enclave_key
(mut self, enclave_key: Vec<u8>)
src/main.rs:523
↓ 3 callers
Function
encrypt_access_token
( app_state: &AppState, access_token: &str, )
src/web/oauth_routes.rs:1507
↓ 3 callers
Method
encrypt_session_data
( &self, session_id: &Uuid, data: &[u8], )
src/main.rs:1552
↓ 3 callers
Method
encrypt_user_password_verifier
( &self, new_password: String, )
src/main.rs:1942
↓ 3 callers
Method
ensure_provider_exists
( &self, db: Arc<dyn DBConnection + Send + Sync>, )
src/oauth.rs:97
↓ 3 callers
Function
execute_tool
Execute a tool by name with the given arguments This is the main entry point for tool execution. It routes to the appropriate tool implementation bas
src/web/responses/tools.rs:177
↓ 3 callers
Method
fetch_credentials
(&self)
src/aws_credentials.rs:100
↓ 3 callers
Method
fill_bytes
(&self, dest: &mut [u8])
src/encrypt.rs:554
↓ 3 callers
Function
generate_apple_client_secret
Generates an Apple client secret JWT This function creates and signs a JWT that Apple requires for the token exchange step of OAuth2. Apple doesn't u
src/apple_signin.rs:331
↓ 3 callers
Function
get_chat_completion_response
Internal function to get chat completion response with automatic billing This can be used by both the proxy_openai endpoint and the responses API Bil
src/web/openai.rs:713
↓ 3 callers
Method
get_completion_proxy
(&self)
src/proxy_config.rs:59
↓ 3 callers
Method
get_default_proxy
(&self)
src/proxy_config.rs:55
↓ 3 callers
Method
get_email_verification_by_user_id
( &self, user_id: Uuid, )
src/db.rs:901
↓ 3 callers
Method
get_invite_code_by_code
(&self, code: Uuid)
src/db.rs:1457
↓ 3 callers
Method
get_org_project_by_name_and_org
( &self, name: &str, org_id: i32, )
src/db.rs:1319
↓ 3 callers
Method
get_provider
(&self, name: &str)
src/oauth.rs:396
↓ 3 callers
Method
get_user
(&self, user_uuid: Uuid)
src/main.rs:1347
↓ 3 callers
Function
initiate_oauth
( State(app_state): State<Arc<AppState>>, Extension(auth_request): Extension<OAuthAuthRequest>, Ex
src/web/oauth_routes.rs:422
↓ 3 callers
Function
json_value_len
(value: &Value)
src/web/openai.rs:332
↓ 3 callers
Method
jwt_secret
(mut self, jwt_secret: Vec<u8>)
src/main.rs:551
↓ 3 callers
Function
map_response_error
Map response-related database errors to API errors # Arguments `e` - The database error to map # Returns Appropriate ApiError with logging
src/web/responses/errors.rs:91
↓ 3 callers
Function
metadata_token_count
(message: &crate::models::responses::RawThreadMessageMetadata)
src/web/responses/context_builder.rs:46
↓ 3 callers
Function
migrate_project_secret
( app_state: &Arc<AppState>, project_id: i32, key_name: &str, secret_value: &str, )
src/migrations.rs:162
↓ 3 callers
Function
model_max_ctx
(model: &str)
src/tokens.rs:18
↓ 3 callers
Function
model_reasoning_history_strategy
(model: &str)
src/model_config.rs:480
↓ 3 callers
Function
model_supports_reasoning_history
(model: &str)
src/model_config.rs:495
↓ 3 callers
Method
oauth_auth_binding_for_user
( &self, user: &User, provider_name: &str, provider_user_id: &str, )
src/main.rs:897
↓ 3 callers
Method
oauth_auth_context_for_user
( &self, user: &User, provider_name: &str, provider_user_id: &str, )
src/main.rs:913
↓ 3 callers
Function
oauth_callback
( State(app_state): State<Arc<AppState>>, Extension(callback_request): Extension<OAuthCallbackRequest>
src/web/oauth_routes.rs:473
↓ 3 callers
Function
oauth_callback_response
( app_state: &AppState, authenticated_user: &AuthenticatedOAuthUser, )
src/web/oauth_routes.rs:1113
↓ 3 callers
Function
oauth_credential_lookup_hash
( root_key: &[u8], project_id: i32, user_uuid: Uuid, provider: &str, provider_user_id: &st
src/seed_wrapping.rs:146
↓ 3 callers
Method
openai_api_base
(mut self, openai_api_base: String)
src/main.rs:541
↓ 3 callers
Function
parse_hardened_bip85_segment
(segment: &str, name: &str, path: &str)
src/web/protected_routes.rs:265
↓ 3 callers
Method
password_auth_binding_for_user
( &self, user: &User, decrypted_password_verifier: &str, )
src/main.rs:864
↓ 3 callers
Function
publish_usage_event_internal
Internal billing function - NEVER exposed outside this module This function publishes usage events to both the database and SQS
src/web/openai.rs:1178
↓ 3 callers
Function
resolve_responses_sampling
(body: &ResponsesCreateRequest)
src/web/responses/handlers.rs:119
↓ 3 callers
Function
set_chat_template_kwarg
(chat_request: &mut Value, key: &str, value: Value)
src/web/responses/handlers.rs:61
↓ 3 callers
Function
setup_db
(url: String)
src/db.rs:2948
↓ 3 callers
Method
split_audio
( &self, audio_data: &[u8], content_type: &str, )
src/web/audio_utils.rs:56
↓ 3 callers
Method
split_wav
(&self, audio_data: &[u8])
src/web/audio_utils.rs:100
↓ 3 callers
Method
to_decoding_key
(&self)
src/apple_signin.rs:88
↓ 3 callers
Method
update_password
( &self, conn: &mut PgConnection, new_password_enc: Option<Vec<u8>>, )
src/models/users.rs:95
↓ 3 callers
Method
upsert_user_seed_wrapping
( &self, new_wrapping: NewUserSeedWrapping, )
src/db.rs:780
↓ 3 callers
Function
validate_api_key_name
Validation function for API key names More restrictive than project names since they're used in URL paths
src/web/protected_routes.rs:378
↓ 3 callers
Function
validate_bip85_path
Validates a BIP-85 path to ensure it follows the correct format and contains valid values. Format: m/PURPOSE'/APP'/LANGUAGE'/WORDS'/INDEX' where: - PU
src/web/protected_routes.rs:159
↓ 3 callers
Method
verify
(&mut self, conn: &mut PgConnection)
src/models/email_verification.rs:77
↓ 2 callers
Method
as_str
(self)
src/seed_wrapping.rs:34
↓ 2 callers
Function
assert_response_storage_counts
(app_state: &AppState, user_id: Uuid, expected_count: i64)
src/aead_db_tamper_tests.rs:1281
↓ 2 callers
Method
authenticate_platform_user
( &self, email: &str, password: String, )
src/main.rs:2125
↓ 2 callers
Method
build_client
( &self, client_id: String, client_secret: String, redirect_url: String, )
src/oauth.rs:49
↓ 2 callers
Function
build_internal_system_prompt
(web_search_enabled: bool)
src/web/responses/handlers.rs:169
↓ 2 callers
Function
build_local_test_app_state
(database_url: String)
src/web/oauth_routes.rs:1667
← previous
next →
101–200 of 1,278, ranked by callers