@redonvn/redai-backend-api-sdk 0.5.16 → 0.5.17

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 (145) hide show
  1. package/dist/cjs/generated/dynamic-table/types.js +155 -12
  2. package/dist/cjs/generated/dynamic-table/types.js.map +1 -1
  3. package/dist/cjs/generated/index.js +91 -92
  4. package/dist/cjs/generated/index.js.map +1 -1
  5. package/dist/cjs/generated/integration/services/facebook-ads-campaign.service.js +18 -0
  6. package/dist/cjs/generated/integration/services/facebook-ads-campaign.service.js.map +1 -1
  7. package/dist/cjs/generated/integration/services/google-cloud-project.service.js +45 -0
  8. package/dist/cjs/generated/integration/services/google-cloud-project.service.js.map +1 -1
  9. package/dist/cjs/generated/integration/services/index.js +3 -1
  10. package/dist/cjs/generated/integration/services/index.js.map +1 -1
  11. package/dist/cjs/generated/integration/services/openai-oauth-integration.service.js +28 -0
  12. package/dist/cjs/generated/integration/services/openai-oauth-integration.service.js.map +1 -0
  13. package/dist/cjs/generated/integration/types.js +7 -70
  14. package/dist/cjs/generated/integration/types.js.map +1 -1
  15. package/dist/cjs/generated/services/index.js +0 -2
  16. package/dist/cjs/generated/services/index.js.map +1 -1
  17. package/dist/cjs/generated/shared-types.js +15 -155
  18. package/dist/cjs/generated/shared-types.js.map +1 -1
  19. package/dist/cjs/generated/types.js +1 -3
  20. package/dist/cjs/generated/types.js.map +1 -1
  21. package/dist/cjs/index.js +13 -18
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/esm/generated/dynamic-table/types.d.ts +590 -4
  24. package/dist/esm/generated/dynamic-table/types.d.ts.map +1 -1
  25. package/dist/esm/generated/dynamic-table/types.js +154 -1
  26. package/dist/esm/generated/dynamic-table/types.js.map +1 -1
  27. package/dist/esm/generated/index.d.ts +2 -8
  28. package/dist/esm/generated/index.d.ts.map +1 -1
  29. package/dist/esm/generated/index.js +1 -5
  30. package/dist/esm/generated/index.js.map +1 -1
  31. package/dist/esm/generated/integration/services/facebook-ads-campaign.service.d.ts +4 -2
  32. package/dist/esm/generated/integration/services/facebook-ads-campaign.service.d.ts.map +1 -1
  33. package/dist/esm/generated/integration/services/facebook-ads-campaign.service.js +18 -0
  34. package/dist/esm/generated/integration/services/facebook-ads-campaign.service.js.map +1 -1
  35. package/dist/esm/generated/integration/services/google-cloud-project.service.d.ts +6 -1
  36. package/dist/esm/generated/integration/services/google-cloud-project.service.d.ts.map +1 -1
  37. package/dist/esm/generated/integration/services/google-cloud-project.service.js +45 -0
  38. package/dist/esm/generated/integration/services/google-cloud-project.service.js.map +1 -1
  39. package/dist/esm/generated/integration/services/index.d.ts +1 -0
  40. package/dist/esm/generated/integration/services/index.d.ts.map +1 -1
  41. package/dist/esm/generated/integration/services/index.js +1 -0
  42. package/dist/esm/generated/integration/services/index.js.map +1 -1
  43. package/dist/esm/generated/integration/services/openai-oauth-integration.service.d.ts +9 -0
  44. package/dist/esm/generated/integration/services/openai-oauth-integration.service.d.ts.map +1 -0
  45. package/dist/esm/generated/integration/services/openai-oauth-integration.service.js +24 -0
  46. package/dist/esm/generated/integration/services/openai-oauth-integration.service.js.map +1 -0
  47. package/dist/esm/generated/integration/types.d.ts +164 -165
  48. package/dist/esm/generated/integration/types.d.ts.map +1 -1
  49. package/dist/esm/generated/integration/types.js +5 -69
  50. package/dist/esm/generated/integration/types.js.map +1 -1
  51. package/dist/esm/generated/services/index.d.ts +0 -2
  52. package/dist/esm/generated/services/index.d.ts.map +1 -1
  53. package/dist/esm/generated/services/index.js +0 -2
  54. package/dist/esm/generated/services/index.js.map +1 -1
  55. package/dist/esm/generated/shared-types.d.ts +28 -496
  56. package/dist/esm/generated/shared-types.d.ts.map +1 -1
  57. package/dist/esm/generated/shared-types.js +14 -154
  58. package/dist/esm/generated/shared-types.js.map +1 -1
  59. package/dist/esm/generated/types.d.ts +0 -2
  60. package/dist/esm/generated/types.d.ts.map +1 -1
  61. package/dist/esm/generated/types.js +0 -2
  62. package/dist/esm/generated/types.js.map +1 -1
  63. package/dist/esm/index.d.ts +5 -19
  64. package/dist/esm/index.d.ts.map +1 -1
  65. package/dist/esm/index.js +3 -11
  66. package/dist/esm/index.js.map +1 -1
  67. package/package.json +3 -1
  68. package/dist/cjs/generated/ask-ai/index.js +0 -36
  69. package/dist/cjs/generated/ask-ai/index.js.map +0 -1
  70. package/dist/cjs/generated/ask-ai/services/admin-ask-ai.service.js +0 -28
  71. package/dist/cjs/generated/ask-ai/services/admin-ask-ai.service.js.map +0 -1
  72. package/dist/cjs/generated/ask-ai/services/ask-ai-dynamic-table.service.js +0 -19
  73. package/dist/cjs/generated/ask-ai/services/ask-ai-dynamic-table.service.js.map +0 -1
  74. package/dist/cjs/generated/ask-ai/services/ask-ai-flow-schema.service.js +0 -28
  75. package/dist/cjs/generated/ask-ai/services/ask-ai-flow-schema.service.js.map +0 -1
  76. package/dist/cjs/generated/ask-ai/services/ask-ai.service.js +0 -46
  77. package/dist/cjs/generated/ask-ai/services/ask-ai.service.js.map +0 -1
  78. package/dist/cjs/generated/ask-ai/services/common.service.js +0 -19
  79. package/dist/cjs/generated/ask-ai/services/common.service.js.map +0 -1
  80. package/dist/cjs/generated/ask-ai/services/index.js +0 -15
  81. package/dist/cjs/generated/ask-ai/services/index.js.map +0 -1
  82. package/dist/cjs/generated/ask-ai/types.js +0 -51
  83. package/dist/cjs/generated/ask-ai/types.js.map +0 -1
  84. package/dist/cjs/generated/workspace/index.js +0 -25
  85. package/dist/cjs/generated/workspace/index.js.map +0 -1
  86. package/dist/cjs/generated/workspace/services/index.js +0 -9
  87. package/dist/cjs/generated/workspace/services/index.js.map +0 -1
  88. package/dist/cjs/generated/workspace/services/workspace-scope-role.service.js +0 -28
  89. package/dist/cjs/generated/workspace/services/workspace-scope-role.service.js.map +0 -1
  90. package/dist/cjs/generated/workspace/services/workspace-scope-user.service.js +0 -64
  91. package/dist/cjs/generated/workspace/services/workspace-scope-user.service.js.map +0 -1
  92. package/dist/cjs/generated/workspace/types.js +0 -67
  93. package/dist/cjs/generated/workspace/types.js.map +0 -1
  94. package/dist/esm/generated/ask-ai/index.d.ts +0 -4
  95. package/dist/esm/generated/ask-ai/index.d.ts.map +0 -1
  96. package/dist/esm/generated/ask-ai/index.js +0 -5
  97. package/dist/esm/generated/ask-ai/index.js.map +0 -1
  98. package/dist/esm/generated/ask-ai/services/admin-ask-ai.service.d.ts +0 -16
  99. package/dist/esm/generated/ask-ai/services/admin-ask-ai.service.d.ts.map +0 -1
  100. package/dist/esm/generated/ask-ai/services/admin-ask-ai.service.js +0 -24
  101. package/dist/esm/generated/ask-ai/services/admin-ask-ai.service.js.map +0 -1
  102. package/dist/esm/generated/ask-ai/services/ask-ai-dynamic-table.service.d.ts +0 -8
  103. package/dist/esm/generated/ask-ai/services/ask-ai-dynamic-table.service.d.ts.map +0 -1
  104. package/dist/esm/generated/ask-ai/services/ask-ai-dynamic-table.service.js +0 -15
  105. package/dist/esm/generated/ask-ai/services/ask-ai-dynamic-table.service.js.map +0 -1
  106. package/dist/esm/generated/ask-ai/services/ask-ai-flow-schema.service.d.ts +0 -9
  107. package/dist/esm/generated/ask-ai/services/ask-ai-flow-schema.service.d.ts.map +0 -1
  108. package/dist/esm/generated/ask-ai/services/ask-ai-flow-schema.service.js +0 -24
  109. package/dist/esm/generated/ask-ai/services/ask-ai-flow-schema.service.js.map +0 -1
  110. package/dist/esm/generated/ask-ai/services/ask-ai.service.d.ts +0 -23
  111. package/dist/esm/generated/ask-ai/services/ask-ai.service.d.ts.map +0 -1
  112. package/dist/esm/generated/ask-ai/services/ask-ai.service.js +0 -42
  113. package/dist/esm/generated/ask-ai/services/ask-ai.service.js.map +0 -1
  114. package/dist/esm/generated/ask-ai/services/common.service.d.ts +0 -8
  115. package/dist/esm/generated/ask-ai/services/common.service.d.ts.map +0 -1
  116. package/dist/esm/generated/ask-ai/services/common.service.js +0 -15
  117. package/dist/esm/generated/ask-ai/services/common.service.js.map +0 -1
  118. package/dist/esm/generated/ask-ai/services/index.d.ts +0 -6
  119. package/dist/esm/generated/ask-ai/services/index.d.ts.map +0 -1
  120. package/dist/esm/generated/ask-ai/services/index.js +0 -7
  121. package/dist/esm/generated/ask-ai/services/index.js.map +0 -1
  122. package/dist/esm/generated/ask-ai/types.d.ts +0 -405
  123. package/dist/esm/generated/ask-ai/types.d.ts.map +0 -1
  124. package/dist/esm/generated/ask-ai/types.js +0 -38
  125. package/dist/esm/generated/ask-ai/types.js.map +0 -1
  126. package/dist/esm/generated/workspace/index.d.ts +0 -4
  127. package/dist/esm/generated/workspace/index.d.ts.map +0 -1
  128. package/dist/esm/generated/workspace/index.js +0 -5
  129. package/dist/esm/generated/workspace/index.js.map +0 -1
  130. package/dist/esm/generated/workspace/services/index.d.ts +0 -3
  131. package/dist/esm/generated/workspace/services/index.d.ts.map +0 -1
  132. package/dist/esm/generated/workspace/services/index.js +0 -4
  133. package/dist/esm/generated/workspace/services/index.js.map +0 -1
  134. package/dist/esm/generated/workspace/services/workspace-scope-role.service.d.ts +0 -9
  135. package/dist/esm/generated/workspace/services/workspace-scope-role.service.d.ts.map +0 -1
  136. package/dist/esm/generated/workspace/services/workspace-scope-role.service.js +0 -24
  137. package/dist/esm/generated/workspace/services/workspace-scope-role.service.js.map +0 -1
  138. package/dist/esm/generated/workspace/services/workspace-scope-user.service.d.ts +0 -13
  139. package/dist/esm/generated/workspace/services/workspace-scope-user.service.d.ts.map +0 -1
  140. package/dist/esm/generated/workspace/services/workspace-scope-user.service.js +0 -60
  141. package/dist/esm/generated/workspace/services/workspace-scope-user.service.js.map +0 -1
  142. package/dist/esm/generated/workspace/types.d.ts +0 -174
  143. package/dist/esm/generated/workspace/types.d.ts.map +0 -1
  144. package/dist/esm/generated/workspace/types.js +0 -64
  145. package/dist/esm/generated/workspace/types.js.map +0 -1
@@ -1,4 +1,6 @@
1
- export type ApiResponseDto<T = unknown> = import('../../core/types').ApiResponseDto<T>;
1
+ import { ProviderEnum } from '../shared-types';
2
+ export type { ACB_BANK, ACTIVE, AGENT_DESKTOP_SDK_EXE, AGRIBANK_BANK, AHAMOVE, ALIBABA_CODING_PLAN, ANTHROPIC, ApiResponseDto, ARCHIVED, ARRAY, ASC, AZURE_AI, BIDV_BANK, BINARY, BOOLEAN, CENTER, CLOUD_AWS_S3, CLOUD_AZURE_BLOB, CLOUD_BACKBLAZE_B2, CLOUD_CLOUDFLARE_R2, CLOUD_GOOGLE_CLOUD_STORAGE, CLOUD_MINIO, CLOUD_WASABI, CREATE, CUSTOM, DATABASE_MARIADB, DATABASE_MONGODB, DATABASE_MSSQL, DATABASE_MYSQL, DATABASE_ORACLE, DATABASE_POSTGRESQL, DATABASE_REDIS, DATABASE_SQLITE, DATE, DEEPSEEK, DELETE, DESC, DISABLED, EMAIL, EMAIL_GMAIL, EMAIL_OUTLOOK, EMAIL_SMTP, EMAIL_TWILIO_SENDGRID, FACEBOOK_ADS, FACEBOOK_BUSINESS, FACEBOOK_PAGE, FACEBOOK_PERSONAL, FAILED, FORMULA, GET, GETFLY_CRM, GHN, GHTK, GOOGLE_ADS, GOOGLE_AI_STUDIO, GOOGLE_CALENDAR, GOOGLE_CLOUD_PROJECT, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GRID, HDB_BANK, JSON, KL_BANK, MB_BANK, NONE, NUMBER, OCB_BANK, OPENAI, OPENAI_OAUTH, OPENROUTER, PATCH, PENDING, PERPLEXITY_AI, POST, PROXY, PUT, REDAI, REDAI_EXTENSION, REDAI_LLM, SCB_BANK, SHB_BANK, SMS_ESMS, SMS_ESMS_ADVERTISING, SMS_ESMS_CUSTOMER_CARE, SMS_ESMS_VIBER, SMS_FPT, SMS_SPEED, SMS_TWILIO, SMS_VONAGE, STB_BANK, T, TCB_BANK, TELEGRAM, TELEGRAM_BOT, TEXT, TPB_BANK, UPDATE, URL, USER, VCB_BANK, VIB_BANK, VPB_BANK, VTB_BANK, WEBSITE, XAI, ZALO_BOT, ZALO_OA, ZALO_PERSONAL } from '../shared-types';
3
+ export { ProviderEnum } from '../shared-types';
2
4
  export interface AccessPathInfoDto {
3
5
  type: 'personal' | 'business';
4
6
  id: string;
@@ -167,6 +169,13 @@ export interface ApiRequestConfig {
167
169
  method: HttpMethod;
168
170
  responseExtraction?: ConfigResponseExtraction;
169
171
  }
172
+ export interface ApiRequirementDto {
173
+ name: string;
174
+ apiId: string;
175
+ isEnabled: boolean;
176
+ enableUrl: string;
177
+ description: string;
178
+ }
170
179
  export interface BankAccountQueryDto {
171
180
  page: number;
172
181
  limit: number;
@@ -179,6 +188,7 @@ export interface BankAccountQueryDto {
179
188
  export interface BankAccountResponseDto {
180
189
  id: string;
181
190
  accountId: string;
191
+ xid: string;
182
192
  companyId: string;
183
193
  bankCode: string;
184
194
  bankName: string;
@@ -189,7 +199,7 @@ export interface BankAccountResponseDto {
189
199
  accumulated: string;
190
200
  label: string;
191
201
  bankApiConnected: boolean;
192
- lastTransaction: string;
202
+ lastTransaction: string | null;
193
203
  createdAt: string;
194
204
  updatedAt: string;
195
205
  isVA: boolean;
@@ -394,6 +404,10 @@ export interface BusinessUserAccessDto {
394
404
  personalIntegrationId: string;
395
405
  personalIntegrationName: string;
396
406
  }
407
+ export interface CheckRequiredApisResponseDto {
408
+ allEnabled: boolean;
409
+ apis: ApiRequirementDto[];
410
+ }
397
411
  export interface CompanyConfigResponseDto {
398
412
  id: string;
399
413
  paymentCode: 'on' | 'off';
@@ -507,6 +521,15 @@ export interface ConnectedServiceItemDto {
507
521
  connectedEmail?: string;
508
522
  connectedAt?: number;
509
523
  grantedScopes?: string[];
524
+ projectId?: string;
525
+ location?: string;
526
+ isConfigured?: boolean;
527
+ modelCount?: number;
528
+ lastTestAt?: number;
529
+ userInfo?: Record<string, unknown>;
530
+ vertexApiEnabled?: boolean;
531
+ vertexApiEnableUrl?: string;
532
+ vertexApiWarning?: string;
510
533
  }
511
534
  export interface ConnectedServicesResponseDto {
512
535
  providerId: number;
@@ -1287,6 +1310,53 @@ export interface FacebookCampaignCreateDto {
1287
1310
  stop_time?: string;
1288
1311
  special_ad_categories?: string[];
1289
1312
  }
1313
+ export interface FacebookCampaignInsightsDto {
1314
+ date_start: string;
1315
+ date_stop: string;
1316
+ impressions?: string;
1317
+ clicks?: string;
1318
+ spend?: string;
1319
+ reach?: string;
1320
+ frequency?: string;
1321
+ cpm?: string;
1322
+ cpc?: string;
1323
+ ctr?: string;
1324
+ actions?: Array<{
1325
+ action_type: string;
1326
+ value: string;
1327
+ }>;
1328
+ action_values?: Array<{
1329
+ action_type: string;
1330
+ value: string;
1331
+ }>;
1332
+ cost_per_action_type?: Array<{
1333
+ action_type: string;
1334
+ value: string;
1335
+ }>;
1336
+ }
1337
+ export interface FacebookCampaignInsightsQueryDto {
1338
+ dateStart: string;
1339
+ dateStop: string;
1340
+ metrics?: string[];
1341
+ }
1342
+ export interface FacebookCampaignResponseDto {
1343
+ id: string;
1344
+ name: string;
1345
+ objective: string;
1346
+ status: string;
1347
+ configured_status: string;
1348
+ effective_status: string;
1349
+ created_time?: string;
1350
+ updated_time?: string;
1351
+ start_time?: string;
1352
+ stop_time?: string;
1353
+ daily_budget?: string;
1354
+ lifetime_budget?: string;
1355
+ budget_remaining?: string;
1356
+ buying_type?: string;
1357
+ bid_strategy?: string;
1358
+ special_ad_categories?: string[];
1359
+ }
1290
1360
  export interface FacebookCampaignUpdateDto {
1291
1361
  name?: string;
1292
1362
  status?: string;
@@ -2053,6 +2123,16 @@ export interface GoogleServiceMetadata {
2053
2123
  picture?: string;
2054
2124
  hd?: string;
2055
2125
  };
2126
+ projectId?: string;
2127
+ location?: string;
2128
+ isConfigured?: boolean;
2129
+ modelCount?: number;
2130
+ lastTestAt?: number;
2131
+ vertexApiEnabled?: boolean;
2132
+ vertexApiEnableUrl?: string;
2133
+ vertexApiWarning?: string;
2134
+ vertexApiErrorReason?: string;
2135
+ vertexApiStatusCode?: number;
2056
2136
  }
2057
2137
  export declare enum GoogleServiceType {
2058
2138
  GOOGLE_DOCS = "GOOGLE_DOCS",
@@ -2063,6 +2143,7 @@ export declare enum GoogleServiceType {
2063
2143
  GOOGLE_MEET = "GOOGLE_MEET",
2064
2144
  EMAIL_GMAIL = "EMAIL_GMAIL",
2065
2145
  GOOGLE_CHAT = "GOOGLE_CHAT",
2146
+ VERTEX_AI = "VERTEX_AI",
2066
2147
  GOOGLE_DRIVE = "GOOGLE_DRIVE",
2067
2148
  GOOGLE_CLOUD_STORAGE = "GOOGLE_CLOUD_STORAGE",
2068
2149
  GOOGLE_BIGQUERY = "GOOGLE_BIGQUERY",
@@ -2315,6 +2396,14 @@ export declare enum IntegrationJobHealthStatus {
2315
2396
  FAILED = "FAILED",
2316
2397
  DISABLED = "DISABLED"
2317
2398
  }
2399
+ export interface IntegrationOAuthCallbackResponseDto {
2400
+ integrationId: string;
2401
+ integrationName: string;
2402
+ providerType: string;
2403
+ userInfo: OAuthUserInfo;
2404
+ createdAt: number;
2405
+ status: string;
2406
+ }
2318
2407
  export interface IntegrationProvider {
2319
2408
  id: number;
2320
2409
  type: ProviderEnum;
@@ -2546,6 +2635,13 @@ export interface MonthlyScheduleConfig {
2546
2635
  atHour: number;
2547
2636
  atMinute: number;
2548
2637
  }
2638
+ export interface OAuthUserInfo {
2639
+ id?: string;
2640
+ email?: string;
2641
+ name?: string;
2642
+ picture?: string;
2643
+ [key: string]: any;
2644
+ }
2549
2645
  export interface OcbAccountLookupDto {
2550
2646
  accountNumber: string;
2551
2647
  }
@@ -2559,6 +2655,21 @@ export interface OpenAIMetadata {
2559
2655
  lastQuotaErrorAt?: number;
2560
2656
  isQuotaExceeded?: boolean;
2561
2657
  }
2658
+ export interface OpenAIOAuthAuthUrlRequestDto {
2659
+ redirectUri?: string;
2660
+ }
2661
+ export interface OpenAIOAuthAuthUrlResponseDto {
2662
+ authUrl: string;
2663
+ state: string;
2664
+ }
2665
+ export interface OpenAIOAuthCompleteRequestDto {
2666
+ callbackUrl?: string;
2667
+ code?: string;
2668
+ state?: string;
2669
+ scope?: string;
2670
+ error?: string;
2671
+ errorDescription?: string;
2672
+ }
2562
2673
  export interface OrderDataDto {
2563
2674
  order_id: string;
2564
2675
  beneficiary_type: BeneficiaryType;
@@ -2727,76 +2838,9 @@ export interface ProductInfoDto {
2727
2838
  beneficiary: BeneficiaryType[];
2728
2839
  category: 'subscription' | 'gmf' | 'quota';
2729
2840
  }
2730
- export declare enum ProviderEnum {
2731
- REDAI_LLM = "REDAI",
2732
- OPENAI = "OPENAI",
2733
- ALIBABA_CODING_PLAN = "ALIBABA_CODING_PLAN",
2734
- XAI = "XAI",
2735
- ANTHROPIC = "ANTHROPIC",
2736
- DEEPSEEK = "DEEPSEEK",
2737
- VERTEX_AI = "VERTEX_AI",
2738
- OPENROUTER = "OPENROUTER",
2739
- AZURE_AI = "AZURE_AI",
2740
- PERPLEXITY_AI = "PERPLEXITY_AI",
2741
- REDAI_EXTENSION = "REDAI_EXTENSION",
2742
- AGENT_DESKTOP_SDK_EXE = "AGENT_DESKTOP_SDK_EXE",
2743
- FACEBOOK_PAGE = "FACEBOOK_PAGE",
2744
- FACEBOOK_PERSONAL = "FACEBOOK_PERSONAL",
2745
- FACEBOOK_ADS = "FACEBOOK_ADS",
2746
- FACEBOOK_BUSINESS = "FACEBOOK_BUSINESS",
2747
- WEBSITE = "WEBSITE",
2748
- ZALO_OA = "ZALO_OA",
2749
- ZALO_PERSONAL = "ZALO_PERSONAL",
2750
- ZALO_BOT = "ZALO_BOT",
2751
- TELEGRAM_BOT = "TELEGRAM_BOT",
2752
- TELEGRAM = "TELEGRAM",
2753
- GHTK = "GHTK",
2754
- GHN = "GHN",
2755
- AHAMOVE = "AHAMOVE",
2756
- MB_BANK = "MB_BANK",
2757
- OCB_BANK = "OCB_BANK",
2758
- KL_BANK = "KL_BANK",
2759
- ACB_BANK = "ACB_BANK",
2760
- NONE = "NONE",
2761
- CUSTOM = "CUSTOM",
2762
- EMAIL_SMTP = "EMAIL_SMTP",
2763
- EMAIL_TWILIO_SENDGRID = "EMAIL_TWILIO_SENDGRID",
2764
- EMAIL_GMAIL = "EMAIL_GMAIL",
2765
- EMAIL_OUTLOOK = "EMAIL_OUTLOOK",
2766
- SMS_FPT = "SMS_FPT",
2767
- SMS_TWILIO = "SMS_TWILIO",
2768
- SMS_VONAGE = "SMS_VONAGE",
2769
- SMS_SPEED = "SMS_SPEED",
2770
- SMS_ESMS = "SMS_ESMS",
2771
- SMS_ESMS_ADVERTISING = "SMS_ESMS_ADVERTISING",
2772
- SMS_ESMS_CUSTOMER_CARE = "SMS_ESMS_CUSTOMER_CARE",
2773
- SMS_ESMS_VIBER = "SMS_ESMS_VIBER",
2774
- GOOGLE_CALENDAR = "GOOGLE_CALENDAR",
2775
- GOOGLE_SHEETS = "GOOGLE_SHEETS",
2776
- GOOGLE_DOCS = "GOOGLE_DOCS",
2777
- GOOGLE_DRIVE = "GOOGLE_DRIVE",
2778
- GOOGLE_ADS = "GOOGLE_ADS",
2779
- GETFLY_CRM = "GETFLY_CRM",
2780
- GOOGLE_CLOUD_PROJECT = "GOOGLE_CLOUD_PROJECT",
2781
- PROXY = "PROXY",
2782
- DATABASE_POSTGRESQL = "DATABASE_POSTGRESQL",
2783
- DATABASE_MYSQL = "DATABASE_MYSQL",
2784
- DATABASE_MSSQL = "DATABASE_MSSQL",
2785
- DATABASE_MONGODB = "DATABASE_MONGODB",
2786
- DATABASE_REDIS = "DATABASE_REDIS",
2787
- DATABASE_SQLITE = "DATABASE_SQLITE",
2788
- DATABASE_ORACLE = "DATABASE_ORACLE",
2789
- DATABASE_MARIADB = "DATABASE_MARIADB",
2790
- CLOUD_AWS_S3 = "CLOUD_AWS_S3",
2791
- CLOUD_GOOGLE_CLOUD_STORAGE = "CLOUD_GOOGLE_CLOUD_STORAGE",
2792
- CLOUD_AZURE_BLOB = "CLOUD_AZURE_BLOB",
2793
- CLOUD_MINIO = "CLOUD_MINIO",
2794
- CLOUD_CLOUDFLARE_R2 = "CLOUD_CLOUDFLARE_R2",
2795
- CLOUD_BACKBLAZE_B2 = "CLOUD_BACKBLAZE_B2",
2796
- CLOUD_WASABI = "CLOUD_WASABI"
2797
- }
2798
2841
  export declare enum ProviderLlmEnum {
2799
2842
  OPENAI = "OPENAI",
2843
+ GOOGLE_AI_STUDIO = "GOOGLE_AI_STUDIO",
2800
2844
  ALIBABA_CODING_PLAN = "ALIBABA_CODING_PLAN",
2801
2845
  ANTHROPIC = "ANTHROPIC",
2802
2846
  DEEPSEEK = "DEEPSEEK",
@@ -2804,7 +2848,9 @@ export declare enum ProviderLlmEnum {
2804
2848
  VERTEX_AI = "VERTEX_AI",
2805
2849
  OPENROUTER = "OPENROUTER",
2806
2850
  AZURE_AI = "AZURE_AI",
2807
- PERPLEXITY_AI = "PERPLEXITY_AI"
2851
+ PERPLEXITY_AI = "PERPLEXITY_AI",
2852
+ REDAI = "REDAI",
2853
+ OPENAI_OAUTH = "OPENAI_OAUTH"
2808
2854
  }
2809
2855
  export declare enum ProviderShipmentType {
2810
2856
  GHN = "GHN",
@@ -2970,6 +3016,15 @@ export interface ServiceConnectionItemDto {
2970
3016
  displayName?: string;
2971
3017
  connectedAt?: number;
2972
3018
  grantedScopes?: string[];
3019
+ projectId?: string;
3020
+ location?: string;
3021
+ isConfigured?: boolean;
3022
+ modelCount?: number;
3023
+ lastTestAt?: number;
3024
+ userInfo?: Record<string, unknown>;
3025
+ vertexApiEnabled?: boolean;
3026
+ vertexApiEnableUrl?: string;
3027
+ vertexApiWarning?: string;
2973
3028
  }
2974
3029
  export interface SessionDataDto {
2975
3030
  imei: string;
@@ -3134,6 +3189,9 @@ export interface TestServiceConnectionResponseDto {
3134
3189
  displayName?: string;
3135
3190
  email?: string;
3136
3191
  grantedScopes?: string[];
3192
+ projectId?: string;
3193
+ location?: string;
3194
+ isConfigured?: boolean;
3137
3195
  error?: string;
3138
3196
  testDetails?: Record<string, any>;
3139
3197
  testedAt: number;
@@ -3952,26 +4010,16 @@ export interface ZaloPersonalQRCodeResponseDto {
3952
4010
  export declare const VERTEX_AI_LOCATIONS: readonly unknown[];
3953
4011
  export declare const VERTEX_AI: readonly unknown[];
3954
4012
  export type ACB = unknown;
3955
- export type ACB_BANK = unknown;
3956
4013
  export type ACCOUNT_HOLDER = unknown;
3957
4014
  export type ACCOUNT_NUMBER = unknown;
3958
4015
  export type Active = unknown;
3959
- export type ACTIVE = unknown;
3960
4016
  export type ADMIN = unknown;
3961
- export type AGENT_DESKTOP_SDK_EXE = unknown;
3962
4017
  export type AGRIBANK = unknown;
3963
- export type AHAMOVE = unknown;
3964
- export type ALIBABA_CODING_PLAN = unknown;
3965
4018
  export type Allow = unknown;
3966
- export type ANTHROPIC = unknown;
3967
4019
  export type API = unknown;
3968
4020
  export type APP = unknown;
3969
4021
  export type AppApiResponse<T = unknown> = unknown;
3970
- export type ARCHIVED = unknown;
3971
- export type ARRAY = unknown;
3972
- export type ASC = unknown;
3973
4022
  export type AUTH_001 = unknown;
3974
- export type AZURE_AI = unknown;
3975
4023
  export type Backup = unknown;
3976
4024
  export type BANK_CODE = unknown;
3977
4025
  export type BANNED = unknown;
@@ -3979,9 +4027,7 @@ export type BASE64 = unknown;
3979
4027
  export type BASE64_DECODE = unknown;
3980
4028
  export type BASE64_ENCODE = unknown;
3981
4029
  export type BIDV = unknown;
3982
- export type BINARY = unknown;
3983
4030
  export type Body = unknown;
3984
- export type BOOLEAN = unknown;
3985
4031
  export type BUSINESS = unknown;
3986
4032
  export type C = unknown;
3987
4033
  export type Cancelled = unknown;
@@ -3991,92 +4037,47 @@ export type CATEGORY_PERSONAL = unknown;
3991
4037
  export type CATEGORY_PROMOTIONS = unknown;
3992
4038
  export type CATEGORY_SOCIAL = unknown;
3993
4039
  export type CATEGORY_UPDATES = unknown;
3994
- export type CENTER = unknown;
3995
- export type CLOUD_AWS_S3 = unknown;
3996
- export type CLOUD_AZURE_BLOB = unknown;
3997
- export type CLOUD_BACKBLAZE_B2 = unknown;
3998
- export type CLOUD_CLOUDFLARE_R2 = unknown;
3999
- export type CLOUD_GOOGLE_CLOUD_STORAGE = unknown;
4000
- export type CLOUD_MINIO = unknown;
4001
- export type CLOUD_WASABI = unknown;
4002
4040
  export type COMMUNITY = unknown;
4003
4041
  export type CONCAT = unknown;
4004
4042
  export type CONNECTED = unknown;
4005
4043
  export type Cookies = unknown;
4006
4044
  export type CORNER = unknown;
4007
- export type CREATE = unknown;
4008
4045
  export type CREATED_AT = unknown;
4009
- export type CUSTOM = unknown;
4010
4046
  export type D = unknown;
4011
4047
  export type DAILY = unknown;
4012
4048
  export type Danh = unknown;
4013
- export type DATABASE_MARIADB = unknown;
4014
- export type DATABASE_MONGODB = unknown;
4015
- export type DATABASE_MSSQL = unknown;
4016
- export type DATABASE_MYSQL = unknown;
4017
- export type DATABASE_ORACLE = unknown;
4018
- export type DATABASE_POSTGRESQL = unknown;
4019
- export type DATABASE_REDIS = unknown;
4020
- export type DATABASE_SQLITE = unknown;
4021
- export type DATE = unknown;
4022
4049
  export type Decimal = unknown;
4023
- export type DEEPSEEK = unknown;
4024
4050
  export type Default = unknown;
4025
4051
  export type DEGRADED = unknown;
4026
- export type DELETE = unknown;
4027
4052
  export type DELETED = unknown;
4028
- export type DESC = unknown;
4029
- export type DISABLED = unknown;
4030
4053
  export type DISCONNECTED = unknown;
4031
4054
  export type DRAFT = unknown;
4032
- export type EMAIL = unknown;
4033
- export type EMAIL_GMAIL = unknown;
4034
- export type EMAIL_OUTLOOK = unknown;
4035
- export type EMAIL_SMTP = unknown;
4036
- export type EMAIL_TWILIO_SENDGRID = unknown;
4037
4055
  export type ERROR = unknown;
4038
4056
  export type Example = unknown;
4039
4057
  export type EXCLUDE = unknown;
4040
- export type FACEBOOK_ADS = unknown;
4041
- export type FACEBOOK_BUSINESS = unknown;
4042
- export type FACEBOOK_PAGE = unknown;
4043
- export type FACEBOOK_PERSONAL = unknown;
4044
- export type FAILED = unknown;
4045
4058
  export type FEMALE = unknown;
4046
4059
  export type FLOATING = unknown;
4047
4060
  export type FORM_DATA = unknown;
4048
4061
  export type FORMATTED_STRING = unknown;
4049
4062
  export type FORMATTED_VALUE = unknown;
4050
- export type FORMULA = unknown;
4051
4063
  export type FPT_SMS_CLIENT_ID = unknown;
4052
4064
  export type FPT_SMS_CLIENT_SECRET = unknown;
4053
4065
  export type Fraud = unknown;
4054
4066
  export type FRAUD = unknown;
4055
4067
  export type FRIDAY = unknown;
4056
- export type GET = unknown;
4057
- export type GETFLY_CRM = unknown;
4058
- export type GHN = unknown;
4059
- export type GHTK = unknown;
4060
4068
  export type Gi = unknown;
4061
4069
  export type GMAIL = unknown;
4062
- export type GOOGLE_ADS = unknown;
4063
4070
  export type GOOGLE_ANALYTICS = unknown;
4064
4071
  export type GOOGLE_BIGQUERY = unknown;
4065
- export type GOOGLE_CALENDAR = unknown;
4066
4072
  export type GOOGLE_CHAT = unknown;
4067
- export type GOOGLE_CLOUD_PROJECT = unknown;
4068
4073
  export type GOOGLE_CLOUD_STORAGE = unknown;
4069
4074
  export type GOOGLE_CONTACTS = unknown;
4070
- export type GOOGLE_DOCS = unknown;
4071
- export type GOOGLE_DRIVE = unknown;
4072
4075
  export type GOOGLE_FIRESTORE = unknown;
4073
4076
  export type GOOGLE_MEET = unknown;
4074
4077
  export type GOOGLE_REALTIME_DATABASE = unknown;
4075
- export type GOOGLE_SHEETS = unknown;
4076
4078
  export type GOOGLE_SLIDES = unknown;
4077
4079
  export type GOOGLE_TASKS = unknown;
4078
4080
  export type GOOGLE_WORKSPACE_ADMIN = unknown;
4079
- export type GRID = unknown;
4080
4081
  export type HDB = unknown;
4081
4082
  export type HEALTHY = unknown;
4082
4083
  export type Hosted = unknown;
@@ -4095,49 +4096,32 @@ export type INFO_RESULT_API = unknown;
4095
4096
  export type INSERT_ROWS = unknown;
4096
4097
  export type INTEGRATION_NAME = unknown;
4097
4098
  export type IP = unknown;
4098
- export type JSON = unknown;
4099
4099
  export type JSON_PARSE = unknown;
4100
4100
  export type JSON_STRINGIFY = unknown;
4101
4101
  export type Khi = unknown;
4102
- export type KL_BANK = unknown;
4103
4102
  export type KLB = unknown;
4104
4103
  export type Lo = unknown;
4105
4104
  export type LOWERCASE = unknown;
4106
4105
  export type MALE = unknown;
4107
4106
  export type MB = unknown;
4108
- export type MB_BANK = unknown;
4109
4107
  export type MERGE = unknown;
4110
4108
  export type MONDAY = unknown;
4111
4109
  export type MONTHLY = unknown;
4112
4110
  export type NEW = unknown;
4113
- export type NONE = unknown;
4114
- export type NUMBER = unknown;
4115
4111
  export type NumberAndLetter = unknown;
4116
4112
  export type NumberOnly = unknown;
4117
4113
  export type OA = unknown;
4118
4114
  export type OBJECT = unknown;
4119
4115
  export type OCB = unknown;
4120
- export type OCB_BANK = unknown;
4121
- export type OPENAI = unknown;
4122
- export type OPENROUTER = unknown;
4123
4116
  export type OTHER = unknown;
4124
4117
  export type OUTLOOK = unknown;
4125
4118
  export type OVERLAY = unknown;
4126
4119
  export type OVERWRITE = unknown;
4127
4120
  export type PASSWORD = unknown;
4128
- export type PATCH = unknown;
4129
4121
  export type PAUSED = unknown;
4130
4122
  export type Pending = unknown;
4131
- export type PENDING = unknown;
4132
- export type PERPLEXITY_AI = unknown;
4133
4123
  export type PHOTO = unknown;
4134
- export type POST = unknown;
4135
- export type PROXY = unknown;
4136
- export type PUT = unknown;
4137
4124
  export type RAW = unknown;
4138
- export type REDAI = unknown;
4139
- export type REDAI_EXTENSION = unknown;
4140
- export type REDAI_LLM = unknown;
4141
4125
  export type REPLACE = unknown;
4142
4126
  export type S3_KEY = unknown;
4143
4127
  export type SATURDAY = unknown;
@@ -4148,14 +4132,6 @@ export type Session = unknown;
4148
4132
  export type SHB = unknown;
4149
4133
  export type SIDEBAR_LEFT = unknown;
4150
4134
  export type SIDEBAR_RIGHT = unknown;
4151
- export type SMS_ESMS = unknown;
4152
- export type SMS_ESMS_ADVERTISING = unknown;
4153
- export type SMS_ESMS_CUSTOMER_CARE = unknown;
4154
- export type SMS_ESMS_VIBER = unknown;
4155
- export type SMS_FPT = unknown;
4156
- export type SMS_SPEED = unknown;
4157
- export type SMS_TWILIO = unknown;
4158
- export type SMS_VONAGE = unknown;
4159
4135
  export type SMTP = unknown;
4160
4136
  export type SOCKS5 = unknown;
4161
4137
  export type SPAM = unknown;
@@ -4165,14 +4141,10 @@ export type STICKER = unknown;
4165
4141
  export type SUNDAY = unknown;
4166
4142
  export type Suspended = unknown;
4167
4143
  export type SUSPENDED = unknown;
4168
- export type T = unknown;
4169
4144
  export type TCB = unknown;
4170
4145
  export type TDelay = unknown;
4171
- export type TELEGRAM = unknown;
4172
- export type TELEGRAM_BOT = unknown;
4173
4146
  export type Terminated = unknown;
4174
4147
  export type TERMINATED = unknown;
4175
- export type TEXT = unknown;
4176
4148
  export type TEXTAREA = unknown;
4177
4149
  export type Th = unknown;
4178
4150
  export type THURSDAY = unknown;
@@ -4191,11 +4163,8 @@ export type Unlimited = unknown;
4191
4163
  export type UNREAD = unknown;
4192
4164
  export type Unverified = unknown;
4193
4165
  export type UNVERIFIED = unknown;
4194
- export type UPDATE = unknown;
4195
4166
  export type UPDATED_AT = unknown;
4196
4167
  export type UPPERCASE = unknown;
4197
- export type URL = unknown;
4198
- export type USER = unknown;
4199
4168
  export type USER_ENTERED = unknown;
4200
4169
  export type USER_INPUT = unknown;
4201
4170
  export type VCB = unknown;
@@ -4204,15 +4173,10 @@ export type VERIFIED = unknown;
4204
4173
  export type VIB = unknown;
4205
4174
  export type VPB = unknown;
4206
4175
  export type VTB = unknown;
4207
- export type WEBSITE = unknown;
4208
4176
  export type WEDNESDAY = unknown;
4209
4177
  export type WEEKLY = unknown;
4210
4178
  export type X_WWW_FORM_URLENCODED = unknown;
4211
- export type XAI = unknown;
4212
4179
  export type YOUTUBE = unknown;
4213
- export type ZALO_BOT = unknown;
4214
- export type ZALO_OA = unknown;
4215
- export type ZALO_PERSONAL = unknown;
4216
4180
  export interface AcbBankUserConfirmApiConnectionACBParams {
4217
4181
  id: string;
4218
4182
  requestId: string;
@@ -4291,6 +4255,11 @@ export interface FacebookAdsCampaignDeleteCampaignParams {
4291
4255
  integrationId: string;
4292
4256
  campaignId: string;
4293
4257
  }
4258
+ export interface FacebookAdsCampaignGetCampaignInsightsParams {
4259
+ integrationId: string;
4260
+ campaignId: string;
4261
+ query?: FacebookCampaignInsightsQueryDto;
4262
+ }
4294
4263
  export interface FacebookAdsCampaignGetCampaignParams {
4295
4264
  integrationId: string;
4296
4265
  campaignId: string;
@@ -4302,6 +4271,10 @@ export interface FacebookAdsCampaignGetCampaignsParams {
4302
4271
  integrationId: string;
4303
4272
  query?: number;
4304
4273
  }
4274
+ export interface FacebookAdsCampaignGetMultipleCampaignInsightsParams {
4275
+ integrationId: string;
4276
+ query?: FacebookCampaignInsightsQueryDto;
4277
+ }
4305
4278
  export interface FacebookAdsCampaignUpdateCampaignParams {
4306
4279
  integrationId: string;
4307
4280
  campaignId: string;
@@ -4494,6 +4467,10 @@ export interface GoogleCalendarIntegrationUpdateIntegrationParams {
4494
4467
  integrationId: string;
4495
4468
  body: UpdateGoogleCalendarIntegrationDto;
4496
4469
  }
4470
+ export interface GoogleCloudProjectCheckVertexAIRequiredApisParams {
4471
+ id: number;
4472
+ integrationId: string;
4473
+ }
4497
4474
  export interface GoogleCloudProjectCreateParams {
4498
4475
  body: CreateGoogleCloudProjectDto;
4499
4476
  }
@@ -4531,10 +4508,26 @@ export interface GoogleCloudProjectGetGmailWatchStatusParams {
4531
4508
  export interface GoogleCloudProjectGetRedirectUrlParams {
4532
4509
  _?: never;
4533
4510
  }
4511
+ export interface GoogleCloudProjectGetVertexAIConfigParams {
4512
+ id: number;
4513
+ integrationId: string;
4514
+ }
4515
+ export interface GoogleCloudProjectGetVertexAILocationsParams {
4516
+ id: number;
4517
+ }
4518
+ export interface GoogleCloudProjectGetVertexAIProjectsParams {
4519
+ id: number;
4520
+ integrationId: string;
4521
+ }
4534
4522
  export interface GoogleCloudProjectRenewGmailWatchParams {
4535
4523
  id: number;
4536
4524
  integrationId: string;
4537
4525
  }
4526
+ export interface GoogleCloudProjectSaveVertexAIConfigParams {
4527
+ id: number;
4528
+ integrationId: string;
4529
+ body: VertexAIConfigRequestDto;
4530
+ }
4538
4531
  export interface GoogleCloudProjectStartGmailWatchParams {
4539
4532
  id: number;
4540
4533
  body: StartGmailWatchDto;
@@ -4918,6 +4911,12 @@ export interface OcbBankUserRequestCreateVAOCBParams {
4918
4911
  export interface OcbBankUserTestSepayHubConnectionParams {
4919
4912
  _?: never;
4920
4913
  }
4914
+ export interface OpenaiOauthIntegrationCompleteOAuthParams {
4915
+ body: OpenAIOAuthCompleteRequestDto;
4916
+ }
4917
+ export interface OpenaiOauthIntegrationGenerateAuthUrlParams {
4918
+ query?: OpenAIOAuthAuthUrlRequestDto;
4919
+ }
4921
4920
  export interface OracleIntegrationCreateIntegrationParams {
4922
4921
  body: CreateDatabaseIntegrationDto;
4923
4922
  }