@getuserfeedback/protocol 0.5.12 → 0.6.1
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/app-event.d.ts +274 -274
- package/dist/app-event.d.ts.map +1 -1
- package/dist/app-event.js +16 -16
- package/dist/client-meta.d.ts +13 -13
- package/dist/client-meta.d.ts.map +1 -1
- package/dist/client-meta.js +6 -6
- package/dist/errors.d.ts +73 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +43 -0
- package/dist/flow-assignments.d.ts +262 -183
- package/dist/flow-assignments.d.ts.map +1 -1
- package/dist/flow-assignments.js +17 -16
- package/dist/identity-type.d.ts +2 -2
- package/dist/identity-type.d.ts.map +1 -1
- package/dist/identity-type.js +13 -15
- package/dist/index.d.ts +87 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/public-grant-scope.d.ts +3 -3
- package/dist/public-grant-scope.d.ts.map +1 -1
- package/dist/public-grant-scope.js +1 -1
- package/dist/runtime-endpoints.d.ts +4 -4
- package/dist/runtime-endpoints.d.ts.map +1 -1
- package/dist/runtime-endpoints.js +4 -6
- package/dist/scopes.d.ts +2 -2
- package/dist/scopes.d.ts.map +1 -1
- package/dist/scopes.js +1 -1
- package/dist/trpc-envelope.d.ts +4 -4
- package/dist/trpc-envelope.d.ts.map +1 -1
- package/dist/trpc-envelope.js +1 -1
- package/dist/version-resolution.d.ts +5 -5
- package/dist/version-resolution.d.ts.map +1 -1
- package/dist/version-resolution.js +2 -2
- package/dist/widget-commands.d.ts +108 -108
- package/dist/widget-commands.d.ts.map +1 -1
- package/dist/widget-commands.js +30 -56
- package/dist/widget-config.d.ts +161 -245
- package/dist/widget-config.d.ts.map +1 -1
- package/dist/widget-config.js +22 -36
- package/package.json +1 -1
package/dist/flow-assignments.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
import { appEventCapabilitySchema, appEventFlagSchema, appEventIdentitySchema, } from "./app-event.js";
|
|
3
3
|
export const flowAssignmentStatusSchema = z.enum([
|
|
4
4
|
"pending",
|
|
@@ -16,16 +16,16 @@ export const flowAssignmentTargetingContextSchema = z.object({
|
|
|
16
16
|
capabilities: z.optional(z.array(appEventCapabilitySchema)),
|
|
17
17
|
});
|
|
18
18
|
export const flowAssignmentRecipientRequestSchema = z.object({
|
|
19
|
-
identities: z.array(appEventIdentitySchema)
|
|
19
|
+
identities: z._default(z.array(appEventIdentitySchema), []),
|
|
20
20
|
context: z.optional(flowAssignmentTargetingContextSchema),
|
|
21
21
|
at: z.optional(z.number()),
|
|
22
22
|
});
|
|
23
23
|
export const flowAssignmentRecordSchema = z.object({
|
|
24
|
-
flowAssignmentId: z.string().trim().
|
|
25
|
-
flowId: z.string().trim().
|
|
26
|
-
holdGroupToken: z.optional(z.string().trim().
|
|
27
|
-
presentedFlowVersionId: z.optional(z.string().trim().
|
|
28
|
-
latestFlowVersionId: z.string().trim().
|
|
24
|
+
flowAssignmentId: z.string().check(z.trim(), z.minLength(1)),
|
|
25
|
+
flowId: z.string().check(z.trim(), z.minLength(1)),
|
|
26
|
+
holdGroupToken: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
27
|
+
presentedFlowVersionId: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
28
|
+
latestFlowVersionId: z.string().check(z.trim(), z.minLength(1)),
|
|
29
29
|
status: flowAssignmentStatusSchema,
|
|
30
30
|
assignedAt: z.string(),
|
|
31
31
|
expiresAt: z.optional(z.string()),
|
|
@@ -43,9 +43,9 @@ export const listPendingFlowAssignmentsResponseSchema = z.object({
|
|
|
43
43
|
flowAssignments: z.array(flowAssignmentRecordSchema),
|
|
44
44
|
});
|
|
45
45
|
export const claimPendingFlowAssignmentsRequestSchema = z.object({
|
|
46
|
-
identities: z.array(appEventIdentitySchema)
|
|
46
|
+
identities: z._default(z.array(appEventIdentitySchema), []),
|
|
47
47
|
context: z.optional(flowAssignmentTargetingContextSchema),
|
|
48
|
-
holdOwnerKey: z.string().trim().
|
|
48
|
+
holdOwnerKey: z.string().check(z.trim(), z.minLength(1)),
|
|
49
49
|
at: z.optional(z.number()),
|
|
50
50
|
limit: z.optional(z.number()),
|
|
51
51
|
});
|
|
@@ -54,16 +54,17 @@ export const claimPendingFlowAssignmentsResponseSchema = z.object({
|
|
|
54
54
|
flowAssignments: z.array(flowAssignmentRecordSchema),
|
|
55
55
|
});
|
|
56
56
|
export const updateFlowAssignmentLifecycleRequestSchema = z.object({
|
|
57
|
-
identities: z.array(appEventIdentitySchema)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
identities: z._default(z.array(appEventIdentitySchema), []),
|
|
58
|
+
context: z.optional(flowAssignmentTargetingContextSchema),
|
|
59
|
+
flowAssignmentId: z.string().check(z.trim(), z.minLength(1)),
|
|
60
|
+
flowVersionId: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
61
|
+
holdGroupToken: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
61
62
|
at: z.optional(z.number()),
|
|
62
63
|
});
|
|
63
64
|
export const releaseFlowAssignmentClaimRequestSchema = z.object({
|
|
64
|
-
identities: z.array(appEventIdentitySchema)
|
|
65
|
-
holdGroupToken: z.string().trim().
|
|
66
|
-
holdOwnerKey: z.optional(z.string().trim().
|
|
65
|
+
identities: z._default(z.array(appEventIdentitySchema), []),
|
|
66
|
+
holdGroupToken: z.string().check(z.trim(), z.minLength(1)),
|
|
67
|
+
holdOwnerKey: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
67
68
|
at: z.optional(z.number()),
|
|
68
69
|
});
|
|
69
70
|
export const releaseFlowAssignmentClaimResponseSchema = z.object({
|
package/dist/identity-type.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
export declare const IDENTITY_TYPE_VALUES: readonly ["anonymousId", "userId", "traits.email", "traits.phone", "context.device.id", "context.device.advertisingId", "context.device.token"];
|
|
3
3
|
export type IdentityTypeValue = (typeof IDENTITY_TYPE_VALUES)[number];
|
|
4
4
|
export declare const isIdentityTypeValue: (value: string) => value is IdentityTypeValue;
|
|
5
5
|
export declare const getIdentityTypeSuggestion: (value: string) => IdentityTypeValue | null;
|
|
6
6
|
export declare const buildIdentityTypeGuidanceMessage: (value: string) => string;
|
|
7
|
-
export declare const appEventIdentityTypeSchema: z.
|
|
7
|
+
export declare const appEventIdentityTypeSchema: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
8
8
|
//# sourceMappingURL=identity-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-type.d.ts","sourceRoot":"","sources":["../src/identity-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"identity-type.d.ts","sourceRoot":"","sources":["../src/identity-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,oBAAoB,iJAQvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAsBtE,eAAO,MAAM,mBAAmB,GAC/B,OAAO,MAAM,KACX,KAAK,IAAI,iBACkD,CAAC;AAK/D,eAAO,MAAM,yBAAyB,GACrC,OAAO,MAAM,KACX,iBAAiB,GAAG,IACuD,CAAC;AAE/E,eAAO,MAAM,gCAAgC,GAAI,OAAO,MAAM,KAAG,MAehE,CAAC;AAkBF,eAAO,MAAM,0BAA0B,gNAWtC,CAAC"}
|
package/dist/identity-type.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
export const IDENTITY_TYPE_VALUES = [
|
|
3
3
|
"anonymousId",
|
|
4
4
|
"userId",
|
|
@@ -37,23 +37,21 @@ export const buildIdentityTypeGuidanceMessage = (value) => {
|
|
|
37
37
|
const mappingExamples = COMMON_IDENTITY_TYPE_MAPPINGS.map(([from, to]) => `${from} -> ${to}`).join(", ");
|
|
38
38
|
return `Unsupported identity type ${displayValue}. Use one of: ${IDENTITY_TYPE_VALUES.join(", ")}. Common mappings: ${mappingExamples}.`;
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
.min(1, "Identity type is required.")
|
|
44
|
-
.superRefine((value, ctx) => {
|
|
45
|
-
if (!isIdentityTypeValue(value)) {
|
|
46
|
-
ctx.addIssue({
|
|
47
|
-
code: "custom",
|
|
48
|
-
fatal: true,
|
|
49
|
-
message: buildIdentityTypeGuidanceMessage(value),
|
|
50
|
-
});
|
|
40
|
+
const identityTypeInputSchema = z.string().check(z.trim(), z.minLength(1, { error: "Identity type is required." }), z.check((ctx) => {
|
|
41
|
+
if (isIdentityTypeValue(ctx.value)) {
|
|
42
|
+
return;
|
|
51
43
|
}
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
ctx.issues.push({
|
|
45
|
+
code: "custom",
|
|
46
|
+
input: ctx.value,
|
|
47
|
+
message: buildIdentityTypeGuidanceMessage(ctx.value),
|
|
48
|
+
continue: false,
|
|
49
|
+
});
|
|
50
|
+
}));
|
|
51
|
+
export const appEventIdentityTypeSchema = z.pipe(identityTypeInputSchema, z.transform((value) => {
|
|
54
52
|
const parsed = parseIdentityTypeValue(value);
|
|
55
53
|
if (parsed === null) {
|
|
56
54
|
throw new Error(`Identity type should have been validated before transform: ${value}`);
|
|
57
55
|
}
|
|
58
56
|
return parsed;
|
|
59
|
-
});
|
|
57
|
+
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { type AppEventCapability as AppEventCapabilityAlias, type AppEventFlag as AppEventFlagAlias } from "./app-event.js";
|
|
1
2
|
export { type AppEventCapability, type AppEventFlag, type AppEventPayload, type AppEventTrackInput, appEventBaseSchema, appEventCapabilitySchema, appEventContextSchema, appEventFlagProviderSchema, appEventFlagSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
2
3
|
export { type ClientMeta, clientMetaSchema, } from "./client-meta.js";
|
|
3
4
|
export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
|
|
5
|
+
export type { ErrorEvent, ProtocolErrorCode } from "./errors.js";
|
|
6
|
+
export { ErrorCategory, ErrorCategorySchema, ErrorEventSchema, ProtocolError, } from "./errors.js";
|
|
4
7
|
export { type ClaimPendingFlowAssignmentsRequest, type ClaimPendingFlowAssignmentsResponse, claimPendingFlowAssignmentsRequestSchema, claimPendingFlowAssignmentsResponseSchema, type FlowAssignmentRecipientRequest, type FlowAssignmentRecord, type FlowAssignmentStatus, type FlowAssignmentTargetingContext, flowAssignmentRecipientRequestSchema, flowAssignmentRecordSchema, flowAssignmentStatusSchema, flowAssignmentTargetingContextSchema, type ListPendingFlowAssignmentsResponse, listPendingFlowAssignmentsResponseSchema, nullableUpdateFlowAssignmentLifecycleResponseSchema, type ReleaseFlowAssignmentClaimRequest, type ReleaseFlowAssignmentClaimResponse, releaseFlowAssignmentClaimRequestSchema, releaseFlowAssignmentClaimResponseSchema, type UpdateFlowAssignmentLifecycleRequest, type UpdateFlowAssignmentLifecycleResponse, updateFlowAssignmentLifecycleRequestSchema, updateFlowAssignmentLifecycleResponseSchema, } from "./flow-assignments.js";
|
|
5
8
|
export { buildIdentityTypeGuidanceMessage, getIdentityTypeSuggestion, IDENTITY_TYPE_VALUES, type IdentityTypeValue, isIdentityTypeValue, } from "./identity-type.js";
|
|
6
9
|
export { isPublicGrantScope, type PublicGrantScope, publicGrantScopeIdSchema, } from "./public-grant-scope.js";
|
|
@@ -9,5 +12,88 @@ export { getScopeMeta, isScope, listScopes, SCOPE_IDS, type Scope, scopeIdSchema
|
|
|
9
12
|
export { type TrpcSuccessResponse, trpcSuccessResponseSchema, } from "./trpc-envelope.js";
|
|
10
13
|
export { type FlowVersionResolution, flowVersionResolutionSchema, type ThemeVersionResolution, themeVersionResolutionSchema, } from "./version-resolution.js";
|
|
11
14
|
export { type PublicCommandPayload, parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
|
|
12
|
-
export { type AuthConfigInput, type AuthJwtConfigInput, authConfigInputSchema, authJwtConfigInputSchema, type ColorSchemeConfigInput, type ConfigureOptions, type ConsentConfigInput, type CoreInstanceConfig, type CoreInstanceConfigInput, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, coreInstanceConfigSchema, type DebugConfigInput, debugInputSchema, type
|
|
15
|
+
export { type AuthConfigInput, type AuthJwtConfigInput, authConfigInputSchema, authJwtConfigInputSchema, type ColorSchemeConfigInput, type ConfigureOptions, type ConsentConfigInput, type CoreInstanceConfig, type CoreInstanceConfigInput, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, coreInstanceConfigSchema, type DebugConfigInput, debugInputSchema, type FlagsConfigInput, flagsConfigInputSchema, type HostCapabilitiesConfigInput, hostCapabilitiesConfigInputSchema, type IdentityConfigInput, INSTANCE_CONFIG_UPDATE_KEYS, type InitOptions, type InstanceUpdateableConfig, identityConfigInputSchema, initOptionsSchema, instanceUpdateableConfigSchema, type TelemetryConfigInput, telemetryConfigInputSchema, } from "./widget-config.js";
|
|
16
|
+
/** @deprecated Prefer {@link AppEventFlag}; legacy name from root protocol surface. */
|
|
17
|
+
export type FeatureFlagConfigInput = AppEventFlagAlias;
|
|
18
|
+
/** @deprecated Prefer {@link appEventFlagSchema}; legacy name from root protocol surface. */
|
|
19
|
+
export declare const featureFlagConfigInputSchema: import("zod/mini").ZodMiniObject<{
|
|
20
|
+
key: import("zod/mini").ZodMiniString<string>;
|
|
21
|
+
target: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
22
|
+
value: import("zod/mini").ZodMiniType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
23
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
24
|
+
} | null)[] | {
|
|
25
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
26
|
+
} | null)[] | {
|
|
27
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
28
|
+
} | null)[] | {
|
|
29
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
30
|
+
} | null)[] | {
|
|
31
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
32
|
+
} | null)[] | {
|
|
33
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
34
|
+
} | null)[] | {
|
|
35
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
36
|
+
} | null)[] | {
|
|
37
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
38
|
+
} | null)[] | {
|
|
39
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
40
|
+
} | null)[] | {
|
|
41
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
42
|
+
} | null)[] | {
|
|
43
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
44
|
+
} | null)[] | {
|
|
45
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
46
|
+
} | null, unknown, import("zod/v4/core").$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
47
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
48
|
+
} | null)[] | {
|
|
49
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
50
|
+
} | null)[] | {
|
|
51
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
52
|
+
} | null)[] | {
|
|
53
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
54
|
+
} | null)[] | {
|
|
55
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
56
|
+
} | null)[] | {
|
|
57
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
58
|
+
} | null)[] | {
|
|
59
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
60
|
+
} | null)[] | {
|
|
61
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
62
|
+
} | null)[] | {
|
|
63
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
64
|
+
} | null)[] | {
|
|
65
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
66
|
+
} | null)[] | {
|
|
67
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
68
|
+
} | null)[] | {
|
|
69
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
70
|
+
} | null, unknown>>;
|
|
71
|
+
variant: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
72
|
+
origin: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniEnum<{
|
|
73
|
+
runtime_config: "runtime_config";
|
|
74
|
+
trigger_context: "trigger_context";
|
|
75
|
+
provider_sync: "provider_sync";
|
|
76
|
+
api: "api";
|
|
77
|
+
}>>;
|
|
78
|
+
provider: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
79
|
+
name: import("zod/mini").ZodMiniString<string>;
|
|
80
|
+
project: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
81
|
+
environment: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
82
|
+
}, import("zod/v4/core").$strip>>;
|
|
83
|
+
status: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
84
|
+
reason: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
85
|
+
evaluatedAt: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
86
|
+
}, import("zod/v4/core").$strip>;
|
|
87
|
+
/** @deprecated Prefer {@link AppEventCapability}; legacy name from root protocol surface. */
|
|
88
|
+
export type RuntimeCapabilityConfigInput = AppEventCapabilityAlias;
|
|
89
|
+
/** @deprecated Prefer {@link appEventCapabilitySchema}; legacy name from root protocol surface. */
|
|
90
|
+
export declare const runtimeCapabilityConfigInputSchema: import("zod/mini").ZodMiniObject<{
|
|
91
|
+
key: import("zod/mini").ZodMiniString<string>;
|
|
92
|
+
source: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
93
|
+
provider: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
94
|
+
name: import("zod/mini").ZodMiniString<string>;
|
|
95
|
+
project: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
96
|
+
environment: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
|
|
97
|
+
}, import("zod/v4/core").$strip>>;
|
|
98
|
+
}, import("zod/v4/core").$strip>;
|
|
13
99
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,KAAK,UAAU,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACN,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,wCAAwC,EACxC,yCAAyC,EACzC,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,oCAAoC,EACpC,0BAA0B,EAC1B,0BAA0B,EAC1B,oCAAoC,EACpC,KAAK,kCAAkC,EACvC,wCAAwC,EACxC,mDAAmD,EACnD,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,uCAAuC,EACvC,wCAAwC,EACxC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,0CAA0C,EAC1C,2CAA2C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,gCAAgC,EAChC,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,iBAAiB,EACtB,mBAAmB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,YAAY,EACZ,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,KAAK,EACV,aAAa,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,KAAK,mBAAmB,EACxB,yBAAyB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,4BAA4B,GAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,6BAA6B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { appEventCapabilitySchema as appEventCapabilitySchemaAlias, appEventFlagSchema as appEventFlagSchemaAlias, } from "./app-event.js";
|
|
1
2
|
export { appEventBaseSchema, appEventCapabilitySchema, appEventContextSchema, appEventFlagProviderSchema, appEventFlagSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
2
3
|
export { clientMetaSchema, } from "./client-meta.js";
|
|
3
4
|
export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
|
|
5
|
+
export { ErrorCategory, ErrorCategorySchema, ErrorEventSchema, ProtocolError, } from "./errors.js";
|
|
4
6
|
export { claimPendingFlowAssignmentsRequestSchema, claimPendingFlowAssignmentsResponseSchema, flowAssignmentRecipientRequestSchema, flowAssignmentRecordSchema, flowAssignmentStatusSchema, flowAssignmentTargetingContextSchema, listPendingFlowAssignmentsResponseSchema, nullableUpdateFlowAssignmentLifecycleResponseSchema, releaseFlowAssignmentClaimRequestSchema, releaseFlowAssignmentClaimResponseSchema, updateFlowAssignmentLifecycleRequestSchema, updateFlowAssignmentLifecycleResponseSchema, } from "./flow-assignments.js";
|
|
5
7
|
export { buildIdentityTypeGuidanceMessage, getIdentityTypeSuggestion, IDENTITY_TYPE_VALUES, isIdentityTypeValue, } from "./identity-type.js";
|
|
6
8
|
export { isPublicGrantScope, publicGrantScopeIdSchema, } from "./public-grant-scope.js";
|
|
@@ -9,4 +11,8 @@ export { getScopeMeta, isScope, listScopes, SCOPE_IDS, scopeIdSchema, } from "./
|
|
|
9
11
|
export { trpcSuccessResponseSchema, } from "./trpc-envelope.js";
|
|
10
12
|
export { flowVersionResolutionSchema, themeVersionResolutionSchema, } from "./version-resolution.js";
|
|
11
13
|
export { parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
|
|
12
|
-
export { authConfigInputSchema, authJwtConfigInputSchema, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, coreInstanceConfigSchema, debugInputSchema,
|
|
14
|
+
export { authConfigInputSchema, authJwtConfigInputSchema, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, coreInstanceConfigSchema, debugInputSchema, flagsConfigInputSchema, hostCapabilitiesConfigInputSchema, INSTANCE_CONFIG_UPDATE_KEYS, identityConfigInputSchema, initOptionsSchema, instanceUpdateableConfigSchema, telemetryConfigInputSchema, } from "./widget-config.js";
|
|
15
|
+
/** @deprecated Prefer {@link appEventFlagSchema}; legacy name from root protocol surface. */
|
|
16
|
+
export const featureFlagConfigInputSchema = appEventFlagSchemaAlias;
|
|
17
|
+
/** @deprecated Prefer {@link appEventCapabilitySchema}; legacy name from root protocol surface. */
|
|
18
|
+
export const runtimeCapabilityConfigInputSchema = appEventCapabilitySchemaAlias;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const publicGrantScopeIdSchema: z.
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
export declare const publicGrantScopeIdSchema: z.ZodMiniEnum<{
|
|
3
3
|
"analytics.storage": "analytics.storage";
|
|
4
4
|
"analytics.measurement": "analytics.measurement";
|
|
5
5
|
"personalization.storage": "personalization.storage";
|
|
@@ -7,6 +7,6 @@ export declare const publicGrantScopeIdSchema: z.ZodEnum<{
|
|
|
7
7
|
"ads.user_data": "ads.user_data";
|
|
8
8
|
"ads.personalization": "ads.personalization";
|
|
9
9
|
}>;
|
|
10
|
-
export type PublicGrantScope = z.
|
|
10
|
+
export type PublicGrantScope = z.output<typeof publicGrantScopeIdSchema>;
|
|
11
11
|
export declare function isPublicGrantScope(value: unknown): value is PublicGrantScope;
|
|
12
12
|
//# sourceMappingURL=public-grant-scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-grant-scope.d.ts","sourceRoot":"","sources":["../src/public-grant-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"public-grant-scope.d.ts","sourceRoot":"","sources":["../src/public-grant-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAkB9B,eAAO,MAAM,wBAAwB;;;;;;;EAA8B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const runtimeEndpointsSchema: z.
|
|
3
|
-
apiUrl: z.
|
|
4
|
-
coreUrl: z.
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
export declare const runtimeEndpointsSchema: z.ZodMiniObject<{
|
|
3
|
+
apiUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4
|
+
coreUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5
5
|
}, z.core.$strict>;
|
|
6
6
|
export type RuntimeEndpoints = z.output<typeof runtimeEndpointsSchema>;
|
|
7
7
|
export declare const resolveCoreUrl: (runtimeEndpoints: RuntimeEndpoints | undefined) => URL | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-endpoints.d.ts","sourceRoot":"","sources":["../src/runtime-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime-endpoints.d.ts","sourceRoot":"","sources":["../src/runtime-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAI9B,eAAO,MAAM,sBAAsB;;;kBAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAqBvE,eAAO,MAAM,cAAc,GAC1B,kBAAkB,gBAAgB,GAAG,SAAS,KAC5C,GAAG,GAAG,IAER,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC7B,kBAAkB,gBAAgB,GAAG,SAAS,KAC5C,GAAG,GAAG,IAaR,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC9B,kBAAkB,gBAAgB,GAAG,SAAS,KAC5C,GAAG,GAAG,IAaR,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
const absoluteUrlSchema = z.string().trim().url();
|
|
3
|
-
export const runtimeEndpointsSchema = z
|
|
4
|
-
.object({
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
const absoluteUrlSchema = z.string().check(z.trim(), z.url());
|
|
3
|
+
export const runtimeEndpointsSchema = z.strictObject({
|
|
5
4
|
apiUrl: z.optional(absoluteUrlSchema),
|
|
6
5
|
coreUrl: z.optional(absoluteUrlSchema),
|
|
7
|
-
})
|
|
8
|
-
.strict();
|
|
6
|
+
});
|
|
9
7
|
const parseAbsoluteUrl = (value) => {
|
|
10
8
|
if (!value) {
|
|
11
9
|
return null;
|
package/dist/scopes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
export declare const SCOPE_IDS: readonly [
|
|
3
3
|
"functionality.storage",
|
|
4
4
|
"security.storage",
|
|
@@ -9,7 +9,7 @@ export declare const SCOPE_IDS: readonly [
|
|
|
9
9
|
"ads.user_data",
|
|
10
10
|
"ads.personalization"
|
|
11
11
|
];
|
|
12
|
-
export declare const scopeIdSchema: z.
|
|
12
|
+
export declare const scopeIdSchema: z.ZodMiniEnum<{
|
|
13
13
|
"analytics.storage": "analytics.storage";
|
|
14
14
|
"analytics.measurement": "analytics.measurement";
|
|
15
15
|
"personalization.storage": "personalization.storage";
|
package/dist/scopes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,SAAS,EAAE,SAAS;IAChC,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,uBAAuB;IACvB,yBAAyB;IACzB,aAAa;IACb,eAAe;IACf,qBAAqB;CAUrB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;EAAoB,CAAC;AAE/C,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/C,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED,MAAM,MAAM,SAAS,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAqCF,wBAAgB,YAAY,CAAC,EAAE,EAAE,KAAK,GAAG,SAAS,CAEjD;AAED,wBAAgB,UAAU,IAAI,aAAa,CAAC;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,GAAG,SAAS,CAAC,CAKrE"}
|
package/dist/scopes.js
CHANGED
package/dist/trpc-envelope.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const trpcSuccessResponseSchema: z.
|
|
3
|
-
result: z.
|
|
4
|
-
data: z.
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
export declare const trpcSuccessResponseSchema: z.ZodMiniObject<{
|
|
3
|
+
result: z.ZodMiniObject<{
|
|
4
|
+
data: z.ZodMiniUnknown;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export type TrpcSuccessResponse = z.output<typeof trpcSuccessResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc-envelope.d.ts","sourceRoot":"","sources":["../src/trpc-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"trpc-envelope.d.ts","sourceRoot":"","sources":["../src/trpc-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/trpc-envelope.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const flowVersionResolutionSchema: z.
|
|
3
|
-
flowVersionId: z.
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
export declare const flowVersionResolutionSchema: z.ZodMiniObject<{
|
|
3
|
+
flowVersionId: z.ZodMiniString<string>;
|
|
4
4
|
}, z.core.$strip>;
|
|
5
|
-
export declare const themeVersionResolutionSchema: z.
|
|
6
|
-
themeVersionId: z.
|
|
5
|
+
export declare const themeVersionResolutionSchema: z.ZodMiniObject<{
|
|
6
|
+
themeVersionId: z.ZodMiniString<string>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type FlowVersionResolution = z.output<typeof flowVersionResolutionSchema>;
|
|
9
9
|
export type ThemeVersionResolution = z.output<typeof themeVersionResolutionSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-resolution.d.ts","sourceRoot":"","sources":["../src/version-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"version-resolution.d.ts","sourceRoot":"","sources":["../src/version-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAI9B,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,2BAA2B,CAClC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,4BAA4B,CACnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
const versionIdSchema = z.string().trim().
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
const versionIdSchema = z.string().check(z.trim(), z.minLength(1));
|
|
3
3
|
export const flowVersionResolutionSchema = z.object({
|
|
4
4
|
flowVersionId: versionIdSchema,
|
|
5
5
|
});
|