@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/scoring.ttl CHANGED
@@ -12,8 +12,8 @@
12
12
 
13
13
  <https://id.quickpipe.ai/domain/scoring>
14
14
  a owl:Ontology ;
15
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/scoring> ;
16
- owl:versionInfo "0.11.0" ;
15
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/scoring> ;
16
+ owl:versionInfo "0.12.0" ;
17
17
  core:title "QuickPipe domain model: scoring"@en ;
18
18
  core:preferred-prefix "scoring" ;
19
19
  core:preferred-namespace "https://id.quickpipe.ai/domain/scoring#" ;
@@ -251,12 +251,37 @@ scoring:workspace-template a owl:Class ;
251
251
 
252
252
  scoring:template-version a owl:Class ;
253
253
  rdfs:subClassOf core:entity ;
254
+ core:division core-vocab:division-open ;
254
255
  core:label "template version"@en ;
255
256
  core:definition "One version of a template, with a decision, tests, signals and the default mappings, and a kind. A released template version does not change. CI compares its hash with the file on `main`. `\"deprecated\": true` in `meta.json` hides a template for new campaigns."@en ;
256
257
  core:source "docs/specs/lead-scoring/docs/internal/decisions/0067-templates-in-repository.md#Decision" ;
257
258
  core:defined-by <https://id.quickpipe.ai/domain/scoring> ;
258
259
  core:owner core:lead-scoring .
259
260
 
261
+ scoring:template-copy a owl:Class ;
262
+ rdfs:subClassOf scoring:template-version ;
263
+ core:label "template copy"@en ;
264
+ core:definition "The copy of a template version that a workspace holds as its own decision. A new campaign, a new workspace and a saved private template make a copy. The copy records `fromTemplate: { id, version }` and is not a link: a new version of the template never changes the copy."@en ;
265
+ core:source "docs/specs/lead-scoring/docs/internal/decisions/0051-templates-copied.md#Decision" ;
266
+ core:defined-by <https://id.quickpipe.ai/domain/scoring> ;
267
+ core:owner core:lead-scoring .
268
+
269
+ scoring:template-update a owl:Class ;
270
+ rdfs:subClassOf core:entity ;
271
+ core:label "template update"@en ;
272
+ core:definition "The offer of the newest template version that does not have `\"deprecated\": true` to a decision that copied an older version. It has a difference between the graph of the copy and the graph of the newer version, and a dry-run on the history of the workspace. The workspace decides: the apply publishes the newer version as a new version of the decision."@en ;
273
+ core:source "docs/specs/lead-scoring/docs/internal/decisions/0067-templates-in-repository.md#Decision" ;
274
+ core:defined-by <https://id.quickpipe.ai/domain/scoring> ;
275
+ core:owner core:lead-scoring .
276
+
277
+ scoring:seed-step a owl:Class ;
278
+ rdfs:subClassOf core:activity ;
279
+ core:label "seed step"@en ;
280
+ core:definition "The step of each deploy (`seed:templates`) that writes the template versions of the files to the platform workspace, after the migrations and before the new build starts. A stored version keeps its content. A file with a content that no stored row has becomes the next version of its template."@en ;
281
+ core:source "docs/specs/lead-scoring/docs/internal/decisions/0119-seed-writes-a-new-version.md#Decision" ;
282
+ core:defined-by <https://id.quickpipe.ai/domain/scoring> ;
283
+ core:owner core:lead-scoring .
284
+
260
285
  # Evaluations and the activities on versions (PLAN.md sections 5, 10.2, 10.6 and 10.7).
261
286
 
262
287
  scoring:evaluation a owl:Class ;
@@ -561,10 +586,10 @@ scoring:buyer-group a owl:Class ;
561
586
  [] a owl:AllDisjointClasses ;
562
587
  owl:members ( scoring:signal scoring:mapping scoring:mapping-version scoring:mapping-entry
563
588
  scoring:decision scoring:decision-version scoring:status-period scoring:decision-test scoring:assertion
564
- scoring:template scoring:template-version
589
+ scoring:template scoring:template-version scoring:template-update
565
590
  scoring:output scoring:tier-level scoring:dimension-value scoring:tier-membership scoring:stage-assignment scoring:stale-entry
566
591
  scoring:registry scoring:threshold scoring:band-range scoring:persona-requirement scoring:buyer-group
567
- scoring:evaluation scoring:replay scoring:publish scoring:rollback scoring:dry-run scoring:validation scoring:simulation scoring:registry-change ) .
592
+ scoring:evaluation scoring:replay scoring:publish scoring:rollback scoring:dry-run scoring:validation scoring:simulation scoring:registry-change scoring:seed-step ) .
568
593
 
569
594
  # Object properties.
570
595
 
@@ -656,7 +681,7 @@ scoring:from-template a owl:ObjectProperty , owl:FunctionalProperty ;
656
681
  rdfs:range scoring:template-version ;
657
682
  core:label "from template"@en ;
658
683
  core:definition "The template version that a decision is a copy of: `fromTemplate: { id, version }`. The copy is not a link to the template."@en ;
659
- core:source "docs/specs/lead-scoring/PLAN.md#10.8 Templates" ;
684
+ core:source "docs/specs/lead-scoring/docs/internal/decisions/0051-templates-copied.md#Decision" ;
660
685
  core:defined-by <https://id.quickpipe.ai/domain/scoring> ;
661
686
  core:owner core:lead-scoring .
662
687
 
package/shapes/ai.ttl CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  <https://id.quickpipe.ai/domain/shapes/ai>
18
18
  a owl:Ontology ;
19
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/ai> ;
20
- owl:versionInfo "0.11.0" ;
19
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/ai> ;
20
+ owl:versionInfo "0.12.0" ;
21
21
  core:title "QuickPipe domain model: shapes of ai"@en .
22
22
 
23
23
  # Membership of a value in an open scheme (platform decision 0003 Q15).
@@ -70,7 +70,7 @@ ai-shapes:run-shape a sh:NodeShape ;
70
70
  [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
71
71
  [ sh:path ai:of-schedule ; sh:class ai:schedule ; sh:maxCount 1 ] ,
72
72
  [ sh:path ai:in-thread ; sh:class ai:thread ; sh:maxCount 1 ] ,
73
- [ sh:path ai:has-flow-status ; sh:class core:concept ; sh:in ( ai-vocab:flow-status-running ai-vocab:flow-status-waiting ai-vocab:flow-status-failed ai-vocab:flow-status-done ) ; sh:maxCount 1 ] ,
73
+ [ sh:path ai:of-flow ; sh:class ai:flow ; sh:maxCount 1 ] ,
74
74
  [ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
75
75
  [ sh:path ai:has-run-limit ; sh:class ai:run-limit ] ,
76
76
  [ sh:path ai:with-confidence ; sh:maxCount 1 ; sh:in ( ai-vocab:decision-confidence-high ai-vocab:decision-confidence-low ) ; sh:message "A decision confidence is high or low."@en ] ,
@@ -530,6 +530,7 @@ ai-shapes:admin-change-shape a sh:NodeShape ;
530
530
  sh:property
531
531
  [ sh:path core:qualified-association ; sh:node [ sh:property [ sh:path core:had-role ; sh:minCount 1 ; sh:hasValue core-vocab:role-audit-actor ] , [ sh:path core:by-agent ; sh:class core:agent ; sh:minCount 1 ; sh:maxCount 1 ] ] ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "An admin change has one actor: the person or the caller that makes it."@en ] ,
532
532
  [ sh:path identity:has-difference ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
533
+ [ sh:path ai:has-publish-reason ; sh:datatype xsd:string ; sh:maxCount 1 ; sh:minLength 1 ; sh:maxLength 500 ] ,
533
534
  [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] .
534
535
 
535
536
  ai-shapes:key-shape a sh:NodeShape ;
@@ -632,6 +633,28 @@ ai-shapes:flow-event-shape a sh:NodeShape ;
632
633
  [ sh:path ai:has-answer-kind ; sh:class core:concept ; sh:in ( ai-vocab:flow-answer-kind-single ai-vocab:flow-answer-kind-multiple ai-vocab:flow-answer-kind-text ) ; sh:maxCount 1 ] ,
633
634
  [ sh:path ai:has-block ; sh:class ai:flow-block ] .
634
635
 
636
+ ai-shapes:flow-shape a sh:NodeShape ;
637
+ sh:targetClass ai:flow ;
638
+ sh:closed true ;
639
+ sh:ignoredProperties ( rdf:type ) ;
640
+ sh:property
641
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
642
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
643
+ [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ] ,
644
+ [ sh:path ai:in-thread ; sh:class ai:thread ; sh:minCount 1 ; sh:maxCount 1 ] ,
645
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
646
+ [ sh:path ai:has-flow-status ; sh:class core:concept ; sh:in ( ai-vocab:flow-status-running ai-vocab:flow-status-waiting ai-vocab:flow-status-failed ai-vocab:flow-status-done ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
647
+ [ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
648
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
649
+
650
+ ai-shapes:ranked-account-shape a sh:NodeShape ;
651
+ sh:targetClass ai:ranked-account ;
652
+ sh:closed true ;
653
+ sh:ignoredProperties ( rdf:type ) ;
654
+ sh:property
655
+ [ sh:path ai:has-fit-level ; sh:class core:concept ; sh:in ( ai-vocab:fit-level-strong ai-vocab:fit-level-partial ai-vocab:fit-level-weak ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
656
+ [ sh:path ai:has-rank-note ; sh:class core:concept ; sh:in ( ai-vocab:rank-note-other-industry ai-vocab:rank-note-too-small ai-vocab:rank-note-too-large ai-vocab:rank-note-size-unknown ai-vocab:rank-note-not-buyer ai-vocab:rank-note-sells-to-consumers ai-vocab:rank-note-outside-countries ) ] .
657
+
635
658
  ai-shapes:flow-activity-shape a sh:NodeShape ;
636
659
  sh:targetClass ai:flow-activity ;
637
660
  sh:closed true ;
@@ -711,6 +734,8 @@ ai-shapes:subject-request-shape a sh:NodeShape ;
711
734
  sh:message "A subject request has exactly one id."@en ] ;
712
735
  sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
713
736
  sh:message "A subject request belongs to exactly one workspace."@en ] ;
737
+ sh:property [ sh:path ai:has-subject-request-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
738
+ sh:message "A subject request asks one thing, from the scheme of subject request kinds."@en ] ;
714
739
  sh:property [ sh:path core:has-status ; sh:class core:concept ; sh:maxCount 1 ;
715
740
  sh:message "A subject request has at most one status."@en ] ;
716
741
  sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
@@ -14,8 +14,8 @@
14
14
  @prefix sh: <http://www.w3.org/ns/shacl#> .
15
15
 
16
16
  <https://id.quickpipe.ai/domain/shapes/billing> a owl:Ontology ;
17
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/billing> ;
18
- owl:versionInfo "0.11.0" ;
17
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/billing> ;
18
+ owl:versionInfo "0.12.0" ;
19
19
  core:title "QuickPipe domain model: shapes of billing"@en ;
20
20
  core:preferred-prefix "billing-shapes" .
21
21
 
@@ -260,6 +260,13 @@ billing-shapes:hold-shape a sh:NodeShape ;
260
260
  sh:maxCount 1 ;
261
261
  sh:message "A hold has exactly one plan credits."@en
262
262
  ] ;
263
+ sh:property [
264
+ sh:path billing:has-plan-expiry ;
265
+ sh:datatype xsd:dateTime ;
266
+ sh:minCount 0 ;
267
+ sh:maxCount 1 ;
268
+ sh:message "A hold has at most one plan expiry."@en
269
+ ] ;
263
270
  sh:property [
264
271
  sh:path billing:has-bought-credits ;
265
272
  sh:datatype xsd:long ;
@@ -3149,3 +3156,19 @@ billing-shapes:pre-signup-cost-shape a sh:NodeShape ;
3149
3156
  sh:maxCount 1 ;
3150
3157
  sh:message "A pre-signup cost has exactly one creation time."@en
3151
3158
  ] .
3159
+
3160
+ billing-shapes:withdrawal-waiver-shape a sh:NodeShape ;
3161
+ sh:targetClass billing:withdrawal-waiver ;
3162
+ sh:closed true ;
3163
+ sh:ignoredProperties ( rdf:type ) ;
3164
+ sh:message "A withdrawal waiver has only the properties of its class."@en ;
3165
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
3166
+ sh:message "A withdrawal waiver has exactly one id, the entry of its payment."@en ] ;
3167
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
3168
+ sh:message "A withdrawal waiver belongs to exactly one workspace."@en ] ;
3169
+ sh:property [ sh:path billing:accepted-by-user ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
3170
+ sh:message "A withdrawal waiver names exactly one user who ticked the checkbox."@en ] ;
3171
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
3172
+ sh:message "A withdrawal waiver has exactly one time of the consent."@en ] ;
3173
+ sh:property [ sh:path billing:has-waiver-text-version ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
3174
+ sh:message "A withdrawal waiver has exactly one version of the text of the checkbox."@en ] .
@@ -15,8 +15,8 @@
15
15
 
16
16
  <https://id.quickpipe.ai/domain/shapes/campaigns>
17
17
  a owl:Ontology ;
18
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/campaigns> ;
19
- owl:versionInfo "0.11.0" ;
18
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/campaigns> ;
19
+ owl:versionInfo "0.12.0" ;
20
20
  core:title "QuickPipe domain model: shapes of campaigns"@en ;
21
21
  sh:declare
22
22
  [ sh:prefix "core" ; sh:namespace "https://id.quickpipe.ai/domain/core#"^^xsd:anyURI ] ,
@@ -956,3 +956,23 @@ campaigns-shapes:workspace-settings-shape a sh:NodeShape ;
956
956
  sh:property [
957
957
  sh:path campaigns:has-default-time-zone ; sh:datatype xsd:string ; sh:minLength 1 ; sh:maxLength 64 ; sh:minCount 1 ; sh:maxCount 1 ;
958
958
  sh:message "The settings have exactly one default time zone, an IANA name of at most 64 characters." ] .
959
+
960
+ campaigns-shapes:campaign-rule-shape a sh:NodeShape ;
961
+ sh:targetClass campaigns:campaign-rule ;
962
+ sh:closed true ;
963
+ sh:ignoredProperties ( rdf:type ) ;
964
+ sh:property [
965
+ sh:path campaigns:of-campaign ; sh:class campaigns:campaign ; sh:minCount 1 ; sh:maxCount 1 ;
966
+ sh:message "A campaign rule belongs to exactly one campaign." ] ;
967
+ sh:property [
968
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
969
+ sh:message "A campaign rule belongs to exactly one workspace." ] ;
970
+ sh:property [
971
+ sh:path campaigns:has-rule-draft ; sh:class scoring:decision ; sh:minCount 1 ; sh:maxCount 1 ;
972
+ sh:message "A campaign rule names exactly one decision draft of lead-scoring." ] ;
973
+ sh:property [
974
+ sh:path campaigns:has-rule-draft-version ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
975
+ sh:message "A campaign rule keeps exactly one version of its decision draft." ] ;
976
+ sh:property [
977
+ sh:path campaigns:selects-event ; sh:class core:concept ;
978
+ sh:message "A campaign rule selects event names." ] .
package/shapes/core.ttl CHANGED
@@ -7,8 +7,8 @@
7
7
 
8
8
  <https://id.quickpipe.ai/domain/shapes/core>
9
9
  a owl:Ontology ;
10
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/core> ;
11
- owl:versionInfo "0.11.0" ;
10
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/core> ;
11
+ owl:versionInfo "0.12.0" ;
12
12
  core:title "QuickPipe domain model: shapes of core"@en .
13
13
 
14
14
  core-shapes:database-schema-shape a sh:NodeShape ;
package/shapes/crm.ttl CHANGED
@@ -12,8 +12,8 @@
12
12
 
13
13
  <https://id.quickpipe.ai/domain/shapes/crm>
14
14
  a owl:Ontology ;
15
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/crm> ;
16
- owl:versionInfo "0.11.0" ;
15
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/crm> ;
16
+ owl:versionInfo "0.12.0" ;
17
17
  core:title "QuickPipe domain model: shapes of crm"@en .
18
18
 
19
19
  crm-shapes:lead-record-shape a sh:NodeShape ;
@@ -162,6 +162,56 @@ crm-shapes:deal-shape a sh:NodeShape ;
162
162
  sh:property [
163
163
  sh:path crm:at-deal-stage ; sh:class crm:deal-stage ; sh:minCount 1 ; sh:maxCount 1 ;
164
164
  sh:message "A deal has exactly one deal stage."
165
+ ] ;
166
+ sh:property [
167
+ sh:path crm:has-amount ; sh:datatype xsd:long ; sh:maxCount 1 ;
168
+ sh:message "A deal has at most one amount, as an integer in micro units."
169
+ ] ;
170
+ sh:property [
171
+ sh:path crm:has-currency-code ; sh:datatype xsd:string ; sh:maxCount 1 ;
172
+ sh:message "A deal has at most one currency code, as an ISO 4217 text."
173
+ ] ;
174
+ sh:property [
175
+ sh:path crm:has-owner-seller ; sh:class desk:teammate ; sh:maxCount 1 ;
176
+ sh:message "A deal has at most one owner seller."
177
+ ] .
178
+
179
+ crm-shapes:follow-up-shape a sh:NodeShape ;
180
+ sh:targetClass crm:follow-up ;
181
+ sh:closed true ;
182
+ sh:ignoredProperties ( rdf:type ) ;
183
+ sh:property [
184
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
185
+ sh:message "A follow-up has exactly one id."
186
+ ] ;
187
+ sh:property [
188
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
189
+ sh:message "A follow-up belongs to exactly one workspace."
190
+ ] ;
191
+ sh:property [
192
+ sh:path crm:due-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
193
+ sh:message "A follow-up has at most one due date, as an xsd:dateTime."
194
+ ] ;
195
+ sh:property [
196
+ sh:path crm:has-follow-up-status ; sh:class core:concept ; sh:in ( crm-vocab:follow-up-status-todo crm-vocab:follow-up-status-in-progress crm-vocab:follow-up-status-done ) ; sh:maxCount 1 ;
197
+ sh:message "A follow-up has at most one status: todo, in-progress or done."
198
+ ] ;
199
+ sh:property [
200
+ sh:path crm:for-target ; sh:minCount 1 ;
201
+ sh:message "A follow-up has one or more targets."
202
+ ] .
203
+
204
+ crm-shapes:note-shape a sh:NodeShape ;
205
+ sh:targetClass crm:note ;
206
+ sh:closed true ;
207
+ sh:ignoredProperties ( rdf:type ) ;
208
+ sh:property [
209
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
210
+ sh:message "A note has exactly one id."
211
+ ] ;
212
+ sh:property [
213
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
214
+ sh:message "A note belongs to exactly one workspace."
165
215
  ] .
166
216
 
167
217
  crm-shapes:meeting-shape a sh:NodeShape ;
package/shapes/desk.ttl CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  <https://id.quickpipe.ai/domain/shapes/desk>
18
18
  a owl:Ontology ;
19
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/desk> ;
20
- owl:versionInfo "0.11.0" ;
19
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/desk> ;
20
+ owl:versionInfo "0.12.0" ;
21
21
  core:title "QuickPipe domain model: shapes of desk"@en .
22
22
 
23
23
  desk-shapes:watch-list-shape a sh:NodeShape ;
@@ -1072,6 +1072,10 @@ desk-shapes:workspace-shape a sh:NodeShape ;
1072
1072
  sh:property [
1073
1073
  sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1074
1074
  sh:message "A workspace has at most one creation time."
1075
+ ] ;
1076
+ sh:property [
1077
+ sh:path desk:is-demo ; sh:datatype xsd:boolean ; sh:maxCount 1 ;
1078
+ sh:message "A workspace has at most one demo flag."
1075
1079
  ] .
1076
1080
 
1077
1081
  desk-shapes:agent-key-shape a sh:NodeShape ;
@@ -1668,7 +1672,10 @@ desk-shapes:held-call-shape a sh:NodeShape ;
1668
1672
  sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1669
1673
  sh:message "A held call has exactly one time at which desk held it."@en ] ;
1670
1674
  sh:property [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1671
- sh:message "A held call has at most one time of the end."@en ] .
1675
+ sh:message "A held call has at most one time of the end."@en ] ;
1676
+ sh:property [ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1677
+ sh:in ( desk-vocab:held-call-status-held desk-vocab:held-call-status-running desk-vocab:held-call-status-done desk-vocab:held-call-status-failed desk-vocab:held-call-status-refused desk-vocab:held-call-status-expired ) ;
1678
+ sh:message "A held call has exactly one held call status."@en ] .
1672
1679
 
1673
1680
  desk-shapes:merge-shape a sh:NodeShape ;
1674
1681
  sh:targetClass desk:merge ;
@@ -1683,7 +1690,12 @@ desk-shapes:merge-shape a sh:NodeShape ;
1683
1690
  sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1684
1691
  sh:message "A merge has exactly one time of creation."@en ] ;
1685
1692
  sh:property [ sh:path desk:has-merge-object ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1686
- sh:message "A merge combines one kind of record, from the scheme of merge objects."@en ] .
1693
+ sh:message "A merge combines one kind of record, from the scheme of merge objects."@en ] ;
1694
+ sh:property [ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1695
+ sh:in ( desk-vocab:merge-state-open desk-vocab:merge-state-undoing desk-vocab:merge-state-undone desk-vocab:merge-state-final ) ;
1696
+ sh:message "A merge has exactly one state: open, undoing, undone or final."@en ] ;
1697
+ sh:property [ sh:path desk:undone-by ; sh:class core:user ; sh:maxCount 1 ;
1698
+ sh:message "A merge has at most one teammate who started its undo."@en ] .
1687
1699
 
1688
1700
  desk-shapes:lead-campaign-write-shape a sh:NodeShape ;
1689
1701
  sh:targetClass desk:lead-campaign-write ;
@@ -1770,9 +1782,9 @@ desk-shapes:offer-shape a sh:NodeShape ;
1770
1782
  sh:message "An offer targets zero, one or more industries of the catalog of leads."@en ] ;
1771
1783
  sh:property [ sh:path desk:targets-headcount ; sh:class leads:range ; sh:maxCount 1 ;
1772
1784
  sh:message "An offer has at most one range of headcount."@en ] ;
1773
- sh:property [ sh:path desk:targets-function ; sh:class leads:function ;
1785
+ sh:property [ sh:path desk:targets-function ; sh:class leads-vocab:function ;
1774
1786
  sh:message "An offer targets zero, one or more functions."@en ] ;
1775
- sh:property [ sh:path desk:targets-seniority ; sh:class leads:seniority ;
1787
+ sh:property [ sh:path desk:targets-seniority ; sh:class leads-vocab:seniority ;
1776
1788
  sh:message "An offer targets zero, one or more seniorities."@en ] ;
1777
1789
  sh:property [ sh:path desk:targets-region ; sh:class leads:region ;
1778
1790
  sh:message "An offer targets zero, one or more regions."@en ] ;
package/shapes/email.ttl CHANGED
@@ -14,8 +14,8 @@
14
14
 
15
15
  <https://id.quickpipe.ai/domain/shapes/email>
16
16
  a owl:Ontology ;
17
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/email> ;
18
- owl:versionInfo "0.11.0" ;
17
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/email> ;
18
+ owl:versionInfo "0.12.0" ;
19
19
  core:title "QuickPipe domain model: shapes of email"@en .
20
20
 
21
21
  email-shapes:mailbox-shape a sh:NodeShape ;
package/shapes/events.ttl CHANGED
@@ -17,8 +17,8 @@
17
17
 
18
18
  <https://id.quickpipe.ai/domain/shapes/events>
19
19
  a owl:Ontology ;
20
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/events> ;
21
- owl:versionInfo "0.11.0" ;
20
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/events> ;
21
+ owl:versionInfo "0.12.0" ;
22
22
  core:title "QuickPipe domain model: shapes of events"@en .
23
23
 
24
24
  events-shapes:ingested-event-shape a sh:NodeShape ;
@@ -11,8 +11,8 @@
11
11
 
12
12
  <https://id.quickpipe.ai/domain/shapes/identity>
13
13
  a owl:Ontology ;
14
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/identity> ;
15
- owl:versionInfo "0.11.0" ;
14
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/identity> ;
15
+ owl:versionInfo "0.12.0" ;
16
16
  core:title "QuickPipe domain model: shapes of identity"@en ;
17
17
  sh:declare
18
18
  [ sh:prefix "core" ; sh:namespace "https://id.quickpipe.ai/domain/core#"^^xsd:anyURI ] ,
package/shapes/leads.ttl CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  <https://id.quickpipe.ai/domain/shapes/leads>
18
18
  a owl:Ontology ;
19
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/leads> ;
20
- owl:versionInfo "0.11.0" ;
19
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/leads> ;
20
+ owl:versionInfo "0.12.0" ;
21
21
  core:title "QuickPipe domain model: shapes of leads"@en .
22
22
 
23
23
  leads-shapes:token-shape a sh:NodeShape ;
@@ -12,8 +12,8 @@
12
12
 
13
13
  <https://id.quickpipe.ai/domain/shapes/linkedin>
14
14
  a owl:Ontology ;
15
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/linkedin> ;
16
- owl:versionInfo "0.11.0" ;
15
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/linkedin> ;
16
+ owl:versionInfo "0.12.0" ;
17
17
  core:title "QuickPipe domain model: shapes of linkedin"@en .
18
18
 
19
19
  linkedin-shapes:sender-shape a sh:NodeShape ;
@@ -13,8 +13,8 @@
13
13
 
14
14
  <https://id.quickpipe.ai/domain/shapes/scoring>
15
15
  a owl:Ontology ;
16
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/shapes/scoring> ;
17
- owl:versionInfo "0.11.0" ;
16
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/shapes/scoring> ;
17
+ owl:versionInfo "0.12.0" ;
18
18
  core:title "QuickPipe domain model: shapes of scoring"@en ;
19
19
  sh:declare
20
20
  [ sh:prefix "core" ; sh:namespace "https://id.quickpipe.ai/domain/core#"^^xsd:anyURI ] ,
package/vocab/ai.ttl CHANGED
@@ -7,8 +7,8 @@
7
7
 
8
8
  <https://id.quickpipe.ai/domain/vocab/ai>
9
9
  a owl:Ontology ;
10
- owl:versionIRI <https://id.quickpipe.ai/domain/0.11.0/vocab/ai> ;
11
- owl:versionInfo "0.11.0" ;
10
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.12.0/vocab/ai> ;
11
+ owl:versionInfo "0.12.0" ;
12
12
  core:title "QuickPipe domain model: concept schemes of ai"@en .
13
13
 
14
14
  ai-vocab:caller a owl:NamedIndividual , core:concept-scheme ;
@@ -909,6 +909,14 @@ ai-vocab:error-code-run-not-suspended a owl:NamedIndividual , core:concept ;
909
909
  core:source "docs/specs/kai-agent/docs/internal/decisions/0007-api.md#Decision" ;
910
910
  core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
911
911
 
912
+ ai-vocab:error-code-card-not-open a owl:NamedIndividual , core:concept ;
913
+ core:in-scheme ai-vocab:error-code ;
914
+ core:notation "card_not_open" ;
915
+ core:label "card_not_open"@en ;
916
+ core:definition "A message of a flow answers a card that is no longer the open card, because the flow showed a newer card. The flow does not change. The status is `409`."@en ;
917
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0056-prospect-workflow.md#Design" ;
918
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
919
+
912
920
  ai-vocab:error-code-thread-busy a owl:NamedIndividual , core:concept ;
913
921
  core:in-scheme ai-vocab:error-code ;
914
922
  core:notation "thread_busy" ;
@@ -966,7 +974,7 @@ ai-vocab:error-code-start-failed a owl:NamedIndividual , core:concept ;
966
974
  core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
967
975
 
968
976
  [] a owl:AllDifferent ;
969
- owl:distinctMembers ( ai-vocab:error-code-task-not-allowed ai-vocab:error-code-budget-exceeded ai-vocab:error-code-invalid-output ai-vocab:error-code-run-not-found ai-vocab:error-code-run-not-suspended ai-vocab:error-code-thread-busy ai-vocab:error-code-thread-not-found billing-vocab:error-code-balance-closed billing-vocab:error-code-billing-unavailable billing-vocab:error-code-credits-insufficient billing-vocab:error-code-limit-reached core-vocab:error-code-idempotency-conflict core-vocab:error-code-invalid-input core-vocab:error-code-invalid-token core-vocab:error-code-upstream-failed core-vocab:error-code-rate-limited core-vocab:error-code-scope-missing ai-vocab:error-code-not-built ai-vocab:error-code-same-author ai-vocab:error-code-task-not-found ai-vocab:error-code-no-receiver ai-vocab:error-code-suspend-failed ai-vocab:error-code-start-failed core-vocab:error-code-no-secret core-vocab:error-code-setup-failed core-vocab:error-code-accept-failed core-vocab:error-code-close-failed core-vocab:error-code-invalid-body core-vocab:error-code-invalid-signature ) .
977
+ owl:distinctMembers ( ai-vocab:error-code-task-not-allowed ai-vocab:error-code-budget-exceeded ai-vocab:error-code-invalid-output ai-vocab:error-code-run-not-found ai-vocab:error-code-run-not-suspended ai-vocab:error-code-card-not-open ai-vocab:error-code-thread-busy ai-vocab:error-code-thread-not-found billing-vocab:error-code-balance-closed billing-vocab:error-code-billing-unavailable billing-vocab:error-code-credits-insufficient billing-vocab:error-code-limit-reached core-vocab:error-code-idempotency-conflict core-vocab:error-code-invalid-input core-vocab:error-code-invalid-token core-vocab:error-code-upstream-failed core-vocab:error-code-rate-limited core-vocab:error-code-scope-missing ai-vocab:error-code-not-built ai-vocab:error-code-same-author ai-vocab:error-code-task-not-found ai-vocab:error-code-no-receiver ai-vocab:error-code-suspend-failed ai-vocab:error-code-start-failed core-vocab:error-code-no-secret core-vocab:error-code-setup-failed core-vocab:error-code-accept-failed core-vocab:error-code-close-failed core-vocab:error-code-invalid-body core-vocab:error-code-invalid-signature ) .
970
978
 
971
979
  ai-vocab:stream-part a owl:NamedIndividual , core:concept-scheme ;
972
980
  core:label "stream part"@en ;
@@ -2134,3 +2142,57 @@ ai-vocab:similar-search-state-failed a owl:NamedIndividual , core:concept ;
2134
2142
 
2135
2143
  [] a owl:AllDifferent ;
2136
2144
  owl:distinctMembers ( ai-vocab:similar-search-state-confirm ai-vocab:similar-search-state-running ai-vocab:similar-search-state-failed ) .
2145
+
2146
+ ai-vocab:subject-request-kind a owl:NamedIndividual , core:concept-scheme ;
2147
+ core:label "subject request kind"@en ;
2148
+ core:definition "What a subject request asks."@en ;
2149
+ core:division core-vocab:division-disjoint-closed ;
2150
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2151
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> ;
2152
+ core:owner core:kai-agent .
2153
+
2154
+ ai-vocab:subject-request-kind-erasure a owl:NamedIndividual , core:concept ;
2155
+ core:in-scheme ai-vocab:subject-request-kind ;
2156
+ core:notation "erasure" ;
2157
+ core:label "erasure"@en ;
2158
+ core:definition "The request asks to erase the data of the subject."@en ;
2159
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2160
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
2161
+
2162
+ ai-vocab:subject-request-kind-export a owl:NamedIndividual , core:concept ;
2163
+ core:in-scheme ai-vocab:subject-request-kind ;
2164
+ core:notation "export" ;
2165
+ core:label "export"@en ;
2166
+ core:definition "The request asks for a copy of the data of the subject."@en ;
2167
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2168
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
2169
+
2170
+ [] a owl:AllDifferent ;
2171
+ owl:distinctMembers ( ai-vocab:subject-request-kind-erasure ai-vocab:subject-request-kind-export ) .
2172
+
2173
+ ai-vocab:subject-request-status a owl:NamedIndividual , core:concept-scheme ;
2174
+ core:label "subject request status"@en ;
2175
+ core:definition "The state of a subject request."@en ;
2176
+ core:division core-vocab:division-disjoint-closed ;
2177
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2178
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> ;
2179
+ core:owner core:kai-agent .
2180
+
2181
+ ai-vocab:subject-request-status-pending a owl:NamedIndividual , core:concept ;
2182
+ core:in-scheme ai-vocab:subject-request-status ;
2183
+ core:notation "pending" ;
2184
+ core:label "pending"@en ;
2185
+ core:definition "`kai-agent` has not answered the request."@en ;
2186
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2187
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
2188
+
2189
+ ai-vocab:subject-request-status-done a owl:NamedIndividual , core:concept ;
2190
+ core:in-scheme ai-vocab:subject-request-status ;
2191
+ core:notation "done" ;
2192
+ core:label "done"@en ;
2193
+ core:definition "`kai-agent` answered the request."@en ;
2194
+ core:source "docs/specs/kai-agent/docs/internal/decisions/0041-concepts.md#Runs" ;
2195
+ core:defined-by <https://id.quickpipe.ai/domain/vocab/ai> .
2196
+
2197
+ [] a owl:AllDifferent ;
2198
+ owl:distinctMembers ( ai-vocab:subject-request-status-pending ai-vocab:subject-request-status-done ) .