@supernova-studio/model 0.46.12 → 0.46.13
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/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/integrations/integration.ts +3 -3
- package/src/integrations/oauth-token.ts +3 -2
package/package.json
CHANGED
|
@@ -68,8 +68,8 @@ export type ExtendedIntegration = Omit<Integration, "type"> & {
|
|
|
68
68
|
|
|
69
69
|
// Custom URL validation
|
|
70
70
|
const forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
71
|
-
|
|
72
|
-
export const
|
|
71
|
+
|
|
72
|
+
export const IntegrationToken = z
|
|
73
73
|
.object({
|
|
74
74
|
access_token: z.string(),
|
|
75
75
|
refresh_token: z.string().optional(),
|
|
@@ -106,4 +106,4 @@ export const IntegrationTokenResponse = z
|
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
export type
|
|
109
|
+
export type IntegrationToken = z.infer<typeof IntegrationToken>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { OAuthProviderSchema } from "./oauth-providers";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const IntegrationTokenSchemaOld = z.object({
|
|
5
5
|
id: z.string(),
|
|
6
6
|
provider: OAuthProviderSchema,
|
|
7
7
|
scope: z.string(),
|
|
@@ -12,4 +12,5 @@ export const IntegrationTokenSchema = z.object({
|
|
|
12
12
|
externalUserId: z.string().nullish(),
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// Renamed because will be deleted later after full migration / end of project
|
|
16
|
+
export type IntegrationTokenOld = z.infer<typeof IntegrationTokenSchemaOld>;
|