@meetkai/mka1 0.54.41 → 0.54.43
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 +33 -14
- package/bin/mcp-server.js.map +12 -12
- 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/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- 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/models/components/analyticsprojectcreate.d.ts +1 -1
- package/dist/commonjs/models/components/sessionstatus.d.ts +1 -0
- package/dist/commonjs/models/components/sessionstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/sessionstatus.js +1 -0
- package/dist/commonjs/models/components/sessionstatus.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/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/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- 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/models/components/analyticsprojectcreate.d.ts +1 -1
- package/dist/esm/models/components/sessionstatus.d.ts +1 -0
- package/dist/esm/models/components/sessionstatus.d.ts.map +1 -1
- package/dist/esm/models/components/sessionstatus.js +1 -0
- package/dist/esm/models/components/sessionstatus.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/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/lib/config.ts +3 -3
- 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/models/components/analyticsprojectcreate.ts +1 -1
- package/src/models/components/sessionstatus.ts +1 -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/sdk/projects.ts +6 -0
|
@@ -4,10 +4,16 @@ import * as operations from "../models/operations/index.js";
|
|
|
4
4
|
export declare class Projects extends ClientSDK {
|
|
5
5
|
/**
|
|
6
6
|
* Create an analytics project
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* 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.
|
|
7
10
|
*/
|
|
8
11
|
create(request: components.AnalyticsProjectCreate, options?: RequestOptions): Promise<components.AnalyticsProject>;
|
|
9
12
|
/**
|
|
10
13
|
* List accessible analytics projects
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
11
17
|
*/
|
|
12
18
|
list(request: operations.AnalyticsProjectsListRequest, options?: RequestOptions): Promise<components.AnalyticsProjectList>;
|
|
13
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/sdk/projects.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/sdk/projects.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQvC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;OAEG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQvC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQvC;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;CAOxC"}
|
package/dist/esm/sdk/projects.js
CHANGED
|
@@ -11,12 +11,18 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
11
11
|
export class Projects extends ClientSDK {
|
|
12
12
|
/**
|
|
13
13
|
* Create an analytics project
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
14
17
|
*/
|
|
15
18
|
async create(request, options) {
|
|
16
19
|
return unwrapAsync(analyticsProjectsCreate(this, request, options));
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* List accessible analytics projects
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* 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.
|
|
20
26
|
*/
|
|
21
27
|
async list(request, options) {
|
|
22
28
|
return unwrapAsync(analyticsProjectsList(this, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/sdk/projects.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/sdk/projects.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA0C,EAC1C,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
/**
|
|
30
30
|
* Create an analytics project
|
|
31
31
|
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* 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.
|
|
34
|
+
*
|
|
32
35
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
33
36
|
*/
|
|
34
37
|
export function analyticsProjectsCreate(
|
|
@@ -30,6 +30,9 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
/**
|
|
31
31
|
* List accessible analytics projects
|
|
32
32
|
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* 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.
|
|
35
|
+
*
|
|
33
36
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
34
37
|
*/
|
|
35
38
|
export function analyticsProjectsList(
|
|
@@ -96,6 +99,8 @@ async function $do(
|
|
|
96
99
|
"after": payload.after,
|
|
97
100
|
"include_archived": payload.include_archived,
|
|
98
101
|
"limit": payload.limit,
|
|
102
|
+
"ownership": payload.ownership,
|
|
103
|
+
"team_id": payload.team_id,
|
|
99
104
|
});
|
|
100
105
|
|
|
101
106
|
const headers = new Headers(compactMap({
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
68
|
+
sdkVersion: "0.54.43",
|
|
69
|
+
genVersion: "2.938.0",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.43 2.938.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,7 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$analyticsProjectsCreate: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "analytics-projects-create",
|
|
15
|
-
description: `Create an analytics project
|
|
15
|
+
description: `Create an analytics project
|
|
16
|
+
|
|
17
|
+
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.`,
|
|
16
18
|
args,
|
|
17
19
|
tool: async (client, args, ctx) => {
|
|
18
20
|
const [result, apiCall] = await analyticsProjectsCreate(
|
|
@@ -12,7 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$analyticsProjectsList: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "analytics-projects-list",
|
|
15
|
-
description: `List accessible analytics projects
|
|
15
|
+
description: `List accessible analytics projects
|
|
16
|
+
|
|
17
|
+
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.`,
|
|
16
18
|
args,
|
|
17
19
|
tool: async (client, args, ctx) => {
|
|
18
20
|
const [result, apiCall] = await analyticsProjectsList(
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
export type AnalyticsProjectCreate = {
|
|
12
12
|
name: string;
|
|
13
13
|
/**
|
|
14
|
-
* Defaults to the authenticated team.
|
|
14
|
+
* Team that owns the project. Defaults to the authenticated team. Organization owners and admins can name any team in their organization, or pass null for an organization-level project. Service accounts can only use their own team.
|
|
15
15
|
*/
|
|
16
16
|
teamId?: string | null | undefined;
|
|
17
17
|
};
|
|
@@ -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">,
|
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,
|