@kaitencloud/graphql-schema 2.1.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 +82 -0
package/package.json
CHANGED
package/schema.graphqls
CHANGED
|
@@ -805,6 +805,52 @@ extend type Query {
|
|
|
805
805
|
instance(id: UUID, slug: String): Instance
|
|
806
806
|
}
|
|
807
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
|
+
|
|
808
854
|
"""
|
|
809
855
|
License type enumeration
|
|
810
856
|
"""
|
|
@@ -1156,6 +1202,42 @@ extend type Query {
|
|
|
1156
1202
|
): MetadataFieldPage!
|
|
1157
1203
|
}
|
|
1158
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
|
+
|
|
1159
1241
|
"""
|
|
1160
1242
|
Release represents a software release with its components. A release is
|
|
1161
1243
|
immutable: it is created with its component list and can only be deleted
|