@alpic-ai/api 1.172.0 → 1.173.1
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 +28 -0
- package/dist/index.mjs +13 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3271,6 +3271,20 @@ export declare const contract: {
|
|
|
3271
3271
|
NOT_FOUND: {};
|
|
3272
3272
|
}>, Record<never, never>>;
|
|
3273
3273
|
};
|
|
3274
|
+
list: {
|
|
3275
|
+
v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3276
|
+
projectId: z.ZodString;
|
|
3277
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
3278
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
3279
|
+
chatgpt: "chatgpt";
|
|
3280
|
+
claudeai: "claudeai";
|
|
3281
|
+
}>>;
|
|
3282
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<Submission, unknown, z.core.$ZodTypeInternals<Submission, unknown>>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3283
|
+
BAD_REQUEST: {};
|
|
3284
|
+
}>, {
|
|
3285
|
+
NOT_FOUND: {};
|
|
3286
|
+
}>, Record<never, never>>;
|
|
3287
|
+
};
|
|
3274
3288
|
get: {
|
|
3275
3289
|
v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3276
3290
|
submissionId: z.ZodString;
|
|
@@ -5135,6 +5149,20 @@ export declare const contractForDocs: {
|
|
|
5135
5149
|
NOT_FOUND: {};
|
|
5136
5150
|
}>, Record<never, never>>;
|
|
5137
5151
|
};
|
|
5152
|
+
list: {
|
|
5153
|
+
v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
5154
|
+
projectId: z.ZodString;
|
|
5155
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
5156
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
5157
|
+
chatgpt: "chatgpt";
|
|
5158
|
+
claudeai: "claudeai";
|
|
5159
|
+
}>>;
|
|
5160
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<Submission, unknown, z.core.$ZodTypeInternals<Submission, unknown>>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
5161
|
+
BAD_REQUEST: {};
|
|
5162
|
+
}>, {
|
|
5163
|
+
NOT_FOUND: {};
|
|
5164
|
+
}>, Record<never, never>>;
|
|
5165
|
+
};
|
|
5138
5166
|
get: {
|
|
5139
5167
|
v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
5140
5168
|
submissionId: z.ZodString;
|
package/dist/index.mjs
CHANGED
|
@@ -2381,6 +2381,18 @@ const createSubmissionContractV1 = base.route({
|
|
|
2381
2381
|
environmentId: z.string().describe("The ID of the environment to build the package from"),
|
|
2382
2382
|
platform: platformSchema.describe(PLATFORM_DESCRIPTION)
|
|
2383
2383
|
})).output(submissionSchema);
|
|
2384
|
+
const listSubmissionsContractV1 = base.route({
|
|
2385
|
+
path: "/v1/projects/{projectId}/submissions",
|
|
2386
|
+
method: "GET",
|
|
2387
|
+
summary: "List submission packages",
|
|
2388
|
+
description: "List the submission packages of a project, grouped by directory and most recently updated first, optionally narrowed to one environment or one directory",
|
|
2389
|
+
tags: ["submissions"],
|
|
2390
|
+
successDescription: "The list of submission packages"
|
|
2391
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
2392
|
+
projectId: z.string().describe("The ID of the project"),
|
|
2393
|
+
environmentId: z.string().optional().describe("Filter by environment ID"),
|
|
2394
|
+
platform: platformSchema.optional().describe(PLATFORM_DESCRIPTION)
|
|
2395
|
+
})).output(z.array(submissionSchema));
|
|
2384
2396
|
const getSubmissionContractV1 = base.route({
|
|
2385
2397
|
path: "/v1/submissions/{submissionId}",
|
|
2386
2398
|
method: "GET",
|
|
@@ -2463,6 +2475,7 @@ const contract = {
|
|
|
2463
2475
|
},
|
|
2464
2476
|
submissions: {
|
|
2465
2477
|
create: { v1: createSubmissionContractV1 },
|
|
2478
|
+
list: { v1: listSubmissionsContractV1 },
|
|
2466
2479
|
get: { v1: getSubmissionContractV1 },
|
|
2467
2480
|
update: { v1: updateSubmissionContractV1 }
|
|
2468
2481
|
}
|