@alpic-ai/api 0.0.0-staging.e8d3266 → 0.0.0-staging.ea6b049
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 +10 -1
- package/dist/index.mjs +15 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ type ApiContext = {
|
|
|
7
7
|
request: Request & {
|
|
8
8
|
teamIds: string[];
|
|
9
9
|
defaultTeamId: string | undefined;
|
|
10
|
+
awsCognitoUserSub: string | undefined;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -37,7 +38,6 @@ declare const contract: {
|
|
|
37
38
|
name: z.ZodString;
|
|
38
39
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
39
40
|
hasStripeAccount: z.ZodBoolean;
|
|
40
|
-
hasActiveSubscription: z.ZodBoolean;
|
|
41
41
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
@@ -528,6 +528,15 @@ declare const contract: {
|
|
|
528
528
|
}>, Record<never, never>>;
|
|
529
529
|
};
|
|
530
530
|
};
|
|
531
|
+
tunnels: {
|
|
532
|
+
getTicket: {
|
|
533
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
|
|
534
|
+
subdomain: z.ZodString;
|
|
535
|
+
ticket: z.ZodString;
|
|
536
|
+
tunnelHost: z.ZodString;
|
|
537
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
531
540
|
};
|
|
532
541
|
type RouterInput = InferContractRouterInputs<typeof contract>;
|
|
533
542
|
type RouterOutput = InferContractRouterOutputs<typeof contract>;
|
package/dist/index.mjs
CHANGED
|
@@ -356,9 +356,20 @@ const listTeamsContractV1 = oc.route({
|
|
|
356
356
|
id: z.string(),
|
|
357
357
|
name: z.string(),
|
|
358
358
|
createdAt: z.coerce.date(),
|
|
359
|
-
hasStripeAccount: z.boolean()
|
|
360
|
-
hasActiveSubscription: z.boolean()
|
|
359
|
+
hasStripeAccount: z.boolean()
|
|
361
360
|
})));
|
|
361
|
+
const getTunnelTicketContractV1 = oc.route({
|
|
362
|
+
path: "/v1/tunnels/ticket",
|
|
363
|
+
method: "GET",
|
|
364
|
+
summary: "Get a tunnel ticket",
|
|
365
|
+
description: "Get a signed ticket for establishing a tunnel connection. Requires user authentication (API keys are not supported).",
|
|
366
|
+
tags: ["tunnels"],
|
|
367
|
+
successDescription: "The tunnel ticket"
|
|
368
|
+
}).output(z.object({
|
|
369
|
+
subdomain: z.string().describe("The subdomain assigned to the user"),
|
|
370
|
+
ticket: z.string().describe("The signed tunnel ticket"),
|
|
371
|
+
tunnelHost: z.string().describe("The tunnel host to connect to")
|
|
372
|
+
}));
|
|
362
373
|
const contract = {
|
|
363
374
|
teams: { list: { v1: listTeamsContractV1 } },
|
|
364
375
|
analytics: { get: { v1: getProjectAnalyticsContractV1 } },
|
|
@@ -379,7 +390,8 @@ const contract = {
|
|
|
379
390
|
list: { v1: listProjectsContractV1 },
|
|
380
391
|
create: { v1: createProjectContractV1 },
|
|
381
392
|
delete: { v1: deleteProjectContractV1 }
|
|
382
|
-
}
|
|
393
|
+
},
|
|
394
|
+
tunnels: { getTicket: { v1: getTunnelTicketContractV1 } }
|
|
383
395
|
};
|
|
384
396
|
|
|
385
397
|
//#endregion
|