@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
|
@@ -1,85 +1,62 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Integrations
|
|
2
|
+
* Integrations — Domain Schemas
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Core domain types shared across request and response schemas:
|
|
5
|
+
* auth config shapes, credential field definitions, and source repo items.
|
|
5
6
|
*/
|
|
6
|
-
import { z } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export const IntegrationResponseSchema = z.object({
|
|
31
|
-
id: z.string().uuid('Invalid integration ID format'),
|
|
32
|
-
name: z.string().min(1, 'Name is required'),
|
|
33
|
-
description: z.string().nullable(),
|
|
34
|
-
iconUrl: z.string().url('Invalid icon URL').nullable(),
|
|
35
|
-
version: z.string().regex(/^\d+\.\d+\.\d+$/, 'Version must be in semver format'),
|
|
36
|
-
provider: z.string().min(1, 'Provider is required'),
|
|
37
|
-
status: IntegrationStatusSchema,
|
|
38
|
-
requiredSubscriptionTier: SubscriptionTierSchema.nullable(),
|
|
39
|
-
capabilities: z.array(z.string()).default([]),
|
|
40
|
-
configurationOptions: z.record(z.string(), z.unknown()).default({}),
|
|
41
|
-
webhookFormats: z.array(z.string()).default([]),
|
|
42
|
-
inboundWebhookProviders: z.array(z.string()).default([]),
|
|
43
|
-
createdAt: IsoDateStringSchema,
|
|
44
|
-
updatedAt: IsoDateStringSchema,
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// Auth Config (client-safe subset — no scopes or internal auth method)
|
|
10
|
+
// =============================================================================
|
|
11
|
+
export const IntegrationsSetupFlowSchema = z.enum([
|
|
12
|
+
"oauth_only",
|
|
13
|
+
"credential_form",
|
|
14
|
+
"oauth_then_configure",
|
|
15
|
+
"none",
|
|
16
|
+
]);
|
|
17
|
+
export const IntegrationsCredentialInputFieldSchema = z.object({
|
|
18
|
+
key: z.string(),
|
|
19
|
+
label: z.string(),
|
|
20
|
+
type: z.enum(["text", "password", "url", "select", "textarea", "copy"]),
|
|
21
|
+
required: z.boolean(),
|
|
22
|
+
placeholder: z.string().optional(),
|
|
23
|
+
helpText: z.string().optional(),
|
|
24
|
+
options: z
|
|
25
|
+
.array(z.object({ value: z.string(), label: z.string() }))
|
|
26
|
+
.optional(),
|
|
27
|
+
pattern: z.string().optional(),
|
|
28
|
+
minLength: z.number().int().nonnegative().optional(),
|
|
29
|
+
maxLength: z.number().int().positive().optional(),
|
|
30
|
+
value: z.string().optional(),
|
|
45
31
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* - pending_auth: Installation is waiting for OAuth authentication
|
|
52
|
-
* - auth_failed: Installation authentication failed
|
|
53
|
-
*/
|
|
54
|
-
export const InstallationStatusSchema = z.enum(['active', 'disabled', 'pending_auth', 'auth_failed']);
|
|
55
|
-
/**
|
|
56
|
-
* Webhook configuration schema
|
|
57
|
-
*
|
|
58
|
-
* Configuration for webhooks associated with an installation.
|
|
59
|
-
*/
|
|
60
|
-
export const WebhookConfigurationSchema = z.object({
|
|
61
|
-
outboundWebhooks: z.array(z.string().uuid()).default([]),
|
|
62
|
-
inboundWebhooks: z.array(z.string().uuid()).default([]),
|
|
63
|
-
eventFilters: z.record(z.string(), z.boolean()).default({}),
|
|
32
|
+
export const IntegrationsClientAuthConfigSchema = z.object({
|
|
33
|
+
/** Tells the client which UI flows can be offered. */
|
|
34
|
+
setupFlows: z.array(IntegrationsSetupFlowSchema),
|
|
35
|
+
/** Ordered credential fields (present when credential_form is in setupFlows). */
|
|
36
|
+
fields: z.array(IntegrationsCredentialInputFieldSchema).optional(),
|
|
64
37
|
});
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
38
|
+
/** Describes a user-configurable field in integration_configs.settings. */
|
|
39
|
+
export const IntegrationsConfigFieldSchema = z.object({
|
|
40
|
+
key: z.string(),
|
|
41
|
+
label: z.string(),
|
|
42
|
+
description: z.string().optional(),
|
|
43
|
+
type: z.enum(["text", "select", "boolean", "number"]),
|
|
44
|
+
required: z.boolean(),
|
|
45
|
+
options: z
|
|
46
|
+
.array(z.object({ value: z.string(), label: z.string() }))
|
|
47
|
+
.optional(),
|
|
48
|
+
/** If true, the client should fetch options dynamically (e.g. repo list). */
|
|
49
|
+
dynamic: z.boolean().optional(),
|
|
50
|
+
});
|
|
51
|
+
// =============================================================================
|
|
52
|
+
// Source Control
|
|
53
|
+
// =============================================================================
|
|
54
|
+
export const IntegrationsSourceRepoItemSchema = z.object({
|
|
55
|
+
id: z.string(),
|
|
56
|
+
name: z.string(),
|
|
57
|
+
fullName: z.string(),
|
|
58
|
+
defaultBranch: z.string(),
|
|
59
|
+
private: z.boolean(),
|
|
60
|
+
url: z.string(),
|
|
84
61
|
});
|
|
85
62
|
//# sourceMappingURL=domain.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/domain.schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"domain.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/domain.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,uEAAuE;AACvE,gFAAgF;AAEhF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,YAAY;IACZ,iBAAiB;IACjB,sBAAsB;IACtB,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACvE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC;SACP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E,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACzD,QAAQ,EAAE;IACb,6EAA6E;IAC7E,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Integrations Domain Schemas
|
|
3
3
|
*
|
|
4
|
-
* Re-exports integrations schemas
|
|
5
|
-
*
|
|
6
|
-
* Note: v1/legacy integration marketplace schemas have been removed from this
|
|
7
|
-
* public surface. Use the v2 marketplace schemas below.
|
|
4
|
+
* Re-exports all integrations schemas and types.
|
|
5
|
+
* Marketplace schemas live in @apollo-deploy/schemas/marketplace.
|
|
8
6
|
*/
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { SuccessResponseSchema, ListAvailableQuerySchema, ListAvailableResponseSchema, ListInstalledResponseSchema, ApiIntegrationKeyParamSchema, InstallBodySchema, InstallResponseSchema, UninstallResponseSchema, OAuthInitBodySchema, OAuthInitResponseSchema, OAuthCallbackBodySchema, OAuthCallbackResponseSchema, ConnectionIdParamSchema, ProviderParamSchema, ConnectionListResponseSchema, RevokeConnectionResponseSchema, RefreshConnectionResponseSchema, AppIdParamSchema, ConfigIdParamSchema, CreateConfigBodySchema, UpdateConfigBodySchema, ConfigResponseSchema, ConfigListResponseSchema, DeleteConfigResponseSchema, EntitlementOrgIdParamSchema, EntitlementIdParamSchema, CreateEntitlementBodySchema, EntitlementResponseSchema, EntitlementListResponseSchema, DeleteEntitlementResponseSchema, CredentialSubmitBodySchema, CredentialSubmitResponseSchema, type ListAvailableQuery, type ListAvailableResponse, type ListInstalledResponse, type ApiIntegrationKeyParam, type InstallBody, type InstallResponse, type UninstallResponse, type OAuthInitBody, type OAuthInitResponse, type OAuthCallbackBody, type OAuthCallbackResponse, type ConnectionIdParam, type ProviderParam, type ConnectionListResponse, type RevokeConnectionResponse, type RefreshConnectionResponse, type AppIdParam, type ConfigIdParam, type CreateConfigBody, type UpdateConfigBody, type ConfigResponse, type ConfigListResponse, type DeleteConfigResponse, type EntitlementOrgIdParam, type EntitlementIdParam, type CreateEntitlementBody, type EntitlementResponse, type EntitlementListResponse, type DeleteEntitlementResponse, type CredentialSubmitBody, type CredentialSubmitResponse, SourceRepoItemSchema, ListSourceReposQuerySchema, ListSourceReposResponseSchema, type SourceRepoItem, type ListSourceReposQuery, type ListSourceReposResponse, } from "./api.schema.js";
|
|
7
|
+
export { IntegrationsSetupFlowSchema, IntegrationsCredentialInputFieldSchema, IntegrationsClientAuthConfigSchema, IntegrationsConfigFieldSchema, IntegrationsSourceRepoItemSchema, type IntegrationsSetupFlow, type IntegrationsCredentialInputField, type IntegrationsClientAuthConfig, type IntegrationsConfigField, type IntegrationsSourceRepoItem, } from "./domain.schema.js";
|
|
8
|
+
export { IntegrationsKeyParamSchema, IntegrationsConnectionIdParamSchema, IntegrationsProviderParamSchema, IntegrationsAppIdParamSchema, IntegrationsConfigIdParamSchema, IntegrationsEntitlementOrgIdParamSchema, IntegrationsEntitlementIdParamSchema, IntegrationsListAvailableQuerySchema, IntegrationsListSourceReposQuerySchema, IntegrationsInstallBodySchema, IntegrationsOAuthInitBodySchema, IntegrationsOAuthCallbackBodySchema, IntegrationsCredentialSubmitBodySchema, IntegrationsCreateConfigBodySchema, IntegrationsUpdateConfigBodySchema, IntegrationsCreateEntitlementBodySchema, type IntegrationsKeyParam, type IntegrationsConnectionIdParam, type IntegrationsProviderParam, type IntegrationsAppIdParam, type IntegrationsConfigIdParam, type IntegrationsEntitlementOrgIdParam, type IntegrationsEntitlementIdParam, type IntegrationsListAvailableQuery, type IntegrationsListSourceReposQuery, type IntegrationsInstallBody, type IntegrationsOAuthInitBody, type IntegrationsOAuthCallbackBody, type IntegrationsCredentialSubmitBody, type IntegrationsCreateConfigBody, type IntegrationsUpdateConfigBody, type IntegrationsCreateEntitlementBody, } from "./request.schema.js";
|
|
9
|
+
export { IntegrationsListAvailableResponseSchema, IntegrationsListInstalledResponseSchema, IntegrationsInstallResponseSchema, IntegrationsUninstallResponseSchema, IntegrationsOAuthInitResponseSchema, IntegrationsOAuthCallbackResponseSchema, IntegrationsConnectionListResponseSchema, IntegrationsRevokeConnectionResponseSchema, IntegrationsRefreshConnectionResponseSchema, IntegrationsCredentialSubmitResponseSchema, IntegrationsConfigResponseSchema, IntegrationsConfigListResponseSchema, IntegrationsDeleteConfigResponseSchema, IntegrationsEntitlementResponseSchema, IntegrationsEntitlementListResponseSchema, IntegrationsDeleteEntitlementResponseSchema, IntegrationsListSourceReposResponseSchema, type IntegrationsListAvailableResponse, type IntegrationsListInstalledResponse, type IntegrationsInstallResponse, type IntegrationsUninstallResponse, type IntegrationsOAuthInitResponse, type IntegrationsOAuthCallbackResponse, type IntegrationsConnectionListResponse, type IntegrationsRevokeConnectionResponse, type IntegrationsRefreshConnectionResponse, type IntegrationsCredentialSubmitResponse, type IntegrationsConfigResponse, type IntegrationsConfigListResponse, type IntegrationsDeleteConfigResponse, type IntegrationsEntitlementResponse, type IntegrationsEntitlementListResponse, type IntegrationsDeleteEntitlementResponse, type IntegrationsListSourceReposResponse, } from "./response.schema.js";
|
|
13
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,2BAA2B,EAC3B,sCAAsC,EACtC,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,EAChC,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,0BAA0B,EAC1B,mCAAmC,EACnC,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,uCAAuC,EACvC,oCAAoC,EACpC,oCAAoC,EACpC,sCAAsC,EACtC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,sCAAsC,EACtC,kCAAkC,EAClC,kCAAkC,EAClC,uCAAuC,EACvC,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,GACvC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,uCAAuC,EACvC,uCAAuC,EACvC,iCAAiC,EACjC,mCAAmC,EACnC,mCAAmC,EACnC,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,EAC1C,2CAA2C,EAC3C,0CAA0C,EAC1C,gCAAgC,EAChC,oCAAoC,EACpC,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,2CAA2C,EAC3C,yCAAyC,EACzC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,oCAAoC,EACzC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,GACzC,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Integrations Domain Schemas
|
|
3
3
|
*
|
|
4
|
-
* Re-exports integrations schemas
|
|
5
|
-
*
|
|
6
|
-
* Note: v1/legacy integration marketplace schemas have been removed from this
|
|
7
|
-
* public surface. Use the v2 marketplace schemas below.
|
|
4
|
+
* Re-exports all integrations schemas and types.
|
|
5
|
+
* Marketplace schemas live in @apollo-deploy/schemas/marketplace.
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Domain schemas
|
|
13
|
-
export { IntegrationCategorySchema, PlanSchema, InstallationStatusV2Schema, OverrideTypeSchema, StreamCapabilitySchema, ProviderCapabilitiesSchema, IntegrationDefinitionSchema, EnrichedIntegrationSchema, InstallationErrorSchema, InstallationResponseV2Schema, InstallResultSchema, EntitlementOverrideSchema, EntitlementResultSchema, IntegrationEntitlementSchema, EffectiveEntitlementsSchema, } from "./marketplace.schema.js";
|
|
14
|
-
// Request schemas
|
|
15
|
-
export { OrgIdParamSchema, IntegrationKeyParamSchema, OrgIntegrationParamsSchema, CatalogListQuerySchema, InstallationListQueryV2Schema, AuditSearchQuerySchema, InstallRequestSchema, ForceInstallRequestSchema, AdminActionRequestSchema, OverrideRequestSchema, RotateSecretsRequestSchema, UpdateCatalogEntryRequestSchema, } from "./marketplace-request.schema.js";
|
|
16
|
-
// Response schemas
|
|
17
|
-
export { PaginationMetaV2Schema, CatalogListResponseSchema, EnrichedCatalogListResponseSchema, CatalogEntryResponseSchema, EnrichedIntegrationResponseSchema, InstallationListResponseV2Schema, InstallResultResponseSchema, EffectiveEntitlementsResponseSchema, OverrideResponseSchema, RevalidationResultSchema, TriggerSyncResultSchema, SuccessResultResponseSchema, AuditEntryResponseSchema, AuditSearchResponseSchema, } from "./marketplace-response.schema.js";
|
|
18
|
-
// =============================================================================
|
|
19
|
-
// API Schemas (OAuth, Connections, Configs, Entitlements)
|
|
20
|
-
// =============================================================================
|
|
21
|
-
export {
|
|
22
|
-
// Shared
|
|
23
|
-
SuccessResponseSchema,
|
|
24
|
-
// Marketplace API
|
|
25
|
-
ListAvailableQuerySchema, ListAvailableResponseSchema, ListInstalledResponseSchema, ApiIntegrationKeyParamSchema, InstallBodySchema, InstallResponseSchema, UninstallResponseSchema,
|
|
26
|
-
// OAuth
|
|
27
|
-
OAuthInitBodySchema, OAuthInitResponseSchema, OAuthCallbackBodySchema, OAuthCallbackResponseSchema, ConnectionIdParamSchema, ProviderParamSchema, ConnectionListResponseSchema, RevokeConnectionResponseSchema, RefreshConnectionResponseSchema,
|
|
28
|
-
// App Configs
|
|
29
|
-
AppIdParamSchema, ConfigIdParamSchema, CreateConfigBodySchema, UpdateConfigBodySchema, ConfigResponseSchema, ConfigListResponseSchema, DeleteConfigResponseSchema,
|
|
30
|
-
// Entitlements
|
|
31
|
-
EntitlementOrgIdParamSchema, EntitlementIdParamSchema, CreateEntitlementBodySchema, EntitlementResponseSchema, EntitlementListResponseSchema, DeleteEntitlementResponseSchema,
|
|
32
|
-
// Credential Form
|
|
33
|
-
CredentialSubmitBodySchema, CredentialSubmitResponseSchema,
|
|
34
|
-
// Source Control
|
|
35
|
-
SourceRepoItemSchema, ListSourceReposQuerySchema, ListSourceReposResponseSchema, } from "./api.schema.js";
|
|
7
|
+
export { IntegrationsSetupFlowSchema, IntegrationsCredentialInputFieldSchema, IntegrationsClientAuthConfigSchema, IntegrationsConfigFieldSchema, IntegrationsSourceRepoItemSchema, } from "./domain.schema.js";
|
|
8
|
+
export { IntegrationsKeyParamSchema, IntegrationsConnectionIdParamSchema, IntegrationsProviderParamSchema, IntegrationsAppIdParamSchema, IntegrationsConfigIdParamSchema, IntegrationsEntitlementOrgIdParamSchema, IntegrationsEntitlementIdParamSchema, IntegrationsListAvailableQuerySchema, IntegrationsListSourceReposQuerySchema, IntegrationsInstallBodySchema, IntegrationsOAuthInitBodySchema, IntegrationsOAuthCallbackBodySchema, IntegrationsCredentialSubmitBodySchema, IntegrationsCreateConfigBodySchema, IntegrationsUpdateConfigBodySchema, IntegrationsCreateEntitlementBodySchema, } from "./request.schema.js";
|
|
9
|
+
export { IntegrationsListAvailableResponseSchema, IntegrationsListInstalledResponseSchema, IntegrationsInstallResponseSchema, IntegrationsUninstallResponseSchema, IntegrationsOAuthInitResponseSchema, IntegrationsOAuthCallbackResponseSchema, IntegrationsConnectionListResponseSchema, IntegrationsRevokeConnectionResponseSchema, IntegrationsRefreshConnectionResponseSchema, IntegrationsCredentialSubmitResponseSchema, IntegrationsConfigResponseSchema, IntegrationsConfigListResponseSchema, IntegrationsDeleteConfigResponseSchema, IntegrationsEntitlementResponseSchema, IntegrationsEntitlementListResponseSchema, IntegrationsDeleteEntitlementResponseSchema, IntegrationsListSourceReposResponseSchema, } from "./response.schema.js";
|
|
36
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/integrations/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,2BAA2B,EAC3B,sCAAsC,EACtC,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,GAMjC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,0BAA0B,EAC1B,mCAAmC,EACnC,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,uCAAuC,EACvC,oCAAoC,EACpC,oCAAoC,EACpC,sCAAsC,EACtC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,sCAAsC,EACtC,kCAAkC,EAClC,kCAAkC,EAClC,uCAAuC,GAiBxC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,uCAAuC,EACvC,uCAAuC,EACvC,iCAAiC,EACjC,mCAAmC,EACnC,mCAAmC,EACnC,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,EAC1C,2CAA2C,EAC3C,0CAA0C,EAC1C,gCAAgC,EAChC,oCAAoC,EACpC,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,2CAA2C,EAC3C,yCAAyC,GAkB1C,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations — Request Schemas
|
|
3
|
+
*
|
|
4
|
+
* Path params, query strings, and request bodies for all integrations endpoints.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
export declare const IntegrationsKeyParamSchema: z.ZodObject<{
|
|
8
|
+
integrationKey: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const IntegrationsConnectionIdParamSchema: z.ZodObject<{
|
|
11
|
+
connectionId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const IntegrationsProviderParamSchema: z.ZodObject<{
|
|
14
|
+
provider: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const IntegrationsAppIdParamSchema: z.ZodObject<{
|
|
17
|
+
appId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const IntegrationsConfigIdParamSchema: z.ZodObject<{
|
|
20
|
+
configId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const IntegrationsEntitlementOrgIdParamSchema: z.ZodObject<{
|
|
23
|
+
orgId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
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<{
|
|
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>;
|
|
69
|
+
}, z.core.$strip>;
|
|
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>;
|
|
86
|
+
//# sourceMappingURL=integrations-request.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-request.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/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,MAA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AG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations — Request Schemas
|
|
3
|
+
*
|
|
4
|
+
* Path params, query strings, and request bodies for all integrations endpoints.
|
|
5
|
+
*/
|
|
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,
|
|
13
|
+
});
|
|
14
|
+
export const IntegrationsConnectionIdParamSchema = z.object({
|
|
15
|
+
connectionId: UUIDSchema,
|
|
16
|
+
});
|
|
17
|
+
export const IntegrationsProviderParamSchema = z.object({
|
|
18
|
+
provider: IdentifierSchema,
|
|
19
|
+
});
|
|
20
|
+
export const IntegrationsAppIdParamSchema = z.object({
|
|
21
|
+
appId: UUIDSchema,
|
|
22
|
+
});
|
|
23
|
+
export const IntegrationsConfigIdParamSchema = z.object({
|
|
24
|
+
configId: UUIDSchema,
|
|
25
|
+
});
|
|
26
|
+
export const IntegrationsEntitlementOrgIdParamSchema = z.object({
|
|
27
|
+
orgId: UUIDSchema,
|
|
28
|
+
});
|
|
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(),
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=integrations-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-request.schema.js","sourceRoot":"","sources":["../../../src/definitions/integrations/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,CAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,UAAU;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,KAAK,EAAE,UAAU;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,UAAU;CACvB,CAAC,CAAC;AAEH,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC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