@meetkai/mka1 0.54.3 → 0.54.4

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.
Files changed (70) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +23 -9
  3. package/bin/mcp-server.js.map +8 -8
  4. package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +2 -1
  5. package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +9 -1
  7. package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.js +2 -2
  12. package/dist/commonjs/mcp-server/server.js.map +1 -1
  13. package/dist/commonjs/models/components/connection.d.ts +2 -0
  14. package/dist/commonjs/models/components/connection.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/connection.js +5 -0
  16. package/dist/commonjs/models/components/connection.js.map +1 -1
  17. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +2 -0
  18. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +2 -0
  20. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -1
  21. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +1 -0
  22. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -1
  23. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +1 -0
  24. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -1
  25. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +9 -4
  26. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  27. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  28. package/dist/commonjs/sdk/schema3other.d.ts +4 -4
  29. package/dist/commonjs/sdk/schema3other.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/schema3other.js +6 -6
  31. package/dist/commonjs/sdk/schema3other.js.map +1 -1
  32. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +2 -1
  33. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  34. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +10 -2
  35. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  36. package/dist/esm/lib/config.d.ts +2 -2
  37. package/dist/esm/lib/config.js +2 -2
  38. package/dist/esm/mcp-server/mcp-server.js +1 -1
  39. package/dist/esm/mcp-server/server.js +2 -2
  40. package/dist/esm/mcp-server/server.js.map +1 -1
  41. package/dist/esm/models/components/connection.d.ts +2 -0
  42. package/dist/esm/models/components/connection.d.ts.map +1 -1
  43. package/dist/esm/models/components/connection.js +5 -0
  44. package/dist/esm/models/components/connection.js.map +1 -1
  45. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +2 -0
  46. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -1
  47. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +2 -0
  48. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -1
  49. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +1 -0
  50. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -1
  51. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +1 -0
  52. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -1
  53. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +9 -4
  54. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  55. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  56. package/dist/esm/sdk/schema3other.d.ts +4 -4
  57. package/dist/esm/sdk/schema3other.d.ts.map +1 -1
  58. package/dist/esm/sdk/schema3other.js +6 -6
  59. package/dist/esm/sdk/schema3other.js.map +1 -1
  60. package/jsr.json +1 -1
  61. package/package.json +1 -1
  62. package/src/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +16 -2
  63. package/src/lib/config.ts +2 -2
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +2 -2
  66. package/src/models/components/connection.ts +9 -0
  67. package/src/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.ts +4 -0
  68. package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.ts +5 -1
  69. package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +12 -2
  70. package/src/sdk/schema3other.ts +11 -11
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.54.3",
22
+ currentVersion: "0.54.4",
23
23
  },
24
24
  });
25
25
 
@@ -384,7 +384,7 @@ export function createMCPServer(deps: {
384
384
  }) {
385
385
  const server = new McpServer({
386
386
  name: "SDK",
387
- version: "0.54.3",
387
+ version: "0.54.4",
388
388
  });
389
389
 
390
390
  const client = new SDKCore({
@@ -420,8 +420,8 @@ export function createMCPServer(deps: {
420
420
  tool(tool$guardrailsListGuardrailsPolicies);
421
421
  tool(tool$guardrailsTestGuardrails);
422
422
  tool(tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost);
423
- tool(tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet);
424
423
  tool(tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost);
424
+ tool(tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet);
425
425
  tool(tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete);
426
426
  tool(tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet);
427
427
  tool(
@@ -19,6 +19,7 @@ export type Connection = {
19
19
  githubUserId: number;
20
20
  scopes: string;
21
21
  syncedAt: Date;
22
+ tokenInvalidAt?: Date | null | undefined;
22
23
  repositories: Array<ConnectedRepository>;
23
24
  };
24
25
 
@@ -32,12 +33,16 @@ export const Connection$inboundSchema: z.ZodType<
32
33
  github_user_id: z.number().int(),
33
34
  scopes: z.string(),
34
35
  synced_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
36
+ token_invalid_at: z.nullable(
37
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
38
+ ).optional(),
35
39
  repositories: z.array(ConnectedRepository$inboundSchema),
36
40
  }).transform((v) => {
37
41
  return remap$(v, {
38
42
  "github_login": "githubLogin",
39
43
  "github_user_id": "githubUserId",
40
44
  "synced_at": "syncedAt",
45
+ "token_invalid_at": "tokenInvalidAt",
41
46
  });
42
47
  });
43
48
  /** @internal */
@@ -46,6 +51,7 @@ export type Connection$Outbound = {
46
51
  github_user_id: number;
47
52
  scopes: string;
48
53
  synced_at: string;
54
+ token_invalid_at?: string | null | undefined;
49
55
  repositories: Array<ConnectedRepository$Outbound>;
50
56
  };
51
57
 
@@ -59,12 +65,15 @@ export const Connection$outboundSchema: z.ZodType<
59
65
  githubUserId: z.number().int(),
60
66
  scopes: z.string(),
61
67
  syncedAt: z.date().transform(v => v.toISOString()),
68
+ tokenInvalidAt: z.nullable(z.date().transform(v => v.toISOString()))
69
+ .optional(),
62
70
  repositories: z.array(ConnectedRepository$outboundSchema),
63
71
  }).transform((v) => {
64
72
  return remap$(v, {
65
73
  githubLogin: "github_login",
66
74
  githubUserId: "github_user_id",
67
75
  syncedAt: "synced_at",
76
+ tokenInvalidAt: "token_invalid_at",
68
77
  });
69
78
  });
70
79
 
@@ -9,6 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest = {
12
+ verify?: boolean | undefined;
12
13
  /**
13
14
  * Optional external end-user identifier forwarded by the API gateway.
14
15
  */
@@ -22,6 +23,7 @@ export const GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$inboundSc
22
23
  z.ZodTypeDef,
23
24
  unknown
24
25
  > = z.object({
26
+ verify: z.boolean().default(false),
25
27
  "X-On-Behalf-Of": z.string().optional(),
26
28
  }).transform((v) => {
27
29
  return remap$(v, {
@@ -31,6 +33,7 @@ export const GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$inboundSc
31
33
  /** @internal */
32
34
  export type GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$Outbound =
33
35
  {
36
+ verify: boolean;
34
37
  "X-On-Behalf-Of"?: string | undefined;
35
38
  };
36
39
 
@@ -41,6 +44,7 @@ export const GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$outboundS
41
44
  z.ZodTypeDef,
42
45
  GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest
43
46
  > = z.object({
47
+ verify: z.boolean().default(false),
44
48
  xOnBehalfOf: z.string().optional(),
45
49
  }).transform((v) => {
46
50
  return remap$(v, {
@@ -47,6 +47,7 @@ export function buildSchema3OtherGetConnectionApiV1SandboxGithubOauthConnections
47
47
  return {
48
48
  queryKey:
49
49
  queryKeySchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet({
50
+ verify: request.verify,
50
51
  xOnBehalfOf: request.xOnBehalfOf,
51
52
  }),
52
53
  queryFn:
@@ -78,7 +79,10 @@ export function buildSchema3OtherGetConnectionApiV1SandboxGithubOauthConnections
78
79
  }
79
80
 
80
81
  export function queryKeySchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
81
- parameters: { xOnBehalfOf?: string | undefined },
82
+ parameters: {
83
+ verify?: boolean | undefined;
84
+ xOnBehalfOf?: string | undefined;
85
+ },
82
86
  ): QueryKey {
83
87
  return [
84
88
  "@meetkai/mka1",
@@ -17,6 +17,7 @@ import {
17
17
  RequestTimeoutError,
18
18
  UnexpectedClientError,
19
19
  } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
20
21
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
21
22
  import { SDKError } from "../models/errors/sdkerror.js";
22
23
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
@@ -41,6 +42,7 @@ export {
41
42
  };
42
43
 
43
44
  export type Schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGetQueryError =
45
+ | errors.HTTPValidationError
44
46
  | SDKError
45
47
  | ResponseValidationError
46
48
  | ConnectionError
@@ -100,7 +102,12 @@ export function useSchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGe
100
102
 
101
103
  export function setSchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGetData(
102
104
  client: QueryClient,
103
- queryKeyBase: [parameters: { xOnBehalfOf?: string | undefined }],
105
+ queryKeyBase: [
106
+ parameters: {
107
+ verify?: boolean | undefined;
108
+ xOnBehalfOf?: string | undefined;
109
+ },
110
+ ],
104
111
  data: Schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGetQueryData,
105
112
  ):
106
113
  | Schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGetQueryData
@@ -119,7 +126,10 @@ export function setSchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGe
119
126
  export function invalidateSchema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
120
127
  client: QueryClient,
121
128
  queryKeyBase: TupleToPrefixes<
122
- [parameters: { xOnBehalfOf?: string | undefined }]
129
+ [parameters: {
130
+ verify?: boolean | undefined;
131
+ xOnBehalfOf?: string | undefined;
132
+ }]
123
133
  >,
124
134
  filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
125
135
  ): Promise<void> {
@@ -35,15 +35,14 @@ export class Schema3Other extends ClientSDK {
35
35
  }
36
36
 
37
37
  /**
38
- * Get Connection
38
+ * Connect
39
39
  */
40
- async getConnectionApiV1SandboxGithubOauthConnectionsGet(
41
- request:
42
- operations.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest,
40
+ async connectApiV1SandboxGithubOauthConnectionsPost(
41
+ request: operations.ConnectApiV1SandboxGithubOauthConnectionsPostRequest,
43
42
  options?: RequestOptions,
44
- ): Promise<components.ConnectionEnvelope> {
43
+ ): Promise<components.Connection> {
45
44
  return unwrapAsync(
46
- schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
45
+ schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost(
47
46
  this,
48
47
  request,
49
48
  options,
@@ -52,14 +51,15 @@ export class Schema3Other extends ClientSDK {
52
51
  }
53
52
 
54
53
  /**
55
- * Connect
54
+ * Get Connection
56
55
  */
57
- async connectApiV1SandboxGithubOauthConnectionsPost(
58
- request: operations.ConnectApiV1SandboxGithubOauthConnectionsPostRequest,
56
+ async getConnectionApiV1SandboxGithubOauthConnectionsGet(
57
+ request:
58
+ operations.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest,
59
59
  options?: RequestOptions,
60
- ): Promise<components.Connection> {
60
+ ): Promise<components.ConnectionEnvelope> {
61
61
  return unwrapAsync(
62
- schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost(
62
+ schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
63
63
  this,
64
64
  request,
65
65
  options,