@uptiqai/integrations-sdk 1.19.0 → 1.20.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.
@@ -1626,6 +1626,58 @@ export type AnthropicCreateStreamBody = {
1626
1626
  export type AnthropicCreateStream500 = {
1627
1627
  error?: string;
1628
1628
  };
1629
+ export type AwsKmsSetUserCredentialsBody = {
1630
+ /** Existing integration user id. Omit to create a new integration user credential record. */
1631
+ userId?: string;
1632
+ /**
1633
+ * AWS access key ID for this generated app user.
1634
+ * @minLength 1
1635
+ */
1636
+ accessKeyId: string;
1637
+ /**
1638
+ * AWS secret access key for this generated app user.
1639
+ * @minLength 1
1640
+ */
1641
+ secretAccessKey: string;
1642
+ /**
1643
+ * Optional per-user AWS region. Falls back to the integration config region.
1644
+ * @minLength 1
1645
+ */
1646
+ region?: string;
1647
+ };
1648
+ export type AwsKmsSetUserCredentials200 = {
1649
+ userId: string;
1650
+ };
1651
+ export type AwsKmsEncryptBody = {
1652
+ /** Required when the AWS KMS integration config type is PerUser. */
1653
+ userId?: string;
1654
+ /**
1655
+ * UTF-8 plaintext to encrypt.
1656
+ * @minLength 1
1657
+ */
1658
+ plaintext: string;
1659
+ };
1660
+ export type AwsKmsEncrypt200 = {
1661
+ /** Base64-encoded ciphertext. */
1662
+ ciphertext?: string;
1663
+ keyId?: string;
1664
+ [key: string]: unknown | null;
1665
+ };
1666
+ export type AwsKmsDecryptBody = {
1667
+ /** Required when the AWS KMS integration config type is PerUser. */
1668
+ userId?: string;
1669
+ /**
1670
+ * Base64-encoded ciphertext to decrypt.
1671
+ * @minLength 1
1672
+ */
1673
+ ciphertext: string;
1674
+ };
1675
+ export type AwsKmsDecrypt200 = {
1676
+ /** Decrypted UTF-8 plaintext. */
1677
+ plaintext?: string;
1678
+ keyId?: string;
1679
+ [key: string]: unknown | null;
1680
+ };
1629
1681
  export type AwsS3SetUserCredentialsBody = {
1630
1682
  /** Existing integration user id. Omit to create a new integration user credential record. */
1631
1683
  userId?: string;
@@ -1911,6 +1963,63 @@ export type AzureBlobStorageCreateWriteStream200 = {
1911
1963
  success: boolean;
1912
1964
  key: string;
1913
1965
  };
1966
+ export type AzureKmsSetUserCredentialsBody = {
1967
+ /** Existing integration user id. Omit to create a new integration user credential record. */
1968
+ userId?: string;
1969
+ /**
1970
+ * Microsoft Entra ID tenant id for this generated app user.
1971
+ * @minLength 1
1972
+ */
1973
+ tenantId: string;
1974
+ /**
1975
+ * Service Principal client id for this generated app user.
1976
+ * @minLength 1
1977
+ */
1978
+ clientId: string;
1979
+ /**
1980
+ * Service Principal client secret for this generated app user.
1981
+ * @minLength 1
1982
+ */
1983
+ clientSecret: string;
1984
+ /**
1985
+ * Optional per-user Key Vault URL. Falls back to the integration config vaultUrl.
1986
+ * @minLength 1
1987
+ */
1988
+ vaultUrl?: string;
1989
+ };
1990
+ export type AzureKmsSetUserCredentials200 = {
1991
+ userId: string;
1992
+ };
1993
+ export type AzureKmsEncryptBody = {
1994
+ /** Required when the Azure Key Vault KMS integration config type is PerUser. */
1995
+ userId?: string;
1996
+ /**
1997
+ * UTF-8 plaintext to encrypt.
1998
+ * @minLength 1
1999
+ */
2000
+ plaintext: string;
2001
+ };
2002
+ export type AzureKmsEncrypt200 = {
2003
+ /** Base64-encoded ciphertext. */
2004
+ ciphertext?: string;
2005
+ keyId?: string;
2006
+ [key: string]: unknown | null;
2007
+ };
2008
+ export type AzureKmsDecryptBody = {
2009
+ /** Required when the Azure Key Vault KMS integration config type is PerUser. */
2010
+ userId?: string;
2011
+ /**
2012
+ * Base64-encoded ciphertext to decrypt.
2013
+ * @minLength 1
2014
+ */
2015
+ ciphertext: string;
2016
+ };
2017
+ export type AzureKmsDecrypt200 = {
2018
+ /** Decrypted UTF-8 plaintext. */
2019
+ plaintext?: string;
2020
+ keyId?: string;
2021
+ [key: string]: unknown | null;
2022
+ };
1914
2023
  export type PostCommonServiceIdDisconnectBody = {
1915
2024
  /** Integration user id. Injected by MCP from the external user mapping when the caller does not supply it. */
1916
2025
  userId?: string;
@@ -7587,6 +7696,48 @@ export type GoogleGenerativeAIImageGenerateImageBody = {
7587
7696
  /** Negative prompt to exclude from generation */
7588
7697
  negativePrompt?: string;
7589
7698
  };
7699
+ export type GoogleKmsSetUserCredentialsBody = {
7700
+ /** Existing integration user id. Omit to create a new integration user credential record. */
7701
+ userId?: string;
7702
+ /**
7703
+ * Google service account credentials JSON for this generated app user.
7704
+ * @minLength 1
7705
+ */
7706
+ credentialsJson: string;
7707
+ };
7708
+ export type GoogleKmsSetUserCredentials200 = {
7709
+ userId: string;
7710
+ };
7711
+ export type GoogleKmsEncryptBody = {
7712
+ /** Required when the Google Cloud KMS integration config type is PerUser. */
7713
+ userId?: string;
7714
+ /**
7715
+ * UTF-8 plaintext to encrypt.
7716
+ * @minLength 1
7717
+ */
7718
+ plaintext: string;
7719
+ };
7720
+ export type GoogleKmsEncrypt200 = {
7721
+ /** Base64-encoded ciphertext. */
7722
+ ciphertext?: string;
7723
+ keyName?: string;
7724
+ [key: string]: unknown | null;
7725
+ };
7726
+ export type GoogleKmsDecryptBody = {
7727
+ /** Required when the Google Cloud KMS integration config type is PerUser. */
7728
+ userId?: string;
7729
+ /**
7730
+ * Base64-encoded ciphertext to decrypt.
7731
+ * @minLength 1
7732
+ */
7733
+ ciphertext: string;
7734
+ };
7735
+ export type GoogleKmsDecrypt200 = {
7736
+ /** Decrypted UTF-8 plaintext. */
7737
+ plaintext?: string;
7738
+ keyName?: string;
7739
+ [key: string]: unknown | null;
7740
+ };
7590
7741
  export type GoogleOAuthGetAuthorizationUrlBody = {
7591
7742
  /** Required for PerUser Google OAuth configs. Ignored for Shared configs. */
7592
7743
  clientId?: string;
@@ -20128,6 +20279,9 @@ export declare const getIntegrationsAPI: () => {
20128
20279
  anthropicSetUserCredentials: (anthropicSetUserCredentialsBody: AnthropicSetUserCredentialsBody) => Promise<AnthropicSetUserCredentials200>;
20129
20280
  anthropicGenerateText: (anthropicGenerateTextBody: AnthropicGenerateTextBody) => Promise<AnthropicGenerateText200>;
20130
20281
  anthropicCreateStream: (anthropicCreateStreamBody: AnthropicCreateStreamBody) => Promise<string>;
20282
+ awsKmsSetUserCredentials: (awsKmsSetUserCredentialsBody: AwsKmsSetUserCredentialsBody) => Promise<AwsKmsSetUserCredentials200>;
20283
+ awsKmsEncrypt: (awsKmsEncryptBody: AwsKmsEncryptBody) => Promise<AwsKmsEncrypt200>;
20284
+ awsKmsDecrypt: (awsKmsDecryptBody: AwsKmsDecryptBody) => Promise<AwsKmsDecrypt200>;
20131
20285
  awsS3SetUserCredentials: (awsS3SetUserCredentialsBody: AwsS3SetUserCredentialsBody) => Promise<AwsS3SetUserCredentials200>;
20132
20286
  awsS3UploadData: (awsS3UploadDataBody: AwsS3UploadDataBody) => Promise<AwsS3UploadData200>;
20133
20287
  awsS3DeleteFile: (awsS3DeleteFileBody: AwsS3DeleteFileBody) => Promise<AwsS3DeleteFile200>;
@@ -20151,6 +20305,9 @@ export declare const getIntegrationsAPI: () => {
20151
20305
  azureBlobStorageUploadFile: (azureBlobStorageUploadFileBody: AzureBlobStorageUploadFileBody) => Promise<AzureBlobStorageUploadFile200>;
20152
20306
  azureBlobStorageCreateReadStream: (azureBlobStorageCreateReadStreamBody: AzureBlobStorageCreateReadStreamBody) => Promise<void>;
20153
20307
  azureBlobStorageCreateWriteStream: (azureBlobStorageCreateWriteStreamBody: Blob, params: AzureBlobStorageCreateWriteStreamParams) => Promise<AzureBlobStorageCreateWriteStream200>;
20308
+ azureKmsSetUserCredentials: (azureKmsSetUserCredentialsBody: AzureKmsSetUserCredentialsBody) => Promise<AzureKmsSetUserCredentials200>;
20309
+ azureKmsEncrypt: (azureKmsEncryptBody: AzureKmsEncryptBody) => Promise<AzureKmsEncrypt200>;
20310
+ azureKmsDecrypt: (azureKmsDecryptBody: AzureKmsDecryptBody) => Promise<AzureKmsDecrypt200>;
20154
20311
  postCommonServiceIdDisconnect: (serviceId: string, postCommonServiceIdDisconnectBody: PostCommonServiceIdDisconnectBody) => Promise<PostCommonServiceIdDisconnect200>;
20155
20312
  creditsafeComplianceBankMatchGetIbanCompanySearchCriteria: (creditsafeComplianceBankMatchGetIbanCompanySearchCriteriaBody: CreditsafeComplianceBankMatchGetIbanCompanySearchCriteriaBody) => Promise<CreditsafeComplianceBankMatchGetIbanCompanySearchCriteria200>;
20156
20313
  creditsafeComplianceBankMatchGetBbanCompanySearchCriteria: (creditsafeComplianceBankMatchGetBbanCompanySearchCriteriaBody: CreditsafeComplianceBankMatchGetBbanCompanySearchCriteriaBody) => Promise<CreditsafeComplianceBankMatchGetBbanCompanySearchCriteria200>;
@@ -20470,6 +20627,9 @@ export declare const getIntegrationsAPI: () => {
20470
20627
  googleGenerativeAIGenerateImage: (googleGenerativeAIGenerateImageBody: GoogleGenerativeAIGenerateImageBody) => Promise<Blob>;
20471
20628
  googleGenerativeAICreateStream: (googleGenerativeAICreateStreamBody: GoogleGenerativeAICreateStreamBody) => Promise<string>;
20472
20629
  googleGenerativeAIImageGenerateImage: (googleGenerativeAIImageGenerateImageBody: GoogleGenerativeAIImageGenerateImageBody) => Promise<Blob>;
20630
+ googleKmsSetUserCredentials: (googleKmsSetUserCredentialsBody: GoogleKmsSetUserCredentialsBody) => Promise<GoogleKmsSetUserCredentials200>;
20631
+ googleKmsEncrypt: (googleKmsEncryptBody: GoogleKmsEncryptBody) => Promise<GoogleKmsEncrypt200>;
20632
+ googleKmsDecrypt: (googleKmsDecryptBody: GoogleKmsDecryptBody) => Promise<GoogleKmsDecrypt200>;
20473
20633
  googleOAuthGetAuthorizationUrl: (googleOAuthGetAuthorizationUrlBody: GoogleOAuthGetAuthorizationUrlBody) => Promise<GoogleOAuthGetAuthorizationUrl200>;
20474
20634
  googleOAuthGetUserProfile: (googleOAuthGetUserProfileBody: GoogleOAuthGetUserProfileBody) => Promise<GoogleOAuthGetUserProfile200>;
20475
20635
  googleOAuthOauthCallback: () => Promise<unknown>;
@@ -21083,6 +21243,9 @@ export type AlphaVantageSetUserCredentialsResult = NonNullable<Awaited<ReturnTyp
21083
21243
  export type AnthropicSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicSetUserCredentials']>>>;
21084
21244
  export type AnthropicGenerateTextResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicGenerateText']>>>;
21085
21245
  export type AnthropicCreateStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicCreateStream']>>>;
21246
+ export type AwsKmsSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsKmsSetUserCredentials']>>>;
21247
+ export type AwsKmsEncryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsKmsEncrypt']>>>;
21248
+ export type AwsKmsDecryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsKmsDecrypt']>>>;
21086
21249
  export type AwsS3SetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3SetUserCredentials']>>>;
21087
21250
  export type AwsS3UploadDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3UploadData']>>>;
21088
21251
  export type AwsS3DeleteFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3DeleteFile']>>>;
@@ -21106,6 +21269,9 @@ export type AzureBlobStorageGetFileMetadataResult = NonNullable<Awaited<ReturnTy
21106
21269
  export type AzureBlobStorageUploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageUploadFile']>>>;
21107
21270
  export type AzureBlobStorageCreateReadStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageCreateReadStream']>>>;
21108
21271
  export type AzureBlobStorageCreateWriteStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageCreateWriteStream']>>>;
21272
+ export type AzureKmsSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureKmsSetUserCredentials']>>>;
21273
+ export type AzureKmsEncryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureKmsEncrypt']>>>;
21274
+ export type AzureKmsDecryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureKmsDecrypt']>>>;
21109
21275
  export type PostCommonServiceIdDisconnectResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['postCommonServiceIdDisconnect']>>>;
21110
21276
  export type CreditsafeComplianceBankMatchGetIbanCompanySearchCriteriaResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['creditsafeComplianceBankMatchGetIbanCompanySearchCriteria']>>>;
21111
21277
  export type CreditsafeComplianceBankMatchGetBbanCompanySearchCriteriaResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['creditsafeComplianceBankMatchGetBbanCompanySearchCriteria']>>>;
@@ -21425,6 +21591,9 @@ export type GoogleGenerativeAIGenerateTextResult = NonNullable<Awaited<ReturnTyp
21425
21591
  export type GoogleGenerativeAIGenerateImageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAIGenerateImage']>>>;
21426
21592
  export type GoogleGenerativeAICreateStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAICreateStream']>>>;
21427
21593
  export type GoogleGenerativeAIImageGenerateImageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAIImageGenerateImage']>>>;
21594
+ export type GoogleKmsSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleKmsSetUserCredentials']>>>;
21595
+ export type GoogleKmsEncryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleKmsEncrypt']>>>;
21596
+ export type GoogleKmsDecryptResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleKmsDecrypt']>>>;
21428
21597
  export type GoogleOAuthGetAuthorizationUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleOAuthGetAuthorizationUrl']>>>;
21429
21598
  export type GoogleOAuthGetUserProfileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleOAuthGetUserProfile']>>>;
21430
21599
  export type GoogleOAuthOauthCallbackResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleOAuthOauthCallback']>>>;