2025-07-30 12:40:15 -07:00
|
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
|
|
|
|
|
|
use chrono::Utc;
|
2025-07-18 09:59:07 -07:00
|
|
|
|
use codex_core::Codex;
|
2025-07-27 20:01:35 -07:00
|
|
|
|
use codex_core::CodexSpawnOk;
|
2025-07-18 09:59:07 -07:00
|
|
|
|
use codex_core::ModelProviderInfo;
|
2025-07-30 12:40:15 -07:00
|
|
|
|
use codex_core::built_in_model_providers;
|
2025-07-18 09:59:07 -07:00
|
|
|
|
use codex_core::protocol::EventMsg;
|
|
|
|
|
|
use codex_core::protocol::InputItem;
|
|
|
|
|
|
use codex_core::protocol::Op;
|
|
|
|
|
|
use codex_core::protocol::SessionConfiguredEvent;
|
2025-07-31 13:11:47 -07:00
|
|
|
|
use codex_core::spawn::CODEX_SANDBOX_NETWORK_DISABLED_ENV_VAR;
|
2025-07-30 12:40:15 -07:00
|
|
|
|
use codex_login::AuthDotJson;
|
|
|
|
|
|
use codex_login::AuthMode;
|
|
|
|
|
|
use codex_login::CodexAuth;
|
|
|
|
|
|
use codex_login::TokenData;
|
2025-07-24 12:19:46 -07:00
|
|
|
|
use core_test_support::load_default_config_for_test;
|
|
|
|
|
|
use core_test_support::load_sse_fixture_with_id;
|
|
|
|
|
|
use core_test_support::wait_for_event;
|
2025-07-18 09:59:07 -07:00
|
|
|
|
use tempfile::TempDir;
|
|
|
|
|
|
use wiremock::Mock;
|
|
|
|
|
|
use wiremock::MockServer;
|
|
|
|
|
|
use wiremock::ResponseTemplate;
|
|
|
|
|
|
use wiremock::matchers::method;
|
|
|
|
|
|
use wiremock::matchers::path;
|
|
|
|
|
|
|
|
|
|
|
|
/// Build minimal SSE stream with completed marker using the JSON fixture.
|
|
|
|
|
|
fn sse_completed(id: &str) -> String {
|
|
|
|
|
|
load_sse_fixture_with_id("tests/fixtures/completed_template.json", id)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
|
|
|
|
|
async fn includes_session_id_and_model_headers_in_request() {
|
|
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
|
|
|
|
|
|
|
|
if std::env::var(CODEX_SANDBOX_NETWORK_DISABLED_ENV_VAR).is_ok() {
|
|
|
|
|
|
println!(
|
|
|
|
|
|
"Skipping test because it cannot execute when network is disabled in a Codex sandbox."
|
|
|
|
|
|
);
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Mock server
|
|
|
|
|
|
let server = MockServer::start().await;
|
|
|
|
|
|
|
|
|
|
|
|
// First request – must NOT include `previous_response_id`.
|
|
|
|
|
|
let first = ResponseTemplate::new(200)
|
|
|
|
|
|
.insert_header("content-type", "text/event-stream")
|
|
|
|
|
|
.set_body_raw(sse_completed("resp1"), "text/event-stream");
|
|
|
|
|
|
|
|
|
|
|
|
Mock::given(method("POST"))
|
|
|
|
|
|
.and(path("/v1/responses"))
|
|
|
|
|
|
.respond_with(first)
|
|
|
|
|
|
.expect(1)
|
|
|
|
|
|
.mount(&server)
|
|
|
|
|
|
.await;
|
|
|
|
|
|
|
|
|
|
|
|
let model_provider = ModelProviderInfo {
|
2025-07-30 12:40:15 -07:00
|
|
|
|
base_url: Some(format!("{}/v1", server.uri())),
|
|
|
|
|
|
..built_in_model_providers()["openai"].clone()
|
2025-07-18 09:59:07 -07:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Init session
|
|
|
|
|
|
let codex_home = TempDir::new().unwrap();
|
|
|
|
|
|
let mut config = load_default_config_for_test(&codex_home);
|
|
|
|
|
|
config.model_provider = model_provider;
|
2025-07-30 12:40:15 -07:00
|
|
|
|
|
2025-07-18 09:59:07 -07:00
|
|
|
|
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());
|
2025-07-30 12:40:15 -07:00
|
|
|
|
let CodexSpawnOk { codex, .. } = Codex::spawn(
|
|
|
|
|
|
config,
|
|
|
|
|
|
Some(CodexAuth::from_api_key("Test API Key".to_string())),
|
|
|
|
|
|
ctrl_c.clone(),
|
|
|
|
|
|
)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
2025-07-18 09:59:07 -07:00
|
|
|
|
|
|
|
|
|
|
codex
|
|
|
|
|
|
.submit(Op::UserInput {
|
|
|
|
|
|
items: vec![InputItem::Text {
|
|
|
|
|
|
text: "hello".into(),
|
|
|
|
|
|
}],
|
|
|
|
|
|
})
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
2025-07-22 09:42:22 -07:00
|
|
|
|
let EventMsg::SessionConfigured(SessionConfiguredEvent { session_id, .. }) =
|
2025-07-24 12:19:46 -07:00
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::SessionConfigured(_))).await
|
2025-07-22 09:42:22 -07:00
|
|
|
|
else {
|
|
|
|
|
|
unreachable!()
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let current_session_id = Some(session_id.to_string());
|
2025-07-24 12:19:46 -07:00
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::TaskComplete(_))).await;
|
2025-07-18 09:59:07 -07:00
|
|
|
|
|
|
|
|
|
|
// get request from the server
|
|
|
|
|
|
let request = &server.received_requests().await.unwrap()[0];
|
2025-07-30 12:40:15 -07:00
|
|
|
|
let request_session_id = request.headers.get("session_id").unwrap();
|
|
|
|
|
|
let request_authorization = request.headers.get("authorization").unwrap();
|
2025-08-01 09:55:23 -07:00
|
|
|
|
let request_originator = request.headers.get("originator").unwrap();
|
2025-07-18 09:59:07 -07:00
|
|
|
|
|
|
|
|
|
|
assert!(current_session_id.is_some());
|
2025-07-22 09:42:22 -07:00
|
|
|
|
assert_eq!(
|
2025-07-30 12:40:15 -07:00
|
|
|
|
request_session_id.to_str().unwrap(),
|
2025-07-22 09:42:22 -07:00
|
|
|
|
current_session_id.as_ref().unwrap()
|
|
|
|
|
|
);
|
2025-07-30 12:40:15 -07:00
|
|
|
|
assert_eq!(request_originator.to_str().unwrap(), "codex_cli_rs");
|
|
|
|
|
|
assert_eq!(
|
|
|
|
|
|
request_authorization.to_str().unwrap(),
|
|
|
|
|
|
"Bearer Test API Key"
|
|
|
|
|
|
);
|
2025-07-18 09:59:07 -07:00
|
|
|
|
}
|
2025-07-22 09:42:22 -07:00
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
|
|
|
|
|
async fn includes_base_instructions_override_in_request() {
|
|
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
|
|
|
|
|
|
|
|
// Mock server
|
|
|
|
|
|
let server = MockServer::start().await;
|
|
|
|
|
|
|
|
|
|
|
|
// First request – must NOT include `previous_response_id`.
|
|
|
|
|
|
let first = ResponseTemplate::new(200)
|
|
|
|
|
|
.insert_header("content-type", "text/event-stream")
|
|
|
|
|
|
.set_body_raw(sse_completed("resp1"), "text/event-stream");
|
|
|
|
|
|
|
|
|
|
|
|
Mock::given(method("POST"))
|
|
|
|
|
|
.and(path("/v1/responses"))
|
|
|
|
|
|
.respond_with(first)
|
|
|
|
|
|
.expect(1)
|
|
|
|
|
|
.mount(&server)
|
|
|
|
|
|
.await;
|
|
|
|
|
|
|
|
|
|
|
|
let model_provider = ModelProviderInfo {
|
2025-07-30 12:40:15 -07:00
|
|
|
|
base_url: Some(format!("{}/v1", server.uri())),
|
|
|
|
|
|
..built_in_model_providers()["openai"].clone()
|
2025-07-22 09:42:22 -07:00
|
|
|
|
};
|
|
|
|
|
|
let codex_home = TempDir::new().unwrap();
|
|
|
|
|
|
let mut config = load_default_config_for_test(&codex_home);
|
|
|
|
|
|
|
|
|
|
|
|
config.base_instructions = Some("test instructions".to_string());
|
|
|
|
|
|
config.model_provider = model_provider;
|
|
|
|
|
|
|
|
|
|
|
|
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());
|
2025-07-30 12:40:15 -07:00
|
|
|
|
let CodexSpawnOk { codex, .. } = Codex::spawn(
|
|
|
|
|
|
config,
|
|
|
|
|
|
Some(CodexAuth::from_api_key("Test API Key".to_string())),
|
|
|
|
|
|
ctrl_c.clone(),
|
|
|
|
|
|
)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
2025-07-22 09:42:22 -07:00
|
|
|
|
|
|
|
|
|
|
codex
|
|
|
|
|
|
.submit(Op::UserInput {
|
|
|
|
|
|
items: vec![InputItem::Text {
|
|
|
|
|
|
text: "hello".into(),
|
|
|
|
|
|
}],
|
|
|
|
|
|
})
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
2025-07-24 12:19:46 -07:00
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::TaskComplete(_))).await;
|
2025-07-22 09:42:22 -07:00
|
|
|
|
|
|
|
|
|
|
let request = &server.received_requests().await.unwrap()[0];
|
|
|
|
|
|
let request_body = request.body_json::<serde_json::Value>().unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
assert!(
|
|
|
|
|
|
request_body["instructions"]
|
|
|
|
|
|
.as_str()
|
|
|
|
|
|
.unwrap()
|
|
|
|
|
|
.contains("test instructions")
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2025-07-30 12:40:15 -07:00
|
|
|
|
|
2025-08-01 09:55:23 -07:00
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
|
|
|
|
|
async fn originator_config_override_is_used() {
|
|
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
|
|
|
|
|
|
|
|
// Mock server
|
|
|
|
|
|
let server = MockServer::start().await;
|
|
|
|
|
|
|
|
|
|
|
|
let first = ResponseTemplate::new(200)
|
|
|
|
|
|
.insert_header("content-type", "text/event-stream")
|
|
|
|
|
|
.set_body_raw(sse_completed("resp1"), "text/event-stream");
|
|
|
|
|
|
|
|
|
|
|
|
Mock::given(method("POST"))
|
|
|
|
|
|
.and(path("/v1/responses"))
|
|
|
|
|
|
.respond_with(first)
|
|
|
|
|
|
.expect(1)
|
|
|
|
|
|
.mount(&server)
|
|
|
|
|
|
.await;
|
|
|
|
|
|
|
|
|
|
|
|
let model_provider = ModelProviderInfo {
|
|
|
|
|
|
base_url: Some(format!("{}/v1", server.uri())),
|
|
|
|
|
|
..built_in_model_providers()["openai"].clone()
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let codex_home = TempDir::new().unwrap();
|
|
|
|
|
|
let mut config = load_default_config_for_test(&codex_home);
|
|
|
|
|
|
config.model_provider = model_provider;
|
|
|
|
|
|
config.internal_originator = Some("my_override".to_string());
|
|
|
|
|
|
|
|
|
|
|
|
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());
|
|
|
|
|
|
let CodexSpawnOk { codex, .. } = Codex::spawn(
|
|
|
|
|
|
config,
|
|
|
|
|
|
Some(CodexAuth::from_api_key("Test API Key".to_string())),
|
|
|
|
|
|
ctrl_c.clone(),
|
|
|
|
|
|
)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
codex
|
|
|
|
|
|
.submit(Op::UserInput {
|
|
|
|
|
|
items: vec![InputItem::Text {
|
|
|
|
|
|
text: "hello".into(),
|
|
|
|
|
|
}],
|
|
|
|
|
|
})
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::TaskComplete(_))).await;
|
|
|
|
|
|
|
|
|
|
|
|
let request = &server.received_requests().await.unwrap()[0];
|
|
|
|
|
|
let request_originator = request.headers.get("originator").unwrap();
|
|
|
|
|
|
assert_eq!(request_originator.to_str().unwrap(), "my_override");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-07-30 12:40:15 -07:00
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
|
|
|
|
|
async fn chatgpt_auth_sends_correct_request() {
|
|
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
|
|
|
|
|
|
|
|
if std::env::var(CODEX_SANDBOX_NETWORK_DISABLED_ENV_VAR).is_ok() {
|
|
|
|
|
|
println!(
|
|
|
|
|
|
"Skipping test because it cannot execute when network is disabled in a Codex sandbox."
|
|
|
|
|
|
);
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Mock server
|
|
|
|
|
|
let server = MockServer::start().await;
|
|
|
|
|
|
|
|
|
|
|
|
// First request – must NOT include `previous_response_id`.
|
|
|
|
|
|
let first = ResponseTemplate::new(200)
|
|
|
|
|
|
.insert_header("content-type", "text/event-stream")
|
|
|
|
|
|
.set_body_raw(sse_completed("resp1"), "text/event-stream");
|
|
|
|
|
|
|
|
|
|
|
|
Mock::given(method("POST"))
|
|
|
|
|
|
.and(path("/api/codex/responses"))
|
|
|
|
|
|
.respond_with(first)
|
|
|
|
|
|
.expect(1)
|
|
|
|
|
|
.mount(&server)
|
|
|
|
|
|
.await;
|
|
|
|
|
|
|
|
|
|
|
|
let model_provider = ModelProviderInfo {
|
|
|
|
|
|
base_url: Some(format!("{}/api/codex", server.uri())),
|
|
|
|
|
|
..built_in_model_providers()["openai"].clone()
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Init session
|
|
|
|
|
|
let codex_home = TempDir::new().unwrap();
|
|
|
|
|
|
let mut config = load_default_config_for_test(&codex_home);
|
|
|
|
|
|
config.model_provider = model_provider;
|
|
|
|
|
|
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());
|
|
|
|
|
|
let CodexSpawnOk { codex, .. } = Codex::spawn(
|
|
|
|
|
|
config,
|
|
|
|
|
|
Some(auth_from_token("Access Token".to_string())),
|
|
|
|
|
|
ctrl_c.clone(),
|
|
|
|
|
|
)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
codex
|
|
|
|
|
|
.submit(Op::UserInput {
|
|
|
|
|
|
items: vec![InputItem::Text {
|
|
|
|
|
|
text: "hello".into(),
|
|
|
|
|
|
}],
|
|
|
|
|
|
})
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
let EventMsg::SessionConfigured(SessionConfiguredEvent { session_id, .. }) =
|
|
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::SessionConfigured(_))).await
|
|
|
|
|
|
else {
|
|
|
|
|
|
unreachable!()
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let current_session_id = Some(session_id.to_string());
|
|
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::TaskComplete(_))).await;
|
|
|
|
|
|
|
|
|
|
|
|
// get request from the server
|
|
|
|
|
|
let request = &server.received_requests().await.unwrap()[0];
|
|
|
|
|
|
let request_session_id = request.headers.get("session_id").unwrap();
|
|
|
|
|
|
let request_authorization = request.headers.get("authorization").unwrap();
|
2025-08-01 09:55:23 -07:00
|
|
|
|
let request_originator = request.headers.get("originator").unwrap();
|
2025-07-31 15:40:19 -07:00
|
|
|
|
let request_chatgpt_account_id = request.headers.get("chatgpt-account-id").unwrap();
|
2025-07-30 12:40:15 -07:00
|
|
|
|
let request_body = request.body_json::<serde_json::Value>().unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
assert!(current_session_id.is_some());
|
|
|
|
|
|
assert_eq!(
|
|
|
|
|
|
request_session_id.to_str().unwrap(),
|
|
|
|
|
|
current_session_id.as_ref().unwrap()
|
|
|
|
|
|
);
|
|
|
|
|
|
assert_eq!(request_originator.to_str().unwrap(), "codex_cli_rs");
|
|
|
|
|
|
assert_eq!(
|
|
|
|
|
|
request_authorization.to_str().unwrap(),
|
|
|
|
|
|
"Bearer Access Token"
|
|
|
|
|
|
);
|
2025-07-31 15:40:19 -07:00
|
|
|
|
assert_eq!(request_chatgpt_account_id.to_str().unwrap(), "account_id");
|
2025-07-30 12:40:15 -07:00
|
|
|
|
assert!(!request_body["store"].as_bool().unwrap());
|
|
|
|
|
|
assert!(request_body["stream"].as_bool().unwrap());
|
|
|
|
|
|
assert_eq!(
|
|
|
|
|
|
request_body["include"][0].as_str().unwrap(),
|
|
|
|
|
|
"reasoning.encrypted_content"
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-07-30 13:56:24 -07:00
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
|
|
|
|
|
async fn includes_user_instructions_message_in_request() {
|
|
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
|
|
|
|
|
|
|
|
let server = MockServer::start().await;
|
|
|
|
|
|
|
|
|
|
|
|
let first = ResponseTemplate::new(200)
|
|
|
|
|
|
.insert_header("content-type", "text/event-stream")
|
|
|
|
|
|
.set_body_raw(sse_completed("resp1"), "text/event-stream");
|
|
|
|
|
|
|
|
|
|
|
|
Mock::given(method("POST"))
|
|
|
|
|
|
.and(path("/v1/responses"))
|
|
|
|
|
|
.respond_with(first)
|
|
|
|
|
|
.expect(1)
|
|
|
|
|
|
.mount(&server)
|
|
|
|
|
|
.await;
|
|
|
|
|
|
|
|
|
|
|
|
let model_provider = ModelProviderInfo {
|
|
|
|
|
|
base_url: Some(format!("{}/v1", server.uri())),
|
|
|
|
|
|
..built_in_model_providers()["openai"].clone()
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let codex_home = TempDir::new().unwrap();
|
|
|
|
|
|
let mut config = load_default_config_for_test(&codex_home);
|
|
|
|
|
|
config.model_provider = model_provider;
|
|
|
|
|
|
config.user_instructions = Some("be nice".to_string());
|
|
|
|
|
|
|
|
|
|
|
|
let ctrl_c = std::sync::Arc::new(tokio::sync::Notify::new());
|
|
|
|
|
|
let CodexSpawnOk { codex, .. } = Codex::spawn(
|
|
|
|
|
|
config,
|
|
|
|
|
|
Some(CodexAuth::from_api_key("Test API Key".to_string())),
|
|
|
|
|
|
ctrl_c.clone(),
|
|
|
|
|
|
)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
codex
|
|
|
|
|
|
.submit(Op::UserInput {
|
|
|
|
|
|
items: vec![InputItem::Text {
|
|
|
|
|
|
text: "hello".into(),
|
|
|
|
|
|
}],
|
|
|
|
|
|
})
|
|
|
|
|
|
.await
|
|
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
wait_for_event(&codex, |ev| matches!(ev, EventMsg::TaskComplete(_))).await;
|
|
|
|
|
|
|
|
|
|
|
|
let request = &server.received_requests().await.unwrap()[0];
|
|
|
|
|
|
let request_body = request.body_json::<serde_json::Value>().unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
assert!(
|
|
|
|
|
|
!request_body["instructions"]
|
|
|
|
|
|
.as_str()
|
|
|
|
|
|
.unwrap()
|
|
|
|
|
|
.contains("be nice")
|
|
|
|
|
|
);
|
|
|
|
|
|
assert_eq!(request_body["input"][0]["role"], "user");
|
|
|
|
|
|
assert!(
|
|
|
|
|
|
request_body["input"][0]["content"][0]["text"]
|
|
|
|
|
|
.as_str()
|
|
|
|
|
|
.unwrap()
|
|
|
|
|
|
.starts_with("be nice")
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2025-07-30 12:40:15 -07:00
|
|
|
|
fn auth_from_token(id_token: String) -> CodexAuth {
|
|
|
|
|
|
CodexAuth::new(
|
|
|
|
|
|
None,
|
|
|
|
|
|
AuthMode::ChatGPT,
|
|
|
|
|
|
PathBuf::new(),
|
|
|
|
|
|
Some(AuthDotJson {
|
2025-07-31 10:48:49 -07:00
|
|
|
|
openai_api_key: None,
|
|
|
|
|
|
tokens: Some(TokenData {
|
2025-07-30 12:40:15 -07:00
|
|
|
|
id_token,
|
|
|
|
|
|
access_token: "Access Token".to_string(),
|
|
|
|
|
|
refresh_token: "test".to_string(),
|
2025-07-31 15:40:19 -07:00
|
|
|
|
account_id: Some("account_id".to_string()),
|
2025-07-31 10:48:49 -07:00
|
|
|
|
}),
|
|
|
|
|
|
last_refresh: Some(Utc::now()),
|
2025-07-30 12:40:15 -07:00
|
|
|
|
}),
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|