@renai-labs/sdk 0.1.25 → 0.1.26
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/generated/@tanstack/react-query.gen.d.ts +256 -52
- package/dist/generated/@tanstack/react-query.gen.js +235 -4
- package/dist/generated/internal/types.gen.d.ts +125 -125
- package/dist/generated/sdk.gen.d.ts +92 -6
- package/dist/generated/sdk.gen.js +180 -6
- package/dist/generated/types.gen.d.ts +1769 -907
- package/dist/generated/zod.gen.d.ts +901 -31
- package/dist/generated/zod.gen.js +286 -19
- package/package.json +1 -1
|
@@ -287,6 +287,10 @@ export const zBlueprintPublicListItem = z.object({
|
|
|
287
287
|
updatedAt: z.iso
|
|
288
288
|
.datetime()
|
|
289
289
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
290
|
+
resourceIds: z.object({
|
|
291
|
+
skillIds: z.array(z.string()),
|
|
292
|
+
mcpIds: z.array(z.string()),
|
|
293
|
+
}),
|
|
290
294
|
});
|
|
291
295
|
export const zSetupSource = z.object({
|
|
292
296
|
name: z.string().min(1).max(64),
|
|
@@ -1068,6 +1072,91 @@ export const zTopology = z.object({
|
|
|
1068
1072
|
}))
|
|
1069
1073
|
.optional(),
|
|
1070
1074
|
});
|
|
1075
|
+
/**
|
|
1076
|
+
* One immutable entry in the product-wide activity log.
|
|
1077
|
+
*/
|
|
1078
|
+
export const zEvent = z.object({
|
|
1079
|
+
id: z.string(),
|
|
1080
|
+
orgId: z.string(),
|
|
1081
|
+
entityType: z.string(),
|
|
1082
|
+
entityId: z.string(),
|
|
1083
|
+
type: z.string(),
|
|
1084
|
+
data: z.record(z.string(), z.unknown()),
|
|
1085
|
+
actorUserId: z.string().nullable(),
|
|
1086
|
+
actorProjectAgentId: z.string().nullable(),
|
|
1087
|
+
createdAt: z.iso
|
|
1088
|
+
.datetime()
|
|
1089
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1090
|
+
});
|
|
1091
|
+
/**
|
|
1092
|
+
* A task with its activity trail embedded.
|
|
1093
|
+
*/
|
|
1094
|
+
export const zTaskDetail = z.object({
|
|
1095
|
+
id: z.string(),
|
|
1096
|
+
orgId: z.string(),
|
|
1097
|
+
userId: z.string().nullable(),
|
|
1098
|
+
podId: z.string().nullable(),
|
|
1099
|
+
projectId: z.string().nullable(),
|
|
1100
|
+
title: z.string(),
|
|
1101
|
+
description: z.string().nullable(),
|
|
1102
|
+
status: z.enum(["open", "in_progress", "done", "dismissed"]),
|
|
1103
|
+
priority: z.enum(["low", "medium", "high"]).nullable(),
|
|
1104
|
+
labels: z.array(z.string()),
|
|
1105
|
+
links: z.array(z.string()),
|
|
1106
|
+
dueAt: z.iso
|
|
1107
|
+
.datetime()
|
|
1108
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1109
|
+
.nullable(),
|
|
1110
|
+
assignedToUserId: z.string().nullable(),
|
|
1111
|
+
assignedToProjectAgentId: z.string().nullable(),
|
|
1112
|
+
createdByUserId: z.string().nullable(),
|
|
1113
|
+
createdByProjectAgentId: z.string().nullable(),
|
|
1114
|
+
createdAt: z.iso
|
|
1115
|
+
.datetime()
|
|
1116
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1117
|
+
updatedAt: z.iso
|
|
1118
|
+
.datetime()
|
|
1119
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1120
|
+
archivedAt: z.iso
|
|
1121
|
+
.datetime()
|
|
1122
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1123
|
+
.nullable(),
|
|
1124
|
+
events: z.array(zEvent).optional(),
|
|
1125
|
+
});
|
|
1126
|
+
/**
|
|
1127
|
+
* An action item in Ren, created and maintained by people or by agents.
|
|
1128
|
+
*/
|
|
1129
|
+
export const zTask = z.object({
|
|
1130
|
+
id: z.string(),
|
|
1131
|
+
orgId: z.string(),
|
|
1132
|
+
userId: z.string().nullable(),
|
|
1133
|
+
podId: z.string().nullable(),
|
|
1134
|
+
projectId: z.string().nullable(),
|
|
1135
|
+
title: z.string(),
|
|
1136
|
+
description: z.string().nullable(),
|
|
1137
|
+
status: z.enum(["open", "in_progress", "done", "dismissed"]),
|
|
1138
|
+
priority: z.enum(["low", "medium", "high"]).nullable(),
|
|
1139
|
+
labels: z.array(z.string()),
|
|
1140
|
+
links: z.array(z.string()),
|
|
1141
|
+
dueAt: z.iso
|
|
1142
|
+
.datetime()
|
|
1143
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1144
|
+
.nullable(),
|
|
1145
|
+
assignedToUserId: z.string().nullable(),
|
|
1146
|
+
assignedToProjectAgentId: z.string().nullable(),
|
|
1147
|
+
createdByUserId: z.string().nullable(),
|
|
1148
|
+
createdByProjectAgentId: z.string().nullable(),
|
|
1149
|
+
createdAt: z.iso
|
|
1150
|
+
.datetime()
|
|
1151
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1152
|
+
updatedAt: z.iso
|
|
1153
|
+
.datetime()
|
|
1154
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1155
|
+
archivedAt: z.iso
|
|
1156
|
+
.datetime()
|
|
1157
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1158
|
+
.nullable(),
|
|
1159
|
+
});
|
|
1071
1160
|
export const zSkillVersionFiles = z.object({
|
|
1072
1161
|
type: z.literal("files"),
|
|
1073
1162
|
files: z.array(z.object({
|
|
@@ -1826,7 +1915,7 @@ export const zOnboardingSetupPersonalOrg = z.object({
|
|
|
1826
1915
|
export const zOnboardingStart = z.object({
|
|
1827
1916
|
podId: z.string(),
|
|
1828
1917
|
projectId: z.string(),
|
|
1829
|
-
|
|
1918
|
+
jobId: z.string(),
|
|
1830
1919
|
initialPrompt: z.string(),
|
|
1831
1920
|
});
|
|
1832
1921
|
export const zModelPricing = z.object({
|
|
@@ -2075,43 +2164,70 @@ export const zInferenceKey = z.object({
|
|
|
2075
2164
|
export const zInferenceSubscriptionRenameInput = z.object({
|
|
2076
2165
|
label: z.string().min(1).max(64),
|
|
2077
2166
|
});
|
|
2078
|
-
export const
|
|
2167
|
+
export const zInferenceConnectCodexInput = z.object({
|
|
2168
|
+
artifact: z.literal("access_token"),
|
|
2169
|
+
token: z.string().min(1).max(8192),
|
|
2079
2170
|
label: z.string().min(1).max(64).optional(),
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
clientHeaders: z.record(z.string(), z.string().max(512)).optional().default({}),
|
|
2091
|
-
}),
|
|
2171
|
+
});
|
|
2172
|
+
export const zInferenceCodexModel = z.object({
|
|
2173
|
+
slug: z.string(),
|
|
2174
|
+
defaultEffort: z.string(),
|
|
2175
|
+
efforts: z.array(z.string()),
|
|
2176
|
+
contextWindow: z.int().gt(0).lte(9007199254740991),
|
|
2177
|
+
maxContextWindow: z.int().gt(0).lte(9007199254740991),
|
|
2178
|
+
});
|
|
2179
|
+
export const zInferenceCodexCatalog = z.object({
|
|
2180
|
+
models: z.array(zInferenceCodexModel),
|
|
2092
2181
|
});
|
|
2093
2182
|
export const zInferenceProviderUsage = z.object({
|
|
2094
2183
|
windows: z.array(z.object({
|
|
2095
2184
|
key: z.string(),
|
|
2185
|
+
kind: z.enum(["quota", "entitlement"]).optional().default("entitlement"),
|
|
2186
|
+
windowMinutes: z.int().gt(0).lte(9007199254740991).nullish().default(null),
|
|
2096
2187
|
utilization: z.number().gte(0).nullable(),
|
|
2097
2188
|
status: z.string().nullable(),
|
|
2098
2189
|
resetsAt: z.string().nullable(),
|
|
2190
|
+
models: z.array(z.string()).optional().default([]),
|
|
2191
|
+
family: z.enum(["opus", "sonnet", "fable", "haiku"]).nullish().default(null),
|
|
2192
|
+
source: z.enum(["oauth_endpoint", "response_header"]).optional().default("response_header"),
|
|
2193
|
+
observedAt: z.string().nullish().default(null),
|
|
2099
2194
|
})),
|
|
2100
2195
|
status: z.string().nullable(),
|
|
2196
|
+
resetsAt: z.string().nullish().default(null),
|
|
2101
2197
|
representativeWindow: z.string().nullable(),
|
|
2102
|
-
overageStatus: z.string().nullable(),
|
|
2103
2198
|
overageDisabledReason: z.string().nullable(),
|
|
2199
|
+
fallbackPercentage: z.number().nullish().default(null),
|
|
2200
|
+
activeLimit: z.string().nullish().default(null),
|
|
2201
|
+
planType: z.string().nullish().default(null),
|
|
2202
|
+
creditsAvailable: z.boolean().nullish().default(null),
|
|
2203
|
+
creditsUnlimited: z.boolean().nullish().default(null),
|
|
2204
|
+
safetyBufferingFasterModel: z.string().nullish().default(null),
|
|
2104
2205
|
observedAt: z.string(),
|
|
2105
2206
|
});
|
|
2106
|
-
export const
|
|
2207
|
+
export const zInferenceSeatHealth = z.enum([
|
|
2208
|
+
"connected",
|
|
2209
|
+
"exhausted",
|
|
2210
|
+
"transient",
|
|
2211
|
+
"needs_reauth",
|
|
2212
|
+
"blocked",
|
|
2213
|
+
"refresh_uncertain",
|
|
2214
|
+
"disabled",
|
|
2215
|
+
]);
|
|
2216
|
+
export const zInferenceProvider = z.enum(["anthropic", "openai"]);
|
|
2107
2217
|
export const zInferenceSubscriptionSeat = z.object({
|
|
2108
2218
|
id: z.string(),
|
|
2109
2219
|
provider: zInferenceProvider,
|
|
2110
2220
|
label: z.string(),
|
|
2111
|
-
health:
|
|
2221
|
+
health: zInferenceSeatHealth,
|
|
2112
2222
|
cooldownUntil: z.string().nullable(),
|
|
2113
2223
|
subscriptionType: z.string().nullable(),
|
|
2114
2224
|
rateLimitTier: z.string().nullable(),
|
|
2225
|
+
credentialKind: z.string(),
|
|
2226
|
+
workspaceId: z.string().nullable(),
|
|
2227
|
+
planType: z.string().nullable(),
|
|
2228
|
+
supportedModels: z.array(z.string()).nullable(),
|
|
2229
|
+
healthReason: z.string().nullable(),
|
|
2230
|
+
credentialExpiresAt: z.string().nullable(),
|
|
2115
2231
|
contributor: z
|
|
2116
2232
|
.object({
|
|
2117
2233
|
id: z.string(),
|
|
@@ -2122,6 +2238,33 @@ export const zInferenceSubscriptionSeat = z.object({
|
|
|
2122
2238
|
lastSelectedAt: z.string().nullable(),
|
|
2123
2239
|
connectedAt: z.string(),
|
|
2124
2240
|
});
|
|
2241
|
+
export const zInferenceCodexDeviceStatus = z.object({
|
|
2242
|
+
status: z.enum(["pending", "completed", "failed", "expired"]),
|
|
2243
|
+
seat: zInferenceSubscriptionSeat.nullable(),
|
|
2244
|
+
reason: z.string().nullable(),
|
|
2245
|
+
});
|
|
2246
|
+
export const zInferenceCodexDeviceStartInput = z.object({
|
|
2247
|
+
label: z.string().min(1).max(64).optional(),
|
|
2248
|
+
});
|
|
2249
|
+
export const zInferenceCodexDeviceStart = z.object({
|
|
2250
|
+
sessionId: z.string(),
|
|
2251
|
+
verificationUrl: z.url(),
|
|
2252
|
+
userCode: z.string(),
|
|
2253
|
+
intervalMs: z.number(),
|
|
2254
|
+
expiresAt: z.string(),
|
|
2255
|
+
});
|
|
2256
|
+
export const zInferenceOauthCompleteInput = z.object({
|
|
2257
|
+
sessionId: z.string().min(1),
|
|
2258
|
+
code: z.string().min(1).max(4096),
|
|
2259
|
+
});
|
|
2260
|
+
export const zInferenceOauthStartInput = z.object({
|
|
2261
|
+
label: z.string().min(1).max(64).optional(),
|
|
2262
|
+
});
|
|
2263
|
+
export const zInferenceOauthStart = z.object({
|
|
2264
|
+
sessionId: z.string(),
|
|
2265
|
+
authorizeUrl: z.url(),
|
|
2266
|
+
expiresAt: z.string(),
|
|
2267
|
+
});
|
|
2125
2268
|
export const zGoogleWorkspaceOAuthStartResult = z.object({
|
|
2126
2269
|
url: z.url(),
|
|
2127
2270
|
});
|
|
@@ -2627,6 +2770,19 @@ export const zAgent = z.object({
|
|
|
2627
2770
|
publisher: zPublisherPublicView.nullish().default(null),
|
|
2628
2771
|
latestVersion: zAgentLatestVersion.nullish(),
|
|
2629
2772
|
});
|
|
2773
|
+
export const zActivation = z.object({
|
|
2774
|
+
steps: z.array(z.enum(["member.invited", "slack.channel.connected", "client.used", "cron_trigger.created", "artifact.created"])),
|
|
2775
|
+
complete: z.boolean(),
|
|
2776
|
+
dismissed: z.boolean(),
|
|
2777
|
+
});
|
|
2778
|
+
/**
|
|
2779
|
+
* Completed checklist steps and whether the checklist is finished or dismissed
|
|
2780
|
+
*/
|
|
2781
|
+
export const zActivationGetResponse = zActivation;
|
|
2782
|
+
/**
|
|
2783
|
+
* Checklist state after dismissal
|
|
2784
|
+
*/
|
|
2785
|
+
export const zActivationDismissResponse = zActivation;
|
|
2630
2786
|
export const zAgentListQuery = z.object({
|
|
2631
2787
|
limit: z.int().gte(1).lte(1000).optional(),
|
|
2632
2788
|
offset: z.int().gte(0).lte(9007199254740991).optional(),
|
|
@@ -3436,11 +3592,37 @@ export const zGoogleConnectResponse = zGoogleWorkspaceOAuthStartResult;
|
|
|
3436
3592
|
* Seat health and provider usage
|
|
3437
3593
|
*/
|
|
3438
3594
|
export const zInferenceSubscriptionsListResponse = z.array(zInferenceSubscriptionSeat);
|
|
3439
|
-
export const
|
|
3595
|
+
export const zInferenceSubscriptionsOauthStartBody = zInferenceOauthStartInput;
|
|
3596
|
+
/**
|
|
3597
|
+
* Where to authorize, and when this attempt stops being valid
|
|
3598
|
+
*/
|
|
3599
|
+
export const zInferenceSubscriptionsOauthStartResponse = zInferenceOauthStart;
|
|
3600
|
+
export const zInferenceSubscriptionsOauthCompleteBody = zInferenceOauthCompleteInput;
|
|
3440
3601
|
/**
|
|
3441
3602
|
* The connected seat
|
|
3442
3603
|
*/
|
|
3443
|
-
export const
|
|
3604
|
+
export const zInferenceSubscriptionsOauthCompleteResponse = zInferenceSubscriptionSeat;
|
|
3605
|
+
export const zInferenceSubscriptionsCodexDeviceStartBody = zInferenceCodexDeviceStartInput;
|
|
3606
|
+
/**
|
|
3607
|
+
* The code to enter, and where to enter it
|
|
3608
|
+
*/
|
|
3609
|
+
export const zInferenceSubscriptionsCodexDeviceStartResponse = zInferenceCodexDeviceStart;
|
|
3610
|
+
export const zInferenceSubscriptionsCodexDevicePollPath = z.object({
|
|
3611
|
+
id: z.string(),
|
|
3612
|
+
});
|
|
3613
|
+
/**
|
|
3614
|
+
* Whether the device code has been approved yet
|
|
3615
|
+
*/
|
|
3616
|
+
export const zInferenceSubscriptionsCodexDevicePollResponse = zInferenceCodexDeviceStatus;
|
|
3617
|
+
/**
|
|
3618
|
+
* The published Codex models
|
|
3619
|
+
*/
|
|
3620
|
+
export const zInferenceHarnessesCodexCatalogResponse = zInferenceCodexCatalog;
|
|
3621
|
+
export const zInferenceSubscriptionsConnectCodexBody = zInferenceConnectCodexInput;
|
|
3622
|
+
/**
|
|
3623
|
+
* The connected seat
|
|
3624
|
+
*/
|
|
3625
|
+
export const zInferenceSubscriptionsConnectCodexResponse = zInferenceSubscriptionSeat;
|
|
3444
3626
|
export const zInferenceSubscriptionsRemovePath = z.object({
|
|
3445
3627
|
id: z.string(),
|
|
3446
3628
|
});
|
|
@@ -4812,6 +4994,91 @@ export const zSkillVersionArchivePath = z.object({
|
|
|
4812
4994
|
* Archived skill version
|
|
4813
4995
|
*/
|
|
4814
4996
|
export const zSkillVersionArchiveResponse = zSkillVersion;
|
|
4997
|
+
export const zTaskListQuery = z.object({
|
|
4998
|
+
limit: z.int().gte(1).lte(1000).optional(),
|
|
4999
|
+
offset: z.int().gte(0).lte(9007199254740991).optional(),
|
|
5000
|
+
includeDeprecated: z.boolean().optional(),
|
|
5001
|
+
orgId: z.string().optional(),
|
|
5002
|
+
userId: z.string().nullish(),
|
|
5003
|
+
visibility: z.enum(["private", "pod", "org"]).optional(),
|
|
5004
|
+
status: z.enum(["open", "in_progress", "done", "dismissed"]).optional(),
|
|
5005
|
+
priority: z.enum(["low", "medium", "high"]).optional(),
|
|
5006
|
+
label: z.string().optional(),
|
|
5007
|
+
podId: z.string().optional(),
|
|
5008
|
+
projectId: z.string().optional(),
|
|
5009
|
+
assignedToUserId: z.string().optional(),
|
|
5010
|
+
assignedToProjectAgentId: z.string().optional(),
|
|
5011
|
+
includeDone: z.boolean().optional(),
|
|
5012
|
+
});
|
|
5013
|
+
/**
|
|
5014
|
+
* List of tasks
|
|
5015
|
+
*/
|
|
5016
|
+
export const zTaskListResponse = z.array(zTask);
|
|
5017
|
+
export const zTaskCreateBody = z.object({
|
|
5018
|
+
title: z.string().min(1).max(256),
|
|
5019
|
+
description: z.string().nullish().default(null),
|
|
5020
|
+
status: z.enum(["open", "in_progress", "done", "dismissed"]).optional().default("open"),
|
|
5021
|
+
priority: z.enum(["low", "medium", "high"]).nullish().default(null),
|
|
5022
|
+
labels: z.array(z.string()).optional(),
|
|
5023
|
+
links: z.array(z.string()).optional(),
|
|
5024
|
+
dueAt: z.iso
|
|
5025
|
+
.datetime()
|
|
5026
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
5027
|
+
.nullish()
|
|
5028
|
+
.default(null),
|
|
5029
|
+
podId: z.string().nullish().default(null),
|
|
5030
|
+
projectId: z.string().nullish().default(null),
|
|
5031
|
+
assignedToUserId: z.string().nullish().default(null),
|
|
5032
|
+
assignedToProjectAgentId: z.string().nullish().default(null),
|
|
5033
|
+
visibility: z.enum(["private", "org"]).optional().default("org"),
|
|
5034
|
+
});
|
|
5035
|
+
/**
|
|
5036
|
+
* Created task
|
|
5037
|
+
*/
|
|
5038
|
+
export const zTaskCreateResponse = zTask;
|
|
5039
|
+
export const zTaskArchivePath = z.object({
|
|
5040
|
+
id: z.string().regex(/^tsk_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
5041
|
+
});
|
|
5042
|
+
/**
|
|
5043
|
+
* Archived task
|
|
5044
|
+
*/
|
|
5045
|
+
export const zTaskArchiveResponse = zTask;
|
|
5046
|
+
export const zTaskGetPath = z.object({
|
|
5047
|
+
id: z.string().regex(/^tsk_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
5048
|
+
});
|
|
5049
|
+
export const zTaskGetQuery = z.object({
|
|
5050
|
+
includeEvents: z.boolean().optional(),
|
|
5051
|
+
});
|
|
5052
|
+
/**
|
|
5053
|
+
* Task details
|
|
5054
|
+
*/
|
|
5055
|
+
export const zTaskGetResponse = zTaskDetail;
|
|
5056
|
+
/**
|
|
5057
|
+
* Partial patch — the only way to change a task. An omitted field is left alone; an explicit `null` clears one, so `assignedToUserId: null` unassigns the human owner and `assignedToProjectAgentId: null` unassigns the agent. Move `status` to `done` when the work is finished, or to `dismissed` to reject a suggestion — a dismissed task stays queryable, so it is not proposed again. Changing `projectId` re-derives `podId`.
|
|
5058
|
+
*/
|
|
5059
|
+
export const zTaskUpdateBody = z.object({
|
|
5060
|
+
title: z.string().min(1).max(256).optional(),
|
|
5061
|
+
description: z.string().nullish(),
|
|
5062
|
+
status: z.enum(["open", "in_progress", "done", "dismissed"]).optional(),
|
|
5063
|
+
priority: z.enum(["low", "medium", "high"]).nullish(),
|
|
5064
|
+
labels: z.array(z.string()).optional(),
|
|
5065
|
+
links: z.array(z.string()).optional(),
|
|
5066
|
+
dueAt: z.iso
|
|
5067
|
+
.datetime()
|
|
5068
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
5069
|
+
.nullish(),
|
|
5070
|
+
podId: z.string().nullish(),
|
|
5071
|
+
projectId: z.string().nullish(),
|
|
5072
|
+
assignedToUserId: z.string().nullish(),
|
|
5073
|
+
assignedToProjectAgentId: z.string().nullish(),
|
|
5074
|
+
});
|
|
5075
|
+
export const zTaskUpdatePath = z.object({
|
|
5076
|
+
id: z.string().regex(/^tsk_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
5077
|
+
});
|
|
5078
|
+
/**
|
|
5079
|
+
* Updated task
|
|
5080
|
+
*/
|
|
5081
|
+
export const zTaskUpdateResponse = zTask;
|
|
4815
5082
|
/**
|
|
4816
5083
|
* Agent-stack topology
|
|
4817
5084
|
*/
|