Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit db0c945

Browse files
[bot]update openapi3 schema
1 parent abbe00d commit db0c945

File tree

1 file changed

+125
-22
lines changed

1 file changed

+125
-22
lines changed

api/build/core-openapi3.yaml

Lines changed: 125 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@ paths:
5252
explode: false
5353
responses:
5454
'202':
55-
description: '`202` and a key trial, if one still needs to be passed; `204`: Action executed'
55+
description: |-
56+
- `202` and a key trial, if one still needs to be passed
57+
- `204`: Action executed
5658
content:
5759
application/json:
5860
schema:
5961
$ref: '#/components/schemas/polyproto.core.models.KeyTrial'
6062
'204':
61-
description: '`202` and a key trial, if one still needs to be passed; `204`: Action executed'
63+
description: |-
64+
- `202` and a key trial, if one still needs to be passed
65+
- `204`: Action executed
6266
headers:
6367
Content-Length:
6468
required: true
@@ -78,8 +82,12 @@ paths:
7882
responses:
7983
'200':
8084
description: |-
81-
`202` and a key trial, if one still needs to be passed; `200` and the
82-
appropriate data if the key trial has been passed and is not yet expired.
85+
- `202` and a key trial, if one still needs to be passed
86+
- `200` and the appropriate data if the key trial has been passed and is not yet expired.
87+
- `204` if the server needs time to gather the data. A `Retry-After` header is included in
88+
the response, indicating to the actor the point in time at which they should query this
89+
endpoint again. If this point in time is after the expiry timestamp of the completed key trial,
90+
another key trial needs to be performed to access the data.
8391
Contains all data of the user.
8492
content:
8593
application/json:
@@ -116,13 +124,32 @@ paths:
116124
of the polyproto protocol.
117125
'202':
118126
description: |-
119-
`202` and a key trial, if one still needs to be passed; `200` and the
120-
appropriate data if the key trial has been passed and is not yet expired.
127+
- `202` and a key trial, if one still needs to be passed
128+
- `200` and the appropriate data if the key trial has been passed and is not yet expired.
129+
- `204` if the server needs time to gather the data. A `Retry-After` header is included in
130+
the response, indicating to the actor the point in time at which they should query this
131+
endpoint again. If this point in time is after the expiry timestamp of the completed key trial,
132+
another key trial needs to be performed to access the data.
121133
Contains all data of the user.
122134
content:
123135
application/json:
124136
schema:
125137
$ref: '#/components/schemas/polyproto.core.models.KeyTrial'
138+
'204':
139+
description: |-
140+
- `202` and a key trial, if one still needs to be passed
141+
- `200` and the appropriate data if the key trial has been passed and is not yet expired.
142+
- `204` if the server needs time to gather the data. A `Retry-After` header is included in
143+
the response, indicating to the actor the point in time at which they should query this
144+
endpoint again. If this point in time is after the expiry timestamp of the completed key trial,
145+
another key trial needs to be performed to access the data.
146+
Contains all data of the user.
147+
headers:
148+
Retry-After:
149+
required: true
150+
schema:
151+
type: integer
152+
format: uint64
126153
tags:
127154
- Migration - Registration not required
128155
security:
@@ -320,11 +347,20 @@ paths:
320347
parameters: []
321348
responses:
322349
'200':
323-
description: Returns `200` if the key trials were processed and deemed to be valid. Returns `202`, if the server needs additional time to process the key trials. 400 is received if one or more completed key trials were faulty. Contains faulty key trials in the response body.
350+
description: |-
351+
- `200` if the key trials were processed and deemed to be valid
352+
- `202`, if the server needs additional time to process the key trials
353+
- `400`, if one or more completed key trials were faulty. Contains faulty key trials in the response body.
324354
'202':
325-
description: Returns `200` if the key trials were processed and deemed to be valid. Returns `202`, if the server needs additional time to process the key trials. 400 is received if one or more completed key trials were faulty. Contains faulty key trials in the response body.
355+
description: |-
356+
- `200` if the key trials were processed and deemed to be valid
357+
- `202`, if the server needs additional time to process the key trials
358+
- `400`, if one or more completed key trials were faulty. Contains faulty key trials in the response body.
326359
'400':
327-
description: Returns `200` if the key trials were processed and deemed to be valid. Returns `202`, if the server needs additional time to process the key trials. 400 is received if one or more completed key trials were faulty. Contains faulty key trials in the response body.
360+
description: |-
361+
- `200` if the key trials were processed and deemed to be valid
362+
- `202`, if the server needs additional time to process the key trials
363+
- `400`, if one or more completed key trials were faulty. Contains faulty key trials in the response body.
328364
content:
329365
application/json:
330366
schema:
@@ -372,7 +408,10 @@ paths:
372408
explode: false
373409
responses:
374410
'200':
375-
description: '`204`: No keytrials found for specified actor; `404`: Specified actor not known; `200`: Completed key trials of requested actor'
411+
description: |-
412+
- `204`: No keytrials found for specified actor
413+
- `404`: Specified actor not known
414+
- `200`: Completed key trials of requested actor
376415
content:
377416
application/json:
378417
schema:
@@ -391,7 +430,10 @@ paths:
391430
- keyTrial
392431
- keyTrialCompletion
393432
'204':
394-
description: '`204`: No keytrials found for specified actor; `404`: Specified actor not known; `200`: Completed key trials of requested actor'
433+
description: |-
434+
- `204`: No keytrials found for specified actor
435+
- `404`: Specified actor not known
436+
- `200`: Completed key trials of requested actor
395437
headers:
396438
Content-Length:
397439
required: true
@@ -400,7 +442,10 @@ paths:
400442
enum:
401443
- 0
402444
'404':
403-
description: '`204`: No keytrials found for specified actor; `404`: Specified actor not known; `200`: Completed key trials of requested actor'
445+
description: |-
446+
- `204`: No keytrials found for specified actor
447+
- `404`: Specified actor not known
448+
- `200`: Completed key trials of requested actor
404449
tags:
405450
- Migration - Registration not required
406451
security:
@@ -420,7 +465,9 @@ paths:
420465
explode: false
421466
responses:
422467
'204':
423-
description: '`204`: Action executed; `404`: No re-signing request found for mentioned actor'
468+
description: |-
469+
- `204` Action executed
470+
- `404` No re-signing request found for mentioned actor
424471
headers:
425472
Content-Length:
426473
required: true
@@ -429,7 +476,9 @@ paths:
429476
enum:
430477
- 0
431478
'404':
432-
description: '`204`: Action executed; `404`: No re-signing request found for mentioned actor'
479+
description: |-
480+
- `204` Action executed
481+
- `404` No re-signing request found for mentioned actor
433482
tags:
434483
- Migration - Registration not required
435484
security:
@@ -441,7 +490,7 @@ paths:
441490
parameters: []
442491
responses:
443492
'200':
444-
description: Returns a key trial
493+
description: a key trial
445494
content:
446495
application/json:
447496
schema:
@@ -530,11 +579,26 @@ paths:
530579
parameters: []
531580
responses:
532581
'200':
533-
description: '`200` On success; `400` if re-signed messages are improperly formatted; `403` if messages have been modified where the original keys have not passed the key trial, if a key trial has not been passed at all or if the messages have been signed with keys that were not on the `allowedResigningKeys` list.'
582+
description: |-
583+
- `200` On success
584+
- `400` if re-signed messages are improperly formatted
585+
- `403` if messages have been modified where the original keys have not passed the key
586+
trial, if a key trial has not been passed at all or if the messages have been signed
587+
with keys that were not on the `allowedResigningKeys` list.
534588
'400':
535-
description: '`200` On success; `400` if re-signed messages are improperly formatted; `403` if messages have been modified where the original keys have not passed the key trial, if a key trial has not been passed at all or if the messages have been signed with keys that were not on the `allowedResigningKeys` list.'
589+
description: |-
590+
- `200` On success
591+
- `400` if re-signed messages are improperly formatted
592+
- `403` if messages have been modified where the original keys have not passed the key
593+
trial, if a key trial has not been passed at all or if the messages have been signed
594+
with keys that were not on the `allowedResigningKeys` list.
536595
'403':
537-
description: '`200` On success; `400` if re-signed messages are improperly formatted; `403` if messages have been modified where the original keys have not passed the key trial, if a key trial has not been passed at all or if the messages have been signed with keys that were not on the `allowedResigningKeys` list.'
596+
description: |-
597+
- `200` On success
598+
- `400` if re-signed messages are improperly formatted
599+
- `403` if messages have been modified where the original keys have not passed the key
600+
trial, if a key trial has not been passed at all or if the messages have been signed
601+
with keys that were not on the `allowedResigningKeys` list.
538602
tags:
539603
- Migration - Registration not required
540604
requestBody:
@@ -650,13 +714,17 @@ paths:
650714
parameters: []
651715
responses:
652716
'200':
653-
description: '`200` if the link has been created, `202` if the other account still needs to accept to establish the link. Returns a key trial'
717+
description: |-
718+
- `200` if the link has been created
719+
- `202` if the other account still needs to accept to establish the link. Contains a key trial
654720
content:
655721
application/json:
656722
schema:
657723
$ref: '#/components/schemas/polyproto.core.models.KeyTrial'
658724
'202':
659-
description: '`200` if the link has been created, `202` if the other account still needs to accept to establish the link. Returns a key trial'
725+
description: |-
726+
- `200` if the link has been created
727+
- `202` if the other account still needs to accept to establish the link. Contains a key trial
660728
content:
661729
application/json:
662730
schema:
@@ -707,9 +775,13 @@ paths:
707775
parameters: []
708776
responses:
709777
'200':
710-
description: '`200` if the link has been created, `202` if the other account still needs to accept to establish the link.'
778+
description: |-
779+
- `200` if the link has been created
780+
- `202` if the other account still needs to accept to establish the link.
711781
'202':
712-
description: '`200` if the link has been created, `202` if the other account still needs to accept to establish the link.'
782+
description: |-
783+
- `200` if the link has been created
784+
- `202` if the other account still needs to accept to establish the link.
713785
tags:
714786
- Migration - Registration not required
715787
requestBody:
@@ -1264,6 +1336,37 @@ components:
12641336
format: uint64
12651337
description: The serial number of the ID-Cert corresponding to the private identity key used to sign the key trial string.
12661338
description: A completed key trial, as an actor would send to the server.
1339+
polyproto.core.models.MessageBatchExample:
1340+
type: object
1341+
allOf:
1342+
- type: object
1343+
required:
1344+
- idCert
1345+
- messages
1346+
properties:
1347+
idCert:
1348+
type: string
1349+
description: The ID-Cert that the following messages' signatures correspond to.
1350+
messages:
1351+
type: array
1352+
items:
1353+
type: object
1354+
properties:
1355+
signature:
1356+
type: string
1357+
description: Signature of the whole message
1358+
content:
1359+
type: string
1360+
description: Arbitrary content `T`. This depends on the specific implementation or extension of the protocol.
1361+
required:
1362+
- signature
1363+
- content
1364+
description: The actual message.
1365+
description: |-
1366+
A message batch, as received from and sent to the server in the context of re-signing messages.
1367+
This type is generic over `T`, where `T` represents the content of the actual message. This
1368+
means, that the specific message content depends on the concrete implementation or extension
1369+
of the polyproto protocol.
12671370
polyproto.core.models.Service:
12681371
type: object
12691372
required:

0 commit comments

Comments
 (0)