@cargo-ai/api 1.0.52 → 1.0.53

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.
@@ -1,4 +1,4 @@
1
- import type { Ai, Billing, Connection, Content, Hosting, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, WorkspaceManagement } from "../domains/index.js";
1
+ import type { Ai, Billing, Connection, Content, Hosting, Observability, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, WorkspaceManagement } from "../domains/index.js";
2
2
  import type { ClientTransport, FetcherOrigin } from "../fetcher/index.js";
3
3
  import type { ApiType } from "../types.js";
4
4
  import type { AiApi } from "./ai/index.js";
@@ -9,6 +9,7 @@ import type { ContextApi } from "./context/index.js";
9
9
  import type { DomainManagementApi } from "./domainManagement/index.js";
10
10
  import type { ExpressionApi } from "./expression/index.js";
11
11
  import type { HostingApi } from "./hosting/index.js";
12
+ import type { ObservabilityApi } from "./observability/index.js";
12
13
  import type { OrchestrationApi } from "./orchestration/index.js";
13
14
  import type { RevenueOrganizationApi } from "./revenueOrganization/index.js";
14
15
  import type { SegmentationApi } from "./segmentation/index.js";
@@ -24,6 +25,7 @@ export * from "./context/index.js";
24
25
  export * from "./domainManagement/index.js";
25
26
  export * from "./expression/index.js";
26
27
  export * from "./hosting/index.js";
28
+ export * from "./observability/index.js";
27
29
  export * from "./orchestration/index.js";
28
30
  export * from "./revenueOrganization/index.js";
29
31
  export * from "./segmentation/index.js";
@@ -62,6 +64,7 @@ export interface Api {
62
64
  context: ContextApi;
63
65
  expression: ExpressionApi;
64
66
  systemOfRecordIntegration: SystemOfRecordIntegrationApi;
67
+ observability: ObservabilityApi;
65
68
  orchestration: OrchestrationApi;
66
69
  hosting: HostingApi;
67
70
  domainManagement: DomainManagementApi;
@@ -94,6 +97,7 @@ export type InitialisationResult = {
94
97
  files: Content.File[];
95
98
  apps: Hosting.App[];
96
99
  workers: Hosting.Worker[];
100
+ alerts: Observability.Alert[];
97
101
  };
98
102
  export declare const buildApi: (dependencies: ApiDependencies) => Api;
99
103
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,EAAE,EACF,OAAO,EACP,UAAU,EACV,OAAO,EACP,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEzF,OAA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,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;IACtC,UAAU,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;IACnC,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;IACjC,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC;IACpC,KAAK,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IAC5B,KAAK,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IAC5B,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC7D,eAAe,EAAE,yBAAyB,CAAC,cAAc,EAAE,CAAC;IAC5D,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAAC;IAC3C,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,QAAQ,iBAAkB,eAAe,KAAG,GAiDxD,CAAC"}
@@ -7,6 +7,7 @@ import { buildContextApi } from "./context/index.js";
7
7
  import { buildDomainManagementApi } from "./domainManagement/index.js";
8
8
  import { buildExpressionApi } from "./expression/index.js";
9
9
  import { buildHostingApi } from "./hosting/index.js";
10
+ import { buildObservabilityApi } from "./observability/index.js";
10
11
  import { buildOrchestrationApi } from "./orchestration/index.js";
11
12
  import { buildRevenueOrganizationApi } from "./revenueOrganization/index.js";
12
13
  import { buildSegmentationApi } from "./segmentation/index.js";
@@ -22,6 +23,7 @@ export * from "./context/index.js";
22
23
  export * from "./domainManagement/index.js";
23
24
  export * from "./expression/index.js";
24
25
  export * from "./hosting/index.js";
26
+ export * from "./observability/index.js";
25
27
  export * from "./orchestration/index.js";
26
28
  export * from "./revenueOrganization/index.js";
27
29
  export * from "./segmentation/index.js";
@@ -62,6 +64,7 @@ export const buildApi = (dependencies) => {
62
64
  context: buildContextApi({ fetcher }),
63
65
  expression: buildExpressionApi({ fetcher }),
64
66
  systemOfRecordIntegration: buildSystemOfRecordIntegrationApi({ fetcher }),
67
+ observability: buildObservabilityApi({ fetcher }),
65
68
  orchestration: buildOrchestrationApi({ fetcher }),
66
69
  hosting: buildHostingApi({ fetcher }),
67
70
  domainManagement: buildDomainManagementApi({ fetcher }),
@@ -0,0 +1,22 @@
1
+ import { Observability } from "../../domains/index.js";
2
+ import { type Fetcher } from "../../fetcher/index.js";
3
+ interface ObservabilityApiDependencies {
4
+ fetcher: Fetcher;
5
+ }
6
+ export interface ObservabilityApi {
7
+ alert: {
8
+ create: (payload: Observability.Api.CreateAlertPayload) => Promise<Observability.Api.CreateAlertResult>;
9
+ update: (payload: Observability.Api.UpdateAlertPayload) => Promise<Observability.Api.UpdateAlertResult>;
10
+ remove: (uuid: string) => Promise<void>;
11
+ get: (uuid: string) => Promise<Observability.Api.GetAlertResult>;
12
+ list: () => Promise<Observability.Api.ListAlertsResult>;
13
+ preview: (payload: Observability.Api.PreviewAlertPayload) => Promise<Observability.Api.PreviewAlertResult>;
14
+ };
15
+ event: {
16
+ list: (payload: Observability.Api.ListEventsPayload) => Promise<Observability.Api.ListEventsResult>;
17
+ count: (payload: Observability.Api.CountEventsPayload) => Promise<Observability.Api.CountEventsResult>;
18
+ };
19
+ }
20
+ export declare const buildObservabilityApi: ({ fetcher, }: ObservabilityApiDependencies) => ObservabilityApi;
21
+ export {};
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EACL,KAAK,OAAO,EAEb,MAAM,wBAAwB,CAAC;AAEhC,UAAU,4BAA4B;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE;QACL,MAAM,EAAE,CACN,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,kBAAkB,KAC1C,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAClD,MAAM,EAAE,CACN,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,kBAAkB,KAC1C,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAClD,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACjE,IAAI,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACxD,OAAO,EAAE,CACP,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,mBAAmB,KAC3C,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACpD,CAAC;IACF,KAAK,EAAE;QACL,IAAI,EAAE,CACJ,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,iBAAiB,KACzC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACjD,KAAK,EAAE,CACL,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,kBAAkB,KAC1C,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KACnD,CAAC;CACH;AAED,eAAO,MAAM,qBAAqB,iBAE/B,4BAA4B,KAAG,gBAiJjC,CAAC"}
@@ -0,0 +1,116 @@
1
+ import { Observability } from "../../domains/index.js";
2
+ import { getErrorWithReasonErrorMessage, } from "../../fetcher/index.js";
3
+ export const buildObservabilityApi = ({ fetcher, }) => {
4
+ async function createAlert(payload) {
5
+ try {
6
+ const result = await fetcher.fetch({
7
+ method: "post",
8
+ endpoint: "/observability/alerts",
9
+ payload,
10
+ });
11
+ return result;
12
+ }
13
+ catch (error) {
14
+ throw getErrorWithReasonErrorMessage(error, Observability.Api.zodCreateAlertErrorReason, {
15
+ invalidCron: "Invalid cron expression.",
16
+ invalidSql: "Invalid SQL query.",
17
+ mismatchedThreshold: "The threshold metric does not match the scope's data source.",
18
+ folderNotFound: "Folder not found.",
19
+ actionNotFound: "An action references a resource that no longer exists.",
20
+ });
21
+ }
22
+ }
23
+ async function updateAlert(payload) {
24
+ const { uuid, ...other } = payload;
25
+ try {
26
+ const result = await fetcher.fetch({
27
+ method: "put",
28
+ endpoint: `/observability/alerts/${uuid}`,
29
+ payload: other,
30
+ });
31
+ return result;
32
+ }
33
+ catch (error) {
34
+ throw getErrorWithReasonErrorMessage(error, Observability.Api.zodUpdateAlertErrorReason, {
35
+ alertNotFound: "Alert not found.",
36
+ invalidCron: "Invalid cron expression.",
37
+ invalidSql: "Invalid SQL query.",
38
+ mismatchedThreshold: "The threshold metric does not match the scope's data source.",
39
+ folderNotFound: "Folder not found.",
40
+ actionNotFound: "An action references a resource that no longer exists.",
41
+ });
42
+ }
43
+ }
44
+ async function removeAlert(uuid) {
45
+ try {
46
+ await fetcher.fetch({
47
+ method: "delete",
48
+ endpoint: `/observability/alerts/${uuid}`,
49
+ });
50
+ }
51
+ catch (error) {
52
+ throw getErrorWithReasonErrorMessage(error, Observability.Api.zodRemoveAlertErrorReason, {
53
+ alertNotFound: "Alert not found.",
54
+ });
55
+ }
56
+ }
57
+ async function getAlert(uuid) {
58
+ try {
59
+ const result = await fetcher.fetch({
60
+ method: "get",
61
+ endpoint: `/observability/alerts/${uuid}`,
62
+ });
63
+ return result;
64
+ }
65
+ catch (error) {
66
+ throw getErrorWithReasonErrorMessage(error, Observability.Api.zodGetAlertErrorReason, {
67
+ alertNotFound: "Alert not found.",
68
+ });
69
+ }
70
+ }
71
+ async function listAlerts() {
72
+ const result = await fetcher.fetch({
73
+ method: "get",
74
+ endpoint: "/observability/alerts/list",
75
+ });
76
+ return result;
77
+ }
78
+ async function listEvents(payload) {
79
+ const result = await fetcher.fetch({
80
+ method: "post",
81
+ endpoint: "/observability/events/list",
82
+ payload,
83
+ });
84
+ return result;
85
+ }
86
+ async function countEvents(payload) {
87
+ const result = await fetcher.fetch({
88
+ method: "post",
89
+ endpoint: "/observability/events/count",
90
+ payload,
91
+ });
92
+ return result;
93
+ }
94
+ async function previewAlert(payload) {
95
+ const result = await fetcher.fetch({
96
+ method: "post",
97
+ endpoint: "/observability/alerts/preview",
98
+ payload,
99
+ });
100
+ return result;
101
+ }
102
+ return {
103
+ alert: {
104
+ create: createAlert,
105
+ update: updateAlert,
106
+ remove: removeAlert,
107
+ get: getAlert,
108
+ list: listAlerts,
109
+ preview: previewAlert,
110
+ },
111
+ event: {
112
+ list: listEvents,
113
+ count: countEvents,
114
+ },
115
+ };
116
+ };
@@ -6,6 +6,7 @@ export { Context } from "./context.js";
6
6
  export { DomainManagement } from "./domainManagement.js";
7
7
  export { Expression } from "./expression.js";
8
8
  export { Hosting } from "./hosting.js";
9
+ export { Observability } from "./observability.js";
9
10
  export { Orchestration } from "./orchestration.js";
10
11
  export { RevenueOrganization } from "./revenueOrganization.js";
11
12
  export { Segmentation } from "./segmentation.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,M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EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -6,6 +6,7 @@ export { Context } from "./context.js";
6
6
  export { DomainManagement } from "./domainManagement.js";
7
7
  export { Expression } from "./expression.js";
8
8
  export { Hosting } from "./hosting.js";
9
+ export { Observability } from "./observability.js";
9
10
  export { Orchestration } from "./orchestration.js";
10
11
  export { RevenueOrganization } from "./revenueOrganization.js";
11
12
  export { Segmentation } from "./segmentation.js";
@@ -0,0 +1,133 @@
1
+ import { type ObservabilityTypes } from "@cargo-ai/types";
2
+ import { z } from "zod";
3
+ import type { ApiType, DateToString } from "../types.js";
4
+ import type { Orchestration } from "./orchestration.js";
5
+ export declare namespace Observability {
6
+ type Alert = ApiType<ObservabilityTypes.Alert>;
7
+ type AlertScope = ApiType<ObservabilityTypes.AlertScope>;
8
+ type AlertScopeSpans = ApiType<ObservabilityTypes.AlertScopeSpans>;
9
+ type AlertScopeOrchestrationSql = ApiType<ObservabilityTypes.AlertScopeOrchestrationSql>;
10
+ type AlertThreshold = ApiType<ObservabilityTypes.AlertThreshold>;
11
+ type AlertSpansThreshold = ApiType<ObservabilityTypes.AlertSpansThreshold>;
12
+ type AlertQueryThreshold = ApiType<ObservabilityTypes.AlertQueryThreshold>;
13
+ type AlertCondition = ApiType<ObservabilityTypes.AlertCondition>;
14
+ const buildAlertCondition: (scope: ObservabilityTypes.AlertScope, threshold: ObservabilityTypes.AlertThreshold) => ObservabilityTypes.AlertCondition | undefined;
15
+ type AlertThresholdOperator = ApiType<ObservabilityTypes.AlertThresholdOperator>;
16
+ type AlertDurationAggregation = ApiType<ObservabilityTypes.AlertDurationAggregation>;
17
+ type AlertCreditsAggregation = ApiType<ObservabilityTypes.AlertCreditsAggregation>;
18
+ type AlertSchedule = ApiType<ObservabilityTypes.AlertSchedule>;
19
+ type Event = ApiType<ObservabilityTypes.Event>;
20
+ type EventStatus = ApiType<ObservabilityTypes.EventStatus>;
21
+ namespace Api {
22
+ type CreateAlertPayload = DateToString<{
23
+ name: string;
24
+ description?: string;
25
+ cron: string;
26
+ isEnabled?: boolean;
27
+ actions?: Orchestration.Action[];
28
+ folderUuid?: string;
29
+ }> & AlertCondition;
30
+ type CreateAlertResult = {
31
+ alert: Alert;
32
+ };
33
+ const zodCreateAlertErrorReason: z.ZodEnum<{
34
+ folderNotFound: "folderNotFound";
35
+ actionNotFound: "actionNotFound";
36
+ invalidCron: "invalidCron";
37
+ invalidSql: "invalidSql";
38
+ mismatchedThreshold: "mismatchedThreshold";
39
+ }>;
40
+ type ListAlertsResult = {
41
+ alerts: Alert[];
42
+ };
43
+ type GetAlertResult = {
44
+ alert: Alert;
45
+ };
46
+ const zodGetAlertErrorReason: z.ZodEnum<{
47
+ alertNotFound: "alertNotFound";
48
+ }>;
49
+ type UpdateAlertPayload = DateToString<{
50
+ uuid: string;
51
+ name?: string;
52
+ description?: string | null;
53
+ cron?: string;
54
+ isEnabled?: boolean;
55
+ scope?: AlertScope;
56
+ threshold?: AlertThreshold;
57
+ actions?: Orchestration.Action[];
58
+ folderUuid?: string | null;
59
+ }>;
60
+ type UpdateAlertResult = {
61
+ alert: Alert;
62
+ };
63
+ const zodUpdateAlertErrorReason: z.ZodEnum<{
64
+ folderNotFound: "folderNotFound";
65
+ actionNotFound: "actionNotFound";
66
+ invalidCron: "invalidCron";
67
+ invalidSql: "invalidSql";
68
+ mismatchedThreshold: "mismatchedThreshold";
69
+ alertNotFound: "alertNotFound";
70
+ }>;
71
+ const zodRemoveAlertErrorReason: z.ZodEnum<{
72
+ alertNotFound: "alertNotFound";
73
+ }>;
74
+ type ListEventsPayload = DateToString<{
75
+ alertUuid: string;
76
+ statuses?: EventStatus[];
77
+ createdAfter?: Date;
78
+ createdBefore?: Date;
79
+ limit?: number;
80
+ offset?: number;
81
+ }>;
82
+ type ListEventsResult = {
83
+ count: number;
84
+ events: Event[];
85
+ };
86
+ type CountEventsPayload = DateToString<{
87
+ alertUuid: string;
88
+ statuses?: EventStatus[];
89
+ createdAfter?: Date;
90
+ createdBefore?: Date;
91
+ }>;
92
+ type CountEventsResult = {
93
+ count: number;
94
+ };
95
+ type PreviewAlertPayload = DateToString<{
96
+ windowMinutes: number;
97
+ }> & AlertCondition;
98
+ type PreviewAlertResult = {
99
+ outcome: "empty";
100
+ } | {
101
+ outcome: "notComputed";
102
+ computeErrorMessage: string;
103
+ } | {
104
+ outcome: "computed";
105
+ value: number;
106
+ total?: number;
107
+ failed?: number;
108
+ isBreached: boolean;
109
+ };
110
+ }
111
+ const alertKeys: {
112
+ all: (workspaceUuid: string) => readonly ["alerts", string];
113
+ get: (workspaceUuid: string, uuid: string) => readonly ["alerts", string, string];
114
+ };
115
+ const eventKeys: {
116
+ all: (workspaceUuid: string) => readonly ["events", string];
117
+ list: (workspaceUuid: string, payload: Api.ListEventsPayload) => readonly ["events", string, {
118
+ alertUuid: string;
119
+ statuses?: EventStatus[] | undefined;
120
+ createdAfter?: string | undefined;
121
+ createdBefore?: string | undefined;
122
+ limit?: number | undefined;
123
+ offset?: number | undefined;
124
+ }];
125
+ count: (workspaceUuid: string, payload: Api.CountEventsPayload) => readonly ["events", string, {
126
+ alertUuid: string;
127
+ statuses?: EventStatus[] | undefined;
128
+ createdAfter?: string | undefined;
129
+ createdBefore?: string | undefined;
130
+ }];
131
+ };
132
+ }
133
+ //# sourceMappingURL=observability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/domains/observability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB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AAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC,CAAC;QAEH,KAAY,gBAAgB,GAAG;YAC7B,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,KAAK,EAAE,CAAC;SACjB,CAAC;QAEF,KAAY,kBAAkB,GAAG,YAAY,CAAC;YAC5C,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;YACzB,YAAY,CAAC,EAAE,IAAI,CAAC;YACpB,aAAa,CAAC,EAAE,IAAI,CAAC;SACtB,CAAC,CAAC;QAEH,KAAY,iBAAiB,GAAG;YAC9B,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QAEF,KAAY,mBAAmB,GAAG,YAAY,CAAC;YAC7C,aAAa,EAAE,MAAM,CAAC;SACvB,CAAC,GACA,cAAc,CAAC;QAEjB,KAAY,kBAAkB,GAC1B;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,GACpB;YAAE,OAAO,EAAE,aAAa,CAAC;YAAC,mBAAmB,EAAE,MAAM,CAAA;SAAE,GACvD;YACE,OAAO,EAAE,UAAU,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YAEd,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;KACP;IAEM,MAAM,SAAS;6BACC,MAAM;6BACN,MAAM,QAAQ,MAAM;KAE1C,CAAC;IAEK,MAAM,SAAS;6BACC,MAAM;8BACL,MAAM,WAAW,IAAI,iBAAiB;uBAlD/C,MAAM;;;;;;;+BAoDI,MAAM,WAAW,IAAI,kBAAkB;uBAtCjD,MAAM;;;;;KAwCpB,CAAC;CACH"}
@@ -0,0 +1,40 @@
1
+ import { ObservabilityUtils } from "@cargo-ai/types";
2
+ import { z } from "zod";
3
+ // eslint-disable-next-line @typescript-eslint/no-namespace
4
+ export var Observability;
5
+ (function (Observability) {
6
+ // Re-exported so consumers (the webApp, which may not import @cargo-ai/types
7
+ // directly) re-pair a scope with a threshold through the one enforcement
8
+ // point instead of spreading them independently.
9
+ Observability.buildAlertCondition = ObservabilityUtils.buildAlertCondition;
10
+ // eslint-disable-next-line @typescript-eslint/no-namespace
11
+ let Api;
12
+ (function (Api) {
13
+ Api.zodCreateAlertErrorReason = z.enum([
14
+ "invalidCron",
15
+ "invalidSql",
16
+ "mismatchedThreshold",
17
+ "folderNotFound",
18
+ "actionNotFound",
19
+ ]);
20
+ Api.zodGetAlertErrorReason = z.enum(["alertNotFound"]);
21
+ Api.zodUpdateAlertErrorReason = z.enum([
22
+ "alertNotFound",
23
+ "invalidCron",
24
+ "invalidSql",
25
+ "mismatchedThreshold",
26
+ "folderNotFound",
27
+ "actionNotFound",
28
+ ]);
29
+ Api.zodRemoveAlertErrorReason = z.enum(["alertNotFound"]);
30
+ })(Api = Observability.Api || (Observability.Api = {}));
31
+ Observability.alertKeys = {
32
+ all: (workspaceUuid) => ["alerts", workspaceUuid],
33
+ get: (workspaceUuid, uuid) => [...Observability.alertKeys.all(workspaceUuid), uuid],
34
+ };
35
+ Observability.eventKeys = {
36
+ all: (workspaceUuid) => ["events", workspaceUuid],
37
+ list: (workspaceUuid, payload) => [...Observability.eventKeys.all(workspaceUuid), payload],
38
+ count: (workspaceUuid, payload) => [...Observability.eventKeys.all(workspaceUuid), payload],
39
+ };
40
+ })(Observability || (Observability = {}));
@@ -1,5 +1,5 @@
1
1
  export * from "./api/index.js";
2
- export { Ai, Billing, Connection, Content, Context, DomainManagement, Expression, Hosting, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, } from "./domains/index.js";
2
+ export { Ai, Billing, Connection, Content, Context, DomainManagement, Expression, Hosting, Observability, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, } from "./domains/index.js";
3
3
  export type { ClientTransport, FetcherError, FetcherOrigin, } from "./fetcher/index.js";
4
4
  export { determineIfIsFetcherError } from "./fetcher/index.js";
5
5
  export type { ApiType, DateToString } from "./types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,EAAE,EACF,OAAO,EACP,UAAU,EACV,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,yBAAyB,EACzB,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,EAAE,EACF,OAAO,EACP,UAAU,EACV,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,yBAAyB,EACzB,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export * from "./api/index.js";
2
- export { Ai, Billing, Connection, Content, Context, DomainManagement, Expression, Hosting, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, } from "./domains/index.js";
2
+ export { Ai, Billing, Connection, Content, Context, DomainManagement, Expression, Hosting, Observability, Orchestration, RevenueOrganization, Segmentation, Storage, SystemOfRecordIntegration, UserManagement, WorkspaceManagement, } from "./domains/index.js";
3
3
  export { determineIfIsFetcherError } from "./fetcher/index.js";