@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.
Files changed (83) hide show
  1. package/dist/definitions/artifacts/domain.schema.d.ts +2 -2
  2. package/dist/definitions/artifacts/request.schema.d.ts +4 -4
  3. package/dist/definitions/artifacts/response.schema.d.ts +9 -9
  4. package/dist/definitions/audit-log/domain.schema.d.ts +13 -13
  5. package/dist/definitions/audit-log/request.schema.d.ts +23 -23
  6. package/dist/definitions/audit-log/response.schema.d.ts +6 -6
  7. package/dist/definitions/auth/domain.schema.d.ts +2 -2
  8. package/dist/definitions/billing/domain.schema.d.ts +5 -5
  9. package/dist/definitions/billing/request.schema.d.ts +3 -3
  10. package/dist/definitions/billing/response.schema.d.ts +4 -4
  11. package/dist/definitions/index.d.ts +10 -3
  12. package/dist/definitions/index.d.ts.map +1 -1
  13. package/dist/definitions/index.js +20 -5
  14. package/dist/definitions/index.js.map +1 -1
  15. package/dist/definitions/integrations/api.schema.d.ts +72 -72
  16. package/dist/definitions/integrations/api.schema.d.ts.map +1 -1
  17. package/dist/definitions/integrations/api.schema.js +37 -37
  18. package/dist/definitions/integrations/api.schema.js.map +1 -1
  19. package/dist/definitions/integrations/domain.schema.d.ts +88 -111
  20. package/dist/definitions/integrations/domain.schema.d.ts.map +1 -1
  21. package/dist/definitions/integrations/domain.schema.js +55 -78
  22. package/dist/definitions/integrations/domain.schema.js.map +1 -1
  23. package/dist/definitions/integrations/index.d.ts +5 -8
  24. package/dist/definitions/integrations/index.d.ts.map +1 -1
  25. package/dist/definitions/integrations/index.js +5 -31
  26. package/dist/definitions/integrations/index.js.map +1 -1
  27. package/dist/definitions/integrations/integrations-request.schema.d.ts +86 -0
  28. package/dist/definitions/integrations/integrations-request.schema.d.ts.map +1 -0
  29. package/dist/definitions/integrations/integrations-request.schema.js +82 -0
  30. package/dist/definitions/integrations/integrations-request.schema.js.map +1 -0
  31. package/dist/definitions/integrations/integrations-response.schema.d.ts +212 -0
  32. package/dist/definitions/integrations/integrations-response.schema.d.ts.map +1 -0
  33. package/dist/definitions/integrations/integrations-response.schema.js +139 -0
  34. package/dist/definitions/integrations/integrations-response.schema.js.map +1 -0
  35. package/dist/definitions/integrations/integrations.schema.d.ts +99 -0
  36. package/dist/definitions/integrations/integrations.schema.d.ts.map +1 -0
  37. package/dist/definitions/integrations/integrations.schema.js +62 -0
  38. package/dist/definitions/integrations/integrations.schema.js.map +1 -0
  39. package/dist/definitions/integrations/marketplace-request.schema.d.ts +2 -2
  40. package/dist/definitions/integrations/marketplace-response.schema.d.ts +6 -6
  41. package/dist/definitions/integrations/marketplace.schema.d.ts +8 -8
  42. package/dist/definitions/integrations/request.schema.d.ts +74 -129
  43. package/dist/definitions/integrations/request.schema.d.ts.map +1 -1
  44. package/dist/definitions/integrations/request.schema.js +71 -125
  45. package/dist/definitions/integrations/request.schema.js.map +1 -1
  46. package/dist/definitions/integrations/response.schema.d.ts +191 -121
  47. package/dist/definitions/integrations/response.schema.d.ts.map +1 -1
  48. package/dist/definitions/integrations/response.schema.js +132 -48
  49. package/dist/definitions/integrations/response.schema.js.map +1 -1
  50. package/dist/definitions/marketplace/domain.schema.d.ts +285 -0
  51. package/dist/definitions/marketplace/domain.schema.d.ts.map +1 -0
  52. package/dist/definitions/marketplace/domain.schema.js +123 -0
  53. package/dist/definitions/marketplace/domain.schema.js.map +1 -0
  54. package/dist/definitions/marketplace/index.d.ts +9 -0
  55. package/dist/definitions/marketplace/index.d.ts.map +1 -0
  56. package/dist/definitions/marketplace/index.js +9 -0
  57. package/dist/definitions/marketplace/index.js.map +1 -0
  58. package/dist/definitions/marketplace/marketplace-request.schema.d.ts +107 -0
  59. package/dist/definitions/marketplace/marketplace-request.schema.d.ts.map +1 -0
  60. package/dist/definitions/marketplace/marketplace-request.schema.js +86 -0
  61. package/dist/definitions/marketplace/marketplace-request.schema.js.map +1 -0
  62. package/dist/definitions/marketplace/marketplace-response.schema.d.ts +378 -0
  63. package/dist/definitions/marketplace/marketplace-response.schema.d.ts.map +1 -0
  64. package/dist/definitions/marketplace/marketplace-response.schema.js +81 -0
  65. package/dist/definitions/marketplace/marketplace-response.schema.js.map +1 -0
  66. package/dist/definitions/marketplace/marketplace.schema.d.ts +285 -0
  67. package/dist/definitions/marketplace/marketplace.schema.d.ts.map +1 -0
  68. package/dist/definitions/marketplace/marketplace.schema.js +123 -0
  69. package/dist/definitions/marketplace/marketplace.schema.js.map +1 -0
  70. package/dist/definitions/marketplace/request.schema.d.ts +107 -0
  71. package/dist/definitions/marketplace/request.schema.d.ts.map +1 -0
  72. package/dist/definitions/marketplace/request.schema.js +86 -0
  73. package/dist/definitions/marketplace/request.schema.js.map +1 -0
  74. package/dist/definitions/marketplace/response.schema.d.ts +378 -0
  75. package/dist/definitions/marketplace/response.schema.d.ts.map +1 -0
  76. package/dist/definitions/marketplace/response.schema.js +81 -0
  77. package/dist/definitions/marketplace/response.schema.js.map +1 -0
  78. package/dist/definitions/orgs/domain.schema.d.ts +2 -2
  79. package/dist/definitions/service-accounts/domain.schema.d.ts +2 -2
  80. package/dist/definitions/service-accounts/response.schema.d.ts +2 -2
  81. package/dist/definitions/share-links/request.schema.d.ts +1 -1
  82. package/dist/definitions/teams/request.schema.d.ts +1 -1
  83. package/package.json +5 -1
@@ -1,85 +1,62 @@
1
1
  /**
2
- * Integrations Domain - Domain Schemas
2
+ * Integrations Domain Schemas
3
3
  *
4
- * Zod schemas for integrations domain models and enums.
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 'zod';
7
- import { IdentifierSchema, IsoDateStringSchema, NullableIsoDateStringSchema } from '../common.js';
8
- /**
9
- * Integration status enum
10
- *
11
- * - available: Integration is available for installation
12
- * - beta: Integration is in beta testing
13
- * - deprecated: Integration is deprecated and will be removed
14
- * - unavailable: Integration is temporarily unavailable
15
- */
16
- export const IntegrationStatusSchema = z.enum(['available', 'beta', 'deprecated', 'unavailable']);
17
- /**
18
- * Subscription tier enum
19
- *
20
- * - free: Available on free tier
21
- * - pro: Available on pro tier and above
22
- * - enterprise: Available on enterprise tier only
23
- */
24
- export const SubscriptionTierSchema = z.enum(['free', 'pro', 'enterprise']);
25
- /**
26
- * Integration response schema
27
- *
28
- * Represents a marketplace integration with all metadata.
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
- * Installation status enum
48
- *
49
- * - active: Installation is active and enabled
50
- * - disabled: Installation is disabled by user
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
- * Integration installation response schema
67
- *
68
- * Represents an installed integration for an organization.
69
- */
70
- export const IntegrationInstallationResponseSchema = z.object({
71
- id: z.string().uuid('Invalid installation ID format'),
72
- organizationId: IdentifierSchema,
73
- integrationId: z.string().uuid('Invalid integration ID format'),
74
- credentialId: z.string().uuid('Invalid credential ID format'),
75
- status: InstallationStatusSchema,
76
- enabledAt: NullableIsoDateStringSchema,
77
- disabledAt: NullableIsoDateStringSchema,
78
- lastAuthenticatedAt: NullableIsoDateStringSchema,
79
- authenticationProvider: z.string().nullable(),
80
- webhookConfiguration: WebhookConfigurationSchema,
81
- metadata: z.record(z.string(), z.unknown()).default({}),
82
- createdAt: IsoDateStringSchema,
83
- updatedAt: IsoDateStringSchema,
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;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAElG;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAC3C,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,CAAC,CACnD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,+BAA+B,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CA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D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,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 for easy importing.
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 { IntegrationCategorySchema, PlanSchema, InstallationStatusV2Schema, OverrideTypeSchema, StreamCapabilitySchema, ProviderCapabilitiesSchema, IntegrationDefinitionSchema, EnrichedIntegrationSchema, InstallationErrorSchema, InstallationResponseV2Schema, InstallResultSchema, EntitlementOverrideSchema, EntitlementResultSchema, IntegrationEntitlementSchema, EffectiveEntitlementsSchema, type IntegrationCategory, type Plan, type InstallationStatusV2, type OverrideType, type ProviderCapabilities, type IntegrationDefinition, type EnrichedIntegration, type InstallationError, type InstallationResponseV2, type InstallResult, type EntitlementOverride, type EntitlementResult, type IntegrationEntitlement, type EffectiveEntitlements, } from "./marketplace.schema.js";
10
- export { OrgIdParamSchema, IntegrationKeyParamSchema, OrgIntegrationParamsSchema, CatalogListQuerySchema, InstallationListQueryV2Schema, AuditSearchQuerySchema, InstallRequestSchema, ForceInstallRequestSchema, AdminActionRequestSchema, OverrideRequestSchema, RotateSecretsRequestSchema, UpdateCatalogEntryRequestSchema, type OrgIdParam, type IntegrationKeyParam, type OrgIntegrationParams, type CatalogListQuery, type InstallationListQueryV2, type InstallationListQueryV2Input, type AuditSearchQuery, type InstallRequest, type ForceInstallRequest, type AdminActionRequest, type OverrideRequest, type RotateSecretsRequest, type UpdateCatalogEntryRequest, } from "./marketplace-request.schema.js";
11
- export { PaginationMetaV2Schema, CatalogListResponseSchema, EnrichedCatalogListResponseSchema, CatalogEntryResponseSchema, EnrichedIntegrationResponseSchema, InstallationListResponseV2Schema, InstallResultResponseSchema, EffectiveEntitlementsResponseSchema, OverrideResponseSchema, RevalidationResultSchema, TriggerSyncResultSchema, SuccessResultResponseSchema, AuditEntryResponseSchema, AuditSearchResponseSchema, type PaginationMetaV2, type CatalogListResponse, type EnrichedCatalogListResponse, type CatalogEntryResponse, type EnrichedIntegrationResponse, type InstallationListResponseV2, type InstallResultResponse, type EffectiveEntitlementsResponse, type OverrideResponse, type RevalidationResult, type TriggerSyncResult, type SuccessResultResponse, type AuditEntryResponse, type AuditSearchResponse, } from "./marketplace-response.schema.js";
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;;;;;;;GAOG;AAOH,OAAO,EACL,yBAAyB,EACzB,UAAU,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,EAC3B,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAC/B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAA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,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAE7B,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,EAC7B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC"}
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 for easy importing.
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
- // V2 Marketplace Schemas (new implementation)
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;;;;;;;GAOG;AAEH,gFAAgF;AAChF,8CAA8C;AAC9C,gFAAgF;AAEhF,iBAAiB;AACjB,OAAO,EACL,yBAAyB,EACzB,UAAU,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,GAe5B,MAAM,yBAAyB,CAAC;AAEjC,kBAAkB;AAClB,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,GAchC,MAAM,iCAAiC,CAAC;AAEzC,mBAAmB;AACnB,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,iCAAiC,EACjC,gCAAgC,EAChC,2BAA2B,EAC3B,mCAAmC,EACnC,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,GAe1B,MAAM,kCAAkC,CAAC;AAE1C,gFAAgF;AAChF,0DAA0D;AAC1D,gFAAgF;AAEhF,OAAO;AACL,SAAS;AACT,qBAAqB;AACrB,kBAAkB;AAClB,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB;AACvB,QAAQ;AACR,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B;AAC/B,cAAc;AACd,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B;AAC1B,eAAe;AACf,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B;AAC/B,kBAAkB;AAClB,0BAA0B,EAC1B,8BAA8B;AAiC9B,iBAAiB;AACjB,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,GAI9B,MAAM,iBAAiB,CAAC"}
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,MAAM,kCAAkC;;;;iBAO7C,CAAC;AAEH,eAAO,MAAM,kCAAkC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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,EAA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