mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
requests
This commit is contained in:
1 parent
3dfb320ef6
commit
c2a18bf8a4
4 files changed
+26262
-4
No files matched your search
@@ -47,7 +47,7 @@ pub struct RunObjectMetadata {
|
||||
impl Default for RunObject {
|
||||
fn default() -> Self {
|
||||
let now = Utc::now();
|
||||
let now = now.timestamp().unsigned_abs();
|
||||
let now = now.timestamp().unsigned_abs() * 1000; // Millisecond resolution
|
||||
Self {
|
||||
id: None,
|
||||
metadata: RunObjectMetadata{
|
||||
@@ -72,8 +72,8 @@ mod tests {
|
||||
let object = RunObject::default();
|
||||
assert!(object.id.is_none());
|
||||
assert_eq!(&object.metadata.version, "0.0.1");
|
||||
assert!(object.metadata.created_at > 1765433415549);
|
||||
assert!(object.metadata.updated_at > 1765433415549);
|
||||
assert!(object.metadata.created_at > 1705433415549);
|
||||
assert!(object.metadata.updated_at > 1705433415549);
|
||||
assert_eq!(&object.mime_type, "application/run+json");
|
||||
}
|
||||
}
|
||||
|
||||
+26252
File diff suppressed because it is too large.
Load diff
+6
@@ -83,6 +83,12 @@ Request Payload Pretty Print:
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Notes:
|
||||
|
||||
- First node, `9b864e10-5a9b-46a1-8a94-2b571649a60d`, appears to be synthetic.
|
||||
- Second node, `22b9587b-2b4d-49c2-a6eb-e985d890e7db`, appears to be synthetic.
|
||||
|
||||
Response:
|
||||
|
||||
{"context":null,"id":"6623842d-3669-49b9-976f-5b239c24e353","display_name":null,"owner_id":"hdYte3rVrWbswJZEglL5CdmKfxv1","status":"CREATED","created_at":1765433415,"updated_at":1765433417,"object_uri":null,"mime_type":"application/run+json","metadata":{"version":"0.0.1","createdAt":1765433415549,"updatedAt":1765433417487,"useAdvancedEditing":false,"draftMode":false,"nodes":{"9b864e10-5a9b-46a1-8a94-2b571649a60d":{"id":"9b864e10-5a9b-46a1-8a94-2b571649a60d","type":"input","parentId":null,"source":{"type":"image","image_url":"https://cdn.marble.worldlabs.ai/object/ee33d03e-b153-4d56-a7cb-a08bf86bd20e/asset.jpg"},"createdAt":1765433417487},"22b9587b-2b4d-49c2-a6eb-e985d890e7db":{"id":"22b9587b-2b4d-49c2-a6eb-e985d890e7db","type":"pano","parentId":"9b864e10-5a9b-46a1-8a94-2b571649a60d","source":{"type":"generate_world","world_id":"pending","status":"pending"},"createdAt":1765433417487},"8e63a168-0c85-470d-b655-b185e0e13fee":{"id":"8e63a168-0c85-470d-b655-b185e0e13fee","type":"world","parentId":"22b9587b-2b4d-49c2-a6eb-e985d890e7db","source":{"type":"generate_world","world_id":"pending","posed_cubemaps_url":"","minimap_url":"","minimap_metadata":"","status":"pending"},"createdAt":1765433417487}}}}
|
||||
|
||||
+1
-1
@@ -160,7 +160,7 @@ struct ObjectMetadata {
|
||||
impl Default for RawRequest {
|
||||
fn default() -> Self {
|
||||
let now = Utc::now();
|
||||
let now = now.timestamp().unsigned_abs();
|
||||
let now = now.timestamp().unsigned_abs() * 1000; // NB: Millisecond resolution
|
||||
Self {
|
||||
object: ObjectDef {
|
||||
metadata: ObjectMetadata {
|
||||
|
||||
Reference in new issue
Block a user