@cargo-ai/types 1.0.1 → 1.0.3
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.
- package/README.md +47 -0
- package/build/src/ai/ai.d.ts +462 -0
- package/build/src/ai/ai.d.ts.map +1 -0
- package/build/src/ai/ai.js +1 -0
- package/build/src/ai/index.d.ts +3 -0
- package/build/src/ai/index.d.ts.map +1 -0
- package/build/src/ai/index.js +2 -0
- package/build/src/ai/utils.d.ts +6 -0
- package/build/src/ai/utils.d.ts.map +1 -0
- package/build/src/ai/utils.js +82 -0
- package/build/src/billing/billing.d.ts +100 -0
- package/build/src/billing/billing.d.ts.map +1 -0
- package/build/src/billing/billing.js +1 -0
- package/build/src/billing/index.d.ts +2 -0
- package/build/src/billing/index.d.ts.map +1 -0
- package/build/src/billing/index.js +1 -0
- package/build/src/connection/connection.d.ts +650 -0
- package/build/src/connection/connection.d.ts.map +1 -0
- package/build/src/connection/connection.js +2 -0
- package/build/src/connection/index.d.ts +2 -0
- package/build/src/connection/index.d.ts.map +1 -0
- package/build/src/connection/index.js +1 -0
- package/build/src/expression/expression.d.ts +66 -0
- package/build/src/expression/expression.d.ts.map +1 -0
- package/build/src/expression/expression.js +2 -0
- package/build/src/expression/index.d.ts +3 -0
- package/build/src/expression/index.d.ts.map +1 -0
- package/build/src/expression/index.js +2 -0
- package/build/src/expression/utils.d.ts +4 -0
- package/build/src/expression/utils.d.ts.map +1 -0
- package/build/src/expression/utils.js +63 -0
- package/build/src/global/index.d.ts +2 -0
- package/build/src/global/index.d.ts.map +1 -0
- package/build/src/global/index.js +1 -0
- package/build/src/global/utils.d.ts +5 -0
- package/build/src/global/utils.d.ts.map +1 -0
- package/build/src/global/utils.js +32 -0
- package/build/src/index.d.ts +13 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/src/index.js +12 -0
- package/build/src/orchestration/index.d.ts +3 -0
- package/build/src/orchestration/index.d.ts.map +1 -0
- package/build/src/orchestration/index.js +2 -0
- package/build/src/orchestration/orchestration.d.ts +534 -0
- package/build/src/orchestration/orchestration.d.ts.map +1 -0
- package/build/src/orchestration/orchestration.js +1 -0
- package/build/src/orchestration/utils.d.ts +7 -0
- package/build/src/orchestration/utils.d.ts.map +1 -0
- package/build/src/orchestration/utils.js +90 -0
- package/build/src/revenueOrganization/index.d.ts +2 -0
- package/build/src/revenueOrganization/index.d.ts.map +1 -0
- package/build/src/revenueOrganization/index.js +1 -0
- package/build/src/revenueOrganization/revenueOrganization.d.ts +114 -0
- package/build/src/revenueOrganization/revenueOrganization.d.ts.map +1 -0
- package/build/src/revenueOrganization/revenueOrganization.js +2 -0
- package/build/src/segmentation/index.d.ts +2 -0
- package/build/src/segmentation/index.d.ts.map +1 -0
- package/build/src/segmentation/index.js +1 -0
- package/build/src/segmentation/segmentation.d.ts +74 -0
- package/build/src/segmentation/segmentation.d.ts.map +1 -0
- package/build/src/segmentation/segmentation.js +1 -0
- package/build/src/storage/index.d.ts +2 -0
- package/build/src/storage/index.d.ts.map +1 -0
- package/build/src/storage/index.js +1 -0
- package/build/src/storage/storage.d.ts +144 -0
- package/build/src/storage/storage.d.ts.map +1 -0
- package/build/src/storage/storage.js +2 -0
- package/build/src/systemOfRecordIntegration/clients/bigQuery.d.ts +26 -0
- package/build/src/systemOfRecordIntegration/clients/bigQuery.d.ts.map +1 -0
- package/build/src/systemOfRecordIntegration/clients/bigQuery.js +1 -0
- package/build/src/systemOfRecordIntegration/clients/snowflake.d.ts +26 -0
- package/build/src/systemOfRecordIntegration/clients/snowflake.d.ts.map +1 -0
- package/build/src/systemOfRecordIntegration/clients/snowflake.js +1 -0
- package/build/src/systemOfRecordIntegration/index.d.ts +2 -0
- package/build/src/systemOfRecordIntegration/index.d.ts.map +1 -0
- package/build/src/systemOfRecordIntegration/index.js +1 -0
- package/build/src/systemOfRecordIntegration/systemOfRecordIntegration.d.ts +777 -0
- package/build/src/systemOfRecordIntegration/systemOfRecordIntegration.d.ts.map +1 -0
- package/build/src/systemOfRecordIntegration/systemOfRecordIntegration.js +2 -0
- package/build/src/userManagement/index.d.ts +2 -0
- package/build/src/userManagement/index.d.ts.map +1 -0
- package/build/src/userManagement/index.js +1 -0
- package/build/src/userManagement/userManagement.d.ts +21 -0
- package/build/src/userManagement/userManagement.d.ts.map +1 -0
- package/build/src/userManagement/userManagement.js +1 -0
- package/build/src/utils.d.ts +9 -0
- package/build/src/utils.d.ts.map +1 -0
- package/build/src/utils.js +1 -0
- package/build/src/workspaceManagement/index.d.ts +2 -0
- package/build/src/workspaceManagement/index.d.ts.map +1 -0
- package/build/src/workspaceManagement/index.js +1 -0
- package/build/src/workspaceManagement/workspaceManagement.d.ts +79 -0
- package/build/src/workspaceManagement/workspaceManagement.d.ts.map +1 -0
- package/build/src/workspaceManagement/workspaceManagement.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Schema as JsonSchema } from "jsonschema";
|
|
2
|
+
export declare namespace BillingTypes {
|
|
3
|
+
type UsageUnit = "billing.credits" | "storage.records" | "orchestration.executions";
|
|
4
|
+
type CreditsCost = {
|
|
5
|
+
config?: {
|
|
6
|
+
jsonSchema: JsonSchema;
|
|
7
|
+
};
|
|
8
|
+
cost: number;
|
|
9
|
+
} & ({
|
|
10
|
+
type: "fixed";
|
|
11
|
+
} | {
|
|
12
|
+
type: "unit";
|
|
13
|
+
unit: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "package";
|
|
16
|
+
unit: string;
|
|
17
|
+
unitsCount: number;
|
|
18
|
+
fixedCost?: number;
|
|
19
|
+
});
|
|
20
|
+
type Usage = {
|
|
21
|
+
uuid: string;
|
|
22
|
+
workspaceUuid: string;
|
|
23
|
+
workflowUuid: string | null;
|
|
24
|
+
agentUuid: string | null;
|
|
25
|
+
connectorUuid: string | null;
|
|
26
|
+
integrationSlug: string | null;
|
|
27
|
+
slug: string;
|
|
28
|
+
modelUuid: string | null;
|
|
29
|
+
count: number;
|
|
30
|
+
unit: UsageUnit;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
};
|
|
33
|
+
type Subscription = {
|
|
34
|
+
uuid: string;
|
|
35
|
+
workspaceUuid: string;
|
|
36
|
+
provider: "stripe" | "orb";
|
|
37
|
+
customerOrbId: string;
|
|
38
|
+
customerStripeId: string;
|
|
39
|
+
subscriptionStatus: string | null;
|
|
40
|
+
subscriptionStripeId: string | null;
|
|
41
|
+
subscriptionAvailableCreditsCount: number;
|
|
42
|
+
subscriptionCreditsUsedCount: number;
|
|
43
|
+
additionalAvailableCreditsCount: number;
|
|
44
|
+
creditsOverageBehaviors: SubscriptionCreditsOverageBehavior[];
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
|
+
};
|
|
48
|
+
type SubscriptionCadence = "monthly" | "annual" | "one_time" | "quarterly" | "semi_annual" | "custom";
|
|
49
|
+
type SubscriptionPlan = "self-serve" | "enterprise";
|
|
50
|
+
type SubscriptionCreditsOverageBehavior = {
|
|
51
|
+
unit: UsageUnit;
|
|
52
|
+
action: "deny" | "allow";
|
|
53
|
+
};
|
|
54
|
+
type EnrichedSubscription = Subscription & {
|
|
55
|
+
plan: SubscriptionPlan;
|
|
56
|
+
cadence: SubscriptionCadence;
|
|
57
|
+
fixedPrice: number;
|
|
58
|
+
conversionRate: number;
|
|
59
|
+
startAt: Date;
|
|
60
|
+
resetAt: Date;
|
|
61
|
+
endAt: Date | null;
|
|
62
|
+
hasPendingChange: boolean;
|
|
63
|
+
hasCredits: boolean;
|
|
64
|
+
futureChange: {
|
|
65
|
+
cadence: SubscriptionCadence;
|
|
66
|
+
fixedPrice: number;
|
|
67
|
+
creditsCount: number;
|
|
68
|
+
conversionRate: number;
|
|
69
|
+
startAt: Date;
|
|
70
|
+
endAt: Date | null;
|
|
71
|
+
} | null;
|
|
72
|
+
topup: {
|
|
73
|
+
creditsCount: number;
|
|
74
|
+
threshold: number;
|
|
75
|
+
} | null;
|
|
76
|
+
};
|
|
77
|
+
type Invoice = {
|
|
78
|
+
id: string;
|
|
79
|
+
isPaid: boolean;
|
|
80
|
+
currency: string;
|
|
81
|
+
amount: number;
|
|
82
|
+
dueDate?: Date;
|
|
83
|
+
url?: string;
|
|
84
|
+
};
|
|
85
|
+
type CreditCard = {
|
|
86
|
+
brand: string;
|
|
87
|
+
expMonth: number;
|
|
88
|
+
expYear: number;
|
|
89
|
+
last4: string;
|
|
90
|
+
};
|
|
91
|
+
type UsageMetric = {
|
|
92
|
+
date: Date;
|
|
93
|
+
items: {
|
|
94
|
+
slug: string;
|
|
95
|
+
count: number;
|
|
96
|
+
groupBy: string | null;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../../src/billing/billing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,YAAY,CAAC;AAGvD,yBAAiB,YAAY,CAAC;IAC5B,KAAY,SAAS,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,0BAA0B,CAAC;IAE/B,KAAY,WAAW,GAAG;QACxB,MAAM,CAAC,EAAE;YACP,UAAU,EAAE,UAAU,CAAC;SACxB,CAAC;QACF,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,CACA;QACE,IAAI,EAAE,OAAO,CAAC;KACf,GACD;QACE,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CACJ,CAAC;IAEF,KAAY,KAAK,GAAG;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,EAAE,MAAM,CAAC;Q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":"","sources":["../../../src/billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./billing.js";
|