Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
06a7265
feat: add last did sync entity
JGiter Nov 6, 2024
ab6ac6b
feat: incremental document sync
JGiter Nov 6, 2024
ddc1385
fix: use did update job type
JGiter Nov 6, 2024
11d8fc3
chore: sync doc comment
JGiter Nov 6, 2024
059ab64
fix: did service spec
JGiter Nov 6, 2024
434e276
refactor: rename latest did sync
JGiter Nov 6, 2024
c0a505d
refactor: add changed identities in interval
JGiter Nov 7, 2024
794fdb9
feat: add did sync status entity
JGiter Nov 8, 2024
caf24c4
feat: set document sync status
JGiter Nov 8, 2024
28004ab
test: did service
JGiter Nov 8, 2024
13931b5
feat: inject did sync status
JGiter Nov 8, 2024
f5b2497
refactor: mark stale documents
JGiter Nov 8, 2024
59fde46
fix: dont duplicate update doc job
JGiter Nov 8, 2024
2e93fe8
fix: did_status_entity.document
JGiter Nov 12, 2024
3db2d60
fix: update doc transactionally
JGiter Nov 12, 2024
876a9aa
fix: did sync status migration
JGiter Nov 12, 2024
a0ca11a
test: did service
JGiter Nov 12, 2024
434daf0
refactor: query changed did on db
JGiter Nov 19, 2024
a8e385c
feat: limit max synced docs
JGiter Nov 19, 2024
698481b
fix: fetch sync status with doc
JGiter Nov 19, 2024
abd8394
feat: catch failed sync
JGiter Nov 19, 2024
02ff576
docs: incremental sync
JGiter Nov 19, 2024
f178b6f
feat: migrate did sync status
JGiter Nov 19, 2024
5776eef
fix: did sync status column names
JGiter Nov 19, 2024
259bc20
fix: synced block
JGiter Nov 20, 2024
320c201
fix: use logger
JGiter Nov 20, 2024
43420ae
fix: mark if changed dids not empty
JGiter Nov 20, 2024
6c782ee
fix: commit synced doc tx
JGiter Nov 20, 2024
cd36d5d
fix: save status on new did
JGiter Nov 20, 2024
7dfb039
test: did service
JGiter Nov 20, 2024
3c78b7d
fix: save new sync status
JGiter Nov 20, 2024
bae1059
refactor: upsert status on did update
JGiter Nov 21, 2024
dbc1f63
feat: create status if not found in sync
JGiter Nov 21, 2024
2e3008e
chore: discard tx mark stale
JGiter Nov 21, 2024
d62cf66
chore: log failed sync
JGiter Nov 21, 2024
154fa9d
test: did service
JGiter Nov 21, 2024
41cfd4d
docs: getChangedIdentities
JGiter Nov 22, 2024
22f0468
fix(logger.service): disable digits redactor (#675)
jrhender Dec 12, 2024
53fceb4
docs: update doc job id
JGiter May 22, 2025
bec3901
chore: get change identities comment
JGiter May 22, 2025
8bb2e3e
chore: disable ipfs cluster tests
JGiter May 22, 2025
4177c78
chore: disable zipcode redactor
JGiter May 22, 2025
8785053
chore: rm unused cached doc
JGiter May 26, 2025
9940742
chore: rm pin claim types
JGiter May 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ___
| :------ | :------ |
| `assetId` | `string` |
| `«destructured»` | `Object` |
| › `order` | ``"ASC"`` \| ``"DESC"`` |
| › `order` | ``"DESC"`` \| ``"ASC"`` |
| › `skip` | `number` |
| › `take` | `number` |
| › `type` | [`AssetHistoryEventType`](../enums/modules_assets_assets_event.AssetHistoryEventType.md) |
Expand Down
223 changes: 0 additions & 223 deletions docs/api/classes/modules_auth_login_strategy.AuthStrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@

- [constructor](modules_auth_login_strategy.AuthStrategy.md#constructor)

### Methods

- [authenticate](modules_auth_login_strategy.AuthStrategy.md#authenticate)
- [decodeToken](modules_auth_login_strategy.AuthStrategy.md#decodetoken)
- [didUnification](modules_auth_login_strategy.AuthStrategy.md#didunification)
- [extractSiwe](modules_auth_login_strategy.AuthStrategy.md#extractsiwe)
- [extractToken](modules_auth_login_strategy.AuthStrategy.md#extracttoken)
- [getRoleDefinition](modules_auth_login_strategy.AuthStrategy.md#getroledefinition)
- [isEIP191TokenPayload](modules_auth_login_strategy.AuthStrategy.md#iseip191tokenpayload)
- [isSiweMessagePayload](modules_auth_login_strategy.AuthStrategy.md#issiwemessagepayload)
- [validate](modules_auth_login_strategy.AuthStrategy.md#validate)
- [verifyIssuer](modules_auth_login_strategy.AuthStrategy.md#verifyissuer)

## Constructors

### constructor
Expand All @@ -46,213 +33,3 @@
#### Overrides

PassportStrategy(LoginStrategy, 'login').constructor

## Methods

### authenticate

▸ **authenticate**(`req`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `req` | `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\> |

#### Returns

`void`

#### Inherited from

PassportStrategy(LoginStrategy, 'login').authenticate

___

### decodeToken

▸ **decodeToken**<`T`\>(`token`, `options?`): `T`

#### Type parameters

| Name |
| :------ |
| `T` |

#### Parameters

| Name | Type |
| :------ | :------ |
| `token` | `string` |
| `options?` | `DecodeOptions` |

#### Returns

`T`

#### Inherited from

PassportStrategy(LoginStrategy, 'login').decodeToken

___

### didUnification

▸ **didUnification**(`did`): `string`

#### Parameters

| Name | Type |
| :------ | :------ |
| `did` | `string` |

#### Returns

`string`

#### Inherited from

PassportStrategy(LoginStrategy, 'login').didUnification

___

### extractSiwe

▸ **extractSiwe**(`req`): `SiweReqPayload`

#### Parameters

| Name | Type |
| :------ | :------ |
| `req` | `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\> |

#### Returns

`SiweReqPayload`

#### Inherited from

PassportStrategy(LoginStrategy, 'login').extractSiwe

___

### extractToken

▸ **extractToken**(`req`): `string`

#### Parameters

| Name | Type |
| :------ | :------ |
| `req` | `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\> |

#### Returns

`string`

#### Inherited from

PassportStrategy(LoginStrategy, 'login').extractToken

___

### getRoleDefinition

▸ **getRoleDefinition**(`namespace`): `Promise`<`IRoleDefinitionV2`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `namespace` | `string` |

#### Returns

`Promise`<`IRoleDefinitionV2`\>

#### Inherited from

PassportStrategy(LoginStrategy, 'login').getRoleDefinition

___

### isEIP191TokenPayload

▸ **isEIP191TokenPayload**(`payload`): payload is ITokenPayload

#### Parameters

| Name | Type |
| :------ | :------ |
| `payload` | `unknown` |

#### Returns

payload is ITokenPayload

#### Inherited from

PassportStrategy(LoginStrategy, 'login').isEIP191TokenPayload

___

### isSiweMessagePayload

▸ **isSiweMessagePayload**(`payload`): payload is Partial<SiweMessage\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `payload` | `unknown` |

#### Returns

payload is Partial<SiweMessage\>

#### Inherited from

PassportStrategy(LoginStrategy, 'login').isSiweMessagePayload

___

### validate

▸ **validate**(`token`, `payload`, `done`): `Promise`<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `token` | `string` |
| `payload` | `Partial`<`SiweMessage`\> \| `ITokenPayload` |
| `done` | (`err?`: `Error`, `user?`: `unknown`, `info?`: `unknown`) => `void` |

#### Returns

`Promise`<`void`\>

#### Inherited from

PassportStrategy(LoginStrategy, 'login').validate

___

### verifyIssuer

▸ **verifyIssuer**(`issuer`, `role`): `Promise`<`VerificationResult`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `issuer` | `string` |
| `role` | `string` |

#### Returns

`Promise`<`VerificationResult`\>

#### Inherited from

PassportStrategy(LoginStrategy, 'login').verifyIssuer
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Class: DidSyncStatusEntity

[modules/did/didSyncStatus.entity](../modules/modules_did_didSyncStatus_entity.md).DidSyncStatusEntity

## Table of contents

### Constructors

- [constructor](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md#constructor)

### Properties

- [createdDate](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md#createddate)
- [document](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md#document)
- [id](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md#id)
- [status](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md#status)

## Constructors

### constructor

• **new DidSyncStatusEntity**()

## Properties

### createdDate

• **createdDate**: `Date`

___

### document

• **document**: [`DIDDocumentEntity`](modules_did_did_entity.DIDDocumentEntity.md)

___

### id

• **id**: `number`

___

### status

• **status**: [`DidSyncStatus`](../enums/modules_did_did_types.DidSyncStatus.md)
15 changes: 7 additions & 8 deletions docs/api/classes/modules_did_did_processor.DIDProcessor.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

### constructor

• **new DIDProcessor**(`didService`, `logger`, `configService`, `pinQueue`)
• **new DIDProcessor**(`didService`, `logger`, `configService`)

#### Parameters

Expand All @@ -31,19 +31,18 @@
| `didService` | [`DIDService`](modules_did_did_service.DIDService.md) |
| `logger` | [`Logger`](modules_logger_logger_service.Logger.md) |
| `configService` | `ConfigService`<`Record`<`string`, `unknown`\>, ``false``\> |
| `pinQueue` | `Queue`<[`PinClaimData`](../modules/modules_ipfs_ipfs_types.md#pinclaimdata)\> |

## Methods

### OnQueueWaiting

▸ **OnQueueWaiting**(`job`): `Promise`<`void`\>
▸ **OnQueueWaiting**(`jobId`): `Promise`<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `job` | `Job`<`any`\> |
| `jobId` | `number` |

#### Returns

Expand All @@ -59,7 +58,7 @@ ___

| Name | Type |
| :------ | :------ |
| `job` | `Job`<`any`\> |
| `job` | `Job`<[`UpdateDocumentJobData`](../modules/modules_did_did_types.md#updatedocumentjobdata)\> |

#### Returns

Expand Down Expand Up @@ -91,7 +90,7 @@ ___

| Name | Type |
| :------ | :------ |
| `job` | `Job`<`any`\> |
| `job` | `Job`<[`UpdateDocumentJobData`](../modules/modules_did_did_types.md#updatedocumentjobdata)\> |

#### Returns

Expand All @@ -107,7 +106,7 @@ ___

| Name | Type |
| :------ | :------ |
| `job` | `Job`<`any`\> |
| `job` | `Job`<[`UpdateDocumentJobData`](../modules/modules_did_did_types.md#updatedocumentjobdata)\> |

#### Returns

Expand Down Expand Up @@ -139,7 +138,7 @@ ___

| Name | Type |
| :------ | :------ |
| `job` | `Job`<`string`\> |
| `job` | `Job`<[`UpdateDocumentJobData`](../modules/modules_did_did_types.md#updatedocumentjobdata)\> |

#### Returns

Expand Down
7 changes: 5 additions & 2 deletions docs/api/classes/modules_did_did_service.DIDService.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

### constructor

• **new DIDService**(`config`, `schedulerRegistry`, `httpService`, `didQueue`, `logger`, `didRepository`, `provider`, `sentryTracingService`, `registrySettings`, `ipfsService`)
• **new DIDService**(`config`, `schedulerRegistry`, `httpService`, `didQueue`, `logger`, `didRepository`, `provider`, `sentryTracingService`, `registrySettings`, `ipfsService`, `latestDidSyncRepository`, `didSyncStatusRepository`, `dataSource`)

#### Parameters

Expand All @@ -37,13 +37,16 @@
| `config` | `ConfigService`<`Record`<`string`, `unknown`\>, ``false``\> |
| `schedulerRegistry` | `SchedulerRegistry` |
| `httpService` | `HttpService` |
| `didQueue` | `Queue`<`string`\> |
| `didQueue` | `Queue`<[`UpdateDocumentJobData`](../modules/modules_did_did_types.md#updatedocumentjobdata)\> |
| `logger` | [`Logger`](modules_logger_logger_service.Logger.md) |
| `didRepository` | `Repository`<[`DIDDocumentEntity`](modules_did_did_entity.DIDDocumentEntity.md)\> |
| `provider` | [`Provider`](common_provider.Provider.md) |
| `sentryTracingService` | [`SentryTracingService`](modules_sentry_sentry_tracing_service.SentryTracingService.md) |
| `registrySettings` | `RegistrySettings` |
| `ipfsService` | [`IPFSService`](modules_ipfs_ipfs_service.IPFSService.md) |
| `latestDidSyncRepository` | `Repository`<[`LatestDidSync`](modules_did_latestDidSync_entity.LatestDidSync.md)\> |
| `didSyncStatusRepository` | `Repository`<[`DidSyncStatusEntity`](modules_did_didSyncStatus_entity.DidSyncStatusEntity.md)\> |
| `dataSource` | `DataSource` |

## Methods

Expand Down
Loading
Loading