@adaptware/eagles-db 0.5.9 → 0.5.10
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/client/edge.js +43 -29
- package/client/index-browser.js +46 -32
- package/client/index.d.ts +3106 -2572
- package/client/index.js +43 -29
- package/client/package.json +1 -1
- package/client/schema.prisma +58 -44
- package/client/wasm.js +43 -29
- package/package.json +1 -1
- package/prisma/schema/usage/licenseIncludedWorkflow.prisma +14 -0
- package/prisma/schema/usage/usageAggregate.prisma +23 -0
- package/prisma/schema/usage/usageEnums.prisma +24 -0
- package/prisma/schema/usage/usageLedgerEntry.prisma +26 -0
- package/prisma/schema/usage/usageMetricDefinition.prisma +19 -0
- package/prisma/schema/usage.prisma +0 -96
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -3868,6 +3868,45 @@ model Transcript {
|
|
|
3868
3868
|
@@schema("public")
|
|
3869
3869
|
}
|
|
3870
3870
|
|
|
3871
|
+
/// Orion workflow names bundled in license — excluded from ai.cost metering.
|
|
3872
|
+
/// Future license plans will reference subsets of this catalogue.
|
|
3873
|
+
model LicenseIncludedWorkflow {
|
|
3874
|
+
id String @id @default(uuid())
|
|
3875
|
+
workflow_name String @unique
|
|
3876
|
+
created_at DateTime @default(now())
|
|
3877
|
+
updated_at DateTime @updatedAt
|
|
3878
|
+
created_by String
|
|
3879
|
+
updated_by String
|
|
3880
|
+
is_active Boolean @default(true)
|
|
3881
|
+
|
|
3882
|
+
@@map("license_included_workflows")
|
|
3883
|
+
@@schema("usage")
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
model UsageAggregate {
|
|
3887
|
+
id String @id @default(uuid())
|
|
3888
|
+
organisation_id String
|
|
3889
|
+
metric_key String
|
|
3890
|
+
dimension_hash String
|
|
3891
|
+
dimensions Json
|
|
3892
|
+
total_quantity Decimal
|
|
3893
|
+
period_start DateTime?
|
|
3894
|
+
period_end DateTime?
|
|
3895
|
+
created_at DateTime @default(now())
|
|
3896
|
+
updated_at DateTime @updatedAt
|
|
3897
|
+
created_by String
|
|
3898
|
+
updated_by String
|
|
3899
|
+
is_active Boolean @default(true)
|
|
3900
|
+
|
|
3901
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
3902
|
+
metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
|
|
3903
|
+
|
|
3904
|
+
@@unique([organisation_id, metric_key, dimension_hash, period_start])
|
|
3905
|
+
@@index([organisation_id, metric_key])
|
|
3906
|
+
@@map("usage_aggregates")
|
|
3907
|
+
@@schema("usage")
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3871
3910
|
enum UsageUnit {
|
|
3872
3911
|
COUNT
|
|
3873
3912
|
BYTES
|
|
@@ -3893,23 +3932,6 @@ enum UsageSourceType {
|
|
|
3893
3932
|
@@schema("usage")
|
|
3894
3933
|
}
|
|
3895
3934
|
|
|
3896
|
-
model UsageMetricDefinition {
|
|
3897
|
-
id String @id @default(uuid())
|
|
3898
|
-
key String @unique
|
|
3899
|
-
name String
|
|
3900
|
-
unit UsageUnit
|
|
3901
|
-
aggregation_type UsageAggregationType
|
|
3902
|
-
metadata Json?
|
|
3903
|
-
created_at DateTime @default(now())
|
|
3904
|
-
updated_at DateTime @updatedAt
|
|
3905
|
-
|
|
3906
|
-
ledger_entries UsageLedgerEntry[]
|
|
3907
|
-
aggregates UsageAggregate[]
|
|
3908
|
-
|
|
3909
|
-
@@map("usage_metric_definitions")
|
|
3910
|
-
@@schema("usage")
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
3935
|
model UsageLedgerEntry {
|
|
3914
3936
|
id String @id @default(uuid())
|
|
3915
3937
|
organisation_id String
|
|
@@ -3923,6 +3945,10 @@ model UsageLedgerEntry {
|
|
|
3923
3945
|
resource_type String?
|
|
3924
3946
|
resource_id String?
|
|
3925
3947
|
created_at DateTime @default(now())
|
|
3948
|
+
updated_at DateTime @updatedAt
|
|
3949
|
+
created_by String
|
|
3950
|
+
updated_by String
|
|
3951
|
+
is_active Boolean @default(true)
|
|
3926
3952
|
|
|
3927
3953
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
3928
3954
|
metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
|
|
@@ -3933,35 +3959,23 @@ model UsageLedgerEntry {
|
|
|
3933
3959
|
@@schema("usage")
|
|
3934
3960
|
}
|
|
3935
3961
|
|
|
3936
|
-
model
|
|
3937
|
-
id
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
|
|
3949
|
-
|
|
3950
|
-
@@unique([organisation_id, metric_key, dimension_hash, period_start])
|
|
3951
|
-
@@index([organisation_id, metric_key])
|
|
3952
|
-
@@map("usage_aggregates")
|
|
3953
|
-
@@schema("usage")
|
|
3954
|
-
}
|
|
3962
|
+
model UsageMetricDefinition {
|
|
3963
|
+
id String @id @default(uuid())
|
|
3964
|
+
key String @unique
|
|
3965
|
+
name String
|
|
3966
|
+
unit UsageUnit
|
|
3967
|
+
aggregation_type UsageAggregationType
|
|
3968
|
+
metadata Json?
|
|
3969
|
+
created_at DateTime @default(now())
|
|
3970
|
+
updated_at DateTime @updatedAt
|
|
3971
|
+
created_by String
|
|
3972
|
+
updated_by String
|
|
3973
|
+
is_active Boolean @default(true)
|
|
3955
3974
|
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
model LicenseIncludedWorkflow {
|
|
3959
|
-
id String @id @default(uuid())
|
|
3960
|
-
workflow_name String @unique
|
|
3961
|
-
created_at DateTime @default(now())
|
|
3962
|
-
updated_at DateTime @updatedAt
|
|
3975
|
+
ledger_entries UsageLedgerEntry[]
|
|
3976
|
+
aggregates UsageAggregate[]
|
|
3963
3977
|
|
|
3964
|
-
@@map("
|
|
3978
|
+
@@map("usage_metric_definitions")
|
|
3965
3979
|
@@schema("usage")
|
|
3966
3980
|
}
|
|
3967
3981
|
|