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.
- package/dist/ApiRouteBuilder.d.ts +1 -0
- package/dist/ApiRoutes.json +2 -1
- package/dist/Integrations.d.ts +16 -4
- package/dist/Integrations.js +9 -2
- package/dist/types.d.ts +3 -0
- package/dist/types.js +3 -1
- package/package.json +1 -1
package/dist/ApiRoutes.json
CHANGED
|
@@ -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",
|
package/dist/Integrations.d.ts
CHANGED
|
@@ -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
|
-
|
|
254
|
-
|
|
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
|
-
|
|
266
|
-
|
|
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>;
|
package/dist/Integrations.js
CHANGED
|
@@ -234,8 +234,8 @@ export const CliIntegrationDisplayStateSchema = z.discriminatedUnion("status", [
|
|
|
234
234
|
}),
|
|
235
235
|
z.object({
|
|
236
236
|
status: z.literal("connected"),
|
|
237
|
-
|
|
238
|
-
|
|
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(),
|