@repome/api 0.1.7 → 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.d.mts +826 -0
- package/dist/index.mjs +11 -1
- package/package.json +1 -1
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(
|
|
519
|
+
ttlSeconds: z.number().int().min(60).max(86400 * 30).optional()
|
|
510
520
|
});
|
|
511
521
|
const anonRepoSchema = repoSchema.extend({
|
|
512
522
|
expiresAt: z.string(),
|