@kaitencloud/graphql-schema 2.0.0 → 2.2.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.
- package/package.json +1 -1
- package/schema.graphqls +87 -0
package/package.json
CHANGED
package/schema.graphqls
CHANGED
|
@@ -652,6 +652,11 @@ extend type Query {
|
|
|
652
652
|
"""
|
|
653
653
|
organizationAuditTrails(
|
|
654
654
|
eventName: String
|
|
655
|
+
"""
|
|
656
|
+
Leave out the reads, evaluations and reports that make up the bulk of a busy
|
|
657
|
+
trail, for a page that wants the changes behind them. False when absent.
|
|
658
|
+
"""
|
|
659
|
+
changesOnly: Boolean
|
|
655
660
|
after: Time
|
|
656
661
|
before: Time
|
|
657
662
|
"""Maximum number of entries to return (default 200, max 1000)"""
|
|
@@ -800,6 +805,52 @@ extend type Query {
|
|
|
800
805
|
instance(id: UUID, slug: String): Instance
|
|
801
806
|
}
|
|
802
807
|
|
|
808
|
+
enum ConversionRuleStatus {
|
|
809
|
+
ACTIVE
|
|
810
|
+
ARCHIVED
|
|
811
|
+
}
|
|
812
|
+
enum AiRequestType {
|
|
813
|
+
COMPLETION
|
|
814
|
+
EMBEDDING
|
|
815
|
+
IMAGE_GENERATION
|
|
816
|
+
AUDIO
|
|
817
|
+
VIDEO
|
|
818
|
+
}
|
|
819
|
+
enum ChargeOnErrorPolicy {
|
|
820
|
+
NEVER
|
|
821
|
+
ALWAYS
|
|
822
|
+
PROVIDER_ERROR_ONLY
|
|
823
|
+
}
|
|
824
|
+
type ConversionRates {
|
|
825
|
+
perRequest: String
|
|
826
|
+
perInputToken: String
|
|
827
|
+
perCachedInputToken: String
|
|
828
|
+
perCacheWriteToken: String
|
|
829
|
+
perOutputToken: String
|
|
830
|
+
perUnit: String
|
|
831
|
+
perSecond: String
|
|
832
|
+
}
|
|
833
|
+
"""An immutable license/pool/model/request identity with mutable exact pricing."""
|
|
834
|
+
type ConversionRule {
|
|
835
|
+
id: UUID!
|
|
836
|
+
licenseSlug: String!
|
|
837
|
+
entitlementSlug: String!
|
|
838
|
+
modelSlug: String
|
|
839
|
+
requestType: AiRequestType
|
|
840
|
+
rates: ConversionRates!
|
|
841
|
+
minimumCreditsPerRequest: String!
|
|
842
|
+
maximumCreditsPerRequest: String
|
|
843
|
+
chargeOnError: ChargeOnErrorPolicy!
|
|
844
|
+
status: ConversionRuleStatus!
|
|
845
|
+
grantedByLicense: Boolean!
|
|
846
|
+
createdAt: Time!
|
|
847
|
+
updatedAt: Time!
|
|
848
|
+
}
|
|
849
|
+
extend type License {
|
|
850
|
+
"""All rules when status is omitted; an explicit status filters that relation."""
|
|
851
|
+
conversionRules(status: ConversionRuleStatus): [ConversionRule!]!
|
|
852
|
+
}
|
|
853
|
+
|
|
803
854
|
"""
|
|
804
855
|
License type enumeration
|
|
805
856
|
"""
|
|
@@ -1151,6 +1202,42 @@ extend type Query {
|
|
|
1151
1202
|
): MetadataFieldPage!
|
|
1152
1203
|
}
|
|
1153
1204
|
|
|
1205
|
+
enum ModelModality {
|
|
1206
|
+
TEXT
|
|
1207
|
+
IMAGE
|
|
1208
|
+
AUDIO
|
|
1209
|
+
VIDEO
|
|
1210
|
+
EMBEDDING
|
|
1211
|
+
MULTIMODAL
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
enum ModelStatus {
|
|
1215
|
+
ACTIVE
|
|
1216
|
+
DEPRECATED
|
|
1217
|
+
ARCHIVED
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
"""
|
|
1221
|
+
An organization-scoped model catalogue entry. Vendor costs are intentionally
|
|
1222
|
+
REST-only under read:models. Deprecated models keep existing pricing; archived
|
|
1223
|
+
models remain in the catalogue but authorize no usage.
|
|
1224
|
+
"""
|
|
1225
|
+
type Model {
|
|
1226
|
+
id: UUID!
|
|
1227
|
+
name: String!
|
|
1228
|
+
slug: String!
|
|
1229
|
+
vendor: String!
|
|
1230
|
+
modality: ModelModality!
|
|
1231
|
+
status: ModelStatus!
|
|
1232
|
+
externalIds: [String!]!
|
|
1233
|
+
metadata: Map
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
extend type Query {
|
|
1237
|
+
"""All catalogue models in the current organization, optionally filtered by status."""
|
|
1238
|
+
models(status: ModelStatus): [Model!]!
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1154
1241
|
"""
|
|
1155
1242
|
Release represents a software release with its components. A release is
|
|
1156
1243
|
immutable: it is created with its component list and can only be deleted
|