@apollo-deploy/schemas 0.4.7 → 0.5.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/approvals/domain.schema.d.ts +23 -12
- package/dist/definitions/approvals/domain.schema.d.ts.map +1 -1
- package/dist/definitions/approvals/domain.schema.js +4 -8
- package/dist/definitions/approvals/domain.schema.js.map +1 -1
- package/dist/definitions/approvals/request.schema.d.ts +8 -8
- package/dist/definitions/approvals/response.schema.d.ts +48 -32
- package/dist/definitions/approvals/response.schema.d.ts.map +1 -1
- package/dist/definitions/apps/response.schema.d.ts +1 -1
- package/dist/definitions/artifacts/domain.schema.d.ts +6 -6
- package/dist/definitions/artifacts/request.schema.d.ts +16 -16
- package/dist/definitions/artifacts/response.schema.d.ts +75 -47
- package/dist/definitions/artifacts/response.schema.d.ts.map +1 -1
- package/dist/definitions/artifacts/response.schema.js +2 -3
- package/dist/definitions/artifacts/response.schema.js.map +1 -1
- package/dist/definitions/audit-log/domain.schema.d.ts +27 -22
- package/dist/definitions/audit-log/domain.schema.d.ts.map +1 -1
- package/dist/definitions/audit-log/domain.schema.js +2 -2
- package/dist/definitions/audit-log/domain.schema.js.map +1 -1
- package/dist/definitions/audit-log/request.schema.d.ts +39 -39
- package/dist/definitions/audit-log/response.schema.d.ts +66 -15
- package/dist/definitions/audit-log/response.schema.d.ts.map +1 -1
- package/dist/definitions/audit-log/response.schema.js +6 -10
- package/dist/definitions/audit-log/response.schema.js.map +1 -1
- package/dist/definitions/auth/domain.schema.d.ts +11 -11
- package/dist/definitions/auth/request.schema.d.ts +11 -11
- package/dist/definitions/billing/domain.schema.d.ts +13 -13
- package/dist/definitions/billing/domain.schema.d.ts.map +1 -1
- package/dist/definitions/billing/domain.schema.js +4 -4
- package/dist/definitions/billing/domain.schema.js.map +1 -1
- package/dist/definitions/billing/request.schema.d.ts +3 -3
- package/dist/definitions/billing/response.schema.d.ts +7 -7
- package/dist/definitions/common.d.ts +31 -3
- package/dist/definitions/common.d.ts.map +1 -1
- package/dist/definitions/common.js +21 -0
- package/dist/definitions/common.js.map +1 -1
- package/dist/definitions/credentials/domain.schema.d.ts +4 -7
- package/dist/definitions/credentials/domain.schema.d.ts.map +1 -1
- package/dist/definitions/credentials/domain.schema.js +0 -3
- package/dist/definitions/credentials/domain.schema.js.map +1 -1
- package/dist/definitions/credentials/request.schema.d.ts +2 -4
- package/dist/definitions/credentials/request.schema.d.ts.map +1 -1
- package/dist/definitions/credentials/request.schema.js +0 -2
- package/dist/definitions/credentials/request.schema.js.map +1 -1
- package/dist/definitions/credentials/response.schema.d.ts +4 -10
- package/dist/definitions/credentials/response.schema.d.ts.map +1 -1
- package/dist/definitions/cve-scanner/domain.schema.d.ts +6 -6
- package/dist/definitions/cve-scanner/response.schema.d.ts +15 -15
- package/dist/definitions/deployments/domain.schema.d.ts +3 -3
- package/dist/definitions/deployments/request.schema.d.ts +1 -1
- package/dist/definitions/deployments/response.schema.d.ts +2 -2
- package/dist/definitions/index.d.ts +2 -9
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +6 -9
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/integrations/api.schema.d.ts +290 -0
- package/dist/definitions/integrations/api.schema.d.ts.map +1 -0
- package/dist/definitions/integrations/api.schema.js +209 -0
- package/dist/definitions/integrations/api.schema.js.map +1 -0
- package/dist/definitions/integrations/index.d.ts +4 -3
- package/dist/definitions/integrations/index.d.ts.map +1 -1
- package/dist/definitions/integrations/index.js +17 -3
- package/dist/definitions/integrations/index.js.map +1 -1
- package/dist/definitions/integrations/marketplace-request.schema.d.ts +16 -40
- package/dist/definitions/integrations/marketplace-request.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace-request.schema.js +12 -36
- package/dist/definitions/integrations/marketplace-request.schema.js.map +1 -1
- package/dist/definitions/integrations/marketplace-response.schema.d.ts +28 -56
- package/dist/definitions/integrations/marketplace-response.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace-response.schema.js +19 -47
- package/dist/definitions/integrations/marketplace-response.schema.js.map +1 -1
- package/dist/definitions/integrations/marketplace.schema.d.ts +30 -58
- package/dist/definitions/integrations/marketplace.schema.d.ts.map +1 -1
- package/dist/definitions/integrations/marketplace.schema.js +25 -48
- package/dist/definitions/integrations/marketplace.schema.js.map +1 -1
- package/dist/definitions/orgs/domain.schema.d.ts +2 -2
- package/dist/definitions/orgs/request.schema.d.ts +2 -2
- package/dist/definitions/orgs/response.schema.d.ts +2 -2
- package/dist/definitions/policies/domain.schema.d.ts +8 -8
- package/dist/definitions/policies/request.schema.d.ts +8 -8
- package/dist/definitions/policies/response.schema.d.ts +18 -18
- package/dist/definitions/release-risk/domain.schema.d.ts +2 -2
- package/dist/definitions/release-risk/request.schema.d.ts +1 -1
- package/dist/definitions/release-risk/response.schema.d.ts +5 -5
- package/dist/definitions/releases/domain.schema.d.ts +17 -12
- package/dist/definitions/releases/domain.schema.d.ts.map +1 -1
- package/dist/definitions/releases/domain.schema.js +4 -4
- package/dist/definitions/releases/domain.schema.js.map +1 -1
- package/dist/definitions/releases/request.schema.d.ts +2 -2
- package/dist/definitions/releases/response.schema.d.ts +20 -10
- package/dist/definitions/releases/response.schema.d.ts.map +1 -1
- package/dist/definitions/service-accounts/domain.schema.d.ts +9 -9
- package/dist/definitions/service-accounts/request.schema.d.ts +2 -2
- package/dist/definitions/service-accounts/response.schema.d.ts +7 -7
- package/dist/definitions/share-links/domain.schema.d.ts +6 -1
- package/dist/definitions/share-links/domain.schema.d.ts.map +1 -1
- package/dist/definitions/share-links/domain.schema.js +2 -2
- package/dist/definitions/share-links/domain.schema.js.map +1 -1
- package/dist/definitions/share-links/request.schema.d.ts +1 -1
- package/dist/definitions/share-links/response.schema.d.ts +12 -2
- package/dist/definitions/share-links/response.schema.d.ts.map +1 -1
- package/dist/definitions/teams/domain.schema.d.ts +7 -2
- package/dist/definitions/teams/domain.schema.d.ts.map +1 -1
- package/dist/definitions/teams/domain.schema.js +2 -2
- package/dist/definitions/teams/domain.schema.js.map +1 -1
- package/dist/definitions/teams/request.schema.d.ts +1 -1
- package/dist/definitions/teams/response.schema.d.ts +14 -4
- package/dist/definitions/teams/response.schema.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/definitions/integrations/domain.schema.d.ts +0 -122
- package/dist/definitions/integrations/domain.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/domain.schema.js +0 -85
- package/dist/definitions/integrations/domain.schema.js.map +0 -1
- package/dist/definitions/integrations/request.schema.d.ts +0 -141
- package/dist/definitions/integrations/request.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/request.schema.js +0 -136
- package/dist/definitions/integrations/request.schema.js.map +0 -1
- package/dist/definitions/integrations/response.schema.d.ts +0 -142
- package/dist/definitions/integrations/response.schema.d.ts.map +0 -1
- package/dist/definitions/integrations/response.schema.js +0 -55
- package/dist/definitions/integrations/response.schema.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations Domain - Domain Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for integrations domain models and enums.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Integration status enum
|
|
9
|
-
*
|
|
10
|
-
* - available: Integration is available for installation
|
|
11
|
-
* - beta: Integration is in beta testing
|
|
12
|
-
* - deprecated: Integration is deprecated and will be removed
|
|
13
|
-
* - unavailable: Integration is temporarily unavailable
|
|
14
|
-
*/
|
|
15
|
-
export declare const IntegrationStatusSchema: z.ZodEnum<{
|
|
16
|
-
available: "available";
|
|
17
|
-
beta: "beta";
|
|
18
|
-
deprecated: "deprecated";
|
|
19
|
-
unavailable: "unavailable";
|
|
20
|
-
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Subscription tier enum
|
|
23
|
-
*
|
|
24
|
-
* - free: Available on free tier
|
|
25
|
-
* - pro: Available on pro tier and above
|
|
26
|
-
* - enterprise: Available on enterprise tier only
|
|
27
|
-
*/
|
|
28
|
-
export declare const SubscriptionTierSchema: z.ZodEnum<{
|
|
29
|
-
free: "free";
|
|
30
|
-
pro: "pro";
|
|
31
|
-
enterprise: "enterprise";
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Integration response schema
|
|
35
|
-
*
|
|
36
|
-
* Represents a marketplace integration with all metadata.
|
|
37
|
-
*/
|
|
38
|
-
export declare const IntegrationResponseSchema: z.ZodObject<{
|
|
39
|
-
id: z.ZodString;
|
|
40
|
-
name: z.ZodString;
|
|
41
|
-
description: z.ZodNullable<z.ZodString>;
|
|
42
|
-
iconUrl: z.ZodNullable<z.ZodString>;
|
|
43
|
-
version: z.ZodString;
|
|
44
|
-
provider: z.ZodString;
|
|
45
|
-
status: z.ZodEnum<{
|
|
46
|
-
available: "available";
|
|
47
|
-
beta: "beta";
|
|
48
|
-
deprecated: "deprecated";
|
|
49
|
-
unavailable: "unavailable";
|
|
50
|
-
}>;
|
|
51
|
-
requiredSubscriptionTier: z.ZodNullable<z.ZodEnum<{
|
|
52
|
-
free: "free";
|
|
53
|
-
pro: "pro";
|
|
54
|
-
enterprise: "enterprise";
|
|
55
|
-
}>>;
|
|
56
|
-
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
-
configurationOptions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
-
webhookFormats: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
|
-
inboundWebhookProviders: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
60
|
-
createdAt: z.ZodString;
|
|
61
|
-
updatedAt: z.ZodString;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
/**
|
|
64
|
-
* Installation status enum
|
|
65
|
-
*
|
|
66
|
-
* - active: Installation is active and enabled
|
|
67
|
-
* - disabled: Installation is disabled by user
|
|
68
|
-
* - pending_auth: Installation is waiting for OAuth authentication
|
|
69
|
-
* - auth_failed: Installation authentication failed
|
|
70
|
-
*/
|
|
71
|
-
export declare const InstallationStatusSchema: z.ZodEnum<{
|
|
72
|
-
active: "active";
|
|
73
|
-
disabled: "disabled";
|
|
74
|
-
pending_auth: "pending_auth";
|
|
75
|
-
auth_failed: "auth_failed";
|
|
76
|
-
}>;
|
|
77
|
-
/**
|
|
78
|
-
* Webhook configuration schema
|
|
79
|
-
*
|
|
80
|
-
* Configuration for webhooks associated with an installation.
|
|
81
|
-
*/
|
|
82
|
-
export declare const WebhookConfigurationSchema: z.ZodObject<{
|
|
83
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
84
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
85
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
/**
|
|
88
|
-
* Integration installation response schema
|
|
89
|
-
*
|
|
90
|
-
* Represents an installed integration for an organization.
|
|
91
|
-
*/
|
|
92
|
-
export declare const IntegrationInstallationResponseSchema: z.ZodObject<{
|
|
93
|
-
id: z.ZodString;
|
|
94
|
-
organizationId: z.ZodString;
|
|
95
|
-
integrationId: z.ZodString;
|
|
96
|
-
credentialId: z.ZodString;
|
|
97
|
-
status: z.ZodEnum<{
|
|
98
|
-
active: "active";
|
|
99
|
-
disabled: "disabled";
|
|
100
|
-
pending_auth: "pending_auth";
|
|
101
|
-
auth_failed: "auth_failed";
|
|
102
|
-
}>;
|
|
103
|
-
enabledAt: z.ZodNullable<z.ZodString>;
|
|
104
|
-
disabledAt: z.ZodNullable<z.ZodString>;
|
|
105
|
-
lastAuthenticatedAt: z.ZodNullable<z.ZodString>;
|
|
106
|
-
authenticationProvider: z.ZodNullable<z.ZodString>;
|
|
107
|
-
webhookConfiguration: z.ZodObject<{
|
|
108
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
109
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
|
-
createdAt: z.ZodString;
|
|
114
|
-
updatedAt: z.ZodString;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
export type IntegrationStatus = z.infer<typeof IntegrationStatusSchema>;
|
|
117
|
-
export type SubscriptionTier = z.infer<typeof SubscriptionTierSchema>;
|
|
118
|
-
export type IntegrationResponse = z.infer<typeof IntegrationResponseSchema>;
|
|
119
|
-
export type InstallationStatus = z.infer<typeof InstallationStatusSchema>;
|
|
120
|
-
export type WebhookConfiguration = z.infer<typeof WebhookConfigurationSchema>;
|
|
121
|
-
export type IntegrationInstallationResponse = z.infer<typeof IntegrationInstallationResponseSchema>;
|
|
122
|
-
//# sourceMappingURL=domain.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domain.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/domain.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;EAEnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;EAAwC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;iBAepC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB;;;;;EAEpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;iBAchD,CAAC;AAGH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations Domain - Domain Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for integrations domain models and enums.
|
|
5
|
-
*/
|
|
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,
|
|
45
|
-
});
|
|
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({}),
|
|
64
|
-
});
|
|
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,
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=domain.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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AAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvD,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;CAC/B,CAAC,CAAC"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations Domain - Request Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for integrations API request validation.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Marketplace list query schema
|
|
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
|
-
available: "available";
|
|
17
|
-
beta: "beta";
|
|
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
|
-
name: "name";
|
|
30
|
-
status: "status";
|
|
31
|
-
createdAt: "createdAt";
|
|
32
|
-
}>>;
|
|
33
|
-
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
34
|
-
asc: "asc";
|
|
35
|
-
desc: "desc";
|
|
36
|
-
}>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
/**
|
|
39
|
-
* Integration ID parameter schema
|
|
40
|
-
*
|
|
41
|
-
* Path parameter for integration ID.
|
|
42
|
-
*/
|
|
43
|
-
export declare const IntegrationIdParamSchema: z.ZodObject<{
|
|
44
|
-
integrationId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
/**
|
|
47
|
-
* Marketplace search query schema
|
|
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>>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
/**
|
|
57
|
-
* OAuth callback query schema
|
|
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>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
/**
|
|
68
|
-
* Create installation request schema
|
|
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>;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
/**
|
|
117
|
-
* Installation ID parameter schema
|
|
118
|
-
*
|
|
119
|
-
* Path parameter for installation ID.
|
|
120
|
-
*/
|
|
121
|
-
export declare const InstallationIdParamSchema: z.ZodObject<{
|
|
122
|
-
installationId: z.ZodString;
|
|
123
|
-
}, z.core.$strip>;
|
|
124
|
-
/**
|
|
125
|
-
* Organization ID parameter schema
|
|
126
|
-
*
|
|
127
|
-
* Path parameter for organization ID.
|
|
128
|
-
*/
|
|
129
|
-
export declare const OrganizationIdParamSchema: z.ZodObject<{
|
|
130
|
-
orgId: z.ZodString;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export type MarketplaceListQuery = z.infer<typeof MarketplaceListQuerySchema>;
|
|
133
|
-
export type IntegrationIdParam = z.infer<typeof IntegrationIdParamSchema>;
|
|
134
|
-
export type MarketplaceSearchQuery = z.infer<typeof MarketplaceSearchQuerySchema>;
|
|
135
|
-
export type OAuthCallbackQuery = z.infer<typeof OAuthCallbackQuerySchema>;
|
|
136
|
-
export type CreateInstallationInput = z.infer<typeof CreateInstallationSchema>;
|
|
137
|
-
export type UpdateInstallationInput = z.infer<typeof UpdateInstallationSchema>;
|
|
138
|
-
export type InstallationListQuery = z.infer<typeof InstallationListQuerySchema>;
|
|
139
|
-
export type InstallationIdParam = z.infer<typeof InstallationIdParamSchema>;
|
|
140
|
-
export type OrganizationIdParam = z.infer<typeof OrganizationIdParamSchema>;
|
|
141
|
-
//# sourceMappingURL=request.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AASxB;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BrC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;iBAavC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;iB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import { z } from 'zod';
|
|
7
|
-
import { IdentifierSchema } from '../common.js';
|
|
8
|
-
import { IntegrationStatusSchema, SubscriptionTierSchema, InstallationStatusSchema, WebhookConfigurationSchema, } from './domain.schema.js';
|
|
9
|
-
/**
|
|
10
|
-
* Marketplace list query schema
|
|
11
|
-
*
|
|
12
|
-
* Supports pagination, filtering, and search.
|
|
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'),
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* Integration ID parameter schema
|
|
39
|
-
*
|
|
40
|
-
* Path parameter for integration ID.
|
|
41
|
-
*/
|
|
42
|
-
export const IntegrationIdParamSchema = z.object({
|
|
43
|
-
integrationId: z.string().uuid('Invalid integration ID format'),
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* Marketplace search query schema
|
|
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),
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* OAuth callback query schema
|
|
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(),
|
|
74
|
-
});
|
|
75
|
-
/**
|
|
76
|
-
* Create installation request schema
|
|
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(),
|
|
119
|
-
});
|
|
120
|
-
/**
|
|
121
|
-
* Installation ID parameter schema
|
|
122
|
-
*
|
|
123
|
-
* Path parameter for installation ID.
|
|
124
|
-
*/
|
|
125
|
-
export const InstallationIdParamSchema = z.object({
|
|
126
|
-
installationId: z.string().uuid('Invalid installation ID format'),
|
|
127
|
-
});
|
|
128
|
-
/**
|
|
129
|
-
* Organization ID parameter schema
|
|
130
|
-
*
|
|
131
|
-
* Path parameter for organization ID.
|
|
132
|
-
*/
|
|
133
|
-
export const OrganizationIdParamSchema = z.object({
|
|
134
|
-
orgId: IdentifierSchema,
|
|
135
|
-
});
|
|
136
|
-
//# sourceMappingURL=request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,MAAM,CAA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AAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,gBAAgB;CACxB,CAAC,CAAC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations Domain - Response Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for integrations API response formatting.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Pagination metadata schema
|
|
9
|
-
*
|
|
10
|
-
* Integrations-specific pagination metadata.
|
|
11
|
-
* Note: This differs from the common PaginationMetaSchema by including
|
|
12
|
-
* page, limit, and total fields in addition to totalPages and hasMore.
|
|
13
|
-
*/
|
|
14
|
-
export declare const PaginationMetaSchema: z.ZodObject<{
|
|
15
|
-
page: z.ZodNumber;
|
|
16
|
-
limit: z.ZodNumber;
|
|
17
|
-
total: z.ZodNumber;
|
|
18
|
-
totalPages: z.ZodNumber;
|
|
19
|
-
hasMore: z.ZodBoolean;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
/**
|
|
22
|
-
* Marketplace list response schema
|
|
23
|
-
*
|
|
24
|
-
* Paginated collection of integrations.
|
|
25
|
-
*/
|
|
26
|
-
export declare const MarketplaceListResponseSchema: z.ZodObject<{
|
|
27
|
-
data: z.ZodArray<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
description: z.ZodNullable<z.ZodString>;
|
|
31
|
-
iconUrl: z.ZodNullable<z.ZodString>;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
provider: z.ZodString;
|
|
34
|
-
status: z.ZodEnum<{
|
|
35
|
-
available: "available";
|
|
36
|
-
beta: "beta";
|
|
37
|
-
deprecated: "deprecated";
|
|
38
|
-
unavailable: "unavailable";
|
|
39
|
-
}>;
|
|
40
|
-
requiredSubscriptionTier: z.ZodNullable<z.ZodEnum<{
|
|
41
|
-
free: "free";
|
|
42
|
-
pro: "pro";
|
|
43
|
-
enterprise: "enterprise";
|
|
44
|
-
}>>;
|
|
45
|
-
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
|
-
configurationOptions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
47
|
-
webhookFormats: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
48
|
-
inboundWebhookProviders: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
49
|
-
createdAt: z.ZodString;
|
|
50
|
-
updatedAt: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
page: z.ZodObject<{
|
|
53
|
-
size: z.ZodNumber;
|
|
54
|
-
totalPages: z.ZodNumber;
|
|
55
|
-
hasMore: z.ZodBoolean;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
/**
|
|
59
|
-
* Installation initiation response schema
|
|
60
|
-
*
|
|
61
|
-
* Returned by POST /:integrationId/install
|
|
62
|
-
*/
|
|
63
|
-
export declare const InstallationInitiateResponseSchema: z.ZodObject<{
|
|
64
|
-
authorizationUrl: z.ZodString;
|
|
65
|
-
provider: z.ZodString;
|
|
66
|
-
state: z.ZodString;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
/**
|
|
69
|
-
* Installation list response schema
|
|
70
|
-
*
|
|
71
|
-
* Paginated response for listing integration installations.
|
|
72
|
-
*/
|
|
73
|
-
export declare const InstallationListResponseSchema: z.ZodObject<{
|
|
74
|
-
data: z.ZodArray<z.ZodObject<{
|
|
75
|
-
id: z.ZodString;
|
|
76
|
-
organizationId: z.ZodString;
|
|
77
|
-
integrationId: z.ZodString;
|
|
78
|
-
credentialId: z.ZodString;
|
|
79
|
-
status: z.ZodEnum<{
|
|
80
|
-
active: "active";
|
|
81
|
-
disabled: "disabled";
|
|
82
|
-
pending_auth: "pending_auth";
|
|
83
|
-
auth_failed: "auth_failed";
|
|
84
|
-
}>;
|
|
85
|
-
enabledAt: z.ZodNullable<z.ZodString>;
|
|
86
|
-
disabledAt: z.ZodNullable<z.ZodString>;
|
|
87
|
-
lastAuthenticatedAt: z.ZodNullable<z.ZodString>;
|
|
88
|
-
authenticationProvider: z.ZodNullable<z.ZodString>;
|
|
89
|
-
webhookConfiguration: z.ZodObject<{
|
|
90
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
91
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
92
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
-
createdAt: z.ZodString;
|
|
96
|
-
updatedAt: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
page: z.ZodObject<{
|
|
99
|
-
size: z.ZodNumber;
|
|
100
|
-
totalPages: z.ZodNumber;
|
|
101
|
-
hasMore: z.ZodBoolean;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
/**
|
|
105
|
-
* OAuth callback response schema
|
|
106
|
-
*
|
|
107
|
-
* Returned by GET /:integrationId/install/callback
|
|
108
|
-
*/
|
|
109
|
-
export declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
110
|
-
success: z.ZodBoolean;
|
|
111
|
-
message: z.ZodString;
|
|
112
|
-
installation: z.ZodObject<{
|
|
113
|
-
id: z.ZodString;
|
|
114
|
-
organizationId: z.ZodString;
|
|
115
|
-
integrationId: z.ZodString;
|
|
116
|
-
credentialId: z.ZodString;
|
|
117
|
-
status: z.ZodEnum<{
|
|
118
|
-
active: "active";
|
|
119
|
-
disabled: "disabled";
|
|
120
|
-
pending_auth: "pending_auth";
|
|
121
|
-
auth_failed: "auth_failed";
|
|
122
|
-
}>;
|
|
123
|
-
enabledAt: z.ZodNullable<z.ZodString>;
|
|
124
|
-
disabledAt: z.ZodNullable<z.ZodString>;
|
|
125
|
-
lastAuthenticatedAt: z.ZodNullable<z.ZodString>;
|
|
126
|
-
authenticationProvider: z.ZodNullable<z.ZodString>;
|
|
127
|
-
webhookConfiguration: z.ZodObject<{
|
|
128
|
-
outboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
129
|
-
inboundWebhooks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
|
-
eventFilters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
|
-
createdAt: z.ZodString;
|
|
134
|
-
updatedAt: z.ZodString;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
export type PaginationMeta = z.infer<typeof PaginationMetaSchema>;
|
|
138
|
-
export type MarketplaceListResponse = z.infer<typeof MarketplaceListResponseSchema>;
|
|
139
|
-
export type InstallationInitiateResponse = z.infer<typeof InstallationInitiateResponseSchema>;
|
|
140
|
-
export type InstallationListResponse = z.infer<typeof InstallationListResponseSchema>;
|
|
141
|
-
export type OAuthCallbackResponse = z.infer<typeof OAuthCallbackResponseSchema>;
|
|
142
|
-
//# sourceMappingURL=response.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.schema.d.ts","sourceRoot":"","sources":["../../../src/definitions/integrations/response.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2D,CAAC;AAEtG;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuE,CAAC;AAEnH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAItC,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|