5
5
6
6
export interface paths {
7
7
"/v1/bids" : {
8
+ /**
9
+ * Returns at most 20 bids which were submitted after a specific time.
10
+ * @description If no time is provided, the server will return the first bids.
11
+ */
12
+ get : operations [ "get_bids_by_time" ] ;
8
13
/**
9
14
* Bid on a specific permission key for a specific chain.
10
- * @description Bid on a specific permission key for a specific chain.
11
- *
12
- * Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
15
+ * @description Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
13
16
* containing the contract call will be sent to the blockchain expecting the bid amount to be paid after the call.
14
17
*/
15
18
post : operations [ "bid" ] ;
16
19
} ;
17
20
"/v1/bids/{bid_id}" : {
18
- /**
19
- * Query the status of a specific bid.
20
- * @description Query the status of a specific bid.
21
- */
21
+ /** Query the status of a specific bid. */
22
22
get : operations [ "bid_status" ] ;
23
23
} ;
24
24
"/v1/opportunities" : {
25
- /**
26
- * Fetch all opportunities ready to be exectued.
27
- * @description Fetch all opportunities ready to be exectued.
28
- */
25
+ /** Fetch all opportunities ready to be exectued. */
29
26
get : operations [ "get_opportunities" ] ;
30
27
/**
31
28
* Submit an opportunity ready to be executed.
32
- * @description Submit an opportunity ready to be executed.
33
- *
34
- * The opportunity will be verified by the server. If the opportunity is valid, it will be stored in the database
29
+ * @description The opportunity will be verified by the server. If the opportunity is valid, it will be stored in the database
35
30
* and will be available for bidding.
36
31
*/
37
32
post : operations [ "post_opportunity" ] ;
38
33
} ;
39
34
"/v1/opportunities/{opportunity_id}/bids" : {
35
+ /** Bid on opportunity */
36
+ post : operations [ "opportunity_bid" ] ;
37
+ } ;
38
+ "/v1/profiles/access_tokens" : {
40
39
/**
41
- * Bid on opportunity
42
- * @description Bid on opportunity
40
+ * Revoke the authenticated profile access token.
41
+ * @description Returns empty response.
43
42
*/
44
- post : operations [ "opportunity_bid " ] ;
43
+ delete : operations [ "delete_profile_access_token " ] ;
45
44
} ;
46
45
}
47
46
@@ -295,6 +294,54 @@ export interface components {
295
294
/** @enum {string} */
296
295
type : "bid_status_update" ;
297
296
} ;
297
+ /** BidResponse */
298
+ SimulatedBid : {
299
+ /**
300
+ * @description Amount of bid in wei.
301
+ * @example 10
302
+ */
303
+ bid_amount : string ;
304
+ /**
305
+ * @description The chain id for bid.
306
+ * @example op_sepolia
307
+ */
308
+ chain_id : string ;
309
+ /**
310
+ * @description The unique id for bid.
311
+ * @example obo3ee3e-58cc-4372-a567-0e02b2c3d479
312
+ */
313
+ id : string ;
314
+ /**
315
+ * @description The time server received the bid formatted in rfc3339.
316
+ * @example 2024-05-23T21:26:57.329954Z
317
+ */
318
+ initiation_time : string ;
319
+ /**
320
+ * @description The permission key for bid.
321
+ * @example 0xdeadbeef
322
+ */
323
+ permission_key : string ;
324
+ /**
325
+ * @description The profile id for the bid owner.
326
+ * @example
327
+ */
328
+ profile_id : string ;
329
+ status : components [ "schemas" ] [ "BidStatus" ] ;
330
+ /**
331
+ * @description Calldata for the contract call.
332
+ * @example 0xdeadbeef
333
+ */
334
+ target_calldata : string ;
335
+ /**
336
+ * @description The contract address to call.
337
+ * @example 0xcA11bde05977b3631167028862bE2a173976CA11
338
+ */
339
+ target_contract : string ;
340
+ } ;
341
+ /** BidsResponse */
342
+ SimulatedBids : {
343
+ items : components [ "schemas" ] [ "SimulatedBid" ] [ ] ;
344
+ } ;
298
345
TokenAmount : {
299
346
/**
300
347
* @description Token amount
@@ -350,6 +397,13 @@ export interface components {
350
397
} ;
351
398
} ;
352
399
} ;
400
+ SimulatedBids : {
401
+ content : {
402
+ "application/json" : {
403
+ items : components [ "schemas" ] [ "SimulatedBid" ] [ ] ;
404
+ } ;
405
+ } ;
406
+ } ;
353
407
} ;
354
408
parameters : never ;
355
409
requestBodies : never ;
@@ -362,11 +416,30 @@ export type $defs = Record<string, never>;
362
416
export type external = Record < string , never > ;
363
417
364
418
export interface operations {
419
+ /**
420
+ * Returns at most 20 bids which were submitted after a specific time.
421
+ * @description If no time is provided, the server will return the first bids.
422
+ */
423
+ get_bids_by_time : {
424
+ parameters : {
425
+ query ?: {
426
+ /** @example 2024-05-23T21:26:57.329954Z */
427
+ from_time ?: string | null ;
428
+ } ;
429
+ } ;
430
+ responses : {
431
+ /** @description Paginated list of bids for the specified query */
432
+ 200 : {
433
+ content : {
434
+ "application/json" : components [ "schemas" ] [ "SimulatedBids" ] ;
435
+ } ;
436
+ } ;
437
+ 400 : components [ "responses" ] [ "ErrorBodyResponse" ] ;
438
+ } ;
439
+ } ;
365
440
/**
366
441
* Bid on a specific permission key for a specific chain.
367
- * @description Bid on a specific permission key for a specific chain.
368
- *
369
- * Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
442
+ * @description Your bid will be simulated and verified by the server. Depending on the outcome of the auction, a transaction
370
443
* containing the contract call will be sent to the blockchain expecting the bid amount to be paid after the call.
371
444
*/
372
445
bid : {
@@ -391,10 +464,7 @@ export interface operations {
391
464
} ;
392
465
} ;
393
466
} ;
394
- /**
395
- * Query the status of a specific bid.
396
- * @description Query the status of a specific bid.
397
- */
467
+ /** Query the status of a specific bid. */
398
468
bid_status : {
399
469
parameters : {
400
470
path : {
@@ -418,10 +488,7 @@ export interface operations {
418
488
} ;
419
489
} ;
420
490
} ;
421
- /**
422
- * Fetch all opportunities ready to be exectued.
423
- * @description Fetch all opportunities ready to be exectued.
424
- */
491
+ /** Fetch all opportunities ready to be exectued. */
425
492
get_opportunities : {
426
493
parameters : {
427
494
query ?: {
@@ -447,9 +514,7 @@ export interface operations {
447
514
} ;
448
515
/**
449
516
* Submit an opportunity ready to be executed.
450
- * @description Submit an opportunity ready to be executed.
451
- *
452
- * The opportunity will be verified by the server. If the opportunity is valid, it will be stored in the database
517
+ * @description The opportunity will be verified by the server. If the opportunity is valid, it will be stored in the database
453
518
* and will be available for bidding.
454
519
*/
455
520
post_opportunity : {
@@ -474,10 +539,7 @@ export interface operations {
474
539
} ;
475
540
} ;
476
541
} ;
477
- /**
478
- * Bid on opportunity
479
- * @description Bid on opportunity
480
- */
542
+ /** Bid on opportunity */
481
543
opportunity_bid : {
482
544
parameters : {
483
545
path : {
@@ -506,4 +568,17 @@ export interface operations {
506
568
} ;
507
569
} ;
508
570
} ;
571
+ /**
572
+ * Revoke the authenticated profile access token.
573
+ * @description Returns empty response.
574
+ */
575
+ delete_profile_access_token : {
576
+ responses : {
577
+ /** @description The token successfully revoked */
578
+ 200 : {
579
+ content : never ;
580
+ } ;
581
+ 400 : components [ "responses" ] [ "ErrorBodyResponse" ] ;
582
+ } ;
583
+ } ;
509
584
}
0 commit comments