MCPcopy Create free account

hub / github.com/OpenSecretCloud/opensecret / functions

Functions1,278 in github.com/OpenSecretCloud/opensecret

↓ 5 callersFunctionvalidate_token
( original_token: &str, data: &AppState, expected_audience: &str, )
src/jwt.rs:685
↓ 4 callersFunctionalias_target
(model: &str)
src/model_config.rs:431
↓ 4 callersFunctionappend_streamed_tool_calls
(tool_calls: &mut Vec<StreamedToolCall>, tool_call_delta: &Value)
src/web/responses/handlers.rs:234
↓ 4 callersMethodapply_to_claims
(&self, claims: &mut CustomClaims)
src/jwt.rs:137
↓ 4 callersFunctionbuild_conversation_response
( state: &AppState, user_uuid: Uuid, conversation: &crate::models::responses::Conversation, us
src/web/responses/conversations.rs:355
↓ 4 callersMethodcheck_usage
( &self, user_id: Uuid, is_api: bool, )
src/billing.rs:42
↓ 4 callersFunctionclamp_token_count
(text: &str, label: &str)
src/web/responses/storage.rs:34
↓ 4 callersFunctioncreate_oauth_wrapped_user
( app_state: &AppState, project_id: i32, email: String, provider_name: &str, provider_user
src/aead_db_tamper_tests.rs:1384
↓ 4 callersMethoddecrypt
(&self, encrypted_data: &[u8], nonce: &[u8; 12])
src/web/attestation_routes.rs:37
↓ 4 callersFunctiondecrypt_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 callersMethoddecrypt_content
Decrypt instruction name and prompt # Returns Tuple of (name, prompt) # Errors Returns ApiError if decryption fails
src/web/responses/instructions.rs:93
↓ 4 callersMethodfrom
(error: CreateUserSeedWrapTransactionError)
src/main.rs:247
↓ 4 callersFunctionfrom_opensecret_email
(app_mode: AppMode)
src/email.rs:755
↓ 4 callersMethodget
( &self, user: &User, auth_context: &AuthContext, key: String, )
src/main.rs:1412
↓ 4 callersMethodget
(&self, key: &UserFlagsCacheKey)
src/os_flags.rs:88
↓ 4 callersMethodget_conversation_by_uuid_and_user
( &self, conversation_uuid: Uuid, user_id: Uuid, )
src/db.rs:2208
↓ 4 callersMethodget_id
(&self)
src/models/users.rs:87
↓ 4 callersMethodget_tinfoil_proxy
(&self)
src/proxy_config.rs:65
↓ 4 callersMethodinsert
(&self, conn: &mut PgConnection)
src/models/responses.rs:232
↓ 4 callersMethodis_expired
(&self)
src/models/password_reset.rs:50
↓ 4 callersFunctionmark_pending_items_incomplete
( db: &Arc<dyn DBConnection + Send + Sync>, user_key: &SecretKey, pending_messages: &mut HashMap<U
src/web/responses/storage.rs:249
↓ 4 callersMethodoutput
Set the output items # Arguments `output` - Vector of OutputItem objects
src/web/responses/builders.rs:104
↓ 4 callersFunctionput
( pool: &diesel::r2d2::Pool<diesel::r2d2::ConnectionManager<PgConnection>>, user_id: Uuid, key: St
src/kv.rs:74
↓ 4 callersFunctionupdate_terminal_response_status
( db: &Arc<dyn DBConnection + Send + Sync>, response_id: i64, response_uuid: Uuid, status: Res
src/web/responses/storage.rs:83
↓ 4 callersMethodupdate_user_password_and_seed_wrap
( &self, user: &User, expected_password_enc: &[u8], new_password_enc: Vec<u8>,
src/db.rs:960
↓ 4 callersMethodupsert_by_credential
( &self, conn: &mut PgConnection, )
src/models/user_seed_wrappings.rs:121
↓ 3 callersMethodadd_provider
(&mut self, name: String, provider: Box<dyn OAuthProvider>)
src/oauth.rs:392
↓ 3 callersMethodapp_mode
(mut self, app_mode: AppMode)
src/main.rs:513
↓ 3 callersMethodas_str
(self)
src/provider_routing.rs:12
↓ 3 callersMethodas_str
(&self)
src/models/project_settings.rs:26
↓ 3 callersFunctionassert_patterns_in_order
(source: &str, patterns: &[&str])
src/security_invariants.rs:836
↓ 3 callersFunctionattach_reasoning_to_assistant_message
(message: &mut Value, reasoning: Option<&str>)
src/web/responses/context_builder.rs:773
↓ 3 callersFunctionauthenticated_oauth_user
( app_state: &AppState, user: User, provider_name: &str, provider_user_id: &str, )
src/web/oauth_routes.rs:1090
↓ 3 callersMethodaws_credential_manager
( mut self, aws_credential_manager: Arc<tokio::sync::RwLock<Option<AwsCredentialManager>>>,
src/main.rs:528
↓ 3 callersFunctionbuild_context_entries
( metadata: &[crate::models::responses::RawThreadMessageMetadata], include_reasoning_history: bool, )
src/web/responses/context_builder.rs:509
↓ 3 callersFunctionbuild_internal_system_prompt_for_now
( now: chrono::DateTime<Utc>, web_search_enabled: bool, )
src/web/responses/handlers.rs:153
↓ 3 callersFunctionbuild_project_response
( project: &crate::models::responses::ConversationProject, name: String, instructions: Option<Stri
src/web/responses/conversation_projects.rs:143
↓ 3 callersFunctionclose_reasoning_if_active
( state: &mut ReasoningState, tx_storage: &mpsc::Sender<StorageMessage>, tx_client: &mpsc::Sender<
src/web/responses/handlers.rs:2325
↓ 3 callersFunctioncopyHeaders
(dst, src http.Header)
tinfoil-proxy/main.go:106
↓ 3 callersMethodcreate_oauth_provider
OAuth Provider method implementations
src/db.rs:1107
↓ 3 callersMethodcreate_password_reset_request
( &self, new_request: NewPasswordResetRequest, )
src/db.rs:934
↓ 3 callersFunctioncreate_test_response
()
src/web/responses/builders.rs:296
↓ 3 callersFunctioncreate_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 callersMethodcreate_user
(&self, new_user: NewUser)
src/db.rs:745
↓ 3 callersMethoddb
(mut self, db: Arc<dyn DBConnection + Send + Sync>)
src/main.rs:518
↓ 3 callersFunctionderive_bip85_mnemonic_from_root
( root_mnemonic: Mnemonic, bip85_path: &str, )
src/private_key.rs:144
↓ 3 callersFunctionderive_key
(root_key: &[u8], info: &[u8])
src/encrypt.rs:87
↓ 3 callersFunctiondoWithResponseStartTimeout
( client *http.Client, req *http.Request, timeout time.Duration, )
tinfoil-proxy/main.go:133
↓ 3 callersMethodenclave_key
(mut self, enclave_key: Vec<u8>)
src/main.rs:523
↓ 3 callersFunctionencrypt_access_token
( app_state: &AppState, access_token: &str, )
src/web/oauth_routes.rs:1507
↓ 3 callersMethodencrypt_session_data
( &self, session_id: &Uuid, data: &[u8], )
src/main.rs:1552
↓ 3 callersMethodencrypt_user_password_verifier
( &self, new_password: String, )
src/main.rs:1942
↓ 3 callersMethodensure_provider_exists
( &self, db: Arc<dyn DBConnection + Send + Sync>, )
src/oauth.rs:97
↓ 3 callersFunctionexecute_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 callersMethodfetch_credentials
(&self)
src/aws_credentials.rs:100
↓ 3 callersMethodfill_bytes
(&self, dest: &mut [u8])
src/encrypt.rs:554
↓ 3 callersFunctiongenerate_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 callersFunctionget_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 callersMethodget_completion_proxy
(&self)
src/proxy_config.rs:59
↓ 3 callersMethodget_default_proxy
(&self)
src/proxy_config.rs:55
↓ 3 callersMethodget_email_verification_by_user_id
( &self, user_id: Uuid, )
src/db.rs:901
↓ 3 callersMethodget_invite_code_by_code
(&self, code: Uuid)
src/db.rs:1457
↓ 3 callersMethodget_org_project_by_name_and_org
( &self, name: &str, org_id: i32, )
src/db.rs:1319
↓ 3 callersMethodget_provider
(&self, name: &str)
src/oauth.rs:396
↓ 3 callersMethodget_user
(&self, user_uuid: Uuid)
src/main.rs:1347
↓ 3 callersFunctioninitiate_oauth
( State(app_state): State<Arc<AppState>>, Extension(auth_request): Extension<OAuthAuthRequest>, Ex
src/web/oauth_routes.rs:422
↓ 3 callersFunctionjson_value_len
(value: &Value)
src/web/openai.rs:332
↓ 3 callersMethodjwt_secret
(mut self, jwt_secret: Vec<u8>)
src/main.rs:551
↓ 3 callersFunctionmap_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 callersFunctionmetadata_token_count
(message: &crate::models::responses::RawThreadMessageMetadata)
src/web/responses/context_builder.rs:46
↓ 3 callersFunctionmigrate_project_secret
( app_state: &Arc<AppState>, project_id: i32, key_name: &str, secret_value: &str, )
src/migrations.rs:162
↓ 3 callersFunctionmodel_max_ctx
(model: &str)
src/tokens.rs:18
↓ 3 callersFunctionmodel_reasoning_history_strategy
(model: &str)
src/model_config.rs:480
↓ 3 callersFunctionmodel_supports_reasoning_history
(model: &str)
src/model_config.rs:495
↓ 3 callersMethodoauth_auth_binding_for_user
( &self, user: &User, provider_name: &str, provider_user_id: &str, )
src/main.rs:897
↓ 3 callersMethodoauth_auth_context_for_user
( &self, user: &User, provider_name: &str, provider_user_id: &str, )
src/main.rs:913
↓ 3 callersFunctionoauth_callback
( State(app_state): State<Arc<AppState>>, Extension(callback_request): Extension<OAuthCallbackRequest>
src/web/oauth_routes.rs:473
↓ 3 callersFunctionoauth_callback_response
( app_state: &AppState, authenticated_user: &AuthenticatedOAuthUser, )
src/web/oauth_routes.rs:1113
↓ 3 callersFunctionoauth_credential_lookup_hash
( root_key: &[u8], project_id: i32, user_uuid: Uuid, provider: &str, provider_user_id: &st
src/seed_wrapping.rs:146
↓ 3 callersMethodopenai_api_base
(mut self, openai_api_base: String)
src/main.rs:541
↓ 3 callersFunctionparse_hardened_bip85_segment
(segment: &str, name: &str, path: &str)
src/web/protected_routes.rs:265
↓ 3 callersMethodpassword_auth_binding_for_user
( &self, user: &User, decrypted_password_verifier: &str, )
src/main.rs:864
↓ 3 callersFunctionpublish_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 callersFunctionresolve_responses_sampling
(body: &ResponsesCreateRequest)
src/web/responses/handlers.rs:119
↓ 3 callersFunctionset_chat_template_kwarg
(chat_request: &mut Value, key: &str, value: Value)
src/web/responses/handlers.rs:61
↓ 3 callersFunctionsetup_db
(url: String)
src/db.rs:2948
↓ 3 callersMethodsplit_audio
( &self, audio_data: &[u8], content_type: &str, )
src/web/audio_utils.rs:56
↓ 3 callersMethodsplit_wav
(&self, audio_data: &[u8])
src/web/audio_utils.rs:100
↓ 3 callersMethodto_decoding_key
(&self)
src/apple_signin.rs:88
↓ 3 callersMethodupdate_password
( &self, conn: &mut PgConnection, new_password_enc: Option<Vec<u8>>, )
src/models/users.rs:95
↓ 3 callersMethodupsert_user_seed_wrapping
( &self, new_wrapping: NewUserSeedWrapping, )
src/db.rs:780
↓ 3 callersFunctionvalidate_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 callersFunctionvalidate_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 callersMethodverify
(&mut self, conn: &mut PgConnection)
src/models/email_verification.rs:77
↓ 2 callersMethodas_str
(self)
src/seed_wrapping.rs:34
↓ 2 callersFunctionassert_response_storage_counts
(app_state: &AppState, user_id: Uuid, expected_count: i64)
src/aead_db_tamper_tests.rs:1281
↓ 2 callersMethodauthenticate_platform_user
( &self, email: &str, password: String, )
src/main.rs:2125
↓ 2 callersMethodbuild_client
( &self, client_id: String, client_secret: String, redirect_url: String, )
src/oauth.rs:49
↓ 2 callersFunctionbuild_internal_system_prompt
(web_search_enabled: bool)
src/web/responses/handlers.rs:169
↓ 2 callersFunctionbuild_local_test_app_state
(database_url: String)
src/web/oauth_routes.rs:1667
← previousnext →101–200 of 1,278, ranked by callers