@apollo-deploy/schemas 0.9.0 → 1.0.0
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/artifacts/domain.schema.d.ts +2 -2
- package/dist/definitions/artifacts/request.schema.d.ts +4 -4
- package/dist/definitions/artifacts/response.schema.d.ts +9 -9
- package/dist/definitions/audit-log/domain.schema.d.ts +13 -13
- package/dist/definitions/audit-log/request.schema.d.ts +23 -23
- package/dist/definitions/audit-log/response.schema.d.ts +6 -6
- package/dist/definitions/auth/domain.schema.d.ts +2 -2
- package/dist/definitions/billing/domain.schema.d.ts +5 -5
- package/dist/definitions/billing/request.schema.d.ts +3 -3
- package/dist/definitions/billing/response.schema.d.ts +4 -4
- package/dist/definitions/index.d.ts +10 -3
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +20 -5
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/api.schema.d.ts +72 -72
- package/dist/definitions/integrations/api.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/api.schema.js +37 -37
- package/dist/definitions/integrations/api.schema.js.map +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +88 -111
- package/dist/definitions/integrations/domain.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/domain.schema.js +55 -78
- package/dist/definitions/integrations/domain.schema.js.map +1 -1
- package/dist/definitions/integrations/index.d.ts +5 -8
- package/dist/definitions/integrations/index.d.ts.map +1 -1
- package/dist/definitions/integrations/index.js +5 -31
- package/dist/definitions/integrations/index.js.map +1 -1
- package/dist/definitions/integrations/integrations-request.schema.d.ts +86 -0
- package/dist/definitions/integrations/integrations-request.schema.d.ts.map +1 -0
- package/dist/definitions/integrations/integrations-request.schema.js +82 -0
- package/dist/definitions/integrations/integrations-request.schema.js.map +1 -0
- package/dist/definitions/integrations/integrations-response.schema.d.ts +212 -0
- package/dist/definitions/integrations/integrations-response.schema.d.ts.map +1 -0
- package/dist/definitions/integrations/integrations-response.schema.js +139 -0
- package/dist/definitions/integrations/integrations-response.schema.js.map +1 -0
- package/dist/definitions/integrations/integrations.schema.d.ts +99 -0
- package/dist/definitions/integrations/integrations.schema.d.ts.map +1 -0
- package/dist/definitions/integrations/integrations.schema.js +62 -0
- package/dist/definitions/integrations/integrations.schema.js.map +1 -0
- package/dist/definitions/integrations/marketplace-request.schema.d.ts +2 -2
- package/dist/definitions/integrations/marketplace-response.schema.d.ts +6 -6
- package/dist/definitions/integrations/marketplace.schema.d.ts +8 -8
- package/dist/definitions/integrations/request.schema.d.ts +74 -129
- package/dist/definitions/integrations/request.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/request.schema.js +71 -125
- package/dist/definitions/integrations/request.schema.js.map +1 -1
- package/dist/definitions/integrations/response.schema.d.ts +191 -121
- package/dist/definitions/integrations/response.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/response.schema.js +132 -48
- package/dist/definitions/integrations/response.schema.js.map +1 -1
- package/dist/definitions/marketplace/domain.schema.d.ts +285 -0
- package/dist/definitions/marketplace/domain.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/domain.schema.js +123 -0
- package/dist/definitions/marketplace/domain.schema.js.map +1 -0
- package/dist/definitions/marketplace/index.d.ts +9 -0
- package/dist/definitions/marketplace/index.d.ts.map +1 -0
- package/dist/definitions/marketplace/index.js +9 -0
- package/dist/definitions/marketplace/index.js.map +1 -0
- package/dist/definitions/marketplace/marketplace-request.schema.d.ts +107 -0
- package/dist/definitions/marketplace/marketplace-request.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/marketplace-request.schema.js +86 -0
- package/dist/definitions/marketplace/marketplace-request.schema.js.map +1 -0
- package/dist/definitions/marketplace/marketplace-response.schema.d.ts +378 -0
- package/dist/definitions/marketplace/marketplace-response.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/marketplace-response.schema.js +81 -0
- package/dist/definitions/marketplace/marketplace-response.schema.js.map +1 -0
- package/dist/definitions/marketplace/marketplace.schema.d.ts +285 -0
- package/dist/definitions/marketplace/marketplace.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/marketplace.schema.js +123 -0
- package/dist/definitions/marketplace/marketplace.schema.js.map +1 -0
- package/dist/definitions/marketplace/request.schema.d.ts +107 -0
- package/dist/definitions/marketplace/request.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/request.schema.js +86 -0
- package/dist/definitions/marketplace/request.schema.js.map +1 -0
- package/dist/definitions/marketplace/response.schema.d.ts +378 -0
- package/dist/definitions/marketplace/response.schema.d.ts.map +1 -0
- package/dist/definitions/marketplace/response.schema.js +81 -0
- package/dist/definitions/marketplace/response.schema.js.map +1 -0
- package/dist/definitions/orgs/domain.schema.d.ts +2 -2
- package/dist/definitions/service-accounts/domain.schema.d.ts +2 -2
- package/dist/definitions/service-accounts/response.schema.d.ts +2 -2
- package/dist/definitions/share-links/request.schema.d.ts +1 -1
- package/dist/definitions/teams/request.schema.d.ts +1 -1
- package/package.json +5 -1
|
@@ -14,9 +14,9 @@ export declare const IntegrationCategorySchema: z.ZodEnum<{
|
|
|
14
14
|
}>;
|
|
15
15
|
/** Subscription plan enum — re-exports common SubscriptionTierSchema */
|
|
16
16
|
export declare const PlanSchema: z.ZodEnum<{
|
|
17
|
-
team: "team";
|
|
18
17
|
free: "free";
|
|
19
18
|
pro: "pro";
|
|
19
|
+
team: "team";
|
|
20
20
|
enterprise: "enterprise";
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
@@ -65,9 +65,9 @@ export declare const IntegrationDefinitionSchema: z.ZodObject<{
|
|
|
65
65
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
66
66
|
docsUrl: z.ZodOptional<z.ZodString>;
|
|
67
67
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
team: "team";
|
|
69
68
|
free: "free";
|
|
70
69
|
pro: "pro";
|
|
70
|
+
team: "team";
|
|
71
71
|
enterprise: "enterprise";
|
|
72
72
|
}>>;
|
|
73
73
|
isBeta: z.ZodBoolean;
|
|
@@ -101,9 +101,9 @@ export declare const EnrichedIntegrationSchema: z.ZodObject<{
|
|
|
101
101
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
102
102
|
docsUrl: z.ZodOptional<z.ZodString>;
|
|
103
103
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
104
|
-
team: "team";
|
|
105
104
|
free: "free";
|
|
106
105
|
pro: "pro";
|
|
106
|
+
team: "team";
|
|
107
107
|
enterprise: "enterprise";
|
|
108
108
|
}>>;
|
|
109
109
|
isBeta: z.ZodBoolean;
|
|
@@ -202,15 +202,15 @@ export declare const EntitlementResultSchema: z.ZodObject<{
|
|
|
202
202
|
no_requirement: "no_requirement";
|
|
203
203
|
}>;
|
|
204
204
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
205
|
-
team: "team";
|
|
206
205
|
free: "free";
|
|
207
206
|
pro: "pro";
|
|
207
|
+
team: "team";
|
|
208
208
|
enterprise: "enterprise";
|
|
209
209
|
}>>;
|
|
210
210
|
currentPlan: z.ZodOptional<z.ZodEnum<{
|
|
211
|
-
team: "team";
|
|
212
211
|
free: "free";
|
|
213
212
|
pro: "pro";
|
|
213
|
+
team: "team";
|
|
214
214
|
enterprise: "enterprise";
|
|
215
215
|
}>>;
|
|
216
216
|
override: z.ZodOptional<z.ZodObject<{
|
|
@@ -231,9 +231,9 @@ export declare const EntitlementResultSchema: z.ZodObject<{
|
|
|
231
231
|
export declare const IntegrationEntitlementSchema: z.ZodObject<{
|
|
232
232
|
key: z.ZodString;
|
|
233
233
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
234
|
-
team: "team";
|
|
235
234
|
free: "free";
|
|
236
235
|
pro: "pro";
|
|
236
|
+
team: "team";
|
|
237
237
|
enterprise: "enterprise";
|
|
238
238
|
}>>;
|
|
239
239
|
allowed: z.ZodBoolean;
|
|
@@ -256,17 +256,17 @@ export declare const IntegrationEntitlementSchema: z.ZodObject<{
|
|
|
256
256
|
export declare const EffectiveEntitlementsSchema: z.ZodObject<{
|
|
257
257
|
orgId: z.ZodString;
|
|
258
258
|
plan: z.ZodEnum<{
|
|
259
|
-
team: "team";
|
|
260
259
|
free: "free";
|
|
261
260
|
pro: "pro";
|
|
261
|
+
team: "team";
|
|
262
262
|
enterprise: "enterprise";
|
|
263
263
|
}>;
|
|
264
264
|
integrations: z.ZodArray<z.ZodObject<{
|
|
265
265
|
key: z.ZodString;
|
|
266
266
|
requiredPlan: z.ZodOptional<z.ZodEnum<{
|
|
267
|
-
team: "team";
|
|
268
267
|
free: "free";
|
|
269
268
|
pro: "pro";
|
|
269
|
+
team: "team";
|
|
270
270
|
enterprise: "enterprise";
|
|
271
271
|
}>>;
|
|
272
272
|
allowed: z.ZodBoolean;
|
|
@@ -1,141 +1,86 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Integrations
|
|
2
|
+
* Integrations — Request Schemas
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Path params, query strings, and request bodies for all integrations endpoints.
|
|
5
5
|
*/
|
|
6
|
-
import { z } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* Supports pagination, filtering, and search.
|
|
11
|
-
*/
|
|
12
|
-
export declare const MarketplaceListQuerySchema: z.ZodObject<{
|
|
13
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
15
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
beta: "beta";
|
|
17
|
-
available: "available";
|
|
18
|
-
deprecated: "deprecated";
|
|
19
|
-
unavailable: "unavailable";
|
|
20
|
-
}>>;
|
|
21
|
-
requiredSubscriptionTier: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
free: "free";
|
|
23
|
-
pro: "pro";
|
|
24
|
-
enterprise: "enterprise";
|
|
25
|
-
}>>;
|
|
26
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
27
|
-
search: z.ZodOptional<z.ZodString>;
|
|
28
|
-
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
29
|
-
status: "status";
|
|
30
|
-
createdAt: "createdAt";
|
|
31
|
-
name: "name";
|
|
32
|
-
}>>;
|
|
33
|
-
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
34
|
-
asc: "asc";
|
|
35
|
-
desc: "desc";
|
|
36
|
-
}>>;
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
export declare const IntegrationsKeyParamSchema: z.ZodObject<{
|
|
8
|
+
integrationKey: z.ZodString;
|
|
37
9
|
}, z.core.$strip>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
* Path parameter for integration ID.
|
|
42
|
-
*/
|
|
43
|
-
export declare const IntegrationIdParamSchema: z.ZodObject<{
|
|
44
|
-
integrationId: z.ZodString;
|
|
10
|
+
export declare const IntegrationsConnectionIdParamSchema: z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
45
12
|
}, z.core.$strip>;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
* Query parameters for marketplace search.
|
|
50
|
-
*/
|
|
51
|
-
export declare const MarketplaceSearchQuerySchema: z.ZodObject<{
|
|
52
|
-
q: z.ZodString;
|
|
53
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
54
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
export declare const IntegrationsProviderParamSchema: z.ZodObject<{
|
|
14
|
+
provider: z.ZodString;
|
|
55
15
|
}, z.core.$strip>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
*
|
|
59
|
-
* Query params returned by provider to callback endpoint.
|
|
60
|
-
*/
|
|
61
|
-
export declare const OAuthCallbackQuerySchema: z.ZodObject<{
|
|
62
|
-
code: z.ZodOptional<z.ZodString>;
|
|
63
|
-
state: z.ZodOptional<z.ZodString>;
|
|
64
|
-
error: z.ZodOptional<z.ZodString>;
|
|
65
|
-
error_description: z.ZodOptional<z.ZodString>;
|
|
16
|
+
export declare const IntegrationsAppIdParamSchema: z.ZodObject<{
|
|
17
|
+
appId: z.ZodString;
|
|
66
18
|
}, z.core.$strip>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*
|
|
70
|
-
* Payload for creating a new integration installation.
|
|
71
|
-
*/
|
|
72
|
-
export declare const CreateInstallationSchema: z.ZodObject<{
|
|
73
|
-
authenticationProvider: z.ZodString;
|
|
74
|
-
webhookConfiguration: z.ZodOptional<z.ZodObject<{
|
|
75
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
76
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
77
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
80
|
-
}, z.core.$strict>;
|
|
81
|
-
/**
|
|
82
|
-
* Update installation request schema
|
|
83
|
-
*
|
|
84
|
-
* Payload for updating an existing installation.
|
|
85
|
-
*/
|
|
86
|
-
export declare const UpdateInstallationSchema: z.ZodObject<{
|
|
87
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
88
|
-
active: "active";
|
|
89
|
-
disabled: "disabled";
|
|
90
|
-
pending_auth: "pending_auth";
|
|
91
|
-
auth_failed: "auth_failed";
|
|
92
|
-
}>>;
|
|
93
|
-
webhookConfiguration: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
96
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
|
-
}, z.core.$strict>;
|
|
100
|
-
/**
|
|
101
|
-
* Installation list query schema
|
|
102
|
-
*
|
|
103
|
-
* Query parameters for listing installations.
|
|
104
|
-
*/
|
|
105
|
-
export declare const InstallationListQuerySchema: z.ZodObject<{
|
|
106
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
107
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
108
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
109
|
-
active: "active";
|
|
110
|
-
disabled: "disabled";
|
|
111
|
-
pending_auth: "pending_auth";
|
|
112
|
-
auth_failed: "auth_failed";
|
|
113
|
-
}>>;
|
|
114
|
-
integrationId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
export declare const IntegrationsConfigIdParamSchema: z.ZodObject<{
|
|
20
|
+
configId: z.ZodString;
|
|
115
21
|
}, z.core.$strip>;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
*
|
|
119
|
-
* Path parameter for installation ID.
|
|
120
|
-
*/
|
|
121
|
-
export declare const InstallationIdParamSchema: z.ZodObject<{
|
|
122
|
-
installationId: z.ZodString;
|
|
22
|
+
export declare const IntegrationsEntitlementOrgIdParamSchema: z.ZodObject<{
|
|
23
|
+
orgId: z.ZodString;
|
|
123
24
|
}, z.core.$strip>;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
25
|
+
export declare const IntegrationsEntitlementIdParamSchema: z.ZodObject<{
|
|
26
|
+
overrideId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const IntegrationsListAvailableQuerySchema: z.ZodObject<{
|
|
29
|
+
category: z.ZodOptional<z.ZodString>;
|
|
30
|
+
capability: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const IntegrationsListSourceReposQuerySchema: z.ZodObject<{
|
|
33
|
+
provider: z.ZodString;
|
|
34
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const IntegrationsInstallBodySchema: z.ZodObject<{
|
|
37
|
+
integrationKey: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const IntegrationsOAuthInitBodySchema: z.ZodObject<{
|
|
40
|
+
integrationKey: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const IntegrationsOAuthCallbackBodySchema: z.ZodObject<{
|
|
43
|
+
integrationKey: z.ZodString;
|
|
44
|
+
code: z.ZodString;
|
|
45
|
+
state: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const IntegrationsCredentialSubmitBodySchema: z.ZodObject<{
|
|
48
|
+
integrationKey: z.ZodString;
|
|
49
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const IntegrationsCreateConfigBodySchema: z.ZodObject<{
|
|
52
|
+
connectedAccountId: z.ZodString;
|
|
53
|
+
settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
|
+
notificationRules: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const IntegrationsUpdateConfigBodySchema: z.ZodObject<{
|
|
57
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
+
notificationRules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
59
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const IntegrationsCreateEntitlementBodySchema: z.ZodObject<{
|
|
130
62
|
orgId: z.ZodString;
|
|
63
|
+
integrationKey: z.ZodString;
|
|
64
|
+
type: z.ZodEnum<{
|
|
65
|
+
allow: "allow";
|
|
66
|
+
deny: "deny";
|
|
67
|
+
}>;
|
|
68
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
131
69
|
}, z.core.$strip>;
|
|
132
|
-
export type
|
|
133
|
-
export type
|
|
134
|
-
export type
|
|
135
|
-
export type
|
|
136
|
-
export type
|
|
137
|
-
export type
|
|
138
|
-
export type
|
|
139
|
-
export type
|
|
140
|
-
export type
|
|
70
|
+
export type IntegrationsKeyParam = z.infer<typeof IntegrationsKeyParamSchema>;
|
|
71
|
+
export type IntegrationsConnectionIdParam = z.infer<typeof IntegrationsConnectionIdParamSchema>;
|
|
72
|
+
export type IntegrationsProviderParam = z.infer<typeof IntegrationsProviderParamSchema>;
|
|
73
|
+
export type IntegrationsAppIdParam = z.infer<typeof IntegrationsAppIdParamSchema>;
|
|
74
|
+
export type IntegrationsConfigIdParam = z.infer<typeof IntegrationsConfigIdParamSchema>;
|
|
75
|
+
export type IntegrationsEntitlementOrgIdParam = z.infer<typeof IntegrationsEntitlementOrgIdParamSchema>;
|
|
76
|
+
export type IntegrationsEntitlementIdParam = z.infer<typeof IntegrationsEntitlementIdParamSchema>;
|
|
77
|
+
export type IntegrationsListAvailableQuery = z.infer<typeof IntegrationsListAvailableQuerySchema>;
|
|
78
|
+
export type IntegrationsListSourceReposQuery = z.infer<typeof IntegrationsListSourceReposQuerySchema>;
|
|
79
|
+
export type IntegrationsInstallBody = z.infer<typeof IntegrationsInstallBodySchema>;
|
|
80
|
+
export type IntegrationsOAuthInitBody = z.infer<typeof IntegrationsOAuthInitBodySchema>;
|
|
81
|
+
export type IntegrationsOAuthCallbackBody = z.infer<typeof IntegrationsOAuthCallbackBodySchema>;
|
|
82
|
+
export type IntegrationsCredentialSubmitBody = z.infer<typeof IntegrationsCredentialSubmitBodySchema>;
|
|
83
|
+
export type IntegrationsCreateConfigBody = z.infer<typeof IntegrationsCreateConfigBodySchema>;
|
|
84
|
+
export type IntegrationsUpdateConfigBody = z.infer<typeof IntegrationsUpdateConfigBodySchema>;
|
|
85
|
+
export type IntegrationsCreateEntitlementBody = z.infer<typeof IntegrationsCreateEntitlementBodySchema>;
|
|
141
86
|
//# sourceMappingURL=request.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,uCAAuC;;iBAElD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAMH,eAAO,MAAM,oCAAoC;;;iBAG/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;iBAGjD,CAAC;AAMH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;iBAI9C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;iBAGjD,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;iBAO7C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;iBAM7C,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;iBAKlD,CAAC;AAMH,MAAM,MAAM,oBAAoB,GAA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AAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -1,136 +1,82 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Integrations
|
|
2
|
+
* Integrations — Request Schemas
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Path params, query strings, and request bodies for all integrations endpoints.
|
|
5
5
|
*/
|
|
6
|
-
import { z } from
|
|
7
|
-
import { IdentifierSchema } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
export const MarketplaceListQuerySchema = z.object({
|
|
15
|
-
// Pagination
|
|
16
|
-
limit: z.coerce
|
|
17
|
-
.number()
|
|
18
|
-
.int('Limit must be an integer')
|
|
19
|
-
.min(1, 'Limit must be at least 1')
|
|
20
|
-
.max(100, 'Limit cannot exceed 100')
|
|
21
|
-
.default(20),
|
|
22
|
-
page: z.coerce
|
|
23
|
-
.number()
|
|
24
|
-
.int('Page must be an integer')
|
|
25
|
-
.min(1, 'Page must be at least 1')
|
|
26
|
-
.default(1),
|
|
27
|
-
// Filtering
|
|
28
|
-
status: IntegrationStatusSchema.optional(),
|
|
29
|
-
requiredSubscriptionTier: SubscriptionTierSchema.optional(),
|
|
30
|
-
provider: z.string().optional(),
|
|
31
|
-
// Search
|
|
32
|
-
search: z.string().max(200, 'Search query too long').optional(),
|
|
33
|
-
// Sorting
|
|
34
|
-
sortBy: z.enum(['name', 'createdAt', 'status']).default('name'),
|
|
35
|
-
sortOrder: z.enum(['asc', 'desc']).default('asc'),
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { IdentifierSchema, UUIDSchema, } from "../common.js";
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// Shared Params
|
|
10
|
+
// =============================================================================
|
|
11
|
+
export const IntegrationsKeyParamSchema = z.object({
|
|
12
|
+
integrationKey: IdentifierSchema,
|
|
36
13
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
* Path parameter for integration ID.
|
|
41
|
-
*/
|
|
42
|
-
export const IntegrationIdParamSchema = z.object({
|
|
43
|
-
integrationId: z.string().uuid('Invalid integration ID format'),
|
|
14
|
+
export const IntegrationsConnectionIdParamSchema = z.object({
|
|
15
|
+
connectionId: UUIDSchema,
|
|
44
16
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* Query parameters for marketplace search.
|
|
49
|
-
*/
|
|
50
|
-
export const MarketplaceSearchQuerySchema = z.object({
|
|
51
|
-
q: z.string().min(1, 'Search query is required').max(200, 'Search query too long'),
|
|
52
|
-
limit: z.coerce
|
|
53
|
-
.number()
|
|
54
|
-
.int()
|
|
55
|
-
.min(1)
|
|
56
|
-
.max(100)
|
|
57
|
-
.default(20),
|
|
58
|
-
page: z.coerce
|
|
59
|
-
.number()
|
|
60
|
-
.int()
|
|
61
|
-
.min(1)
|
|
62
|
-
.default(1),
|
|
17
|
+
export const IntegrationsProviderParamSchema = z.object({
|
|
18
|
+
provider: IdentifierSchema,
|
|
63
19
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*
|
|
67
|
-
* Query params returned by provider to callback endpoint.
|
|
68
|
-
*/
|
|
69
|
-
export const OAuthCallbackQuerySchema = z.object({
|
|
70
|
-
code: z.string().optional(),
|
|
71
|
-
state: z.string().optional(),
|
|
72
|
-
error: z.string().optional(),
|
|
73
|
-
error_description: z.string().optional(),
|
|
20
|
+
export const IntegrationsAppIdParamSchema = z.object({
|
|
21
|
+
appId: UUIDSchema,
|
|
74
22
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
* Payload for creating a new integration installation.
|
|
79
|
-
*/
|
|
80
|
-
export const CreateInstallationSchema = z.object({
|
|
81
|
-
authenticationProvider: z.string()
|
|
82
|
-
.min(1, 'Authentication provider is required')
|
|
83
|
-
.max(255, 'Authentication provider too long'),
|
|
84
|
-
webhookConfiguration: WebhookConfigurationSchema.optional(),
|
|
85
|
-
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
86
|
-
}).strict();
|
|
87
|
-
/**
|
|
88
|
-
* Update installation request schema
|
|
89
|
-
*
|
|
90
|
-
* Payload for updating an existing installation.
|
|
91
|
-
*/
|
|
92
|
-
export const UpdateInstallationSchema = z.object({
|
|
93
|
-
status: InstallationStatusSchema.optional(),
|
|
94
|
-
webhookConfiguration: WebhookConfigurationSchema.optional(),
|
|
95
|
-
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
96
|
-
}).strict().refine((data) => {
|
|
97
|
-
// At least one field must be provided for update
|
|
98
|
-
return Object.keys(data).length > 0;
|
|
99
|
-
}, { message: 'At least one field must be provided for update' });
|
|
100
|
-
/**
|
|
101
|
-
* Installation list query schema
|
|
102
|
-
*
|
|
103
|
-
* Query parameters for listing installations.
|
|
104
|
-
*/
|
|
105
|
-
export const InstallationListQuerySchema = z.object({
|
|
106
|
-
limit: z.coerce
|
|
107
|
-
.number()
|
|
108
|
-
.int('Limit must be an integer')
|
|
109
|
-
.min(1, 'Limit must be at least 1')
|
|
110
|
-
.max(100, 'Limit cannot exceed 100')
|
|
111
|
-
.default(20),
|
|
112
|
-
page: z.coerce
|
|
113
|
-
.number()
|
|
114
|
-
.int('Page must be an integer')
|
|
115
|
-
.min(1, 'Page must be at least 1')
|
|
116
|
-
.default(1),
|
|
117
|
-
status: InstallationStatusSchema.optional(),
|
|
118
|
-
integrationId: z.string().uuid().optional(),
|
|
23
|
+
export const IntegrationsConfigIdParamSchema = z.object({
|
|
24
|
+
configId: UUIDSchema,
|
|
119
25
|
});
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
*
|
|
123
|
-
* Path parameter for installation ID.
|
|
124
|
-
*/
|
|
125
|
-
export const InstallationIdParamSchema = z.object({
|
|
126
|
-
installationId: z.string().uuid('Invalid installation ID format'),
|
|
26
|
+
export const IntegrationsEntitlementOrgIdParamSchema = z.object({
|
|
27
|
+
orgId: UUIDSchema,
|
|
127
28
|
});
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
29
|
+
export const IntegrationsEntitlementIdParamSchema = z.object({
|
|
30
|
+
overrideId: UUIDSchema,
|
|
31
|
+
});
|
|
32
|
+
// =============================================================================
|
|
33
|
+
// Query Strings
|
|
34
|
+
// =============================================================================
|
|
35
|
+
export const IntegrationsListAvailableQuerySchema = z.object({
|
|
36
|
+
category: z.string().optional(),
|
|
37
|
+
capability: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
export const IntegrationsListSourceReposQuerySchema = z.object({
|
|
40
|
+
provider: z.string().min(1),
|
|
41
|
+
limit: z.coerce.number().int().min(1).max(100).optional(),
|
|
42
|
+
});
|
|
43
|
+
// =============================================================================
|
|
44
|
+
// Request Bodies
|
|
45
|
+
// =============================================================================
|
|
46
|
+
export const IntegrationsInstallBodySchema = z.object({
|
|
47
|
+
integrationKey: IdentifierSchema,
|
|
48
|
+
});
|
|
49
|
+
export const IntegrationsOAuthInitBodySchema = z.object({
|
|
50
|
+
integrationKey: IdentifierSchema,
|
|
51
|
+
});
|
|
52
|
+
export const IntegrationsOAuthCallbackBodySchema = z.object({
|
|
53
|
+
integrationKey: IdentifierSchema,
|
|
54
|
+
code: IdentifierSchema,
|
|
55
|
+
state: IdentifierSchema,
|
|
56
|
+
});
|
|
57
|
+
export const IntegrationsCredentialSubmitBodySchema = z.object({
|
|
58
|
+
integrationKey: IdentifierSchema,
|
|
59
|
+
credentials: z.record(z.string(), z.unknown()),
|
|
60
|
+
});
|
|
61
|
+
export const IntegrationsCreateConfigBodySchema = z.object({
|
|
62
|
+
connectedAccountId: UUIDSchema,
|
|
63
|
+
settings: z.record(z.string(), z.unknown()).optional().default({}),
|
|
64
|
+
notificationRules: z
|
|
65
|
+
.array(z.record(z.string(), z.unknown()))
|
|
66
|
+
.optional()
|
|
67
|
+
.default([]),
|
|
68
|
+
});
|
|
69
|
+
export const IntegrationsUpdateConfigBodySchema = z.object({
|
|
70
|
+
settings: z.record(z.string(), z.unknown()).optional(),
|
|
71
|
+
notificationRules: z
|
|
72
|
+
.array(z.record(z.string(), z.unknown()))
|
|
73
|
+
.optional(),
|
|
74
|
+
enabled: z.boolean().optional(),
|
|
75
|
+
});
|
|
76
|
+
export const IntegrationsCreateEntitlementBodySchema = z.object({
|
|
77
|
+
orgId: UUIDSchema,
|
|
78
|
+
integrationKey: IdentifierSchema,
|
|
79
|
+
type: z.enum(["allow", "deny"]),
|
|
80
|
+
reason: z.string().optional(),
|
|
135
81
|
});
|
|
136
82
|
//# sourceMappingURL=request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"request.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/request.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,cAAc,EAAE,gBAAgB;CACjC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,YAAY,EAAE,UAAU;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,gBAAgB;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAA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