Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 20 additions & 0 deletions packages/account-client/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
{
"name": "@hcengineering/account-client",
"entries": [
{
"version": "0.7.20",
"tag": "@hcengineering/account-client_v0.7.20",
"date": "Wed, 26 Nov 2025 15:28:11 GMT",
"comments": {
"patch": [
{
"comment": "Add password aging"
}
],
"dependency": [
{
"comment": "Updating dependency \"@hcengineering/core\" from `^0.7.22` to `0.7.23`"
},
{
"comment": "Updating dependency \"@hcengineering/platform\" from `^0.7.18` to `0.7.19`"
}
]
}
},
{
"version": "0.7.19",
"tag": "@hcengineering/account-client_v0.7.19",
Expand Down
9 changes: 8 additions & 1 deletion packages/account-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @hcengineering/account-client

This log was last generated on Thu, 30 Oct 2025 08:41:42 GMT and should not be manually modified.
This log was last generated on Wed, 26 Nov 2025 15:28:11 GMT and should not be manually modified.

## 0.7.20
Wed, 26 Nov 2025 15:28:11 GMT

### Patches

- Add password aging

## 0.7.19
Thu, 30 Oct 2025 08:41:42 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/account-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/account-client",
"version": "0.7.19",
"version": "0.7.20",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down Expand Up @@ -43,8 +43,8 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/core": "workspace:^0.7.22",
"@hcengineering/platform": "workspace:^0.7.18"
"@hcengineering/core": "workspace:^0.7.23",
"@hcengineering/platform": "workspace:^0.7.19"
},
"repository": "https://github.com/hcengineering/huly.core",
"publishConfig": {
Expand Down
20 changes: 20 additions & 0 deletions packages/account-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ export interface AccountClient {
addEmailSocialId: (email: string) => Promise<OtpInfo>
addHulyAssistantSocialId: () => Promise<PersonId>
refreshHulyAssistantToken: () => Promise<void>
updatePasswordAgingRule: (days: number) => Promise<void>
checkPasswordAging: () => Promise<boolean>

setMyProfile: (profile: Partial<Omit<UserProfile, 'personUuid'>>) => Promise<void>
getUserProfile: (personUuid?: PersonUuid) => Promise<PersonWithProfile | null>
Expand Down Expand Up @@ -508,6 +510,24 @@ class AccountClientImpl implements AccountClient {
await this.rpc(request)
}

async updatePasswordAgingRule (days: number): Promise<void> {
const request = {
method: 'updatePasswordAgingRule' as const,
params: { days }
}

await this.rpc(request)
}

async checkPasswordAging (): Promise<boolean> {
const request = {
method: 'checkPasswordAging' as const,
params: {}
}

return await this.rpc(request)
}

async signUpJoin (
email: string,
password: string,
Expand Down
1 change: 1 addition & 0 deletions packages/account-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface LoginInfoWorkspace {
role: AccountRole | null
progress?: number
branding?: string
passwordAgingRule?: number // in days
}

export interface LoginInfoWithWorkspaces extends LoginInfo {
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/platform": "workspace:^0.7.18",
"@hcengineering/core": "workspace:^0.7.22",
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/core": "workspace:^0.7.23",
"@hcengineering/analytics": "workspace:^0.7.17",
"@hcengineering/measurements-otlp": "workspace:^0.7.17",
"winston": "^3.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/platform": "workspace:^0.7.18"
"@hcengineering/platform": "workspace:^0.7.19"
},
"repository": "https://github.com/hcengineering/huly.core",
"publishConfig": {
Expand Down
10 changes: 5 additions & 5 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/account-client": "workspace:^0.7.19",
"@hcengineering/client": "workspace:^0.7.17",
"@hcengineering/client-resources": "workspace:^0.7.17",
"@hcengineering/account-client": "workspace:^0.7.20",
"@hcengineering/client": "workspace:^0.7.18",
"@hcengineering/client-resources": "workspace:^0.7.18",
"@hcengineering/collaborator-client": "workspace:^0.7.17",
"@hcengineering/core": "workspace:^0.7.22",
"@hcengineering/platform": "workspace:^0.7.18",
"@hcengineering/core": "workspace:^0.7.23",
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/text": "workspace:^0.7.18",
"@hcengineering/text-markdown": "workspace:^0.7.20",
"snappyjs": "^0.7.0"
Expand Down
31 changes: 31 additions & 0 deletions packages/client-resources/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
{
"name": "@hcengineering/client-resources",
"entries": [
{
"version": "0.7.18",
"tag": "@hcengineering/client-resources_v0.7.18",
"date": "Wed, 26 Nov 2025 15:28:11 GMT",
"comments": {
"patch": [
{
"comment": "Add password aging"
},
{
"comment": "Add support for custom exclude filters"
}
],
"none": [
{
"comment": "formatting"
}
],
"dependency": [
{
"comment": "Updating dependency \"@hcengineering/client\" from `^0.7.17` to `0.7.18`"
},
{
"comment": "Updating dependency \"@hcengineering/core\" from `^0.7.22` to `0.7.23`"
},
{
"comment": "Updating dependency \"@hcengineering/platform\" from `^0.7.18` to `0.7.19`"
}
]
}
},
{
"version": "0.7.17",
"tag": "@hcengineering/client-resources_v0.7.17",
Expand Down
10 changes: 9 additions & 1 deletion packages/client-resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log - @hcengineering/client-resources

This log was last generated on Mon, 27 Oct 2025 13:27:12 GMT and should not be manually modified.
This log was last generated on Wed, 26 Nov 2025 15:28:11 GMT and should not be manually modified.

## 0.7.18
Wed, 26 Nov 2025 15:28:11 GMT

### Patches

- Add password aging
- Add support for custom exclude filters

## 0.7.17
Mon, 27 Oct 2025 13:27:12 GMT
Expand Down
8 changes: 4 additions & 4 deletions packages/client-resources/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/client-resources",
"version": "0.7.17",
"version": "0.7.18",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down Expand Up @@ -45,9 +45,9 @@
},
"dependencies": {
"@hcengineering/analytics": "workspace:^0.7.17",
"@hcengineering/client": "workspace:^0.7.17",
"@hcengineering/core": "workspace:^0.7.22",
"@hcengineering/platform": "workspace:^0.7.18",
"@hcengineering/client": "workspace:^0.7.18",
"@hcengineering/core": "workspace:^0.7.23",
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/rpc": "workspace:^0.7.17",
"snappyjs": "^0.7.0"
},
Expand Down
14 changes: 3 additions & 11 deletions packages/client-resources/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import core, {
TxResult,
type WorkspaceUuid
} from '@hcengineering/core'
import platform, { getMetadata, PlatformError, Severity, Status, UNAUTHORIZED } from '@hcengineering/platform'
import platform, { getMetadata, PlatformError, Severity, Status } from '@hcengineering/platform'
import { HelloRequest, HelloResponse, type RateLimitInfo, ReqId, type Response, RPCHandler } from '@hcengineering/rpc'
import { uncompress } from 'snappyjs'

Expand Down Expand Up @@ -304,7 +304,7 @@ class Connection implements ClientConnection {
}

if (resp.error !== undefined) {
if (resp.error?.code === UNAUTHORIZED.code || resp.terminate === true) {
if (resp.terminate === true) {
if (
resp.error.code !== platform.status.WorkspaceArchived &&
resp.error.code !== platform.status.WorkspaceNotFound
Expand All @@ -313,15 +313,7 @@ class Connection implements ClientConnection {
}
this.closed = true
this.websocket?.close()
if (resp.error?.code === UNAUTHORIZED.code) {
this.opt?.onUnauthorized?.()
}
if (resp.error?.code === platform.status.WorkspaceArchived) {
this.opt?.onArchived?.()
}
if (resp.error?.code === platform.status.WorkspaceMigration) {
this.opt?.onMigration?.()
}
this.opt?.onError?.(resp.error.code)
}

if (resp.id !== undefined) {
Expand Down
23 changes: 23 additions & 0 deletions packages/client/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
{
"name": "@hcengineering/client",
"entries": [
{
"version": "0.7.18",
"tag": "@hcengineering/client_v0.7.18",
"date": "Wed, 26 Nov 2025 15:28:11 GMT",
"comments": {
"patch": [
{
"comment": "Add password aging"
},
{
"comment": "Add support for custom exclude filters"
}
],
"dependency": [
{
"comment": "Updating dependency \"@hcengineering/platform\" from `^0.7.18` to `0.7.19`"
},
{
"comment": "Updating dependency \"@hcengineering/core\" from `^0.7.22` to `0.7.23`"
}
]
}
},
{
"version": "0.7.17",
"tag": "@hcengineering/client_v0.7.17",
Expand Down
10 changes: 9 additions & 1 deletion packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log - @hcengineering/client

This log was last generated on Mon, 27 Oct 2025 13:27:12 GMT and should not be manually modified.
This log was last generated on Wed, 26 Nov 2025 15:28:11 GMT and should not be manually modified.

## 0.7.18
Wed, 26 Nov 2025 15:28:11 GMT

### Patches

- Add password aging
- Add support for custom exclude filters

## 0.7.17
Mon, 27 Oct 2025 13:27:12 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/client",
"version": "0.7.17",
"version": "0.7.18",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down Expand Up @@ -41,8 +41,8 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/platform": "workspace:^0.7.18",
"@hcengineering/core": "workspace:^0.7.22"
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/core": "workspace:^0.7.23"
},
"repository": "https://github.com/hcengineering/huly.core",
"publishConfig": {
Expand Down
6 changes: 2 additions & 4 deletions packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//

import type { Client, ClientConnectEvent, MeasureContext, TxPersistenceStore } from '@hcengineering/core'
import { type Plugin, type Resource, type Metadata, plugin } from '@hcengineering/platform'
import { type Metadata, type Plugin, plugin, type Resource, type StatusCode } from '@hcengineering/platform'

/**
* @public
Expand Down Expand Up @@ -61,9 +61,7 @@ export interface ClientFactoryOptions {
connectionTimeout?: number
onHello?: (serverVersion?: string) => boolean
onUpgrade?: () => void
onUnauthorized?: () => void
onArchived?: () => void
onMigration?: () => void
onError?: (err: StatusCode) => void
onConnect?: (event: ClientConnectEvent, lastTx: string | undefined, data: any) => Promise<void>
ctx?: MeasureContext
onDialTimeout?: () => void | Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion packages/collaborator-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-plugin-svelte": "^2.35.1"
},
"dependencies": {
"@hcengineering/core": "workspace:^0.7.22"
"@hcengineering/core": "workspace:^0.7.23"
},
"repository": "https://github.com/hcengineering/huly.core",
"publishConfig": {
Expand Down
Loading