@twin.org/identity-models 0.0.1-next.55 → 0.0.1-next.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ export * from "./models/api/identity/IIdentityProofCreateRequest";
7
7
  export * from "./models/api/identity/IIdentityProofCreateResponse";
8
8
  export * from "./models/api/identity/IIdentityProofVerifyRequest";
9
9
  export * from "./models/api/identity/IIdentityProofVerifyResponse";
10
+ export * from "./models/api/identity/IIdentityRemoveRequest";
10
11
  export * from "./models/api/identity/IIdentityServiceCreateRequest";
11
12
  export * from "./models/api/identity/IIdentityServiceCreateResponse";
12
13
  export * from "./models/api/identity/IIdentityServiceRemoveRequest";
@@ -12,6 +12,13 @@ export interface IIdentityComponent extends IComponent {
12
12
  * @returns The created identity document.
13
13
  */
14
14
  identityCreate(namespace?: string, controller?: string): Promise<IDidDocument>;
15
+ /**
16
+ * Remove an identity.
17
+ * @param identity The id of the document to remove.
18
+ * @param controller The controller of the identity who can make changes.
19
+ * @returns Nothing.
20
+ */
21
+ identityRemove(identity: string, controller?: string): Promise<void>;
15
22
  /**
16
23
  * Add a verification method to the document in JSON Web key Format.
17
24
  * @param identity The id of the document to add the verification method to.
@@ -11,6 +11,13 @@ export interface IIdentityConnector extends IComponent {
11
11
  * @returns The created document.
12
12
  */
13
13
  createDocument(controller: string): Promise<IDidDocument>;
14
+ /**
15
+ * Remove a document.
16
+ * @param controller The controller of the identity who can make changes.
17
+ * @param documentId The id of the document to remove.
18
+ * @returns Nothing.
19
+ */
20
+ removeDocument(controller: string, documentId: string): Promise<void>;
14
21
  /**
15
22
  * Add a verification method to the document in JSON Web key Format.
16
23
  * @param controller The controller of the identity who can make changes.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Request to remove an identity.
3
+ */
4
+ export interface IIdentityRemoveRequest {
5
+ /**
6
+ * The data for the request.
7
+ */
8
+ pathParams: {
9
+ /**
10
+ * The identity to remove.
11
+ */
12
+ identity: string;
13
+ };
14
+ }
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/identity-service-models - Changelog
2
2
 
3
+ ## [0.0.1-next.57](https://github.com/twinfoundation/identity/compare/identity-models-v0.0.1-next.56...identity-models-v0.0.1-next.57) (2025-07-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * add identity remove ([eebc13f](https://github.com/twinfoundation/identity/commit/eebc13f4c2cd994d2d9cce4da2128fb346c80ba7))
9
+
10
+ ## [0.0.1-next.56](https://github.com/twinfoundation/identity/compare/identity-models-v0.0.1-next.55...identity-models-v0.0.1-next.56) (2025-06-30)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **identity-models:** Synchronize repo versions
16
+
3
17
  ## [0.0.1-next.55](https://github.com/twinfoundation/identity/compare/identity-models-v0.0.1-next.54...identity-models-v0.0.1-next.55) (2025-06-26)
4
18
 
5
19
 
@@ -19,6 +19,7 @@
19
19
  - [IIdentityProofCreateResponse](interfaces/IIdentityProofCreateResponse.md)
20
20
  - [IIdentityProofVerifyRequest](interfaces/IIdentityProofVerifyRequest.md)
21
21
  - [IIdentityProofVerifyResponse](interfaces/IIdentityProofVerifyResponse.md)
22
+ - [IIdentityRemoveRequest](interfaces/IIdentityRemoveRequest.md)
22
23
  - [IIdentityServiceCreateRequest](interfaces/IIdentityServiceCreateRequest.md)
23
24
  - [IIdentityServiceCreateResponse](interfaces/IIdentityServiceCreateResponse.md)
24
25
  - [IIdentityServiceRemoveRequest](interfaces/IIdentityServiceRemoveRequest.md)
@@ -36,6 +36,34 @@ The created identity document.
36
36
 
37
37
  ***
38
38
 
39
+ ### identityRemove()
40
+
41
+ > **identityRemove**(`identity`, `controller?`): `Promise`\<`void`\>
42
+
43
+ Remove an identity.
44
+
45
+ #### Parameters
46
+
47
+ ##### identity
48
+
49
+ `string`
50
+
51
+ The id of the document to remove.
52
+
53
+ ##### controller?
54
+
55
+ `string`
56
+
57
+ The controller of the identity who can make changes.
58
+
59
+ #### Returns
60
+
61
+ `Promise`\<`void`\>
62
+
63
+ Nothing.
64
+
65
+ ***
66
+
39
67
  ### verificationMethodCreate()
40
68
 
41
69
  > **verificationMethodCreate**(`identity`, `verificationMethodType`, `verificationMethodId?`, `controller?`): `Promise`\<`IDidDocumentVerificationMethod`\>
@@ -30,6 +30,34 @@ The created document.
30
30
 
31
31
  ***
32
32
 
33
+ ### removeDocument()
34
+
35
+ > **removeDocument**(`controller`, `documentId`): `Promise`\<`void`\>
36
+
37
+ Remove a document.
38
+
39
+ #### Parameters
40
+
41
+ ##### controller
42
+
43
+ `string`
44
+
45
+ The controller of the identity who can make changes.
46
+
47
+ ##### documentId
48
+
49
+ `string`
50
+
51
+ The id of the document to remove.
52
+
53
+ #### Returns
54
+
55
+ `Promise`\<`void`\>
56
+
57
+ Nothing.
58
+
59
+ ***
60
+
33
61
  ### addVerificationMethod()
34
62
 
35
63
  > **addVerificationMethod**(`controller`, `documentId`, `verificationMethodType`, `verificationMethodId?`): `Promise`\<`IDidDocumentVerificationMethod`\>
@@ -0,0 +1,17 @@
1
+ # Interface: IIdentityRemoveRequest
2
+
3
+ Request to remove an identity.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The data for the request.
12
+
13
+ #### identity
14
+
15
+ > **identity**: `string`
16
+
17
+ The identity to remove.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-models",
3
- "version": "0.0.1-next.55",
3
+ "version": "0.0.1-next.57",
4
4
  "description": "Models which define the structure of the contracts and connectors",
5
5
  "repository": {
6
6
  "type": "git",