@quickpipeaiab/domain 0.11.0 → 0.12.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/ai.ttl CHANGED
@@ -13,8 +13,8 @@
13
13
 
14
14
  <https://id.quickpipe.ai/domain/ai>
15
15
  a owl:Ontology ;
16
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/ai> ;
17
- owl:versionInfo "0.11.0" ;
16
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/ai> ;
17
+ owl:versionInfo "0.12.0" ;
18
18
  core:title "QuickPipe domain model: ai"@en ;
19
19
  core:preferred-prefix "ai" ;
20
20
  core:preferred-namespace "https://id.quickpipe.ai/domain/ai#" ;
@@ -462,7 +462,7 @@ ai:model a owl:Class ;
462
462
 
463
463
  ai:tool a owl:Class ;
464
464
  rdfs:subClassOf ai:target ;
465
- owl:disjointUnionOf ( ai:mcp-tool ai:client-tool ) ;
465
+ owl:disjointUnionOf ( ai:mcp-tool ai:client-tool ai:agent-tool ) ;
466
466
  core:label "tool"@en ;
467
467
  core:definition "An operation that the model of a run can call. The task sets the tools that its runs can use."@en ;
468
468
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
@@ -496,6 +496,17 @@ ai:client-tool a owl:Class ;
496
496
  core:owner core:kai-agent ;
497
497
  core:has-contract true .
498
498
 
499
+ ai:agent-tool a owl:Class ;
500
+ rdfs:subClassOf ai:tool ;
501
+ owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( ai:tool
502
+ [ a owl:Restriction ; owl:onProperty ai:has-tool-kind ; owl:hasValue ai-vocab:tool-kind-agent ] ) ] ;
503
+ core:label "agent tool"@en ;
504
+ core:definition "A tool that gives work to a registered client agent through the A2A client adapter, as 0053 tells."@en ;
505
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
506
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
507
+ core:owner core:kai-agent ;
508
+ core:has-contract true .
509
+
499
510
  ai:server-token a owl:Class ;
500
511
  rdfs:subClassOf core:entity ;
501
512
  owl:equivalentClass [ a owl:Class ; owl:intersectionOf ( core:entity
@@ -596,10 +607,10 @@ ai:admin-change a owl:Class ;
596
607
  # Object properties.
597
608
 
598
609
  ai:of-task a owl:ObjectProperty , owl:FunctionalProperty ;
599
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:prompt-version ai:release ai:override ai:schedule ai:spend-entry ai:scorer ai:eval-set ) ] ;
610
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:prompt-version ai:release ai:override ai:schedule ai:spend-entry ai:scorer ai:eval-set ) ] ;
600
611
  rdfs:range ai:task ;
601
612
  core:label "of task"@en ;
602
- core:definition "The task of a run, a prompt version, a release, an override, a schedule, a spend entry, a scorer or an eval set."@en ;
613
+ core:definition "The task of a run, a flow, a prompt version, a release, an override, a schedule, a spend entry, a scorer or an eval set."@en ;
603
614
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
604
615
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
605
616
  core:owner core:kai-agent .
@@ -632,7 +643,7 @@ ai:of-schedule a owl:ObjectProperty , owl:FunctionalProperty ;
632
643
  core:owner core:kai-agent .
633
644
 
634
645
  ai:in-thread a owl:ObjectProperty , owl:FunctionalProperty ;
635
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:memory ) ] ;
646
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:memory ) ] ;
636
647
  rdfs:range ai:thread ;
637
648
  core:label "in thread"@en ;
638
649
  core:definition "The thread of a conversation. The caller sends a `thread` id for a conversation."@en ;
@@ -1085,11 +1096,21 @@ ai:escalates a owl:ObjectProperty , owl:FunctionalProperty ;
1085
1096
 
1086
1097
  # Datatype properties.
1087
1098
 
1099
+ ai:has-publish-reason a owl:DatatypeProperty , owl:FunctionalProperty ;
1100
+ rdfs:domain ai:admin-change ;
1101
+ rdfs:range xsd:string ;
1102
+ core:label "has publish reason"@en ;
1103
+ core:definition "The text of 1 to 500 characters that an author writes to publish or roll back the own prompt version, or a version that fails the eval gate. The `diff` of the admin change keeps it."@en ;
1104
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Tasks and prompts" ;
1105
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1106
+ core:owner core:kai-agent ;
1107
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
1108
+
1088
1109
  ai:has-correlation-id a owl:DatatypeProperty , owl:FunctionalProperty ;
1089
- rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:spend-entry desk:flow-action billing:outbox-row events:webhook-message ) ] ;
1110
+ rdfs:domain [ a owl:Class ; owl:unionOf ( ai:run ai:flow ai:spend-entry desk:flow-action billing:outbox-row events:webhook-message ) ] ;
1090
1111
  rdfs:range xsd:string ;
1091
1112
  core:label "has run correlation id"@en ;
1092
- core:definition "The trace id of the request that starts a run, or that makes an outbox row or a flow action. Later requests have their own traces, with a span link to it."@en ;
1113
+ core:definition "The trace id of the request that starts a run or a flow, or that makes an outbox row or a flow action. Later requests have their own traces, with a span link to it."@en ;
1093
1114
  core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
1094
1115
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
1095
1116
  core:owner core:kai-agent ;
@@ -3017,7 +3038,7 @@ ai:column-execution-runs-correlation a owl:NamedIndividual , core:column ;
3017
3038
  ai:column-execution-runs-flow a owl:NamedIndividual , core:column ;
3018
3039
  core:of-table ai:table-execution-runs ;
3019
3040
  core:has-name "flow" ;
3020
- core:not-modelled-reason "The id of the flow that the run serves. The model has no class for a flow. The flow keeps the id of its run in `desk:records.flow_actions`."@en ;
3041
+ core:stores-property ai:of-flow ;
3021
3042
  core:label "execution.runs.flow"@en ;
3022
3043
  core:definition "The id of the flow of `kai-agent` that asked for the run. A run outside a flow has none."@en ;
3023
3044
  core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
@@ -3449,17 +3470,273 @@ ai:chooses-option a owl:DatatypeProperty ;
3449
3470
  core:owner core:kai-agent ;
3450
3471
  core:gdpr-category core-vocab:gdpr-category-non-personal .
3451
3472
 
3452
- ai:has-flow-status a owl:ObjectProperty , owl:FunctionalProperty ;
3473
+ ai:answers-event a owl:DatatypeProperty , owl:FunctionalProperty ;
3474
+ rdfs:domain ai:flow-message ;
3475
+ rdfs:range xsd:positiveInteger ;
3476
+ core:label "answers event"@en ;
3477
+ core:definition "The number of the last card of the flow that the user saw when the user sent a text or a choice. The flow takes the message only when that card is still the open card or a copy of it."@en ;
3478
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3479
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3480
+ core:owner core:kai-agent ;
3481
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3482
+
3483
+ ai:flow a owl:Class ;
3484
+ rdfs:subClassOf core:entity ;
3485
+ core:label "flow"@en ;
3486
+ core:definition "One prospect flow or campaign flow of one user in one workspace. It has a thread, a task, a status for the user and a list of steps. Each step of the model is a run that has the flow."@en ;
3487
+ core:hint "A chat with Koa that leads you through a job, step by step."@en ;
3488
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
3489
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3490
+ core:owner core:kai-agent ;
3491
+ core:has-contract false ;
3492
+ core:retention "none" ;
3493
+ core:retention-clock core-vocab:retention-clock-since-created ;
3494
+ core:controller-role core-vocab:controller-role-processor .
3495
+
3496
+ ai:of-flow a owl:ObjectProperty , owl:FunctionalProperty ;
3453
3497
  rdfs:domain ai:run ;
3498
+ rdfs:range ai:flow ;
3499
+ core:label "of flow"@en ;
3500
+ core:definition "The flow that asked for a run. A run outside a flow has none."@en ;
3501
+ core:hint "The chat that this work belongs to."@en ;
3502
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3503
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3504
+ core:owner core:kai-agent ;
3505
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3506
+
3507
+ ai:has-flow-status a owl:ObjectProperty , owl:FunctionalProperty ;
3508
+ rdfs:domain ai:flow ;
3454
3509
  rdfs:range core:concept ;
3455
3510
  core:label "has flow status"@en ;
3456
- core:definition "The state of a run that drives a flow, as the user sees it. The value is a concept of the scheme `flow status`."@en ;
3511
+ core:definition "The state of a flow, as the user sees it. The value is a concept of the scheme `flow status`."@en ;
3457
3512
  core:hint "What the flow does now."@en ;
3458
3513
  core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3459
3514
  core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3460
3515
  core:owner core:kai-agent ;
3461
3516
  core:gdpr-category core-vocab:gdpr-category-non-personal .
3462
3517
 
3518
+ ai:ranked-account a owl:Class ;
3519
+ rdfs:subClassOf core:entity ;
3520
+ core:label "ranked account"@en ;
3521
+ core:definition "One account of an account rank, with its fit level and its rank notes. The rule of the task `account.rank` gives both."@en ;
3522
+ core:hint "One company in the ranked list, with how well it fits and what is against it."@en ;
3523
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3524
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3525
+ core:owner core:kai-agent ;
3526
+ core:has-contract false ;
3527
+ core:retention "none" ;
3528
+ core:retention-clock core-vocab:retention-clock-since-created ;
3529
+ core:controller-role core-vocab:controller-role-processor .
3530
+
3531
+ ai:fit-level a owl:Class ;
3532
+ rdfs:subClassOf core:concept ;
3533
+ core:label "fit level value"@en ;
3534
+ core:definition "A concept of the scheme `fit level`: how well one ranked account fits the wanted groups."@en ;
3535
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3536
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3537
+ core:owner core:kai-agent .
3538
+
3539
+ ai:rank-note a owl:Class ;
3540
+ rdfs:subClassOf core:concept ;
3541
+ core:label "rank note value"@en ;
3542
+ core:definition "A concept of the scheme `rank note`: one thing that the rule finds against one ranked account."@en ;
3543
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Account rank" ;
3544
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3545
+ core:owner core:kai-agent .
3546
+
3547
+ ai:has-fit-level a owl:ObjectProperty , owl:FunctionalProperty ;
3548
+ rdfs:domain ai:ranked-account ;
3549
+ rdfs:range ai:fit-level ;
3550
+ core:label "has fit level"@en ;
3551
+ core:definition "The fit level of a ranked account. The value is a concept of the scheme `fit level`."@en ;
3552
+ core:hint "How well this company fits what you want."@en ;
3553
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0092-account-rank-order-in-code.md#Decision" ;
3554
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3555
+ core:owner core:kai-agent ;
3556
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3557
+
3558
+ ai:has-rank-note a owl:ObjectProperty ;
3559
+ rdfs:domain ai:ranked-account ;
3560
+ rdfs:range ai:rank-note ;
3561
+ core:label "has rank note"@en ;
3562
+ core:definition "A rank note of a ranked account. A ranked account has zero or more. The value is a concept of the scheme `rank note`."@en ;
3563
+ core:hint "One thing that is against this company."@en ;
3564
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0092-account-rank-order-in-code.md#Decision" ;
3565
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3566
+ core:owner core:kai-agent ;
3567
+ core:gdpr-category core-vocab:gdpr-category-non-personal .
3568
+
3569
+ ai:table-execution-flows a owl:NamedIndividual , core:table ;
3570
+ core:in-database-schema ai:schema-execution ;
3571
+ core:has-name "flows" ;
3572
+ core:has-row-class ai:flow ;
3573
+ core:label "execution.flows"@en ;
3574
+ core:definition "The table of the flows of `kai-agent`: one row for each flow, with its place, its phase outputs, its bound `leads` run and its deadline."@en ;
3575
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3576
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3577
+ core:owner core:kai-agent .
3578
+
3579
+ ai:column-execution-flows-id a owl:NamedIndividual , core:column ;
3580
+ core:of-table ai:table-execution-flows ;
3581
+ core:has-name "id" ;
3582
+ core:in-primary-key true ;
3583
+ core:stores-property core:id ;
3584
+ core:label "execution.flows.id"@en ;
3585
+ core:definition "The id of the flow. It is the primary key."@en ;
3586
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3587
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3588
+ core:owner core:kai-agent .
3589
+
3590
+ ai:column-execution-flows-workspace a owl:NamedIndividual , core:column ;
3591
+ core:of-table ai:table-execution-flows ;
3592
+ core:has-name "workspace" ;
3593
+ core:stores-property core:in-workspace ;
3594
+ core:label "execution.flows.workspace"@en ;
3595
+ core:definition "The id of the workspace that owns the flow."@en ;
3596
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3597
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3598
+ core:owner core:kai-agent .
3599
+
3600
+ ai:column-execution-flows-user-id a owl:NamedIndividual , core:column ;
3601
+ core:of-table ai:table-execution-flows ;
3602
+ core:has-name "user_id" ;
3603
+ core:stores-property core:for-user ;
3604
+ core:label "execution.flows.user_id"@en ;
3605
+ core:definition "The id of the user who owns the flow."@en ;
3606
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3607
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3608
+ core:owner core:kai-agent .
3609
+
3610
+ ai:column-execution-flows-thread a owl:NamedIndividual , core:column ;
3611
+ core:of-table ai:table-execution-flows ;
3612
+ core:has-name "thread" ;
3613
+ core:stores-property ai:in-thread ;
3614
+ core:label "execution.flows.thread"@en ;
3615
+ core:definition "The id of the thread of the flow."@en ;
3616
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3617
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3618
+ core:owner core:kai-agent .
3619
+
3620
+ ai:column-execution-flows-task a owl:NamedIndividual , core:column ;
3621
+ core:of-table ai:table-execution-flows ;
3622
+ core:has-name "task" ;
3623
+ core:stores-property ai:of-task ;
3624
+ core:label "execution.flows.task"@en ;
3625
+ core:definition "The name of the task that the flow runs."@en ;
3626
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3627
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3628
+ core:owner core:kai-agent .
3629
+
3630
+ ai:column-execution-flows-status a owl:NamedIndividual , core:column ;
3631
+ core:of-table ai:table-execution-flows ;
3632
+ core:has-name "status" ;
3633
+ core:stores-property ai:has-flow-status ;
3634
+ core:label "execution.flows.status"@en ;
3635
+ core:definition "The state of the flow for the user: a notation of the scheme flow status."@en ;
3636
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3637
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3638
+ core:owner core:kai-agent .
3639
+
3640
+ ai:column-execution-flows-correlation a owl:NamedIndividual , core:column ;
3641
+ core:of-table ai:table-execution-flows ;
3642
+ core:has-name "correlation" ;
3643
+ core:stores-property ai:has-correlation-id ;
3644
+ core:label "execution.flows.correlation"@en ;
3645
+ core:definition "The trace id of the request that started the flow. Each run of the flow has it."@en ;
3646
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3647
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3648
+ core:owner core:kai-agent .
3649
+
3650
+ ai:column-execution-flows-created-at a owl:NamedIndividual , core:column ;
3651
+ core:of-table ai:table-execution-flows ;
3652
+ core:has-name "created_at" ;
3653
+ core:stores-property core:started-at ;
3654
+ core:label "execution.flows.created_at"@en ;
3655
+ core:definition "The time when the flow started."@en ;
3656
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3657
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3658
+ core:owner core:kai-agent .
3659
+
3660
+ ai:column-execution-flows-step a owl:NamedIndividual , core:column ;
3661
+ core:of-table ai:table-execution-flows ;
3662
+ core:has-name "step" ;
3663
+ core:not-modelled-reason "The place of the flow in its list of steps, as a number. The model keeps the step of an event, not of a flow."@en ;
3664
+ core:label "execution.flows.step"@en ;
3665
+ core:definition "The index of the step that the flow is in."@en ;
3666
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3667
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3668
+ core:owner core:kai-agent .
3669
+
3670
+ ai:column-execution-flows-phase a owl:NamedIndividual , core:column ;
3671
+ core:of-table ai:table-execution-flows ;
3672
+ core:has-name "phase" ;
3673
+ core:not-modelled-reason "The place of the flow in the phases of its step, as a number. The model keeps no phase."@en ;
3674
+ core:label "execution.flows.phase"@en ;
3675
+ core:definition "The index of the phase of the step that the flow is in."@en ;
3676
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3677
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3678
+ core:owner core:kai-agent .
3679
+
3680
+ ai:column-execution-flows-mastra-run a owl:NamedIndividual , core:column ;
3681
+ core:of-table ai:table-execution-flows ;
3682
+ core:has-name "mastra_run" ;
3683
+ core:not-modelled-reason "The id of the run of the workflow engine. It is work state that the model does not keep."@en ;
3684
+ core:label "execution.flows.mastra_run"@en ;
3685
+ core:definition "The id of the Mastra run that holds the suspend snapshot of the flow."@en ;
3686
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3687
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3688
+ core:owner core:kai-agent .
3689
+
3690
+ ai:column-execution-flows-outputs a owl:NamedIndividual , core:column ;
3691
+ core:of-table ai:table-execution-flows ;
3692
+ core:has-name "outputs" ;
3693
+ core:not-modelled-reason "The outputs of the phases as JSON. They hold answers of the user and personal data, and the model keeps no property for them."@en ;
3694
+ core:label "execution.flows.outputs"@en ;
3695
+ core:definition "The outputs of the phases of the flow, as JSON."@en ;
3696
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3697
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3698
+ core:owner core:kai-agent .
3699
+
3700
+ ai:column-execution-flows-leads-run a owl:NamedIndividual , core:column ;
3701
+ core:of-table ai:table-execution-flows ;
3702
+ core:has-name "leads_run" ;
3703
+ core:not-modelled-reason "The id of the run of `leads` that the flow waits for. The model keeps that run in `leads`."@en ;
3704
+ core:label "execution.flows.leads_run"@en ;
3705
+ core:definition "The id of the run of `leads` that the flow is bound to."@en ;
3706
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3707
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3708
+ core:owner core:kai-agent .
3709
+
3710
+ ai:column-execution-flows-wait-token a owl:NamedIndividual , core:column ;
3711
+ core:of-table ai:table-execution-flows ;
3712
+ core:has-name "wait_token" ;
3713
+ core:not-modelled-reason "The token that a wait phase uses to match its resume. It is work state that the model does not keep."@en ;
3714
+ core:label "execution.flows.wait_token"@en ;
3715
+ core:definition "The token of the wait that the flow is in."@en ;
3716
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3717
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3718
+ core:owner core:kai-agent .
3719
+
3720
+ ai:column-execution-flows-deadline-at a owl:NamedIndividual , core:column ;
3721
+ core:of-table ai:table-execution-flows ;
3722
+ core:has-name "deadline_at" ;
3723
+ core:not-modelled-reason "The time limit of a wait phase. It is work state that the model does not keep."@en ;
3724
+ core:label "execution.flows.deadline_at"@en ;
3725
+ core:definition "The time when the deadline job of the flow runs."@en ;
3726
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3727
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3728
+ core:owner core:kai-agent .
3729
+
3730
+ ai:column-execution-flows-updated-at a owl:NamedIndividual , core:column ;
3731
+ core:of-table ai:table-execution-flows ;
3732
+ core:has-name "updated_at" ;
3733
+ core:not-modelled-reason "A technical timestamp of the row. The model keeps no such time for this class."@en ;
3734
+ core:label "execution.flows.updated_at"@en ;
3735
+ core:definition "The time of the last change of the flow row."@en ;
3736
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
3737
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
3738
+ core:owner core:kai-agent .
3739
+
3463
3740
  ai:table-execution-contents a owl:NamedIndividual , core:table ;
3464
3741
  core:in-database-schema ai:schema-execution ;
3465
3742
  core:has-name "contents" ;
@@ -3716,6 +3993,15 @@ ai:subject-answer a owl:Class ;
3716
3993
  core:retention-clock core-vocab:retention-clock-since-created ;
3717
3994
  core:controller-role core-vocab:controller-role-processor .
3718
3995
 
3996
+ ai:has-subject-request-kind a owl:ObjectProperty , owl:FunctionalProperty ;
3997
+ rdfs:domain ai:subject-request ;
3998
+ rdfs:range core:concept ;
3999
+ core:label "has subject request kind"@en ;
4000
+ core:definition "What a subject request asks, from the scheme of subject request kinds."@en ;
4001
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
4002
+ core:defined-by <https://id.quickpipe.ai/domain/ai> ;
4003
+ core:owner core:kai-agent .
4004
+
3719
4005
  ai:answers-subject-request a owl:ObjectProperty , owl:FunctionalProperty ;
3720
4006
  rdfs:domain ai:subject-answer ;
3721
4007
  rdfs:range ai:subject-request ;
@@ -3842,7 +4128,7 @@ ai:column-execution-subject-requests-id a owl:NamedIndividual , core:column ;
3842
4128
  ai:column-execution-subject-requests-kind a owl:NamedIndividual , core:column ;
3843
4129
  core:of-table ai:table-execution-subject-requests ;
3844
4130
  core:has-name "kind" ;
3845
- core:not-modelled-reason "The kind of the request, `erasure` or `export`. The model has the classes `identity:erasure` and `identity:export-request`, and no scheme for the kind of a subject request."@en ;
4131
+ core:stores-property ai:has-subject-request-kind ;
3846
4132
  core:label "execution.subject_requests.kind"@en ;
3847
4133
  core:definition "The kind of the subject request: `erasure` or `export`."@en ;
3848
4134
  core:source "docs/specs/lead-scoring/docs/internal/decisions/0111-subject-requests.md#Decision" ;
package/auth.ttl CHANGED
@@ -8,8 +8,8 @@
8
8
 
9
9
  <https://id.quickpipe.ai/domain/auth>
10
10
  a owl:Ontology ;
11
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/auth> ;
12
- owl:versionInfo "0.11.0" ;
11
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/auth> ;
12
+ owl:versionInfo "0.12.0" ;
13
13
  core:title "QuickPipe domain model: auth"@en ;
14
14
  core:preferred-prefix "auth" ;
15
15
  core:preferred-namespace "https://id.quickpipe.ai/domain/auth#" ;
@@ -57,7 +57,7 @@ auth:exchanged-token a owl:Class ;
57
57
  core:owner core:auth .
58
58
 
59
59
  [] a owl:AllDisjointClasses ;
60
- owl:members ( auth:session auth:access-token auth:machine-scope auth:oauth-client auth:signature-key ) .
60
+ owl:members ( auth:session auth:access-token auth:machine-scope auth:oauth-client auth:signature-key auth:agent-key-credential auth:refresh-token auth:id-token ) .
61
61
 
62
62
  # Properties.
63
63
 
@@ -121,3 +121,181 @@ auth:has-client-trust a owl:ObjectProperty , owl:FunctionalProperty ;
121
121
  core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Clients and credentials" ;
122
122
  core:defined-by <https://id.quickpipe.ai/domain/auth> ;
123
123
  core:owner core:auth .
124
+
125
+ # Concepts of clients and credentials.
126
+
127
+ auth:target-service a owl:Class ;
128
+ rdfs:subClassOf core:service ;
129
+ core:label "target service"@en ;
130
+ core:definition "A service that accepts access tokens of `auth`. It is one project of `Zitadel`."@en ;
131
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Clients and credentials" ;
132
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
133
+ core:owner core:auth .
134
+
135
+ auth:agent-key-credential a owl:Class ;
136
+ rdfs:subClassOf core:key ;
137
+ core:label "agent key credential"@en ;
138
+ core:definition "The credential in `auth` of one agent key of `desk`. It belongs to one user and one workspace. Its key id is unique. It has two parts: the key pair of the user in `Zitadel`, and a row of `quickpipe.agent_keys`. The row binds the key id to the workspace."@en ;
139
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Clients and credentials" ;
140
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
141
+ core:owner core:auth .
142
+
143
+ # Concepts of the operation of auth.
144
+
145
+ auth:instance-manager a owl:Class ;
146
+ rdfs:subClassOf core:person-agent ;
147
+ core:label "instance manager"@en ;
148
+ core:definition "A human user of the organization `quickpipe` with the manager role of `Zitadel` for the instance. It has no staff access-role and is not a staff user. It does the first start of an environment."@en ;
149
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Operation of `auth`" ;
150
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
151
+ core:owner core:auth .
152
+
153
+ auth:setup-client a owl:Class ;
154
+ rdfs:subClassOf core:key ;
155
+ core:label "setup client"@en ;
156
+ core:definition "The credential with which only the setup root `infra/tofu/auth` changes the setup of `auth`. It is not a machine client."@en ;
157
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Operation of `auth`" ;
158
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
159
+ core:owner core:auth .
160
+
161
+ auth:bootstrap-key a owl:Class ;
162
+ rdfs:subClassOf core:key ;
163
+ core:label "bootstrap key"@en ;
164
+ core:definition "The key pair with which `pnpm auth:up` makes the setup client at the first start. It exists only until the setup client exists."@en ;
165
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Operation of `auth`" ;
166
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
167
+ core:owner core:auth .
168
+
169
+ auth:login-client a owl:Class ;
170
+ rdfs:subClassOf core:key ;
171
+ core:label "login client"@en ;
172
+ core:definition "The credential with which only `auth-login` calls `auth-api`. It is not a machine client."@en ;
173
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Operation of `auth`" ;
174
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
175
+ core:owner core:auth .
176
+
177
+ auth:mail-relay a owl:Class ;
178
+ rdfs:subClassOf core:service ;
179
+ core:label "mail relay"@en ;
180
+ core:definition "The SMTP server through which `auth` and `desk` send emails."@en ;
181
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Operation of `auth`" ;
182
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
183
+ core:owner core:auth .
184
+
185
+ # Concepts of sessions and tokens.
186
+
187
+ auth:refresh-token a owl:Class ;
188
+ rdfs:subClassOf core:key ;
189
+ core:label "refresh token"@en ;
190
+ core:definition "The token of a session that gets new user tokens. It ends after 30 days with no use."@en ;
191
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
192
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
193
+ core:owner core:auth ;
194
+ core:retention "P30D" ;
195
+ core:retention-clock core-vocab:retention-clock-since-last-activity ;
196
+ core:controller-role core-vocab:controller-role-controller .
197
+
198
+ auth:id-token a owl:Class ;
199
+ rdfs:subClassOf core:key ;
200
+ core:label "ID token"@en ;
201
+ core:definition "A JWT that `auth` signs at the sign-in of a session. It has the claims of the user. A client sends it as `id_token_hint` when it ends the session."@en ;
202
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
203
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
204
+ core:owner core:auth .
205
+
206
+ auth:subject a owl:Class ;
207
+ rdfs:subClassOf core:role ;
208
+ core:label "Subject"@en ;
209
+ core:definition "The user or the machine client for whom the token acts. It is the claim `sub`."@en ;
210
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
211
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
212
+ core:owner core:auth .
213
+
214
+ auth:actor a owl:Class ;
215
+ rdfs:subClassOf core:role ;
216
+ core:label "actor"@en ;
217
+ core:definition "The party that acts for the subject of an exchanged token. It is the claim `act`."@en ;
218
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
219
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
220
+ core:owner core:auth .
221
+
222
+ auth:audience a owl:Class ;
223
+ rdfs:subClassOf core:role ;
224
+ core:label "audience"@en ;
225
+ core:definition "The target service that accepts a token. It is the claim `aud`."@en ;
226
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
227
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
228
+ core:owner core:auth .
229
+
230
+ auth:workspace-claim a owl:Class ;
231
+ rdfs:subClassOf core:entity ;
232
+ core:label "workspace claim"@en ;
233
+ core:definition "The one workspace of a token. Its value is the workspace id."@en ;
234
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
235
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
236
+ core:owner core:auth .
237
+
238
+ auth:live-check a owl:Class ;
239
+ rdfs:subClassOf core:activity ;
240
+ core:label "live check"@en ;
241
+ core:definition "A call of a target service to the introspection of `auth` at the time of the request. It gives the state of the token and the current access-role."@en ;
242
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
243
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
244
+ core:owner core:auth .
245
+
246
+ # Relations of the new concepts.
247
+
248
+ auth:for-target-service a owl:ObjectProperty , owl:FunctionalProperty ;
249
+ rdfs:domain auth:machine-scope ;
250
+ rdfs:range auth:target-service ;
251
+ core:label "for target service"@en ;
252
+ core:definition "The target service where a machine scope is a project role."@en ;
253
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Clients and credentials" ;
254
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
255
+ core:owner core:auth .
256
+
257
+ auth:has-audience a owl:ObjectProperty , owl:FunctionalProperty ;
258
+ rdfs:domain auth:access-token ;
259
+ rdfs:range auth:target-service ;
260
+ core:label "has audience"@en ;
261
+ core:definition "The target service that accepts an access token. It is the claim `aud`."@en ;
262
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
263
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
264
+ core:owner core:auth .
265
+
266
+ auth:has-token-subject a owl:ObjectProperty , owl:FunctionalProperty ;
267
+ rdfs:domain auth:access-token ;
268
+ rdfs:range core:agent ;
269
+ core:label "has token subject"@en ;
270
+ core:definition "The token subject of an access token, in its claim `sub`."@en ;
271
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
272
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
273
+ core:owner core:auth .
274
+
275
+ auth:has-actor a owl:ObjectProperty ;
276
+ rdfs:domain auth:exchanged-token ;
277
+ rdfs:range core:agent ;
278
+ core:label "has actor"@en ;
279
+ core:definition "The actor of an exchanged token, in its claim `act`."@en ;
280
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
281
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
282
+ core:owner core:auth .
283
+
284
+ auth:signed-with-key a owl:ObjectProperty , owl:FunctionalProperty ;
285
+ rdfs:domain auth:access-token ;
286
+ rdfs:range auth:signature-key ;
287
+ core:label "signed with key"@en ;
288
+ core:definition "The signature key with which `auth` signs an access token."@en ;
289
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
290
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
291
+ core:owner core:auth .
292
+
293
+ auth:of-session a owl:ObjectProperty , owl:FunctionalProperty ;
294
+ rdfs:domain auth:refresh-token ;
295
+ rdfs:range auth:session ;
296
+ core:label "of session"@en ;
297
+ core:definition "The session that a refresh token belongs to. A session has one refresh token."@en ;
298
+ core:source "docs/specs/auth/docs/internal/decisions/0003-concepts.md#Sessions and tokens" ;
299
+ core:defined-by <https://id.quickpipe.ai/domain/auth> ;
300
+ core:owner core:auth .
301
+