@apollo-deploy/schemas 0.4.7 → 0.4.8
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/definitions/approvals/domain.schema.d.ts +5 -5
- package/dist/definitions/approvals/request.schema.d.ts +8 -8
- package/dist/definitions/approvals/response.schema.d.ts +6 -6
- package/dist/definitions/apps/response.schema.d.ts +1 -1
- package/dist/definitions/artifacts/domain.schema.d.ts +6 -6
- package/dist/definitions/artifacts/request.schema.d.ts +16 -16
- package/dist/definitions/artifacts/response.schema.d.ts +33 -33
- package/dist/definitions/audit-log/domain.schema.d.ts +56 -56
- package/dist/definitions/audit-log/request.schema.d.ts +107 -107
- package/dist/definitions/audit-log/response.schema.d.ts +12 -12
- package/dist/definitions/auth/domain.schema.d.ts +11 -11
- package/dist/definitions/auth/request.schema.d.ts +11 -11
- package/dist/definitions/billing/domain.schema.d.ts +13 -13
- package/dist/definitions/billing/domain.schema.d.ts.map +1 -1
- package/dist/definitions/billing/domain.schema.js +4 -4
- package/dist/definitions/billing/domain.schema.js.map +1 -1
- package/dist/definitions/billing/request.schema.d.ts +3 -3
- package/dist/definitions/billing/response.schema.d.ts +7 -7
- package/dist/definitions/common.d.ts +19 -3
- package/dist/definitions/common.d.ts.map +1 -1
- package/dist/definitions/common.js +10 -0
- package/dist/definitions/common.js.map +1 -1
- package/dist/definitions/credentials/domain.schema.d.ts +4 -7
- package/dist/definitions/credentials/domain.schema.d.ts.map +1 -1
- package/dist/definitions/credentials/domain.schema.js +0 -3
- package/dist/definitions/credentials/domain.schema.js.map +1 -1
- package/dist/definitions/credentials/request.schema.d.ts +2 -4
- package/dist/definitions/credentials/request.schema.d.ts.map +1 -1
- package/dist/definitions/credentials/request.schema.js +0 -2
- package/dist/definitions/credentials/request.schema.js.map +1 -1
- package/dist/definitions/credentials/response.schema.d.ts +4 -10
- package/dist/definitions/credentials/response.schema.d.ts.map +1 -1
- package/dist/definitions/cve-scanner/domain.schema.d.ts +6 -6
- package/dist/definitions/cve-scanner/response.schema.d.ts +15 -15
- package/dist/definitions/deployments/domain.schema.d.ts +3 -3
- package/dist/definitions/deployments/request.schema.d.ts +1 -1
- package/dist/definitions/deployments/response.schema.d.ts +2 -2
- package/dist/definitions/index.d.ts +2 -9
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +6 -9
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/api.schema.d.ts +290 -0
- package/dist/definitions/integrations/api.schema.d.ts.map +1 -0
- package/dist/definitions/integrations/api.schema.js +209 -0
- package/dist/definitions/integrations/api.schema.js.map +1 -0
- package/dist/definitions/integrations/index.d.ts +4 -3
- package/dist/definitions/integrations/index.d.ts.map +1 -1
- package/dist/definitions/integrations/index.js +17 -3
- package/dist/definitions/integrations/index.js.map +1 -1
- package/dist/definitions/integrations/marketplace-request.schema.d.ts +16 -40
- package/dist/definitions/integrations/marketplace-request.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace-request.schema.js +12 -36
- package/dist/definitions/integrations/marketplace-request.schema.js.map +1 -1
- package/dist/definitions/integrations/marketplace-response.schema.d.ts +28 -56
- package/dist/definitions/integrations/marketplace-response.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace-response.schema.js +19 -47
- package/dist/definitions/integrations/marketplace-response.schema.js.map +1 -1
- package/dist/definitions/integrations/marketplace.schema.d.ts +30 -58
- package/dist/definitions/integrations/marketplace.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace.schema.js +25 -48
- package/dist/definitions/integrations/marketplace.schema.js.map +1 -1
- package/dist/definitions/orgs/domain.schema.d.ts +2 -2
- package/dist/definitions/orgs/request.schema.d.ts +2 -2
- package/dist/definitions/orgs/response.schema.d.ts +2 -2
- package/dist/definitions/policies/domain.schema.d.ts +8 -8
- package/dist/definitions/policies/request.schema.d.ts +8 -8
- package/dist/definitions/policies/response.schema.d.ts +18 -18
- package/dist/definitions/release-risk/domain.schema.d.ts +2 -2
- package/dist/definitions/release-risk/request.schema.d.ts +1 -1
- package/dist/definitions/release-risk/response.schema.d.ts +5 -5
- package/dist/definitions/releases/domain.schema.d.ts +11 -11
- package/dist/definitions/releases/domain.schema.d.ts.map +1 -1
- package/dist/definitions/releases/domain.schema.js +4 -4
- package/dist/definitions/releases/domain.schema.js.map +1 -1
- package/dist/definitions/releases/request.schema.d.ts +2 -2
- package/dist/definitions/releases/response.schema.d.ts +8 -8
- package/dist/definitions/service-accounts/domain.schema.d.ts +9 -9
- package/dist/definitions/service-accounts/request.schema.d.ts +2 -2
- package/dist/definitions/service-accounts/response.schema.d.ts +7 -7
- package/dist/definitions/share-links/request.schema.d.ts +1 -1
- package/dist/definitions/teams/domain.schema.d.ts +1 -1
- package/dist/definitions/teams/request.schema.d.ts +2 -2
- package/dist/definitions/teams/response.schema.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +0 -122
- package/dist/definitions/integrations/domain.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/domain.schema.js +0 -85
- package/dist/definitions/integrations/domain.schema.js.map +0 -1
- package/dist/definitions/integrations/request.schema.d.ts +0 -141
- package/dist/definitions/integrations/request.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/request.schema.js +0 -136
- package/dist/definitions/integrations/request.schema.js.map +0 -1
- package/dist/definitions/integrations/response.schema.d.ts +0 -142
- package/dist/definitions/integrations/response.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/response.schema.js +0 -55
- package/dist/definitions/integrations/response.schema.js.map +0 -1
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
* Response schemas for the rebuilt Integration Marketplace module.
|
|
5
5
|
*/
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
import { IdentifierSchema } from "../common.js";
|
|
7
|
+
import { IdentifierSchema, UUIDSchema, MetadataSchema } from "../common.js";
|
|
8
8
|
import { IntegrationDefinitionSchema, EnrichedIntegrationSchema, InstallationResponseV2Schema, InstallResultSchema, EntitlementOverrideSchema, EffectiveEntitlementsSchema, } from "./marketplace.schema.js";
|
|
9
9
|
// =============================================================================
|
|
10
10
|
// Pagination
|
|
11
11
|
// =============================================================================
|
|
12
|
-
/**
|
|
13
|
-
* Pagination metadata schema
|
|
14
|
-
*/
|
|
12
|
+
/** Pagination metadata schema */
|
|
15
13
|
export const PaginationMetaV2Schema = z.object({
|
|
16
14
|
total: z.number(),
|
|
17
15
|
limit: z.number(),
|
|
@@ -21,59 +19,41 @@ export const PaginationMetaV2Schema = z.object({
|
|
|
21
19
|
// =============================================================================
|
|
22
20
|
// Catalog Responses
|
|
23
21
|
// =============================================================================
|
|
24
|
-
/**
|
|
25
|
-
* Catalog list response
|
|
26
|
-
*/
|
|
22
|
+
/** Catalog list response */
|
|
27
23
|
export const CatalogListResponseSchema = z.object({
|
|
28
24
|
data: z.array(IntegrationDefinitionSchema),
|
|
29
25
|
pagination: PaginationMetaV2Schema,
|
|
30
26
|
});
|
|
31
|
-
/**
|
|
32
|
-
* Enriched catalog list response (for org context)
|
|
33
|
-
*/
|
|
27
|
+
/** Enriched catalog list response (for org context) */
|
|
34
28
|
export const EnrichedCatalogListResponseSchema = z.object({
|
|
35
29
|
data: z.array(EnrichedIntegrationSchema),
|
|
36
30
|
pagination: PaginationMetaV2Schema,
|
|
37
31
|
});
|
|
38
|
-
/**
|
|
39
|
-
* Single catalog entry response
|
|
40
|
-
*/
|
|
32
|
+
/** Single catalog entry response */
|
|
41
33
|
export const CatalogEntryResponseSchema = IntegrationDefinitionSchema;
|
|
42
|
-
/**
|
|
43
|
-
* Single enriched catalog entry response (for org context)
|
|
44
|
-
*/
|
|
34
|
+
/** Single enriched catalog entry response (for org context) */
|
|
45
35
|
export const EnrichedIntegrationResponseSchema = EnrichedIntegrationSchema;
|
|
46
36
|
// =============================================================================
|
|
47
37
|
// Installation Responses
|
|
48
38
|
// =============================================================================
|
|
49
|
-
/**
|
|
50
|
-
* Installation list response
|
|
51
|
-
*/
|
|
39
|
+
/** Installation list response */
|
|
52
40
|
export const InstallationListResponseV2Schema = z.object({
|
|
53
41
|
data: z.array(InstallationResponseV2Schema),
|
|
54
42
|
pagination: PaginationMetaV2Schema,
|
|
55
43
|
});
|
|
56
|
-
/**
|
|
57
|
-
* Install result response
|
|
58
|
-
*/
|
|
44
|
+
/** Install result response */
|
|
59
45
|
export const InstallResultResponseSchema = InstallResultSchema;
|
|
60
46
|
// =============================================================================
|
|
61
47
|
// Entitlement Responses
|
|
62
48
|
// =============================================================================
|
|
63
|
-
/**
|
|
64
|
-
* Effective entitlements response
|
|
65
|
-
*/
|
|
49
|
+
/** Effective entitlements response */
|
|
66
50
|
export const EffectiveEntitlementsResponseSchema = EffectiveEntitlementsSchema;
|
|
67
|
-
/**
|
|
68
|
-
* Override created response
|
|
69
|
-
*/
|
|
51
|
+
/** Override created response */
|
|
70
52
|
export const OverrideResponseSchema = EntitlementOverrideSchema;
|
|
71
53
|
// =============================================================================
|
|
72
54
|
// Admin Responses
|
|
73
55
|
// =============================================================================
|
|
74
|
-
/**
|
|
75
|
-
* Revalidation result response
|
|
76
|
-
*/
|
|
56
|
+
/** Revalidation result response */
|
|
77
57
|
export const RevalidationResultSchema = z.object({
|
|
78
58
|
installation: InstallationResponseV2Schema,
|
|
79
59
|
healthCheck: z.object({
|
|
@@ -82,39 +62,31 @@ export const RevalidationResultSchema = z.object({
|
|
|
82
62
|
details: z.record(z.string(), z.unknown()).optional(),
|
|
83
63
|
}),
|
|
84
64
|
});
|
|
85
|
-
/**
|
|
86
|
-
* Trigger sync result response
|
|
87
|
-
*/
|
|
65
|
+
/** Trigger sync result response */
|
|
88
66
|
export const TriggerSyncResultSchema = z.object({
|
|
89
|
-
jobId:
|
|
67
|
+
jobId: UUIDSchema,
|
|
90
68
|
status: z.enum(["queued", "running", "completed", "failed"]),
|
|
91
69
|
triggeredAt: z.string().datetime(),
|
|
92
70
|
});
|
|
93
|
-
/**
|
|
94
|
-
* Simple success result response
|
|
95
|
-
*/
|
|
71
|
+
/** Simple success result response */
|
|
96
72
|
export const SuccessResultResponseSchema = z.object({
|
|
97
73
|
success: z.boolean(),
|
|
98
74
|
wasRemoved: z.boolean().optional(),
|
|
99
75
|
});
|
|
100
|
-
/**
|
|
101
|
-
* Audit entry response schema
|
|
102
|
-
*/
|
|
76
|
+
/** Audit entry response schema */
|
|
103
77
|
export const AuditEntryResponseSchema = z.object({
|
|
104
|
-
id:
|
|
78
|
+
id: UUIDSchema,
|
|
105
79
|
timestamp: z.string().datetime(),
|
|
106
80
|
actorType: z.enum(["user", "admin", "system"]),
|
|
107
|
-
actorId:
|
|
81
|
+
actorId: IdentifierSchema,
|
|
108
82
|
orgId: IdentifierSchema.optional(),
|
|
109
83
|
integrationKey: z.string().optional(),
|
|
110
84
|
action: z.string(),
|
|
111
85
|
outcome: z.enum(["success", "failure"]),
|
|
112
86
|
errorCode: z.string().optional(),
|
|
113
|
-
metadata:
|
|
87
|
+
metadata: MetadataSchema,
|
|
114
88
|
});
|
|
115
|
-
/**
|
|
116
|
-
* Audit search response
|
|
117
|
-
*/
|
|
89
|
+
/** Audit search response */
|
|
118
90
|
export const AuditSearchResponseSchema = z.object({
|
|
119
91
|
data: z.array(AuditEntryResponseSchema),
|
|
120
92
|
pagination: PaginationMetaV2Schema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-response.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace-response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"marketplace-response.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace-response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OA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C,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,UAAU;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC9C,OAAO,EAAE,gBAAgB;IACzB,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,cAAc;CACzB,CAAC,CAAC;AAEH,4BAA4B;AAC5B,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACvC,UAAU,EAAE,sBAAsB;CACnC,CAAC,CAAC"}
|
|
@@ -5,52 +5,42 @@
|
|
|
5
5
|
* These schemas align with the code-defined catalog and org-scoped installations.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
/**
|
|
9
|
-
* Integration category enum
|
|
10
|
-
*/
|
|
8
|
+
/** Integration category enum */
|
|
11
9
|
export declare const IntegrationCategorySchema: z.ZodEnum<{
|
|
12
|
-
deployment: "deployment";
|
|
13
10
|
store: "store";
|
|
11
|
+
deployment: "deployment";
|
|
14
12
|
"source-control": "source-control";
|
|
15
13
|
monitoring: "monitoring";
|
|
16
14
|
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Subscription plan enum
|
|
19
|
-
*/
|
|
15
|
+
/** Subscription plan enum — re-exports common SubscriptionTierSchema */
|
|
20
16
|
export declare const PlanSchema: z.ZodEnum<{
|
|
21
|
-
team: "team";
|
|
22
17
|
free: "free";
|
|
23
18
|
pro: "pro";
|
|
19
|
+
team: "team";
|
|
24
20
|
enterprise: "enterprise";
|
|
25
21
|
}>;
|
|
26
22
|
/**
|
|
27
23
|
* Installation status enum (v2)
|
|
28
24
|
*
|
|
29
|
-
* -
|
|
30
|
-
* -
|
|
31
|
-
* -
|
|
25
|
+
* - installed: Active and operational
|
|
26
|
+
* - disabled: Temporarily paused by user
|
|
27
|
+
* - error: Validation or connection failed
|
|
32
28
|
*/
|
|
33
29
|
export declare const InstallationStatusV2Schema: z.ZodEnum<{
|
|
34
30
|
error: "error";
|
|
35
31
|
disabled: "disabled";
|
|
36
32
|
installed: "installed";
|
|
37
33
|
}>;
|
|
38
|
-
/**
|
|
39
|
-
* Override type enum
|
|
40
|
-
*/
|
|
34
|
+
/** Override type enum */
|
|
41
35
|
export declare const OverrideTypeSchema: z.ZodEnum<{
|
|
42
36
|
allow: "allow";
|
|
43
37
|
deny: "deny";
|
|
44
38
|
}>;
|
|
45
|
-
/**
|
|
46
|
-
* Stream capability schema
|
|
47
|
-
*/
|
|
39
|
+
/** Stream capability schema */
|
|
48
40
|
export declare const StreamCapabilitySchema: z.ZodObject<{
|
|
49
41
|
id: z.ZodString;
|
|
50
42
|
}, z.core.$strip>;
|
|
51
|
-
/**
|
|
52
|
-
* Provider capabilities schema
|
|
53
|
-
*/
|
|
43
|
+
/** Provider capabilities schema */
|
|
54
44
|
export declare const ProviderCapabilitiesSchema: z.ZodObject<{
|
|
55
45
|
sync: z.ZodOptional<z.ZodObject<{
|
|
56
46
|
streams: z.ZodArray<z.ZodObject<{
|
|
@@ -61,25 +51,23 @@ export declare const ProviderCapabilitiesSchema: z.ZodObject<{
|
|
|
61
51
|
events: z.ZodArray<z.ZodString>;
|
|
62
52
|
}, z.core.$strip>>;
|
|
63
53
|
}, z.core.$strip>;
|
|
64
|
-
/**
|
|
65
|
-
* Integration definition schema (catalog entry)
|
|
66
|
-
*/
|
|
54
|
+
/** Integration definition schema (catalog entry) */
|
|
67
55
|
export declare const IntegrationDefinitionSchema: z.ZodObject<{
|
|
68
56
|
key: z.ZodString;
|
|
69
57
|
name: z.ZodString;
|
|
70
58
|
description: z.ZodString;
|
|
71
59
|
category: z.ZodEnum<{
|
|
72
|
-
deployment: "deployment";
|
|
73
60
|
store: "store";
|
|
61
|
+
deployment: "deployment";
|
|
74
62
|
"source-control": "source-control";
|
|
75
63
|
monitoring: "monitoring";
|
|
76
64
|
}>;
|
|
77
65
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
78
66
|
docsUrl: z.ZodOptional<z.ZodString>;
|
|
79
67
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
team: "team";
|
|
81
68
|
free: "free";
|
|
82
69
|
pro: "pro";
|
|
70
|
+
team: "team";
|
|
83
71
|
enterprise: "enterprise";
|
|
84
72
|
}>>;
|
|
85
73
|
isBeta: z.ZodBoolean;
|
|
@@ -95,29 +83,27 @@ export declare const IntegrationDefinitionSchema: z.ZodObject<{
|
|
|
95
83
|
}, z.core.$strip>>;
|
|
96
84
|
}, z.core.$strip>;
|
|
97
85
|
providerType: z.ZodEnum<{
|
|
98
|
-
store: "store";
|
|
99
86
|
integration: "integration";
|
|
87
|
+
store: "store";
|
|
100
88
|
}>;
|
|
101
89
|
}, z.core.$strip>;
|
|
102
|
-
/**
|
|
103
|
-
* Enriched integration schema (catalog + org state)
|
|
104
|
-
*/
|
|
90
|
+
/** Enriched integration schema (catalog + org state) */
|
|
105
91
|
export declare const EnrichedIntegrationSchema: z.ZodObject<{
|
|
106
92
|
key: z.ZodString;
|
|
107
93
|
name: z.ZodString;
|
|
108
94
|
description: z.ZodString;
|
|
109
95
|
category: z.ZodEnum<{
|
|
110
|
-
deployment: "deployment";
|
|
111
96
|
store: "store";
|
|
97
|
+
deployment: "deployment";
|
|
112
98
|
"source-control": "source-control";
|
|
113
99
|
monitoring: "monitoring";
|
|
114
100
|
}>;
|
|
115
101
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
116
102
|
docsUrl: z.ZodOptional<z.ZodString>;
|
|
117
103
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
team: "team";
|
|
119
104
|
free: "free";
|
|
120
105
|
pro: "pro";
|
|
106
|
+
team: "team";
|
|
121
107
|
enterprise: "enterprise";
|
|
122
108
|
}>>;
|
|
123
109
|
isBeta: z.ZodBoolean;
|
|
@@ -133,8 +119,8 @@ export declare const EnrichedIntegrationSchema: z.ZodObject<{
|
|
|
133
119
|
}, z.core.$strip>>;
|
|
134
120
|
}, z.core.$strip>;
|
|
135
121
|
providerType: z.ZodEnum<{
|
|
136
|
-
store: "store";
|
|
137
122
|
integration: "integration";
|
|
123
|
+
store: "store";
|
|
138
124
|
}>;
|
|
139
125
|
installed: z.ZodBoolean;
|
|
140
126
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -145,17 +131,13 @@ export declare const EnrichedIntegrationSchema: z.ZodObject<{
|
|
|
145
131
|
locked: z.ZodBoolean;
|
|
146
132
|
lockReason: z.ZodOptional<z.ZodString>;
|
|
147
133
|
}, z.core.$strip>;
|
|
148
|
-
/**
|
|
149
|
-
* Installation error schema
|
|
150
|
-
*/
|
|
134
|
+
/** Installation error schema */
|
|
151
135
|
export declare const InstallationErrorSchema: z.ZodObject<{
|
|
152
136
|
code: z.ZodString;
|
|
153
137
|
message: z.ZodString;
|
|
154
138
|
occurredAt: z.ZodString;
|
|
155
139
|
}, z.core.$strip>;
|
|
156
|
-
/**
|
|
157
|
-
* Installation response schema (v2 - no config exposed)
|
|
158
|
-
*/
|
|
140
|
+
/** Installation response schema (v2 - no config exposed) */
|
|
159
141
|
export declare const InstallationResponseV2Schema: z.ZodObject<{
|
|
160
142
|
id: z.ZodString;
|
|
161
143
|
orgId: z.ZodString;
|
|
@@ -174,9 +156,7 @@ export declare const InstallationResponseV2Schema: z.ZodObject<{
|
|
|
174
156
|
occurredAt: z.ZodString;
|
|
175
157
|
}, z.core.$strip>>;
|
|
176
158
|
}, z.core.$strip>;
|
|
177
|
-
/**
|
|
178
|
-
* Install result schema
|
|
179
|
-
*/
|
|
159
|
+
/** Install result schema */
|
|
180
160
|
export declare const InstallResultSchema: z.ZodObject<{
|
|
181
161
|
installation: z.ZodObject<{
|
|
182
162
|
id: z.ZodString;
|
|
@@ -198,9 +178,7 @@ export declare const InstallResultSchema: z.ZodObject<{
|
|
|
198
178
|
}, z.core.$strip>;
|
|
199
179
|
created: z.ZodBoolean;
|
|
200
180
|
}, z.core.$strip>;
|
|
201
|
-
/**
|
|
202
|
-
* Entitlement override schema
|
|
203
|
-
*/
|
|
181
|
+
/** Entitlement override schema */
|
|
204
182
|
export declare const EntitlementOverrideSchema: z.ZodObject<{
|
|
205
183
|
id: z.ZodString;
|
|
206
184
|
orgId: z.ZodString;
|
|
@@ -214,9 +192,7 @@ export declare const EntitlementOverrideSchema: z.ZodObject<{
|
|
|
214
192
|
createdAt: z.ZodString;
|
|
215
193
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
216
194
|
}, z.core.$strip>;
|
|
217
|
-
/**
|
|
218
|
-
* Entitlement result schema
|
|
219
|
-
*/
|
|
195
|
+
/** Entitlement result schema */
|
|
220
196
|
export declare const EntitlementResultSchema: z.ZodObject<{
|
|
221
197
|
allowed: z.ZodBoolean;
|
|
222
198
|
reason: z.ZodEnum<{
|
|
@@ -226,15 +202,15 @@ export declare const EntitlementResultSchema: z.ZodObject<{
|
|
|
226
202
|
no_requirement: "no_requirement";
|
|
227
203
|
}>;
|
|
228
204
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
229
|
-
team: "team";
|
|
230
205
|
free: "free";
|
|
231
206
|
pro: "pro";
|
|
207
|
+
team: "team";
|
|
232
208
|
enterprise: "enterprise";
|
|
233
209
|
}>>;
|
|
234
210
|
currentPlan: z.ZodOptional<z.ZodEnum<{
|
|
235
|
-
team: "team";
|
|
236
211
|
free: "free";
|
|
237
212
|
pro: "pro";
|
|
213
|
+
team: "team";
|
|
238
214
|
enterprise: "enterprise";
|
|
239
215
|
}>>;
|
|
240
216
|
override: z.ZodOptional<z.ZodObject<{
|
|
@@ -251,15 +227,13 @@ export declare const EntitlementResultSchema: z.ZodObject<{
|
|
|
251
227
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
252
228
|
}, z.core.$strip>>;
|
|
253
229
|
}, z.core.$strip>;
|
|
254
|
-
/**
|
|
255
|
-
* Integration entitlement schema
|
|
256
|
-
*/
|
|
230
|
+
/** Integration entitlement schema */
|
|
257
231
|
export declare const IntegrationEntitlementSchema: z.ZodObject<{
|
|
258
232
|
key: z.ZodString;
|
|
259
233
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
260
|
-
team: "team";
|
|
261
234
|
free: "free";
|
|
262
235
|
pro: "pro";
|
|
236
|
+
team: "team";
|
|
263
237
|
enterprise: "enterprise";
|
|
264
238
|
}>>;
|
|
265
239
|
allowed: z.ZodBoolean;
|
|
@@ -278,23 +252,21 @@ export declare const IntegrationEntitlementSchema: z.ZodObject<{
|
|
|
278
252
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
279
253
|
}, z.core.$strip>>;
|
|
280
254
|
}, z.core.$strip>;
|
|
281
|
-
/**
|
|
282
|
-
* Effective entitlements schema
|
|
283
|
-
*/
|
|
255
|
+
/** Effective entitlements schema */
|
|
284
256
|
export declare const EffectiveEntitlementsSchema: z.ZodObject<{
|
|
285
257
|
orgId: z.ZodString;
|
|
286
258
|
plan: z.ZodEnum<{
|
|
287
|
-
team: "team";
|
|
288
259
|
free: "free";
|
|
289
260
|
pro: "pro";
|
|
261
|
+
team: "team";
|
|
290
262
|
enterprise: "enterprise";
|
|
291
263
|
}>;
|
|
292
264
|
integrations: z.ZodArray<z.ZodObject<{
|
|
293
265
|
key: z.ZodString;
|
|
294
266
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
295
|
-
team: "team";
|
|
296
267
|
free: "free";
|
|
297
268
|
pro: "pro";
|
|
269
|
+
team: "team";
|
|
298
270
|
enterprise: "enterprise";
|
|
299
271
|
}>>;
|
|
300
272
|
allowed: z.ZodBoolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"marketplace.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,gCAAgC;AAChC,eAAO,MAAM,yBAAyB;;;;;EAKpC,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,UAAU;;;;;EAAyB,CAAC;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;EAIrC,CAAC;AAEH,yBAAyB;AACzB,eAAO,MAAM,kBAAkB;;;EAA4B,CAAC;AAM5D,+BAA+B;AAC/B,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,mCAAmC;AACnC,eAAO,MAAM,0BAA0B;;;;;;;;;iBAWrC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYtC,CAAC;AAEH,wDAAwD;AACxD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AAMH,gCAAgC;AAChC,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,4DAA4D;AAC5D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;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O,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -5,51 +5,41 @@
|
|
|
5
5
|
* These schemas align with the code-defined catalog and org-scoped installations.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
import { IdentifierSchema, IsoDateStringSchema, NullableIsoDateStringSchema } from "../common.js";
|
|
8
|
+
import { IdentifierSchema, IsoDateStringSchema, NullableIsoDateStringSchema, SubscriptionTierSchema, } from "../common.js";
|
|
9
9
|
// =============================================================================
|
|
10
10
|
// Enums
|
|
11
11
|
// =============================================================================
|
|
12
|
-
/**
|
|
13
|
-
* Integration category enum
|
|
14
|
-
*/
|
|
12
|
+
/** Integration category enum */
|
|
15
13
|
export const IntegrationCategorySchema = z.enum([
|
|
16
14
|
"store",
|
|
17
15
|
"source-control",
|
|
18
16
|
"monitoring",
|
|
19
17
|
"deployment",
|
|
20
18
|
]);
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
export const PlanSchema = z.enum(["free", "pro", "team", "enterprise"]);
|
|
19
|
+
/** Subscription plan enum — re-exports common SubscriptionTierSchema */
|
|
20
|
+
export const PlanSchema = SubscriptionTierSchema;
|
|
25
21
|
/**
|
|
26
22
|
* Installation status enum (v2)
|
|
27
23
|
*
|
|
28
|
-
* -
|
|
29
|
-
* -
|
|
30
|
-
* -
|
|
24
|
+
* - installed: Active and operational
|
|
25
|
+
* - disabled: Temporarily paused by user
|
|
26
|
+
* - error: Validation or connection failed
|
|
31
27
|
*/
|
|
32
28
|
export const InstallationStatusV2Schema = z.enum([
|
|
33
29
|
"installed",
|
|
34
30
|
"disabled",
|
|
35
31
|
"error",
|
|
36
32
|
]);
|
|
37
|
-
/**
|
|
38
|
-
* Override type enum
|
|
39
|
-
*/
|
|
33
|
+
/** Override type enum */
|
|
40
34
|
export const OverrideTypeSchema = z.enum(["allow", "deny"]);
|
|
41
35
|
// =============================================================================
|
|
42
36
|
// Catalog Schemas
|
|
43
37
|
// =============================================================================
|
|
44
|
-
/**
|
|
45
|
-
* Stream capability schema
|
|
46
|
-
*/
|
|
38
|
+
/** Stream capability schema */
|
|
47
39
|
export const StreamCapabilitySchema = z.object({
|
|
48
40
|
id: z.string(),
|
|
49
41
|
});
|
|
50
|
-
/**
|
|
51
|
-
* Provider capabilities schema
|
|
52
|
-
*/
|
|
42
|
+
/** Provider capabilities schema */
|
|
53
43
|
export const ProviderCapabilitiesSchema = z.object({
|
|
54
44
|
sync: z
|
|
55
45
|
.object({
|
|
@@ -62,9 +52,7 @@ export const ProviderCapabilitiesSchema = z.object({
|
|
|
62
52
|
})
|
|
63
53
|
.optional(),
|
|
64
54
|
});
|
|
65
|
-
/**
|
|
66
|
-
* Integration definition schema (catalog entry)
|
|
67
|
-
*/
|
|
55
|
+
/** Integration definition schema (catalog entry) */
|
|
68
56
|
export const IntegrationDefinitionSchema = z.object({
|
|
69
57
|
key: z.string().min(1, "Integration key is required"),
|
|
70
58
|
name: z.string().min(1, "Name is required"),
|
|
@@ -78,9 +66,7 @@ export const IntegrationDefinitionSchema = z.object({
|
|
|
78
66
|
capabilities: ProviderCapabilitiesSchema,
|
|
79
67
|
providerType: z.enum(["integration", "store"]),
|
|
80
68
|
});
|
|
81
|
-
/**
|
|
82
|
-
* Enriched integration schema (catalog + org state)
|
|
83
|
-
*/
|
|
69
|
+
/** Enriched integration schema (catalog + org state) */
|
|
84
70
|
export const EnrichedIntegrationSchema = IntegrationDefinitionSchema.extend({
|
|
85
71
|
installed: z.boolean(),
|
|
86
72
|
status: InstallationStatusV2Schema.optional(),
|
|
@@ -90,17 +76,13 @@ export const EnrichedIntegrationSchema = IntegrationDefinitionSchema.extend({
|
|
|
90
76
|
// =============================================================================
|
|
91
77
|
// Installation Schemas
|
|
92
78
|
// =============================================================================
|
|
93
|
-
/**
|
|
94
|
-
* Installation error schema
|
|
95
|
-
*/
|
|
79
|
+
/** Installation error schema */
|
|
96
80
|
export const InstallationErrorSchema = z.object({
|
|
97
81
|
code: z.string(),
|
|
98
82
|
message: z.string(),
|
|
99
83
|
occurredAt: IsoDateStringSchema,
|
|
100
84
|
});
|
|
101
|
-
/**
|
|
102
|
-
* Installation response schema (v2 - no config exposed)
|
|
103
|
-
*/
|
|
85
|
+
/** Installation response schema (v2 - no config exposed) */
|
|
104
86
|
export const InstallationResponseV2Schema = z.object({
|
|
105
87
|
id: z.string().uuid(),
|
|
106
88
|
orgId: IdentifierSchema,
|
|
@@ -111,9 +93,7 @@ export const InstallationResponseV2Schema = z.object({
|
|
|
111
93
|
installedByUserId: z.string().optional(),
|
|
112
94
|
lastError: InstallationErrorSchema.optional(),
|
|
113
95
|
});
|
|
114
|
-
/**
|
|
115
|
-
* Install result schema
|
|
116
|
-
*/
|
|
96
|
+
/** Install result schema */
|
|
117
97
|
export const InstallResultSchema = z.object({
|
|
118
98
|
installation: InstallationResponseV2Schema,
|
|
119
99
|
created: z.boolean(),
|
|
@@ -121,9 +101,7 @@ export const InstallResultSchema = z.object({
|
|
|
121
101
|
// =============================================================================
|
|
122
102
|
// Entitlement Schemas
|
|
123
103
|
// =============================================================================
|
|
124
|
-
/**
|
|
125
|
-
* Entitlement override schema
|
|
126
|
-
*/
|
|
104
|
+
/** Entitlement override schema */
|
|
127
105
|
export const EntitlementOverrideSchema = z.object({
|
|
128
106
|
id: z.string().uuid(),
|
|
129
107
|
orgId: IdentifierSchema,
|
|
@@ -134,19 +112,20 @@ export const EntitlementOverrideSchema = z.object({
|
|
|
134
112
|
createdAt: IsoDateStringSchema,
|
|
135
113
|
expiresAt: NullableIsoDateStringSchema,
|
|
136
114
|
});
|
|
137
|
-
/**
|
|
138
|
-
* Entitlement result schema
|
|
139
|
-
*/
|
|
115
|
+
/** Entitlement result schema */
|
|
140
116
|
export const EntitlementResultSchema = z.object({
|
|
141
117
|
allowed: z.boolean(),
|
|
142
|
-
reason: z.enum([
|
|
118
|
+
reason: z.enum([
|
|
119
|
+
"plan",
|
|
120
|
+
"override_allow",
|
|
121
|
+
"override_deny",
|
|
122
|
+
"no_requirement",
|
|
123
|
+
]),
|
|
143
124
|
requiredPlan: PlanSchema.optional(),
|
|
144
125
|
currentPlan: PlanSchema.optional(),
|
|
145
126
|
override: EntitlementOverrideSchema.optional(),
|
|
146
127
|
});
|
|
147
|
-
/**
|
|
148
|
-
* Integration entitlement schema
|
|
149
|
-
*/
|
|
128
|
+
/** Integration entitlement schema */
|
|
150
129
|
export const IntegrationEntitlementSchema = z.object({
|
|
151
130
|
key: z.string(),
|
|
152
131
|
requiredPlan: PlanSchema.optional(),
|
|
@@ -154,9 +133,7 @@ export const IntegrationEntitlementSchema = z.object({
|
|
|
154
133
|
reason: z.string(),
|
|
155
134
|
override: EntitlementOverrideSchema.optional(),
|
|
156
135
|
});
|
|
157
|
-
/**
|
|
158
|
-
* Effective entitlements schema
|
|
159
|
-
*/
|
|
136
|
+
/** Effective entitlements schema */
|
|
160
137
|
export const EffectiveEntitlementsSchema = z.object({
|
|
161
138
|
orgId: IdentifierSchema,
|
|
162
139
|
plan: PlanSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"marketplace.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/marketplace.schema.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QACN,gBAAgB;QAChB,eAAe;QACf,gBAAgB;KACjB,CAAC;IACF,YAAY,EAAE,UAAU,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,UAAU,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,qCAAqC;AACrC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,YAAY,EAAE,UAAU,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,oCAAoC;AACpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -10,9 +10,9 @@ import { z } from 'zod';
|
|
|
10
10
|
* Represents the subscription plans available for organizations.
|
|
11
11
|
*/
|
|
12
12
|
export declare const OrgPlanSchema: z.ZodEnum<{
|
|
13
|
-
team: "team";
|
|
14
13
|
free: "free";
|
|
15
14
|
pro: "pro";
|
|
15
|
+
team: "team";
|
|
16
16
|
enterprise: "enterprise";
|
|
17
17
|
business: "business";
|
|
18
18
|
}>;
|
|
@@ -37,9 +37,9 @@ export declare const OrgMemberSchema: z.ZodObject<{
|
|
|
37
37
|
email: z.ZodString;
|
|
38
38
|
name: z.ZodNullable<z.ZodString>;
|
|
39
39
|
role: z.ZodEnum<{
|
|
40
|
+
member: "member";
|
|
40
41
|
admin: "admin";
|
|
41
42
|
owner: "owner";
|
|
42
|
-
member: "member";
|
|
43
43
|
}>;
|
|
44
44
|
invited: z.ZodBoolean;
|
|
45
45
|
createdAt: z.ZodString;
|
|
@@ -21,9 +21,9 @@ export declare const OrgCreateSchema: z.ZodObject<{
|
|
|
21
21
|
export declare const InviteMemberSchema: z.ZodObject<{
|
|
22
22
|
email: z.ZodString;
|
|
23
23
|
role: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
member: "member";
|
|
24
25
|
admin: "admin";
|
|
25
26
|
owner: "owner";
|
|
26
|
-
member: "member";
|
|
27
27
|
}>>;
|
|
28
28
|
teamId: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, z.core.$strip>;
|
|
@@ -35,9 +35,9 @@ export declare const InviteMemberSchema: z.ZodObject<{
|
|
|
35
35
|
export declare const UpdateRoleSchema: z.ZodObject<{
|
|
36
36
|
userId: z.ZodString;
|
|
37
37
|
role: z.ZodEnum<{
|
|
38
|
+
member: "member";
|
|
38
39
|
admin: "admin";
|
|
39
40
|
owner: "owner";
|
|
40
|
-
member: "member";
|
|
41
41
|
}>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
/**
|
|
@@ -45,9 +45,9 @@ export declare const OrgMemberResponseSchema: z.ZodObject<{
|
|
|
45
45
|
email: z.ZodString;
|
|
46
46
|
name: z.ZodNullable<z.ZodString>;
|
|
47
47
|
role: z.ZodEnum<{
|
|
48
|
+
member: "member";
|
|
48
49
|
admin: "admin";
|
|
49
50
|
owner: "owner";
|
|
50
|
-
member: "member";
|
|
51
51
|
}>;
|
|
52
52
|
invited: z.ZodBoolean;
|
|
53
53
|
createdAt: z.ZodString;
|
|
@@ -64,9 +64,9 @@ export declare const OrgMemberListResponseSchema: z.ZodObject<{
|
|
|
64
64
|
email: z.ZodString;
|
|
65
65
|
name: z.ZodNullable<z.ZodString>;
|
|
66
66
|
role: z.ZodEnum<{
|
|
67
|
+
member: "member";
|
|
67
68
|
admin: "admin";
|
|
68
69
|
owner: "owner";
|
|
69
|
-
member: "member";
|
|
70
70
|
}>;
|
|
71
71
|
invited: z.ZodBoolean;
|
|
72
72
|
createdAt: z.ZodString;
|