19
19
/.p2/core/v1/data :
20
20
delete :
21
21
operationId : Unregistered_deleteData
22
- summary : Delete own actor data from the sever
22
+ summary : Delete own actor data from the server
23
23
description : |-
24
24
Delete all data associated with you from the server. Only deletes data associated with the
25
25
keys for which the `KeyTrial` has been passed.
@@ -37,9 +37,12 @@ paths:
37
37
- name : X-P2-core-keytrial
38
38
in : header
39
39
required : true
40
- description : A completed `KeyTrial`.
40
+ description : A list of completed `KeyTrial`s .
41
41
schema :
42
- $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
42
+ type : array
43
+ items :
44
+ $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
45
+ style : simple
43
46
responses :
44
47
' 204 ' :
45
48
description : ' - `204`: Action executed'
@@ -373,14 +376,19 @@ paths:
373
376
post :
374
377
operationId : Unregistered_requestAllowResigning
375
378
summary : Request message re-signing
376
- description : Request allowing message re-signing. To fulfill this action, a key trial must be passed.
379
+ description : |-
380
+ Request allowing message re-signing. To fulfill this action, a key trial must be passed.
381
+ Unlocks message re-signing for messages signed with keys for which a key trial has been passed.
377
382
parameters :
378
383
- name : X-P2-core-keytrial
379
384
in : header
380
385
required : true
381
- description : A completed `KeyTrial`.
386
+ description : A list of completed `KeyTrial`s .
382
387
schema :
383
- $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
388
+ type : array
389
+ items :
390
+ $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
391
+ style : simple
384
392
responses :
385
393
' 200 ' :
386
394
description : The request has succeeded.
@@ -654,16 +662,19 @@ paths:
654
662
This specific route is called by the "old" actor, notifying the server about their intent
655
663
to move to another home server. To fulfill this action,
656
664
657
- 1. A key trial must be passed
658
- // TODO: Must it? If yes, specify for which cert(s) ^
665
+ 1. A key trial must be passed for all keys with which the actor has sent messages with
666
+ on this server.
659
667
2. The "new" actor named in this request must confirm setting up this redirect.
660
668
parameters :
661
669
- name : X-P2-core-keytrial
662
670
in : header
663
671
required : true
664
- description : A completed `KeyTrial`.
672
+ description : A list of completed `KeyTrial`s .
665
673
schema :
666
- $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
674
+ type : array
675
+ items :
676
+ $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
677
+ style : simple
667
678
responses :
668
679
' 200 ' :
669
680
description : |-
@@ -687,9 +698,7 @@ paths:
687
698
delete :
688
699
operationId : Registered_removeRedirect
689
700
summary : Remove a redirect for migrating identities
690
- description : |-
691
- Stop an in-progress or existing redirection process. Requires a completed key trial.
692
- // TODO: Does it? ^ If yes, specify for which cert(s)
701
+ description : Stop an in-progress or existing redirection process.
693
702
parameters :
694
703
- name : removeActorFid
695
704
in : query
@@ -698,19 +707,16 @@ paths:
698
707
schema :
699
708
type : string
700
709
explode : false
701
- - name : X-P2-core-keytrial
702
- in : header
703
- required : true
704
- description : A completed `KeyTrial`.
705
- schema :
706
- $ref : ' #/components/schemas/polyproto.core.models.KeyTrialCompleted'
707
710
responses :
708
- ' 200 ' :
709
- description : The request has succeeded.
710
- content :
711
- application/json :
711
+ ' 204 ' :
712
+ description : ' There is no content to send for this request, but the headers may be useful. '
713
+ headers :
714
+ Content-Length :
715
+ required : true
712
716
schema :
713
- $ref : ' #/components/schemas/polyproto.core.models.KeyTrial'
717
+ type : number
718
+ enum :
719
+ - 0
714
720
' 400 ' :
715
721
description : The server could not understand the request due to invalid syntax.
716
722
tags :
@@ -1691,19 +1697,13 @@ components:
1691
1697
type : object
1692
1698
required :
1693
1699
- trial
1694
- - id
1695
1700
- expires
1696
1701
properties :
1697
1702
trial :
1698
1703
type : string
1699
1704
minLength : 32
1700
1705
maxLength : 256
1701
1706
description : The key trial, which the client should sign with their private identity key.
1702
- id :
1703
- type : string
1704
- minLength : 1
1705
- maxLength : 256
1706
- description : A unique identifying string to differentiate this specific key trial from other key trials that may be open at the same time.
1707
1707
expires :
1708
1708
type : integer
1709
1709
format : uint64
@@ -1717,15 +1717,11 @@ components:
1717
1717
type : object
1718
1718
required :
1719
1719
- signature
1720
- - id
1721
1720
- serial_number
1722
1721
properties :
1723
1722
signature :
1724
1723
type : string
1725
1724
description : The signature produced by signing the key trial string using a private identity key.
1726
- id :
1727
- type : string
1728
- description : The unique identifying string, differentiating this specific key trial from other key trials that may be open at the same time.
1729
1725
serial_number :
1730
1726
type : integer
1731
1727
format : uint64
0 commit comments