@meetkai/mka1 0.54.42 → 0.54.44
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/bin/mcp-server.js +34 -14
- package/bin/mcp-server.js.map +15 -15
- package/dist/commonjs/funcs/analyticsProjectsCreate.d.ts +3 -0
- package/dist/commonjs/funcs/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsProjectsCreate.js +3 -0
- package/dist/commonjs/funcs/analyticsProjectsCreate.js.map +1 -1
- package/dist/commonjs/funcs/analyticsProjectsList.d.ts +3 -0
- package/dist/commonjs/funcs/analyticsProjectsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsProjectsList.js +5 -0
- package/dist/commonjs/funcs/analyticsProjectsList.js.map +1 -1
- package/dist/commonjs/funcs/analyticsQuery.d.ts +1 -1
- package/dist/commonjs/funcs/analyticsQuery.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsCreate.js +3 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsList.js +3 -1
- package/dist/commonjs/mcp-server/tools/analyticsProjectsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsQuery.js +1 -1
- package/dist/commonjs/mcp-server/tools/analyticsQuery.js.map +1 -1
- package/dist/commonjs/models/components/analyticsprojectcreate.d.ts +1 -1
- package/dist/commonjs/models/components/analyticsqueryrequest.d.ts +8 -3
- package/dist/commonjs/models/components/analyticsqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticsqueryrequest.js +3 -1
- package/dist/commonjs/models/components/analyticsqueryrequest.js.map +1 -1
- package/dist/commonjs/models/components/analyticsqueryresponse.d.ts +3 -0
- package/dist/commonjs/models/components/analyticsqueryresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticsqueryresponse.js.map +1 -1
- package/dist/commonjs/models/operations/analyticsprojectslist.d.ts +25 -0
- package/dist/commonjs/models/operations/analyticsprojectslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/analyticsprojectslist.js +19 -1
- package/dist/commonjs/models/operations/analyticsprojectslist.js.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsCreate.d.ts +3 -0
- package/dist/commonjs/react-query/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsCreate.js +3 -0
- package/dist/commonjs/react-query/analyticsProjectsCreate.js.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsList.core.d.ts +2 -0
- package/dist/commonjs/react-query/analyticsProjectsList.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsList.core.js +2 -0
- package/dist/commonjs/react-query/analyticsProjectsList.core.js.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsList.d.ts +10 -0
- package/dist/commonjs/react-query/analyticsProjectsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/analyticsProjectsList.js +6 -0
- package/dist/commonjs/react-query/analyticsProjectsList.js.map +1 -1
- package/dist/commonjs/react-query/analyticsQuery.d.ts +1 -1
- package/dist/commonjs/react-query/analyticsQuery.js +1 -1
- package/dist/commonjs/sdk/analytics.d.ts +1 -1
- package/dist/commonjs/sdk/analytics.js +1 -1
- package/dist/commonjs/sdk/projects.d.ts +6 -0
- package/dist/commonjs/sdk/projects.d.ts.map +1 -1
- package/dist/commonjs/sdk/projects.js +6 -0
- package/dist/commonjs/sdk/projects.js.map +1 -1
- package/dist/esm/funcs/analyticsProjectsCreate.d.ts +3 -0
- package/dist/esm/funcs/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsProjectsCreate.js +3 -0
- package/dist/esm/funcs/analyticsProjectsCreate.js.map +1 -1
- package/dist/esm/funcs/analyticsProjectsList.d.ts +3 -0
- package/dist/esm/funcs/analyticsProjectsList.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsProjectsList.js +5 -0
- package/dist/esm/funcs/analyticsProjectsList.js.map +1 -1
- package/dist/esm/funcs/analyticsQuery.d.ts +1 -1
- package/dist/esm/funcs/analyticsQuery.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsCreate.js +3 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsList.js +3 -1
- package/dist/esm/mcp-server/tools/analyticsProjectsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/analyticsQuery.js +1 -1
- package/dist/esm/mcp-server/tools/analyticsQuery.js.map +1 -1
- package/dist/esm/models/components/analyticsprojectcreate.d.ts +1 -1
- package/dist/esm/models/components/analyticsqueryrequest.d.ts +8 -3
- package/dist/esm/models/components/analyticsqueryrequest.d.ts.map +1 -1
- package/dist/esm/models/components/analyticsqueryrequest.js +3 -1
- package/dist/esm/models/components/analyticsqueryrequest.js.map +1 -1
- package/dist/esm/models/components/analyticsqueryresponse.d.ts +3 -0
- package/dist/esm/models/components/analyticsqueryresponse.d.ts.map +1 -1
- package/dist/esm/models/components/analyticsqueryresponse.js.map +1 -1
- package/dist/esm/models/operations/analyticsprojectslist.d.ts +25 -0
- package/dist/esm/models/operations/analyticsprojectslist.d.ts.map +1 -1
- package/dist/esm/models/operations/analyticsprojectslist.js +18 -0
- package/dist/esm/models/operations/analyticsprojectslist.js.map +1 -1
- package/dist/esm/react-query/analyticsProjectsCreate.d.ts +3 -0
- package/dist/esm/react-query/analyticsProjectsCreate.d.ts.map +1 -1
- package/dist/esm/react-query/analyticsProjectsCreate.js +3 -0
- package/dist/esm/react-query/analyticsProjectsCreate.js.map +1 -1
- package/dist/esm/react-query/analyticsProjectsList.core.d.ts +2 -0
- package/dist/esm/react-query/analyticsProjectsList.core.d.ts.map +1 -1
- package/dist/esm/react-query/analyticsProjectsList.core.js +2 -0
- package/dist/esm/react-query/analyticsProjectsList.core.js.map +1 -1
- package/dist/esm/react-query/analyticsProjectsList.d.ts +10 -0
- package/dist/esm/react-query/analyticsProjectsList.d.ts.map +1 -1
- package/dist/esm/react-query/analyticsProjectsList.js +6 -0
- package/dist/esm/react-query/analyticsProjectsList.js.map +1 -1
- package/dist/esm/react-query/analyticsQuery.d.ts +1 -1
- package/dist/esm/react-query/analyticsQuery.js +1 -1
- package/dist/esm/sdk/analytics.d.ts +1 -1
- package/dist/esm/sdk/analytics.js +1 -1
- package/dist/esm/sdk/projects.d.ts +6 -0
- package/dist/esm/sdk/projects.d.ts.map +1 -1
- package/dist/esm/sdk/projects.js +6 -0
- package/dist/esm/sdk/projects.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsProjectsCreate.ts +3 -0
- package/src/funcs/analyticsProjectsList.ts +5 -0
- package/src/funcs/analyticsQuery.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/analyticsProjectsCreate.ts +3 -1
- package/src/mcp-server/tools/analyticsProjectsList.ts +3 -1
- package/src/mcp-server/tools/analyticsQuery.ts +1 -1
- package/src/models/components/analyticsprojectcreate.ts +1 -1
- package/src/models/components/analyticsqueryrequest.ts +10 -3
- package/src/models/components/analyticsqueryresponse.ts +3 -0
- package/src/models/operations/analyticsprojectslist.ts +35 -0
- package/src/react-query/analyticsProjectsCreate.ts +3 -0
- package/src/react-query/analyticsProjectsList.core.ts +4 -0
- package/src/react-query/analyticsProjectsList.ts +10 -0
- package/src/react-query/analyticsQuery.ts +1 -1
- package/src/sdk/analytics.ts +1 -1
- package/src/sdk/projects.ts +6 -0
|
@@ -24,7 +24,7 @@ export type AnalyticsQueryRequestMetric = ClosedEnum<
|
|
|
24
24
|
>;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Split results into
|
|
27
|
+
* Split results into time buckets. Hours, days, and Monday-start weeks begin on the clock of timezone, which defaults to UTC. Empty buckets are omitted.
|
|
28
28
|
*/
|
|
29
29
|
export const Bucket = {
|
|
30
30
|
Hour: "hour",
|
|
@@ -32,7 +32,7 @@ export const Bucket = {
|
|
|
32
32
|
Week: "week",
|
|
33
33
|
} as const;
|
|
34
34
|
/**
|
|
35
|
-
* Split results into
|
|
35
|
+
* Split results into time buckets. Hours, days, and Monday-start weeks begin on the clock of timezone, which defaults to UTC. Empty buckets are omitted.
|
|
36
36
|
*/
|
|
37
37
|
export type Bucket = ClosedEnum<typeof Bucket>;
|
|
38
38
|
|
|
@@ -92,9 +92,13 @@ export type AnalyticsQueryRequest = {
|
|
|
92
92
|
*/
|
|
93
93
|
eventName?: string | undefined;
|
|
94
94
|
/**
|
|
95
|
-
* Split results into
|
|
95
|
+
* Split results into time buckets. Hours, days, and Monday-start weeks begin on the clock of timezone, which defaults to UTC. Empty buckets are omitted.
|
|
96
96
|
*/
|
|
97
97
|
bucket?: Bucket | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* IANA time zone name that sets where buckets start. Defaults to UTC. A day is a local calendar day and lasts 23 or 25 hours when the clocks change. In zones offset by 30 or 45 minutes, hours start on the local clock. UTC offsets such as +05:30 are rejected, as are identifiers outside the IANA database such as PST or BST, and names the service's time zone database does not know, which can lag the newest IANA zones; fall back to UTC when the 400 names timezone. Only bucket boundaries change: from, to, filters, and the UTC format of each row's bucket stay the same. Has no effect without bucket.
|
|
100
|
+
*/
|
|
101
|
+
timezone?: string | undefined;
|
|
98
102
|
/**
|
|
99
103
|
* Group results by one event property. Missing values and null share a group.
|
|
100
104
|
*/
|
|
@@ -221,6 +225,7 @@ export const AnalyticsQueryRequest$inboundSchema: z.ZodType<
|
|
|
221
225
|
to: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
222
226
|
event_name: z.string().optional(),
|
|
223
227
|
bucket: Bucket$inboundSchema.optional(),
|
|
228
|
+
timezone: z.string().optional(),
|
|
224
229
|
group_by: z.string().optional(),
|
|
225
230
|
filters: z.array(z.lazy(() => AnalyticsQueryRequestFilters$inboundSchema))
|
|
226
231
|
.optional(),
|
|
@@ -238,6 +243,7 @@ export type AnalyticsQueryRequest$Outbound = {
|
|
|
238
243
|
to: string;
|
|
239
244
|
event_name?: string | undefined;
|
|
240
245
|
bucket?: string | undefined;
|
|
246
|
+
timezone?: string | undefined;
|
|
241
247
|
group_by?: string | undefined;
|
|
242
248
|
filters?: Array<AnalyticsQueryRequestFilters$Outbound> | undefined;
|
|
243
249
|
limit: number;
|
|
@@ -254,6 +260,7 @@ export const AnalyticsQueryRequest$outboundSchema: z.ZodType<
|
|
|
254
260
|
to: z.date().transform(v => v.toISOString()),
|
|
255
261
|
eventName: z.string().optional(),
|
|
256
262
|
bucket: Bucket$outboundSchema.optional(),
|
|
263
|
+
timezone: z.string().optional(),
|
|
257
264
|
groupBy: z.string().optional(),
|
|
258
265
|
filters: z.array(z.lazy(() => AnalyticsQueryRequestFilters$outboundSchema))
|
|
259
266
|
.optional(),
|
|
@@ -19,6 +19,9 @@ export type AnalyticsQueryResponseMetric = ClosedEnum<
|
|
|
19
19
|
export type Group = string | number | boolean;
|
|
20
20
|
|
|
21
21
|
export type Rows = {
|
|
22
|
+
/**
|
|
23
|
+
* Start of the bucket as an ISO 8601 UTC timestamp ending in Z. With a timezone, this is the UTC instant at which the local hour, day, or week starts. Format it in that time zone for display.
|
|
24
|
+
*/
|
|
22
25
|
bucket?: string | undefined;
|
|
23
26
|
group?: string | number | boolean | null | undefined;
|
|
24
27
|
value: number;
|
|
@@ -15,10 +15,30 @@ export const IncludeArchived = {
|
|
|
15
15
|
} as const;
|
|
16
16
|
export type IncludeArchived = ClosedEnum<typeof IncludeArchived>;
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Return only team-owned projects (team) or organization-level projects with a null team_id (organization). organization cannot be combined with team_id.
|
|
20
|
+
*/
|
|
21
|
+
export const Ownership = {
|
|
22
|
+
Team: "team",
|
|
23
|
+
Organization: "organization",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Return only team-owned projects (team) or organization-level projects with a null team_id (organization). organization cannot be combined with team_id.
|
|
27
|
+
*/
|
|
28
|
+
export type Ownership = ClosedEnum<typeof Ownership>;
|
|
29
|
+
|
|
18
30
|
export type AnalyticsProjectsListRequest = {
|
|
19
31
|
limit?: number | undefined;
|
|
20
32
|
after?: string | undefined;
|
|
21
33
|
includeArchived?: IncludeArchived | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Return only projects owned by this team. Filters narrow the projects the caller can already access; a team the caller cannot access returns an empty list.
|
|
36
|
+
*/
|
|
37
|
+
teamId?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Return only team-owned projects (team) or organization-level projects with a null team_id (organization). organization cannot be combined with team_id.
|
|
40
|
+
*/
|
|
41
|
+
ownership?: Ownership | undefined;
|
|
22
42
|
};
|
|
23
43
|
|
|
24
44
|
/** @internal */
|
|
@@ -30,6 +50,13 @@ export const IncludeArchived$outboundSchema: z.ZodNativeEnum<
|
|
|
30
50
|
typeof IncludeArchived
|
|
31
51
|
> = IncludeArchived$inboundSchema;
|
|
32
52
|
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const Ownership$inboundSchema: z.ZodNativeEnum<typeof Ownership> = z
|
|
55
|
+
.nativeEnum(Ownership);
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const Ownership$outboundSchema: z.ZodNativeEnum<typeof Ownership> =
|
|
58
|
+
Ownership$inboundSchema;
|
|
59
|
+
|
|
33
60
|
/** @internal */
|
|
34
61
|
export const AnalyticsProjectsListRequest$inboundSchema: z.ZodType<
|
|
35
62
|
AnalyticsProjectsListRequest,
|
|
@@ -39,9 +66,12 @@ export const AnalyticsProjectsListRequest$inboundSchema: z.ZodType<
|
|
|
39
66
|
limit: z.number().int().default(50),
|
|
40
67
|
after: z.string().optional(),
|
|
41
68
|
include_archived: IncludeArchived$inboundSchema.default("false"),
|
|
69
|
+
team_id: z.string().optional(),
|
|
70
|
+
ownership: Ownership$inboundSchema.optional(),
|
|
42
71
|
}).transform((v) => {
|
|
43
72
|
return remap$(v, {
|
|
44
73
|
"include_archived": "includeArchived",
|
|
74
|
+
"team_id": "teamId",
|
|
45
75
|
});
|
|
46
76
|
});
|
|
47
77
|
/** @internal */
|
|
@@ -49,6 +79,8 @@ export type AnalyticsProjectsListRequest$Outbound = {
|
|
|
49
79
|
limit: number;
|
|
50
80
|
after?: string | undefined;
|
|
51
81
|
include_archived: string;
|
|
82
|
+
team_id?: string | undefined;
|
|
83
|
+
ownership?: string | undefined;
|
|
52
84
|
};
|
|
53
85
|
|
|
54
86
|
/** @internal */
|
|
@@ -60,9 +92,12 @@ export const AnalyticsProjectsListRequest$outboundSchema: z.ZodType<
|
|
|
60
92
|
limit: z.number().int().default(50),
|
|
61
93
|
after: z.string().optional(),
|
|
62
94
|
includeArchived: IncludeArchived$outboundSchema.default("false"),
|
|
95
|
+
teamId: z.string().optional(),
|
|
96
|
+
ownership: Ownership$outboundSchema.optional(),
|
|
63
97
|
}).transform((v) => {
|
|
64
98
|
return remap$(v, {
|
|
65
99
|
includeArchived: "include_archived",
|
|
100
|
+
teamId: "team_id",
|
|
66
101
|
});
|
|
67
102
|
});
|
|
68
103
|
|
|
@@ -47,6 +47,9 @@ export type AnalyticsProjectsCreateMutationError =
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create an analytics project
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Create a project in the caller's organization. Without team_id the project belongs to the authenticated team. Organization owners and admins can create a project for any team in their organization, including teams they are not a member of, or pass team_id: null for an organization-level project. Service accounts can only create projects for their own team; any other team_id returns 403. team_id is trimmed. Ownership cannot be changed after creation.
|
|
50
53
|
*/
|
|
51
54
|
export function useAnalyticsProjectsCreateMutation(
|
|
52
55
|
options?: MutationHookOptions<
|
|
@@ -46,6 +46,8 @@ export function buildAnalyticsProjectsListQuery(
|
|
|
46
46
|
limit: request.limit,
|
|
47
47
|
after: request.after,
|
|
48
48
|
includeArchived: request.includeArchived,
|
|
49
|
+
teamId: request.teamId,
|
|
50
|
+
ownership: request.ownership,
|
|
49
51
|
}),
|
|
50
52
|
queryFn: async function analyticsProjectsListQueryFn(
|
|
51
53
|
ctx,
|
|
@@ -75,6 +77,8 @@ export function queryKeyAnalyticsProjectsList(
|
|
|
75
77
|
limit?: number | undefined;
|
|
76
78
|
after?: string | undefined;
|
|
77
79
|
includeArchived?: operations.IncludeArchived | undefined;
|
|
80
|
+
teamId?: string | undefined;
|
|
81
|
+
ownership?: operations.Ownership | undefined;
|
|
78
82
|
},
|
|
79
83
|
): QueryKey {
|
|
80
84
|
return ["@meetkai/mka1", "projects", "list", parameters];
|
|
@@ -54,6 +54,9 @@ export type AnalyticsProjectsListQueryError =
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* List accessible analytics projects
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Organization owners and admins see every project in their organization: all teams' projects and organization-level projects, regardless of their active team. This also applies to an owner's or admin's API keys and exchanged JWTs, whichever team the key was issued for; use a service account for a team-confined credential. Service accounts see only their own team's projects. team_id and ownership narrow that set and never widen it, so filtering by a team the caller cannot access returns an empty list. ownership=organization combined with team_id returns 400. Unknown or repeated query parameters also return 400.
|
|
57
60
|
*/
|
|
58
61
|
export function useAnalyticsProjectsList(
|
|
59
62
|
request: operations.AnalyticsProjectsListRequest,
|
|
@@ -78,6 +81,9 @@ export function useAnalyticsProjectsList(
|
|
|
78
81
|
|
|
79
82
|
/**
|
|
80
83
|
* List accessible analytics projects
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* Organization owners and admins see every project in their organization: all teams' projects and organization-level projects, regardless of their active team. This also applies to an owner's or admin's API keys and exchanged JWTs, whichever team the key was issued for; use a service account for a team-confined credential. Service accounts see only their own team's projects. team_id and ownership narrow that set and never widen it, so filtering by a team the caller cannot access returns an empty list. ownership=organization combined with team_id returns 400. Unknown or repeated query parameters also return 400.
|
|
81
87
|
*/
|
|
82
88
|
export function useAnalyticsProjectsListSuspense(
|
|
83
89
|
request: operations.AnalyticsProjectsListRequest,
|
|
@@ -107,6 +113,8 @@ export function setAnalyticsProjectsListData(
|
|
|
107
113
|
limit?: number | undefined;
|
|
108
114
|
after?: string | undefined;
|
|
109
115
|
includeArchived?: operations.IncludeArchived | undefined;
|
|
116
|
+
teamId?: string | undefined;
|
|
117
|
+
ownership?: operations.Ownership | undefined;
|
|
110
118
|
},
|
|
111
119
|
],
|
|
112
120
|
data: AnalyticsProjectsListQueryData,
|
|
@@ -123,6 +131,8 @@ export function invalidateAnalyticsProjectsList(
|
|
|
123
131
|
limit?: number | undefined;
|
|
124
132
|
after?: string | undefined;
|
|
125
133
|
includeArchived?: operations.IncludeArchived | undefined;
|
|
134
|
+
teamId?: string | undefined;
|
|
135
|
+
ownership?: operations.Ownership | undefined;
|
|
126
136
|
}]
|
|
127
137
|
>,
|
|
128
138
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
@@ -50,7 +50,7 @@ export type AnalyticsQueryMutationError =
|
|
|
50
50
|
* Query event counts or unique visitors
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Count events or unique visitors in a time range. Optionally filter by event name or properties, group by one property, and split results into
|
|
53
|
+
* Count events or unique visitors in a time range. Optionally filter by event name or properties, group by one property, and split results into hour, day, or week buckets that start on the clock of an IANA time zone, UTC by default. Each bucket is returned as the UTC instant at which it starts. The range includes from and excludes to. Duplicate event IDs are counted once. An unknown time zone returns 400.
|
|
54
54
|
*/
|
|
55
55
|
export function useAnalyticsQueryMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
package/src/sdk/analytics.ts
CHANGED
|
@@ -45,7 +45,7 @@ export class Analytics extends ClientSDK {
|
|
|
45
45
|
* Query event counts or unique visitors
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
* Count events or unique visitors in a time range. Optionally filter by event name or properties, group by one property, and split results into
|
|
48
|
+
* Count events or unique visitors in a time range. Optionally filter by event name or properties, group by one property, and split results into hour, day, or week buckets that start on the clock of an IANA time zone, UTC by default. Each bucket is returned as the UTC instant at which it starts. The range includes from and excludes to. Duplicate event IDs are counted once. An unknown time zone returns 400.
|
|
49
49
|
*/
|
|
50
50
|
async query(
|
|
51
51
|
request: operations.AnalyticsQueryRequest,
|
package/src/sdk/projects.ts
CHANGED
|
@@ -15,6 +15,9 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
15
15
|
export class Projects extends ClientSDK {
|
|
16
16
|
/**
|
|
17
17
|
* Create an analytics project
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Create a project in the caller's organization. Without team_id the project belongs to the authenticated team. Organization owners and admins can create a project for any team in their organization, including teams they are not a member of, or pass team_id: null for an organization-level project. Service accounts can only create projects for their own team; any other team_id returns 403. team_id is trimmed. Ownership cannot be changed after creation.
|
|
18
21
|
*/
|
|
19
22
|
async create(
|
|
20
23
|
request: components.AnalyticsProjectCreate,
|
|
@@ -29,6 +32,9 @@ export class Projects extends ClientSDK {
|
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* List accessible analytics projects
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Organization owners and admins see every project in their organization: all teams' projects and organization-level projects, regardless of their active team. This also applies to an owner's or admin's API keys and exchanged JWTs, whichever team the key was issued for; use a service account for a team-confined credential. Service accounts see only their own team's projects. team_id and ownership narrow that set and never widen it, so filtering by a team the caller cannot access returns an empty list. ownership=organization combined with team_id returns 400. Unknown or repeated query parameters also return 400.
|
|
32
38
|
*/
|
|
33
39
|
async list(
|
|
34
40
|
request: operations.AnalyticsProjectsListRequest,
|