@contractspec/lib.feature-flags 1.56.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/contracts/index.js +636 -0
- package/dist/browser/docs/feature-flags.docblock.js +71 -0
- package/dist/browser/docs/index.js +71 -0
- package/dist/browser/entities/index.js +306 -0
- package/dist/browser/evaluation/index.js +223 -0
- package/dist/browser/events.js +296 -0
- package/dist/browser/feature-flags.capability.js +28 -0
- package/dist/browser/feature-flags.feature.js +55 -0
- package/dist/browser/index.js +1583 -0
- package/dist/contracts/index.d.ts +944 -953
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +635 -906
- package/dist/docs/feature-flags.docblock.d.ts +2 -1
- package/dist/docs/feature-flags.docblock.d.ts.map +1 -0
- package/dist/docs/feature-flags.docblock.js +18 -22
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +72 -1
- package/dist/entities/index.d.ts +159 -164
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +297 -315
- package/dist/evaluation/index.d.ts +119 -122
- package/dist/evaluation/index.d.ts.map +1 -1
- package/dist/evaluation/index.js +215 -212
- package/dist/events.d.ts +480 -489
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +272 -511
- package/dist/feature-flags.capability.d.ts +2 -8
- package/dist/feature-flags.capability.d.ts.map +1 -1
- package/dist/feature-flags.capability.js +29 -25
- package/dist/feature-flags.feature.d.ts +1 -7
- package/dist/feature-flags.feature.d.ts.map +1 -1
- package/dist/feature-flags.feature.js +54 -146
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1584 -8
- package/dist/node/contracts/index.js +636 -0
- package/dist/node/docs/feature-flags.docblock.js +71 -0
- package/dist/node/docs/index.js +71 -0
- package/dist/node/entities/index.js +306 -0
- package/dist/node/evaluation/index.js +223 -0
- package/dist/node/events.js +296 -0
- package/dist/node/feature-flags.capability.js +28 -0
- package/dist/node/feature-flags.feature.js +55 -0
- package/dist/node/index.js +1583 -0
- package/package.json +117 -30
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/src/app-config/lifecycle.d.ts +0 -1
- package/dist/contracts/src/app-config/runtime.d.ts +0 -13
- package/dist/contracts/src/app-config/spec.d.ts +0 -9
- package/dist/contracts/src/app-config/validation.d.ts +0 -8
- package/dist/contracts/src/capabilities/capabilities.d.ts +0 -60
- package/dist/contracts/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/contracts/src/capabilities/context.d.ts +0 -1
- package/dist/contracts/src/capabilities/guards.d.ts +0 -4
- package/dist/contracts/src/capabilities/index.d.ts +0 -5
- package/dist/contracts/src/capabilities/openbanking.d.ts +0 -1
- package/dist/contracts/src/capabilities/validation.d.ts +0 -4
- package/dist/contracts/src/client/index.d.ts +0 -1
- package/dist/contracts/src/client/react/drivers/rn-reusables.d.ts +0 -1
- package/dist/contracts/src/client/react/drivers/shadcn.d.ts +0 -1
- package/dist/contracts/src/client/react/feature-render.d.ts +0 -3
- package/dist/contracts/src/client/react/form-render.d.ts +0 -4
- package/dist/contracts/src/client/react/index.d.ts +0 -4
- package/dist/contracts/src/contract-registry/index.d.ts +0 -2
- package/dist/contracts/src/contract-registry/schemas.d.ts +0 -2
- package/dist/contracts/src/contract-registry/types.d.ts +0 -1
- package/dist/contracts/src/data-views/index.d.ts +0 -4
- package/dist/contracts/src/data-views/registry.d.ts +0 -2
- package/dist/contracts/src/data-views/report/contractVerificationTable.d.ts +0 -1
- package/dist/contracts/src/data-views/spec.d.ts +0 -3
- package/dist/contracts/src/data-views/types.d.ts +0 -2
- package/dist/contracts/src/docs/accessibility_wcag_compliance_specs.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/capabilities/documentationSystem.capability.d.ts +0 -1
- package/dist/contracts/src/docs/capabilities/index.d.ts +0 -1
- package/dist/contracts/src/docs/commands/docsGenerate.command.d.ts +0 -2
- package/dist/contracts/src/docs/commands/docsPublish.command.d.ts +0 -2
- package/dist/contracts/src/docs/commands/index.d.ts +0 -2
- package/dist/contracts/src/docs/contracts.d.ts +0 -7
- package/dist/contracts/src/docs/events/docsGenerated.event.d.ts +0 -2
- package/dist/contracts/src/docs/events/docsPublished.event.d.ts +0 -2
- package/dist/contracts/src/docs/events/index.d.ts +0 -2
- package/dist/contracts/src/docs/forms/docsSearch.form.d.ts +0 -2
- package/dist/contracts/src/docs/forms/index.d.ts +0 -1
- package/dist/contracts/src/docs/index.d.ts +0 -33
- package/dist/contracts/src/docs/presentations/docsLayout.presentation.d.ts +0 -1
- package/dist/contracts/src/docs/presentations/docsReferencePage.presentation.d.ts +0 -1
- package/dist/contracts/src/docs/presentations/index.d.ts +0 -2
- package/dist/contracts/src/docs/presentations.d.ts +0 -2
- package/dist/contracts/src/docs/queries/contractReference.query.d.ts +0 -2
- package/dist/contracts/src/docs/queries/docsIndex.query.d.ts +0 -2
- package/dist/contracts/src/docs/queries/index.d.ts +0 -2
- package/dist/contracts/src/docs/registry.d.ts +0 -10
- package/dist/contracts/src/docs/registry.d.ts.map +0 -1
- package/dist/contracts/src/docs/tech/auth/better-auth-nextjs.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/contracts/README.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/contracts/openapi-export.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/contracts/openapi-import.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/lifecycle-stage-system.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/llm/llm-integration.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/mcp-endpoints.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/presentation-runtime.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/schema/README.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/learning-events.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/learning-journeys.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/platform-admin-panel.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/project-access-teams.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/project-routing.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/sandbox-unlogged.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/team-invitations.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/workspace-ops.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/studio/workspaces.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/telemetry-ingest.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/tech/vscode-extension.docblock.d.ts +0 -1
- package/dist/contracts/src/docs/views/contractReference.dataView.d.ts +0 -1
- package/dist/contracts/src/docs/views/docsIndex.dataView.d.ts +0 -1
- package/dist/contracts/src/docs/views/exampleCatalog.dataView.d.ts +0 -1
- package/dist/contracts/src/docs/views/index.d.ts +0 -3
- package/dist/contracts/src/events.d.ts +0 -45
- package/dist/contracts/src/events.d.ts.map +0 -1
- package/dist/contracts/src/examples/index.d.ts +0 -4
- package/dist/contracts/src/examples/registry.d.ts +0 -2
- package/dist/contracts/src/examples/schema.d.ts +0 -2
- package/dist/contracts/src/examples/types.d.ts +0 -3
- package/dist/contracts/src/examples/validation.d.ts +0 -1
- package/dist/contracts/src/experiments/evaluator.d.ts +0 -2
- package/dist/contracts/src/experiments/spec-resolver.d.ts +0 -4
- package/dist/contracts/src/experiments/spec.d.ts +0 -16
- package/dist/contracts/src/experiments/spec.d.ts.map +0 -1
- package/dist/contracts/src/features/index.d.ts +0 -4
- package/dist/contracts/src/features/install.d.ts +0 -6
- package/dist/contracts/src/features/registry.d.ts +0 -2
- package/dist/contracts/src/features/types.d.ts +0 -80
- package/dist/contracts/src/features/types.d.ts.map +0 -1
- package/dist/contracts/src/features/validation.d.ts +0 -2
- package/dist/contracts/src/forms/forms.d.ts +0 -3
- package/dist/contracts/src/forms/index.d.ts +0 -1
- package/dist/contracts/src/index.d.ts +0 -53
- package/dist/contracts/src/install.d.ts +0 -7
- package/dist/contracts/src/integrations/connection.d.ts +0 -1
- package/dist/contracts/src/integrations/index.d.ts +0 -6
- package/dist/contracts/src/integrations/openbanking/contracts/accounts.d.ts +0 -4
- package/dist/contracts/src/integrations/openbanking/contracts/balances.d.ts +0 -4
- package/dist/contracts/src/integrations/openbanking/contracts/index.d.ts +0 -5
- package/dist/contracts/src/integrations/openbanking/contracts/transactions.d.ts +0 -4
- package/dist/contracts/src/integrations/openbanking/guards.d.ts +0 -1
- package/dist/contracts/src/integrations/openbanking/models.d.ts +0 -1
- package/dist/contracts/src/integrations/openbanking/openbanking.feature.d.ts +0 -1
- package/dist/contracts/src/integrations/operations.d.ts +0 -4
- package/dist/contracts/src/integrations/providers/elevenlabs.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/gcs-storage.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/gmail.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/google-calendar.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/index.d.ts +0 -11
- package/dist/contracts/src/integrations/providers/mistral.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/postmark.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/powens.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/qdrant.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/registry.d.ts +0 -1
- package/dist/contracts/src/integrations/providers/stripe.d.ts +0 -2
- package/dist/contracts/src/integrations/providers/twilio-sms.d.ts +0 -2
- package/dist/contracts/src/integrations/spec.d.ts +0 -3
- package/dist/contracts/src/jsonschema.d.ts +0 -4
- package/dist/contracts/src/knowledge/index.d.ts +0 -2
- package/dist/contracts/src/knowledge/operations.d.ts +0 -4
- package/dist/contracts/src/knowledge/spaces/email-threads.d.ts +0 -1
- package/dist/contracts/src/knowledge/spaces/financial-docs.d.ts +0 -1
- package/dist/contracts/src/knowledge/spaces/financial-overview.d.ts +0 -1
- package/dist/contracts/src/knowledge/spaces/index.d.ts +0 -6
- package/dist/contracts/src/knowledge/spaces/product-canon.d.ts +0 -1
- package/dist/contracts/src/knowledge/spaces/support-faq.d.ts +0 -1
- package/dist/contracts/src/knowledge/spaces/uploaded-docs.d.ts +0 -1
- package/dist/contracts/src/knowledge/spec.d.ts +0 -3
- package/dist/contracts/src/llm/exporters.d.ts +0 -7
- package/dist/contracts/src/llm/index.d.ts +0 -3
- package/dist/contracts/src/llm/prompts.d.ts +0 -2
- package/dist/contracts/src/llm/types.d.ts +0 -5
- package/dist/contracts/src/migrations.d.ts +0 -1
- package/dist/contracts/src/model-registry.d.ts +0 -1
- package/dist/contracts/src/onboarding-base.d.ts +0 -2
- package/dist/contracts/src/openapi.d.ts +0 -1
- package/dist/contracts/src/operations/index.d.ts +0 -3
- package/dist/contracts/src/operations/operation.d.ts +0 -176
- package/dist/contracts/src/operations/operation.d.ts.map +0 -1
- package/dist/contracts/src/operations/registry.d.ts +0 -6
- package/dist/contracts/src/operations/report/getContractVerificationStatus.d.ts +0 -3
- package/dist/contracts/src/operations/report/index.d.ts +0 -4
- package/dist/contracts/src/ownership.d.ts +0 -164
- package/dist/contracts/src/ownership.d.ts.map +0 -1
- package/dist/contracts/src/policy/engine.d.ts +0 -3
- package/dist/contracts/src/policy/guards.d.ts +0 -1
- package/dist/contracts/src/policy/index.d.ts +0 -6
- package/dist/contracts/src/policy/opa-adapter.d.ts +0 -3
- package/dist/contracts/src/policy/registry.d.ts +0 -2
- package/dist/contracts/src/policy/spec.d.ts +0 -13
- package/dist/contracts/src/policy/spec.d.ts.map +0 -1
- package/dist/contracts/src/policy/validation.d.ts +0 -3
- package/dist/contracts/src/presentations/index.d.ts +0 -3
- package/dist/contracts/src/presentations/presentations.d.ts +0 -10
- package/dist/contracts/src/presentations/presentations.d.ts.map +0 -1
- package/dist/contracts/src/presentations/registry.d.ts +0 -2
- package/dist/contracts/src/presentations/transform-engine.d.ts +0 -2
- package/dist/contracts/src/prompt.d.ts +0 -2
- package/dist/contracts/src/promptRegistry.d.ts +0 -2
- package/dist/contracts/src/regenerator/adapters.d.ts +0 -1
- package/dist/contracts/src/regenerator/executor.d.ts +0 -1
- package/dist/contracts/src/regenerator/index.d.ts +0 -6
- package/dist/contracts/src/regenerator/service.d.ts +0 -2
- package/dist/contracts/src/regenerator/sinks.d.ts +0 -2
- package/dist/contracts/src/regenerator/types.d.ts +0 -3
- package/dist/contracts/src/regenerator/utils.d.ts +0 -1
- package/dist/contracts/src/registry-utils.d.ts +0 -1
- package/dist/contracts/src/registry.d.ts +0 -3
- package/dist/contracts/src/resources.d.ts +0 -19
- package/dist/contracts/src/resources.d.ts.map +0 -1
- package/dist/contracts/src/schema-to-markdown.d.ts +0 -1
- package/dist/contracts/src/serialization/index.d.ts +0 -1
- package/dist/contracts/src/serialization/serializers.d.ts +0 -7
- package/dist/contracts/src/server/graphql-pothos.d.ts +0 -7
- package/dist/contracts/src/server/index.d.ts +0 -7
- package/dist/contracts/src/server/mcp/createMcpServer.d.ts +0 -5
- package/dist/contracts/src/server/mcp/mcpTypes.d.ts +0 -2
- package/dist/contracts/src/server/provider-mcp.d.ts +0 -1
- package/dist/contracts/src/server/rest-elysia.d.ts +0 -3
- package/dist/contracts/src/server/rest-express.d.ts +0 -3
- package/dist/contracts/src/server/rest-generic.d.ts +0 -2
- package/dist/contracts/src/server/rest-next-app.d.ts +0 -3
- package/dist/contracts/src/server/rest-next-pages.d.ts +0 -3
- package/dist/contracts/src/telemetry/anomaly.d.ts +0 -2
- package/dist/contracts/src/telemetry/index.d.ts +0 -3
- package/dist/contracts/src/telemetry/spec.d.ts +0 -2
- package/dist/contracts/src/telemetry/tracker.d.ts +0 -3
- package/dist/contracts/src/tests/index.d.ts +0 -2
- package/dist/contracts/src/tests/runner.d.ts +0 -3
- package/dist/contracts/src/tests/spec.d.ts +0 -13
- package/dist/contracts/src/tests/spec.d.ts.map +0 -1
- package/dist/contracts/src/themes.d.ts +0 -2
- package/dist/contracts/src/types.d.ts +0 -5
- package/dist/contracts/src/versioning/refs.d.ts +0 -47
- package/dist/contracts/src/versioning/refs.d.ts.map +0 -1
- package/dist/contracts/src/workflow/adapters/db-adapter.d.ts +0 -1
- package/dist/contracts/src/workflow/adapters/file-adapter.d.ts +0 -1
- package/dist/contracts/src/workflow/adapters/index.d.ts +0 -3
- package/dist/contracts/src/workflow/adapters/memory-store.d.ts +0 -1
- package/dist/contracts/src/workflow/context.d.ts +0 -2
- package/dist/contracts/src/workflow/index.d.ts +0 -8
- package/dist/contracts/src/workflow/overview.docblock.d.ts +0 -1
- package/dist/contracts/src/workflow/runner.d.ts +0 -5
- package/dist/contracts/src/workflow/sla-monitor.d.ts +0 -2
- package/dist/contracts/src/workflow/spec.d.ts +0 -6
- package/dist/contracts/src/workflow/state.d.ts +0 -1
- package/dist/contracts/src/workflow/validation.d.ts +0 -5
- package/dist/contracts/src/workspace-config/contractsrc-schema.d.ts +0 -1
- package/dist/contracts/src/workspace-config/index.d.ts +0 -1
- package/dist/contracts/src/workspace-config/workspace-config.docblock.d.ts +0 -1
- package/dist/docs/feature-flags.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/evaluation/index.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/feature-flags.capability.js.map +0 -1
- package/dist/feature-flags.feature.js.map +0 -1
- package/dist/schema/src/EnumType.d.ts +0 -36
- package/dist/schema/src/EnumType.d.ts.map +0 -1
- package/dist/schema/src/FieldType.d.ts +0 -30
- package/dist/schema/src/FieldType.d.ts.map +0 -1
- package/dist/schema/src/GraphQLSchemaType.d.ts +0 -2
- package/dist/schema/src/JsonSchemaType.d.ts +0 -2
- package/dist/schema/src/ScalarTypeEnum.d.ts +0 -1
- package/dist/schema/src/SchemaModel.d.ts +0 -70
- package/dist/schema/src/SchemaModel.d.ts.map +0 -1
- package/dist/schema/src/SchemaModelType.d.ts +0 -38
- package/dist/schema/src/SchemaModelType.d.ts.map +0 -1
- package/dist/schema/src/ZodSchemaType.d.ts +0 -2
- package/dist/schema/src/entity/defineEntity.d.ts +0 -1
- package/dist/schema/src/entity/generator.d.ts +0 -1
- package/dist/schema/src/entity/index.d.ts +0 -3
- package/dist/schema/src/entity/types.d.ts +0 -146
- package/dist/schema/src/entity/types.d.ts.map +0 -1
- package/dist/schema/src/index.d.ts +0 -10
package/dist/events.d.ts
CHANGED
|
@@ -1,628 +1,619 @@
|
|
|
1
|
-
import { FieldType } from "./schema/src/FieldType.js";
|
|
2
|
-
import { SchemaModel } from "./schema/src/SchemaModel.js";
|
|
3
|
-
import "./schema/src/index.js";
|
|
4
|
-
import { EventSpec } from "./contracts/src/events.js";
|
|
5
|
-
import "./contracts/src/index.js";
|
|
6
|
-
|
|
7
|
-
//#region src/events.d.ts
|
|
8
1
|
/**
|
|
9
2
|
* Emitted when a feature flag is created.
|
|
10
3
|
*/
|
|
11
|
-
declare const FlagCreatedEvent: EventSpec<SchemaModel<{
|
|
12
|
-
flagId: {
|
|
13
|
-
type: FieldType<string, string>;
|
|
14
|
-
isOptional: false;
|
|
15
|
-
};
|
|
16
|
-
key: {
|
|
17
|
-
type: FieldType<string, string>;
|
|
18
|
-
isOptional: false;
|
|
19
|
-
};
|
|
20
|
-
name: {
|
|
21
|
-
type: FieldType<string, string>;
|
|
22
|
-
isOptional: false;
|
|
23
|
-
};
|
|
24
|
-
status: {
|
|
25
|
-
type: FieldType<string, string>;
|
|
26
|
-
isOptional: false;
|
|
27
|
-
};
|
|
28
|
-
orgId: {
|
|
29
|
-
type: FieldType<string, string>;
|
|
30
|
-
isOptional: true;
|
|
31
|
-
};
|
|
32
|
-
createdBy: {
|
|
33
|
-
type: FieldType<string, string>;
|
|
34
|
-
isOptional: true;
|
|
35
|
-
};
|
|
36
|
-
createdAt: {
|
|
37
|
-
type: FieldType<Date, string>;
|
|
38
|
-
isOptional: false;
|
|
39
|
-
};
|
|
40
|
-
}>>;
|
|
41
|
-
/**
|
|
42
|
-
* Emitted when a feature flag is updated.
|
|
43
|
-
*/
|
|
44
|
-
declare const FlagUpdatedEvent: EventSpec<SchemaModel<{
|
|
45
|
-
flagId: {
|
|
46
|
-
type: FieldType<string, string>;
|
|
47
|
-
isOptional: false;
|
|
48
|
-
};
|
|
49
|
-
key: {
|
|
50
|
-
type: FieldType<string, string>;
|
|
51
|
-
isOptional: false;
|
|
52
|
-
};
|
|
53
|
-
changes: {
|
|
54
|
-
type: FieldType<unknown, unknown>;
|
|
55
|
-
isOptional: false;
|
|
56
|
-
};
|
|
57
|
-
updatedBy: {
|
|
58
|
-
type: FieldType<string, string>;
|
|
59
|
-
isOptional: true;
|
|
60
|
-
};
|
|
61
|
-
updatedAt: {
|
|
62
|
-
type: FieldType<Date, string>;
|
|
63
|
-
isOptional: false;
|
|
64
|
-
};
|
|
65
|
-
}>>;
|
|
66
|
-
/**
|
|
67
|
-
* Emitted when a feature flag is deleted.
|
|
68
|
-
*/
|
|
69
|
-
declare const FlagDeletedEvent: EventSpec<SchemaModel<{
|
|
70
|
-
flagId: {
|
|
71
|
-
type: FieldType<string, string>;
|
|
72
|
-
isOptional: false;
|
|
73
|
-
};
|
|
74
|
-
key: {
|
|
75
|
-
type: FieldType<string, string>;
|
|
76
|
-
isOptional: false;
|
|
77
|
-
};
|
|
78
|
-
deletedBy: {
|
|
79
|
-
type: FieldType<string, string>;
|
|
80
|
-
isOptional: true;
|
|
81
|
-
};
|
|
82
|
-
deletedAt: {
|
|
83
|
-
type: FieldType<Date, string>;
|
|
84
|
-
isOptional: false;
|
|
85
|
-
};
|
|
86
|
-
}>>;
|
|
87
|
-
/**
|
|
88
|
-
* Emitted when a feature flag status is toggled.
|
|
89
|
-
*/
|
|
90
|
-
declare const FlagToggledEvent: EventSpec<SchemaModel<{
|
|
91
|
-
flagId: {
|
|
92
|
-
type: FieldType<string, string>;
|
|
93
|
-
isOptional: false;
|
|
94
|
-
};
|
|
95
|
-
key: {
|
|
96
|
-
type: FieldType<string, string>;
|
|
97
|
-
isOptional: false;
|
|
98
|
-
};
|
|
99
|
-
previousStatus: {
|
|
100
|
-
type: FieldType<string, string>;
|
|
101
|
-
isOptional: false;
|
|
102
|
-
};
|
|
103
|
-
newStatus: {
|
|
104
|
-
type: FieldType<string, string>;
|
|
105
|
-
isOptional: false;
|
|
106
|
-
};
|
|
107
|
-
toggledBy: {
|
|
108
|
-
type: FieldType<string, string>;
|
|
109
|
-
isOptional: true;
|
|
110
|
-
};
|
|
111
|
-
toggledAt: {
|
|
112
|
-
type: FieldType<Date, string>;
|
|
113
|
-
isOptional: false;
|
|
114
|
-
};
|
|
115
|
-
}>>;
|
|
116
|
-
/**
|
|
117
|
-
* Emitted when a targeting rule is created.
|
|
118
|
-
*/
|
|
119
|
-
declare const RuleCreatedEvent: EventSpec<SchemaModel<{
|
|
120
|
-
ruleId: {
|
|
121
|
-
type: FieldType<string, string>;
|
|
122
|
-
isOptional: false;
|
|
123
|
-
};
|
|
124
|
-
flagId: {
|
|
125
|
-
type: FieldType<string, string>;
|
|
126
|
-
isOptional: false;
|
|
127
|
-
};
|
|
128
|
-
flagKey: {
|
|
129
|
-
type: FieldType<string, string>;
|
|
130
|
-
isOptional: false;
|
|
131
|
-
};
|
|
132
|
-
attribute: {
|
|
133
|
-
type: FieldType<string, string>;
|
|
134
|
-
isOptional: false;
|
|
135
|
-
};
|
|
136
|
-
operator: {
|
|
137
|
-
type: FieldType<string, string>;
|
|
138
|
-
isOptional: false;
|
|
139
|
-
};
|
|
140
|
-
createdAt: {
|
|
141
|
-
type: FieldType<Date, string>;
|
|
142
|
-
isOptional: false;
|
|
143
|
-
};
|
|
144
|
-
}>>;
|
|
145
|
-
/**
|
|
146
|
-
* Emitted when a targeting rule is deleted.
|
|
147
|
-
*/
|
|
148
|
-
declare const RuleDeletedEvent: EventSpec<SchemaModel<{
|
|
149
|
-
ruleId: {
|
|
150
|
-
type: FieldType<string, string>;
|
|
151
|
-
isOptional: false;
|
|
152
|
-
};
|
|
153
|
-
flagId: {
|
|
154
|
-
type: FieldType<string, string>;
|
|
155
|
-
isOptional: false;
|
|
156
|
-
};
|
|
157
|
-
flagKey: {
|
|
158
|
-
type: FieldType<string, string>;
|
|
159
|
-
isOptional: false;
|
|
160
|
-
};
|
|
161
|
-
deletedAt: {
|
|
162
|
-
type: FieldType<Date, string>;
|
|
163
|
-
isOptional: false;
|
|
164
|
-
};
|
|
165
|
-
}>>;
|
|
166
|
-
/**
|
|
167
|
-
* Emitted when an experiment is created.
|
|
168
|
-
*/
|
|
169
|
-
declare const ExperimentCreatedEvent: EventSpec<SchemaModel<{
|
|
170
|
-
experimentId: {
|
|
171
|
-
type: FieldType<string, string>;
|
|
172
|
-
isOptional: false;
|
|
173
|
-
};
|
|
174
|
-
key: {
|
|
175
|
-
type: FieldType<string, string>;
|
|
176
|
-
isOptional: false;
|
|
177
|
-
};
|
|
178
|
-
name: {
|
|
179
|
-
type: FieldType<string, string>;
|
|
180
|
-
isOptional: false;
|
|
181
|
-
};
|
|
182
|
-
flagId: {
|
|
183
|
-
type: FieldType<string, string>;
|
|
184
|
-
isOptional: false;
|
|
185
|
-
};
|
|
186
|
-
variants: {
|
|
187
|
-
type: FieldType<unknown, unknown>;
|
|
188
|
-
isOptional: false;
|
|
189
|
-
};
|
|
190
|
-
createdBy: {
|
|
191
|
-
type: FieldType<string, string>;
|
|
192
|
-
isOptional: true;
|
|
193
|
-
};
|
|
194
|
-
createdAt: {
|
|
195
|
-
type: FieldType<Date, string>;
|
|
196
|
-
isOptional: false;
|
|
197
|
-
};
|
|
198
|
-
}>>;
|
|
199
|
-
/**
|
|
200
|
-
* Emitted when an experiment starts.
|
|
201
|
-
*/
|
|
202
|
-
declare const ExperimentStartedEvent: EventSpec<SchemaModel<{
|
|
203
|
-
experimentId: {
|
|
204
|
-
type: FieldType<string, string>;
|
|
205
|
-
isOptional: false;
|
|
206
|
-
};
|
|
207
|
-
key: {
|
|
208
|
-
type: FieldType<string, string>;
|
|
209
|
-
isOptional: false;
|
|
210
|
-
};
|
|
211
|
-
flagId: {
|
|
212
|
-
type: FieldType<string, string>;
|
|
213
|
-
isOptional: false;
|
|
214
|
-
};
|
|
215
|
-
variants: {
|
|
216
|
-
type: FieldType<unknown, unknown>;
|
|
217
|
-
isOptional: false;
|
|
218
|
-
};
|
|
219
|
-
audiencePercentage: {
|
|
220
|
-
type: FieldType<number, number>;
|
|
221
|
-
isOptional: false;
|
|
222
|
-
};
|
|
223
|
-
startedBy: {
|
|
224
|
-
type: FieldType<string, string>;
|
|
225
|
-
isOptional: true;
|
|
226
|
-
};
|
|
227
|
-
startedAt: {
|
|
228
|
-
type: FieldType<Date, string>;
|
|
229
|
-
isOptional: false;
|
|
230
|
-
};
|
|
231
|
-
}>>;
|
|
232
|
-
/**
|
|
233
|
-
* Emitted when an experiment stops.
|
|
234
|
-
*/
|
|
235
|
-
declare const ExperimentStoppedEvent: EventSpec<SchemaModel<{
|
|
236
|
-
experimentId: {
|
|
237
|
-
type: FieldType<string, string>;
|
|
238
|
-
isOptional: false;
|
|
239
|
-
};
|
|
240
|
-
key: {
|
|
241
|
-
type: FieldType<string, string>;
|
|
242
|
-
isOptional: false;
|
|
243
|
-
};
|
|
244
|
-
reason: {
|
|
245
|
-
type: FieldType<string, string>;
|
|
246
|
-
isOptional: false;
|
|
247
|
-
};
|
|
248
|
-
winningVariant: {
|
|
249
|
-
type: FieldType<string, string>;
|
|
250
|
-
isOptional: true;
|
|
251
|
-
};
|
|
252
|
-
stoppedBy: {
|
|
253
|
-
type: FieldType<string, string>;
|
|
254
|
-
isOptional: true;
|
|
255
|
-
};
|
|
256
|
-
stoppedAt: {
|
|
257
|
-
type: FieldType<Date, string>;
|
|
258
|
-
isOptional: false;
|
|
259
|
-
};
|
|
260
|
-
}>>;
|
|
261
|
-
/**
|
|
262
|
-
* Emitted when a flag is evaluated (for analytics).
|
|
263
|
-
*/
|
|
264
|
-
declare const FlagEvaluatedEvent: EventSpec<SchemaModel<{
|
|
265
|
-
flagId: {
|
|
266
|
-
type: FieldType<string, string>;
|
|
267
|
-
isOptional: false;
|
|
268
|
-
};
|
|
269
|
-
flagKey: {
|
|
270
|
-
type: FieldType<string, string>;
|
|
271
|
-
isOptional: false;
|
|
272
|
-
};
|
|
273
|
-
subjectType: {
|
|
274
|
-
type: FieldType<string, string>;
|
|
275
|
-
isOptional: false;
|
|
276
|
-
};
|
|
277
|
-
subjectId: {
|
|
278
|
-
type: FieldType<string, string>;
|
|
279
|
-
isOptional: false;
|
|
280
|
-
};
|
|
281
|
-
result: {
|
|
282
|
-
type: FieldType<boolean, boolean>;
|
|
283
|
-
isOptional: false;
|
|
284
|
-
};
|
|
285
|
-
variant: {
|
|
286
|
-
type: FieldType<string, string>;
|
|
287
|
-
isOptional: true;
|
|
288
|
-
};
|
|
289
|
-
reason: {
|
|
290
|
-
type: FieldType<string, string>;
|
|
291
|
-
isOptional: false;
|
|
292
|
-
};
|
|
293
|
-
evaluatedAt: {
|
|
294
|
-
type: FieldType<Date, string>;
|
|
295
|
-
isOptional: false;
|
|
296
|
-
};
|
|
297
|
-
}>>;
|
|
298
|
-
/**
|
|
299
|
-
* Emitted when a subject is assigned to an experiment variant.
|
|
300
|
-
*/
|
|
301
|
-
declare const VariantAssignedEvent: EventSpec<SchemaModel<{
|
|
302
|
-
experimentId: {
|
|
303
|
-
type: FieldType<string, string>;
|
|
304
|
-
isOptional: false;
|
|
305
|
-
};
|
|
306
|
-
experimentKey: {
|
|
307
|
-
type: FieldType<string, string>;
|
|
308
|
-
isOptional: false;
|
|
309
|
-
};
|
|
310
|
-
subjectType: {
|
|
311
|
-
type: FieldType<string, string>;
|
|
312
|
-
isOptional: false;
|
|
313
|
-
};
|
|
314
|
-
subjectId: {
|
|
315
|
-
type: FieldType<string, string>;
|
|
316
|
-
isOptional: false;
|
|
317
|
-
};
|
|
318
|
-
variant: {
|
|
319
|
-
type: FieldType<string, string>;
|
|
320
|
-
isOptional: false;
|
|
321
|
-
};
|
|
322
|
-
bucket: {
|
|
323
|
-
type: FieldType<number, number>;
|
|
324
|
-
isOptional: false;
|
|
325
|
-
};
|
|
326
|
-
assignedAt: {
|
|
327
|
-
type: FieldType<Date, string>;
|
|
328
|
-
isOptional: false;
|
|
329
|
-
};
|
|
330
|
-
}>>;
|
|
331
|
-
/**
|
|
332
|
-
* All feature flag events.
|
|
333
|
-
*/
|
|
334
|
-
declare const FeatureFlagEvents: {
|
|
335
|
-
FlagCreatedEvent: EventSpec<SchemaModel<{
|
|
4
|
+
export declare const FlagCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
336
5
|
flagId: {
|
|
337
|
-
|
|
338
|
-
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
339
8
|
};
|
|
340
9
|
key: {
|
|
341
|
-
|
|
342
|
-
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
343
12
|
};
|
|
344
13
|
name: {
|
|
345
|
-
|
|
346
|
-
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
347
16
|
};
|
|
348
17
|
status: {
|
|
349
|
-
|
|
350
|
-
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
351
20
|
};
|
|
352
21
|
orgId: {
|
|
353
|
-
|
|
354
|
-
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: true;
|
|
355
24
|
};
|
|
356
25
|
createdBy: {
|
|
357
|
-
|
|
358
|
-
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: true;
|
|
359
28
|
};
|
|
360
29
|
createdAt: {
|
|
361
|
-
|
|
362
|
-
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
31
|
+
isOptional: false;
|
|
363
32
|
};
|
|
364
|
-
|
|
365
|
-
|
|
33
|
+
}>>;
|
|
34
|
+
/**
|
|
35
|
+
* Emitted when a feature flag is updated.
|
|
36
|
+
*/
|
|
37
|
+
export declare const FlagUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
366
38
|
flagId: {
|
|
367
|
-
|
|
368
|
-
|
|
39
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
369
41
|
};
|
|
370
42
|
key: {
|
|
371
|
-
|
|
372
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
373
45
|
};
|
|
374
46
|
changes: {
|
|
375
|
-
|
|
376
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
48
|
+
isOptional: false;
|
|
377
49
|
};
|
|
378
50
|
updatedBy: {
|
|
379
|
-
|
|
380
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
52
|
+
isOptional: true;
|
|
381
53
|
};
|
|
382
54
|
updatedAt: {
|
|
383
|
-
|
|
384
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
56
|
+
isOptional: false;
|
|
385
57
|
};
|
|
386
|
-
|
|
387
|
-
|
|
58
|
+
}>>;
|
|
59
|
+
/**
|
|
60
|
+
* Emitted when a feature flag is deleted.
|
|
61
|
+
*/
|
|
62
|
+
export declare const FlagDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
388
63
|
flagId: {
|
|
389
|
-
|
|
390
|
-
|
|
64
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
65
|
+
isOptional: false;
|
|
391
66
|
};
|
|
392
67
|
key: {
|
|
393
|
-
|
|
394
|
-
|
|
68
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
395
70
|
};
|
|
396
71
|
deletedBy: {
|
|
397
|
-
|
|
398
|
-
|
|
72
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
73
|
+
isOptional: true;
|
|
399
74
|
};
|
|
400
75
|
deletedAt: {
|
|
401
|
-
|
|
402
|
-
|
|
76
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
77
|
+
isOptional: false;
|
|
403
78
|
};
|
|
404
|
-
|
|
405
|
-
|
|
79
|
+
}>>;
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when a feature flag status is toggled.
|
|
82
|
+
*/
|
|
83
|
+
export declare const FlagToggledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
406
84
|
flagId: {
|
|
407
|
-
|
|
408
|
-
|
|
85
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
409
87
|
};
|
|
410
88
|
key: {
|
|
411
|
-
|
|
412
|
-
|
|
89
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
413
91
|
};
|
|
414
92
|
previousStatus: {
|
|
415
|
-
|
|
416
|
-
|
|
93
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
94
|
+
isOptional: false;
|
|
417
95
|
};
|
|
418
96
|
newStatus: {
|
|
419
|
-
|
|
420
|
-
|
|
97
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
421
99
|
};
|
|
422
100
|
toggledBy: {
|
|
423
|
-
|
|
424
|
-
|
|
101
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
425
103
|
};
|
|
426
104
|
toggledAt: {
|
|
427
|
-
|
|
428
|
-
|
|
105
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
106
|
+
isOptional: false;
|
|
429
107
|
};
|
|
430
|
-
|
|
431
|
-
|
|
108
|
+
}>>;
|
|
109
|
+
/**
|
|
110
|
+
* Emitted when a targeting rule is created.
|
|
111
|
+
*/
|
|
112
|
+
export declare const RuleCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
432
113
|
ruleId: {
|
|
433
|
-
|
|
434
|
-
|
|
114
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
115
|
+
isOptional: false;
|
|
435
116
|
};
|
|
436
117
|
flagId: {
|
|
437
|
-
|
|
438
|
-
|
|
118
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
119
|
+
isOptional: false;
|
|
439
120
|
};
|
|
440
121
|
flagKey: {
|
|
441
|
-
|
|
442
|
-
|
|
122
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
123
|
+
isOptional: false;
|
|
443
124
|
};
|
|
444
125
|
attribute: {
|
|
445
|
-
|
|
446
|
-
|
|
126
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
127
|
+
isOptional: false;
|
|
447
128
|
};
|
|
448
129
|
operator: {
|
|
449
|
-
|
|
450
|
-
|
|
130
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
131
|
+
isOptional: false;
|
|
451
132
|
};
|
|
452
133
|
createdAt: {
|
|
453
|
-
|
|
454
|
-
|
|
134
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
135
|
+
isOptional: false;
|
|
455
136
|
};
|
|
456
|
-
|
|
457
|
-
|
|
137
|
+
}>>;
|
|
138
|
+
/**
|
|
139
|
+
* Emitted when a targeting rule is deleted.
|
|
140
|
+
*/
|
|
141
|
+
export declare const RuleDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
458
142
|
ruleId: {
|
|
459
|
-
|
|
460
|
-
|
|
143
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
144
|
+
isOptional: false;
|
|
461
145
|
};
|
|
462
146
|
flagId: {
|
|
463
|
-
|
|
464
|
-
|
|
147
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
148
|
+
isOptional: false;
|
|
465
149
|
};
|
|
466
150
|
flagKey: {
|
|
467
|
-
|
|
468
|
-
|
|
151
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
152
|
+
isOptional: false;
|
|
469
153
|
};
|
|
470
154
|
deletedAt: {
|
|
471
|
-
|
|
472
|
-
|
|
155
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
156
|
+
isOptional: false;
|
|
473
157
|
};
|
|
474
|
-
|
|
475
|
-
|
|
158
|
+
}>>;
|
|
159
|
+
/**
|
|
160
|
+
* Emitted when an experiment is created.
|
|
161
|
+
*/
|
|
162
|
+
export declare const ExperimentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
476
163
|
experimentId: {
|
|
477
|
-
|
|
478
|
-
|
|
164
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
165
|
+
isOptional: false;
|
|
479
166
|
};
|
|
480
167
|
key: {
|
|
481
|
-
|
|
482
|
-
|
|
168
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
169
|
+
isOptional: false;
|
|
483
170
|
};
|
|
484
171
|
name: {
|
|
485
|
-
|
|
486
|
-
|
|
172
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
173
|
+
isOptional: false;
|
|
487
174
|
};
|
|
488
175
|
flagId: {
|
|
489
|
-
|
|
490
|
-
|
|
176
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
177
|
+
isOptional: false;
|
|
491
178
|
};
|
|
492
179
|
variants: {
|
|
493
|
-
|
|
494
|
-
|
|
180
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
181
|
+
isOptional: false;
|
|
495
182
|
};
|
|
496
183
|
createdBy: {
|
|
497
|
-
|
|
498
|
-
|
|
184
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
185
|
+
isOptional: true;
|
|
499
186
|
};
|
|
500
187
|
createdAt: {
|
|
501
|
-
|
|
502
|
-
|
|
188
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
189
|
+
isOptional: false;
|
|
503
190
|
};
|
|
504
|
-
|
|
505
|
-
|
|
191
|
+
}>>;
|
|
192
|
+
/**
|
|
193
|
+
* Emitted when an experiment starts.
|
|
194
|
+
*/
|
|
195
|
+
export declare const ExperimentStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
506
196
|
experimentId: {
|
|
507
|
-
|
|
508
|
-
|
|
197
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
198
|
+
isOptional: false;
|
|
509
199
|
};
|
|
510
200
|
key: {
|
|
511
|
-
|
|
512
|
-
|
|
201
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
202
|
+
isOptional: false;
|
|
513
203
|
};
|
|
514
204
|
flagId: {
|
|
515
|
-
|
|
516
|
-
|
|
205
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
206
|
+
isOptional: false;
|
|
517
207
|
};
|
|
518
208
|
variants: {
|
|
519
|
-
|
|
520
|
-
|
|
209
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
210
|
+
isOptional: false;
|
|
521
211
|
};
|
|
522
212
|
audiencePercentage: {
|
|
523
|
-
|
|
524
|
-
|
|
213
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
214
|
+
isOptional: false;
|
|
525
215
|
};
|
|
526
216
|
startedBy: {
|
|
527
|
-
|
|
528
|
-
|
|
217
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
218
|
+
isOptional: true;
|
|
529
219
|
};
|
|
530
220
|
startedAt: {
|
|
531
|
-
|
|
532
|
-
|
|
221
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
222
|
+
isOptional: false;
|
|
533
223
|
};
|
|
534
|
-
|
|
535
|
-
|
|
224
|
+
}>>;
|
|
225
|
+
/**
|
|
226
|
+
* Emitted when an experiment stops.
|
|
227
|
+
*/
|
|
228
|
+
export declare const ExperimentStoppedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
536
229
|
experimentId: {
|
|
537
|
-
|
|
538
|
-
|
|
230
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
231
|
+
isOptional: false;
|
|
539
232
|
};
|
|
540
233
|
key: {
|
|
541
|
-
|
|
542
|
-
|
|
234
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
235
|
+
isOptional: false;
|
|
543
236
|
};
|
|
544
237
|
reason: {
|
|
545
|
-
|
|
546
|
-
|
|
238
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
239
|
+
isOptional: false;
|
|
547
240
|
};
|
|
548
241
|
winningVariant: {
|
|
549
|
-
|
|
550
|
-
|
|
242
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
243
|
+
isOptional: true;
|
|
551
244
|
};
|
|
552
245
|
stoppedBy: {
|
|
553
|
-
|
|
554
|
-
|
|
246
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
247
|
+
isOptional: true;
|
|
555
248
|
};
|
|
556
249
|
stoppedAt: {
|
|
557
|
-
|
|
558
|
-
|
|
250
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
251
|
+
isOptional: false;
|
|
559
252
|
};
|
|
560
|
-
|
|
561
|
-
|
|
253
|
+
}>>;
|
|
254
|
+
/**
|
|
255
|
+
* Emitted when a flag is evaluated (for analytics).
|
|
256
|
+
*/
|
|
257
|
+
export declare const FlagEvaluatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
562
258
|
flagId: {
|
|
563
|
-
|
|
564
|
-
|
|
259
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
260
|
+
isOptional: false;
|
|
565
261
|
};
|
|
566
262
|
flagKey: {
|
|
567
|
-
|
|
568
|
-
|
|
263
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
264
|
+
isOptional: false;
|
|
569
265
|
};
|
|
570
266
|
subjectType: {
|
|
571
|
-
|
|
572
|
-
|
|
267
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
268
|
+
isOptional: false;
|
|
573
269
|
};
|
|
574
270
|
subjectId: {
|
|
575
|
-
|
|
576
|
-
|
|
271
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
272
|
+
isOptional: false;
|
|
577
273
|
};
|
|
578
274
|
result: {
|
|
579
|
-
|
|
580
|
-
|
|
275
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
276
|
+
isOptional: false;
|
|
581
277
|
};
|
|
582
278
|
variant: {
|
|
583
|
-
|
|
584
|
-
|
|
279
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
280
|
+
isOptional: true;
|
|
585
281
|
};
|
|
586
282
|
reason: {
|
|
587
|
-
|
|
588
|
-
|
|
283
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
284
|
+
isOptional: false;
|
|
589
285
|
};
|
|
590
286
|
evaluatedAt: {
|
|
591
|
-
|
|
592
|
-
|
|
287
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
288
|
+
isOptional: false;
|
|
593
289
|
};
|
|
594
|
-
|
|
595
|
-
|
|
290
|
+
}>>;
|
|
291
|
+
/**
|
|
292
|
+
* Emitted when a subject is assigned to an experiment variant.
|
|
293
|
+
*/
|
|
294
|
+
export declare const VariantAssignedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
596
295
|
experimentId: {
|
|
597
|
-
|
|
598
|
-
|
|
296
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
297
|
+
isOptional: false;
|
|
599
298
|
};
|
|
600
299
|
experimentKey: {
|
|
601
|
-
|
|
602
|
-
|
|
300
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
301
|
+
isOptional: false;
|
|
603
302
|
};
|
|
604
303
|
subjectType: {
|
|
605
|
-
|
|
606
|
-
|
|
304
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
305
|
+
isOptional: false;
|
|
607
306
|
};
|
|
608
307
|
subjectId: {
|
|
609
|
-
|
|
610
|
-
|
|
308
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
309
|
+
isOptional: false;
|
|
611
310
|
};
|
|
612
311
|
variant: {
|
|
613
|
-
|
|
614
|
-
|
|
312
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
313
|
+
isOptional: false;
|
|
615
314
|
};
|
|
616
315
|
bucket: {
|
|
617
|
-
|
|
618
|
-
|
|
316
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
317
|
+
isOptional: false;
|
|
619
318
|
};
|
|
620
319
|
assignedAt: {
|
|
621
|
-
|
|
622
|
-
|
|
320
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
321
|
+
isOptional: false;
|
|
623
322
|
};
|
|
624
|
-
|
|
323
|
+
}>>;
|
|
324
|
+
/**
|
|
325
|
+
* All feature flag events.
|
|
326
|
+
*/
|
|
327
|
+
export declare const FeatureFlagEvents: {
|
|
328
|
+
FlagCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
329
|
+
flagId: {
|
|
330
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
331
|
+
isOptional: false;
|
|
332
|
+
};
|
|
333
|
+
key: {
|
|
334
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
335
|
+
isOptional: false;
|
|
336
|
+
};
|
|
337
|
+
name: {
|
|
338
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
339
|
+
isOptional: false;
|
|
340
|
+
};
|
|
341
|
+
status: {
|
|
342
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
343
|
+
isOptional: false;
|
|
344
|
+
};
|
|
345
|
+
orgId: {
|
|
346
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
347
|
+
isOptional: true;
|
|
348
|
+
};
|
|
349
|
+
createdBy: {
|
|
350
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
351
|
+
isOptional: true;
|
|
352
|
+
};
|
|
353
|
+
createdAt: {
|
|
354
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
355
|
+
isOptional: false;
|
|
356
|
+
};
|
|
357
|
+
}>>;
|
|
358
|
+
FlagUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
359
|
+
flagId: {
|
|
360
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
361
|
+
isOptional: false;
|
|
362
|
+
};
|
|
363
|
+
key: {
|
|
364
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
365
|
+
isOptional: false;
|
|
366
|
+
};
|
|
367
|
+
changes: {
|
|
368
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
369
|
+
isOptional: false;
|
|
370
|
+
};
|
|
371
|
+
updatedBy: {
|
|
372
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
373
|
+
isOptional: true;
|
|
374
|
+
};
|
|
375
|
+
updatedAt: {
|
|
376
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
377
|
+
isOptional: false;
|
|
378
|
+
};
|
|
379
|
+
}>>;
|
|
380
|
+
FlagDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
381
|
+
flagId: {
|
|
382
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
383
|
+
isOptional: false;
|
|
384
|
+
};
|
|
385
|
+
key: {
|
|
386
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
387
|
+
isOptional: false;
|
|
388
|
+
};
|
|
389
|
+
deletedBy: {
|
|
390
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
391
|
+
isOptional: true;
|
|
392
|
+
};
|
|
393
|
+
deletedAt: {
|
|
394
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
395
|
+
isOptional: false;
|
|
396
|
+
};
|
|
397
|
+
}>>;
|
|
398
|
+
FlagToggledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
399
|
+
flagId: {
|
|
400
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
401
|
+
isOptional: false;
|
|
402
|
+
};
|
|
403
|
+
key: {
|
|
404
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
405
|
+
isOptional: false;
|
|
406
|
+
};
|
|
407
|
+
previousStatus: {
|
|
408
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
409
|
+
isOptional: false;
|
|
410
|
+
};
|
|
411
|
+
newStatus: {
|
|
412
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
413
|
+
isOptional: false;
|
|
414
|
+
};
|
|
415
|
+
toggledBy: {
|
|
416
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
417
|
+
isOptional: true;
|
|
418
|
+
};
|
|
419
|
+
toggledAt: {
|
|
420
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
421
|
+
isOptional: false;
|
|
422
|
+
};
|
|
423
|
+
}>>;
|
|
424
|
+
RuleCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
425
|
+
ruleId: {
|
|
426
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
427
|
+
isOptional: false;
|
|
428
|
+
};
|
|
429
|
+
flagId: {
|
|
430
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
431
|
+
isOptional: false;
|
|
432
|
+
};
|
|
433
|
+
flagKey: {
|
|
434
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
435
|
+
isOptional: false;
|
|
436
|
+
};
|
|
437
|
+
attribute: {
|
|
438
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
439
|
+
isOptional: false;
|
|
440
|
+
};
|
|
441
|
+
operator: {
|
|
442
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
443
|
+
isOptional: false;
|
|
444
|
+
};
|
|
445
|
+
createdAt: {
|
|
446
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
447
|
+
isOptional: false;
|
|
448
|
+
};
|
|
449
|
+
}>>;
|
|
450
|
+
RuleDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
451
|
+
ruleId: {
|
|
452
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
453
|
+
isOptional: false;
|
|
454
|
+
};
|
|
455
|
+
flagId: {
|
|
456
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
457
|
+
isOptional: false;
|
|
458
|
+
};
|
|
459
|
+
flagKey: {
|
|
460
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
461
|
+
isOptional: false;
|
|
462
|
+
};
|
|
463
|
+
deletedAt: {
|
|
464
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
465
|
+
isOptional: false;
|
|
466
|
+
};
|
|
467
|
+
}>>;
|
|
468
|
+
ExperimentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
469
|
+
experimentId: {
|
|
470
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
471
|
+
isOptional: false;
|
|
472
|
+
};
|
|
473
|
+
key: {
|
|
474
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
475
|
+
isOptional: false;
|
|
476
|
+
};
|
|
477
|
+
name: {
|
|
478
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
479
|
+
isOptional: false;
|
|
480
|
+
};
|
|
481
|
+
flagId: {
|
|
482
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
483
|
+
isOptional: false;
|
|
484
|
+
};
|
|
485
|
+
variants: {
|
|
486
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
487
|
+
isOptional: false;
|
|
488
|
+
};
|
|
489
|
+
createdBy: {
|
|
490
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
491
|
+
isOptional: true;
|
|
492
|
+
};
|
|
493
|
+
createdAt: {
|
|
494
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
495
|
+
isOptional: false;
|
|
496
|
+
};
|
|
497
|
+
}>>;
|
|
498
|
+
ExperimentStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
499
|
+
experimentId: {
|
|
500
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
501
|
+
isOptional: false;
|
|
502
|
+
};
|
|
503
|
+
key: {
|
|
504
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
505
|
+
isOptional: false;
|
|
506
|
+
};
|
|
507
|
+
flagId: {
|
|
508
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
509
|
+
isOptional: false;
|
|
510
|
+
};
|
|
511
|
+
variants: {
|
|
512
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
513
|
+
isOptional: false;
|
|
514
|
+
};
|
|
515
|
+
audiencePercentage: {
|
|
516
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
517
|
+
isOptional: false;
|
|
518
|
+
};
|
|
519
|
+
startedBy: {
|
|
520
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
521
|
+
isOptional: true;
|
|
522
|
+
};
|
|
523
|
+
startedAt: {
|
|
524
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
525
|
+
isOptional: false;
|
|
526
|
+
};
|
|
527
|
+
}>>;
|
|
528
|
+
ExperimentStoppedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
529
|
+
experimentId: {
|
|
530
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
531
|
+
isOptional: false;
|
|
532
|
+
};
|
|
533
|
+
key: {
|
|
534
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
535
|
+
isOptional: false;
|
|
536
|
+
};
|
|
537
|
+
reason: {
|
|
538
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
539
|
+
isOptional: false;
|
|
540
|
+
};
|
|
541
|
+
winningVariant: {
|
|
542
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
543
|
+
isOptional: true;
|
|
544
|
+
};
|
|
545
|
+
stoppedBy: {
|
|
546
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
547
|
+
isOptional: true;
|
|
548
|
+
};
|
|
549
|
+
stoppedAt: {
|
|
550
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
551
|
+
isOptional: false;
|
|
552
|
+
};
|
|
553
|
+
}>>;
|
|
554
|
+
FlagEvaluatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
555
|
+
flagId: {
|
|
556
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
557
|
+
isOptional: false;
|
|
558
|
+
};
|
|
559
|
+
flagKey: {
|
|
560
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
561
|
+
isOptional: false;
|
|
562
|
+
};
|
|
563
|
+
subjectType: {
|
|
564
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
565
|
+
isOptional: false;
|
|
566
|
+
};
|
|
567
|
+
subjectId: {
|
|
568
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
569
|
+
isOptional: false;
|
|
570
|
+
};
|
|
571
|
+
result: {
|
|
572
|
+
type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
|
|
573
|
+
isOptional: false;
|
|
574
|
+
};
|
|
575
|
+
variant: {
|
|
576
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
577
|
+
isOptional: true;
|
|
578
|
+
};
|
|
579
|
+
reason: {
|
|
580
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
581
|
+
isOptional: false;
|
|
582
|
+
};
|
|
583
|
+
evaluatedAt: {
|
|
584
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
585
|
+
isOptional: false;
|
|
586
|
+
};
|
|
587
|
+
}>>;
|
|
588
|
+
VariantAssignedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
589
|
+
experimentId: {
|
|
590
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
591
|
+
isOptional: false;
|
|
592
|
+
};
|
|
593
|
+
experimentKey: {
|
|
594
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
595
|
+
isOptional: false;
|
|
596
|
+
};
|
|
597
|
+
subjectType: {
|
|
598
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
599
|
+
isOptional: false;
|
|
600
|
+
};
|
|
601
|
+
subjectId: {
|
|
602
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
603
|
+
isOptional: false;
|
|
604
|
+
};
|
|
605
|
+
variant: {
|
|
606
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
607
|
+
isOptional: false;
|
|
608
|
+
};
|
|
609
|
+
bucket: {
|
|
610
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
611
|
+
isOptional: false;
|
|
612
|
+
};
|
|
613
|
+
assignedAt: {
|
|
614
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
615
|
+
isOptional: false;
|
|
616
|
+
};
|
|
617
|
+
}>>;
|
|
625
618
|
};
|
|
626
|
-
//#endregion
|
|
627
|
-
export { ExperimentCreatedEvent, ExperimentStartedEvent, ExperimentStoppedEvent, FeatureFlagEvents, FlagCreatedEvent, FlagDeletedEvent, FlagEvaluatedEvent, FlagToggledEvent, FlagUpdatedEvent, RuleCreatedEvent, RuleDeletedEvent, VariantAssignedEvent };
|
|
628
619
|
//# sourceMappingURL=events.d.ts.map
|