terse-types 0.0.74 → 0.0.76

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.
@@ -119,6 +119,7 @@ export declare const ApiRoutes: {
119
119
  LIST: string;
120
120
  DISCONNECT_BY_TYPE: string;
121
121
  ACTIVE: string;
122
+ CONNECTIONS_BY_TYPE: string;
122
123
  };
123
124
  NOTIFICATION_DESTINATIONS: {
124
125
  LIST: string;
@@ -118,7 +118,8 @@
118
118
  "INSTALLATION_DETAILS_BY_TYPE": "/integrations/:integrationType/installation-details",
119
119
  "LIST": "/integrations",
120
120
  "DISCONNECT_BY_TYPE": "/integrations/:integrationType/disconnect",
121
- "ACTIVE": "/integrations/active"
121
+ "ACTIVE": "/integrations/active",
122
+ "CONNECTIONS_BY_TYPE": "/integrations/:integrationType/connections"
122
123
  },
123
124
  "NOTIFICATION_DESTINATIONS": {
124
125
  "LIST": "/notification-destinations",
@@ -250,8 +250,8 @@ export declare const CliIntegrationDisplayStateSchema: z.ZodDiscriminatedUnion<[
250
250
  status: z.ZodLiteral<"not_connected">;
251
251
  }, z.core.$strip>, z.ZodObject<{
252
252
  status: z.ZodLiteral<"connected">;
253
- summaryLabel: z.ZodString;
254
- summaryValue: z.ZodString;
253
+ connectionLabel: z.ZodString;
254
+ connectionName: z.ZodString;
255
255
  integrationId: z.ZodString;
256
256
  }, z.core.$strip>], "status">;
257
257
  export type CliIntegrationDisplayState = z.infer<typeof CliIntegrationDisplayStateSchema>;
@@ -262,9 +262,21 @@ export declare const IntegrationWithStatusSchema: z.ZodObject<{
262
262
  status: z.ZodLiteral<"not_connected">;
263
263
  }, z.core.$strip>, z.ZodObject<{
264
264
  status: z.ZodLiteral<"connected">;
265
- summaryLabel: z.ZodString;
266
- summaryValue: z.ZodString;
265
+ connectionLabel: z.ZodString;
266
+ connectionName: z.ZodString;
267
267
  integrationId: z.ZodString;
268
268
  }, z.core.$strip>], "status">;
269
269
  }, z.core.$strip>;
270
270
  export type IntegrationWithStatus = z.infer<typeof IntegrationWithStatusSchema>;
271
+ export declare const IntegrationConnectionSchema: z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ }, z.core.$strip>;
275
+ export type IntegrationConnection = z.infer<typeof IntegrationConnectionSchema>;
276
+ export declare const IntegrationConnectionsResponseSchema: z.ZodObject<{
277
+ connections: z.ZodArray<z.ZodObject<{
278
+ id: z.ZodString;
279
+ name: z.ZodString;
280
+ }, z.core.$strip>>;
281
+ }, z.core.$strip>;
282
+ export type IntegrationConnectionsResponse = z.infer<typeof IntegrationConnectionsResponseSchema>;
@@ -234,8 +234,8 @@ export const CliIntegrationDisplayStateSchema = z.discriminatedUnion("status", [
234
234
  }),
235
235
  z.object({
236
236
  status: z.literal("connected"),
237
- summaryLabel: z.string(),
238
- summaryValue: z.string(),
237
+ connectionLabel: z.string(),
238
+ connectionName: z.string(),
239
239
  integrationId: z.string()
240
240
  })
241
241
  ]);
@@ -244,3 +244,10 @@ export const IntegrationWithStatusSchema = z.object({
244
244
  isActive: z.boolean(),
245
245
  cliDisplayState: CliIntegrationDisplayStateSchema
246
246
  });
247
+ export const IntegrationConnectionSchema = z.object({
248
+ id: z.string(),
249
+ name: z.string()
250
+ });
251
+ export const IntegrationConnectionsResponseSchema = z.object({
252
+ connections: z.array(IntegrationConnectionSchema)
253
+ });
package/dist/types.d.ts CHANGED
@@ -8645,11 +8645,14 @@ export declare const projectSecretsImportResponseSchema: z.ZodObject<{
8645
8645
  updated: z.ZodArray<z.ZodString>;
8646
8646
  }, z.core.$strip>;
8647
8647
  export type ProjectSecretsImportResponse = z.infer<typeof projectSecretsImportResponseSchema>;
8648
+ export declare const projectConnectionsSchema: z.ZodRecord<z.ZodEnum<typeof import("./Integrations.js").IntegrationType> & z.core.$partial, z.ZodString>;
8649
+ export type ProjectConnections = z.infer<typeof projectConnectionsSchema>;
8648
8650
  export declare const terseProjectConfigSchema: z.ZodObject<{
8649
8651
  projectId: z.ZodString;
8650
8652
  name: z.ZodString;
8651
8653
  selfHosted: z.ZodOptional<z.ZodBoolean>;
8652
8654
  remoteServerUrl: z.ZodOptional<z.ZodString>;
8655
+ connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("./Integrations.js").IntegrationType> & z.core.$partial, z.ZodString>>;
8653
8656
  }, z.core.$strip>;
8654
8657
  export type TerseProjectConfig = z.infer<typeof terseProjectConfigSchema>;
8655
8658
  export declare const sdkDeployJobSchema: z.ZodObject<{
package/dist/types.js CHANGED
@@ -637,11 +637,13 @@ export const projectSecretsImportResponseSchema = z.object({
637
637
  added: z.array(z.string()),
638
638
  updated: z.array(z.string())
639
639
  });
640
+ export const projectConnectionsSchema = z.partialRecord(integrationTypeEnum, z.string().min(1).describe("Connection ID (integrationId) this project generates against"));
640
641
  export const terseProjectConfigSchema = z.object({
641
642
  projectId: z.string().min(1),
642
643
  name: z.string().min(1),
643
644
  selfHosted: z.boolean().optional(),
644
- remoteServerUrl: z.string().optional()
645
+ remoteServerUrl: z.string().optional(),
646
+ connections: projectConnectionsSchema.optional()
645
647
  });
646
648
  export const sdkDeployJobSchema = z.object({
647
649
  jobName: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",