Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
12325 lines (12322 loc) · 382 KB
/
Copy pathopenapi.yaml
File metadata and controls
12325 lines (12322 loc) · 382 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
schemas:
AuditTrail:
additionalProperties: false
properties:
eventName:
description: Event name (e.g. ENTITLEMENT_VALUE_GET)
type: string
eventType:
description: Event type identifier (e.g. com.kaiten.instance.entitlement.v1.value_get)
type: string
id:
description: Unique audit trail entry ID
type: string
instanceId:
description: Instance UUID (present for instance-scoped events)
type: string
instanceSlug:
description: Instance slug
type: string
payload:
description: Event payload (JSON)
timestamp:
description: When the event occurred
format: date-time
type: string
required:
- id
- instanceSlug
- eventName
- eventType
- timestamp
type: object
Basic:
additionalProperties: false
properties:
type:
enum:
- basic
type: string
value:
type: string
required:
- type
- value
type: object
BasicTargeting:
additionalProperties: false
properties:
name:
examples:
- Targeting Rule 1
type: string
rule:
description: CEL expression for basicTargeting evaluation
examples:
- user.group == 'beta'
maxLength: 10000
type: string
type:
enum:
- basic
type: string
variant:
type: string
required:
- type
- name
- variant
- rule
type: object
BooleanEntitlementValue:
additionalProperties: false
properties:
type:
description: Value type discriminator
enum:
- boolean
examples:
- boolean
type: string
value:
description: Boolean value
examples:
- true
type: boolean
required:
- type
- value
type: object
BulkEvaluationFailure:
additionalProperties: false
properties:
errorCode:
description: Error code specific to the bulk evaluation error
type: string
errorDetails:
description: Optional error details description
type: string
required:
- errorCode
type: object
BulkEvaluationRequest:
additionalProperties: false
properties:
context:
additionalProperties: {}
type: object
type: object
Command:
additionalProperties: false
properties:
entitlementSlug:
type: string
required:
- entitlementSlug
type: object
Component:
additionalProperties: false
properties:
createdAt:
description: Timestamp when the component was created
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
createdBy:
$ref: "#/components/schemas/User"
description: User who created this component
readOnly: true
description:
description: Description of the component
examples:
- Main API gateway component
maxLength: 500
type: string
id:
description: Unique identifier for the component
examples:
- 123e4567-e89b-12d3-a456-426614174000
readOnly: true
type: string
name:
description: Name of the component
examples:
- api-gateway
maxLength: 100
minLength: 1
type: string
previousComponentId:
description: Reference to the previous version of this component
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
slug:
description: Optional URL-friendly identifier, unique per organization. Auto-generated if not provided.
examples:
- api-gateway-v1-2-3
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
version:
description: Version of the component
examples:
- v1.2.3
maxLength: 100
minLength: 1
type: string
required:
- id
- name
- version
- createdBy
- createdAt
type: object
ConfigEntitlementValue:
additionalProperties: false
properties:
type:
description: Value type discriminator
enum:
- object
examples:
- object
type: string
value:
additionalProperties: {}
description: Object configuration value
type: object
required:
- type
- value
type: object
Connector:
additionalProperties: false
properties:
created_at:
description: Timestamp when connector was first registered
format: date-time
type: string
entitlement_slug:
description: Slug of the BOOLEAN entitlement a license must grant for an organization to activate this connector. Absent means the connector is ungated.
examples:
- connector-attio
type: string
name:
description: Stable connector identifier
examples:
- kaiten.integration.crm.attio
type: string
settings_schema:
additionalProperties: {}
description: JSON schema used to validate connector settings payloads
type: object
updated_at:
description: Timestamp when connector registration was last updated
format: date-time
type: string
version:
description: Registered connector version
examples:
- 1.0.0
type: string
required:
- name
- version
- settings_schema
- created_at
- updated_at
type: object
ConnectorActivation:
additionalProperties: false
properties:
activatedAt:
description: When this organization first activated the connector
format: date-time
type: string
connectorName:
description: Stable connector identifier
examples:
- kaiten.integration.crm.attio
type: string
required:
- connectorName
- activatedAt
type: object
ConnectorSettings:
additionalProperties: false
properties:
connector_name:
description: Stable connector identifier
examples:
- kaiten.integration.crm.attio
readOnly: true
type: string
settings:
additionalProperties: {}
description: Connector settings payload
type: object
required:
- connector_name
- settings
type: object
ConnectorSettingsSchema:
additionalProperties: false
properties:
connector_name:
description: Stable connector identifier
examples:
- kaiten.integration.crm.attio
type: string
schema:
additionalProperties: {}
description: JSON schema describing supported connector settings payload
type: object
version:
description: Registered connector version
examples:
- 1.0.0
type: string
required:
- connector_name
- version
- schema
type: object
ConnectorState:
additionalProperties: false
properties:
activated:
description: Whether this organization has turned the connector on
type: boolean
activatedAt:
description: When this organization activated the connector. Absent when it has not.
format: date-time
type: string
available:
description: Whether this deployment has the connector registered
type: boolean
connectorName:
description: Stable connector identifier
examples:
- kaiten.integration.crm.attio
type: string
entitled:
description: Whether this organization's licence includes the connector. True for an ungated connector.
type: boolean
version:
description: Registered connector version. Absent when the connector is not available.
examples:
- 1.0.0
type: string
required:
- connectorName
- available
- entitled
- activated
type: object
Customer:
additionalProperties: false
properties:
createdAt:
description: Timestamp when the customer was created
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
createdBy:
$ref: "#/components/schemas/User"
description: User who created this customer
readOnly: true
domain:
description: Optional customer domain name
examples:
- example.tld
pattern: ^[a-z0-9_-]+(\.[a-z0-9_-]+)+$
type: string
externalCustomerId:
description: Optional identifier for the customer in an external system
examples:
- external-customer-id-12345
type:
- string
- "null"
id:
description: Unique identifier for the customer
examples:
- 123e4567-e89b-12d3-a456-426614174000
readOnly: true
type: string
integrations:
additionalProperties:
$ref: "#/components/schemas/CustomerIntegration"
description: Integrations grouped by adapter name
type: object
name:
description: Name of the customer
examples:
- Awesome Customer
minLength: 1
type: string
slug:
description: Optional URL-friendly identifier, unique per organization. Auto-generated if not provided.
examples:
- awesome-customer
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
updatedAt:
description: Timestamp when the customer was last updated
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
updatedBy:
$ref: "#/components/schemas/User"
description: User who last updated this customer
readOnly: true
required:
- id
- name
- createdBy
- createdAt
- updatedBy
- updatedAt
type: object
CustomerBody:
additionalProperties: false
properties:
domain:
description: Optional customer domain name
examples:
- example.tld
pattern: ^[a-z0-9_-]+(\.[a-z0-9_-]+)+$
type: string
error:
description: Optional integration error message
type: string
integrationMetadata:
additionalProperties: {}
description: Adapter-specific integration metadata
type: object
name:
description: Customer name
examples:
- Awesome Customer
minLength: 1
type: string
slug:
description: Customer slug
examples:
- awesome-customer
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
webUrl:
description: Absolute http(s) link to the record in the third-party system
examples:
- https://app.attio.com/w/acme/record/rec_12345
type: string
type: object
CustomerCreationRejected:
additionalProperties: false
properties:
name:
type: string
reason:
type: string
slug:
type: string
required:
- name
- slug
- reason
type: object
CustomerIntegration:
additionalProperties: false
properties:
external_id:
description: External identifier in the third-party adapter
examples:
- rec_12345
type: string
last_error:
description: Last synchronization error message, if any
type: string
metadata:
additionalProperties: {}
description: Adapter-specific integration metadata
type: object
synced_at:
description: Timestamp of the last synchronization with the adapter
format: date-time
readOnly: true
type: string
web_url:
description: Absolute http(s) link to the record in the third-party system
examples:
- https://app.attio.com/w/acme/company/rec_12345
type: string
required:
- external_id
- synced_at
type: object
CustomerIntegrationResource:
additionalProperties: false
properties:
domain:
description: Optional customer domain name
examples:
- example.tld
type: string
error:
description: Last synchronization error for this integration, if any
type: string
integrationMetadata:
additionalProperties: {}
description: Adapter-specific customer integration metadata
type: object
name:
description: Customer name
examples:
- Awesome Customer
type: string
slug:
description: Customer slug
examples:
- awesome-customer
type: string
webUrl:
description: Absolute http(s) link to the record in the third-party system
examples:
- https://app.attio.com/w/acme/company/rec_12345
type: string
required:
- integrationMetadata
- name
- slug
type: object
DefaultVariant:
discriminator:
mapping:
basic: "#/components/schemas/Basic"
rollout_date: "#/components/schemas/RolloutDate"
rollout_percentage: "#/components/schemas/RolloutPercentage"
propertyName: type
oneOf:
- $ref: "#/components/schemas/Basic"
- $ref: "#/components/schemas/RolloutDate"
- $ref: "#/components/schemas/RolloutPercentage"
Deployment:
additionalProperties: false
properties:
createdAt:
description: Timestamp when the deployment was recorded
examples:
- "2023-10-01T12:00:00Z"
format: date-time
type: string
createdBy:
$ref: "#/components/schemas/User"
description: User who recorded this deployment
deploymentZoneId:
description: Deployment zone the release was deployed to
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
id:
description: Unique identifier for this deployment event
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
releaseId:
description: Release that was deployed
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
required:
- id
- deploymentZoneId
- releaseId
- createdBy
- createdAt
type: object
DeploymentZone:
additionalProperties: false
properties:
createdAt:
description: Timestamp when the deployment zone was created
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
createdBy:
$ref: "#/components/schemas/User"
description: User who created this deployment zone
readOnly: true
description:
description: Description of the deployment zone
examples:
- "2023-10-01T12:00:00Z"
type: string
id:
description: Unique identifier for the deployment zone
examples:
- 123e4567-e89b-12d3-a456-426614174000
readOnly: true
type: string
metadata:
additionalProperties: {}
description: Typed metadata for the deployment zone, validated against the org-scoped MetadataField schema
examples:
- region: eu-west-1
type: object
name:
description: Name of the deployment zone
examples:
- AWS us-west-2
minLength: 1
type: string
releaseId:
description: Currently deployed release ID
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
slug:
description: Optional URL-friendly identifier, unique per organization. Auto-generated if not provided.
examples:
- aws-us-west-2
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
type:
description: "Environment class of the deployment zone. Free-form: any value is stored as sent, but production, staging and development are the ones the console labels, and feature-flag targeting rules match on this field as __kaiten.deploymentZone.type."
examples:
- production
type: string
updatedAt:
description: Timestamp when the deployment zone was last updated
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
updatedBy:
$ref: "#/components/schemas/User"
description: User who last updated the deployment zone
readOnly: true
required:
- id
- name
- type
- description
- createdBy
- createdAt
- updatedBy
- updatedAt
type: object
Entitlement:
additionalProperties: false
properties:
aggregationMethod:
description: Method used to fold each reported usage value into the stored total (NUMBER only). Defaults to SUM.
enum:
- COUNT
- SUM
- AVERAGE
- MIN
- MAX
- LATEST
examples:
- SUM
type: string
createdAt:
description: Timestamp when this entitlement was created
examples:
- "2023-10-01T12:00:00Z"
format: date-time
readOnly: true
type: string
description:
description: Description of the entitlement
examples:
- Basic subscription plan with limited features
type:
- string
- "null"
displayOrder:
description: Sort order of this entitlement in customer-facing components (ascending). Defaults to 0.
examples:
- 10
format: int32
minimum: 0
type: integer
entitlementGroups:
description: Groups associated with this entitlement
items:
$ref: "#/components/schemas/EntitlementGroupSummary"
readOnly: true
type:
- array
- "null"
groupSlugs:
description: Groups associated with this entitlement, identified by slug
items:
type: string
type:
- array
- "null"
writeOnly: true
icon:
description: Optional icon, stored as a provider-namespaced token (provider:name). Decoupled from any specific icon library.
examples:
- lucide:rocket
maxLength: 64
pattern: ^[a-z0-9]+:[a-z0-9]+(-[a-z0-9]+)*$
type: string
id:
description: Unique identifier for the entitlement
examples:
- 123e4567-e89b-12d3-a456-426614174000
readOnly: true
type: string
name:
description: Name of the entitlement
examples:
- Basic Plan
minLength: 1
type: string
resetAnchor:
description: "Phase of the periodic usage window: CALENDAR (UTC calendar-aligned) or LICENSE_START (phased off the instance's license start date). Required exactly when resetPeriod is set; defaults to CALENDAR when omitted. Immutable once set."
enum:
- CALENDAR
- LICENSE_START
examples:
- CALENDAR
type: string
resetPeriod:
description: Cadence at which usage automatically resets for this NUMBER entitlement. NULL means a lifetime counter (default). Immutable once set -- a full-replace PUT must echo back the stored value.
enum:
- HOUR
- DAY
- WEEK
- MONTH
- YEAR
examples:
- MONTH
type: string
saleUnitFactor:
description: Number of base units one sale unit represents (1 sale unit = N base units).
examples:
- 3
exclusiveMinimum: 0
format: double
type: number
saleUnitPlural:
description: Plural label of the unit this entitlement is sold in, when it differs from the base unit.
examples:
- packs
maxLength: 100
minLength: 1
type: string
saleUnitSingular:
description: Singular label of the unit this entitlement is sold in, when it differs from the base unit. Requires the base unit labels and the full sale unit trio (saleUnitSingular, saleUnitPlural, saleUnitFactor).
examples:
- pack
maxLength: 100
minLength: 1
type: string
slug:
description: Optional URL-friendly identifier, unique per organization. Auto-generated if not provided.
examples:
- basic-plan
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
type:
description: Type of the entitlement
enum:
- BOOLEAN
- NUMBER
- CONFIG
- NUMBER_AI_CREDIT
examples:
- NUMBER
type: string
unitPlural:
description: Plural label of the base unit this entitlement is measured in (NUMBER type only). Must be provided together with unitSingular.
examples:
- seats
maxLength: 100
minLength: 1
type: string
unitSingular:
description: Singular label of the base unit this entitlement is measured in (NUMBER type only). Must be provided together with unitPlural.
examples:
- seat
maxLength: 100
minLength: 1
type: string
updatedAt:
description: Timestamp when this entitlement was last updated
examples:
- "2023-10-02T12:00:00Z"
format: date-time
readOnly: true
type: string
userFacing:
description: Whether this entitlement is displayed in customer-facing components (e.g. plan and pricing pages). Defaults to false.
examples:
- true
type: boolean
warningThresholdPercent:
description: Percentage of the cap at which an early-warning event fires before the cap is reached. 0 disables the warning (default).
examples:
- 80
format: int32
maximum: 100
minimum: 0
type: integer
required:
- id
- name
- description
- createdAt
- updatedAt
type: object
EntitlementGroup:
additionalProperties: false
properties:
description:
description: Description of the entitlement group
examples:
- All entitlements related to AI usage quotas
type:
- string
- "null"
id:
description: Unique identifier for the entitlement group
examples:
- 123e4567-e89b-12d3-a456-426614174000
readOnly: true
type: string
name:
description: Name of the entitlement group
examples:
- AI Quotas
minLength: 1
type: string
slug:
description: URL-friendly identifier, unique per organization. Auto-generated if not provided.
examples:
- ai-quotas
maxLength: 100
minLength: 2
pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
type: string
required:
- id
- name
- description
type: object
EntitlementGroupSummary:
additionalProperties: false
properties:
id:
description: Unique identifier for the entitlement group
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
name:
description: Name of the entitlement group
examples:
- AI Quotas
type: string
slug:
description: URL-friendly identifier for the entitlement group
examples:
- ai-quotas
type: string
required:
- id
- name
- slug
type: object
EntitlementGroupUsage:
additionalProperties: false
properties:
currentPeriodEnd:
description: End of the current usage window (exclusive). Null for a lifetime entitlement.
format: date-time
type: string
currentPeriodStart:
description: Start of the current usage window (inclusive). Null for a lifetime entitlement.
format: date-time
type: string
entitlementId:
description: Entitlement ID
type: string
entitlementName:
description: Entitlement name
type: string
entitlementSlug:
description: Entitlement slug
type: string
entitlementType:
description: Entitlement type
type: string
licenseValue:
description: License limit value, discriminated by the 'type' field. Null when the license grants no value.
discriminator:
mapping:
boolean: "#/components/schemas/BooleanEntitlementValue"
number: "#/components/schemas/NumberEntitlementValue"
object: "#/components/schemas/ConfigEntitlementValue"
propertyName: type
oneOf:
- $ref: "#/components/schemas/NumberEntitlementValue"
- $ref: "#/components/schemas/BooleanEntitlementValue"
- $ref: "#/components/schemas/ConfigEntitlementValue"
usageValue:
description: Current usage value, discriminated by the 'type' field. Null when nothing has been reported yet.
discriminator:
mapping:
boolean: "#/components/schemas/BooleanEntitlementValue"
number: "#/components/schemas/NumberEntitlementValue"
object: "#/components/schemas/ConfigEntitlementValue"
propertyName: type
oneOf:
- $ref: "#/components/schemas/NumberEntitlementValue"
- $ref: "#/components/schemas/BooleanEntitlementValue"
- $ref: "#/components/schemas/ConfigEntitlementValue"
required:
- entitlementId
- entitlementSlug
- entitlementName
- entitlementType
type: object
EntitlementUsage:
additionalProperties: false
properties:
currentPeriodEnd:
description: End of the current usage window (exclusive). Null for a lifetime entitlement (no configured reset period).
examples:
- "2026-04-01T00:00:00Z"
format: date-time
type: string
currentPeriodStart:
description: Start of the current usage window (inclusive). Null for a lifetime entitlement (no configured reset period).
examples:
- "2026-03-01T00:00:00Z"
format: date-time
type: string
entitlementId:
description: Unique identifier for the entitlement
examples:
- 123e4567-e89b-12d3-a456-426614174000
type: string
entitlementSlug:
description: URL-friendly identifier of the entitlement
examples:
- premium-support
type: string
licenseId:
description: Unique identifier for the license to which this entitlement usage belongs
examples:
- 123e4567-e89b-12d3-a456-426614174001
type: string
licenseSlug:
description: URL-friendly identifier of the license
examples:
- enterprise-license
type: string
limit:
description: License grant this usage is measured against, discriminated by the 'type' field. Null when the license grants no value; -1 means unlimited for a NUMBER entitlement.
discriminator:
mapping:
boolean: "#/components/schemas/BooleanEntitlementValue"
number: "#/components/schemas/NumberEntitlementValue"
object: "#/components/schemas/ConfigEntitlementValue"
propertyName: type
oneOf:
- $ref: "#/components/schemas/NumberEntitlementValue"
- $ref: "#/components/schemas/BooleanEntitlementValue"
- $ref: "#/components/schemas/ConfigEntitlementValue"
value:
description: Resolved entitlement value, discriminated by the 'type' field
discriminator:
mapping:
boolean: "#/components/schemas/BooleanEntitlementValue"
number: "#/components/schemas/NumberEntitlementValue"
object: "#/components/schemas/ConfigEntitlementValue"
propertyName: type
oneOf:
- $ref: "#/components/schemas/NumberEntitlementValue"
- $ref: "#/components/schemas/BooleanEntitlementValue"
- $ref: "#/components/schemas/ConfigEntitlementValue"
required:
- entitlementId
- entitlementSlug
- licenseId
- licenseSlug
- value
type: object
ErrorDetail:
additionalProperties: false
properties:
location:
description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
type: string
message:
description: Error message text
type: string
value:
description: The value at the given location
type: object
EvaluationFailure:
additionalProperties: false
properties:
errorCode:
description: OpenFeature compatible error code
type: string
errorDetails:
description: Error description
type: string
key:
description: Feature flag key
type: string
metadata:
additionalProperties: {}
description: Arbitrary metadata for the flag
type: object