terse-types 0.0.17 → 0.0.19

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.
@@ -126,6 +126,9 @@ export declare const ApiRoutes: {
126
126
  };
127
127
  PROJECTS: {
128
128
  BY_ID: string;
129
+ DEPLOYS: string;
130
+ SOURCE_FILES: string;
131
+ SOURCE_FILE_CONTENT: string;
129
132
  };
130
133
  SDK: {
131
134
  ME: string;
@@ -125,7 +125,10 @@
125
125
  "BY_ID": "/api-tokens/:id"
126
126
  },
127
127
  "PROJECTS": {
128
- "BY_ID": "/projects/:id"
128
+ "BY_ID": "/projects/:id",
129
+ "DEPLOYS": "/projects/:id/deploys",
130
+ "SOURCE_FILES": "/projects/:id/source/files",
131
+ "SOURCE_FILE_CONTENT": "/projects/:id/source/files/:fileId"
129
132
  },
130
133
  "SDK": {
131
134
  "ME": "/sdk/me",
@@ -23,6 +23,7 @@
23
23
  "ACTIVITY": "/app/activity",
24
24
  "STATS": "/app/stats",
25
25
  "NOTIFICATIONS": "/app/notifications",
26
+ "API_TOKENS": "/app/api-tokens",
26
27
  "PROFILE": "/app/profile",
27
28
  "USER_MANAGEMENT": "/app/profile?tab=users",
28
29
  "ORGANIZATIONS": {
@@ -25,6 +25,7 @@ export declare const FrontendRoutes: {
25
25
  ACTIVITY: string;
26
26
  STATS: string;
27
27
  NOTIFICATIONS: string;
28
+ API_TOKENS: string;
28
29
  PROFILE: string;
29
30
  USER_MANAGEMENT: string;
30
31
  ORGANIZATIONS: {
@@ -48,3 +48,6 @@ export declare const orgLogoKey: (organizationId: string | null | undefined) =>
48
48
  export declare const userByIdKey: (userId: string | null | undefined) => readonly [string, string] | null;
49
49
  export declare const agentFilesKey: (agentId: string) => readonly [string, string];
50
50
  export declare const agentFileContentKey: (agentId: string, fileId: string) => readonly [string, string, string];
51
+ export declare const projectDeploysKey: (projectId: string) => readonly [string, string];
52
+ export declare const projectSourceFilesKey: (projectId: string) => readonly [string, string];
53
+ export declare const projectSourceFileContentKey: (projectId: string, fileId: string) => readonly [string, string, string];
@@ -147,3 +147,6 @@ export const userByIdKey = (userId) => {
147
147
  };
148
148
  export const agentFilesKey = (agentId) => ["agentFiles", agentId];
149
149
  export const agentFileContentKey = (agentId, fileId) => ["agentFileContent", agentId, fileId];
150
+ export const projectDeploysKey = (projectId) => ["projectDeploys", projectId];
151
+ export const projectSourceFilesKey = (projectId) => ["projectSourceFiles", projectId];
152
+ export const projectSourceFileContentKey = (projectId, fileId) => ["projectSourceFileContent", projectId, fileId];
package/dist/types.d.ts CHANGED
@@ -5547,6 +5547,7 @@ export declare const sdkDeployJobSchema: z.ZodObject<{
5547
5547
  export type SdkDeployJob = z.infer<typeof sdkDeployJobSchema>;
5548
5548
  export declare const sdkDeployRequestBodySchema: z.ZodObject<{
5549
5549
  projectId: z.ZodString;
5550
+ cliVersion: z.ZodString;
5550
5551
  jobs: z.ZodArray<z.ZodObject<{
5551
5552
  jobName: z.ZodString;
5552
5553
  triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -8096,3 +8097,67 @@ export declare const agentFileContentResponseSchema: z.ZodObject<{
8096
8097
  mimeType: z.ZodOptional<z.ZodString>;
8097
8098
  }, z.core.$strip>;
8098
8099
  export type AgentFileContentResponse = z.infer<typeof agentFileContentResponseSchema>;
8100
+ export declare const projectDeployStatusSchema: z.ZodEnum<{
8101
+ FAILED: "FAILED";
8102
+ IN_PROGRESS: "IN_PROGRESS";
8103
+ SUCCEEDED: "SUCCEEDED";
8104
+ ROLLED_BACK: "ROLLED_BACK";
8105
+ }>;
8106
+ export type ProjectDeployStatus = z.infer<typeof projectDeployStatusSchema>;
8107
+ export declare const projectDeployUserSchema: z.ZodObject<{
8108
+ id: z.ZodString;
8109
+ displayName: z.ZodString;
8110
+ email: z.ZodNullable<z.ZodString>;
8111
+ avatarUrl: z.ZodNullable<z.ZodString>;
8112
+ }, z.core.$strip>;
8113
+ export type ProjectDeployUser = z.infer<typeof projectDeployUserSchema>;
8114
+ export declare const projectDeploySchema: z.ZodObject<{
8115
+ id: z.ZodString;
8116
+ status: z.ZodEnum<{
8117
+ FAILED: "FAILED";
8118
+ IN_PROGRESS: "IN_PROGRESS";
8119
+ SUCCEEDED: "SUCCEEDED";
8120
+ ROLLED_BACK: "ROLLED_BACK";
8121
+ }>;
8122
+ createdAt: z.ZodString;
8123
+ isActive: z.ZodBoolean;
8124
+ deployedBy: z.ZodNullable<z.ZodObject<{
8125
+ id: z.ZodString;
8126
+ displayName: z.ZodString;
8127
+ email: z.ZodNullable<z.ZodString>;
8128
+ avatarUrl: z.ZodNullable<z.ZodString>;
8129
+ }, z.core.$strip>>;
8130
+ }, z.core.$strip>;
8131
+ export type ProjectDeploy = z.infer<typeof projectDeploySchema>;
8132
+ export declare const projectDeploysResponseSchema: z.ZodObject<{
8133
+ projectId: z.ZodString;
8134
+ deploys: z.ZodArray<z.ZodObject<{
8135
+ id: z.ZodString;
8136
+ status: z.ZodEnum<{
8137
+ FAILED: "FAILED";
8138
+ IN_PROGRESS: "IN_PROGRESS";
8139
+ SUCCEEDED: "SUCCEEDED";
8140
+ ROLLED_BACK: "ROLLED_BACK";
8141
+ }>;
8142
+ createdAt: z.ZodString;
8143
+ isActive: z.ZodBoolean;
8144
+ deployedBy: z.ZodNullable<z.ZodObject<{
8145
+ id: z.ZodString;
8146
+ displayName: z.ZodString;
8147
+ email: z.ZodNullable<z.ZodString>;
8148
+ avatarUrl: z.ZodNullable<z.ZodString>;
8149
+ }, z.core.$strip>>;
8150
+ }, z.core.$strip>>;
8151
+ }, z.core.$strip>;
8152
+ export type ProjectDeploysResponse = z.infer<typeof projectDeploysResponseSchema>;
8153
+ export declare const projectSourceFilesResponseSchema: z.ZodObject<{
8154
+ projectId: z.ZodString;
8155
+ deployId: z.ZodNullable<z.ZodString>;
8156
+ deployedAt: z.ZodNullable<z.ZodString>;
8157
+ files: z.ZodArray<z.ZodObject<{
8158
+ id: z.ZodString;
8159
+ name: z.ZodString;
8160
+ children: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>>;
8161
+ }, z.core.$strip>>;
8162
+ }, z.core.$strip>;
8163
+ export type ProjectSourceFilesResponse = z.infer<typeof projectSourceFilesResponseSchema>;
package/dist/types.js CHANGED
@@ -500,6 +500,7 @@ export const sdkDeployJobSchema = z.object({
500
500
  export const sdkDeployRequestBodySchema = z
501
501
  .object({
502
502
  projectId: z.string(),
503
+ cliVersion: z.string(),
503
504
  jobs: z.array(sdkDeployJobSchema),
504
505
  remoteServerUrl: z.string().optional(),
505
506
  sourceZipBase64: z.string().optional()
@@ -666,3 +667,27 @@ export const agentFileContentResponseSchema = z.object({
666
667
  contentBase64: z.string(),
667
668
  mimeType: z.string().optional()
668
669
  });
670
+ export const projectDeployStatusSchema = z.enum(["IN_PROGRESS", "SUCCEEDED", "FAILED", "ROLLED_BACK"]);
671
+ export const projectDeployUserSchema = z.object({
672
+ id: z.string(),
673
+ displayName: z.string(),
674
+ email: z.string().nullable(),
675
+ avatarUrl: z.string().nullable()
676
+ });
677
+ export const projectDeploySchema = z.object({
678
+ id: z.string(),
679
+ status: projectDeployStatusSchema,
680
+ createdAt: z.string(),
681
+ isActive: z.boolean(),
682
+ deployedBy: projectDeployUserSchema.nullable()
683
+ });
684
+ export const projectDeploysResponseSchema = z.object({
685
+ projectId: z.string(),
686
+ deploys: z.array(projectDeploySchema)
687
+ });
688
+ export const projectSourceFilesResponseSchema = z.object({
689
+ projectId: z.string(),
690
+ deployId: z.string().nullable(),
691
+ deployedAt: z.string().nullable(),
692
+ files: z.array(fileSchema)
693
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",