mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
# Conflicts: # .github/workflows/check-insights-major-version.yml # .github/workflows/check-posthog-major-version.yml # .github/workflows/ci-security.yaml # .github/workflows/validate-versioning.yml # AGENTS.md # AGENTS.md~upstream_main # packages/ai/src/otel/capture.ts # packages/ai/src/otel/mappers/aiSdk.ts # packages/ai/src/otel/mappers/index.ts # packages/ai/src/otel/types.ts # packages/core/src/__tests__/posthog.init.spec.ts # packages/react-native/src/PostHogProvider.tsx # packages/react/src/context/PostHogContext.ts # packages/react/src/context/PostHogProvider.tsx # tooling/eslint-plugin-insights/no-unsafe-web-global.js
231 lines
5.4 KiB
TypeScript
231 lines
5.4 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated `api` utility.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type * as aiSdk_manualCapture from "../aiSdk/manualCapture.js";
|
|
import type * as aiSdk_openTelemetry from "../aiSdk/openTelemetry.js";
|
|
import type * as convexAgent_manualCapture from "../convexAgent/manualCapture.js";
|
|
import type * as convexAgent_openTelemetry from "../convexAgent/openTelemetry.js";
|
|
import type * as crons from "../crons.js";
|
|
import type * as example from "../example.js";
|
|
import type * as insights from "../insights.js";
|
|
|
|
import type {
|
|
ApiFromModules,
|
|
FilterApi,
|
|
FunctionReference,
|
|
} from "convex/server";
|
|
|
|
declare const fullApi: ApiFromModules<{
|
|
"aiSdk/manualCapture": typeof aiSdk_manualCapture;
|
|
"aiSdk/openTelemetry": typeof aiSdk_openTelemetry;
|
|
"convexAgent/manualCapture": typeof convexAgent_manualCapture;
|
|
"convexAgent/openTelemetry": typeof convexAgent_openTelemetry;
|
|
crons: typeof crons;
|
|
example: typeof example;
|
|
insights: typeof insights;
|
|
}>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's public API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = api.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const api: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "public">
|
|
>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's internal API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = internal.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const internal: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "internal">
|
|
>;
|
|
|
|
export declare const components: {
|
|
insights: {
|
|
lib: {
|
|
alias: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
alias: string;
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
host: string;
|
|
},
|
|
any
|
|
>;
|
|
capture: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
event: string;
|
|
groups?: any;
|
|
host: string;
|
|
properties?: any;
|
|
sendFeatureFlags?: boolean;
|
|
timestamp?: number;
|
|
uuid?: string;
|
|
},
|
|
any
|
|
>;
|
|
captureException: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
additionalProperties?: any;
|
|
apiKey: string;
|
|
distinctId?: string;
|
|
errorMessage: string;
|
|
errorName?: string;
|
|
errorStack?: string;
|
|
host: string;
|
|
},
|
|
any
|
|
>;
|
|
getAllFlags: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
flagKeys?: Array<string>;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
personProperties?: any;
|
|
},
|
|
any
|
|
>;
|
|
getAllFlagsAndPayloads: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
flagKeys?: Array<string>;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
personProperties?: any;
|
|
},
|
|
any
|
|
>;
|
|
getFeatureFlag: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
key: string;
|
|
personProperties?: any;
|
|
sendFeatureFlagEvents?: boolean;
|
|
},
|
|
any
|
|
>;
|
|
getFeatureFlagPayload: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
key: string;
|
|
matchValue?: string | boolean;
|
|
personProperties?: any;
|
|
sendFeatureFlagEvents?: boolean;
|
|
},
|
|
any
|
|
>;
|
|
getFeatureFlagResult: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
key: string;
|
|
personProperties?: any;
|
|
sendFeatureFlagEvents?: boolean;
|
|
},
|
|
any
|
|
>;
|
|
groupIdentify: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId?: string;
|
|
groupKey: string;
|
|
groupType: string;
|
|
host: string;
|
|
properties?: any;
|
|
},
|
|
any
|
|
>;
|
|
identify: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
host: string;
|
|
properties?: any;
|
|
},
|
|
any
|
|
>;
|
|
isFeatureEnabled: FunctionReference<
|
|
"action",
|
|
"internal",
|
|
{
|
|
apiKey: string;
|
|
disableGeoip?: boolean;
|
|
distinctId: string;
|
|
groupProperties?: any;
|
|
groups?: any;
|
|
host: string;
|
|
key: string;
|
|
personProperties?: any;
|
|
sendFeatureFlagEvents?: boolean;
|
|
},
|
|
any
|
|
>;
|
|
};
|
|
};
|
|
};
|