@tuturuuu/internal-api 0.9.0 → 0.11.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.
Files changed (136) hide show
  1. package/dist/account-delete.d.ts +25 -0
  2. package/dist/account-delete.d.ts.map +1 -0
  3. package/dist/account-delete.js +22 -0
  4. package/dist/ai.d.ts +2 -1
  5. package/dist/ai.d.ts.map +1 -1
  6. package/dist/api-keys.d.ts +66 -0
  7. package/dist/api-keys.d.ts.map +1 -0
  8. package/dist/api-keys.js +93 -0
  9. package/dist/auth.d.ts +5 -0
  10. package/dist/auth.d.ts.map +1 -1
  11. package/dist/auth.js +9 -0
  12. package/dist/backend.d.ts +556 -0
  13. package/dist/backend.d.ts.map +1 -0
  14. package/dist/backend.js +528 -0
  15. package/dist/calendar.d.ts +29 -0
  16. package/dist/calendar.d.ts.map +1 -1
  17. package/dist/calendar.js +18 -0
  18. package/dist/client.d.ts.map +1 -1
  19. package/dist/client.js +2 -0
  20. package/dist/cron.d.ts +42 -0
  21. package/dist/cron.d.ts.map +1 -0
  22. package/dist/cron.js +76 -0
  23. package/dist/documents.d.ts +38 -0
  24. package/dist/documents.d.ts.map +1 -0
  25. package/dist/documents.js +71 -0
  26. package/dist/education.d.ts +228 -12
  27. package/dist/education.d.ts.map +1 -1
  28. package/dist/education.js +229 -0
  29. package/dist/group-tags.d.ts +87 -0
  30. package/dist/group-tags.d.ts.map +1 -0
  31. package/dist/group-tags.js +116 -0
  32. package/dist/index.d.ts +27 -15
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +200 -14
  35. package/dist/infrastructure/abuse.d.ts +7 -0
  36. package/dist/infrastructure/abuse.d.ts.map +1 -0
  37. package/dist/infrastructure/abuse.js +39 -0
  38. package/dist/infrastructure/ai.d.ts +53 -0
  39. package/dist/infrastructure/ai.d.ts.map +1 -0
  40. package/dist/infrastructure/ai.js +331 -0
  41. package/dist/infrastructure/apps.d.ts +9 -0
  42. package/dist/infrastructure/apps.d.ts.map +1 -0
  43. package/dist/infrastructure/apps.js +49 -0
  44. package/dist/infrastructure/blocked-ips.d.ts +65 -0
  45. package/dist/infrastructure/blocked-ips.d.ts.map +1 -0
  46. package/dist/infrastructure/blocked-ips.js +56 -0
  47. package/dist/infrastructure/cron.d.ts +39 -0
  48. package/dist/infrastructure/cron.d.ts.map +1 -0
  49. package/dist/infrastructure/cron.js +47 -0
  50. package/dist/infrastructure/github-bot.d.ts +10 -0
  51. package/dist/infrastructure/github-bot.d.ts.map +1 -0
  52. package/dist/infrastructure/github-bot.js +73 -0
  53. package/dist/infrastructure/index.d.ts +13 -0
  54. package/dist/infrastructure/index.d.ts.map +1 -0
  55. package/dist/infrastructure/index.js +28 -0
  56. package/dist/infrastructure/mobile.d.ts +23 -0
  57. package/dist/infrastructure/mobile.d.ts.map +1 -0
  58. package/dist/infrastructure/mobile.js +183 -0
  59. package/dist/infrastructure/monitoring.d.ts +34 -0
  60. package/dist/infrastructure/monitoring.d.ts.map +1 -0
  61. package/dist/infrastructure/monitoring.js +356 -0
  62. package/dist/infrastructure/native-settings.d.ts +51 -0
  63. package/dist/infrastructure/native-settings.d.ts.map +1 -0
  64. package/dist/infrastructure/native-settings.js +28 -0
  65. package/dist/infrastructure/realtime.d.ts +55 -0
  66. package/dist/infrastructure/realtime.d.ts.map +1 -0
  67. package/dist/infrastructure/realtime.js +29 -0
  68. package/dist/infrastructure/types.d.ts +1655 -0
  69. package/dist/infrastructure/types.d.ts.map +1 -0
  70. package/dist/infrastructure/types.js +2 -0
  71. package/dist/infrastructure/workspace.d.ts +5 -0
  72. package/dist/infrastructure/workspace.d.ts.map +1 -0
  73. package/dist/infrastructure/workspace.js +15 -0
  74. package/dist/infrastructure.d.ts +12 -1725
  75. package/dist/infrastructure.d.ts.map +1 -1
  76. package/dist/infrastructure.js +26 -1019
  77. package/dist/inventory.d.ts +34 -0
  78. package/dist/inventory.d.ts.map +1 -1
  79. package/dist/inventory.js +7 -0
  80. package/dist/notifications.d.ts +90 -0
  81. package/dist/notifications.d.ts.map +1 -0
  82. package/dist/notifications.js +62 -0
  83. package/dist/promotions.d.ts +3 -0
  84. package/dist/promotions.d.ts.map +1 -1
  85. package/dist/promotions.js +8 -0
  86. package/dist/rate-limit-appeals.d.ts +119 -0
  87. package/dist/rate-limit-appeals.d.ts.map +1 -0
  88. package/dist/rate-limit-appeals.js +62 -0
  89. package/dist/rate-limits.d.ts +18 -5
  90. package/dist/rate-limits.d.ts.map +1 -1
  91. package/dist/task-plans.d.ts +220 -0
  92. package/dist/task-plans.d.ts.map +1 -0
  93. package/dist/task-plans.js +153 -0
  94. package/dist/task-progress-types.d.ts +216 -0
  95. package/dist/task-progress-types.d.ts.map +1 -0
  96. package/dist/task-progress-types.js +2 -0
  97. package/dist/task-progress.d.ts +44 -0
  98. package/dist/task-progress.d.ts.map +1 -0
  99. package/dist/task-progress.js +102 -0
  100. package/dist/tasks.d.ts +213 -1
  101. package/dist/tasks.d.ts.map +1 -1
  102. package/dist/tasks.js +150 -0
  103. package/dist/teach.d.ts +67 -0
  104. package/dist/teach.d.ts.map +1 -1
  105. package/dist/teach.js +20 -0
  106. package/dist/templates.d.ts +2 -0
  107. package/dist/templates.d.ts.map +1 -1
  108. package/dist/templates.js +8 -0
  109. package/dist/tulearn.d.ts +46 -0
  110. package/dist/tulearn.d.ts.map +1 -1
  111. package/dist/tulearn.js +36 -0
  112. package/dist/user-group-attendance.d.ts +29 -0
  113. package/dist/user-group-attendance.d.ts.map +1 -0
  114. package/dist/user-group-attendance.js +38 -0
  115. package/dist/user-group-schedule.d.ts +193 -0
  116. package/dist/user-group-schedule.d.ts.map +1 -0
  117. package/dist/user-group-schedule.js +84 -0
  118. package/dist/user-groups.d.ts +18 -0
  119. package/dist/user-groups.d.ts.map +1 -1
  120. package/dist/user-groups.js +18 -0
  121. package/dist/users-server.d.ts +14 -0
  122. package/dist/users-server.d.ts.map +1 -0
  123. package/dist/users-server.js +37 -0
  124. package/dist/users.d.ts +70 -1
  125. package/dist/users.d.ts.map +1 -1
  126. package/dist/users.js +90 -6
  127. package/dist/workspace-config-ids.d.ts +6 -0
  128. package/dist/workspace-config-ids.d.ts.map +1 -1
  129. package/dist/workspace-config-ids.js +13 -1
  130. package/dist/workspace-configs.d.ts +4 -1
  131. package/dist/workspace-configs.d.ts.map +1 -1
  132. package/dist/workspace-configs.js +25 -1
  133. package/dist/workspaces.d.ts +11 -0
  134. package/dist/workspaces.d.ts.map +1 -1
  135. package/dist/workspaces.js +14 -0
  136. package/package.json +73 -8
@@ -1,1726 +1,13 @@
1
- import type { AIModelUI, AIWhitelistDomain, AIWhitelistEmail } from '@tuturuuu/types';
2
- import type { ChatMessage } from './chat-types';
3
- import { type InternalApiClientOptions } from './client';
4
- export interface MobilePlatformVersionPolicyPayload {
5
- effectiveVersion: string | null;
6
- minimumVersion: string | null;
7
- otpEnabled: boolean;
8
- storeUrl: string | null;
9
- }
10
- export interface MobileVersionPoliciesPayload {
11
- android: MobilePlatformVersionPolicyPayload;
12
- ios: MobilePlatformVersionPolicyPayload;
13
- webOtpEnabled: boolean;
14
- }
15
- export type MobileDeploymentPlatform = 'android' | 'ios';
16
- export type MobileDeploymentFileKind = 'android_google_services_json' | 'ios_google_service_info_plist' | 'android_upload_keystore' | 'google_play_service_account_json' | 'apple_distribution_certificate_p12' | 'apple_app_store_provisioning_profile' | 'app_store_connect_private_key_p8';
17
- export type MobileDeploymentScalarName = 'ANDROID_KEYSTORE_ALIAS' | 'ANDROID_KEYSTORE_PASSWORD' | 'ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD' | 'GOOGLE_PLAY_PACKAGE_NAME' | 'GOOGLE_PLAY_TRACK' | 'APPLE_BUNDLE_ID' | 'APPLE_DISTRIBUTION_CERTIFICATE_PASSWORD' | 'APPLE_TEAM_ID' | 'APP_STORE_CONNECT_API_KEY_ID' | 'APP_STORE_CONNECT_ISSUER_ID';
18
- export type MobileDeploymentEnvKeyName = string;
19
- export type MobileDeploymentSecretKind = 'env' | 'scalar';
20
- export interface SaveMobileDeploymentSecretPayload {
21
- kind: MobileDeploymentSecretKind;
22
- name: MobileDeploymentEnvKeyName | MobileDeploymentScalarName;
23
- previousName?: MobileDeploymentEnvKeyName;
24
- value: string;
25
- }
26
- export interface ClearMobileDeploymentSecretPayload {
27
- kind: MobileDeploymentSecretKind;
28
- name: MobileDeploymentEnvKeyName | MobileDeploymentScalarName;
29
- }
30
- export interface MobileDeploymentResourceStatus {
31
- configured: boolean;
32
- lastFour: string | null;
33
- name: string;
34
- plaintextSha256: string | null;
35
- size: number | null;
36
- updatedAt: string | null;
37
- validationErrors: string[];
38
- /**
39
- * Plaintext value for non-secret fields (public URLs, fixed identifiers,
40
- * feature flags, the Play track); `null` for secrets and files.
41
- */
42
- value: string | null;
43
- }
44
- export interface MobileDeploymentVersionStatus {
45
- activatedAt: string | null;
46
- createdAt: string;
47
- id: string;
48
- ready: boolean;
49
- readinessErrors: string[];
50
- status: 'active' | 'archived' | 'draft';
51
- version: number;
52
- }
53
- export interface MobileDeploymentTokenStatus {
54
- createdAt: string;
55
- expiresAt: string;
56
- id: string;
57
- lastFour: string;
58
- lastUsedAt: string | null;
59
- name: string;
60
- platforms: MobileDeploymentPlatform[];
61
- prefix: string;
62
- revokedAt: string | null;
63
- }
64
- export interface MobileDeploymentAuditEvent {
65
- actorType: 'ci' | 'user';
66
- createdAt: string;
67
- eventType: string;
68
- id: string;
69
- metadata: Record<string, unknown>;
70
- resourceKind: string | null;
71
- }
72
- export interface MobileDeploymentState {
73
- activeVersion: MobileDeploymentVersionStatus | null;
74
- auditEvents: MobileDeploymentAuditEvent[];
75
- draftVersion: MobileDeploymentVersionStatus | null;
76
- envKeys: MobileDeploymentResourceStatus[];
77
- fileArtifacts: MobileDeploymentResourceStatus[];
78
- scalarValues: MobileDeploymentResourceStatus[];
79
- tokens: MobileDeploymentTokenStatus[];
80
- }
81
- export interface IssueMobileDeploymentCiTokenPayload {
82
- expiresInDays?: number;
83
- name: string;
84
- platforms?: MobileDeploymentPlatform[];
85
- }
86
- export interface IssueMobileDeploymentCiTokenResponse {
87
- state: MobileDeploymentState;
88
- token: string;
89
- }
90
- export interface GitHubBotConfigurationStatus {
91
- appId: string;
92
- enabled: boolean;
93
- installationId: string;
94
- lastValidatedAt: string | null;
95
- lastValidationError: string | null;
96
- permissions: {
97
- checks: 'write';
98
- };
99
- privateKeyConfigured: boolean;
100
- privateKeyFingerprint: string;
101
- repository: {
102
- name: string;
103
- owner: string;
104
- };
105
- updatedAt: string;
106
- }
107
- export interface GitHubBotWatcherClientStatus {
108
- createdAt: string;
109
- expiresAt: string;
110
- id: string;
111
- lastFour: string;
112
- lastIssuedAt: string | null;
113
- lastUsedAt: string | null;
114
- name: string;
115
- prefix: string;
116
- revokedAt: string | null;
117
- }
118
- export interface GitHubBotAuditEvent {
119
- actorType: 'user' | 'watcher';
120
- createdAt: string;
121
- eventType: string;
122
- id: string;
123
- metadata: Record<string, unknown>;
124
- }
125
- export interface GitHubBotState {
126
- auditEvents: GitHubBotAuditEvent[];
127
- clients: GitHubBotWatcherClientStatus[];
128
- configuration: GitHubBotConfigurationStatus | null;
129
- }
130
- export interface SaveGitHubBotConfigurationPayload {
131
- appId: string;
132
- enabled: boolean;
133
- installationId: string;
134
- privateKey?: string;
135
- repositoryName: string;
136
- repositoryOwner: string;
137
- }
138
- export interface TestGitHubBotConfigurationResponse {
139
- state: GitHubBotState;
140
- validation: {
141
- ok: boolean;
142
- validatedAt: string;
143
- };
144
- }
145
- export interface IssueGitHubBotWatcherClientPayload {
146
- expiresInDays?: number;
147
- name: string;
148
- }
149
- export interface IssueGitHubBotWatcherClientResponse {
150
- state: GitHubBotState;
151
- token: string;
152
- }
153
- export interface EnableGitHubBotWatcherAutoPickupResponse {
154
- autoPickup: {
155
- clientId: string;
156
- expiresAt: string;
157
- queuedAt: string;
158
- tokenEndpointUrl: string;
159
- };
160
- state: GitHubBotState;
161
- }
162
- export interface ExternalAppRegistration {
163
- allowedScopes: string[];
164
- createdAt: string | null;
165
- createdBy: string | null;
166
- displayName: string;
167
- enabled: boolean;
168
- id: string;
169
- origins: string[];
170
- secretIssuedAt: string | null;
171
- secretLastFour: string | null;
172
- updatedAt: string | null;
173
- updatedBy: string | null;
174
- }
175
- export interface ExternalAppsResponse {
176
- apps: ExternalAppRegistration[];
177
- }
178
- export type AiAgentAdapter = 'discord' | 'zalo';
179
- export type AiAgentChannelStatus = 'draft' | 'deployed' | 'error' | 'paused';
180
- export type AiAgentZaloAccountMode = 'official' | 'personal';
181
- export interface AiAgentSecretDescriptor {
182
- configured: boolean;
183
- lastFour: string | null;
184
- name: string;
185
- }
186
- export interface AiAgentChannelConfig {
187
- adapter: AiAgentAdapter;
188
- displayName: string;
189
- enabled: boolean;
190
- id: string;
191
- lastDeployedAt: string | null;
192
- lastError: string | null;
193
- lastEventAt: string | null;
194
- mentionRoleIds: string[];
195
- secrets: AiAgentSecretDescriptor[];
196
- status: AiAgentChannelStatus;
197
- webhookUrl: string | null;
198
- workspaceId: string;
199
- autoRespond?: boolean;
200
- discordGuildId?: string | null;
201
- externalChannelId?: string | null;
202
- historySyncEnabled?: boolean;
203
- zaloAccountMode?: AiAgentZaloAccountMode;
204
- zaloOfficialAccountId?: string | null;
205
- zaloPersonalOwnId?: string | null;
206
- }
207
- export interface AiAgentDefinition {
208
- channels: AiAgentChannelConfig[];
209
- createdAt: string | null;
210
- enabled: boolean;
211
- id: string;
212
- instructions: string;
213
- modelId: string;
214
- name: string;
215
- temperature: number | null;
216
- tools: string[];
217
- updatedAt: string | null;
218
- }
219
- export interface AiAgentIdentityLink {
220
- externalUserId: string;
221
- platformUserId: string;
222
- provider: 'zalo';
223
- providerAccountId: string;
224
- workspaceId: string;
225
- }
226
- export interface AiAgentsResponse {
227
- agents: AiAgentDefinition[];
228
- identities: AiAgentIdentityLink[];
229
- }
230
- export interface AiAgentExternalThread {
231
- adapter: AiAgentAdapter;
232
- agentId: string;
233
- channelId: string;
234
- conversationId: string;
235
- createdAt: string;
236
- externalChannelId: string | null;
237
- externalThreadId: string;
238
- id: string;
239
- lastEventAt: string | null;
240
- lastSyncedAt: string | null;
241
- latestMessage: ChatMessage | null;
242
- messageCount: number;
243
- metadata: Record<string, unknown>;
244
- title: string | null;
245
- updatedAt: string;
246
- wsId: string;
247
- }
248
- export interface AiAgentExternalThreadsResponse {
249
- threads: AiAgentExternalThread[];
250
- }
251
- export interface AiAgentExternalMessagesResponse {
252
- messages: ChatMessage[];
253
- }
254
- export interface AiAgentExternalSyncResponse {
255
- message: string | null;
256
- ok: boolean;
257
- synced: number;
258
- }
259
- export interface AiAgentExternalDraftResponse {
260
- draft: string;
261
- sourceMessages: number;
262
- }
263
- export interface InternalAppSessionPolicyOverride {
264
- internalAppAccessTtlSeconds?: number;
265
- internalAppRefreshEarlySeconds?: number;
266
- internalAppRefreshTtlSeconds?: number;
267
- }
268
- export interface AppCoordinationSessionPolicy {
269
- browserRefreshReplayGraceSeconds: number;
270
- cliAccessTtlSeconds: number;
271
- cliRefreshTtlSeconds: number;
272
- externalAppBearerTtlSeconds: number;
273
- externalAppRefreshReplayGraceSeconds: number;
274
- internalAppAccessTtlSeconds: number;
275
- internalAppOverrides: Record<string, InternalAppSessionPolicyOverride>;
276
- internalAppRefreshEarlySeconds: number;
277
- internalAppRefreshTtlSeconds: number;
278
- }
279
- export interface AppCoordinationSessionPolicyResponse {
280
- policy: AppCoordinationSessionPolicy;
281
- source: 'default' | 'environment' | 'secret';
282
- }
283
- export interface AIWhitelistDomainsResponse {
284
- count: number;
285
- data: AIWhitelistDomain[];
286
- }
287
- export interface AIWhitelistDomainResponse {
288
- data: AIWhitelistDomain;
289
- }
290
- export interface AIWhitelistEmailsResponse {
291
- count: number;
292
- data: AIWhitelistEmail[];
293
- }
294
- export interface AIWhitelistEmailResponse {
295
- data: AIWhitelistEmail;
296
- }
297
- export interface ListAiGatewayModelsParams {
298
- enabled?: boolean;
299
- ids?: string[];
300
- q?: string;
301
- provider?: string;
302
- tag?: string;
303
- type?: 'all' | 'embedding' | 'image' | 'language';
304
- }
305
- export interface ListAiGatewayModelsPageParams extends ListAiGatewayModelsParams {
306
- limit?: number | string;
307
- page?: number | string;
308
- }
309
- export interface AiGatewayModelsPage {
310
- data: AIModelUI[];
311
- pagination: {
312
- limit: number;
313
- page: number;
314
- total: number;
315
- };
316
- }
317
- export interface ResolveInfrastructureWorkspaceIdResponse {
318
- workspaceId: string | null;
319
- }
320
- export interface ListAIWhitelistDomainsParams {
321
- page?: number | string;
322
- pageSize?: number | string;
323
- q?: string;
324
- }
325
- export interface ListAIWhitelistEmailsParams {
326
- page?: number | string;
327
- pageSize?: number | string;
328
- q?: string;
329
- }
330
- export type CreateAIWhitelistDomainPayload = Pick<AIWhitelistDomain, 'description' | 'domain'> & Partial<Pick<AIWhitelistDomain, 'enabled'>>;
331
- export type UpdateAIWhitelistDomainPayload = Pick<AIWhitelistDomain, 'enabled'>;
332
- export type CreateAIWhitelistEmailPayload = Pick<AIWhitelistEmail, 'email'> & Partial<Pick<AIWhitelistEmail, 'enabled'>>;
333
- export type UpdateAIWhitelistEmailPayload = Pick<AIWhitelistEmail, 'enabled'>;
334
- export interface SaveExternalAppPayload {
335
- allowedScopes?: string[];
336
- displayName: string;
337
- enabled: boolean;
338
- id: string;
339
- issueSecret?: boolean;
340
- origins: string[];
341
- }
342
- export interface SaveExternalAppResponse {
343
- app: ExternalAppRegistration;
344
- secret: string | null;
345
- }
346
- export interface SaveAiAgentPayload {
347
- channels?: Array<{
348
- adapter: AiAgentAdapter;
349
- displayName?: string;
350
- enabled?: boolean;
351
- id: string;
352
- mentionRoleIds?: string[];
353
- secrets?: Record<string, string | null | undefined>;
354
- status?: AiAgentChannelStatus;
355
- workspaceId: string;
356
- autoRespond?: boolean;
357
- discordGuildId?: string | null;
358
- externalChannelId?: string | null;
359
- historySyncEnabled?: boolean;
360
- zaloAccountMode?: AiAgentZaloAccountMode;
361
- zaloOfficialAccountId?: string | null;
362
- zaloPersonalOwnId?: string | null;
363
- }>;
364
- enabled?: boolean;
365
- id: string;
366
- instructions?: string;
367
- modelId?: string;
368
- name: string;
369
- temperature?: number | null;
370
- tools?: string[];
371
- }
372
- export interface SaveAiAgentResponse {
373
- agent: AiAgentDefinition;
374
- }
375
- export type ChatIntegrationKind = 'discord' | 'zalo-official' | 'zalo-personal';
376
- export interface CreateChatIntegrationPayload {
377
- displayName?: string;
378
- kind: ChatIntegrationKind;
379
- }
380
- export interface CreateChatIntegrationResponse {
381
- agent: AiAgentDefinition;
382
- channel: AiAgentChannelConfig;
383
- conversationId: string;
384
- }
385
- export interface AiAgentDeployResponse {
386
- agent: AiAgentDefinition;
387
- channel: AiAgentChannelConfig;
388
- missing: string[];
389
- ok: boolean;
390
- webhookUrl: string;
391
- }
392
- export interface AiAgentDiagnosticCheck {
393
- detail?: string | null;
394
- id: string;
395
- label: string;
396
- ok: boolean;
397
- }
398
- export interface AiAgentTestResponse {
399
- checks?: AiAgentDiagnosticCheck[];
400
- ok: boolean;
401
- response: string;
402
- }
403
- export interface AiAgentZaloPersonalStatus {
404
- channelId: string;
405
- connected: boolean;
406
- enabled: boolean;
407
- lastError: string | null;
408
- lastEventAt: string | null;
409
- mode: AiAgentZaloAccountMode;
410
- ownId: string | null;
411
- running: boolean;
412
- startedAt: string | null;
413
- }
414
- export interface AiAgentZaloPersonalStatusResponse {
415
- phoneSyncJob?: AiAgentZaloPersonalPhoneSyncJobSnapshot | null;
416
- status: AiAgentZaloPersonalStatus;
417
- }
418
- export interface AiAgentZaloPersonalHistorySyncResult {
419
- exhausted: boolean;
420
- failedGroupHistories: number;
421
- groupMessages: number;
422
- groupsScanned: number;
423
- pageCount: number;
424
- synced: number;
425
- threads: number;
426
- timedOut: boolean;
427
- userMessages: number;
428
- }
429
- export type AiAgentZaloPersonalPhoneSyncStatus = 'completed' | 'completed_no_payload' | 'failed' | 'partial' | 'waiting_for_phone';
430
- export interface AiAgentZaloPersonalPhoneSyncResult {
431
- approvalRequested: boolean;
432
- cleaned: boolean;
433
- error: string | null;
434
- groupMessages: number;
435
- pullAttempts: number;
436
- requestAccepted: boolean;
437
- requestHttpError: string | null;
438
- requestViaHttp: boolean;
439
- requestViaWebSocket: boolean;
440
- status: AiAgentZaloPersonalPhoneSyncStatus;
441
- synced: number;
442
- threads: number;
443
- userMessages: number;
444
- }
445
- export interface AiAgentZaloPersonalPhoneSyncJobSnapshot {
446
- completedAt: string | null;
447
- error: string | null;
448
- startedAt: string;
449
- status: 'completed' | 'failed' | 'running';
450
- sync: AiAgentZaloPersonalPhoneSyncResult | null;
451
- }
452
- export type AiAgentZaloPersonalSyncResult = AiAgentZaloPersonalHistorySyncResult | AiAgentZaloPersonalPhoneSyncResult;
453
- export interface AiAgentZaloPersonalActionResponse {
454
- phoneSyncJob?: AiAgentZaloPersonalPhoneSyncJobSnapshot | null;
455
- status: AiAgentZaloPersonalStatus;
456
- sync?: AiAgentZaloPersonalSyncResult;
457
- }
458
- export type AiAgentZaloPersonalAction = 'start' | 'stop' | 'sync-history' | 'sync-phone' | 'validate';
459
- export type AiAgentZaloPersonalQrLoginStatus = 'pending' | 'qr_generated' | 'scanned' | 'credentials_ready' | 'authenticated' | 'persisted' | 'expired' | 'declined' | 'aborted' | 'failed';
460
- export interface AiAgentZaloPersonalQrScannedProfile {
461
- avatar: string | null;
462
- displayName: string | null;
463
- }
464
- export interface AiAgentZaloPersonalQrLoginSession {
465
- agentId: string;
466
- channelId: string;
467
- createdAt: string;
468
- error: string | null;
469
- expiresAt: string | null;
470
- mode: AiAgentZaloAccountMode;
471
- ownId: string | null;
472
- qrImageDataUrl: string | null;
473
- scannedProfile: AiAgentZaloPersonalQrScannedProfile | null;
474
- sessionId: string;
475
- status: AiAgentZaloPersonalQrLoginStatus;
476
- updatedAt: string;
477
- }
478
- export interface AiAgentZaloPersonalQrLoginResponse {
479
- session: AiAgentZaloPersonalQrLoginSession;
480
- }
481
- export interface RotateAiAgentChannelSecretResponse {
482
- secret: {
483
- lastFour: string;
484
- name: string;
485
- value: string;
486
- };
487
- }
488
- export interface SaveAiAgentIdentityResponse {
489
- identity: AiAgentIdentityLink;
490
- }
491
- export type AbuseRiskTier = 'challenge_required' | 'restricted' | 'standard' | 'trusted' | 'watch';
492
- export type AbuseReputationSubjectType = 'api_key' | 'cidr' | 'ip' | 'session' | 'user' | 'user_location' | 'workspace';
493
- export type RateLimitMode = 'absolute' | 'blocked' | 'inherit_multiplier' | 'unlimited';
494
- /** Per-window absolute rate limits for limit_mode='absolute' rules. */
495
- export interface RateLimitWindowLimits {
496
- day?: number;
497
- hour?: number;
498
- minute?: number;
499
- }
500
- export interface RateLimitAbsoluteLimits {
501
- read?: RateLimitWindowLimits;
502
- write?: RateLimitWindowLimits;
503
- }
504
- export type AbuseSignalType = 'auth_failure' | 'automation_client' | 'challenge_failed' | 'challenge_issued' | 'challenge_passed' | 'client_error' | 'manual_override' | 'missing_user_agent' | 'organic_activity' | 'payload_abuse' | 'rate_limit_hit' | 'scripted_client';
505
- export type AbuseChallengeStatus = 'expired' | 'failed' | 'issued' | 'passed';
506
- export interface AbuseReputationSubject {
507
- api_key_id: string | null;
508
- cidr: string | null;
509
- confidence_score: number;
510
- created_at: string;
511
- id: string;
512
- ip_address: string | null;
513
- last_negative_signal_at: string | null;
514
- last_positive_signal_at: string | null;
515
- last_seen_at: string;
516
- metadata: Record<string, unknown>;
517
- negative_signal_count: number;
518
- positive_signal_count: number;
519
- reputation_score: number;
520
- subject_key: string;
521
- subject_type: AbuseReputationSubjectType;
522
- tier: AbuseRiskTier;
523
- trust_multiplier: number;
524
- updated_at: string;
525
- user_id: string | null;
526
- workspace_id: string | null;
527
- }
528
- export interface AbuseActivitySignal {
529
- api_key_id: string | null;
530
- confidence_delta: number;
531
- created_at: string;
532
- id: string;
533
- ip_address: string | null;
534
- metadata: Record<string, unknown>;
535
- method: string | null;
536
- reason_code: string | null;
537
- risk_tier: AbuseRiskTier;
538
- route: string | null;
539
- score_delta: number;
540
- signal_type: AbuseSignalType;
541
- subject_key: string;
542
- subject_type: AbuseReputationSubjectType;
543
- user_id: string | null;
544
- workspace_id: string | null;
545
- }
546
- export interface AbuseStepUpChallenge {
547
- challenge_type: string;
548
- completed_at: string | null;
549
- created_at: string;
550
- expires_at: string;
551
- id: string;
552
- ip_address: string | null;
553
- metadata: Record<string, unknown>;
554
- risk_tier: AbuseRiskTier;
555
- route: string | null;
556
- status: AbuseChallengeStatus;
557
- subject_key: string;
558
- updated_at: string;
559
- user_id: string | null;
560
- }
561
- export interface AbuseTrustOverride {
562
- created_at: string;
563
- created_by: string | null;
564
- expires_at: string | null;
565
- id: string;
566
- metadata: Record<string, unknown>;
567
- reason: string;
568
- revoke_reason: string | null;
569
- revoked_at: string | null;
570
- revoked_by: string | null;
571
- subject_key: string;
572
- subject_type: AbuseReputationSubjectType;
573
- tier: AbuseRiskTier;
574
- trust_multiplier: number;
575
- limit_mode: RateLimitMode;
576
- absolute_limits: RateLimitAbsoluteLimits | null;
577
- updated_at: string;
578
- }
579
- export interface AbuseIntelligenceSummary {
580
- activeOverrideCount: number;
581
- challengePassRate: number | null;
582
- recentSignalCount: number;
583
- restrictedSubjectCount: number;
584
- tierCounts: Record<string, number>;
585
- totalSubjectCount: number;
586
- trustedSubjectCount: number;
587
- watchedSubjectCount: number;
588
- }
589
- export interface AbuseIntelligenceSnapshot {
590
- challenges: AbuseStepUpChallenge[];
591
- overrides: AbuseTrustOverride[];
592
- signals: AbuseActivitySignal[];
593
- subjects: AbuseReputationSubject[];
594
- summary: AbuseIntelligenceSummary;
595
- topRiskySubjects: AbuseReputationSubject[];
596
- }
597
- export interface GetAbuseIntelligenceSnapshotParams {
598
- limit?: number;
599
- signalLimit?: number;
600
- }
601
- export interface CreateAbuseTrustOverridePayload {
602
- expiresAt?: string | null;
603
- metadata?: Record<string, unknown>;
604
- reason: string;
605
- subjectKey: string;
606
- subjectType: AbuseReputationSubjectType;
607
- tier: AbuseRiskTier;
608
- trustMultiplier?: number;
609
- }
610
- export interface AbuseTrustOverrideResponse {
611
- override: AbuseTrustOverride;
612
- }
613
- export interface RevokeAbuseTrustOverridePayload {
614
- reason: string;
615
- }
616
- export type InfrastructurePushAppFlavor = 'development' | 'production' | 'staging';
617
- export type InfrastructurePushDeliveryKind = 'data_only' | 'notification';
618
- export type InfrastructurePushPlatform = 'all' | 'android' | 'ios';
619
- export type BlueGreenMonitoringWatcherHealth = 'live' | 'missing' | 'offline' | 'stale';
620
- export type BlueGreenMonitoringStatus = 'degraded' | 'healthy' | 'offline';
621
- export type BlueGreenMonitoringDockerHealth = 'healthy' | 'none' | 'starting' | 'unknown' | 'unhealthy';
622
- export interface BlueGreenMonitoringEvent {
623
- level: string;
624
- message: string;
625
- time: number;
626
- }
627
- export interface BlueGreenMonitoringContainerResource {
628
- color: string;
629
- containerId: string;
630
- cpuPercent: number | null;
631
- label: string;
632
- memoryBytes: number | null;
633
- rxBytes: number | null;
634
- serviceName: string;
635
- txBytes: number | null;
636
- }
637
- export interface BlueGreenMonitoringDockerContainer {
638
- containerId: string;
639
- cpuPercent: number | null;
640
- health: BlueGreenMonitoringDockerHealth;
641
- image: string | null;
642
- isMonitored: boolean;
643
- memoryBytes: number | null;
644
- name: string;
645
- ports: string | null;
646
- projectName: string | null;
647
- runningFor: string | null;
648
- rxBytes: number | null;
649
- serviceName: string | null;
650
- status: string | null;
651
- txBytes: number | null;
652
- }
653
- export interface BlueGreenMonitoringServiceHealth {
654
- containerId: string;
655
- health: BlueGreenMonitoringDockerHealth;
656
- name: string;
657
- projectName: string | null;
658
- serviceName: string;
659
- status: string | null;
660
- }
661
- export type BlueGreenDeploymentStageStatus = 'failed' | 'queued' | 'running' | 'skipped' | 'succeeded';
662
- export type BlueGreenDeploymentTarget = 'hive' | 'proxy' | 'support' | 'web';
663
- export interface BlueGreenDeploymentStage {
664
- buildServices: string[];
665
- color: string | null;
666
- durationMs: number | null;
667
- failureReason: string | null;
668
- finishedAt: number | null;
669
- id: string;
670
- serviceNames: string[];
671
- skippedReason: string | null;
672
- startedAt: number | null;
673
- status: BlueGreenDeploymentStageStatus;
674
- target: BlueGreenDeploymentTarget;
675
- }
676
- export interface BlueGreenTargetRuntime {
677
- activeColor: string | null;
678
- commitHash: string | null;
679
- commitShortHash: string | null;
680
- deploymentStamp: string | null;
681
- health: string;
682
- lastPromotedAt: number | null;
683
- standbyColor: string | null;
684
- }
685
- export interface BlueGreenMonitoringDeployment {
686
- activatedAt?: number | null;
687
- averageLatencyMs?: number | null;
688
- activeColor?: string | null;
689
- averageRequestsPerMinute?: number | null;
690
- buildDurationMs?: number | null;
691
- cancellationReason?: string | null;
692
- commitHash?: string | null;
693
- commitShortHash?: string | null;
694
- commitSubject?: string | null;
695
- dailyAverageRequests?: number | null;
696
- dailyPeakRequests?: number | null;
697
- dailyRequestCount?: number | null;
698
- deploymentKind?: string | null;
699
- deploymentStamp?: string | null;
700
- endedAt?: number | null;
701
- errorCount?: number | null;
702
- failureReason?: string | null;
703
- finishedAt?: number | null;
704
- firstRequestAt?: number | null;
705
- imageTag?: string | null;
706
- lastRequestAt?: number | null;
707
- lifetimeMs?: number | null;
708
- peakRequestsPerMinute?: number | null;
709
- requestCount?: number | null;
710
- runtimeState?: 'active' | 'standby' | null;
711
- startedAt?: number | null;
712
- status?: string | null;
713
- stages?: BlueGreenDeploymentStage[];
714
- }
715
- export interface BlueGreenBuildCacheHistoryEntry {
716
- buildServices: string[];
717
- commitHash: string | null;
718
- commitShortHash: string | null;
719
- commitSubject: string | null;
720
- deploymentKind: string | null;
721
- deploymentStamp: string | null;
722
- serviceHashes: Record<string, string>;
723
- targetColor: string | null;
724
- updatedAt: string | null;
725
- }
726
- export interface BlueGreenBuildCache {
727
- current: Record<string, string>;
728
- history: BlueGreenBuildCacheHistoryEntry[];
729
- total: number;
730
- }
731
- export interface BlueGreenDeploymentPin {
732
- activeColor: string | null;
733
- commitHash: string;
734
- commitShortHash: string | null;
735
- commitSubject: string | null;
736
- deploymentStamp: string | null;
737
- kind: 'deployment-pin';
738
- requestedAt: string;
739
- requestedBy: string;
740
- requestedByEmail: string | null;
741
- }
742
- export interface BlueGreenInstantRolloutRequest {
743
- kind: 'sync-standby';
744
- requestedAt: string;
745
- requestedBy: string;
746
- requestedByEmail: string | null;
747
- }
748
- export interface BlueGreenDeploymentRevertRequest {
749
- commitHash: string;
750
- commitShortHash: string | null;
751
- commitSubject: string | null;
752
- deploymentStamp: string | null;
753
- imageTag: string | null;
754
- instant: boolean;
755
- kind: 'deployment-revert';
756
- requestedAt: string;
757
- requestedBy: string;
758
- requestedByEmail: string | null;
759
- }
760
- export interface BlueGreenWatcherRecoveryRequest {
761
- kind: 'watcher-recovery';
762
- projectBranch: string | null;
763
- projectId: string;
764
- reason: string;
765
- requestedAt: string;
766
- requestedBy: string;
767
- requestedByEmail: string | null;
768
- watcherBranch: string | null;
769
- watcherHealth: string | null;
770
- }
771
- export interface BlueGreenDockerRecoveryCommand {
772
- args: string[];
773
- command: string;
774
- cwd: string | null;
775
- }
776
- export interface BlueGreenDockerRecoverySettings {
777
- dockerRecoveryPollMs: number;
778
- dockerRecoveryTimeoutMs: number | null;
779
- dockerRestartAfterMs: number | null;
780
- dockerRestartCommand: string[] | null;
781
- dockerRestartCooldownMs: number;
782
- dockerRestartDisabled: boolean;
783
- emailAlertCooldownMs: number;
784
- emailAlertRecipients: string[];
785
- emailAlertsEnabled: boolean;
786
- kind: 'docker-recovery-settings';
787
- postRestartCommandTimeoutMs: number;
788
- postRestartCommands: BlueGreenDockerRecoveryCommand[];
789
- updatedAt: string | null;
790
- updatedBy: string | null;
791
- updatedByEmail: string | null;
792
- }
793
- export interface BlueGreenMonitoringPeriodMetric {
794
- averageLatencyMs: number | null;
795
- bucketLabel: string;
796
- bucketStart: number;
797
- deploymentCount: number;
798
- errorCount: number;
799
- errorRate: number;
800
- peakRequestsPerMinute: number;
801
- requestCount: number;
802
- statusCounts: {
803
- clientError: number;
804
- informational: number;
805
- redirect: number;
806
- serverError: number;
807
- success: number;
808
- };
809
- }
810
- export interface BlueGreenMonitoringRequestLog {
811
- consoleLogs?: BlueGreenMonitoringRequestConsoleLog[];
812
- deploymentColor: string | null;
813
- deploymentKey: string | null;
814
- deploymentStamp: string | null;
815
- host: string | null;
816
- isInternal: boolean;
817
- method: string | null;
818
- path: string;
819
- requestTimeMs: number | null;
820
- relatedLogs?: BlueGreenMonitoringWatcherLog[];
821
- status: number | null;
822
- time: number;
823
- }
824
- export interface BlueGreenMonitoringRequestConsoleLog {
825
- containerId: string | null;
826
- deploymentColor: string | null;
827
- level: string;
828
- message: string;
829
- source: string;
830
- time: number;
831
- }
832
- export interface BlueGreenMonitoringRouteSummary {
833
- averageLatencyMs: number | null;
834
- errorCount: number;
835
- firstRequestAt: number | null;
836
- hostnames: string[];
837
- internalCount: number;
838
- isServerComponentRoute: boolean;
839
- lastRequestAt: number | null;
840
- methods: string[];
841
- pathname: string;
842
- querySignatures: string[];
843
- requestCount: number;
844
- rscCount: number;
845
- statusCounts: {
846
- clientError: number;
847
- informational: number;
848
- redirect: number;
849
- serverError: number;
850
- success: number;
851
- unknown: number;
852
- };
853
- }
854
- export interface BlueGreenMonitoringWatcherLog {
855
- activeColor: string | null;
856
- commitHash: string | null;
857
- commitShortHash: string | null;
858
- deploymentKey: string | null;
859
- deploymentKind: string | null;
860
- deploymentStamp: string | null;
861
- deploymentStatus: string | null;
862
- eventId?: string | null;
863
- eventType?: string | null;
864
- incidentId?: string | null;
865
- metadata?: Record<string, unknown>;
866
- level: string;
867
- message: string;
868
- time: number;
869
- }
870
- export type CronExecutionStatus = 'failed' | 'skipped' | 'success' | 'timeout';
871
- export type CronExecutionSource = 'manual' | 'scheduled';
872
- export type CronMonitoringStatus = 'live' | 'missing' | 'stale';
873
- export type CronRunStatus = 'failed' | 'processing' | 'queued' | 'skipped' | 'success' | 'timeout';
874
- export interface CronExecutionConsoleLog {
875
- containerId: string | null;
876
- deploymentColor: string | null;
877
- level: string;
878
- message: string;
879
- source: string;
880
- time: number;
881
- }
882
- export interface CronExecutionRecord {
883
- consoleLogs: CronExecutionConsoleLog[];
884
- description: string;
885
- durationMs: number;
886
- endedAt: number;
887
- error: string | null;
888
- httpStatus: number | null;
889
- id: string;
890
- jobId: string;
891
- path: string;
892
- response: string | null;
893
- schedule: string;
894
- scheduledAt: number | null;
895
- source: CronExecutionSource;
896
- startedAt: number;
897
- status: CronExecutionStatus;
898
- triggerId: string | null;
899
- }
900
- export interface CronRunRecord {
901
- consoleLogs: CronExecutionConsoleLog[];
902
- description: string;
903
- durationMs: number | null;
904
- endedAt: number | null;
905
- error: string | null;
906
- executionId: string | null;
907
- httpStatus: number | null;
908
- id: string;
909
- jobId: string;
910
- path: string;
911
- requestedAt: number;
912
- requestedBy: string | null;
913
- requestedByEmail: string | null;
914
- response: string | null;
915
- schedule: string;
916
- source: CronExecutionSource;
917
- startedAt: number | null;
918
- status: CronRunStatus;
919
- updatedAt: number;
920
- }
921
- export interface CronMonitoringJob {
922
- configuredEnabled: boolean;
923
- controlEnabled: boolean | null;
924
- description: string;
925
- enabled: boolean;
926
- failureStreak: number;
927
- id: string;
928
- lastExecution: CronExecutionRecord | null;
929
- lastScheduledAt: number | null;
930
- nextRunAt: number | null;
931
- path: string;
932
- schedule: string;
933
- }
934
- export interface CronMonitoringControl {
935
- enabled: boolean;
936
- jobs: Record<string, {
937
- enabled: boolean;
938
- updatedAt: number;
939
- updatedBy: string | null;
940
- updatedByEmail: string | null;
941
- }>;
942
- updatedAt: number | null;
943
- updatedBy: string | null;
944
- updatedByEmail: string | null;
945
- }
946
- export interface CronMonitoringSnapshot {
947
- control: CronMonitoringControl;
948
- enabled: boolean;
949
- jobs: CronMonitoringJob[];
950
- lastExecution: CronExecutionRecord | null;
951
- nextRunAt: number | null;
952
- overview: {
953
- enabledJobs: number;
954
- failedExecutions: number;
955
- failedJobs: number;
956
- processingRuns: number;
957
- queuedRuns: number;
958
- retainedExecutions: number;
959
- totalJobs: number;
960
- };
961
- retainedExecutionCount: number;
962
- runs: CronRunRecord[];
963
- source: {
964
- configAvailable: boolean;
965
- controlAvailable: boolean;
966
- runtimeDirAvailable: boolean;
967
- statusAvailable: boolean;
968
- };
969
- status: CronMonitoringStatus;
970
- updatedAt: number | null;
971
- }
972
- export interface BlueGreenMonitoringArchiveWindow {
973
- newestAt: number | null;
974
- oldestAt: number | null;
975
- }
976
- export interface BlueGreenMonitoringPaginatedResult<T> {
977
- hasNextPage: boolean;
978
- hasPreviousPage: boolean;
979
- items: T[];
980
- limit: number;
981
- offset: number;
982
- page: number;
983
- pageCount: number;
984
- total: number;
985
- window: BlueGreenMonitoringArchiveWindow;
986
- }
987
- export interface BlueGreenMonitoringRequestArchive extends BlueGreenMonitoringPaginatedResult<BlueGreenMonitoringRequestLog> {
988
- analytics: {
989
- averageLatencyMs: number | null;
990
- distinctRoutes: number;
991
- errorRequestCount: number;
992
- externalRequestCount: number;
993
- internalRequestCount: number;
994
- requestCount: number;
995
- retainedRequestCount: number;
996
- rscRequestCount: number;
997
- statusCodes: number[];
998
- timeframe: {
999
- days: number | null;
1000
- endAt: number;
1001
- startAt: number | null;
1002
- };
1003
- topRoutes: BlueGreenMonitoringRouteSummary[];
1004
- };
1005
- }
1006
- export interface BlueGreenMonitoringSnapshot {
1007
- analytics: {
1008
- current: {
1009
- daily: BlueGreenMonitoringPeriodMetric | null;
1010
- monthly: BlueGreenMonitoringPeriodMetric | null;
1011
- weekly: BlueGreenMonitoringPeriodMetric | null;
1012
- yearly: BlueGreenMonitoringPeriodMetric | null;
1013
- };
1014
- recentRequests: BlueGreenMonitoringRequestLog[];
1015
- totalPersistedLogs: number;
1016
- trends: {
1017
- daily: BlueGreenMonitoringPeriodMetric[];
1018
- monthly: BlueGreenMonitoringPeriodMetric[];
1019
- weekly: BlueGreenMonitoringPeriodMetric[];
1020
- yearly: BlueGreenMonitoringPeriodMetric[];
1021
- };
1022
- };
1023
- control: {
1024
- deploymentRevertRequest: BlueGreenDeploymentRevertRequest | null;
1025
- deploymentPin: BlueGreenDeploymentPin | null;
1026
- dockerRecoverySettings: BlueGreenDockerRecoverySettings;
1027
- instantRolloutRequest: BlueGreenInstantRolloutRequest | null;
1028
- };
1029
- deployments: BlueGreenMonitoringDeployment[];
1030
- buildCache: BlueGreenBuildCache;
1031
- recoveryCache: {
1032
- deployments: BlueGreenMonitoringDeployment[];
1033
- limit: number;
1034
- total: number;
1035
- };
1036
- dockerResources: {
1037
- allContainers: BlueGreenMonitoringDockerContainer[];
1038
- containers: BlueGreenMonitoringContainerResource[];
1039
- message: string | null;
1040
- serviceHealth: BlueGreenMonitoringServiceHealth[];
1041
- state: string;
1042
- totalCpuPercent: number;
1043
- totalMemoryBytes: number;
1044
- totalRxBytes: number;
1045
- totalTxBytes: number;
1046
- };
1047
- overview: {
1048
- averageBuildDurationMs: number | null;
1049
- currentAverageRequestsPerMinute: number | null;
1050
- currentPeakRequestsPerMinute: number | null;
1051
- currentRequestCount: number | null;
1052
- failedDeployments: number;
1053
- successfulDeployments: number;
1054
- totalDeployments: number;
1055
- totalPersistedLogs: number;
1056
- totalRequestsServed: number;
1057
- };
1058
- runtime: {
1059
- activatedAt: number | null;
1060
- activeColor: string | null;
1061
- averageRequestsPerMinute: number | null;
1062
- dailyAverageRequests: number | null;
1063
- dailyPeakRequests: number | null;
1064
- dailyRequestCount: number | null;
1065
- deploymentStamp: string | null;
1066
- lifetimeMs: number | null;
1067
- liveColors: string[];
1068
- peakRequestsPerMinute: number | null;
1069
- requestCount: number | null;
1070
- serviceContainers: Record<string, string>;
1071
- standbyColor: string | null;
1072
- state: string;
1073
- targets: Record<'hive' | 'web', BlueGreenTargetRuntime>;
1074
- };
1075
- source: {
1076
- historyAvailable: boolean;
1077
- monitoringDirAvailable: boolean;
1078
- statusAvailable: boolean;
1079
- };
1080
- watcher: {
1081
- args: string[];
1082
- events: BlueGreenMonitoringEvent[];
1083
- health: BlueGreenMonitoringWatcherHealth;
1084
- intervalMs: number | null;
1085
- lastCheckAt: number | null;
1086
- lastDeployAt: number | null;
1087
- lastDeployStatus: string | null;
1088
- logs: BlueGreenMonitoringWatcherLog[];
1089
- lastResult: Record<string, unknown> | null;
1090
- latestCommit: {
1091
- committedAt: string | null;
1092
- hash: string | null;
1093
- shortHash: string | null;
1094
- subject: string | null;
1095
- } | null;
1096
- lock: {
1097
- branch: string | null;
1098
- createdAt: string | null;
1099
- upstreamRef: string | null;
1100
- } | null;
1101
- nextCheckAt: number | null;
1102
- status: BlueGreenMonitoringStatus;
1103
- target: {
1104
- branch: string | null;
1105
- upstreamRef: string | null;
1106
- } | null;
1107
- updatedAt: number | null;
1108
- };
1109
- }
1110
- export interface RequestBlueGreenInstantRolloutResponse {
1111
- message: string;
1112
- request: BlueGreenInstantRolloutRequest;
1113
- }
1114
- export interface RequestBlueGreenDeploymentRevertPayload {
1115
- commitHash: string;
1116
- imageTag?: string | null;
1117
- instant?: boolean;
1118
- }
1119
- export interface RequestBlueGreenDeploymentRevertResponse {
1120
- message: string;
1121
- request: BlueGreenDeploymentRevertRequest;
1122
- }
1123
- export interface RequestBlueGreenWatcherRecoveryPayload {
1124
- projectBranch?: string | null;
1125
- projectId: string;
1126
- reason: string;
1127
- watcherBranch?: string | null;
1128
- watcherHealth?: string | null;
1129
- }
1130
- export interface RequestBlueGreenWatcherRecoveryResponse {
1131
- message: string;
1132
- request: BlueGreenWatcherRecoveryRequest;
1133
- }
1134
- export type UpdateBlueGreenDockerRecoverySettingsPayload = Omit<BlueGreenDockerRecoverySettings, 'dockerRestartCommand' | 'kind' | 'postRestartCommands' | 'updatedAt' | 'updatedBy' | 'updatedByEmail'>;
1135
- export interface UpdateBlueGreenDockerRecoverySettingsResponse {
1136
- message: string;
1137
- settings: BlueGreenDockerRecoverySettings;
1138
- }
1139
- export interface PinBlueGreenDeploymentPayload {
1140
- commitHash: string;
1141
- }
1142
- export interface PinBlueGreenDeploymentResponse {
1143
- message: string;
1144
- pin: BlueGreenDeploymentPin;
1145
- }
1146
- export interface ClearBlueGreenDeploymentPinResponse {
1147
- message: string;
1148
- }
1149
- export interface SendInfrastructurePushTestPayload {
1150
- appFlavor: InfrastructurePushAppFlavor;
1151
- body: string;
1152
- data?: Record<string, string>;
1153
- deliveryKind: InfrastructurePushDeliveryKind;
1154
- deviceId?: string;
1155
- platform: InfrastructurePushPlatform;
1156
- sendToAll: boolean;
1157
- title: string;
1158
- token?: string;
1159
- userId?: string;
1160
- }
1161
- export interface SendInfrastructurePushTestResponse {
1162
- deliveredCount: number;
1163
- invalidTokens: string[];
1164
- invalidTokensRemoved: number;
1165
- matchedDevices: number;
1166
- message: string;
1167
- success: true;
1168
- truncated: boolean;
1169
- }
1170
- export interface GetBlueGreenMonitoringSnapshotParams {
1171
- requestPreviewLimit?: number;
1172
- watcherLogLimit?: number;
1173
- }
1174
- export interface GetBlueGreenMonitoringArchiveParams {
1175
- page?: number;
1176
- pageSize?: number;
1177
- timeframeDays?: number;
1178
- }
1179
- export interface GetCronMonitoringExecutionArchiveParams {
1180
- jobId?: string;
1181
- page?: number;
1182
- pageSize?: number;
1183
- }
1184
- export interface QueueCronRunPayload {
1185
- jobId: string;
1186
- }
1187
- export interface QueueCronRunResponse {
1188
- message: string;
1189
- request: {
1190
- id: string;
1191
- jobId: string;
1192
- requestedAt: number;
1193
- requestedBy: string;
1194
- requestedByEmail: string | null;
1195
- };
1196
- }
1197
- export interface UpdateCronMonitoringControlPayload {
1198
- enabled: boolean;
1199
- jobId?: string;
1200
- }
1201
- export interface UpdateCronMonitoringControlResponse {
1202
- control: CronMonitoringControl;
1203
- message: string;
1204
- }
1205
- export type ObservabilityLogLevel = 'debug' | 'error' | 'info' | 'warn';
1206
- export type ObservabilitySource = 'api' | 'cron' | 'server';
1207
- export type ObservabilityDashboardMode = 'analytics' | 'cron' | 'deployments' | 'logs' | 'observability' | 'overview' | 'projects' | 'requests' | 'resources';
1208
- export interface InfrastructureProjectBranch {
1209
- commitHash: string | null;
1210
- commitShortHash: string | null;
1211
- commitSubject: string | null;
1212
- committedAt: number | null;
1213
- defaultBranch: boolean;
1214
- lastSyncedAt: number;
1215
- name: string;
1216
- protected: boolean;
1217
- }
1218
- export interface InfrastructureProject {
1219
- addons: {
1220
- cron: boolean;
1221
- logDrain: boolean;
1222
- nginx: boolean;
1223
- redis: boolean;
1224
- };
1225
- appRoot: string;
1226
- autoDeployEnabled: boolean;
1227
- branches: InfrastructureProjectBranch[];
1228
- createdAt: number;
1229
- deploymentStatus: string;
1230
- environment: string;
1231
- hostnames: string[];
1232
- id: string;
1233
- isBuiltin: boolean;
1234
- lastDeployedAt: number | null;
1235
- latestCommitHash: string | null;
1236
- latestCommitShortHash: string | null;
1237
- latestCommitSubject: string | null;
1238
- latestSyncedAt: number | null;
1239
- name: string;
1240
- port: number;
1241
- preset: string;
1242
- repo: {
1243
- owner: string;
1244
- repo: string;
1245
- url: string;
1246
- };
1247
- selectedBranch: string;
1248
- updatedAt: number;
1249
- }
1250
- export interface CreateInfrastructureProjectPayload {
1251
- appRoot?: string;
1252
- hostnames?: string[];
1253
- repoUrl: string;
1254
- selectedBranch?: string;
1255
- }
1256
- export interface UpdateInfrastructureProjectPayload {
1257
- appRoot?: string;
1258
- autoDeployEnabled?: boolean;
1259
- cronEnabled?: boolean;
1260
- hostnames?: string[];
1261
- logDrainEnabled?: boolean;
1262
- name?: string;
1263
- redisEnabled?: boolean;
1264
- selectedBranch?: string;
1265
- }
1266
- export interface InfrastructureProjectResponse {
1267
- project: InfrastructureProject;
1268
- }
1269
- export interface InfrastructureProjectsResponse {
1270
- projects: InfrastructureProject[];
1271
- }
1272
- export interface ObservabilityDeployment {
1273
- color: string | null;
1274
- commitHash: string | null;
1275
- commitShortHash: string | null;
1276
- commitSubject: string | null;
1277
- deploymentKind: string | null;
1278
- deploymentStamp: string | null;
1279
- durationMs: number | null;
1280
- errorCount: number;
1281
- failureReason: string | null;
1282
- imageTag: string | null;
1283
- lastRequestAt: number | null;
1284
- runtimeState: 'active' | 'standby' | null;
1285
- requestCount: number;
1286
- startedAt: number | null;
1287
- status: string;
1288
- stageSummary: {
1289
- blockedTargets: BlueGreenDeploymentTarget[];
1290
- cacheHitCount: number;
1291
- failedStageCount: number;
1292
- promotedTargets: BlueGreenDeploymentTarget[];
1293
- rebuildCount: number;
1294
- runningStageCount: number;
1295
- skippedStageCount: number;
1296
- totalStageCount: number;
1297
- };
1298
- stages: BlueGreenDeploymentStage[];
1299
- synthesizedStages: boolean;
1300
- supportBuildCacheHits: number;
1301
- supportBuildServiceCount: number;
1302
- supportBuildServices: string[];
1303
- targetStates: Record<'hive' | 'web', BlueGreenTargetRuntime>;
1304
- }
1305
- export interface ObservabilityLogEvent {
1306
- createdAt: number;
1307
- deploymentColor: string | null;
1308
- deploymentStamp: string | null;
1309
- durationMs: number | null;
1310
- errorName: string | null;
1311
- errorStack: string | null;
1312
- id: string;
1313
- ipAddress: string | null;
1314
- level: ObservabilityLogLevel;
1315
- message: string;
1316
- metadata: Record<string, unknown>;
1317
- requestId: string | null;
1318
- route: string | null;
1319
- source: ObservabilitySource;
1320
- status: number | null;
1321
- userAgent: string | null;
1322
- userEmail: string | null;
1323
- userId: string | null;
1324
- }
1325
- export interface ObservabilityLogFacet {
1326
- count: number;
1327
- errorCount: number;
1328
- value: string;
1329
- }
1330
- export interface ObservabilityLogFacets {
1331
- levels: ObservabilityLogFacet[];
1332
- routes: ObservabilityLogFacet[];
1333
- sources: ObservabilityLogFacet[];
1334
- statuses: ObservabilityLogFacet[];
1335
- users: ObservabilityLogFacet[];
1336
- }
1337
- export interface ObservabilityLogGroup {
1338
- createdAt: number;
1339
- deploymentColor: string | null;
1340
- deploymentStamp: string | null;
1341
- durationMs: number | null;
1342
- errorName: string | null;
1343
- errorStack: string | null;
1344
- eventCount: number;
1345
- events: ObservabilityLogEvent[];
1346
- firstEventAt: number;
1347
- id: string;
1348
- ipAddress: string | null;
1349
- level: ObservabilityLogLevel;
1350
- message: string;
1351
- metadata: Record<string, unknown>;
1352
- requestId: string | null;
1353
- route: string | null;
1354
- source: ObservabilitySource;
1355
- status: number | null;
1356
- userAgent: string | null;
1357
- userEmail: string | null;
1358
- userId: string | null;
1359
- }
1360
- export interface ObservabilityLogsResult extends ObservabilityPaginatedResult<ObservabilityLogGroup> {
1361
- facets: ObservabilityLogFacets;
1362
- }
1363
- export interface ObservabilityRequest {
1364
- cronJobId: string | null;
1365
- deploymentColor: string | null;
1366
- deploymentStamp: string | null;
1367
- durationMs: number | null;
1368
- endedAt: number;
1369
- errorMessage: string | null;
1370
- id: string;
1371
- ipAddress: string | null;
1372
- logCount: number;
1373
- method: string | null;
1374
- path: string | null;
1375
- relatedLogs: ObservabilityLogEvent[];
1376
- source: ObservabilitySource;
1377
- startedAt: number;
1378
- status: number | null;
1379
- userAgent: string | null;
1380
- userEmail: string | null;
1381
- userId: string | null;
1382
- }
1383
- export interface ObservabilityCronRun {
1384
- durationMs: number | null;
1385
- endedAt: number;
1386
- errorMessage: string | null;
1387
- httpStatus: number | null;
1388
- id: string;
1389
- jobId: string;
1390
- path: string;
1391
- requestId: string | null;
1392
- startedAt: number;
1393
- status: string;
1394
- }
1395
- export interface ObservabilityOverview {
1396
- cronFailureRate: number;
1397
- errorRate: number;
1398
- lastEventAt: number | null;
1399
- p95DurationMs: number | null;
1400
- recentErrors: ObservabilityLogEvent[];
1401
- requestCount: number;
1402
- serverErrorCount: number;
1403
- slowRequestCount: number;
1404
- sourceCounts: Record<string, number>;
1405
- topRoutes: Array<{
1406
- averageDurationMs: number | null;
1407
- errorCount: number;
1408
- path: string;
1409
- requestCount: number;
1410
- }>;
1411
- }
1412
- export interface ObservabilityAnalyticsBucket {
1413
- bucketStart: number;
1414
- cronRuns: number;
1415
- errors: number;
1416
- requests: number;
1417
- serverErrors: number;
1418
- }
1419
- export interface ObservabilityAnalytics {
1420
- buckets: ObservabilityAnalyticsBucket[];
1421
- statusFamilies: {
1422
- clientError: number;
1423
- redirect: number;
1424
- serverError: number;
1425
- success: number;
1426
- unknown: number;
1427
- };
1428
- topCronJobs: Array<{
1429
- failureCount: number;
1430
- jobId: string;
1431
- runCount: number;
1432
- }>;
1433
- topRoutes: ObservabilityOverview['topRoutes'];
1434
- }
1435
- export interface ObservabilityResourceBucket {
1436
- bucketStart: number;
1437
- cpuPercent: number | null;
1438
- hasLiveSample?: boolean;
1439
- memoryBytes: number | null;
1440
- rxBytes: number | null;
1441
- sampleCount?: number;
1442
- txBytes: number | null;
1443
- }
1444
- export type ObservabilityResourceSamplingStatus = 'gapped' | 'healthy' | 'live-only' | 'stale';
1445
- export interface ObservabilityResourceSampling {
1446
- bucketCount: number;
1447
- expectedIntervalMs: number;
1448
- gapBucketCount: number;
1449
- latestSampleAgeMs: number | null;
1450
- latestSampleAt: number | null;
1451
- sampledBucketCount: number;
1452
- status: ObservabilityResourceSamplingStatus;
1453
- }
1454
- export interface ObservabilityBuildProcess {
1455
- commitShortHash: string | null;
1456
- deploymentKind: string | null;
1457
- id: string;
1458
- name: string;
1459
- source: 'watcher';
1460
- startedAt: number | null;
1461
- status: string | null;
1462
- }
1463
- export interface ObservabilityBuildResources {
1464
- activeBuilds: ObservabilityBuildProcess[];
1465
- containers: BlueGreenMonitoringDockerContainer[];
1466
- state: string;
1467
- totalCpuPercent: number;
1468
- totalMemoryBytes: number;
1469
- totalRxBytes: number;
1470
- totalTxBytes: number;
1471
- }
1472
- export interface ObservabilityResources {
1473
- buildBuckets: ObservabilityResourceBucket[];
1474
- buildResources: ObservabilityBuildResources;
1475
- buckets: ObservabilityResourceBucket[];
1476
- dockerResources: BlueGreenMonitoringSnapshot['dockerResources'];
1477
- sampling: {
1478
- build: ObservabilityResourceSampling;
1479
- runtime: ObservabilityResourceSampling;
1480
- };
1481
- }
1482
- export interface ObservabilityPaginatedResult<T> {
1483
- hasNextPage: boolean;
1484
- items: T[];
1485
- page: number;
1486
- pageSize: number;
1487
- total: number;
1488
- }
1489
- export interface GetObservabilityParams {
1490
- deploymentStamp?: string;
1491
- level?: ObservabilityLogLevel | 'all';
1492
- page?: number;
1493
- pageSize?: number;
1494
- projectId?: string;
1495
- q?: string;
1496
- requestId?: string;
1497
- route?: string;
1498
- since?: number;
1499
- source?: ObservabilitySource | 'all';
1500
- status?: string;
1501
- timeframeHours?: number;
1502
- until?: number;
1503
- user?: string;
1504
- }
1505
- export interface GetBlueGreenMonitoringRequestArchiveParams extends GetBlueGreenMonitoringArchiveParams {
1506
- q?: string;
1507
- render?: 'all' | 'document' | 'rsc';
1508
- route?: string;
1509
- since?: number;
1510
- status?: string;
1511
- traffic?: 'all' | 'external' | 'internal';
1512
- until?: number;
1513
- }
1514
- export type InfrastructureStressTestStatus = 'aborted' | 'completed' | 'failed' | 'queued' | 'running';
1515
- export type InfrastructureStressTestProfileId = 'smoke' | 'spike' | 'steady' | 'ramp';
1516
- export interface InfrastructureStressTestTarget {
1517
- baseUrl: string;
1518
- defaultPath: string;
1519
- description: string | null;
1520
- id: string;
1521
- label: string;
1522
- }
1523
- export interface InfrastructureStressTestProfile {
1524
- concurrency: number;
1525
- durationSeconds: number;
1526
- id: InfrastructureStressTestProfileId;
1527
- label: string;
1528
- maxRequestsPerSecond: number;
1529
- rampSeconds: number;
1530
- }
1531
- export interface InfrastructureStressTestSummary {
1532
- averageRequestsPerSecond: number | null;
1533
- capacityJudgement: string | null;
1534
- errorRate: number | null;
1535
- estimatedSteadyUsers: number | null;
1536
- failureMode: string | null;
1537
- peakRequestsPerSecond: number | null;
1538
- safeRequestsPerSecond: number | null;
1539
- saturationPoint: string | null;
1540
- totalRequests: number;
1541
- latency: {
1542
- p50Ms: number | null;
1543
- p95Ms: number | null;
1544
- p99Ms: number | null;
1545
- };
1546
- }
1547
- export interface InfrastructureStressTestResourceSpike {
1548
- baseline: number | null;
1549
- delta: number | null;
1550
- metric: 'cpu' | 'memory' | 'rx' | 'tx';
1551
- peak: number | null;
1552
- recoveryMs: number | null;
1553
- timeToPeakMs: number | null;
1554
- unit: 'bytes' | 'percent';
1555
- }
1556
- export interface InfrastructureStressTestSample {
1557
- activeRequests: number;
1558
- cpuPercent: number | null;
1559
- errorRate: number | null;
1560
- latencyP50Ms: number | null;
1561
- latencyP95Ms: number | null;
1562
- latencyP99Ms: number | null;
1563
- memoryBytes: number | null;
1564
- requestsPerSecond: number;
1565
- rxBytes: number | null;
1566
- sampledAt: number;
1567
- statusCodes: Record<string, number>;
1568
- txBytes: number | null;
1569
- virtualUsers: number;
1570
- }
1571
- export interface InfrastructureStressTestRun {
1572
- abortReason: string | null;
1573
- abortRequestedAt: number | null;
1574
- createdAt: number;
1575
- endedAt: number | null;
1576
- errorMessage: string | null;
1577
- id: string;
1578
- profile: InfrastructureStressTestProfile;
1579
- queuedAt: number;
1580
- requestedBy: string | null;
1581
- requestedByEmail: string | null;
1582
- resourceSpikes: InfrastructureStressTestResourceSpike[];
1583
- resultNotes: string | null;
1584
- samples: InfrastructureStressTestSample[];
1585
- startedAt: number | null;
1586
- status: InfrastructureStressTestStatus;
1587
- summary: InfrastructureStressTestSummary;
1588
- target: InfrastructureStressTestTarget;
1589
- updatedAt: number;
1590
- }
1591
- export interface InfrastructureStressTestSnapshot {
1592
- activeRun: InfrastructureStressTestRun | null;
1593
- canManage: boolean;
1594
- profiles: InfrastructureStressTestProfile[];
1595
- recentRuns: InfrastructureStressTestRun[];
1596
- targets: InfrastructureStressTestTarget[];
1597
- }
1598
- export interface QueueInfrastructureStressTestPayload {
1599
- concurrency?: number;
1600
- durationSeconds?: number;
1601
- maxRequestsPerSecond?: number;
1602
- path?: string;
1603
- profileId: InfrastructureStressTestProfileId;
1604
- rampSeconds?: number;
1605
- targetId: string;
1606
- }
1607
- export interface QueueInfrastructureStressTestResponse {
1608
- message: string;
1609
- run: InfrastructureStressTestRun;
1610
- }
1611
- export interface AbortInfrastructureStressTestPayload {
1612
- reason?: string;
1613
- }
1614
- export interface AbortInfrastructureStressTestResponse {
1615
- message: string;
1616
- run: InfrastructureStressTestRun;
1617
- }
1618
- export declare function sendInfrastructurePushTest(payload: SendInfrastructurePushTestPayload, options?: InternalApiClientOptions): Promise<SendInfrastructurePushTestResponse>;
1619
- export declare function updateMobileVersionPolicies(payload: MobileVersionPoliciesPayload, options?: InternalApiClientOptions): Promise<{
1620
- data: MobileVersionPoliciesPayload;
1621
- message: string;
1622
- }>;
1623
- export declare function getMobileDeploymentState(options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1624
- export declare function replaceMobileDeploymentEnvFile(envFile: string, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1625
- export declare function saveMobileDeploymentEnvKeyValue(name: MobileDeploymentEnvKeyName, value: string, previousNameOrOptions?: MobileDeploymentEnvKeyName | InternalApiClientOptions, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1626
- export declare function clearMobileDeploymentEnvKeyValue(name: MobileDeploymentEnvKeyName, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1627
- export declare function saveMobileDeploymentScalarValue(name: MobileDeploymentScalarName, value: string, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1628
- export declare function clearMobileDeploymentScalarValue(name: MobileDeploymentScalarName, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1629
- export declare function saveMobileDeploymentSecret(payload: SaveMobileDeploymentSecretPayload, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1630
- export declare function clearMobileDeploymentSecret(payload: ClearMobileDeploymentSecretPayload, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1631
- export declare function uploadMobileDeploymentFileResource(kind: MobileDeploymentFileKind, file: File, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1632
- export declare function activateMobileDeploymentDraft(options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1633
- export declare function rollbackMobileDeploymentVersion(options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1634
- export declare function issueMobileDeploymentCiToken(payload: IssueMobileDeploymentCiTokenPayload, options?: InternalApiClientOptions): Promise<IssueMobileDeploymentCiTokenResponse>;
1635
- export declare function revokeMobileDeploymentCiToken(tokenId: string, options?: InternalApiClientOptions): Promise<MobileDeploymentState>;
1636
- export declare function getGitHubBotState(options?: InternalApiClientOptions): Promise<GitHubBotState>;
1637
- export declare function saveGitHubBotConfiguration(payload: SaveGitHubBotConfigurationPayload, options?: InternalApiClientOptions): Promise<GitHubBotState>;
1638
- export declare function testGitHubBotConfiguration(options?: InternalApiClientOptions): Promise<TestGitHubBotConfigurationResponse>;
1639
- export declare function issueGitHubBotWatcherClient(payload: IssueGitHubBotWatcherClientPayload, options?: InternalApiClientOptions): Promise<IssueGitHubBotWatcherClientResponse>;
1640
- export declare function enableGitHubBotWatcherAutoPickup(options?: InternalApiClientOptions): Promise<EnableGitHubBotWatcherAutoPickupResponse>;
1641
- export declare function revokeGitHubBotWatcherClient(clientId: string, options?: InternalApiClientOptions): Promise<GitHubBotState>;
1642
- export declare function listAiGatewayModels(params?: ListAiGatewayModelsParams, options?: InternalApiClientOptions): Promise<AIModelUI[]>;
1643
- export declare function listAiGatewayModelsPage(params?: ListAiGatewayModelsPageParams, options?: InternalApiClientOptions): Promise<AiGatewayModelsPage>;
1644
- export declare function listAiGatewayModelsLegacy(params?: ListAiGatewayModelsParams, options?: InternalApiClientOptions): Promise<AIModelUI[]>;
1645
- export declare function resolveInfrastructureWorkspaceId(wsId: string, options?: InternalApiClientOptions): Promise<ResolveInfrastructureWorkspaceIdResponse>;
1646
- export declare function listAIWhitelistDomains(params?: ListAIWhitelistDomainsParams, options?: InternalApiClientOptions): Promise<AIWhitelistDomainsResponse>;
1647
- export declare function createAIWhitelistDomain(payload: CreateAIWhitelistDomainPayload, options?: InternalApiClientOptions): Promise<AIWhitelistDomainResponse>;
1648
- export declare function updateAIWhitelistDomain(domain: string, payload: UpdateAIWhitelistDomainPayload, options?: InternalApiClientOptions): Promise<{
1649
- success: true;
1650
- }>;
1651
- export declare function deleteAIWhitelistDomain(domain: string, options?: InternalApiClientOptions): Promise<{
1652
- success: true;
1653
- }>;
1654
- export declare function listAIWhitelistEmails(params?: ListAIWhitelistEmailsParams, options?: InternalApiClientOptions): Promise<AIWhitelistEmailsResponse>;
1655
- export declare function createAIWhitelistEmail(payload: CreateAIWhitelistEmailPayload, options?: InternalApiClientOptions): Promise<AIWhitelistEmailResponse>;
1656
- export declare function updateAIWhitelistEmail(email: string, payload: UpdateAIWhitelistEmailPayload, options?: InternalApiClientOptions): Promise<{
1657
- success: true;
1658
- }>;
1659
- export declare function deleteAIWhitelistEmail(email: string, options?: InternalApiClientOptions): Promise<{
1660
- success: true;
1661
- }>;
1662
- export declare function listExternalApps(options?: InternalApiClientOptions): Promise<ExternalAppsResponse>;
1663
- export declare function saveExternalApp(payload: SaveExternalAppPayload, options?: InternalApiClientOptions): Promise<SaveExternalAppResponse>;
1664
- export declare function rotateExternalAppSecret(appId: string, options?: InternalApiClientOptions): Promise<SaveExternalAppResponse>;
1665
- export declare function listAiAgents(options?: InternalApiClientOptions): Promise<AiAgentsResponse>;
1666
- export declare function saveAiAgent(payload: SaveAiAgentPayload, options?: InternalApiClientOptions): Promise<SaveAiAgentResponse>;
1667
- export declare function createChatIntegration(payload: CreateChatIntegrationPayload, options?: InternalApiClientOptions): Promise<CreateChatIntegrationResponse>;
1668
- export declare function deployAiAgentChannel(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<AiAgentDeployResponse>;
1669
- export declare function pauseAiAgentChannel(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<SaveAiAgentResponse>;
1670
- export declare function testAiAgentChannel(agentId: string, channelId: string, prompt?: string, options?: InternalApiClientOptions): Promise<AiAgentTestResponse>;
1671
- export declare function rotateAiAgentChannelSecret(agentId: string, channelId: string, name: string, value?: string, options?: InternalApiClientOptions): Promise<RotateAiAgentChannelSecretResponse>;
1672
- export declare function getAiAgentZaloPersonalStatus(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<AiAgentZaloPersonalStatusResponse>;
1673
- export declare function runAiAgentZaloPersonalAction(agentId: string, channelId: string, action: AiAgentZaloPersonalAction, options?: InternalApiClientOptions): Promise<AiAgentZaloPersonalActionResponse>;
1674
- export declare function startAiAgentZaloPersonalQrLogin(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<AiAgentZaloPersonalQrLoginResponse>;
1675
- export declare function getAiAgentZaloPersonalQrLoginStatus(agentId: string, channelId: string, sessionId: string, options?: InternalApiClientOptions): Promise<AiAgentZaloPersonalQrLoginResponse>;
1676
- export declare function abortAiAgentZaloPersonalQrLogin(agentId: string, channelId: string, sessionId: string, options?: InternalApiClientOptions): Promise<AiAgentZaloPersonalQrLoginResponse>;
1677
- export declare function saveAiAgentIdentityLink(payload: AiAgentIdentityLink, options?: InternalApiClientOptions): Promise<SaveAiAgentIdentityResponse>;
1678
- export declare function listAiAgentExternalThreads(params?: {
1679
- agentId?: string | null;
1680
- channelId?: string | null;
1681
- wsId?: string | null;
1682
- }, options?: InternalApiClientOptions): Promise<AiAgentExternalThreadsResponse>;
1683
- export declare function listAiAgentExternalMessages(threadId: string, params?: {
1684
- limit?: number;
1685
- }, options?: InternalApiClientOptions): Promise<AiAgentExternalMessagesResponse>;
1686
- export declare function syncAiAgentExternalThread(threadId: string, options?: InternalApiClientOptions): Promise<AiAgentExternalSyncResponse>;
1687
- export declare function draftAiAgentExternalResponse(threadId: string, prompt: string, options?: InternalApiClientOptions): Promise<AiAgentExternalDraftResponse>;
1688
- export declare function sendAiAgentExternalResponse(threadId: string, content: string, options?: InternalApiClientOptions): Promise<{
1689
- message: ChatMessage;
1690
- }>;
1691
- export declare function getAppCoordinationSessionPolicy(options?: InternalApiClientOptions): Promise<AppCoordinationSessionPolicyResponse>;
1692
- export declare function saveAppCoordinationSessionPolicy(payload: AppCoordinationSessionPolicy, options?: InternalApiClientOptions): Promise<AppCoordinationSessionPolicyResponse>;
1693
- export declare function getAbuseIntelligenceSnapshot(params?: GetAbuseIntelligenceSnapshotParams, options?: InternalApiClientOptions): Promise<AbuseIntelligenceSnapshot>;
1694
- export declare function createAbuseTrustOverride(payload: CreateAbuseTrustOverridePayload, options?: InternalApiClientOptions): Promise<AbuseTrustOverrideResponse>;
1695
- export declare function revokeAbuseTrustOverride(overrideId: string, payload: RevokeAbuseTrustOverridePayload, options?: InternalApiClientOptions): Promise<AbuseTrustOverrideResponse>;
1696
- export declare function getBlueGreenMonitoringSnapshot(params?: GetBlueGreenMonitoringSnapshotParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringSnapshot>;
1697
- export declare function getBlueGreenMonitoringRequestArchive(params?: GetBlueGreenMonitoringRequestArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringRequestArchive>;
1698
- export declare function getBlueGreenMonitoringWatcherLogArchive(params?: GetBlueGreenMonitoringArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringPaginatedResult<BlueGreenMonitoringWatcherLog>>;
1699
- export declare function getCronMonitoringSnapshot(options?: InternalApiClientOptions): Promise<CronMonitoringSnapshot>;
1700
- export declare function getCronMonitoringExecutionArchive(params?: GetCronMonitoringExecutionArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringPaginatedResult<CronExecutionRecord>>;
1701
- export declare function queueCronRun(payload: QueueCronRunPayload, options?: InternalApiClientOptions): Promise<QueueCronRunResponse>;
1702
- export declare function updateCronMonitoringControl(payload: UpdateCronMonitoringControlPayload, options?: InternalApiClientOptions): Promise<UpdateCronMonitoringControlResponse>;
1703
- export declare function getInfrastructureStressTestSnapshot(options?: InternalApiClientOptions): Promise<InfrastructureStressTestSnapshot>;
1704
- export declare function queueInfrastructureStressTest(payload: QueueInfrastructureStressTestPayload, options?: InternalApiClientOptions): Promise<QueueInfrastructureStressTestResponse>;
1705
- export declare function getInfrastructureStressTestRun(runId: string, options?: InternalApiClientOptions): Promise<InfrastructureStressTestRun>;
1706
- export declare function abortInfrastructureStressTest(runId: string, payload?: AbortInfrastructureStressTestPayload, options?: InternalApiClientOptions): Promise<AbortInfrastructureStressTestResponse>;
1707
- export declare function getObservabilityOverview(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityOverview>;
1708
- export declare function getObservabilityDeployments(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityDeployment>>;
1709
- export declare function getObservabilityLogs(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityLogsResult>;
1710
- export declare function getObservabilityRequests(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityRequest>>;
1711
- export declare function getObservabilityAnalytics(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityAnalytics>;
1712
- export declare function getObservabilityCronRuns(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityCronRun>>;
1713
- export declare function getObservabilityResources(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityResources>;
1714
- export declare function getInfrastructureProjects(options?: InternalApiClientOptions): Promise<InfrastructureProjectsResponse>;
1715
- export declare function createInfrastructureProject(payload: CreateInfrastructureProjectPayload, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1716
- export declare function updateInfrastructureProject(projectId: string, payload: UpdateInfrastructureProjectPayload, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1717
- export declare function deleteInfrastructureProject(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1718
- export declare function syncInfrastructureProject(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1719
- export declare function queueInfrastructureProjectDeploy(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1720
- export declare function requestBlueGreenInstantRollout(options?: InternalApiClientOptions): Promise<RequestBlueGreenInstantRolloutResponse>;
1721
- export declare function requestBlueGreenDeploymentRevert(payload: RequestBlueGreenDeploymentRevertPayload, options?: InternalApiClientOptions): Promise<RequestBlueGreenDeploymentRevertResponse>;
1722
- export declare function requestBlueGreenWatcherRecovery(payload: RequestBlueGreenWatcherRecoveryPayload, options?: InternalApiClientOptions): Promise<RequestBlueGreenWatcherRecoveryResponse>;
1723
- export declare function updateBlueGreenDockerRecoverySettings(payload: UpdateBlueGreenDockerRecoverySettingsPayload, options?: InternalApiClientOptions): Promise<UpdateBlueGreenDockerRecoverySettingsResponse>;
1724
- export declare function pinBlueGreenDeployment(payload: PinBlueGreenDeploymentPayload, options?: InternalApiClientOptions): Promise<PinBlueGreenDeploymentResponse>;
1725
- export declare function clearBlueGreenDeploymentPin(options?: InternalApiClientOptions): Promise<ClearBlueGreenDeploymentPinResponse>;
1
+ export * from './infrastructure/abuse';
2
+ export * from './infrastructure/ai';
3
+ export * from './infrastructure/apps';
4
+ export * from './infrastructure/blocked-ips';
5
+ export * from './infrastructure/cron';
6
+ export * from './infrastructure/github-bot';
7
+ export * from './infrastructure/mobile';
8
+ export * from './infrastructure/monitoring';
9
+ export * from './infrastructure/native-settings';
10
+ export * from './infrastructure/realtime';
11
+ export * from './infrastructure/types';
12
+ export * from './infrastructure/workspace';
1726
13
  //# sourceMappingURL=infrastructure.d.ts.map