Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

1.1 KB
Raw Blame
// Code generated by automation script, DO NOT EDIT.
// Automated by pulling database and generating zod schema
// To update. Just run npm run generate:schema
// Written by akhilmhdh.

import { z } from "zod";

import { zodBuffer } from "@app/lib/zod";

import { TImmutableDBKeys } from "./models";

export const MicrosoftTeamsIntegrationsSchema = z.object({
  id: z.string().uuid(),
  internalTeamsAppId: z.string().nullable().optional(),
  tenantId: z.string(),
  encryptedAccessToken: zodBuffer.nullable().optional(),
  encryptedBotAccessToken: zodBuffer.nullable().optional(),
  accessTokenExpiresAt: z.date().nullable().optional(),
  botAccessTokenExpiresAt: z.date().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TMicrosoftTeamsIntegrations = z.infer<typeof MicrosoftTeamsIntegrationsSchema>;
export type TMicrosoftTeamsIntegrationsInsert = Omit<
  z.input<typeof MicrosoftTeamsIntegrationsSchema>,
  TImmutableDBKeys
>;
export type TMicrosoftTeamsIntegrationsUpdate = Partial<
  Omit<z.input<typeof MicrosoftTeamsIntegrationsSchema>, TImmutableDBKeys>
>;