@repome/api 0.1.6 → 0.1.8

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/dist/index.mjs CHANGED
@@ -12,6 +12,11 @@ const commonErrors = {
12
12
  message: "Sign in required",
13
13
  data: z.object({}).optional()
14
14
  },
15
+ TOO_MANY_REQUESTS: {
16
+ status: 429,
17
+ message: "Too many requests",
18
+ data: z.object({ retryAfterMs: z.number().int().nonnegative().optional() }).optional()
19
+ },
15
20
  FORBIDDEN: {
16
21
  status: 403,
17
22
  message: "You do not have access to this resource",
@@ -26,6 +31,11 @@ const commonErrors = {
26
31
  message: "Invitation not found",
27
32
  data: z.object({ invitationId: z.string() })
28
33
  },
34
+ KEY_NOT_FOUND: {
35
+ status: 404,
36
+ message: "API key not found",
37
+ data: z.object({ id: z.string() })
38
+ },
29
39
  REPO_NOT_FOUND: {
30
40
  status: 404,
31
41
  message: "Repo not found",
@@ -506,7 +516,7 @@ const anonRepoCreateInputSchema = z.object({
506
516
  name: repoNameSchema.optional(),
507
517
  description: z.string().max(512).optional(),
508
518
  defaultBranch: z.string().min(1).max(128).default("main"),
509
- ttlSeconds: z.number().int().min(0).max(86400 * 30).optional()
519
+ ttlSeconds: z.number().int().min(60).max(86400 * 30).optional()
510
520
  });
511
521
  const anonRepoSchema = repoSchema.extend({
512
522
  expiresAt: z.string(),
@@ -671,6 +681,7 @@ const members = {
671
681
  role: mutableMemberRoleSchema
672
682
  })).output(memberViewSchema),
673
683
  acceptInvite: ocBase.input(z.object({ invitationId: z.string().min(1) })).output(z.object({ accepted: z.boolean() })),
684
+ cancelInvite: ocBase.input(orgInputSchema.extend({ invitationId: z.string().min(1) })).output(z.object({ cancelled: z.boolean() })),
674
685
  setActive: ocBase.input(orgInputSchema).output(z.object({ activeOrganizationId: z.string() }))
675
686
  };
676
687
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repome/api",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Agent-native, GitHub-shaped forge — shared oRPC contract (zod schemas + procedure shapes).",
5
5
  "keywords": [
6
6
  "agent",