@tuturuuu/internal-api 0.0.2 → 0.1.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 (108) hide show
  1. package/dist/ai-memory.d.ts +76 -0
  2. package/dist/ai-memory.d.ts.map +1 -0
  3. package/dist/ai-memory.js +59 -0
  4. package/dist/ai.d.ts +67 -3
  5. package/dist/ai.d.ts.map +1 -1
  6. package/dist/ai.js +121 -0
  7. package/dist/auth.d.ts +121 -1
  8. package/dist/auth.d.ts.map +1 -1
  9. package/dist/auth.js +111 -0
  10. package/dist/calendar.d.ts +17 -1
  11. package/dist/calendar.d.ts.map +1 -1
  12. package/dist/calendar.js +9 -0
  13. package/dist/chat-conversations.d.ts +81 -0
  14. package/dist/chat-conversations.d.ts.map +1 -0
  15. package/dist/chat-conversations.js +384 -0
  16. package/dist/chat-internal.d.ts +11 -0
  17. package/dist/chat-internal.d.ts.map +1 -0
  18. package/dist/chat-internal.js +39 -0
  19. package/dist/chat-legacy.d.ts +23 -0
  20. package/dist/chat-legacy.d.ts.map +1 -0
  21. package/dist/chat-legacy.js +68 -0
  22. package/dist/chat-types.d.ts +262 -0
  23. package/dist/chat-types.d.ts.map +1 -0
  24. package/dist/chat-types.js +2 -0
  25. package/dist/chat.d.ts +3 -45
  26. package/dist/chat.d.ts.map +1 -1
  27. package/dist/chat.js +17 -65
  28. package/dist/client.d.ts +5 -0
  29. package/dist/client.d.ts.map +1 -1
  30. package/dist/client.js +50 -5
  31. package/dist/education.d.ts +288 -2
  32. package/dist/education.d.ts.map +1 -1
  33. package/dist/education.js +176 -0
  34. package/dist/external-project-team.d.ts +51 -0
  35. package/dist/external-project-team.d.ts.map +1 -0
  36. package/dist/external-project-team.js +137 -0
  37. package/dist/external-projects.d.ts +98 -10
  38. package/dist/external-projects.d.ts.map +1 -1
  39. package/dist/external-projects.js +92 -33
  40. package/dist/finance.d.ts +491 -3
  41. package/dist/finance.d.ts.map +1 -1
  42. package/dist/finance.js +611 -1
  43. package/dist/hive.d.ts +739 -0
  44. package/dist/hive.d.ts.map +1 -0
  45. package/dist/hive.js +333 -0
  46. package/dist/index.d.ts +31 -17
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +350 -8
  49. package/dist/infrastructure.d.ts +955 -1
  50. package/dist/infrastructure.d.ts.map +1 -1
  51. package/dist/infrastructure.js +595 -0
  52. package/dist/inventory.d.ts +355 -0
  53. package/dist/inventory.d.ts.map +1 -0
  54. package/dist/inventory.js +268 -0
  55. package/dist/mail.d.ts +125 -0
  56. package/dist/mail.d.ts.map +1 -1
  57. package/dist/mail.js +112 -1
  58. package/dist/meet.d.ts +54 -0
  59. package/dist/meet.d.ts.map +1 -0
  60. package/dist/meet.js +37 -0
  61. package/dist/mind.d.ts +55 -0
  62. package/dist/mind.d.ts.map +1 -0
  63. package/dist/mind.js +84 -0
  64. package/dist/posts.d.ts +33 -0
  65. package/dist/posts.d.ts.map +1 -1
  66. package/dist/posts.js +42 -0
  67. package/dist/promotions.d.ts +54 -0
  68. package/dist/promotions.d.ts.map +1 -1
  69. package/dist/promotions.js +52 -0
  70. package/dist/settings.d.ts +28 -1
  71. package/dist/settings.d.ts.map +1 -1
  72. package/dist/settings.js +68 -0
  73. package/dist/storage.d.ts +32 -21
  74. package/dist/storage.d.ts.map +1 -1
  75. package/dist/storage.js +52 -32
  76. package/dist/tasks.d.ts +222 -4
  77. package/dist/tasks.d.ts.map +1 -1
  78. package/dist/tasks.js +202 -0
  79. package/dist/teach.d.ts +130 -0
  80. package/dist/teach.d.ts.map +1 -0
  81. package/dist/teach.js +110 -0
  82. package/dist/topic-announcements.d.ts +235 -0
  83. package/dist/topic-announcements.d.ts.map +1 -0
  84. package/dist/topic-announcements.js +182 -0
  85. package/dist/tulearn.d.ts +223 -0
  86. package/dist/tulearn.d.ts.map +1 -0
  87. package/dist/tulearn.js +97 -0
  88. package/dist/tutoring.d.ts +152 -0
  89. package/dist/tutoring.d.ts.map +1 -0
  90. package/dist/tutoring.js +58 -0
  91. package/dist/user-group-activity.d.ts +54 -0
  92. package/dist/user-group-activity.d.ts.map +1 -0
  93. package/dist/user-group-activity.js +11 -0
  94. package/dist/user-groups.d.ts +35 -0
  95. package/dist/user-groups.d.ts.map +1 -0
  96. package/dist/user-groups.js +84 -0
  97. package/dist/users.d.ts +83 -1
  98. package/dist/users.d.ts.map +1 -1
  99. package/dist/users.js +137 -0
  100. package/dist/workspace-configs.d.ts +2 -0
  101. package/dist/workspace-configs.d.ts.map +1 -1
  102. package/dist/workspace-configs.js +3 -1
  103. package/dist/workspace-user-audit.d.ts +1 -0
  104. package/dist/workspace-user-audit.d.ts.map +1 -1
  105. package/dist/workspaces.d.ts +57 -0
  106. package/dist/workspaces.d.ts.map +1 -1
  107. package/dist/workspaces.js +58 -1
  108. package/package.json +59 -6
@@ -1,3 +1,5 @@
1
+ import type { AIModelUI, AIWhitelistDomain, AIWhitelistEmail } from '@tuturuuu/types';
2
+ import type { ChatMessage } from './chat-types';
1
3
  import { type InternalApiClientOptions } from './client';
2
4
  export interface MobilePlatformVersionPolicyPayload {
3
5
  effectiveVersion: string | null;
@@ -10,6 +12,353 @@ export interface MobileVersionPoliciesPayload {
10
12
  ios: MobilePlatformVersionPolicyPayload;
11
13
  webOtpEnabled: boolean;
12
14
  }
15
+ export interface ExternalAppRegistration {
16
+ allowedScopes: string[];
17
+ createdAt: string | null;
18
+ createdBy: string | null;
19
+ displayName: string;
20
+ enabled: boolean;
21
+ id: string;
22
+ origins: string[];
23
+ secretIssuedAt: string | null;
24
+ secretLastFour: string | null;
25
+ updatedAt: string | null;
26
+ updatedBy: string | null;
27
+ }
28
+ export interface ExternalAppsResponse {
29
+ apps: ExternalAppRegistration[];
30
+ }
31
+ export type AiAgentAdapter = 'discord' | 'zalo';
32
+ export type AiAgentChannelStatus = 'draft' | 'deployed' | 'error' | 'paused';
33
+ export interface AiAgentSecretDescriptor {
34
+ configured: boolean;
35
+ lastFour: string | null;
36
+ name: string;
37
+ }
38
+ export interface AiAgentChannelConfig {
39
+ adapter: AiAgentAdapter;
40
+ displayName: string;
41
+ enabled: boolean;
42
+ id: string;
43
+ lastDeployedAt: string | null;
44
+ lastError: string | null;
45
+ lastEventAt: string | null;
46
+ mentionRoleIds: string[];
47
+ secrets: AiAgentSecretDescriptor[];
48
+ status: AiAgentChannelStatus;
49
+ webhookUrl: string | null;
50
+ workspaceId: string;
51
+ autoRespond?: boolean;
52
+ discordGuildId?: string | null;
53
+ externalChannelId?: string | null;
54
+ historySyncEnabled?: boolean;
55
+ zaloOfficialAccountId?: string | null;
56
+ }
57
+ export interface AiAgentDefinition {
58
+ channels: AiAgentChannelConfig[];
59
+ createdAt: string | null;
60
+ enabled: boolean;
61
+ id: string;
62
+ instructions: string;
63
+ modelId: string;
64
+ name: string;
65
+ temperature: number | null;
66
+ tools: string[];
67
+ updatedAt: string | null;
68
+ }
69
+ export interface AiAgentIdentityLink {
70
+ externalUserId: string;
71
+ platformUserId: string;
72
+ provider: 'zalo';
73
+ providerAccountId: string;
74
+ workspaceId: string;
75
+ }
76
+ export interface AiAgentsResponse {
77
+ agents: AiAgentDefinition[];
78
+ identities: AiAgentIdentityLink[];
79
+ }
80
+ export interface AiAgentExternalThread {
81
+ adapter: AiAgentAdapter;
82
+ agentId: string;
83
+ channelId: string;
84
+ conversationId: string;
85
+ createdAt: string;
86
+ externalChannelId: string | null;
87
+ externalThreadId: string;
88
+ id: string;
89
+ lastEventAt: string | null;
90
+ lastSyncedAt: string | null;
91
+ latestMessage: ChatMessage | null;
92
+ messageCount: number;
93
+ metadata: Record<string, unknown>;
94
+ title: string | null;
95
+ updatedAt: string;
96
+ wsId: string;
97
+ }
98
+ export interface AiAgentExternalThreadsResponse {
99
+ threads: AiAgentExternalThread[];
100
+ }
101
+ export interface AiAgentExternalMessagesResponse {
102
+ messages: ChatMessage[];
103
+ }
104
+ export interface AiAgentExternalSyncResponse {
105
+ message: string | null;
106
+ ok: boolean;
107
+ synced: number;
108
+ }
109
+ export interface AiAgentExternalDraftResponse {
110
+ draft: string;
111
+ sourceMessages: number;
112
+ }
113
+ export interface InternalAppSessionPolicyOverride {
114
+ internalAppAccessTtlSeconds?: number;
115
+ internalAppRefreshEarlySeconds?: number;
116
+ internalAppRefreshTtlSeconds?: number;
117
+ }
118
+ export interface AppCoordinationSessionPolicy {
119
+ browserRefreshReplayGraceSeconds: number;
120
+ cliAccessTtlSeconds: number;
121
+ cliRefreshTtlSeconds: number;
122
+ externalAppBearerTtlSeconds: number;
123
+ internalAppAccessTtlSeconds: number;
124
+ internalAppOverrides: Record<string, InternalAppSessionPolicyOverride>;
125
+ internalAppRefreshEarlySeconds: number;
126
+ internalAppRefreshTtlSeconds: number;
127
+ }
128
+ export interface AppCoordinationSessionPolicyResponse {
129
+ policy: AppCoordinationSessionPolicy;
130
+ source: 'default' | 'environment' | 'secret';
131
+ }
132
+ export interface AIWhitelistDomainsResponse {
133
+ count: number;
134
+ data: AIWhitelistDomain[];
135
+ }
136
+ export interface AIWhitelistDomainResponse {
137
+ data: AIWhitelistDomain;
138
+ }
139
+ export interface AIWhitelistEmailsResponse {
140
+ count: number;
141
+ data: AIWhitelistEmail[];
142
+ }
143
+ export interface AIWhitelistEmailResponse {
144
+ data: AIWhitelistEmail;
145
+ }
146
+ export interface ListAiGatewayModelsParams {
147
+ enabled?: boolean;
148
+ ids?: string[];
149
+ q?: string;
150
+ provider?: string;
151
+ tag?: string;
152
+ type?: 'all' | 'embedding' | 'image' | 'language';
153
+ }
154
+ export interface ListAiGatewayModelsPageParams extends ListAiGatewayModelsParams {
155
+ limit?: number | string;
156
+ page?: number | string;
157
+ }
158
+ export interface AiGatewayModelsPage {
159
+ data: AIModelUI[];
160
+ pagination: {
161
+ limit: number;
162
+ page: number;
163
+ total: number;
164
+ };
165
+ }
166
+ export interface ResolveInfrastructureWorkspaceIdResponse {
167
+ workspaceId: string | null;
168
+ }
169
+ export interface ListAIWhitelistDomainsParams {
170
+ page?: number | string;
171
+ pageSize?: number | string;
172
+ q?: string;
173
+ }
174
+ export interface ListAIWhitelistEmailsParams {
175
+ page?: number | string;
176
+ pageSize?: number | string;
177
+ q?: string;
178
+ }
179
+ export type CreateAIWhitelistDomainPayload = Pick<AIWhitelistDomain, 'description' | 'domain'> & Partial<Pick<AIWhitelistDomain, 'enabled'>>;
180
+ export type UpdateAIWhitelistDomainPayload = Pick<AIWhitelistDomain, 'enabled'>;
181
+ export type CreateAIWhitelistEmailPayload = Pick<AIWhitelistEmail, 'email'> & Partial<Pick<AIWhitelistEmail, 'enabled'>>;
182
+ export type UpdateAIWhitelistEmailPayload = Pick<AIWhitelistEmail, 'enabled'>;
183
+ export interface SaveExternalAppPayload {
184
+ allowedScopes?: string[];
185
+ displayName: string;
186
+ enabled: boolean;
187
+ id: string;
188
+ issueSecret?: boolean;
189
+ origins: string[];
190
+ }
191
+ export interface SaveExternalAppResponse {
192
+ app: ExternalAppRegistration;
193
+ secret: string | null;
194
+ }
195
+ export interface SaveAiAgentPayload {
196
+ channels?: Array<{
197
+ adapter: AiAgentAdapter;
198
+ displayName?: string;
199
+ enabled?: boolean;
200
+ id: string;
201
+ mentionRoleIds?: string[];
202
+ secrets?: Record<string, string | null | undefined>;
203
+ status?: AiAgentChannelStatus;
204
+ workspaceId: string;
205
+ autoRespond?: boolean;
206
+ discordGuildId?: string | null;
207
+ externalChannelId?: string | null;
208
+ historySyncEnabled?: boolean;
209
+ zaloOfficialAccountId?: string | null;
210
+ }>;
211
+ enabled?: boolean;
212
+ id: string;
213
+ instructions?: string;
214
+ modelId?: string;
215
+ name: string;
216
+ temperature?: number | null;
217
+ tools?: string[];
218
+ }
219
+ export interface SaveAiAgentResponse {
220
+ agent: AiAgentDefinition;
221
+ }
222
+ export interface AiAgentDeployResponse {
223
+ agent: AiAgentDefinition;
224
+ channel: AiAgentChannelConfig;
225
+ missing: string[];
226
+ ok: boolean;
227
+ webhookUrl: string;
228
+ }
229
+ export interface AiAgentDiagnosticCheck {
230
+ detail?: string | null;
231
+ id: string;
232
+ label: string;
233
+ ok: boolean;
234
+ }
235
+ export interface AiAgentTestResponse {
236
+ checks?: AiAgentDiagnosticCheck[];
237
+ ok: boolean;
238
+ response: string;
239
+ }
240
+ export interface RotateAiAgentChannelSecretResponse {
241
+ secret: {
242
+ lastFour: string;
243
+ name: string;
244
+ value: string;
245
+ };
246
+ }
247
+ export interface SaveAiAgentIdentityResponse {
248
+ identity: AiAgentIdentityLink;
249
+ }
250
+ export type AbuseRiskTier = 'challenge_required' | 'restricted' | 'standard' | 'trusted' | 'watch';
251
+ export type AbuseReputationSubjectType = 'api_key' | 'cidr' | 'ip' | 'session' | 'user' | 'user_location';
252
+ 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';
253
+ export type AbuseChallengeStatus = 'expired' | 'failed' | 'issued' | 'passed';
254
+ export interface AbuseReputationSubject {
255
+ api_key_id: string | null;
256
+ cidr: string | null;
257
+ confidence_score: number;
258
+ created_at: string;
259
+ id: string;
260
+ ip_address: string | null;
261
+ last_negative_signal_at: string | null;
262
+ last_positive_signal_at: string | null;
263
+ last_seen_at: string;
264
+ metadata: Record<string, unknown>;
265
+ negative_signal_count: number;
266
+ positive_signal_count: number;
267
+ reputation_score: number;
268
+ subject_key: string;
269
+ subject_type: AbuseReputationSubjectType;
270
+ tier: AbuseRiskTier;
271
+ trust_multiplier: number;
272
+ updated_at: string;
273
+ user_id: string | null;
274
+ workspace_id: string | null;
275
+ }
276
+ export interface AbuseActivitySignal {
277
+ api_key_id: string | null;
278
+ confidence_delta: number;
279
+ created_at: string;
280
+ id: string;
281
+ ip_address: string | null;
282
+ metadata: Record<string, unknown>;
283
+ method: string | null;
284
+ reason_code: string | null;
285
+ risk_tier: AbuseRiskTier;
286
+ route: string | null;
287
+ score_delta: number;
288
+ signal_type: AbuseSignalType;
289
+ subject_key: string;
290
+ subject_type: AbuseReputationSubjectType;
291
+ user_id: string | null;
292
+ workspace_id: string | null;
293
+ }
294
+ export interface AbuseStepUpChallenge {
295
+ challenge_type: string;
296
+ completed_at: string | null;
297
+ created_at: string;
298
+ expires_at: string;
299
+ id: string;
300
+ ip_address: string | null;
301
+ metadata: Record<string, unknown>;
302
+ risk_tier: AbuseRiskTier;
303
+ route: string | null;
304
+ status: AbuseChallengeStatus;
305
+ subject_key: string;
306
+ updated_at: string;
307
+ user_id: string | null;
308
+ }
309
+ export interface AbuseTrustOverride {
310
+ created_at: string;
311
+ created_by: string | null;
312
+ expires_at: string | null;
313
+ id: string;
314
+ metadata: Record<string, unknown>;
315
+ reason: string;
316
+ revoke_reason: string | null;
317
+ revoked_at: string | null;
318
+ revoked_by: string | null;
319
+ subject_key: string;
320
+ subject_type: AbuseReputationSubjectType;
321
+ tier: AbuseRiskTier;
322
+ trust_multiplier: number;
323
+ updated_at: string;
324
+ }
325
+ export interface AbuseIntelligenceSummary {
326
+ activeOverrideCount: number;
327
+ challengePassRate: number | null;
328
+ recentSignalCount: number;
329
+ restrictedSubjectCount: number;
330
+ tierCounts: Record<string, number>;
331
+ totalSubjectCount: number;
332
+ trustedSubjectCount: number;
333
+ watchedSubjectCount: number;
334
+ }
335
+ export interface AbuseIntelligenceSnapshot {
336
+ challenges: AbuseStepUpChallenge[];
337
+ overrides: AbuseTrustOverride[];
338
+ signals: AbuseActivitySignal[];
339
+ subjects: AbuseReputationSubject[];
340
+ summary: AbuseIntelligenceSummary;
341
+ topRiskySubjects: AbuseReputationSubject[];
342
+ }
343
+ export interface GetAbuseIntelligenceSnapshotParams {
344
+ limit?: number;
345
+ signalLimit?: number;
346
+ }
347
+ export interface CreateAbuseTrustOverridePayload {
348
+ expiresAt?: string | null;
349
+ metadata?: Record<string, unknown>;
350
+ reason: string;
351
+ subjectKey: string;
352
+ subjectType: AbuseReputationSubjectType;
353
+ tier: AbuseRiskTier;
354
+ trustMultiplier?: number;
355
+ }
356
+ export interface AbuseTrustOverrideResponse {
357
+ override: AbuseTrustOverride;
358
+ }
359
+ export interface RevokeAbuseTrustOverridePayload {
360
+ reason: string;
361
+ }
13
362
  export type InfrastructurePushAppFlavor = 'development' | 'production' | 'staging';
14
363
  export type InfrastructurePushDeliveryKind = 'data_only' | 'notification';
15
364
  export type InfrastructurePushPlatform = 'all' | 'android' | 'ios';
@@ -55,12 +404,37 @@ export interface BlueGreenMonitoringServiceHealth {
55
404
  serviceName: string;
56
405
  status: string | null;
57
406
  }
407
+ export type BlueGreenDeploymentStageStatus = 'failed' | 'queued' | 'running' | 'skipped' | 'succeeded';
408
+ export type BlueGreenDeploymentTarget = 'hive' | 'proxy' | 'support' | 'web';
409
+ export interface BlueGreenDeploymentStage {
410
+ buildServices: string[];
411
+ color: string | null;
412
+ durationMs: number | null;
413
+ failureReason: string | null;
414
+ finishedAt: number | null;
415
+ id: string;
416
+ serviceNames: string[];
417
+ skippedReason: string | null;
418
+ startedAt: number | null;
419
+ status: BlueGreenDeploymentStageStatus;
420
+ target: BlueGreenDeploymentTarget;
421
+ }
422
+ export interface BlueGreenTargetRuntime {
423
+ activeColor: string | null;
424
+ commitHash: string | null;
425
+ commitShortHash: string | null;
426
+ deploymentStamp: string | null;
427
+ health: string;
428
+ lastPromotedAt: number | null;
429
+ standbyColor: string | null;
430
+ }
58
431
  export interface BlueGreenMonitoringDeployment {
59
432
  activatedAt?: number | null;
60
433
  averageLatencyMs?: number | null;
61
434
  activeColor?: string | null;
62
435
  averageRequestsPerMinute?: number | null;
63
436
  buildDurationMs?: number | null;
437
+ cancellationReason?: string | null;
64
438
  commitHash?: string | null;
65
439
  commitShortHash?: string | null;
66
440
  commitSubject?: string | null;
@@ -71,6 +445,7 @@ export interface BlueGreenMonitoringDeployment {
71
445
  deploymentStamp?: string | null;
72
446
  endedAt?: number | null;
73
447
  errorCount?: number | null;
448
+ failureReason?: string | null;
74
449
  finishedAt?: number | null;
75
450
  firstRequestAt?: number | null;
76
451
  imageTag?: string | null;
@@ -81,6 +456,23 @@ export interface BlueGreenMonitoringDeployment {
81
456
  runtimeState?: 'active' | 'standby' | null;
82
457
  startedAt?: number | null;
83
458
  status?: string | null;
459
+ stages?: BlueGreenDeploymentStage[];
460
+ }
461
+ export interface BlueGreenBuildCacheHistoryEntry {
462
+ buildServices: string[];
463
+ commitHash: string | null;
464
+ commitShortHash: string | null;
465
+ commitSubject: string | null;
466
+ deploymentKind: string | null;
467
+ deploymentStamp: string | null;
468
+ serviceHashes: Record<string, string>;
469
+ targetColor: string | null;
470
+ updatedAt: string | null;
471
+ }
472
+ export interface BlueGreenBuildCache {
473
+ current: Record<string, string>;
474
+ history: BlueGreenBuildCacheHistoryEntry[];
475
+ total: number;
84
476
  }
85
477
  export interface BlueGreenDeploymentPin {
86
478
  activeColor: string | null;
@@ -99,6 +491,39 @@ export interface BlueGreenInstantRolloutRequest {
99
491
  requestedBy: string;
100
492
  requestedByEmail: string | null;
101
493
  }
494
+ export interface BlueGreenWatcherRecoveryRequest {
495
+ kind: 'watcher-recovery';
496
+ projectBranch: string | null;
497
+ projectId: string;
498
+ reason: string;
499
+ requestedAt: string;
500
+ requestedBy: string;
501
+ requestedByEmail: string | null;
502
+ watcherBranch: string | null;
503
+ watcherHealth: string | null;
504
+ }
505
+ export interface BlueGreenDockerRecoveryCommand {
506
+ args: string[];
507
+ command: string;
508
+ cwd: string | null;
509
+ }
510
+ export interface BlueGreenDockerRecoverySettings {
511
+ dockerRecoveryPollMs: number;
512
+ dockerRecoveryTimeoutMs: number | null;
513
+ dockerRestartAfterMs: number | null;
514
+ dockerRestartCommand: string[] | null;
515
+ dockerRestartCooldownMs: number;
516
+ dockerRestartDisabled: boolean;
517
+ emailAlertCooldownMs: number;
518
+ emailAlertRecipients: string[];
519
+ emailAlertsEnabled: boolean;
520
+ kind: 'docker-recovery-settings';
521
+ postRestartCommandTimeoutMs: number;
522
+ postRestartCommands: BlueGreenDockerRecoveryCommand[];
523
+ updatedAt: string | null;
524
+ updatedBy: string | null;
525
+ updatedByEmail: string | null;
526
+ }
102
527
  export interface BlueGreenMonitoringPeriodMetric {
103
528
  averageLatencyMs: number | null;
104
529
  bucketLabel: string;
@@ -117,6 +542,7 @@ export interface BlueGreenMonitoringPeriodMetric {
117
542
  };
118
543
  }
119
544
  export interface BlueGreenMonitoringRequestLog {
545
+ consoleLogs?: BlueGreenMonitoringRequestConsoleLog[];
120
546
  deploymentColor: string | null;
121
547
  deploymentKey: string | null;
122
548
  deploymentStamp: string | null;
@@ -125,9 +551,18 @@ export interface BlueGreenMonitoringRequestLog {
125
551
  method: string | null;
126
552
  path: string;
127
553
  requestTimeMs: number | null;
554
+ relatedLogs?: BlueGreenMonitoringWatcherLog[];
128
555
  status: number | null;
129
556
  time: number;
130
557
  }
558
+ export interface BlueGreenMonitoringRequestConsoleLog {
559
+ containerId: string | null;
560
+ deploymentColor: string | null;
561
+ level: string;
562
+ message: string;
563
+ source: string;
564
+ time: number;
565
+ }
131
566
  export interface BlueGreenMonitoringRouteSummary {
132
567
  averageLatencyMs: number | null;
133
568
  errorCount: number;
@@ -158,10 +593,116 @@ export interface BlueGreenMonitoringWatcherLog {
158
593
  deploymentKind: string | null;
159
594
  deploymentStamp: string | null;
160
595
  deploymentStatus: string | null;
596
+ eventId?: string | null;
597
+ eventType?: string | null;
598
+ incidentId?: string | null;
599
+ metadata?: Record<string, unknown>;
161
600
  level: string;
162
601
  message: string;
163
602
  time: number;
164
603
  }
604
+ export type CronExecutionStatus = 'failed' | 'skipped' | 'success' | 'timeout';
605
+ export type CronExecutionSource = 'manual' | 'scheduled';
606
+ export type CronMonitoringStatus = 'live' | 'missing' | 'stale';
607
+ export type CronRunStatus = 'failed' | 'processing' | 'queued' | 'skipped' | 'success' | 'timeout';
608
+ export interface CronExecutionConsoleLog {
609
+ containerId: string | null;
610
+ deploymentColor: string | null;
611
+ level: string;
612
+ message: string;
613
+ source: string;
614
+ time: number;
615
+ }
616
+ export interface CronExecutionRecord {
617
+ consoleLogs: CronExecutionConsoleLog[];
618
+ description: string;
619
+ durationMs: number;
620
+ endedAt: number;
621
+ error: string | null;
622
+ httpStatus: number | null;
623
+ id: string;
624
+ jobId: string;
625
+ path: string;
626
+ response: string | null;
627
+ schedule: string;
628
+ scheduledAt: number | null;
629
+ source: CronExecutionSource;
630
+ startedAt: number;
631
+ status: CronExecutionStatus;
632
+ triggerId: string | null;
633
+ }
634
+ export interface CronRunRecord {
635
+ consoleLogs: CronExecutionConsoleLog[];
636
+ description: string;
637
+ durationMs: number | null;
638
+ endedAt: number | null;
639
+ error: string | null;
640
+ executionId: string | null;
641
+ httpStatus: number | null;
642
+ id: string;
643
+ jobId: string;
644
+ path: string;
645
+ requestedAt: number;
646
+ requestedBy: string | null;
647
+ requestedByEmail: string | null;
648
+ response: string | null;
649
+ schedule: string;
650
+ source: CronExecutionSource;
651
+ startedAt: number | null;
652
+ status: CronRunStatus;
653
+ updatedAt: number;
654
+ }
655
+ export interface CronMonitoringJob {
656
+ configuredEnabled: boolean;
657
+ controlEnabled: boolean | null;
658
+ description: string;
659
+ enabled: boolean;
660
+ failureStreak: number;
661
+ id: string;
662
+ lastExecution: CronExecutionRecord | null;
663
+ lastScheduledAt: number | null;
664
+ nextRunAt: number | null;
665
+ path: string;
666
+ schedule: string;
667
+ }
668
+ export interface CronMonitoringControl {
669
+ enabled: boolean;
670
+ jobs: Record<string, {
671
+ enabled: boolean;
672
+ updatedAt: number;
673
+ updatedBy: string | null;
674
+ updatedByEmail: string | null;
675
+ }>;
676
+ updatedAt: number | null;
677
+ updatedBy: string | null;
678
+ updatedByEmail: string | null;
679
+ }
680
+ export interface CronMonitoringSnapshot {
681
+ control: CronMonitoringControl;
682
+ enabled: boolean;
683
+ jobs: CronMonitoringJob[];
684
+ lastExecution: CronExecutionRecord | null;
685
+ nextRunAt: number | null;
686
+ overview: {
687
+ enabledJobs: number;
688
+ failedExecutions: number;
689
+ failedJobs: number;
690
+ processingRuns: number;
691
+ queuedRuns: number;
692
+ retainedExecutions: number;
693
+ totalJobs: number;
694
+ };
695
+ retainedExecutionCount: number;
696
+ runs: CronRunRecord[];
697
+ source: {
698
+ configAvailable: boolean;
699
+ controlAvailable: boolean;
700
+ runtimeDirAvailable: boolean;
701
+ statusAvailable: boolean;
702
+ };
703
+ status: CronMonitoringStatus;
704
+ updatedAt: number | null;
705
+ }
165
706
  export interface BlueGreenMonitoringArchiveWindow {
166
707
  newestAt: number | null;
167
708
  oldestAt: number | null;
@@ -215,9 +756,11 @@ export interface BlueGreenMonitoringSnapshot {
215
756
  };
216
757
  control: {
217
758
  deploymentPin: BlueGreenDeploymentPin | null;
759
+ dockerRecoverySettings: BlueGreenDockerRecoverySettings;
218
760
  instantRolloutRequest: BlueGreenInstantRolloutRequest | null;
219
761
  };
220
762
  deployments: BlueGreenMonitoringDeployment[];
763
+ buildCache: BlueGreenBuildCache;
221
764
  recoveryCache: {
222
765
  deployments: BlueGreenMonitoringDeployment[];
223
766
  limit: number;
@@ -260,6 +803,7 @@ export interface BlueGreenMonitoringSnapshot {
260
803
  serviceContainers: Record<string, string>;
261
804
  standbyColor: string | null;
262
805
  state: string;
806
+ targets: Record<'hive' | 'web', BlueGreenTargetRuntime>;
263
807
  };
264
808
  source: {
265
809
  historyAvailable: boolean;
@@ -300,6 +844,22 @@ export interface RequestBlueGreenInstantRolloutResponse {
300
844
  message: string;
301
845
  request: BlueGreenInstantRolloutRequest;
302
846
  }
847
+ export interface RequestBlueGreenWatcherRecoveryPayload {
848
+ projectBranch?: string | null;
849
+ projectId: string;
850
+ reason: string;
851
+ watcherBranch?: string | null;
852
+ watcherHealth?: string | null;
853
+ }
854
+ export interface RequestBlueGreenWatcherRecoveryResponse {
855
+ message: string;
856
+ request: BlueGreenWatcherRecoveryRequest;
857
+ }
858
+ export type UpdateBlueGreenDockerRecoverySettingsPayload = Omit<BlueGreenDockerRecoverySettings, 'dockerRestartCommand' | 'kind' | 'postRestartCommands' | 'updatedAt' | 'updatedBy' | 'updatedByEmail'>;
859
+ export interface UpdateBlueGreenDockerRecoverySettingsResponse {
860
+ message: string;
861
+ settings: BlueGreenDockerRecoverySettings;
862
+ }
303
863
  export interface PinBlueGreenDeploymentPayload {
304
864
  commitHash: string;
305
865
  }
@@ -340,15 +900,409 @@ export interface GetBlueGreenMonitoringArchiveParams {
340
900
  pageSize?: number;
341
901
  timeframeDays?: number;
342
902
  }
903
+ export interface GetCronMonitoringExecutionArchiveParams {
904
+ jobId?: string;
905
+ page?: number;
906
+ pageSize?: number;
907
+ }
908
+ export interface QueueCronRunPayload {
909
+ jobId: string;
910
+ }
911
+ export interface QueueCronRunResponse {
912
+ message: string;
913
+ request: {
914
+ id: string;
915
+ jobId: string;
916
+ requestedAt: number;
917
+ requestedBy: string;
918
+ requestedByEmail: string | null;
919
+ };
920
+ }
921
+ export interface UpdateCronMonitoringControlPayload {
922
+ enabled: boolean;
923
+ jobId?: string;
924
+ }
925
+ export interface UpdateCronMonitoringControlResponse {
926
+ control: CronMonitoringControl;
927
+ message: string;
928
+ }
929
+ export type ObservabilityLogLevel = 'debug' | 'error' | 'info' | 'warn';
930
+ export type ObservabilitySource = 'api' | 'cron' | 'server';
931
+ export type ObservabilityDashboardMode = 'analytics' | 'cron' | 'deployments' | 'logs' | 'observability' | 'overview' | 'projects' | 'requests' | 'resources';
932
+ export interface InfrastructureProjectBranch {
933
+ commitHash: string | null;
934
+ commitShortHash: string | null;
935
+ commitSubject: string | null;
936
+ committedAt: number | null;
937
+ defaultBranch: boolean;
938
+ lastSyncedAt: number;
939
+ name: string;
940
+ protected: boolean;
941
+ }
942
+ export interface InfrastructureProject {
943
+ addons: {
944
+ cron: boolean;
945
+ logDrain: boolean;
946
+ nginx: boolean;
947
+ redis: boolean;
948
+ };
949
+ appRoot: string;
950
+ autoDeployEnabled: boolean;
951
+ branches: InfrastructureProjectBranch[];
952
+ createdAt: number;
953
+ deploymentStatus: string;
954
+ environment: string;
955
+ hostnames: string[];
956
+ id: string;
957
+ isBuiltin: boolean;
958
+ lastDeployedAt: number | null;
959
+ latestCommitHash: string | null;
960
+ latestCommitShortHash: string | null;
961
+ latestCommitSubject: string | null;
962
+ latestSyncedAt: number | null;
963
+ name: string;
964
+ port: number;
965
+ preset: string;
966
+ repo: {
967
+ owner: string;
968
+ repo: string;
969
+ url: string;
970
+ };
971
+ selectedBranch: string;
972
+ updatedAt: number;
973
+ }
974
+ export interface CreateInfrastructureProjectPayload {
975
+ appRoot?: string;
976
+ hostnames?: string[];
977
+ repoUrl: string;
978
+ selectedBranch?: string;
979
+ }
980
+ export interface UpdateInfrastructureProjectPayload {
981
+ appRoot?: string;
982
+ autoDeployEnabled?: boolean;
983
+ cronEnabled?: boolean;
984
+ hostnames?: string[];
985
+ logDrainEnabled?: boolean;
986
+ name?: string;
987
+ redisEnabled?: boolean;
988
+ selectedBranch?: string;
989
+ }
990
+ export interface InfrastructureProjectResponse {
991
+ project: InfrastructureProject;
992
+ }
993
+ export interface InfrastructureProjectsResponse {
994
+ projects: InfrastructureProject[];
995
+ }
996
+ export interface ObservabilityDeployment {
997
+ color: string | null;
998
+ commitHash: string | null;
999
+ commitShortHash: string | null;
1000
+ commitSubject: string | null;
1001
+ deploymentKind: string | null;
1002
+ deploymentStamp: string | null;
1003
+ durationMs: number | null;
1004
+ errorCount: number;
1005
+ failureReason: string | null;
1006
+ imageTag: string | null;
1007
+ lastRequestAt: number | null;
1008
+ runtimeState: 'active' | 'standby' | null;
1009
+ requestCount: number;
1010
+ startedAt: number | null;
1011
+ status: string;
1012
+ stageSummary: {
1013
+ blockedTargets: BlueGreenDeploymentTarget[];
1014
+ cacheHitCount: number;
1015
+ failedStageCount: number;
1016
+ promotedTargets: BlueGreenDeploymentTarget[];
1017
+ rebuildCount: number;
1018
+ runningStageCount: number;
1019
+ skippedStageCount: number;
1020
+ totalStageCount: number;
1021
+ };
1022
+ stages: BlueGreenDeploymentStage[];
1023
+ synthesizedStages: boolean;
1024
+ supportBuildCacheHits: number;
1025
+ supportBuildServiceCount: number;
1026
+ supportBuildServices: string[];
1027
+ targetStates: Record<'hive' | 'web', BlueGreenTargetRuntime>;
1028
+ }
1029
+ export interface ObservabilityLogEvent {
1030
+ createdAt: number;
1031
+ deploymentColor: string | null;
1032
+ deploymentStamp: string | null;
1033
+ durationMs: number | null;
1034
+ errorName: string | null;
1035
+ errorStack: string | null;
1036
+ id: string;
1037
+ ipAddress: string | null;
1038
+ level: ObservabilityLogLevel;
1039
+ message: string;
1040
+ metadata: Record<string, unknown>;
1041
+ requestId: string | null;
1042
+ route: string | null;
1043
+ source: ObservabilitySource;
1044
+ status: number | null;
1045
+ userAgent: string | null;
1046
+ }
1047
+ export interface ObservabilityLogFacet {
1048
+ count: number;
1049
+ errorCount: number;
1050
+ value: string;
1051
+ }
1052
+ export interface ObservabilityLogFacets {
1053
+ levels: ObservabilityLogFacet[];
1054
+ routes: ObservabilityLogFacet[];
1055
+ sources: ObservabilityLogFacet[];
1056
+ statuses: ObservabilityLogFacet[];
1057
+ }
1058
+ export interface ObservabilityLogGroup {
1059
+ createdAt: number;
1060
+ deploymentColor: string | null;
1061
+ deploymentStamp: string | null;
1062
+ durationMs: number | null;
1063
+ errorName: string | null;
1064
+ errorStack: string | null;
1065
+ eventCount: number;
1066
+ events: ObservabilityLogEvent[];
1067
+ firstEventAt: number;
1068
+ id: string;
1069
+ ipAddress: string | null;
1070
+ level: ObservabilityLogLevel;
1071
+ message: string;
1072
+ metadata: Record<string, unknown>;
1073
+ requestId: string | null;
1074
+ route: string | null;
1075
+ source: ObservabilitySource;
1076
+ status: number | null;
1077
+ userAgent: string | null;
1078
+ }
1079
+ export interface ObservabilityLogsResult extends ObservabilityPaginatedResult<ObservabilityLogGroup> {
1080
+ facets: ObservabilityLogFacets;
1081
+ }
1082
+ export interface ObservabilityRequest {
1083
+ cronJobId: string | null;
1084
+ deploymentColor: string | null;
1085
+ deploymentStamp: string | null;
1086
+ durationMs: number | null;
1087
+ endedAt: number;
1088
+ errorMessage: string | null;
1089
+ id: string;
1090
+ ipAddress: string | null;
1091
+ logCount: number;
1092
+ method: string | null;
1093
+ path: string | null;
1094
+ relatedLogs: ObservabilityLogEvent[];
1095
+ source: ObservabilitySource;
1096
+ startedAt: number;
1097
+ status: number | null;
1098
+ userAgent: string | null;
1099
+ }
1100
+ export interface ObservabilityCronRun {
1101
+ durationMs: number | null;
1102
+ endedAt: number;
1103
+ errorMessage: string | null;
1104
+ httpStatus: number | null;
1105
+ id: string;
1106
+ jobId: string;
1107
+ path: string;
1108
+ requestId: string | null;
1109
+ startedAt: number;
1110
+ status: string;
1111
+ }
1112
+ export interface ObservabilityOverview {
1113
+ cronFailureRate: number;
1114
+ errorRate: number;
1115
+ lastEventAt: number | null;
1116
+ p95DurationMs: number | null;
1117
+ recentErrors: ObservabilityLogEvent[];
1118
+ requestCount: number;
1119
+ serverErrorCount: number;
1120
+ slowRequestCount: number;
1121
+ sourceCounts: Record<string, number>;
1122
+ topRoutes: Array<{
1123
+ averageDurationMs: number | null;
1124
+ errorCount: number;
1125
+ path: string;
1126
+ requestCount: number;
1127
+ }>;
1128
+ }
1129
+ export interface ObservabilityAnalyticsBucket {
1130
+ bucketStart: number;
1131
+ cronRuns: number;
1132
+ errors: number;
1133
+ requests: number;
1134
+ serverErrors: number;
1135
+ }
1136
+ export interface ObservabilityAnalytics {
1137
+ buckets: ObservabilityAnalyticsBucket[];
1138
+ statusFamilies: {
1139
+ clientError: number;
1140
+ redirect: number;
1141
+ serverError: number;
1142
+ success: number;
1143
+ unknown: number;
1144
+ };
1145
+ topCronJobs: Array<{
1146
+ failureCount: number;
1147
+ jobId: string;
1148
+ runCount: number;
1149
+ }>;
1150
+ topRoutes: ObservabilityOverview['topRoutes'];
1151
+ }
1152
+ export interface ObservabilityResourceBucket {
1153
+ bucketStart: number;
1154
+ cpuPercent: number | null;
1155
+ hasLiveSample?: boolean;
1156
+ memoryBytes: number | null;
1157
+ rxBytes: number | null;
1158
+ sampleCount?: number;
1159
+ txBytes: number | null;
1160
+ }
1161
+ export type ObservabilityResourceSamplingStatus = 'gapped' | 'healthy' | 'live-only' | 'stale';
1162
+ export interface ObservabilityResourceSampling {
1163
+ bucketCount: number;
1164
+ expectedIntervalMs: number;
1165
+ gapBucketCount: number;
1166
+ latestSampleAgeMs: number | null;
1167
+ latestSampleAt: number | null;
1168
+ sampledBucketCount: number;
1169
+ status: ObservabilityResourceSamplingStatus;
1170
+ }
1171
+ export interface ObservabilityBuildProcess {
1172
+ commitShortHash: string | null;
1173
+ deploymentKind: string | null;
1174
+ id: string;
1175
+ name: string;
1176
+ source: 'watcher';
1177
+ startedAt: number | null;
1178
+ status: string | null;
1179
+ }
1180
+ export interface ObservabilityBuildResources {
1181
+ activeBuilds: ObservabilityBuildProcess[];
1182
+ containers: BlueGreenMonitoringDockerContainer[];
1183
+ state: string;
1184
+ totalCpuPercent: number;
1185
+ totalMemoryBytes: number;
1186
+ totalRxBytes: number;
1187
+ totalTxBytes: number;
1188
+ }
1189
+ export interface ObservabilityResources {
1190
+ buildBuckets: ObservabilityResourceBucket[];
1191
+ buildResources: ObservabilityBuildResources;
1192
+ buckets: ObservabilityResourceBucket[];
1193
+ dockerResources: BlueGreenMonitoringSnapshot['dockerResources'];
1194
+ sampling: {
1195
+ build: ObservabilityResourceSampling;
1196
+ runtime: ObservabilityResourceSampling;
1197
+ };
1198
+ }
1199
+ export interface ObservabilityPaginatedResult<T> {
1200
+ hasNextPage: boolean;
1201
+ items: T[];
1202
+ page: number;
1203
+ pageSize: number;
1204
+ total: number;
1205
+ }
1206
+ export interface GetObservabilityParams {
1207
+ deploymentStamp?: string;
1208
+ level?: ObservabilityLogLevel | 'all';
1209
+ page?: number;
1210
+ pageSize?: number;
1211
+ projectId?: string;
1212
+ q?: string;
1213
+ requestId?: string;
1214
+ route?: string;
1215
+ since?: number;
1216
+ source?: ObservabilitySource | 'all';
1217
+ status?: string;
1218
+ timeframeHours?: number;
1219
+ until?: number;
1220
+ }
1221
+ export interface GetBlueGreenMonitoringRequestArchiveParams extends GetBlueGreenMonitoringArchiveParams {
1222
+ q?: string;
1223
+ render?: 'all' | 'document' | 'rsc';
1224
+ route?: string;
1225
+ since?: number;
1226
+ status?: string;
1227
+ traffic?: 'all' | 'external' | 'internal';
1228
+ until?: number;
1229
+ }
343
1230
  export declare function sendInfrastructurePushTest(payload: SendInfrastructurePushTestPayload, options?: InternalApiClientOptions): Promise<SendInfrastructurePushTestResponse>;
344
1231
  export declare function updateMobileVersionPolicies(payload: MobileVersionPoliciesPayload, options?: InternalApiClientOptions): Promise<{
345
1232
  data: MobileVersionPoliciesPayload;
346
1233
  message: string;
347
1234
  }>;
1235
+ export declare function listAiGatewayModels(params?: ListAiGatewayModelsParams, options?: InternalApiClientOptions): Promise<AIModelUI[]>;
1236
+ export declare function listAiGatewayModelsPage(params?: ListAiGatewayModelsPageParams, options?: InternalApiClientOptions): Promise<AiGatewayModelsPage>;
1237
+ export declare function listAiGatewayModelsLegacy(params?: ListAiGatewayModelsParams, options?: InternalApiClientOptions): Promise<AIModelUI[]>;
1238
+ export declare function resolveInfrastructureWorkspaceId(wsId: string, options?: InternalApiClientOptions): Promise<ResolveInfrastructureWorkspaceIdResponse>;
1239
+ export declare function listAIWhitelistDomains(params?: ListAIWhitelistDomainsParams, options?: InternalApiClientOptions): Promise<AIWhitelistDomainsResponse>;
1240
+ export declare function createAIWhitelistDomain(payload: CreateAIWhitelistDomainPayload, options?: InternalApiClientOptions): Promise<AIWhitelistDomainResponse>;
1241
+ export declare function updateAIWhitelistDomain(domain: string, payload: UpdateAIWhitelistDomainPayload, options?: InternalApiClientOptions): Promise<{
1242
+ success: true;
1243
+ }>;
1244
+ export declare function deleteAIWhitelistDomain(domain: string, options?: InternalApiClientOptions): Promise<{
1245
+ success: true;
1246
+ }>;
1247
+ export declare function listAIWhitelistEmails(params?: ListAIWhitelistEmailsParams, options?: InternalApiClientOptions): Promise<AIWhitelistEmailsResponse>;
1248
+ export declare function createAIWhitelistEmail(payload: CreateAIWhitelistEmailPayload, options?: InternalApiClientOptions): Promise<AIWhitelistEmailResponse>;
1249
+ export declare function updateAIWhitelistEmail(email: string, payload: UpdateAIWhitelistEmailPayload, options?: InternalApiClientOptions): Promise<{
1250
+ success: true;
1251
+ }>;
1252
+ export declare function deleteAIWhitelistEmail(email: string, options?: InternalApiClientOptions): Promise<{
1253
+ success: true;
1254
+ }>;
1255
+ export declare function listExternalApps(options?: InternalApiClientOptions): Promise<ExternalAppsResponse>;
1256
+ export declare function saveExternalApp(payload: SaveExternalAppPayload, options?: InternalApiClientOptions): Promise<SaveExternalAppResponse>;
1257
+ export declare function rotateExternalAppSecret(appId: string, options?: InternalApiClientOptions): Promise<SaveExternalAppResponse>;
1258
+ export declare function listAiAgents(options?: InternalApiClientOptions): Promise<AiAgentsResponse>;
1259
+ export declare function saveAiAgent(payload: SaveAiAgentPayload, options?: InternalApiClientOptions): Promise<SaveAiAgentResponse>;
1260
+ export declare function deployAiAgentChannel(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<AiAgentDeployResponse>;
1261
+ export declare function pauseAiAgentChannel(agentId: string, channelId: string, options?: InternalApiClientOptions): Promise<SaveAiAgentResponse>;
1262
+ export declare function testAiAgentChannel(agentId: string, channelId: string, prompt?: string, options?: InternalApiClientOptions): Promise<AiAgentTestResponse>;
1263
+ export declare function rotateAiAgentChannelSecret(agentId: string, channelId: string, name: string, value?: string, options?: InternalApiClientOptions): Promise<RotateAiAgentChannelSecretResponse>;
1264
+ export declare function saveAiAgentIdentityLink(payload: AiAgentIdentityLink, options?: InternalApiClientOptions): Promise<SaveAiAgentIdentityResponse>;
1265
+ export declare function listAiAgentExternalThreads(params?: {
1266
+ agentId?: string | null;
1267
+ channelId?: string | null;
1268
+ wsId?: string | null;
1269
+ }, options?: InternalApiClientOptions): Promise<AiAgentExternalThreadsResponse>;
1270
+ export declare function listAiAgentExternalMessages(threadId: string, params?: {
1271
+ limit?: number;
1272
+ }, options?: InternalApiClientOptions): Promise<AiAgentExternalMessagesResponse>;
1273
+ export declare function syncAiAgentExternalThread(threadId: string, options?: InternalApiClientOptions): Promise<AiAgentExternalSyncResponse>;
1274
+ export declare function draftAiAgentExternalResponse(threadId: string, prompt: string, options?: InternalApiClientOptions): Promise<AiAgentExternalDraftResponse>;
1275
+ export declare function sendAiAgentExternalResponse(threadId: string, content: string, options?: InternalApiClientOptions): Promise<{
1276
+ message: ChatMessage;
1277
+ }>;
1278
+ export declare function getAppCoordinationSessionPolicy(options?: InternalApiClientOptions): Promise<AppCoordinationSessionPolicyResponse>;
1279
+ export declare function saveAppCoordinationSessionPolicy(payload: AppCoordinationSessionPolicy, options?: InternalApiClientOptions): Promise<AppCoordinationSessionPolicyResponse>;
1280
+ export declare function getAbuseIntelligenceSnapshot(params?: GetAbuseIntelligenceSnapshotParams, options?: InternalApiClientOptions): Promise<AbuseIntelligenceSnapshot>;
1281
+ export declare function createAbuseTrustOverride(payload: CreateAbuseTrustOverridePayload, options?: InternalApiClientOptions): Promise<AbuseTrustOverrideResponse>;
1282
+ export declare function revokeAbuseTrustOverride(overrideId: string, payload: RevokeAbuseTrustOverridePayload, options?: InternalApiClientOptions): Promise<AbuseTrustOverrideResponse>;
348
1283
  export declare function getBlueGreenMonitoringSnapshot(params?: GetBlueGreenMonitoringSnapshotParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringSnapshot>;
349
- export declare function getBlueGreenMonitoringRequestArchive(params?: GetBlueGreenMonitoringArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringRequestArchive>;
1284
+ export declare function getBlueGreenMonitoringRequestArchive(params?: GetBlueGreenMonitoringRequestArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringRequestArchive>;
350
1285
  export declare function getBlueGreenMonitoringWatcherLogArchive(params?: GetBlueGreenMonitoringArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringPaginatedResult<BlueGreenMonitoringWatcherLog>>;
1286
+ export declare function getCronMonitoringSnapshot(options?: InternalApiClientOptions): Promise<CronMonitoringSnapshot>;
1287
+ export declare function getCronMonitoringExecutionArchive(params?: GetCronMonitoringExecutionArchiveParams, options?: InternalApiClientOptions): Promise<BlueGreenMonitoringPaginatedResult<CronExecutionRecord>>;
1288
+ export declare function queueCronRun(payload: QueueCronRunPayload, options?: InternalApiClientOptions): Promise<QueueCronRunResponse>;
1289
+ export declare function updateCronMonitoringControl(payload: UpdateCronMonitoringControlPayload, options?: InternalApiClientOptions): Promise<UpdateCronMonitoringControlResponse>;
1290
+ export declare function getObservabilityOverview(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityOverview>;
1291
+ export declare function getObservabilityDeployments(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityDeployment>>;
1292
+ export declare function getObservabilityLogs(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityLogsResult>;
1293
+ export declare function getObservabilityRequests(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityRequest>>;
1294
+ export declare function getObservabilityAnalytics(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityAnalytics>;
1295
+ export declare function getObservabilityCronRuns(params?: GetObservabilityParams, options?: InternalApiClientOptions): Promise<ObservabilityPaginatedResult<ObservabilityCronRun>>;
1296
+ export declare function getObservabilityResources(params?: Pick<GetObservabilityParams, 'projectId' | 'timeframeHours'>, options?: InternalApiClientOptions): Promise<ObservabilityResources>;
1297
+ export declare function getInfrastructureProjects(options?: InternalApiClientOptions): Promise<InfrastructureProjectsResponse>;
1298
+ export declare function createInfrastructureProject(payload: CreateInfrastructureProjectPayload, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1299
+ export declare function updateInfrastructureProject(projectId: string, payload: UpdateInfrastructureProjectPayload, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1300
+ export declare function deleteInfrastructureProject(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1301
+ export declare function syncInfrastructureProject(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
1302
+ export declare function queueInfrastructureProjectDeploy(projectId: string, options?: InternalApiClientOptions): Promise<InfrastructureProjectResponse>;
351
1303
  export declare function requestBlueGreenInstantRollout(options?: InternalApiClientOptions): Promise<RequestBlueGreenInstantRolloutResponse>;
1304
+ export declare function requestBlueGreenWatcherRecovery(payload: RequestBlueGreenWatcherRecoveryPayload, options?: InternalApiClientOptions): Promise<RequestBlueGreenWatcherRecoveryResponse>;
1305
+ export declare function updateBlueGreenDockerRecoverySettings(payload: UpdateBlueGreenDockerRecoverySettingsPayload, options?: InternalApiClientOptions): Promise<UpdateBlueGreenDockerRecoverySettingsResponse>;
352
1306
  export declare function pinBlueGreenDeployment(payload: PinBlueGreenDeploymentPayload, options?: InternalApiClientOptions): Promise<PinBlueGreenDeploymentResponse>;
353
1307
  export declare function clearBlueGreenDeploymentPin(options?: InternalApiClientOptions): Promise<ClearBlueGreenDeploymentPinResponse>;
354
1308
  //# sourceMappingURL=infrastructure.d.ts.map