terse-types 0.6.2 → 0.6.3
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/ActorSource.d.ts +4 -0
- package/dist/ActorSource.js +6 -0
- package/dist/ProductFeatures.d.ts +5 -0
- package/dist/ProductFeatures.js +7 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const ACTOR_ENTRY_FILE = "src/actor.ts";
|
|
2
|
+
export declare const LEGACY_ACTOR_ENTRY_FILE = "src/actors.ts";
|
|
3
|
+
/** Share discovery between the local CLI and uploaded deployment archives. */
|
|
4
|
+
export declare function findActorEntryFile(hasFile: (file: string) => boolean): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const ACTOR_ENTRY_FILE = "src/actor.ts";
|
|
2
|
+
export const LEGACY_ACTOR_ENTRY_FILE = "src/actors.ts";
|
|
3
|
+
/** Share discovery between the local CLI and uploaded deployment archives. */
|
|
4
|
+
export function findActorEntryFile(hasFile) {
|
|
5
|
+
return [ACTOR_ENTRY_FILE, LEGACY_ACTOR_ENTRY_FILE].find(hasFile);
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Keep this key and cutoff aligned with the Actors-only flag in PostHog. */
|
|
2
|
+
export declare const ACTORS_ONLY_FLAG = "Actors-only";
|
|
3
|
+
export declare const ACTORS_ONLY_ROLLOUT_AT = "2026-09-23T18:23:42.000Z";
|
|
4
|
+
/** Preserve legacy accounts when flags are unavailable, including older identities without a date. */
|
|
5
|
+
export declare function actorsOnlyDefault(createdAt?: string): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Keep this key and cutoff aligned with the Actors-only flag in PostHog. */
|
|
2
|
+
export const ACTORS_ONLY_FLAG = "Actors-only";
|
|
3
|
+
export const ACTORS_ONLY_ROLLOUT_AT = "2026-09-23T18:23:42.000Z";
|
|
4
|
+
/** Preserve legacy accounts when flags are unavailable, including older identities without a date. */
|
|
5
|
+
export function actorsOnlyDefault(createdAt) {
|
|
6
|
+
return !!createdAt && Date.parse(createdAt) >= Date.parse(ACTORS_ONLY_ROLLOUT_AT);
|
|
7
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
13
13
|
displayName: z.ZodString;
|
|
14
14
|
firstName: z.ZodNullable<z.ZodString>;
|
|
15
15
|
lastName: z.ZodNullable<z.ZodString>;
|
|
16
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
16
17
|
displayPhotoUrl: z.ZodString;
|
|
17
18
|
}, z.core.$strip>;
|
|
18
19
|
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
@@ -22,6 +23,7 @@ export declare const userSessionSchema: z.ZodObject<{
|
|
|
22
23
|
displayName: z.ZodString;
|
|
23
24
|
firstName: z.ZodNullable<z.ZodString>;
|
|
24
25
|
lastName: z.ZodNullable<z.ZodString>;
|
|
26
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
25
27
|
displayPhotoUrl: z.ZodString;
|
|
26
28
|
organizationId: z.ZodString;
|
|
27
29
|
organizationName: z.ZodString;
|
|
@@ -29,6 +31,7 @@ export declare const userSessionSchema: z.ZodObject<{
|
|
|
29
31
|
user: "user";
|
|
30
32
|
admin: "admin";
|
|
31
33
|
}>>;
|
|
34
|
+
actorsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
32
35
|
}, z.core.$strip>;
|
|
33
36
|
export type UserSession = z.infer<typeof userSessionSchema>;
|
|
34
37
|
export declare const organizationSchema: z.ZodObject<{
|
|
@@ -14212,6 +14215,7 @@ export declare const projectDetailResponseSchema: z.ZodObject<{
|
|
|
14212
14215
|
isSelfHosted: z.ZodBoolean;
|
|
14213
14216
|
hasSigningSecret: z.ZodBoolean;
|
|
14214
14217
|
hasProjectApiKey: z.ZodBoolean;
|
|
14218
|
+
actorTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14215
14219
|
jobs: z.ZodArray<z.ZodObject<{
|
|
14216
14220
|
id: z.ZodString;
|
|
14217
14221
|
name: z.ZodString;
|
package/dist/types.js
CHANGED
|
@@ -12,12 +12,14 @@ export const userProfileSchema = z.object({
|
|
|
12
12
|
displayName: z.string(),
|
|
13
13
|
firstName: z.string().nullable(),
|
|
14
14
|
lastName: z.string().nullable(),
|
|
15
|
+
createdAt: z.string().optional(),
|
|
15
16
|
displayPhotoUrl: z.string()
|
|
16
17
|
});
|
|
17
18
|
export const userSessionSchema = userProfileSchema.extend({
|
|
18
19
|
organizationId: z.string(),
|
|
19
20
|
organizationName: z.string(),
|
|
20
|
-
roles: z.array(roleSchema)
|
|
21
|
+
roles: z.array(roleSchema),
|
|
22
|
+
actorsOnly: z.boolean().optional()
|
|
21
23
|
});
|
|
22
24
|
export const organizationSchema = z.object({
|
|
23
25
|
id: z.string(),
|
|
@@ -624,6 +626,7 @@ export const projectDetailResponseSchema = z.object({
|
|
|
624
626
|
isSelfHosted: z.boolean(),
|
|
625
627
|
hasSigningSecret: z.boolean(),
|
|
626
628
|
hasProjectApiKey: z.boolean(),
|
|
629
|
+
actorTypes: z.array(z.string()).optional(),
|
|
627
630
|
jobs: z.array(z.object({
|
|
628
631
|
id: z.string(),
|
|
629
632
|
name: z.string(),
|