@oxyhq/core 1.9.0 → 1.10.0
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/cjs/.tsbuildinfo +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/mixins/OxyServices.user.d.ts +5 -0
- package/dist/types/models/interfaces.d.ts +6 -1
- package/package.json +1 -1
- package/src/mixins/OxyServices.user.ts +3 -0
- package/src/models/interfaces.ts +7 -2
|
@@ -51,14 +51,19 @@ export interface User {
|
|
|
51
51
|
following?: number;
|
|
52
52
|
};
|
|
53
53
|
accountExpiresAfterInactivityDays?: number | null;
|
|
54
|
-
type?: 'local' | 'federated';
|
|
54
|
+
type?: 'local' | 'federated' | 'agent' | 'automated';
|
|
55
55
|
isFederated?: boolean;
|
|
56
|
+
isAgent?: boolean;
|
|
57
|
+
isAutomated?: boolean;
|
|
56
58
|
instance?: string;
|
|
57
59
|
federation?: {
|
|
58
60
|
actorUri?: string;
|
|
59
61
|
domain?: string;
|
|
60
62
|
actorId?: string;
|
|
61
63
|
};
|
|
64
|
+
automation?: {
|
|
65
|
+
ownerId?: string;
|
|
66
|
+
};
|
|
62
67
|
[key: string]: unknown;
|
|
63
68
|
}
|
|
64
69
|
export interface LoginResponse {
|
package/package.json
CHANGED
|
@@ -94,8 +94,11 @@ export function OxyServicesUserMixin<T extends typeof OxyServicesBase>(Base: T)
|
|
|
94
94
|
name?: { first?: string; last?: string; full?: string };
|
|
95
95
|
description?: string;
|
|
96
96
|
isFederated?: boolean;
|
|
97
|
+
isAgent?: boolean;
|
|
98
|
+
isAutomated?: boolean;
|
|
97
99
|
instance?: string;
|
|
98
100
|
federation?: { actorUri?: string; domain?: string; actorId?: string };
|
|
101
|
+
automation?: { ownerId?: string };
|
|
99
102
|
_count?: { followers: number; following: number };
|
|
100
103
|
[key: string]: unknown;
|
|
101
104
|
}>> {
|
package/src/models/interfaces.ts
CHANGED
|
@@ -60,15 +60,20 @@ export interface User {
|
|
|
60
60
|
following?: number;
|
|
61
61
|
};
|
|
62
62
|
accountExpiresAfterInactivityDays?: number | null; // Days of inactivity before account expires (null = never expire)
|
|
63
|
-
//
|
|
64
|
-
type?: 'local' | 'federated';
|
|
63
|
+
// User type and external account support
|
|
64
|
+
type?: 'local' | 'federated' | 'agent' | 'automated';
|
|
65
65
|
isFederated?: boolean;
|
|
66
|
+
isAgent?: boolean;
|
|
67
|
+
isAutomated?: boolean;
|
|
66
68
|
instance?: string;
|
|
67
69
|
federation?: {
|
|
68
70
|
actorUri?: string;
|
|
69
71
|
domain?: string;
|
|
70
72
|
actorId?: string;
|
|
71
73
|
};
|
|
74
|
+
automation?: {
|
|
75
|
+
ownerId?: string;
|
|
76
|
+
};
|
|
72
77
|
[key: string]: unknown;
|
|
73
78
|
}
|
|
74
79
|
|