@attraccess/application-models 0.0.0-stage → 1.11.0-beta.4
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/README.md +6 -2
- package/package.json +21 -3
- package/src/index.d.ts +78 -0
- package/src/index.js +82 -0
- package/src/index.js.map +1 -0
- package/src/lib/api-token.d.ts +29 -0
- package/src/lib/api-token.js +3 -0
- package/src/lib/api-token.js.map +1 -0
- package/src/lib/attractap-card.d.ts +48 -0
- package/src/lib/attractap-card.js +3 -0
- package/src/lib/attractap-card.js.map +1 -0
- package/src/lib/attractap-crash-report.d.ts +35 -0
- package/src/lib/attractap-crash-report.js +3 -0
- package/src/lib/attractap-crash-report.js.map +1 -0
- package/src/lib/attractap-installation.d.ts +9 -0
- package/src/lib/attractap-installation.js +3 -0
- package/src/lib/attractap-installation.js.map +1 -0
- package/src/lib/attractap-reader.d.ts +113 -0
- package/src/lib/attractap-reader.js +3 -0
- package/src/lib/attractap-reader.js.map +1 -0
- package/src/lib/attractap-secure-boot.d.ts +17 -0
- package/src/lib/attractap-secure-boot.js +3 -0
- package/src/lib/attractap-secure-boot.js.map +1 -0
- package/src/lib/audit-entry.d.ts +47 -0
- package/src/lib/audit-entry.js +6 -0
- package/src/lib/audit-entry.js.map +1 -0
- package/src/lib/authentication-credential.d.ts +31 -0
- package/src/lib/authentication-credential.js +3 -0
- package/src/lib/authentication-credential.js.map +1 -0
- package/src/lib/authentication-type.d.ts +5 -0
- package/src/lib/authentication-type.js +10 -0
- package/src/lib/authentication-type.js.map +1 -0
- package/src/lib/billing-ledger.d.ts +114 -0
- package/src/lib/billing-ledger.js +3 -0
- package/src/lib/billing-ledger.js.map +1 -0
- package/src/lib/billing-transaction.d.ts +5 -0
- package/src/lib/billing-transaction.js +10 -0
- package/src/lib/billing-transaction.js.map +1 -0
- package/src/lib/companion-device.d.ts +23 -0
- package/src/lib/companion-device.js +3 -0
- package/src/lib/companion-device.js.map +1 -0
- package/src/lib/csv-export-template-record.d.ts +21 -0
- package/src/lib/csv-export-template-record.js +3 -0
- package/src/lib/csv-export-template-record.js.map +1 -0
- package/src/lib/csv-export-template.d.ts +9 -0
- package/src/lib/csv-export-template.js +15 -0
- package/src/lib/csv-export-template.js.map +1 -0
- package/src/lib/dashboard-pins.d.ts +9 -0
- package/src/lib/dashboard-pins.js +3 -0
- package/src/lib/dashboard-pins.js.map +1 -0
- package/src/lib/documentation-type.d.ts +7 -0
- package/src/lib/documentation-type.js +12 -0
- package/src/lib/documentation-type.js.map +1 -0
- package/src/lib/email-template-record.d.ts +17 -0
- package/src/lib/email-template-record.js +3 -0
- package/src/lib/email-template-record.js.map +1 -0
- package/src/lib/email-template.d.ts +18 -0
- package/src/lib/email-template.js +23 -0
- package/src/lib/email-template.js.map +1 -0
- package/src/lib/flow-records.d.ts +77 -0
- package/src/lib/flow-records.js +3 -0
- package/src/lib/flow-records.js.map +1 -0
- package/src/lib/form.d.ts +11 -0
- package/src/lib/form.js +17 -0
- package/src/lib/form.js.map +1 -0
- package/src/lib/mcp-oauth.d.ts +39 -0
- package/src/lib/mcp-oauth.js +3 -0
- package/src/lib/mcp-oauth.js.map +1 -0
- package/src/lib/message.d.ts +4 -0
- package/src/lib/message.js +9 -0
- package/src/lib/message.js.map +1 -0
- package/src/lib/messaging-models.d.ts +52 -0
- package/src/lib/messaging-models.js +3 -0
- package/src/lib/messaging-models.js.map +1 -0
- package/src/lib/metering-records.d.ts +148 -0
- package/src/lib/metering-records.js +3 -0
- package/src/lib/metering-records.js.map +1 -0
- package/src/lib/mqtt-server.d.ts +39 -0
- package/src/lib/mqtt-server.js +3 -0
- package/src/lib/mqtt-server.js.map +1 -0
- package/src/lib/node-type.d.ts +43 -0
- package/src/lib/node-type.js +48 -0
- package/src/lib/node-type.js.map +1 -0
- package/src/lib/notification-preference-record.d.ts +7 -0
- package/src/lib/notification-preference-record.js +3 -0
- package/src/lib/notification-preference-record.js.map +1 -0
- package/src/lib/notification-recipient.d.ts +7 -0
- package/src/lib/notification-recipient.js +3 -0
- package/src/lib/notification-recipient.js.map +1 -0
- package/src/lib/operating-interval.d.ts +33 -0
- package/src/lib/operating-interval.js +3 -0
- package/src/lib/operating-interval.js.map +1 -0
- package/src/lib/passkey.d.ts +28 -0
- package/src/lib/passkey.js +3 -0
- package/src/lib/passkey.js.map +1 -0
- package/src/lib/password-policy-override.d.ts +3 -0
- package/src/lib/password-policy-override.js +8 -0
- package/src/lib/password-policy-override.js.map +1 -0
- package/src/lib/password-policy-records.d.ts +24 -0
- package/src/lib/password-policy-records.js +19 -0
- package/src/lib/password-policy-records.js.map +1 -0
- package/src/lib/password-policy.d.ts +1 -0
- package/src/lib/password-policy.js +5 -0
- package/src/lib/password-policy.js.map +1 -0
- package/src/lib/plugin-ble-endpoint.d.ts +24 -0
- package/src/lib/plugin-ble-endpoint.js +3 -0
- package/src/lib/plugin-ble-endpoint.js.map +1 -0
- package/src/lib/plugin-host-models.d.ts +23 -0
- package/src/lib/plugin-host-models.js +3 -0
- package/src/lib/plugin-host-models.js.map +1 -0
- package/src/lib/project-invitation.d.ts +6 -0
- package/src/lib/project-invitation.js +11 -0
- package/src/lib/project-invitation.js.map +1 -0
- package/src/lib/project-member.d.ts +3 -0
- package/src/lib/project-member.js +8 -0
- package/src/lib/project-member.js.map +1 -0
- package/src/lib/project-record.d.ts +87 -0
- package/src/lib/project-record.js +3 -0
- package/src/lib/project-record.js.map +1 -0
- package/src/lib/push-subscription.d.ts +19 -0
- package/src/lib/push-subscription.js +3 -0
- package/src/lib/push-subscription.js.map +1 -0
- package/src/lib/rbac-record.d.ts +61 -0
- package/src/lib/rbac-record.js +3 -0
- package/src/lib/rbac-record.js.map +1 -0
- package/src/lib/reader-ui-alert.d.ts +15 -0
- package/src/lib/reader-ui-alert.js +3 -0
- package/src/lib/reader-ui-alert.js.map +1 -0
- package/src/lib/resource-actor-user.d.ts +21 -0
- package/src/lib/resource-actor-user.js +3 -0
- package/src/lib/resource-actor-user.js.map +1 -0
- package/src/lib/resource-flow-node/companion-schemas.d.ts +15 -0
- package/src/lib/resource-flow-node/companion-schemas.js +27 -0
- package/src/lib/resource-flow-node/companion-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/external-effect-policy.d.ts +19 -0
- package/src/lib/resource-flow-node/external-effect-policy.js +24 -0
- package/src/lib/resource-flow-node/external-effect-policy.js.map +1 -0
- package/src/lib/resource-flow-node/health-schemas.d.ts +18 -0
- package/src/lib/resource-flow-node/health-schemas.js +34 -0
- package/src/lib/resource-flow-node/health-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/http-schema.d.ts +25 -0
- package/src/lib/resource-flow-node/http-schema.js +20 -0
- package/src/lib/resource-flow-node/http-schema.js.map +1 -0
- package/src/lib/resource-flow-node/metering-schemas.d.ts +28 -0
- package/src/lib/resource-flow-node/metering-schemas.js +48 -0
- package/src/lib/resource-flow-node/metering-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/mqtt-schemas.d.ts +33 -0
- package/src/lib/resource-flow-node/mqtt-schemas.js +43 -0
- package/src/lib/resource-flow-node/mqtt-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/processing-schemas.d.ts +35 -0
- package/src/lib/resource-flow-node/processing-schemas.js +32 -0
- package/src/lib/resource-flow-node/processing-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/resource-schemas.d.ts +27 -0
- package/src/lib/resource-flow-node/resource-schemas.js +44 -0
- package/src/lib/resource-flow-node/resource-schemas.js.map +1 -0
- package/src/lib/resource-flow-node/schema-registry.d.ts +180 -0
- package/src/lib/resource-flow-node/schema-registry.js +80 -0
- package/src/lib/resource-flow-node/schema-registry.js.map +1 -0
- package/src/lib/resource-flow-node/variable-schemas.d.ts +38 -0
- package/src/lib/resource-flow-node/variable-schemas.js +31 -0
- package/src/lib/resource-flow-node/variable-schemas.js.map +1 -0
- package/src/lib/resource-form-records.d.ts +23 -0
- package/src/lib/resource-form-records.js +3 -0
- package/src/lib/resource-form-records.js.map +1 -0
- package/src/lib/resource-health-records.d.ts +12 -0
- package/src/lib/resource-health-records.js +3 -0
- package/src/lib/resource-health-records.js.map +1 -0
- package/src/lib/resource-introducer-records.d.ts +13 -0
- package/src/lib/resource-introducer-records.js +3 -0
- package/src/lib/resource-introducer-records.js.map +1 -0
- package/src/lib/resource-introduction-records.d.ts +43 -0
- package/src/lib/resource-introduction-records.js +3 -0
- package/src/lib/resource-introduction-records.js.map +1 -0
- package/src/lib/resource-maintenance-records.d.ts +54 -0
- package/src/lib/resource-maintenance-records.js +3 -0
- package/src/lib/resource-maintenance-records.js.map +1 -0
- package/src/lib/resource-maintenance-request.d.ts +5 -0
- package/src/lib/resource-maintenance-request.js +10 -0
- package/src/lib/resource-maintenance-request.js.map +1 -0
- package/src/lib/resource-maintenance-schedule.d.ts +11 -0
- package/src/lib/resource-maintenance-schedule.js +17 -0
- package/src/lib/resource-maintenance-schedule.js.map +1 -0
- package/src/lib/resource-metering.d.ts +12 -0
- package/src/lib/resource-metering.js +17 -0
- package/src/lib/resource-metering.js.map +1 -0
- package/src/lib/resource-records.d.ts +33 -0
- package/src/lib/resource-records.js +3 -0
- package/src/lib/resource-records.js.map +1 -0
- package/src/lib/resource-supervision.d.ts +20 -0
- package/src/lib/resource-supervision.js +26 -0
- package/src/lib/resource-supervision.js.map +1 -0
- package/src/lib/resource-type.d.ts +4 -0
- package/src/lib/resource-type.js +9 -0
- package/src/lib/resource-type.js.map +1 -0
- package/src/lib/resourceFlowVariable.d.ts +4 -0
- package/src/lib/resourceFlowVariable.js +9 -0
- package/src/lib/resourceFlowVariable.js.map +1 -0
- package/src/lib/resourceHealthState.d.ts +9 -0
- package/src/lib/resourceHealthState.js +15 -0
- package/src/lib/resourceHealthState.js.map +1 -0
- package/src/lib/resourceIntroducer.d.ts +4 -0
- package/src/lib/resourceIntroducer.js +9 -0
- package/src/lib/resourceIntroducer.js.map +1 -0
- package/src/lib/resourceIntroductionHistoryItem.d.ts +4 -0
- package/src/lib/resourceIntroductionHistoryItem.js +9 -0
- package/src/lib/resourceIntroductionHistoryItem.js.map +1 -0
- package/src/lib/resourceUsage-type.d.ts +6 -0
- package/src/lib/resourceUsage-type.js +11 -0
- package/src/lib/resourceUsage-type.js.map +1 -0
- package/src/lib/session.d.ts +88 -0
- package/src/lib/session.js +3 -0
- package/src/lib/session.js.map +1 -0
- package/src/lib/sso-provider-record.d.ts +61 -0
- package/src/lib/sso-provider-record.js +3 -0
- package/src/lib/sso-provider-record.js.map +1 -0
- package/src/lib/sso-session-context.d.ts +32 -0
- package/src/lib/sso-session-context.js +3 -0
- package/src/lib/sso-session-context.js.map +1 -0
- package/src/lib/ssoProvider-oidc.d.ts +2 -0
- package/src/lib/ssoProvider-oidc.js +6 -0
- package/src/lib/ssoProvider-oidc.js.map +1 -0
- package/src/lib/ssoProvider.d.ts +4 -0
- package/src/lib/ssoProvider.js +9 -0
- package/src/lib/ssoProvider.js.map +1 -0
- package/src/lib/usage-duration-unit.d.ts +5 -0
- package/src/lib/usage-duration-unit.js +10 -0
- package/src/lib/usage-duration-unit.js.map +1 -0
- package/src/lib/usage-session.d.ts +139 -0
- package/src/lib/usage-session.js +3 -0
- package/src/lib/usage-session.js.map +1 -0
- package/src/lib/user-account.d.ts +50 -0
- package/src/lib/user-account.js +3 -0
- package/src/lib/user-account.js.map +1 -0
- package/src/lib/user-record.d.ts +38 -0
- package/src/lib/user-record.js +3 -0
- package/src/lib/user-record.js.map +1 -0
- package/src/lib/user-role.d.ts +4 -0
- package/src/lib/user-role.js +9 -0
- package/src/lib/user-role.js.map +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { MaintenanceRequestStatus } from './resource-maintenance-request';
|
|
2
|
+
import type { ResourceMaintenanceScheduleDurationBasis, ResourceMaintenanceScheduleTriggerType } from './resource-maintenance-schedule';
|
|
3
|
+
import type { UsageDurationUnit } from './usage-duration-unit';
|
|
4
|
+
import type { ResourceActorUser } from './resource-actor-user';
|
|
5
|
+
export interface ResourceMaintenanceRecord {
|
|
6
|
+
id: number;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
resourceId: number;
|
|
10
|
+
startTime: Date;
|
|
11
|
+
endTime: Date | null;
|
|
12
|
+
reason: string | null;
|
|
13
|
+
completedAt: Date | null;
|
|
14
|
+
/** Present when the read asked for the audit users. */
|
|
15
|
+
createdByUser?: ResourceActorUser | null;
|
|
16
|
+
completedByUser?: ResourceActorUser | null;
|
|
17
|
+
}
|
|
18
|
+
export interface ResourceMaintenanceRequestRecord {
|
|
19
|
+
id: number;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
resourceId: number;
|
|
23
|
+
reason: string;
|
|
24
|
+
status: MaintenanceRequestStatus;
|
|
25
|
+
resolvedAt: Date | null;
|
|
26
|
+
createdByUser?: ResourceActorUser | null;
|
|
27
|
+
resolvedByUser?: ResourceActorUser | null;
|
|
28
|
+
resultingMaintenance?: ResourceMaintenanceRecord | null;
|
|
29
|
+
}
|
|
30
|
+
interface MaintenanceDurationConfigRecord {
|
|
31
|
+
id: number;
|
|
32
|
+
scheduleId: number;
|
|
33
|
+
duration: number;
|
|
34
|
+
unit: UsageDurationUnit;
|
|
35
|
+
}
|
|
36
|
+
interface MaintenanceUsageCountConfigRecord {
|
|
37
|
+
id: number;
|
|
38
|
+
scheduleId: number;
|
|
39
|
+
thresholdSessions: number;
|
|
40
|
+
}
|
|
41
|
+
export interface MaintenanceScheduleRecord {
|
|
42
|
+
id: number;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
resourceId: number;
|
|
46
|
+
name: string | null;
|
|
47
|
+
triggerType: ResourceMaintenanceScheduleTriggerType;
|
|
48
|
+
durationBasis: ResourceMaintenanceScheduleDurationBasis;
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
usageHoursConfig?: MaintenanceDurationConfigRecord | null;
|
|
51
|
+
usageCountConfig?: MaintenanceUsageCountConfigRecord | null;
|
|
52
|
+
timeIntervalConfig?: MaintenanceDurationConfigRecord | null;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-maintenance-records.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-maintenance-records.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaintenanceRequestStatus = void 0;
|
|
4
|
+
var MaintenanceRequestStatus;
|
|
5
|
+
(function (MaintenanceRequestStatus) {
|
|
6
|
+
MaintenanceRequestStatus["OPEN"] = "open";
|
|
7
|
+
MaintenanceRequestStatus["RESOLVED"] = "resolved";
|
|
8
|
+
MaintenanceRequestStatus["DISMISSED"] = "dismissed";
|
|
9
|
+
})(MaintenanceRequestStatus || (exports.MaintenanceRequestStatus = MaintenanceRequestStatus = {}));
|
|
10
|
+
//# sourceMappingURL=resource-maintenance-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-maintenance-request.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-maintenance-request.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,iDAAqB,CAAA;IACrB,mDAAuB,CAAA;AACzB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum ResourceMaintenanceScheduleTriggerType {
|
|
2
|
+
USAGE_HOURS = "USAGE_HOURS",
|
|
3
|
+
USAGE_COUNT = "USAGE_COUNT",
|
|
4
|
+
/** Recurring (e.g. every N days) or one-off wall-clock threshold (e.g. after N hours since baseline). */
|
|
5
|
+
TIME_INTERVAL = "TIME_INTERVAL"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ResourceMaintenanceScheduleDurationBasis {
|
|
8
|
+
SESSION_DURATION = "SESSION_DURATION",
|
|
9
|
+
/** All machine operation, including unattributed time. Keep the legacy storage/API value. */
|
|
10
|
+
ATTRIBUTABLE_OPERATING_DURATION = "ATTRIBUTABLE_OPERATING_DURATION"
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceMaintenanceScheduleDurationBasis = exports.ResourceMaintenanceScheduleTriggerType = void 0;
|
|
4
|
+
var ResourceMaintenanceScheduleTriggerType;
|
|
5
|
+
(function (ResourceMaintenanceScheduleTriggerType) {
|
|
6
|
+
ResourceMaintenanceScheduleTriggerType["USAGE_HOURS"] = "USAGE_HOURS";
|
|
7
|
+
ResourceMaintenanceScheduleTriggerType["USAGE_COUNT"] = "USAGE_COUNT";
|
|
8
|
+
/** Recurring (e.g. every N days) or one-off wall-clock threshold (e.g. after N hours since baseline). */
|
|
9
|
+
ResourceMaintenanceScheduleTriggerType["TIME_INTERVAL"] = "TIME_INTERVAL";
|
|
10
|
+
})(ResourceMaintenanceScheduleTriggerType || (exports.ResourceMaintenanceScheduleTriggerType = ResourceMaintenanceScheduleTriggerType = {}));
|
|
11
|
+
var ResourceMaintenanceScheduleDurationBasis;
|
|
12
|
+
(function (ResourceMaintenanceScheduleDurationBasis) {
|
|
13
|
+
ResourceMaintenanceScheduleDurationBasis["SESSION_DURATION"] = "SESSION_DURATION";
|
|
14
|
+
/** All machine operation, including unattributed time. Keep the legacy storage/API value. */
|
|
15
|
+
ResourceMaintenanceScheduleDurationBasis["ATTRIBUTABLE_OPERATING_DURATION"] = "ATTRIBUTABLE_OPERATING_DURATION";
|
|
16
|
+
})(ResourceMaintenanceScheduleDurationBasis || (exports.ResourceMaintenanceScheduleDurationBasis = ResourceMaintenanceScheduleDurationBasis = {}));
|
|
17
|
+
//# sourceMappingURL=resource-maintenance-schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-maintenance-schedule.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-maintenance-schedule.ts"],"names":[],"mappings":";;;AAAA,IAAY,sCAKX;AALD,WAAY,sCAAsC;IAChD,qEAA2B,CAAA;IAC3B,qEAA2B,CAAA;IAC3B,yGAAyG;IACzG,yEAA+B,CAAA;AACjC,CAAC,EALW,sCAAsC,sDAAtC,sCAAsC,QAKjD;AAED,IAAY,wCAIX;AAJD,WAAY,wCAAwC;IAClD,iFAAqC,CAAA;IACrC,6FAA6F;IAC7F,+GAAmE,CAAA;AACrE,CAAC,EAJW,wCAAwC,wDAAxC,wCAAwC,QAInD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum ResourceMeteringSessionStatus {
|
|
2
|
+
/** Metering is initialized; the usage is running (or being started). */
|
|
3
|
+
Active = "active",
|
|
4
|
+
/** The final total was collected and the meter charge is part of the usage bill. */
|
|
5
|
+
Settled = "settled",
|
|
6
|
+
/** The usage ended but no valid final total is available yet; retryable. */
|
|
7
|
+
Pending = "pending",
|
|
8
|
+
/** The final total can no longer be obtained (or was rejected); needs an operator decision. */
|
|
9
|
+
Failed = "failed",
|
|
10
|
+
/** An operator decided not to charge meter for this usage. */
|
|
11
|
+
Waived = "waived"
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceMeteringSessionStatus = void 0;
|
|
4
|
+
var ResourceMeteringSessionStatus;
|
|
5
|
+
(function (ResourceMeteringSessionStatus) {
|
|
6
|
+
/** Metering is initialized; the usage is running (or being started). */
|
|
7
|
+
ResourceMeteringSessionStatus["Active"] = "active";
|
|
8
|
+
/** The final total was collected and the meter charge is part of the usage bill. */
|
|
9
|
+
ResourceMeteringSessionStatus["Settled"] = "settled";
|
|
10
|
+
/** The usage ended but no valid final total is available yet; retryable. */
|
|
11
|
+
ResourceMeteringSessionStatus["Pending"] = "pending";
|
|
12
|
+
/** The final total can no longer be obtained (or was rejected); needs an operator decision. */
|
|
13
|
+
ResourceMeteringSessionStatus["Failed"] = "failed";
|
|
14
|
+
/** An operator decided not to charge meter for this usage. */
|
|
15
|
+
ResourceMeteringSessionStatus["Waived"] = "waived";
|
|
16
|
+
})(ResourceMeteringSessionStatus || (exports.ResourceMeteringSessionStatus = ResourceMeteringSessionStatus = {}));
|
|
17
|
+
//# sourceMappingURL=resource-metering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-metering.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-metering.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAWX;AAXD,WAAY,6BAA6B;IACvC,wEAAwE;IACxE,kDAAiB,CAAA;IACjB,oFAAoF;IACpF,oDAAmB,CAAA;IACnB,4EAA4E;IAC5E,oDAAmB,CAAA;IACnB,+FAA+F;IAC/F,kDAAiB,CAAA;IACjB,8DAA8D;IAC9D,kDAAiB,CAAA;AACnB,CAAC,EAXW,6BAA6B,6CAA7B,6BAA6B,QAWxC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { DocumentationType } from './documentation-type';
|
|
2
|
+
import type { ResourceType } from './resource-type';
|
|
3
|
+
import type { AutoIntroductionTarget, SupervisionMode } from './resource-supervision';
|
|
4
|
+
import type { IntroductionRecord, ResourceGroupRecord } from './resource-introduction-records';
|
|
5
|
+
import type { UsageSession } from './usage-session';
|
|
6
|
+
/** A resource (machine or door) with the relations a read asked for. */
|
|
7
|
+
export interface ResourceRecord {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
type: ResourceType;
|
|
11
|
+
separateUnlockAndUnlatch: boolean | null;
|
|
12
|
+
description: string | null;
|
|
13
|
+
imageFilename: string | null;
|
|
14
|
+
documentationType: DocumentationType | null;
|
|
15
|
+
documentationMarkdown: string | null;
|
|
16
|
+
documentationUrl: string | null;
|
|
17
|
+
metadata: Record<string, unknown> | null;
|
|
18
|
+
allowTakeOver: boolean;
|
|
19
|
+
maxParallelSessions: number;
|
|
20
|
+
retrainingMaxAgeDays: number | null;
|
|
21
|
+
retrainingMaxInactivityDays: number | null;
|
|
22
|
+
retrainingBlocksAccess: boolean;
|
|
23
|
+
supervisionMode: SupervisionMode;
|
|
24
|
+
supervisedUsagesUntilIntroduction: number | null;
|
|
25
|
+
autoIntroductionTarget: AutoIntroductionTarget | null;
|
|
26
|
+
autoIntroductionGroupId: number | null;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
deletedAt: Date | null;
|
|
30
|
+
groups?: ResourceGroupRecord[];
|
|
31
|
+
usages?: UsageSession[];
|
|
32
|
+
introductions?: IntroductionRecord[];
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-records.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-records.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controls who may start a usage session on a resource.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SupervisionMode {
|
|
5
|
+
/** Today's behavior: only introduced users may start a session. */
|
|
6
|
+
INTRODUCTION_REQUIRED = "introduction_required",
|
|
7
|
+
/** Introduced users alone; non-introduced users only with a present supervisor. */
|
|
8
|
+
SUPERVISION_ALLOWED = "supervision_allowed",
|
|
9
|
+
/** Even introduced users need a present supervisor. */
|
|
10
|
+
SUPERVISION_REQUIRED = "supervision_required"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Target of an auto-created introduction once the supervised-usage threshold is reached.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum AutoIntroductionTarget {
|
|
16
|
+
/** Create an introduction for this resource. */
|
|
17
|
+
RESOURCE = "resource",
|
|
18
|
+
/** Create a group introduction instead of a resource introduction. */
|
|
19
|
+
GROUP = "group"
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoIntroductionTarget = exports.SupervisionMode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Controls who may start a usage session on a resource.
|
|
6
|
+
*/
|
|
7
|
+
var SupervisionMode;
|
|
8
|
+
(function (SupervisionMode) {
|
|
9
|
+
/** Today's behavior: only introduced users may start a session. */
|
|
10
|
+
SupervisionMode["INTRODUCTION_REQUIRED"] = "introduction_required";
|
|
11
|
+
/** Introduced users alone; non-introduced users only with a present supervisor. */
|
|
12
|
+
SupervisionMode["SUPERVISION_ALLOWED"] = "supervision_allowed";
|
|
13
|
+
/** Even introduced users need a present supervisor. */
|
|
14
|
+
SupervisionMode["SUPERVISION_REQUIRED"] = "supervision_required";
|
|
15
|
+
})(SupervisionMode || (exports.SupervisionMode = SupervisionMode = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Target of an auto-created introduction once the supervised-usage threshold is reached.
|
|
18
|
+
*/
|
|
19
|
+
var AutoIntroductionTarget;
|
|
20
|
+
(function (AutoIntroductionTarget) {
|
|
21
|
+
/** Create an introduction for this resource. */
|
|
22
|
+
AutoIntroductionTarget["RESOURCE"] = "resource";
|
|
23
|
+
/** Create a group introduction instead of a resource introduction. */
|
|
24
|
+
AutoIntroductionTarget["GROUP"] = "group";
|
|
25
|
+
})(AutoIntroductionTarget || (exports.AutoIntroductionTarget = AutoIntroductionTarget = {}));
|
|
26
|
+
//# sourceMappingURL=resource-supervision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-supervision.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-supervision.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,mEAAmE;IACnE,kEAA+C,CAAA;IAC/C,mFAAmF;IACnF,8DAA2C,CAAA;IAC3C,uDAAuD;IACvD,gEAA6C,CAAA;AAC/C,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAED;;GAEG;AACH,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,gDAAgD;IAChD,+CAAqB,CAAA;IACrB,sEAAsE;IACtE,yCAAe,CAAA;AACjB,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceType = void 0;
|
|
4
|
+
var ResourceType;
|
|
5
|
+
(function (ResourceType) {
|
|
6
|
+
ResourceType["Machine"] = "machine";
|
|
7
|
+
ResourceType["Door"] = "door";
|
|
8
|
+
})(ResourceType || (exports.ResourceType = ResourceType = {}));
|
|
9
|
+
//# sourceMappingURL=resource-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-type.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resource-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceFlowVariableScope = void 0;
|
|
4
|
+
var ResourceFlowVariableScope;
|
|
5
|
+
(function (ResourceFlowVariableScope) {
|
|
6
|
+
ResourceFlowVariableScope["RESOURCE"] = "resource";
|
|
7
|
+
ResourceFlowVariableScope["GLOBAL"] = "global";
|
|
8
|
+
})(ResourceFlowVariableScope || (exports.ResourceFlowVariableScope = ResourceFlowVariableScope = {}));
|
|
9
|
+
//# sourceMappingURL=resourceFlowVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceFlowVariable.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resourceFlowVariable.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,kDAAqB,CAAA;IACrB,8CAAiB,CAAA;AACnB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceHealthSource = exports.ResourceHealthStatus = void 0;
|
|
4
|
+
var ResourceHealthStatus;
|
|
5
|
+
(function (ResourceHealthStatus) {
|
|
6
|
+
ResourceHealthStatus["HEALTHY"] = "healthy";
|
|
7
|
+
ResourceHealthStatus["UNHEALTHY"] = "unhealthy";
|
|
8
|
+
})(ResourceHealthStatus || (exports.ResourceHealthStatus = ResourceHealthStatus = {}));
|
|
9
|
+
var ResourceHealthSource;
|
|
10
|
+
(function (ResourceHealthSource) {
|
|
11
|
+
ResourceHealthSource["PAYLOAD"] = "payload";
|
|
12
|
+
ResourceHealthSource["HEARTBEAT"] = "heartbeat";
|
|
13
|
+
ResourceHealthSource["MANUAL"] = "manual";
|
|
14
|
+
})(ResourceHealthSource || (exports.ResourceHealthSource = ResourceHealthSource = {}));
|
|
15
|
+
//# sourceMappingURL=resourceHealthState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceHealthState.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resourceHealthState.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;AACzB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceIntroducerType = void 0;
|
|
4
|
+
var ResourceIntroducerType;
|
|
5
|
+
(function (ResourceIntroducerType) {
|
|
6
|
+
ResourceIntroducerType["INTRODUCER"] = "introducer";
|
|
7
|
+
ResourceIntroducerType["MAINTAINER"] = "maintainer";
|
|
8
|
+
})(ResourceIntroducerType || (exports.ResourceIntroducerType = ResourceIntroducerType = {}));
|
|
9
|
+
//# sourceMappingURL=resourceIntroducer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceIntroducer.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resourceIntroducer.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,mDAAyB,CAAA;AAC3B,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntroductionHistoryAction = void 0;
|
|
4
|
+
var IntroductionHistoryAction;
|
|
5
|
+
(function (IntroductionHistoryAction) {
|
|
6
|
+
IntroductionHistoryAction["REVOKE"] = "revoke";
|
|
7
|
+
IntroductionHistoryAction["GRANT"] = "grant";
|
|
8
|
+
})(IntroductionHistoryAction || (exports.IntroductionHistoryAction = IntroductionHistoryAction = {}));
|
|
9
|
+
//# sourceMappingURL=resourceIntroductionHistoryItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceIntroductionHistoryItem.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resourceIntroductionHistoryItem.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,8CAAiB,CAAA;IACjB,4CAAe,CAAA;AACjB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUsageAction = void 0;
|
|
4
|
+
var ResourceUsageAction;
|
|
5
|
+
(function (ResourceUsageAction) {
|
|
6
|
+
ResourceUsageAction["Usage"] = "usage";
|
|
7
|
+
ResourceUsageAction["DoorLock"] = "door.lock";
|
|
8
|
+
ResourceUsageAction["DoorUnlock"] = "door.unlock";
|
|
9
|
+
ResourceUsageAction["DoorUnlatch"] = "door.unlatch";
|
|
10
|
+
})(ResourceUsageAction || (exports.ResourceUsageAction = ResourceUsageAction = {}));
|
|
11
|
+
//# sourceMappingURL=resourceUsage-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceUsage-type.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/resourceUsage-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,6CAAsB,CAAA;IACtB,iDAA0B,CAAA;IAC1B,mDAA4B,CAAA;AAC9B,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { SsoSessionContext } from './sso-session-context';
|
|
2
|
+
/**
|
|
3
|
+
* The signed-in account a session belongs to. Neutral shape of the account row: the session adapters hand the
|
|
4
|
+
* stored account to the authentication layer without exposing the persistence model.
|
|
5
|
+
*/
|
|
6
|
+
export interface AuthenticatedSessionUser {
|
|
7
|
+
id: number;
|
|
8
|
+
username: string;
|
|
9
|
+
email: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
dateTimeLocale: string | null;
|
|
12
|
+
isEmailVerified: boolean;
|
|
13
|
+
isDisabled: boolean;
|
|
14
|
+
externalIdentifier: string | null;
|
|
15
|
+
creditBalance: number;
|
|
16
|
+
billingFactor: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
deletedAt?: Date | null;
|
|
20
|
+
lastUsernameChangeAt: Date | null;
|
|
21
|
+
lockedUntil: Date | null;
|
|
22
|
+
failedLoginAttempts: number;
|
|
23
|
+
firstFailedLoginAt: Date | null;
|
|
24
|
+
emailVerificationToken: string | null;
|
|
25
|
+
emailVerificationTokenExpiresAt: Date | null;
|
|
26
|
+
passwordResetToken: string | null;
|
|
27
|
+
passwordResetTokenExpiresAt: Date | null;
|
|
28
|
+
deleteAccountToken: string | null;
|
|
29
|
+
deleteAccountTokenExpiresAt: Date | null;
|
|
30
|
+
deleteAccountRequestedAt: Date | null;
|
|
31
|
+
nfcKeySeedToken: string | null;
|
|
32
|
+
}
|
|
33
|
+
export interface SessionMetadata {
|
|
34
|
+
ssoContext?: SsoSessionContext;
|
|
35
|
+
userAgent?: string;
|
|
36
|
+
ipAddress?: string;
|
|
37
|
+
/** Requested lifetime in seconds. */
|
|
38
|
+
expiresIn?: number;
|
|
39
|
+
}
|
|
40
|
+
/** Internal handle stays stable across token refreshes. */
|
|
41
|
+
export interface LogoutSession {
|
|
42
|
+
id: string;
|
|
43
|
+
ssoContext: SsoSessionContext | null;
|
|
44
|
+
}
|
|
45
|
+
export interface AuthenticatedSession {
|
|
46
|
+
user: AuthenticatedSessionUser;
|
|
47
|
+
session: LogoutSession;
|
|
48
|
+
}
|
|
49
|
+
/** What a user may see about one of their live sessions. Never carries the token. */
|
|
50
|
+
export interface UserSessionSummary {
|
|
51
|
+
userId: number;
|
|
52
|
+
userAgent: string | null;
|
|
53
|
+
ipAddress: string | null;
|
|
54
|
+
expiresAt: Date;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
lastAccessedAt: Date;
|
|
57
|
+
}
|
|
58
|
+
export interface SessionStats {
|
|
59
|
+
totalActiveSessions: number;
|
|
60
|
+
expiredSessions: number;
|
|
61
|
+
}
|
|
62
|
+
/** Identifies the sessions an identity provider ended (SSO back-channel / single logout). */
|
|
63
|
+
export type SsoSessionSelector = {
|
|
64
|
+
protocol: 'OIDC';
|
|
65
|
+
providerId: number;
|
|
66
|
+
issuer: string;
|
|
67
|
+
subject?: string;
|
|
68
|
+
sid?: string;
|
|
69
|
+
issuedBefore?: number;
|
|
70
|
+
} | {
|
|
71
|
+
protocol: 'SAML';
|
|
72
|
+
providerId: number;
|
|
73
|
+
issuer?: string;
|
|
74
|
+
nameID: string;
|
|
75
|
+
nameIDFormat?: string;
|
|
76
|
+
nameQualifier?: string;
|
|
77
|
+
spNameQualifier?: string;
|
|
78
|
+
sessionIndexes?: string[];
|
|
79
|
+
issuedBefore?: number;
|
|
80
|
+
};
|
|
81
|
+
/** Delivery receipt that makes a logout notification idempotent. */
|
|
82
|
+
export interface SsoLogoutReceipt {
|
|
83
|
+
key: string;
|
|
84
|
+
/** Epoch milliseconds the receipt is retained until. */
|
|
85
|
+
expiresAt: number;
|
|
86
|
+
/** Unsigned notifications require a match to bound retained receipts by revoked active sessions. */
|
|
87
|
+
requireMatch?: boolean;
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/session.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { SSOProviderType } from './ssoProvider';
|
|
2
|
+
export interface SsoOidcConfigurationRecord {
|
|
3
|
+
id: number;
|
|
4
|
+
ssoProviderId: number;
|
|
5
|
+
issuer: string;
|
|
6
|
+
authorizationURL: string;
|
|
7
|
+
tokenURL: string;
|
|
8
|
+
userInfoURL: string;
|
|
9
|
+
clientId: string;
|
|
10
|
+
/** Stored encrypted; the SSO service decrypts it for in-app use. */
|
|
11
|
+
clientSecret: string;
|
|
12
|
+
scopes: string[] | null;
|
|
13
|
+
usernameClaimPaths: string[] | null;
|
|
14
|
+
emailClaimPaths: string[] | null;
|
|
15
|
+
roleClaimPaths?: string[] | null;
|
|
16
|
+
roleMappings?: Record<string, string[]> | null;
|
|
17
|
+
endSessionURL?: string | null;
|
|
18
|
+
jwksURL?: string | null;
|
|
19
|
+
signingAlgorithms?: string[] | null;
|
|
20
|
+
permissionSyncTtlMinutes?: number | null;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
24
|
+
export interface SsoSamlConfigurationRecord {
|
|
25
|
+
id: number;
|
|
26
|
+
ssoProviderId: number;
|
|
27
|
+
entryPoint: string;
|
|
28
|
+
issuer: string;
|
|
29
|
+
certificate: string;
|
|
30
|
+
audience?: string | null;
|
|
31
|
+
signRequest: boolean;
|
|
32
|
+
wantAssertionsSigned: boolean;
|
|
33
|
+
wantAuthnResponseSigned: boolean;
|
|
34
|
+
forceAuthn: boolean;
|
|
35
|
+
emailAttributeKeys?: string[] | null;
|
|
36
|
+
roleAttributeKeys?: string[] | null;
|
|
37
|
+
provisioningSecret?: string | null;
|
|
38
|
+
roleMappings?: Record<string, string[]> | null;
|
|
39
|
+
spSigningCertificate?: string | null;
|
|
40
|
+
spSigningKeyEncrypted?: string | null;
|
|
41
|
+
spSigningKeyEncryptionKeyId?: string | null;
|
|
42
|
+
idpIssuer?: string | null;
|
|
43
|
+
logoutURL?: string | null;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
|
47
|
+
export interface SsoProviderRecord {
|
|
48
|
+
id: number;
|
|
49
|
+
name: string;
|
|
50
|
+
type: SSOProviderType;
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
53
|
+
oidcConfiguration?: SsoOidcConfigurationRecord;
|
|
54
|
+
samlConfiguration?: SsoSamlConfigurationRecord;
|
|
55
|
+
}
|
|
56
|
+
/** Columns a new configuration is created with (everything but id and timestamps). */
|
|
57
|
+
export type NewSsoOidcConfiguration = Partial<Omit<SsoOidcConfigurationRecord, 'id' | 'createdAt' | 'updatedAt'>> & Pick<SsoOidcConfigurationRecord, 'issuer' | 'authorizationURL' | 'tokenURL' | 'userInfoURL' | 'clientId' | 'clientSecret'>;
|
|
58
|
+
export type NewSsoSamlConfiguration = Partial<Omit<SsoSamlConfigurationRecord, 'id' | 'createdAt' | 'updatedAt'>> & Pick<SsoSamlConfigurationRecord, 'entryPoint' | 'issuer' | 'certificate'>;
|
|
59
|
+
/** A partial update of the stored columns; an explicit null clears a nullable column. */
|
|
60
|
+
export type SsoOidcConfigurationChanges = Partial<Omit<SsoOidcConfigurationRecord, 'id' | 'ssoProviderId' | 'createdAt' | 'updatedAt'>>;
|
|
61
|
+
export type SsoSamlConfigurationChanges = Partial<Omit<SsoSamlConfigurationRecord, 'id' | 'ssoProviderId' | 'createdAt' | 'updatedAt'>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso-provider-record.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/sso-provider-record.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Internal authentication provenance. Never expose this through session response DTOs. */
|
|
2
|
+
export type SsoSessionContext = {
|
|
3
|
+
/** Verified ID token iat in milliseconds, on the provider clock. */
|
|
4
|
+
providerIssuedAt?: number;
|
|
5
|
+
/** Last SSO permission sync (login or re-sync) in milliseconds, on the local clock. */
|
|
6
|
+
lastSsoSyncAt?: number;
|
|
7
|
+
/** After a failed re-sync, the next attempt waits until this time in milliseconds. */
|
|
8
|
+
ssoSyncRetryAt?: number;
|
|
9
|
+
protocol: 'OIDC';
|
|
10
|
+
providerId: number;
|
|
11
|
+
issuer: string;
|
|
12
|
+
subject: string;
|
|
13
|
+
sid?: string;
|
|
14
|
+
idTokenEncrypted?: string;
|
|
15
|
+
/** Encrypted IdP refresh token used for session-time permission re-sync. */
|
|
16
|
+
refreshTokenEncrypted?: string;
|
|
17
|
+
} | {
|
|
18
|
+
/** Signed login assertion IssueInstant in milliseconds, on the provider clock. */
|
|
19
|
+
providerIssuedAt?: number;
|
|
20
|
+
/** Last SSO permission sync (login or re-sync) in milliseconds, on the local clock. */
|
|
21
|
+
lastSsoSyncAt?: number;
|
|
22
|
+
/** After a failed re-sync, the next attempt waits until this time in milliseconds. */
|
|
23
|
+
ssoSyncRetryAt?: number;
|
|
24
|
+
protocol: 'SAML';
|
|
25
|
+
providerId: number;
|
|
26
|
+
issuer?: string;
|
|
27
|
+
nameID: string;
|
|
28
|
+
nameIDFormat?: string;
|
|
29
|
+
nameQualifier?: string;
|
|
30
|
+
spNameQualifier?: string;
|
|
31
|
+
sessionIndexes: string[];
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso-session-context.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/sso-session-context.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_PERMISSION_SYNC_TTL_MINUTES = void 0;
|
|
4
|
+
/** Sanity bound (365 days) for the re-sync interval; deliberately not tied to the configurable session length. */
|
|
5
|
+
exports.MAX_PERMISSION_SYNC_TTL_MINUTES = 365 * 24 * 60;
|
|
6
|
+
//# sourceMappingURL=ssoProvider-oidc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssoProvider-oidc.js","sourceRoot":"","sources":["../../../../../libs/application-models/src/lib/ssoProvider-oidc.ts"],"names":[],"mappings":";;;AAAA,kHAAkH;AACrG,QAAA,+BAA+B,GAAG,GAAG,GAAG,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SSOProviderType = void 0;
|
|
4
|
+
var SSOProviderType;
|
|
5
|
+
(function (SSOProviderType) {
|
|
6
|
+
SSOProviderType["OIDC"] = "OIDC";
|
|
7
|
+
SSOProviderType["SAML"] = "SAML";
|
|
8
|
+
})(SSOProviderType || (exports.SSOProviderType = SSOProviderType = {}));
|
|
9
|
+
//# sourceMappingURL=ssoProvider.js.map
|