@meetkai/mka1 0.53.19 → 0.53.22

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 (45) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +12 -7
  3. package/bin/mcp-server.js.map +8 -8
  4. package/dist/commonjs/funcs/authClusterAcceptInvite.d.ts +1 -1
  5. package/dist/commonjs/funcs/authClusterAcceptInvite.js +1 -1
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/authClusterAcceptInvite.js +1 -1
  11. package/dist/commonjs/mcp-server/tools/authClusterAcceptInvite.js.map +1 -1
  12. package/dist/commonjs/models/errors/acceptclusterinvite.d.ts +5 -2
  13. package/dist/commonjs/models/errors/acceptclusterinvite.d.ts.map +1 -1
  14. package/dist/commonjs/models/errors/acceptclusterinvite.js +5 -1
  15. package/dist/commonjs/models/errors/acceptclusterinvite.js.map +1 -1
  16. package/dist/commonjs/react-query/authClusterAcceptInvite.d.ts +1 -1
  17. package/dist/commonjs/react-query/authClusterAcceptInvite.js +1 -1
  18. package/dist/commonjs/sdk/cluster.d.ts +1 -1
  19. package/dist/commonjs/sdk/cluster.js +1 -1
  20. package/dist/esm/funcs/authClusterAcceptInvite.d.ts +1 -1
  21. package/dist/esm/funcs/authClusterAcceptInvite.js +1 -1
  22. package/dist/esm/lib/config.d.ts +2 -2
  23. package/dist/esm/lib/config.js +2 -2
  24. package/dist/esm/mcp-server/mcp-server.js +1 -1
  25. package/dist/esm/mcp-server/server.js +1 -1
  26. package/dist/esm/mcp-server/tools/authClusterAcceptInvite.js +1 -1
  27. package/dist/esm/mcp-server/tools/authClusterAcceptInvite.js.map +1 -1
  28. package/dist/esm/models/errors/acceptclusterinvite.d.ts +5 -2
  29. package/dist/esm/models/errors/acceptclusterinvite.d.ts.map +1 -1
  30. package/dist/esm/models/errors/acceptclusterinvite.js +5 -1
  31. package/dist/esm/models/errors/acceptclusterinvite.js.map +1 -1
  32. package/dist/esm/react-query/authClusterAcceptInvite.d.ts +1 -1
  33. package/dist/esm/react-query/authClusterAcceptInvite.js +1 -1
  34. package/dist/esm/sdk/cluster.d.ts +1 -1
  35. package/dist/esm/sdk/cluster.js +1 -1
  36. package/jsr.json +1 -1
  37. package/package.json +1 -1
  38. package/src/funcs/authClusterAcceptInvite.ts +1 -1
  39. package/src/lib/config.ts +2 -2
  40. package/src/mcp-server/mcp-server.ts +1 -1
  41. package/src/mcp-server/server.ts +1 -1
  42. package/src/mcp-server/tools/authClusterAcceptInvite.ts +1 -1
  43. package/src/models/errors/acceptclusterinvite.ts +9 -2
  44. package/src/react-query/authClusterAcceptInvite.ts +1 -1
  45. package/src/sdk/cluster.ts +1 -1
@@ -144,16 +144,19 @@ export class AcceptClusterInviteAuthClusterResponseBody extends SDKError {
144
144
  }
145
145
 
146
146
  /**
147
- * Bad request
147
+ * Bad request. `code: "reserved_org_slug"` distinguishes a slug that nobody may hold from the 409 returned when another org already holds it.
148
148
  */
149
149
  export type AcceptClusterInviteResponseBodyData = {
150
150
  message: string;
151
+ code?: string | undefined;
151
152
  };
152
153
 
153
154
  /**
154
- * Bad request
155
+ * Bad request. `code: "reserved_org_slug"` distinguishes a slug that nobody may hold from the 409 returned when another org already holds it.
155
156
  */
156
157
  export class AcceptClusterInviteResponseBody extends SDKError {
158
+ code?: string | undefined;
159
+
157
160
  /** The original data that was passed to this error instance. */
158
161
  data$: AcceptClusterInviteResponseBodyData;
159
162
 
@@ -164,6 +167,7 @@ export class AcceptClusterInviteResponseBody extends SDKError {
164
167
  const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
165
168
  super(message, httpMeta);
166
169
  this.data$ = err;
170
+ if (err.code != null) this.code = err.code;
167
171
 
168
172
  this.name = "AcceptClusterInviteResponseBody";
169
173
  }
@@ -358,6 +362,7 @@ export const AcceptClusterInviteResponseBody$inboundSchema: z.ZodType<
358
362
  unknown
359
363
  > = z.object({
360
364
  message: z.string(),
365
+ code: z.string().optional(),
361
366
  request$: z.instanceof(Request),
362
367
  response$: z.instanceof(Response),
363
368
  body$: z.string(),
@@ -373,6 +378,7 @@ export const AcceptClusterInviteResponseBody$inboundSchema: z.ZodType<
373
378
  /** @internal */
374
379
  export type AcceptClusterInviteResponseBody$Outbound = {
375
380
  message: string;
381
+ code?: string | undefined;
376
382
  };
377
383
 
378
384
  /** @internal */
@@ -384,4 +390,5 @@ export const AcceptClusterInviteResponseBody$outboundSchema: z.ZodType<
384
390
  .transform(v => v.data$)
385
391
  .pipe(z.object({
386
392
  message: z.string(),
393
+ code: z.string().optional(),
387
394
  }));
@@ -55,7 +55,7 @@ export type AuthClusterAcceptInviteMutationError =
55
55
  * Accept a cluster invitation (public)
56
56
  *
57
57
  * @remarks
58
- * Accept an invite and create the org. Existing signed-in user, new email/password owner, or (email-bound) headless machine owner with `passwordless: true, issueApiKey: true`.
58
+ * Accept an invite and create the org. Existing signed-in user, new email/password owner, or (email-bound) headless machine owner with `passwordless: true, issueApiKey: true`. A reserved slug (`api`, whether supplied as `orgSlug` or derived from `orgName`) is refused with 400 `reserved_org_slug`; a slug another org already holds is refused with 409. Note `POST /organization/check-slug` does not know about reserved slugs and will report `api` as available.
59
59
  */
60
60
  export function useAuthClusterAcceptInviteMutation(
61
61
  options?: MutationHookOptions<
@@ -168,7 +168,7 @@ export class Cluster extends ClientSDK {
168
168
  * Accept a cluster invitation (public)
169
169
  *
170
170
  * @remarks
171
- * Accept an invite and create the org. Existing signed-in user, new email/password owner, or (email-bound) headless machine owner with `passwordless: true, issueApiKey: true`.
171
+ * Accept an invite and create the org. Existing signed-in user, new email/password owner, or (email-bound) headless machine owner with `passwordless: true, issueApiKey: true`. A reserved slug (`api`, whether supplied as `orgSlug` or derived from `orgName`) is refused with 400 `reserved_org_slug`; a slug another org already holds is refused with 409. Note `POST /organization/check-slug` does not know about reserved slugs and will report `api` as available.
172
172
  */
173
173
  async acceptInvite(
174
174
  request: operations.AcceptClusterInviteRequest,