@alpic-ai/api 0.0.0-staging.gcb1b044 → 0.0.0-staging.gcbbfc5a
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 +22 -32
- package/dist/index.mjs +1737 -19
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AnyContractProcedure, AnySchema, ContractProcedureDef, ErrorMap, ErrorMapItem, InferContractRouterInputs, InferContractRouterOutputs, InferSchemaInput, Meta, OpenAPI } from "@orpc/contract";
|
|
3
|
-
//#region ../domains/src/intents/schemas.d.ts
|
|
4
3
|
export declare const intentCategoryColorSchema: z.ZodEnum<{
|
|
5
4
|
red: "red";
|
|
6
5
|
orange: "orange";
|
|
@@ -13,8 +12,6 @@ export declare const intentCategoryColorSchema: z.ZodEnum<{
|
|
|
13
12
|
}>;
|
|
14
13
|
type IntentCategoryColor = z.infer<typeof intentCategoryColorSchema>;
|
|
15
14
|
export declare const INTENT_CATEGORY_COLORS: ("red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "gray")[];
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region ../domains/src/platforms/schemas.d.ts
|
|
18
15
|
export declare const AI_PLATFORMS: readonly ["chatgpt", "claudeai"];
|
|
19
16
|
declare const platformSchema: z.ZodEnum<{
|
|
20
17
|
chatgpt: "chatgpt";
|
|
@@ -22,21 +19,19 @@ declare const platformSchema: z.ZodEnum<{
|
|
|
22
19
|
}>;
|
|
23
20
|
type Platform = z.infer<typeof platformSchema>;
|
|
24
21
|
export declare const PLATFORM_LABELS: Record<Platform, string>;
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../domains/src/projects/schemas.d.ts
|
|
27
22
|
export declare const runtimeSchema: z.ZodEnum<{
|
|
28
23
|
"python3.13": "python3.13";
|
|
29
24
|
"python3.14": "python3.14";
|
|
25
|
+
"python3.15": "python3.15";
|
|
30
26
|
node22: "node22";
|
|
31
27
|
node24: "node24";
|
|
28
|
+
node26: "node26";
|
|
32
29
|
}>;
|
|
33
30
|
export declare const transportSchema: z.ZodEnum<{
|
|
34
31
|
stdio: "stdio";
|
|
35
32
|
sse: "sse";
|
|
36
33
|
streamablehttp: "streamablehttp";
|
|
37
34
|
}>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region ../domains/src/submissions/schemas.d.ts
|
|
40
35
|
declare const claudeSubmissionSchemaInternal: z.ZodObject<{
|
|
41
36
|
id: z.ZodString;
|
|
42
37
|
environmentId: z.ZodString;
|
|
@@ -1382,8 +1377,6 @@ declare const chatgptSubmissionSchemaInternal: z.ZodObject<{
|
|
|
1382
1377
|
type ClaudeSubmission = z.infer<typeof claudeSubmissionSchemaInternal>;
|
|
1383
1378
|
type ChatgptSubmission = z.infer<typeof chatgptSubmissionSchemaInternal>;
|
|
1384
1379
|
type Submission = ClaudeSubmission | ChatgptSubmission;
|
|
1385
|
-
//#endregion
|
|
1386
|
-
//#region ../domains/src/telemetry/schemas.d.ts
|
|
1387
1380
|
export declare const TELEMETRY_SIGNALS: readonly ["logs", "metrics", "traces"];
|
|
1388
1381
|
export declare const telemetrySignalSchema: z.ZodEnum<{
|
|
1389
1382
|
logs: "logs";
|
|
@@ -1395,8 +1388,6 @@ export declare const otlpProtocolSchema: z.ZodEnum<{
|
|
|
1395
1388
|
"http/protobuf": "http/protobuf";
|
|
1396
1389
|
"http/json": "http/json";
|
|
1397
1390
|
}>;
|
|
1398
|
-
//#endregion
|
|
1399
|
-
//#region src/api.contract.d.ts
|
|
1400
1391
|
export type ApiContext = {
|
|
1401
1392
|
request: Request & {
|
|
1402
1393
|
teamIds: string[];
|
|
@@ -2902,8 +2893,10 @@ export declare const contract: {
|
|
|
2902
2893
|
runtime: z.ZodEnum<{
|
|
2903
2894
|
"python3.13": "python3.13";
|
|
2904
2895
|
"python3.14": "python3.14";
|
|
2896
|
+
"python3.15": "python3.15";
|
|
2905
2897
|
node22: "node22";
|
|
2906
2898
|
node24: "node24";
|
|
2899
|
+
node26: "node26";
|
|
2907
2900
|
}>;
|
|
2908
2901
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
2909
2902
|
stdio: "stdio";
|
|
@@ -2980,8 +2973,10 @@ export declare const contract: {
|
|
|
2980
2973
|
runtime: z.ZodEnum<{
|
|
2981
2974
|
"python3.13": "python3.13";
|
|
2982
2975
|
"python3.14": "python3.14";
|
|
2976
|
+
"python3.15": "python3.15";
|
|
2983
2977
|
node22: "node22";
|
|
2984
2978
|
node24: "node24";
|
|
2979
|
+
node26: "node26";
|
|
2985
2980
|
}>;
|
|
2986
2981
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
2987
2982
|
stdio: "stdio";
|
|
@@ -3057,8 +3052,10 @@ export declare const contract: {
|
|
|
3057
3052
|
runtime: z.ZodEnum<{
|
|
3058
3053
|
"python3.13": "python3.13";
|
|
3059
3054
|
"python3.14": "python3.14";
|
|
3055
|
+
"python3.15": "python3.15";
|
|
3060
3056
|
node22: "node22";
|
|
3061
3057
|
node24: "node24";
|
|
3058
|
+
node26: "node26";
|
|
3062
3059
|
}>;
|
|
3063
3060
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
3064
3061
|
stdio: "stdio";
|
|
@@ -3132,8 +3129,10 @@ export declare const contract: {
|
|
|
3132
3129
|
runtime: z.ZodEnum<{
|
|
3133
3130
|
"python3.13": "python3.13";
|
|
3134
3131
|
"python3.14": "python3.14";
|
|
3132
|
+
"python3.15": "python3.15";
|
|
3135
3133
|
node22: "node22";
|
|
3136
3134
|
node24: "node24";
|
|
3135
|
+
node26: "node26";
|
|
3137
3136
|
}>;
|
|
3138
3137
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
3139
3138
|
stdio: "stdio";
|
|
@@ -3168,8 +3167,10 @@ export declare const contract: {
|
|
|
3168
3167
|
runtime: z.ZodEnum<{
|
|
3169
3168
|
"python3.13": "python3.13";
|
|
3170
3169
|
"python3.14": "python3.14";
|
|
3170
|
+
"python3.15": "python3.15";
|
|
3171
3171
|
node22: "node22";
|
|
3172
3172
|
node24: "node24";
|
|
3173
|
+
node26: "node26";
|
|
3173
3174
|
}>;
|
|
3174
3175
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
3175
3176
|
stdio: "stdio";
|
|
@@ -4980,8 +4981,10 @@ export declare const contractForDocs: {
|
|
|
4980
4981
|
runtime: z.ZodEnum<{
|
|
4981
4982
|
"python3.13": "python3.13";
|
|
4982
4983
|
"python3.14": "python3.14";
|
|
4984
|
+
"python3.15": "python3.15";
|
|
4983
4985
|
node22: "node22";
|
|
4984
4986
|
node24: "node24";
|
|
4987
|
+
node26: "node26";
|
|
4985
4988
|
}>;
|
|
4986
4989
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
4987
4990
|
stdio: "stdio";
|
|
@@ -5058,8 +5061,10 @@ export declare const contractForDocs: {
|
|
|
5058
5061
|
runtime: z.ZodEnum<{
|
|
5059
5062
|
"python3.13": "python3.13";
|
|
5060
5063
|
"python3.14": "python3.14";
|
|
5064
|
+
"python3.15": "python3.15";
|
|
5061
5065
|
node22: "node22";
|
|
5062
5066
|
node24: "node24";
|
|
5067
|
+
node26: "node26";
|
|
5063
5068
|
}>;
|
|
5064
5069
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
5065
5070
|
stdio: "stdio";
|
|
@@ -5135,8 +5140,10 @@ export declare const contractForDocs: {
|
|
|
5135
5140
|
runtime: z.ZodEnum<{
|
|
5136
5141
|
"python3.13": "python3.13";
|
|
5137
5142
|
"python3.14": "python3.14";
|
|
5143
|
+
"python3.15": "python3.15";
|
|
5138
5144
|
node22: "node22";
|
|
5139
5145
|
node24: "node24";
|
|
5146
|
+
node26: "node26";
|
|
5140
5147
|
}>;
|
|
5141
5148
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
5142
5149
|
stdio: "stdio";
|
|
@@ -5210,8 +5217,10 @@ export declare const contractForDocs: {
|
|
|
5210
5217
|
runtime: z.ZodEnum<{
|
|
5211
5218
|
"python3.13": "python3.13";
|
|
5212
5219
|
"python3.14": "python3.14";
|
|
5220
|
+
"python3.15": "python3.15";
|
|
5213
5221
|
node22: "node22";
|
|
5214
5222
|
node24: "node24";
|
|
5223
|
+
node26: "node26";
|
|
5215
5224
|
}>;
|
|
5216
5225
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
5217
5226
|
stdio: "stdio";
|
|
@@ -5246,8 +5255,10 @@ export declare const contractForDocs: {
|
|
|
5246
5255
|
runtime: z.ZodEnum<{
|
|
5247
5256
|
"python3.13": "python3.13";
|
|
5248
5257
|
"python3.14": "python3.14";
|
|
5258
|
+
"python3.15": "python3.15";
|
|
5249
5259
|
node22: "node22";
|
|
5250
5260
|
node24: "node24";
|
|
5261
|
+
node26: "node26";
|
|
5251
5262
|
}>;
|
|
5252
5263
|
transport: z.ZodNullable<z.ZodEnum<{
|
|
5253
5264
|
stdio: "stdio";
|
|
@@ -6243,8 +6254,6 @@ export declare const contractForDocs: {
|
|
|
6243
6254
|
};
|
|
6244
6255
|
export type RouterInput = InferContractRouterInputs<typeof contract>;
|
|
6245
6256
|
export type RouterOutput = InferContractRouterOutputs<typeof contract>;
|
|
6246
|
-
//#endregion
|
|
6247
|
-
//#region src/auth-scope.d.ts
|
|
6248
6257
|
/** Credential scope required by an API route. */
|
|
6249
6258
|
export type AuthScope = "any" | "user";
|
|
6250
6259
|
/** Accepts an API key or OAuth access token (default for most routes). */
|
|
@@ -6254,8 +6263,6 @@ export declare const AUTH_SCOPE_USER = "user";
|
|
|
6254
6263
|
export type RouteAuthMeta = {
|
|
6255
6264
|
authScope?: AuthScope;
|
|
6256
6265
|
};
|
|
6257
|
-
//#endregion
|
|
6258
|
-
//#region ../../node_modules/.pnpm/type-fest@5.10.0/node_modules/type-fest/source/promisable.d.ts
|
|
6259
6266
|
/**
|
|
6260
6267
|
Create a type that represents either the value or the value wrapped in `PromiseLike`.
|
|
6261
6268
|
|
|
@@ -6281,12 +6288,8 @@ await logger(() => Promise.resolve('bar'));
|
|
|
6281
6288
|
@category Async
|
|
6282
6289
|
*/
|
|
6283
6290
|
type Promisable<T> = T | PromiseLike<T>;
|
|
6284
|
-
//#endregion
|
|
6285
|
-
//#region ../../node_modules/.pnpm/@orpc+shared@1.15.5_@opentelemetry+api@1.9.1/node_modules/@orpc/shared/dist/index.d.mts
|
|
6286
6291
|
type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
|
|
6287
6292
|
type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => T);
|
|
6288
|
-
//#endregion
|
|
6289
|
-
//#region ../../node_modules/.pnpm/@orpc+client@1.15.5_@opentelemetry+api@1.9.1/node_modules/@orpc/client/dist/index.d.mts
|
|
6290
6293
|
declare const COMMON_ORPC_ERROR_DEFS: {
|
|
6291
6294
|
readonly BAD_REQUEST: {
|
|
6292
6295
|
readonly status: 400;
|
|
@@ -6398,8 +6401,6 @@ declare class ORPCError<TCode extends ORPCErrorCode, TData> extends Error {
|
|
|
6398
6401
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
6399
6402
|
}
|
|
6400
6403
|
type ORPCErrorJSON<TCode extends string, TData> = Pick<ORPCError<TCode, TData>, 'defined' | 'code' | 'status' | 'message' | 'data'>;
|
|
6401
|
-
//#endregion
|
|
6402
|
-
//#region ../../node_modules/.pnpm/@orpc+server@1.15.5_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.qKsRrdxW.d.mts
|
|
6403
6404
|
type Context = Record<PropertyKey, any>;
|
|
6404
6405
|
type ORPCErrorConstructorMapItemOptions<TData> = Omit<ORPCErrorOptions<TData>, 'defined' | 'status'>;
|
|
6405
6406
|
type ORPCErrorConstructorMapItem<TCode extends ORPCErrorCode, TInData> = (...rest: MaybeOptionalOptions<ORPCErrorConstructorMapItemOptions<TInData>>) => ORPCError<TCode, TInData>;
|
|
@@ -6469,14 +6470,10 @@ interface Middleware<TInContext extends Context, TOutContext extends Context, TI
|
|
|
6469
6470
|
(options: MiddlewareOptions<TInContext, TOutput, TErrorConstructorMap, TMeta>, input: TInput, output: MiddlewareOutputFn<TOutput>): Promisable<MiddlewareResult<TOutContext, TOutput>>;
|
|
6470
6471
|
}
|
|
6471
6472
|
type AnyMiddleware = Middleware<any, any, any, any, any, any>;
|
|
6472
|
-
//#endregion
|
|
6473
|
-
//#region ../../node_modules/.pnpm/@orpc+server@1.15.5_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.C8_sRzQB.d.mts
|
|
6474
6473
|
interface TraverseContractProcedureCallbackOptions {
|
|
6475
6474
|
contract: AnyContractProcedure | AnyProcedure;
|
|
6476
6475
|
path: readonly string[];
|
|
6477
6476
|
}
|
|
6478
|
-
//#endregion
|
|
6479
|
-
//#region ../../node_modules/.pnpm/json-schema-typed@8.0.2/node_modules/json-schema-typed/draft_2020_12.d.ts
|
|
6480
6477
|
type MaybeReadonlyArray<T> = Array<T> | ReadonlyArray<T>;
|
|
6481
6478
|
type ValueOf<T> = T[keyof T];
|
|
6482
6479
|
/**
|
|
@@ -7503,8 +7500,6 @@ declare enum TypeName {
|
|
|
7503
7500
|
*/
|
|
7504
7501
|
String = "string"
|
|
7505
7502
|
}
|
|
7506
|
-
//#endregion
|
|
7507
|
-
//#region ../../node_modules/.pnpm/@orpc+openapi@1.15.5_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/openapi/dist/shared/openapi.BGy4N6eR.d.mts
|
|
7508
7503
|
interface SchemaConverterComponent {
|
|
7509
7504
|
allowedStrategies: readonly SchemaConvertOptions['strategy'][];
|
|
7510
7505
|
schema: AnySchema;
|
|
@@ -7581,12 +7576,8 @@ interface OpenAPIGeneratorGenerateOptions extends Partial<Omit<OpenAPI.Document,
|
|
|
7581
7576
|
*/
|
|
7582
7577
|
customErrorResponseBodySchema?: Value<JSONSchema | undefined | null, [definedErrors: [code: string, defaultMessage: string, dataRequired: boolean, dataSchema: JSONSchema][], status: number]>;
|
|
7583
7578
|
}
|
|
7584
|
-
//#endregion
|
|
7585
|
-
//#region src/doc.d.ts
|
|
7586
7579
|
/** Shared by the served `openapi.json` and the snapshot test that guards it, so the two cannot drift. */
|
|
7587
7580
|
export declare const OPENAPI_DOC_OPTIONS: OpenAPIGeneratorGenerateOptions;
|
|
7588
|
-
//#endregion
|
|
7589
|
-
//#region src/schemas.d.ts
|
|
7590
7581
|
export type Runtime = z.infer<typeof runtimeSchema>;
|
|
7591
7582
|
export type Transport = z.infer<typeof transportSchema>;
|
|
7592
7583
|
export declare const environmentVariableSchema: z.ZodObject<{
|
|
@@ -7643,5 +7634,4 @@ export declare const serverFieldsSchema: z.ZodObject<{
|
|
|
7643
7634
|
}, z.core.$strip>>>;
|
|
7644
7635
|
}, z.core.$strip>>>;
|
|
7645
7636
|
}, z.core.$strip>;
|
|
7646
|
-
//#endregion
|
|
7647
7637
|
export type { IntentCategoryColor, Platform };
|