@meetkai/mka1 0.54.3 → 0.54.5

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 (79) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +25 -9
  3. package/bin/mcp-server.js.map +9 -9
  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/components/createagentrunrequest.d.ts +5 -0
  18. package/dist/commonjs/models/components/createagentrunrequest.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/createagentrunrequest.js +2 -0
  20. package/dist/commonjs/models/components/createagentrunrequest.js.map +1 -1
  21. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +2 -0
  22. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +2 -0
  24. package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -1
  25. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +1 -0
  26. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -1
  27. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +1 -0
  28. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -1
  29. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +9 -4
  30. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  31. package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  32. package/dist/commonjs/sdk/schema3other.d.ts +4 -4
  33. package/dist/commonjs/sdk/schema3other.d.ts.map +1 -1
  34. package/dist/commonjs/sdk/schema3other.js +6 -6
  35. package/dist/commonjs/sdk/schema3other.js.map +1 -1
  36. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +2 -1
  37. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  38. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +10 -2
  39. package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  40. package/dist/esm/lib/config.d.ts +2 -2
  41. package/dist/esm/lib/config.js +2 -2
  42. package/dist/esm/mcp-server/mcp-server.js +1 -1
  43. package/dist/esm/mcp-server/server.js +2 -2
  44. package/dist/esm/mcp-server/server.js.map +1 -1
  45. package/dist/esm/models/components/connection.d.ts +2 -0
  46. package/dist/esm/models/components/connection.d.ts.map +1 -1
  47. package/dist/esm/models/components/connection.js +5 -0
  48. package/dist/esm/models/components/connection.js.map +1 -1
  49. package/dist/esm/models/components/createagentrunrequest.d.ts +5 -0
  50. package/dist/esm/models/components/createagentrunrequest.d.ts.map +1 -1
  51. package/dist/esm/models/components/createagentrunrequest.js +2 -0
  52. package/dist/esm/models/components/createagentrunrequest.js.map +1 -1
  53. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +2 -0
  54. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -1
  55. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +2 -0
  56. package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -1
  57. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +1 -0
  58. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -1
  59. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +1 -0
  60. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -1
  61. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +9 -4
  62. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -1
  63. package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -1
  64. package/dist/esm/sdk/schema3other.d.ts +4 -4
  65. package/dist/esm/sdk/schema3other.d.ts.map +1 -1
  66. package/dist/esm/sdk/schema3other.js +6 -6
  67. package/dist/esm/sdk/schema3other.js.map +1 -1
  68. package/jsr.json +1 -1
  69. package/package.json +1 -1
  70. package/src/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +16 -2
  71. package/src/lib/config.ts +2 -2
  72. package/src/mcp-server/mcp-server.ts +1 -1
  73. package/src/mcp-server/server.ts +2 -2
  74. package/src/models/components/connection.ts +9 -0
  75. package/src/models/components/createagentrunrequest.ts +7 -0
  76. package/src/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.ts +4 -0
  77. package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.ts +5 -1
  78. package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +12 -2
  79. package/src/sdk/schema3other.ts +11 -11
package/README.md CHANGED
@@ -878,8 +878,8 @@ run();
878
878
  ### [Schema3Other](docs/sdks/schema3other/README.md)
879
879
 
880
880
  * [createIntentApiV1SandboxGithubOauthIntentsPost](docs/sdks/schema3other/README.md#createintentapiv1sandboxgithuboauthintentspost) - Create Intent
881
- * [getConnectionApiV1SandboxGithubOauthConnectionsGet](docs/sdks/schema3other/README.md#getconnectionapiv1sandboxgithuboauthconnectionsget) - Get Connection
882
881
  * [connectApiV1SandboxGithubOauthConnectionsPost](docs/sdks/schema3other/README.md#connectapiv1sandboxgithuboauthconnectionspost) - Connect
882
+ * [getConnectionApiV1SandboxGithubOauthConnectionsGet](docs/sdks/schema3other/README.md#getconnectionapiv1sandboxgithuboauthconnectionsget) - Get Connection
883
883
  * [disconnectApiV1SandboxGithubOauthConnectionsDelete](docs/sdks/schema3other/README.md#disconnectapiv1sandboxgithuboauthconnectionsdelete) - Disconnect
884
884
  * [listRepositoriesApiV1SandboxGithubRepositoriesGet](docs/sdks/schema3other/README.md#listrepositoriesapiv1sandboxgithubrepositoriesget) - List Repositories
885
885
  * [refreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost](docs/sdks/schema3other/README.md#refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost) - Refresh Repositories
@@ -1879,7 +1879,7 @@ run();
1879
1879
 
1880
1880
  **Inherit from [`SDKError`](./src/models/errors/sdkerror.ts)**:
1881
1881
  * [`ErrorEnvelope`](./src/models/errors/errorenvelope.ts): Error response. Applicable to 27 of 360 methods.*
1882
- * [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. Applicable to 21 of 360 methods.*
1882
+ * [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. Applicable to 22 of 360 methods.*
1883
1883
  * [`RepoError`](./src/models/errors/repoerror.ts): The uniform error envelope. `error` is a stable machine-readable code (never an internal reason); `correlation_id` echoes the request's `X-Correlation-ID` for log correlation. Applicable to 5 of 360 methods.*
1884
1884
  * [`ExchangeSessionTokenResponseBody`](./src/models/errors/exchangesessiontokenresponsebody.ts): Invalid request. Status code `400`. Applicable to 1 of 360 methods.*
1885
1885
  * [`GetFileContentResponseBody`](./src/models/errors/getfilecontentresponsebody.ts): Invalid request - File ID is required. Status code `400`. Applicable to 1 of 360 methods.*
package/bin/mcp-server.js CHANGED
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
52876
52876
  SDK_METADATA = {
52877
52877
  language: "typescript",
52878
52878
  openapiDocVersion: "1.1.0",
52879
- sdkVersion: "0.54.3",
52879
+ sdkVersion: "0.54.5",
52880
52880
  genVersion: "2.932.9",
52881
- userAgent: "speakeasy-sdk/typescript 0.54.3 2.932.9 1.1.0 @meetkai/mka1"
52881
+ userAgent: "speakeasy-sdk/typescript 0.54.5 2.932.9 1.1.0 @meetkai/mka1"
52882
52882
  };
52883
52883
  });
52884
52884
 
@@ -61828,12 +61828,14 @@ var init_connection = __esm(() => {
61828
61828
  github_user_id: numberType().int(),
61829
61829
  scopes: stringType(),
61830
61830
  synced_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
61831
+ token_invalid_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
61831
61832
  repositories: arrayType(ConnectedRepository$inboundSchema)
61832
61833
  }).transform((v2) => {
61833
61834
  return remap(v2, {
61834
61835
  github_login: "githubLogin",
61835
61836
  github_user_id: "githubUserId",
61836
- synced_at: "syncedAt"
61837
+ synced_at: "syncedAt",
61838
+ token_invalid_at: "tokenInvalidAt"
61837
61839
  });
61838
61840
  });
61839
61841
  Connection$outboundSchema = objectType({
@@ -61841,12 +61843,14 @@ var init_connection = __esm(() => {
61841
61843
  githubUserId: numberType().int(),
61842
61844
  scopes: stringType(),
61843
61845
  syncedAt: dateType().transform((v2) => v2.toISOString()),
61846
+ tokenInvalidAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
61844
61847
  repositories: arrayType(ConnectedRepository$outboundSchema)
61845
61848
  }).transform((v2) => {
61846
61849
  return remap(v2, {
61847
61850
  githubLogin: "github_login",
61848
61851
  githubUserId: "github_user_id",
61849
- syncedAt: "synced_at"
61852
+ syncedAt: "synced_at",
61853
+ tokenInvalidAt: "token_invalid_at"
61850
61854
  });
61851
61855
  });
61852
61856
  });
@@ -62285,6 +62289,7 @@ var init_createagentrunrequest = __esm(() => {
62285
62289
  conversation: anyType().optional(),
62286
62290
  previous_response_id: stringType().optional(),
62287
62291
  context_management: arrayType(AgentCompactionContextManagement$inboundSchema).optional(),
62292
+ stream: booleanType().default(false),
62288
62293
  metadata: recordType(stringType()).optional()
62289
62294
  }).transform((v2) => {
62290
62295
  return remap(v2, {
@@ -62300,6 +62305,7 @@ var init_createagentrunrequest = __esm(() => {
62300
62305
  conversation: anyType().optional(),
62301
62306
  previousResponseId: stringType().optional(),
62302
62307
  contextManagement: arrayType(AgentCompactionContextManagement$outboundSchema).optional(),
62308
+ stream: booleanType().default(false),
62303
62309
  metadata: recordType(stringType()).optional()
62304
62310
  }).transform((v2) => {
62305
62311
  return remap(v2, {
@@ -91581,6 +91587,7 @@ var init_getconnectionapiv1sandboxgithuboauthconnectionsget = __esm(() => {
91581
91587
  init_esm();
91582
91588
  init_primitives();
91583
91589
  GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$inboundSchema = objectType({
91590
+ verify: booleanType().default(false),
91584
91591
  "X-On-Behalf-Of": stringType().optional()
91585
91592
  }).transform((v2) => {
91586
91593
  return remap(v2, {
@@ -91588,6 +91595,7 @@ var init_getconnectionapiv1sandboxgithuboauthconnectionsget = __esm(() => {
91588
91595
  });
91589
91596
  });
91590
91597
  GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$outboundSchema = objectType({
91598
+ verify: booleanType().default(false),
91591
91599
  xOnBehalfOf: stringType().optional()
91592
91600
  }).transform((v2) => {
91593
91601
  return remap(v2, {
@@ -145816,6 +145824,9 @@ async function $do351(client, request, options) {
145816
145824
  const payload = parsed.value;
145817
145825
  const body = null;
145818
145826
  const path = pathToFunc("/api/v1/sandbox/github/oauth/connections")();
145827
+ const query = encodeFormQuery({
145828
+ verify: payload.verify
145829
+ });
145819
145830
  const headers = new Headers(compactMap({
145820
145831
  Accept: "application/json",
145821
145832
  "X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
@@ -145848,6 +145859,7 @@ async function $do351(client, request, options) {
145848
145859
  baseURL: options?.serverURL,
145849
145860
  path,
145850
145861
  headers,
145862
+ query,
145851
145863
  body,
145852
145864
  userAgent: client._options.userAgent,
145853
145865
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -145866,7 +145878,10 @@ async function $do351(client, request, options) {
145866
145878
  return [doResult, { status: "request-error", request: req }];
145867
145879
  }
145868
145880
  const response = doResult.value;
145869
- const [result] = await match(json(200, ConnectionEnvelope$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
145881
+ const responseFields = {
145882
+ HttpMeta: { Response: response, Request: req }
145883
+ };
145884
+ const [result] = await match(json(200, ConnectionEnvelope$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
145870
145885
  if (!result.ok) {
145871
145886
  return [result, { status: "complete", request: req, response }];
145872
145887
  }
@@ -145881,6 +145896,7 @@ var init_schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet = __esm(
145881
145896
  init_security();
145882
145897
  init_url();
145883
145898
  init_components();
145899
+ init_errors4();
145884
145900
  init_operations();
145885
145901
  init_async();
145886
145902
  });
@@ -146725,7 +146741,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
146725
146741
  function createMCPServer(deps) {
146726
146742
  const server = new McpServer({
146727
146743
  name: "SDK",
146728
- version: "0.54.3"
146744
+ version: "0.54.5"
146729
146745
  });
146730
146746
  const client = new SDKCore({
146731
146747
  bearerAuth: deps.bearerAuth,
@@ -146745,8 +146761,8 @@ function createMCPServer(deps) {
146745
146761
  tool(tool$guardrailsListGuardrailsPolicies);
146746
146762
  tool(tool$guardrailsTestGuardrails);
146747
146763
  tool(tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost);
146748
- tool(tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet);
146749
146764
  tool(tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost);
146765
+ tool(tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet);
146750
146766
  tool(tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete);
146751
146767
  tool(tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet);
146752
146768
  tool(tool$schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost);
@@ -148639,7 +148655,7 @@ var routes = rn({
148639
148655
  var app = Ve(routes, {
148640
148656
  name: "mcp",
148641
148657
  versionInfo: {
148642
- currentVersion: "0.54.3"
148658
+ currentVersion: "0.54.5"
148643
148659
  }
148644
148660
  });
148645
148661
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -148647,5 +148663,5 @@ export {
148647
148663
  app
148648
148664
  };
148649
148665
 
148650
- //# debugId=68DBF16DC5A70E8264756E2164756E21
148666
+ //# debugId=A053DC8067107D8864756E2164756E21
148651
148667
  //# sourceMappingURL=mcp-server.js.map