@getuserfeedback/protocol 0.5.11 → 0.5.12

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.
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * {@link FlowState} lives in `./host-event-contract` (re-exported from the `@getuserfeedback/protocol/host` barrel).
5
5
  */
6
+ import type { Scope } from "../scopes.js";
6
7
  /** Supported identity kinds for analytics and tracking. */
7
8
  export type AppEventIdentityType = "anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token";
8
9
  /** A single identity (e.g. userId or anonymousId) and its value. */
@@ -139,10 +140,13 @@ export type TelemetryConfig = {
139
140
  export type DebugConfig = boolean | string | string[];
140
141
  /** Status of a consent decision (pending, granted, denied, revoked). */
141
142
  export type ConsentStatus = "pending" | "granted" | "denied" | "revoked";
142
- /** Supported consent scope identifiers for explicit allow-list grants. */
143
- export type GrantScope = "analytics.storage" | "analytics.measurement" | "personalization.storage" | "ads.storage" | "ads.user_data" | "ads.personalization";
143
+ /**
144
+ * Supported consent scope identifiers for explicit allow-list grants (full CMP-aligned set).
145
+ * Alias for {@link Scope}; kept for backward-compatible imports.
146
+ */
147
+ export type GrantScope = Scope;
144
148
  /** Consent configuration. Use a single decision for all scopes, or provide an explicit allow-list of granted scopes. */
145
- export type ConsentConfig = ConsentStatus | GrantScope[];
149
+ export type ConsentConfig = ConsentStatus | Scope[];
146
150
  /** Auth configuration (e.g. JWT for authenticated flows). */
147
151
  export type AuthConfig = {
148
152
  jwt?: {
@@ -178,7 +182,7 @@ export type ClientOptions = {
178
182
  * Default: `granted` (all scopes).
179
183
  *
180
184
  * Accepts either a single decision (`granted` | `denied` | `pending` | `revoked`)
181
- * or an explicit allow-list of additional granted scopes (`GrantScope[]`).
185
+ * or an explicit allow-list of additional granted scopes (`Scope[]`).
182
186
  *
183
187
  * For strict privacy guarantees, use `pending` at init time and later call `client.configure({ consent })` after
184
188
  * the user makes a consent cho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AAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;YACnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;SACnC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACpC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,10 +3,11 @@ export { type ClientMeta, clientMetaSchema, } from "./client-meta.js";
3
3
  export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
4
4
  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
5
  export { buildIdentityTypeGuidanceMessage, getIdentityTypeSuggestion, IDENTITY_TYPE_VALUES, type IdentityTypeValue, isIdentityTypeValue, } from "./identity-type.js";
6
+ export { isPublicGrantScope, type PublicGrantScope, publicGrantScopeIdSchema, } from "./public-grant-scope.js";
6
7
  export { type RuntimeEndpoints, resolveApiBaseUrl, resolveCoreUrl, resolveTrpcBaseUrl, runtimeEndpointsSchema, } from "./runtime-endpoints.js";
7
8
  export { getScopeMeta, isScope, listScopes, SCOPE_IDS, type Scope, scopeIdSchema, } from "./scopes.js";
8
9
  export { type TrpcSuccessResponse, trpcSuccessResponseSchema, } from "./trpc-envelope.js";
9
10
  export { type FlowVersionResolution, flowVersionResolutionSchema, type ThemeVersionResolution, themeVersionResolutionSchema, } from "./version-resolution.js";
10
11
  export { type PublicCommandPayload, parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
11
- export { type ColorSchemeConfigInput, type ConfigureOptions, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, type DebugConfigInput, debugInputSchema, type FlagsConfigInput, flagsConfigInputSchema, type HostCapabilitiesConfigInput, hostCapabilitiesConfigInputSchema, type InitOptions, initOptionsSchema, isPublicGrantScope, type PublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.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 FeatureFlagConfigInput, type FlagsConfigInput, featureFlagConfigInputSchema, flagsConfigInputSchema, type HostCapabilitiesConfigInput, hostCapabilitiesConfigInputSchema, type IdentityConfigInput, INSTANCE_CONFIG_UPDATE_KEYS, type InitOptions, type InstanceUpdateableConfig, identityConfigInputSchema, initOptionsSchema, instanceUpdateableConfigSchema, type RuntimeCapabilityConfigInput, runtimeCapabilityConfigInputSchema, type TelemetryConfigInput, telemetryConfigInputSchema, } from "./widget-config.js";
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAC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BAAgB,EACrB,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,iCAAiC,EACjC,KAAK,mBAAmB,EACxB,2BAA2B,EAC3B,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAC7B,yBAAyB,EACzB,iBAAiB,EACjB,8BAA8B,EAC9B,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,oBAAoB,EACzB,0BAA0B,GAC1B,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -3,9 +3,10 @@ export { clientMetaSchema, } from "./client-meta.js";
3
3
  export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
4
4
  export { claimPendingFlowAssignmentsRequestSchema, claimPendingFlowAssignmentsResponseSchema, flowAssignmentRecipientRequestSchema, flowAssignmentRecordSchema, flowAssignmentStatusSchema, flowAssignmentTargetingContextSchema, listPendingFlowAssignmentsResponseSchema, nullableUpdateFlowAssignmentLifecycleResponseSchema, releaseFlowAssignmentClaimRequestSchema, releaseFlowAssignmentClaimResponseSchema, updateFlowAssignmentLifecycleRequestSchema, updateFlowAssignmentLifecycleResponseSchema, } from "./flow-assignments.js";
5
5
  export { buildIdentityTypeGuidanceMessage, getIdentityTypeSuggestion, IDENTITY_TYPE_VALUES, isIdentityTypeValue, } from "./identity-type.js";
6
+ export { isPublicGrantScope, publicGrantScopeIdSchema, } from "./public-grant-scope.js";
6
7
  export { resolveApiBaseUrl, resolveCoreUrl, resolveTrpcBaseUrl, runtimeEndpointsSchema, } from "./runtime-endpoints.js";
7
8
  export { getScopeMeta, isScope, listScopes, SCOPE_IDS, scopeIdSchema, } from "./scopes.js";
8
9
  export { trpcSuccessResponseSchema, } from "./trpc-envelope.js";
9
10
  export { flowVersionResolutionSchema, themeVersionResolutionSchema, } from "./version-resolution.js";
10
11
  export { parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
11
- export { colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, debugInputSchema, flagsConfigInputSchema, hostCapabilitiesConfigInputSchema, initOptionsSchema, isPublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.js";
12
+ export { authConfigInputSchema, authJwtConfigInputSchema, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, coreInstanceConfigSchema, debugInputSchema, featureFlagConfigInputSchema, flagsConfigInputSchema, hostCapabilitiesConfigInputSchema, INSTANCE_CONFIG_UPDATE_KEYS, identityConfigInputSchema, initOptionsSchema, instanceUpdateableConfigSchema, runtimeCapabilityConfigInputSchema, telemetryConfigInputSchema, } from "./widget-config.js";
@@ -0,0 +1,12 @@
1
+ import * as z from "zod";
2
+ export declare const publicGrantScopeIdSchema: z.ZodEnum<{
3
+ "analytics.storage": "analytics.storage";
4
+ "analytics.measurement": "analytics.measurement";
5
+ "personalization.storage": "personalization.storage";
6
+ "ads.storage": "ads.storage";
7
+ "ads.user_data": "ads.user_data";
8
+ "ads.personalization": "ads.personalization";
9
+ }>;
10
+ export type PublicGrantScope = z.infer<typeof publicGrantScopeIdSchema>;
11
+ export declare function isPublicGrantScope(value: unknown): value is PublicGrantScope;
12
+ //# sourceMappingURL=public-grant-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-grant-scope.d.ts","sourceRoot":"","sources":["../src/public-grant-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAkBzB,eAAO,MAAM,wBAAwB;;;;;;;EAA8B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E"}
@@ -0,0 +1,13 @@
1
+ import * as z from "zod";
2
+ const publicGrantScopeIds = [
3
+ "analytics.storage",
4
+ "analytics.measurement",
5
+ "personalization.storage",
6
+ "ads.storage",
7
+ "ads.user_data",
8
+ "ads.personalization",
9
+ ];
10
+ export const publicGrantScopeIdSchema = z.enum(publicGrantScopeIds);
11
+ export function isPublicGrantScope(value) {
12
+ return publicGrantScopeIdSchema.safeParse(value).success;
13
+ }
package/dist/scopes.d.ts CHANGED
@@ -10,14 +10,14 @@ export declare const SCOPE_IDS: readonly [
10
10
  "ads.personalization"
11
11
  ];
12
12
  export declare const scopeIdSchema: z.ZodEnum<{
13
- "functionality.storage": "functionality.storage";
14
- "security.storage": "security.storage";
15
13
  "analytics.storage": "analytics.storage";
16
14
  "analytics.measurement": "analytics.measurement";
17
15
  "personalization.storage": "personalization.storage";
18
16
  "ads.storage": "ads.storage";
19
17
  "ads.user_data": "ads.user_data";
20
18
  "ads.personalization": "ads.personalization";
19
+ "functionality.storage": "functionality.storage";
20
+ "security.storage": "security.storage";
21
21
  }>;
22
22
  export type Scope = (typeof SCOPE_IDS)[number];
23
23
  export declare function isScope(value: unknown): value is Scope;
@@ -92,6 +92,8 @@ export declare const publicCommandPayloadSchema: z.ZodUnion<readonly [z.ZodDiscr
92
92
  "ads.storage": "ads.storage";
93
93
  "ads.user_data": "ads.user_data";
94
94
  "ads.personalization": "ads.personalization";
95
+ "functionality.storage": "functionality.storage";
96
+ "security.storage": "security.storage";
95
97
  }>>]>>;
96
98
  auth: z.ZodOptional<z.ZodObject<{
97
99
  jwt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -124,6 +126,8 @@ export declare const publicCommandPayloadSchema: z.ZodUnion<readonly [z.ZodDiscr
124
126
  "ads.storage": "ads.storage";
125
127
  "ads.user_data": "ads.user_data";
126
128
  "ads.personalization": "ads.personalization";
129
+ "functionality.storage": "functionality.storage";
130
+ "security.storage": "security.storage";
127
131
  }>>]>>;
128
132
  clientMeta: z.ZodOptional<z.ZodObject<{
129
133
  loader: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"widget-commands.d.ts","sourceRoot":"","sources":["../src/widget-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAEhB,MAAM,oBAAoB,CAAC;AAmB5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;EAAmC,CAAC;AA6C9E,eAAO,MAAM,qBAAqB;;;;;;;;;4BAahC,CAAC;AAiBH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwDrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAE5D;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAEtE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAEvE"}
1
+ {"version":3,"file":"widget-commands.d.ts","sourceRoot":"","sources":["../src/widget-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAEhB,MAAM,oBAAoB,CAAC;AAmB5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;EAAmC,CAAC;AA6C9E,eAAO,MAAM,qBAAqB;;;;;;;;;4BAahC,CAAC;AAiBH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwDrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAE5D;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAEtE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAEvE"}
@@ -1,14 +1,5 @@
1
1
  import * as z from "zod";
2
- export declare const publicGrantScopeIdSchema: z.ZodEnum<{
3
- "analytics.storage": "analytics.storage";
4
- "analytics.measurement": "analytics.measurement";
5
- "personalization.storage": "personalization.storage";
6
- "ads.storage": "ads.storage";
7
- "ads.user_data": "ads.user_data";
8
- "ads.personalization": "ads.personalization";
9
- }>;
10
- export type PublicGrantScope = z.infer<typeof publicGrantScopeIdSchema>;
11
- export declare function isPublicGrantScope(value: unknown): value is PublicGrantScope;
2
+ import { type AppEventCapability, type AppEventFlag } from "./app-event.js";
12
3
  export declare const colorSchemeConfigInputSchema: z.ZodUnion<readonly [z.ZodObject<{
13
4
  autoDetectColorScheme: z.ZodArray<z.ZodString>;
14
5
  }, z.core.$strict>, z.ZodEnum<{
@@ -17,6 +8,10 @@ export declare const colorSchemeConfigInputSchema: z.ZodUnion<readonly [z.ZodObj
17
8
  system: "system";
18
9
  }>]>;
19
10
  export type ColorSchemeConfigInput = z.output<typeof colorSchemeConfigInputSchema>;
11
+ export declare const telemetryConfigInputSchema: z.ZodObject<{
12
+ enabled: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$strip>;
14
+ export type TelemetryConfigInput = z.output<typeof telemetryConfigInputSchema>;
20
15
  export declare const consentConfigInputSchema: z.ZodUnion<readonly [z.ZodEnum<{
21
16
  pending: "pending";
22
17
  granted: "granted";
@@ -29,15 +24,28 @@ export declare const consentConfigInputSchema: z.ZodUnion<readonly [z.ZodEnum<{
29
24
  "ads.storage": "ads.storage";
30
25
  "ads.user_data": "ads.user_data";
31
26
  "ads.personalization": "ads.personalization";
27
+ "functionality.storage": "functionality.storage";
28
+ "security.storage": "security.storage";
32
29
  }>>]>;
33
30
  export type ConsentConfigInput = z.output<typeof consentConfigInputSchema>;
34
31
  export declare const debugInputSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>;
35
32
  export type DebugConfigInput = z.output<typeof debugInputSchema>;
33
+ export declare const authJwtConfigInputSchema: z.ZodObject<{
34
+ token: z.ZodString;
35
+ }, z.core.$strip>;
36
+ export type AuthJwtConfigInput = z.output<typeof authJwtConfigInputSchema>;
36
37
  export declare const authConfigInputSchema: z.ZodObject<{
37
38
  jwt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
38
39
  token: z.ZodString;
39
40
  }, z.core.$strip>, z.ZodNull]>>;
40
41
  }, z.core.$strip>;
42
+ export type AuthConfigInput = z.output<typeof authConfigInputSchema>;
43
+ export declare const identityConfigInputSchema: z.ZodObject<{
44
+ anonymousId: z.ZodOptional<z.ZodString>;
45
+ userId: z.ZodOptional<z.ZodString>;
46
+ traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
+ }, z.core.$strip>;
48
+ export type IdentityConfigInput = z.output<typeof identityConfigInputSchema>;
41
49
  export declare const flagsConfigInputSchema: z.ZodArray<z.ZodObject<{
42
50
  key: z.ZodString;
43
51
  target: z.ZodOptional<z.ZodString>;
@@ -117,6 +125,89 @@ export declare const hostCapabilitiesConfigInputSchema: z.ZodArray<z.ZodObject<{
117
125
  }, z.core.$strip>>;
118
126
  }, z.core.$strip>>;
119
127
  export type HostCapabilitiesConfigInput = z.output<typeof hostCapabilitiesConfigInputSchema>;
128
+ /** @deprecated Prefer {@link AppEventFlag}; legacy name from widget-config surface. */
129
+ export type FeatureFlagConfigInput = AppEventFlag;
130
+ /** @deprecated Prefer {@link appEventFlagSchema}; legacy name from widget-config surface. */
131
+ export declare const featureFlagConfigInputSchema: z.ZodObject<{
132
+ key: z.ZodString;
133
+ target: z.ZodOptional<z.ZodString>;
134
+ value: z.ZodType<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 | {
135
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
136
+ } | null)[] | {
137
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
138
+ } | null)[] | {
139
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
140
+ } | null)[] | {
141
+ [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;
142
+ } | null)[] | {
143
+ [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;
144
+ } | null)[] | {
145
+ [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;
146
+ } | null)[] | {
147
+ [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;
148
+ } | null)[] | {
149
+ [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;
150
+ } | null)[] | {
151
+ [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;
152
+ } | null)[] | {
153
+ [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;
154
+ } | null)[] | {
155
+ [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;
156
+ } | null)[] | {
157
+ [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;
158
+ } | null, unknown, z.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 | {
159
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
160
+ } | null)[] | {
161
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
162
+ } | null)[] | {
163
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
164
+ } | null)[] | {
165
+ [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;
166
+ } | null)[] | {
167
+ [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;
168
+ } | null)[] | {
169
+ [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;
170
+ } | null)[] | {
171
+ [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;
172
+ } | null)[] | {
173
+ [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;
174
+ } | null)[] | {
175
+ [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;
176
+ } | null)[] | {
177
+ [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;
178
+ } | null)[] | {
179
+ [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;
180
+ } | null)[] | {
181
+ [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;
182
+ } | null, unknown>>;
183
+ variant: z.ZodOptional<z.ZodString>;
184
+ origin: z.ZodOptional<z.ZodEnum<{
185
+ runtime_config: "runtime_config";
186
+ trigger_context: "trigger_context";
187
+ provider_sync: "provider_sync";
188
+ api: "api";
189
+ }>>;
190
+ provider: z.ZodOptional<z.ZodObject<{
191
+ name: z.ZodString;
192
+ project: z.ZodOptional<z.ZodString>;
193
+ environment: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>>;
195
+ status: z.ZodOptional<z.ZodString>;
196
+ reason: z.ZodOptional<z.ZodString>;
197
+ evaluatedAt: z.ZodOptional<z.ZodString>;
198
+ }, z.core.$strip>;
199
+ /** @deprecated Prefer {@link AppEventCapability}; legacy name from widget-config surface. */
200
+ export type RuntimeCapabilityConfigInput = AppEventCapability;
201
+ /** @deprecated Prefer {@link appEventCapabilitySchema}; legacy name from widget-config surface. */
202
+ export declare const runtimeCapabilityConfigInputSchema: z.ZodObject<{
203
+ key: z.ZodString;
204
+ source: z.ZodOptional<z.ZodString>;
205
+ provider: z.ZodOptional<z.ZodObject<{
206
+ name: z.ZodString;
207
+ project: z.ZodOptional<z.ZodString>;
208
+ environment: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>;
120
211
  export declare const configureOptionsSchema: z.ZodObject<{
121
212
  colorScheme: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
122
213
  autoDetectColorScheme: z.ZodArray<z.ZodString>;
@@ -137,6 +228,8 @@ export declare const configureOptionsSchema: z.ZodObject<{
137
228
  "ads.storage": "ads.storage";
138
229
  "ads.user_data": "ads.user_data";
139
230
  "ads.personalization": "ads.personalization";
231
+ "functionality.storage": "functionality.storage";
232
+ "security.storage": "security.storage";
140
233
  }>>]>>;
141
234
  auth: z.ZodOptional<z.ZodObject<{
142
235
  jwt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -168,6 +261,8 @@ export declare const initOptionsSchema: z.ZodObject<{
168
261
  "ads.storage": "ads.storage";
169
262
  "ads.user_data": "ads.user_data";
170
263
  "ads.personalization": "ads.personalization";
264
+ "functionality.storage": "functionality.storage";
265
+ "security.storage": "security.storage";
171
266
  }>>]>>;
172
267
  clientMeta: z.ZodOptional<z.ZodObject<{
173
268
  loader: z.ZodEnum<{
@@ -290,4 +385,212 @@ export declare const initOptionsSchema: z.ZodObject<{
290
385
  }, z.core.$strict>;
291
386
  export type InitOptions = z.output<typeof initOptionsSchema>;
292
387
  export declare const DEFAULT_COLOR_SCHEME_CONFIG: ColorSchemeConfigInput;
388
+ /**
389
+ * Schema for the subset of instance config that can be updated via merge (any source).
390
+ * Telemetry, enableDebug, clientMeta, SDK protocol capabilities, customer
391
+ * flags, and customer host capabilities are set at registration only.
392
+ */
393
+ export declare const instanceUpdateableConfigSchema: z.ZodObject<{
394
+ colorScheme: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
395
+ autoDetectColorScheme: z.ZodArray<z.ZodString>;
396
+ }, z.core.$strict>, z.ZodEnum<{
397
+ light: "light";
398
+ dark: "dark";
399
+ system: "system";
400
+ }>]>>;
401
+ consent: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
402
+ pending: "pending";
403
+ granted: "granted";
404
+ denied: "denied";
405
+ revoked: "revoked";
406
+ }>, z.ZodArray<z.ZodEnum<{
407
+ "analytics.storage": "analytics.storage";
408
+ "analytics.measurement": "analytics.measurement";
409
+ "personalization.storage": "personalization.storage";
410
+ "ads.storage": "ads.storage";
411
+ "ads.user_data": "ads.user_data";
412
+ "ads.personalization": "ads.personalization";
413
+ "functionality.storage": "functionality.storage";
414
+ "security.storage": "security.storage";
415
+ }>>]>>;
416
+ auth: z.ZodOptional<z.ZodObject<{
417
+ jwt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
418
+ token: z.ZodString;
419
+ }, z.core.$strip>, z.ZodNull]>>;
420
+ }, z.core.$strip>>;
421
+ identity: z.ZodOptional<z.ZodObject<{
422
+ anonymousId: z.ZodOptional<z.ZodString>;
423
+ userId: z.ZodOptional<z.ZodString>;
424
+ traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
425
+ }, z.core.$strip>>;
426
+ }, z.core.$strict>;
427
+ export type InstanceUpdateableConfig = z.output<typeof instanceUpdateableConfigSchema>;
428
+ /** Keys that may be merged into instance config (updatable subset). */
429
+ export declare const INSTANCE_CONFIG_UPDATE_KEYS: (keyof InstanceUpdateableConfig)[];
430
+ /**
431
+ * Schema for resolved instance config state. Used when producing or validating
432
+ * stored config (e.g. after register or merge). Defaults are applied here so
433
+ * state always has a full shape; parse partial input with this schema to get
434
+ * resolved state. For update shape use InstanceUpdateableConfig. Configure
435
+ * command opts are in widget-commands (widgetConfigUpdateSchema).
436
+ */
437
+ export declare const coreInstanceConfigSchema: z.ZodObject<{
438
+ colorScheme: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
439
+ autoDetectColorScheme: z.ZodArray<z.ZodString>;
440
+ }, z.core.$strict>, z.ZodEnum<{
441
+ light: "light";
442
+ dark: "dark";
443
+ system: "system";
444
+ }>]>>>;
445
+ disableTelemetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
446
+ enableDebug: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>>;
447
+ consent: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
448
+ pending: "pending";
449
+ granted: "granted";
450
+ denied: "denied";
451
+ revoked: "revoked";
452
+ }>, z.ZodArray<z.ZodEnum<{
453
+ "analytics.storage": "analytics.storage";
454
+ "analytics.measurement": "analytics.measurement";
455
+ "personalization.storage": "personalization.storage";
456
+ "ads.storage": "ads.storage";
457
+ "ads.user_data": "ads.user_data";
458
+ "ads.personalization": "ads.personalization";
459
+ "functionality.storage": "functionality.storage";
460
+ "security.storage": "security.storage";
461
+ }>>]>>;
462
+ auth: z.ZodOptional<z.ZodObject<{
463
+ jwt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
464
+ token: z.ZodString;
465
+ }, z.core.$strip>, z.ZodNull]>>;
466
+ }, z.core.$strip>>;
467
+ identity: z.ZodOptional<z.ZodObject<{
468
+ anonymousId: z.ZodOptional<z.ZodString>;
469
+ userId: z.ZodOptional<z.ZodString>;
470
+ traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
+ }, z.core.$strip>>;
472
+ apiKey: z.ZodString;
473
+ clientMeta: z.ZodOptional<z.ZodObject<{
474
+ loader: z.ZodEnum<{
475
+ custom: "custom";
476
+ sdk: "sdk";
477
+ gtm: "gtm";
478
+ segment: "segment";
479
+ rudderstack: "rudderstack";
480
+ tealium: "tealium";
481
+ }>;
482
+ clientName: z.ZodOptional<z.ZodString>;
483
+ clientVersion: z.ZodOptional<z.ZodString>;
484
+ integrator: z.ZodOptional<z.ZodObject<{
485
+ name: z.ZodOptional<z.ZodString>;
486
+ version: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strip>>;
488
+ transport: z.ZodOptional<z.ZodEnum<{
489
+ loader: "loader";
490
+ "script-tag": "script-tag";
491
+ esm: "esm";
492
+ "tag-manager": "tag-manager";
493
+ snippet: "snippet";
494
+ }>>;
495
+ runtime: z.ZodOptional<z.ZodObject<{
496
+ framework: z.ZodOptional<z.ZodEnum<{
497
+ next: "next";
498
+ vite: "vite";
499
+ webpack: "webpack";
500
+ plain: "plain";
501
+ }>>;
502
+ runtime: z.ZodOptional<z.ZodEnum<{
503
+ browser: "browser";
504
+ edge: "edge";
505
+ }>>;
506
+ }, z.core.$strip>>;
507
+ notes: z.ZodOptional<z.ZodString>;
508
+ }, z.core.$strip>>;
509
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
+ flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
511
+ key: z.ZodString;
512
+ target: z.ZodOptional<z.ZodString>;
513
+ value: z.ZodType<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 | {
514
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
515
+ } | null)[] | {
516
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
517
+ } | null)[] | {
518
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
519
+ } | null)[] | {
520
+ [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;
521
+ } | null)[] | {
522
+ [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;
523
+ } | null)[] | {
524
+ [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;
525
+ } | null)[] | {
526
+ [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;
527
+ } | null)[] | {
528
+ [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;
529
+ } | null)[] | {
530
+ [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;
531
+ } | null)[] | {
532
+ [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;
533
+ } | null)[] | {
534
+ [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;
535
+ } | null)[] | {
536
+ [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;
537
+ } | null, unknown, z.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 | {
538
+ [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
539
+ } | null)[] | {
540
+ [key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
541
+ } | null)[] | {
542
+ [key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
543
+ } | null)[] | {
544
+ [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;
545
+ } | null)[] | {
546
+ [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;
547
+ } | null)[] | {
548
+ [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;
549
+ } | null)[] | {
550
+ [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;
551
+ } | null)[] | {
552
+ [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;
553
+ } | null)[] | {
554
+ [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;
555
+ } | null)[] | {
556
+ [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;
557
+ } | null)[] | {
558
+ [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;
559
+ } | null)[] | {
560
+ [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;
561
+ } | null, unknown>>;
562
+ variant: z.ZodOptional<z.ZodString>;
563
+ origin: z.ZodOptional<z.ZodEnum<{
564
+ runtime_config: "runtime_config";
565
+ trigger_context: "trigger_context";
566
+ provider_sync: "provider_sync";
567
+ api: "api";
568
+ }>>;
569
+ provider: z.ZodOptional<z.ZodObject<{
570
+ name: z.ZodString;
571
+ project: z.ZodOptional<z.ZodString>;
572
+ environment: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>>;
574
+ status: z.ZodOptional<z.ZodString>;
575
+ reason: z.ZodOptional<z.ZodString>;
576
+ evaluatedAt: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strip>>>;
578
+ hostCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
579
+ key: z.ZodString;
580
+ source: z.ZodOptional<z.ZodString>;
581
+ provider: z.ZodOptional<z.ZodObject<{
582
+ name: z.ZodString;
583
+ project: z.ZodOptional<z.ZodString>;
584
+ environment: z.ZodOptional<z.ZodString>;
585
+ }, z.core.$strip>>;
586
+ }, z.core.$strip>>>;
587
+ runtimeEndpoints: z.ZodOptional<z.ZodObject<{
588
+ apiUrl: z.ZodOptional<z.ZodString>;
589
+ coreUrl: z.ZodOptional<z.ZodString>;
590
+ }, z.core.$strict>>;
591
+ }, z.core.$strict>;
592
+ /** Input shape for instance config (partial; used for register/merge). */
593
+ export type CoreInstanceConfigInput = z.input<typeof coreInstanceConfigSchema>;
594
+ /** Resolved instance config state (defaults applied). */
595
+ export type CoreInstanceConfig = z.output<typeof coreInstanceConfigSchema>;
293
596
  //# sourceMappingURL=widget-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widget-config.d.ts","sourceRoot":"","sources":["../src/widget-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA4BzB,eAAO,MAAM,wBAAwB;;;;;;;EAA8B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAED,eAAO,MAAM,4BAA4B;;;;;;IAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,4BAA4B,CACnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;KAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,gBAAgB,2EAI3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,qBAAqB;;;;iBAShC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA8B,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,iCAAiC;;;;;;;;kBAE7C,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,iCAAiC,CACxC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAapB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,2BAA2B,EAAE,sBAEzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOjC,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,8BAA8B,CACrC,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,EAAE,CAAC,MAAM,wBAAwB,CAAC,EAKzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiB3B,CAAC;AAEX,0EAA0E;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,yDAAyD;AACzD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,24 +1,13 @@
1
1
  import * as z from "zod";
2
- import { appEventCapabilitySchema, appEventFlagSchema } from "./app-event.js";
2
+ import { appEventCapabilitySchema, appEventFlagSchema, } from "./app-event.js";
3
3
  import { clientMetaSchema } from "./client-meta.js";
4
4
  import { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
5
5
  import { runtimeEndpointsSchema } from "./runtime-endpoints.js";
6
+ import { scopeIdSchema } from "./scopes.js";
6
7
  const colorSchemeValueSchema = z.enum(["light", "dark", "system"]);
7
8
  const autoDetectColorSchemeArraySchema = z
8
9
  .array(z.string().trim().min(1))
9
10
  .min(1);
10
- const publicGrantScopeIds = [
11
- "analytics.storage",
12
- "analytics.measurement",
13
- "personalization.storage",
14
- "ads.storage",
15
- "ads.user_data",
16
- "ads.personalization",
17
- ];
18
- export const publicGrantScopeIdSchema = z.enum(publicGrantScopeIds);
19
- export function isPublicGrantScope(value) {
20
- return publicGrantScopeIdSchema.safeParse(value).success;
21
- }
22
11
  export const colorSchemeConfigInputSchema = z.union([
23
12
  z
24
13
  .object({
@@ -27,25 +16,35 @@ export const colorSchemeConfigInputSchema = z.union([
27
16
  .strict(),
28
17
  colorSchemeValueSchema,
29
18
  ]);
19
+ export const telemetryConfigInputSchema = z.object({
20
+ enabled: z.optional(z.boolean()),
21
+ });
30
22
  export const consentConfigInputSchema = z.union([
31
23
  z.enum(["granted", "denied", "pending", "revoked"]),
32
- z.array(publicGrantScopeIdSchema),
24
+ z.array(scopeIdSchema),
33
25
  ]);
34
26
  export const debugInputSchema = z.union([
35
27
  z.boolean(),
36
28
  z.string(),
37
29
  z.array(z.string()),
38
30
  ]);
31
+ export const authJwtConfigInputSchema = z.object({
32
+ token: z.string().trim().min(1),
33
+ });
39
34
  export const authConfigInputSchema = z.object({
40
- jwt: z.optional(z.union([
41
- z.object({
42
- token: z.string().trim().min(1),
43
- }),
44
- z.null(),
45
- ])),
35
+ jwt: z.optional(z.union([authJwtConfigInputSchema, z.null()])),
36
+ });
37
+ export const identityConfigInputSchema = z.object({
38
+ anonymousId: z.optional(z.string().trim().min(1)),
39
+ userId: z.optional(z.string().trim().min(1)),
40
+ traits: z.optional(z.record(z.string(), z.unknown())),
46
41
  });
47
42
  export const flagsConfigInputSchema = z.array(appEventFlagSchema);
48
43
  export const hostCapabilitiesConfigInputSchema = z.array(appEventCapabilitySchema);
44
+ /** @deprecated Prefer {@link appEventFlagSchema}; legacy name from widget-config surface. */
45
+ export const featureFlagConfigInputSchema = appEventFlagSchema;
46
+ /** @deprecated Prefer {@link appEventCapabilitySchema}; legacy name from widget-config surface. */
47
+ export const runtimeCapabilityConfigInputSchema = appEventCapabilitySchema;
49
48
  export const configureOptionsSchema = z
50
49
  .object({
51
50
  colorScheme: z.optional(colorSchemeConfigInputSchema),
@@ -70,3 +69,48 @@ export const initOptionsSchema = z
70
69
  export const DEFAULT_COLOR_SCHEME_CONFIG = {
71
70
  autoDetectColorScheme: [...DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS],
72
71
  };
72
+ /**
73
+ * Schema for the subset of instance config that can be updated via merge (any source).
74
+ * Telemetry, enableDebug, clientMeta, SDK protocol capabilities, customer
75
+ * flags, and customer host capabilities are set at registration only.
76
+ */
77
+ export const instanceUpdateableConfigSchema = z
78
+ .object({
79
+ colorScheme: z.optional(colorSchemeConfigInputSchema),
80
+ consent: z.optional(consentConfigInputSchema),
81
+ auth: z.optional(authConfigInputSchema),
82
+ identity: z.optional(identityConfigInputSchema),
83
+ })
84
+ .strict();
85
+ /** Keys that may be merged into instance config (updatable subset). */
86
+ export const INSTANCE_CONFIG_UPDATE_KEYS = [
87
+ "colorScheme",
88
+ "consent",
89
+ "auth",
90
+ "identity",
91
+ ];
92
+ /**
93
+ * Schema for resolved instance config state. Used when producing or validating
94
+ * stored config (e.g. after register or merge). Defaults are applied here so
95
+ * state always has a full shape; parse partial input with this schema to get
96
+ * resolved state. For update shape use InstanceUpdateableConfig. Configure
97
+ * command opts are in widget-commands (widgetConfigUpdateSchema).
98
+ */
99
+ export const coreInstanceConfigSchema = z
100
+ .object({
101
+ colorScheme: z.optional(colorSchemeConfigInputSchema).default({
102
+ autoDetectColorScheme: [...DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS],
103
+ }),
104
+ disableTelemetry: z.optional(z.boolean()).default(false),
105
+ enableDebug: z.optional(debugInputSchema).default(false),
106
+ consent: z.optional(consentConfigInputSchema),
107
+ auth: z.optional(authConfigInputSchema),
108
+ identity: z.optional(identityConfigInputSchema),
109
+ apiKey: z.string().trim().min(1),
110
+ clientMeta: z.optional(clientMetaSchema),
111
+ capabilities: z.optional(z.array(z.string())),
112
+ flags: z.optional(flagsConfigInputSchema),
113
+ hostCapabilities: z.optional(hostCapabilitiesConfigInputSchema),
114
+ runtimeEndpoints: z.optional(runtimeEndpointsSchema),
115
+ })
116
+ .strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getuserfeedback/protocol",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "getuserfeedback widget protocol — host surface and (later) wire protocol",
5
5
  "keywords": [
6
6
  "getuserfeedback",