@librechat/data-schemas 0.0.40 → 0.0.42
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.
- package/dist/index.cjs +4810 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +4783 -283
- package/dist/index.es.js.map +1 -1
- package/dist/types/admin/capabilities.d.ts +71 -0
- package/dist/types/admin/index.d.ts +1 -0
- package/dist/types/app/index.d.ts +1 -0
- package/dist/types/app/resolution.d.ts +13 -0
- package/dist/types/config/tenantContext.d.ts +20 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/methods/aclEntry.d.ts +10 -1
- package/dist/types/methods/action.d.ts +34 -0
- package/dist/types/methods/agent.d.ts +89 -0
- package/dist/types/methods/assistant.d.ts +39 -0
- package/dist/types/methods/banner.d.ts +31 -0
- package/dist/types/methods/categories.d.ts +34 -0
- package/dist/types/methods/config.d.ts +39 -0
- package/dist/types/methods/conversation.d.ts +82 -0
- package/dist/types/methods/conversationTag.d.ts +93 -0
- package/dist/types/methods/index.d.ts +35 -4
- package/dist/types/methods/memory.d.ts +1 -0
- package/dist/types/methods/message.d.ts +77 -0
- package/dist/types/methods/preset.d.ts +88 -0
- package/dist/types/methods/prompt.d.ts +410 -0
- package/dist/types/methods/role.d.ts +13 -1
- package/dist/types/methods/spendTokens.d.ts +63 -0
- package/dist/types/methods/systemGrant.d.ts +59 -0
- package/dist/types/methods/test-helpers.d.ts +18 -0
- package/dist/types/methods/toolCall.d.ts +82 -0
- package/dist/types/methods/transaction.d.ts +67 -13
- package/dist/types/methods/tx.d.ts +108 -0
- package/dist/types/methods/userGroup.d.ts +6 -0
- package/dist/types/migrations/index.d.ts +1 -0
- package/dist/types/migrations/tenantIndexes.d.ts +52 -0
- package/dist/types/models/accessRole.d.ts +0 -3
- package/dist/types/models/aclEntry.d.ts +0 -3
- package/dist/types/models/action.d.ts +0 -3
- package/dist/types/models/agent.d.ts +0 -3
- package/dist/types/models/agentCategory.d.ts +0 -3
- package/dist/types/models/assistant.d.ts +0 -3
- package/dist/types/models/balance.d.ts +0 -3
- package/dist/types/models/banner.d.ts +0 -3
- package/dist/types/models/{project.d.ts → config.d.ts} +1 -4
- package/dist/types/models/conversationTag.d.ts +0 -3
- package/dist/types/models/convo.d.ts +0 -3
- package/dist/types/models/file.d.ts +0 -3
- package/dist/types/models/group.d.ts +0 -3
- package/dist/types/models/index.d.ts +2 -1
- package/dist/types/models/key.d.ts +0 -3
- package/dist/types/models/mcpServer.d.ts +0 -3
- package/dist/types/models/message.d.ts +0 -3
- package/dist/types/models/pluginAuth.d.ts +0 -3
- package/dist/types/models/plugins/tenantIsolation.d.ts +38 -0
- package/dist/types/models/preset.d.ts +0 -3
- package/dist/types/models/prompt.d.ts +0 -3
- package/dist/types/models/promptGroup.d.ts +0 -3
- package/dist/types/models/role.d.ts +0 -3
- package/dist/types/models/session.d.ts +0 -3
- package/dist/types/models/sharedLink.d.ts +0 -3
- package/dist/types/models/systemGrant.d.ts +33 -0
- package/dist/types/models/token.d.ts +0 -3
- package/dist/types/models/toolCall.d.ts +0 -3
- package/dist/types/models/transaction.d.ts +0 -3
- package/dist/types/models/user.d.ts +0 -3
- package/dist/types/schema/agentApiKey.d.ts +1 -0
- package/dist/types/schema/banner.d.ts +1 -0
- package/dist/types/schema/categories.d.ts +1 -0
- package/dist/types/schema/{project.d.ts → config.d.ts} +9 -13
- package/dist/types/schema/conversationTag.d.ts +1 -0
- package/dist/types/schema/index.d.ts +2 -1
- package/dist/types/schema/key.d.ts +1 -0
- package/dist/types/schema/preset.d.ts +1 -0
- package/dist/types/schema/share.d.ts +1 -0
- package/dist/types/schema/systemGrant.d.ts +39 -0
- package/dist/types/schema/toolCall.d.ts +1 -0
- package/dist/types/schema/transaction.d.ts +1 -0
- package/dist/types/types/accessRole.d.ts +1 -0
- package/dist/types/types/aclEntry.d.ts +1 -0
- package/dist/types/types/action.d.ts +1 -0
- package/dist/types/types/admin.d.ts +98 -0
- package/dist/types/types/agent.d.ts +3 -5
- package/dist/types/types/agentApiKey.d.ts +1 -0
- package/dist/types/types/agentCategory.d.ts +1 -0
- package/dist/types/types/app.d.ts +3 -1
- package/dist/types/types/assistant.d.ts +1 -0
- package/dist/types/types/balance.d.ts +11 -0
- package/dist/types/types/banner.d.ts +1 -0
- package/dist/types/types/config.d.ts +58 -0
- package/dist/types/types/convo.d.ts +1 -0
- package/dist/types/types/file.d.ts +1 -0
- package/dist/types/types/group.d.ts +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/mcp.d.ts +1 -0
- package/dist/types/types/memory.d.ts +1 -0
- package/dist/types/types/message.d.ts +7 -2
- package/dist/types/types/pluginAuth.d.ts +1 -0
- package/dist/types/types/prompts.d.ts +2 -1
- package/dist/types/types/role.d.ts +1 -0
- package/dist/types/types/session.d.ts +1 -0
- package/dist/types/types/systemGrant.d.ts +47 -0
- package/dist/types/types/token.d.ts +2 -0
- package/dist/types/types/user.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/principal.d.ts +34 -0
- package/dist/types/utils/retry.d.ts +41 -0
- package/dist/types/utils/string.d.ts +4 -0
- package/dist/types/utils/tempChatRetention.d.ts +25 -0
- package/package.json +1 -1
- package/dist/types/app/web.spec.d.ts +0 -1
- package/dist/types/methods/accessRole.spec.d.ts +0 -1
- package/dist/types/methods/aclEntry.spec.d.ts +0 -1
- package/dist/types/methods/file.spec.d.ts +0 -1
- package/dist/types/methods/mcpServer.spec.d.ts +0 -1
- package/dist/types/methods/token.spec.d.ts +0 -1
- package/dist/types/methods/user.methods.spec.d.ts +0 -1
- package/dist/types/methods/userGroup.methods.spec.d.ts +0 -1
- package/dist/types/methods/userGroup.roles.spec.d.ts +0 -1
- package/dist/types/methods/userGroup.spec.d.ts +0 -1
- package/dist/types/models/plugins/mongoMeili.spec.d.ts +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { PrincipalType, PrincipalModel } from 'librechat-data-provider';
|
|
27
|
+
import type { TCustomConfig } from 'librechat-data-provider';
|
|
28
|
+
import type { Document, Types } from 'mongoose';
|
|
29
|
+
/**
|
|
30
|
+
* Configuration override for a principal (user, group, or role).
|
|
31
|
+
* Stores partial overrides at the TCustomConfig (YAML) level,
|
|
32
|
+
* which are merged with the base config before processing through AppService.
|
|
33
|
+
*/
|
|
34
|
+
export type Config = {
|
|
35
|
+
/** The type of principal (user, group, role) */
|
|
36
|
+
principalType: PrincipalType;
|
|
37
|
+
/** The ID of the principal (ObjectId for users/groups, string for roles) */
|
|
38
|
+
principalId: Types.ObjectId | string;
|
|
39
|
+
/** The model name for the principal */
|
|
40
|
+
principalModel: PrincipalModel;
|
|
41
|
+
/** Priority level for determining merge order (higher = more specific) */
|
|
42
|
+
priority: number;
|
|
43
|
+
/** Configuration overrides matching librechat.yaml structure */
|
|
44
|
+
overrides: Partial<TCustomConfig>;
|
|
45
|
+
/** Whether this config override is currently active */
|
|
46
|
+
isActive: boolean;
|
|
47
|
+
/** Version number for cache invalidation, auto-increments on overrides change */
|
|
48
|
+
configVersion: number;
|
|
49
|
+
/** Tenant identifier for multi-tenancy isolation */
|
|
50
|
+
tenantId?: string;
|
|
51
|
+
/** When this config was created */
|
|
52
|
+
createdAt?: Date;
|
|
53
|
+
/** When this config was last updated */
|
|
54
|
+
updatedAt?: Date;
|
|
55
|
+
};
|
|
56
|
+
export type IConfig = Config & Document & {
|
|
57
|
+
_id: Types.ObjectId;
|
|
58
|
+
};
|
|
@@ -47,6 +47,9 @@ export * from './memory';
|
|
|
47
47
|
export * from './prompts';
|
|
48
48
|
export * from './accessRole';
|
|
49
49
|
export * from './aclEntry';
|
|
50
|
+
export * from './systemGrant';
|
|
50
51
|
export * from './group';
|
|
52
|
+
export * from './config';
|
|
53
|
+
export * from './admin';
|
|
51
54
|
export * from './web';
|
|
52
55
|
export * from './mcp';
|
|
@@ -34,7 +34,7 @@ export interface IMessage extends Document {
|
|
|
34
34
|
conversationSignature?: string;
|
|
35
35
|
clientId?: string;
|
|
36
36
|
invocationId?: number;
|
|
37
|
-
parentMessageId?: string;
|
|
37
|
+
parentMessageId?: string | null;
|
|
38
38
|
tokenCount?: number;
|
|
39
39
|
summaryTokenCount?: number;
|
|
40
40
|
sender?: string;
|
|
@@ -62,8 +62,13 @@ export interface IMessage extends Document {
|
|
|
62
62
|
iconURL?: string;
|
|
63
63
|
addedConvo?: boolean;
|
|
64
64
|
metadata?: Record<string, unknown>;
|
|
65
|
+
contextMeta?: {
|
|
66
|
+
calibrationRatio?: number;
|
|
67
|
+
encoding?: string;
|
|
68
|
+
};
|
|
65
69
|
attachments?: unknown[];
|
|
66
|
-
expiredAt?: Date;
|
|
70
|
+
expiredAt?: Date | null;
|
|
67
71
|
createdAt?: Date;
|
|
68
72
|
updatedAt?: Date;
|
|
73
|
+
tenantId?: string;
|
|
69
74
|
}
|
|
@@ -31,13 +31,13 @@ export interface IPrompt extends Document {
|
|
|
31
31
|
type: 'text' | 'chat';
|
|
32
32
|
createdAt?: Date;
|
|
33
33
|
updatedAt?: Date;
|
|
34
|
+
tenantId?: string;
|
|
34
35
|
}
|
|
35
36
|
export interface IPromptGroup {
|
|
36
37
|
name: string;
|
|
37
38
|
numberOfGenerations: number;
|
|
38
39
|
oneliner: string;
|
|
39
40
|
category: string;
|
|
40
|
-
projectIds: Types.ObjectId[];
|
|
41
41
|
productionId: Types.ObjectId;
|
|
42
42
|
author: Types.ObjectId;
|
|
43
43
|
authorName: string;
|
|
@@ -45,6 +45,7 @@ export interface IPromptGroup {
|
|
|
45
45
|
createdAt?: Date;
|
|
46
46
|
updatedAt?: Date;
|
|
47
47
|
isPublic?: boolean;
|
|
48
|
+
tenantId?: string;
|
|
48
49
|
}
|
|
49
50
|
export interface IPromptGroupDocument extends IPromptGroup, Document {
|
|
50
51
|
}
|
|
@@ -29,6 +29,7 @@ import { CursorPaginationParams } from '~/common';
|
|
|
29
29
|
export interface IRole extends Document {
|
|
30
30
|
name: string;
|
|
31
31
|
permissions: {};
|
|
32
|
+
tenantId?: string;
|
|
32
33
|
}
|
|
33
34
|
export type RolePermissions = IRole['permissions'];
|
|
34
35
|
export type RolePermissionsInput = DeepPartial<RolePermissions>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import type { Document, Types } from 'mongoose';
|
|
27
|
+
import type { PrincipalType } from 'librechat-data-provider';
|
|
28
|
+
import type { SystemCapability } from '~/types/admin';
|
|
29
|
+
export type SystemGrant = {
|
|
30
|
+
/** The type of principal — matches PrincipalType enum values */
|
|
31
|
+
principalType: PrincipalType;
|
|
32
|
+
/** ObjectId string for user/group, role name string for role */
|
|
33
|
+
principalId: string | Types.ObjectId;
|
|
34
|
+
/** The capability being granted */
|
|
35
|
+
capability: SystemCapability;
|
|
36
|
+
/** Absent = platform-operator, present = tenant-scoped */
|
|
37
|
+
tenantId?: string;
|
|
38
|
+
/** ID of the user who granted this capability */
|
|
39
|
+
grantedBy?: Types.ObjectId;
|
|
40
|
+
/** When this capability was granted */
|
|
41
|
+
grantedAt?: Date;
|
|
42
|
+
/** Reserved for future TTL enforcement — time-bounded / temporary grants. */
|
|
43
|
+
expiresAt?: Date;
|
|
44
|
+
};
|
|
45
|
+
export type ISystemGrant = SystemGrant & Document & {
|
|
46
|
+
_id: Types.ObjectId;
|
|
47
|
+
};
|
|
@@ -33,6 +33,7 @@ export interface IToken extends Document {
|
|
|
33
33
|
createdAt: Date;
|
|
34
34
|
expiresAt: Date;
|
|
35
35
|
metadata?: Map<string, unknown>;
|
|
36
|
+
tenantId?: string;
|
|
36
37
|
}
|
|
37
38
|
export interface TokenCreateData {
|
|
38
39
|
userId: Types.ObjectId | string;
|
|
@@ -47,6 +48,7 @@ export interface TokenQuery {
|
|
|
47
48
|
userId?: Types.ObjectId | string;
|
|
48
49
|
token?: string;
|
|
49
50
|
email?: string;
|
|
51
|
+
type?: string;
|
|
50
52
|
identifier?: string;
|
|
51
53
|
}
|
|
52
54
|
export interface TokenUpdateData {
|
|
@@ -73,6 +73,7 @@ export interface IUser extends Document {
|
|
|
73
73
|
updatedAt?: Date;
|
|
74
74
|
/** Field for external source identification (for consistency with TPrincipal schema) */
|
|
75
75
|
idOnTheSource?: string;
|
|
76
|
+
tenantId?: string;
|
|
76
77
|
}
|
|
77
78
|
export interface BalanceConfig {
|
|
78
79
|
enabled?: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Types } from 'mongoose';
|
|
27
|
+
/**
|
|
28
|
+
* Normalizes a principalId to the correct type for MongoDB queries and storage.
|
|
29
|
+
* USER and GROUP principals are stored as ObjectIds; ROLE principals are strings.
|
|
30
|
+
* Ensures a string caller ID is cast to ObjectId so it matches documents written
|
|
31
|
+
* by `grantCapability` — which always stores user/group IDs as ObjectIds to match
|
|
32
|
+
* what `getUserPrincipals` returns.
|
|
33
|
+
*/
|
|
34
|
+
export declare const normalizePrincipalId: (principalId: string | Types.ObjectId, principalType: PrincipalType) => string | Types.ObjectId;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface RetryOptions {
|
|
2
|
+
maxAttempts?: number;
|
|
3
|
+
baseDelayMs?: number;
|
|
4
|
+
maxDelayMs?: number;
|
|
5
|
+
jitter?: boolean;
|
|
6
|
+
retryableErrors?: string[];
|
|
7
|
+
onRetry?: (error: Error, attempt: number, delayMs: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Executes an async operation with exponential backoff + jitter retry
|
|
11
|
+
* on transient errors (deadlocks, connection resets, lock timeouts).
|
|
12
|
+
*
|
|
13
|
+
* Designed for FerretDB/DocumentDB operations where concurrent index
|
|
14
|
+
* creation or bulk writes can trigger PostgreSQL-level deadlocks.
|
|
15
|
+
*/
|
|
16
|
+
export declare function retryWithBackoff<T>(operation: () => Promise<T>, label: string, options?: RetryOptions): Promise<T | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates all indexes for a Mongoose model with deadlock retry.
|
|
19
|
+
* Use this instead of raw `model.createIndexes()` on FerretDB.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createIndexesWithRetry(model: {
|
|
22
|
+
createIndexes: () => Promise<unknown>;
|
|
23
|
+
modelName: string;
|
|
24
|
+
}, options?: RetryOptions): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes all collections and indexes for a set of models on a connection,
|
|
27
|
+
* with per-model deadlock retry. Models are processed sequentially to minimize
|
|
28
|
+
* contention on the DocumentDB catalog.
|
|
29
|
+
*/
|
|
30
|
+
export declare function initializeOrgCollections(models: Record<string, {
|
|
31
|
+
createCollection: () => Promise<unknown>;
|
|
32
|
+
createIndexes: () => Promise<unknown>;
|
|
33
|
+
modelName: string;
|
|
34
|
+
}>, options?: RetryOptions): Promise<{
|
|
35
|
+
totalMs: number;
|
|
36
|
+
perModel: Array<{
|
|
37
|
+
name: string;
|
|
38
|
+
ms: number;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AppConfig } from '~/types';
|
|
2
|
+
/**
|
|
3
|
+
* Default retention period for temporary chats in hours
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_RETENTION_HOURS: number;
|
|
6
|
+
/**
|
|
7
|
+
* Minimum allowed retention period in hours
|
|
8
|
+
*/
|
|
9
|
+
export declare const MIN_RETENTION_HOURS = 1;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum allowed retention period in hours (1 year = 8760 hours)
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAX_RETENTION_HOURS = 8760;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the temporary chat retention period from environment variables or config
|
|
16
|
+
* @param interfaceConfig - The custom configuration object
|
|
17
|
+
* @returns The retention period in hours
|
|
18
|
+
*/
|
|
19
|
+
export declare function getTempChatRetentionHours(interfaceConfig?: AppConfig['interfaceConfig'] | null): number;
|
|
20
|
+
/**
|
|
21
|
+
* Creates an expiration date for temporary chats
|
|
22
|
+
* @param interfaceConfig - The custom configuration object
|
|
23
|
+
* @returns The expiration date
|
|
24
|
+
*/
|
|
25
|
+
export declare function createTempChatExpirationDate(interfaceConfig?: AppConfig['interfaceConfig']): Date;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|