@smartytalent/openai-tools 0.1.33-dev.3 → 0.1.33-dev.4
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/dist/tools.json +576 -0
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -6709,6 +6709,10 @@
|
|
|
6709
6709
|
"type": "string",
|
|
6710
6710
|
"description": "Denormalised candidate id of the sender for inbound replies from a candidate in an active conversation. Frontend joins this against its local candidate cache to render initials and the candidate name. Null on outbound mail and on anonymous inbound that didn't match a candidate."
|
|
6711
6711
|
},
|
|
6712
|
+
"isSystemSpam": {
|
|
6713
|
+
"type": "boolean",
|
|
6714
|
+
"description": "System-level spam verdict on this email. Set by the broker (or a future classifier) at inbound time; never reflects a single user's opinion. Distinct from `status=suppressed`, which is SES reporting we cannot deliver on OUTBOUND. Frontend's Spam folder unions (my states where isSpam=true) with (emails where isSystemSpam=true)."
|
|
6715
|
+
},
|
|
6712
6716
|
"ttl": {
|
|
6713
6717
|
"type": "string"
|
|
6714
6718
|
},
|
|
@@ -7039,6 +7043,10 @@
|
|
|
7039
7043
|
"type": "string",
|
|
7040
7044
|
"description": "Denormalised candidate id of the sender for inbound replies from a candidate in an active conversation. Frontend joins this against its local candidate cache to render initials and the candidate name. Null on outbound mail and on anonymous inbound that didn't match a candidate."
|
|
7041
7045
|
},
|
|
7046
|
+
"isSystemSpam": {
|
|
7047
|
+
"type": "boolean",
|
|
7048
|
+
"description": "System-level spam verdict on this email. Set by the broker (or a future classifier) at inbound time; never reflects a single user's opinion. Distinct from `status=suppressed`, which is SES reporting we cannot deliver on OUTBOUND. Frontend's Spam folder unions (my states where isSpam=true) with (emails where isSystemSpam=true)."
|
|
7049
|
+
},
|
|
7042
7050
|
"ttl": {
|
|
7043
7051
|
"type": "string"
|
|
7044
7052
|
},
|
|
@@ -11702,6 +11710,574 @@
|
|
|
11702
11710
|
}
|
|
11703
11711
|
}
|
|
11704
11712
|
},
|
|
11713
|
+
{
|
|
11714
|
+
"type": "function",
|
|
11715
|
+
"function": {
|
|
11716
|
+
"name": "list_states",
|
|
11717
|
+
"description": "List States",
|
|
11718
|
+
"parameters": {
|
|
11719
|
+
"type": "object",
|
|
11720
|
+
"properties": {
|
|
11721
|
+
"filterResourceType": {
|
|
11722
|
+
"type": "string",
|
|
11723
|
+
"description": "Only return states for this resource type.",
|
|
11724
|
+
"enum": [
|
|
11725
|
+
"emails",
|
|
11726
|
+
"candidates",
|
|
11727
|
+
"conversations",
|
|
11728
|
+
"jobs",
|
|
11729
|
+
"talents",
|
|
11730
|
+
"personas",
|
|
11731
|
+
"reports",
|
|
11732
|
+
"tasks"
|
|
11733
|
+
]
|
|
11734
|
+
},
|
|
11735
|
+
"filterResourceIds": {
|
|
11736
|
+
"type": "string",
|
|
11737
|
+
"description": "Comma-separated list of resource ids to batch-fetch. Requires `filterResourceType`."
|
|
11738
|
+
},
|
|
11739
|
+
"filterIsStarred": {
|
|
11740
|
+
"type": "boolean",
|
|
11741
|
+
"description": "Only return starred states."
|
|
11742
|
+
},
|
|
11743
|
+
"filterIsSeen": {
|
|
11744
|
+
"type": "boolean",
|
|
11745
|
+
"description": "Only return seen (true) or unseen (false) states."
|
|
11746
|
+
},
|
|
11747
|
+
"filterIsSpam": {
|
|
11748
|
+
"type": "boolean",
|
|
11749
|
+
"description": "Only return spam-marked states. Reads from the SpamIndex."
|
|
11750
|
+
},
|
|
11751
|
+
"pageSize": {
|
|
11752
|
+
"type": "integer",
|
|
11753
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
11754
|
+
},
|
|
11755
|
+
"pageAfter": {
|
|
11756
|
+
"type": "string",
|
|
11757
|
+
"description": "Opaque base64-encoded cursor returned by a previous list response, used for forward cursor-based pagination. Pass the value verbatim; do not decode or mutate it."
|
|
11758
|
+
},
|
|
11759
|
+
"pageBefore": {
|
|
11760
|
+
"type": "string",
|
|
11761
|
+
"description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
|
|
11762
|
+
}
|
|
11763
|
+
}
|
|
11764
|
+
}
|
|
11765
|
+
}
|
|
11766
|
+
},
|
|
11767
|
+
{
|
|
11768
|
+
"type": "function",
|
|
11769
|
+
"function": {
|
|
11770
|
+
"name": "create_state",
|
|
11771
|
+
"description": "Upsert State",
|
|
11772
|
+
"parameters": {
|
|
11773
|
+
"title": "CreateStateRequestBody",
|
|
11774
|
+
"type": "object",
|
|
11775
|
+
"required": [
|
|
11776
|
+
"data"
|
|
11777
|
+
],
|
|
11778
|
+
"properties": {
|
|
11779
|
+
"data": {
|
|
11780
|
+
"title": "CreateStateRequestBodyData",
|
|
11781
|
+
"type": "object",
|
|
11782
|
+
"required": [
|
|
11783
|
+
"type",
|
|
11784
|
+
"attributes"
|
|
11785
|
+
],
|
|
11786
|
+
"properties": {
|
|
11787
|
+
"type": {
|
|
11788
|
+
"type": "string",
|
|
11789
|
+
"enum": [
|
|
11790
|
+
"states"
|
|
11791
|
+
]
|
|
11792
|
+
},
|
|
11793
|
+
"attributes": {
|
|
11794
|
+
"title": "StateAttributesSchema",
|
|
11795
|
+
"type": "object",
|
|
11796
|
+
"properties": {
|
|
11797
|
+
"userId": {
|
|
11798
|
+
"type": "string",
|
|
11799
|
+
"description": "Owner of this state row. Always the authenticated user; never set by the client."
|
|
11800
|
+
},
|
|
11801
|
+
"resourceType": {
|
|
11802
|
+
"type": "string",
|
|
11803
|
+
"enum": [
|
|
11804
|
+
"emails",
|
|
11805
|
+
"candidates",
|
|
11806
|
+
"conversations",
|
|
11807
|
+
"jobs",
|
|
11808
|
+
"talents",
|
|
11809
|
+
"personas",
|
|
11810
|
+
"reports",
|
|
11811
|
+
"tasks"
|
|
11812
|
+
],
|
|
11813
|
+
"description": "The kind of resource this state describes. Lives in the composite id as `{resourceType}:{resourceId}`."
|
|
11814
|
+
},
|
|
11815
|
+
"resourceId": {
|
|
11816
|
+
"type": "string",
|
|
11817
|
+
"description": "Id of the resource this state describes (e.g. an emailId, candidateId)."
|
|
11818
|
+
},
|
|
11819
|
+
"isSeen": {
|
|
11820
|
+
"type": "boolean",
|
|
11821
|
+
"description": "True if the user has opened the resource at least once. Derived from the presence of `seenAt`; clients can write either `isSeen` or `seenAt` on upsert."
|
|
11822
|
+
},
|
|
11823
|
+
"isStarred": {
|
|
11824
|
+
"type": "boolean",
|
|
11825
|
+
"description": "True if the user has starred/favourited the resource."
|
|
11826
|
+
},
|
|
11827
|
+
"isSpam": {
|
|
11828
|
+
"type": "boolean",
|
|
11829
|
+
"description": "True if the user marked this resource as spam. Distinct from the email service's `suppressed` status, which is SES-driven on outbound delivery; this is an inbound, per-user action."
|
|
11830
|
+
},
|
|
11831
|
+
"seenAt": {
|
|
11832
|
+
"type": "string",
|
|
11833
|
+
"description": "ISO 8601 timestamp of the user's most recent open. Absent means never seen."
|
|
11834
|
+
},
|
|
11835
|
+
"starredAt": {
|
|
11836
|
+
"type": "string",
|
|
11837
|
+
"description": "ISO 8601 timestamp of when the user starred the resource. Absent means not starred; used as the sort key for the `Starred` folder."
|
|
11838
|
+
},
|
|
11839
|
+
"spamAt": {
|
|
11840
|
+
"type": "string",
|
|
11841
|
+
"description": "ISO 8601 timestamp of when the user marked the resource as spam. Absent means not spam; used as the sort key for the `Spam` folder."
|
|
11842
|
+
},
|
|
11843
|
+
"resourceCreatedAt": {
|
|
11844
|
+
"type": "string",
|
|
11845
|
+
"description": "Denormalised copy of the underlying resource's own `created` timestamp. Used as the sparse unread-index sort key so the unread feed surfaces oldest resources first, not oldest state rows."
|
|
11846
|
+
},
|
|
11847
|
+
"flags": {
|
|
11848
|
+
"type": "object",
|
|
11849
|
+
"additionalProperties": true,
|
|
11850
|
+
"description": "Open-ended per-resource flags (e.g. `{muted: true}` on conversations, `{pinned: true}` on candidates). First-class state goes on the top-level attributes; ad-hoc state lives here."
|
|
11851
|
+
},
|
|
11852
|
+
"timestamps": {
|
|
11853
|
+
"title": "ResourceTimestampsSchema",
|
|
11854
|
+
"type": "object",
|
|
11855
|
+
"properties": {
|
|
11856
|
+
"created": {
|
|
11857
|
+
"type": "string",
|
|
11858
|
+
"format": "date-time"
|
|
11859
|
+
},
|
|
11860
|
+
"modified": {
|
|
11861
|
+
"type": "string",
|
|
11862
|
+
"format": "date-time"
|
|
11863
|
+
}
|
|
11864
|
+
}
|
|
11865
|
+
}
|
|
11866
|
+
}
|
|
11867
|
+
}
|
|
11868
|
+
}
|
|
11869
|
+
}
|
|
11870
|
+
}
|
|
11871
|
+
}
|
|
11872
|
+
}
|
|
11873
|
+
},
|
|
11874
|
+
{
|
|
11875
|
+
"type": "function",
|
|
11876
|
+
"function": {
|
|
11877
|
+
"name": "states_options",
|
|
11878
|
+
"description": "States Options",
|
|
11879
|
+
"parameters": {
|
|
11880
|
+
"type": "object",
|
|
11881
|
+
"properties": {}
|
|
11882
|
+
}
|
|
11883
|
+
}
|
|
11884
|
+
},
|
|
11885
|
+
{
|
|
11886
|
+
"type": "function",
|
|
11887
|
+
"function": {
|
|
11888
|
+
"name": "show_state",
|
|
11889
|
+
"description": "Show State",
|
|
11890
|
+
"parameters": {
|
|
11891
|
+
"type": "object",
|
|
11892
|
+
"properties": {}
|
|
11893
|
+
}
|
|
11894
|
+
}
|
|
11895
|
+
},
|
|
11896
|
+
{
|
|
11897
|
+
"type": "function",
|
|
11898
|
+
"function": {
|
|
11899
|
+
"name": "update_state",
|
|
11900
|
+
"description": "Update State",
|
|
11901
|
+
"parameters": {
|
|
11902
|
+
"title": "UpdateStateRequestBody",
|
|
11903
|
+
"type": "object",
|
|
11904
|
+
"required": [
|
|
11905
|
+
"data"
|
|
11906
|
+
],
|
|
11907
|
+
"properties": {
|
|
11908
|
+
"data": {
|
|
11909
|
+
"title": "UpdateStateRequestBodyData",
|
|
11910
|
+
"type": "object",
|
|
11911
|
+
"required": [
|
|
11912
|
+
"type",
|
|
11913
|
+
"id",
|
|
11914
|
+
"attributes"
|
|
11915
|
+
],
|
|
11916
|
+
"properties": {
|
|
11917
|
+
"type": {
|
|
11918
|
+
"type": "string",
|
|
11919
|
+
"enum": [
|
|
11920
|
+
"states"
|
|
11921
|
+
]
|
|
11922
|
+
},
|
|
11923
|
+
"id": {
|
|
11924
|
+
"type": "string"
|
|
11925
|
+
},
|
|
11926
|
+
"attributes": {
|
|
11927
|
+
"title": "StateAttributesSchema",
|
|
11928
|
+
"type": "object",
|
|
11929
|
+
"properties": {
|
|
11930
|
+
"userId": {
|
|
11931
|
+
"type": "string",
|
|
11932
|
+
"description": "Owner of this state row. Always the authenticated user; never set by the client."
|
|
11933
|
+
},
|
|
11934
|
+
"resourceType": {
|
|
11935
|
+
"type": "string",
|
|
11936
|
+
"enum": [
|
|
11937
|
+
"emails",
|
|
11938
|
+
"candidates",
|
|
11939
|
+
"conversations",
|
|
11940
|
+
"jobs",
|
|
11941
|
+
"talents",
|
|
11942
|
+
"personas",
|
|
11943
|
+
"reports",
|
|
11944
|
+
"tasks"
|
|
11945
|
+
],
|
|
11946
|
+
"description": "The kind of resource this state describes. Lives in the composite id as `{resourceType}:{resourceId}`."
|
|
11947
|
+
},
|
|
11948
|
+
"resourceId": {
|
|
11949
|
+
"type": "string",
|
|
11950
|
+
"description": "Id of the resource this state describes (e.g. an emailId, candidateId)."
|
|
11951
|
+
},
|
|
11952
|
+
"isSeen": {
|
|
11953
|
+
"type": "boolean",
|
|
11954
|
+
"description": "True if the user has opened the resource at least once. Derived from the presence of `seenAt`; clients can write either `isSeen` or `seenAt` on upsert."
|
|
11955
|
+
},
|
|
11956
|
+
"isStarred": {
|
|
11957
|
+
"type": "boolean",
|
|
11958
|
+
"description": "True if the user has starred/favourited the resource."
|
|
11959
|
+
},
|
|
11960
|
+
"isSpam": {
|
|
11961
|
+
"type": "boolean",
|
|
11962
|
+
"description": "True if the user marked this resource as spam. Distinct from the email service's `suppressed` status, which is SES-driven on outbound delivery; this is an inbound, per-user action."
|
|
11963
|
+
},
|
|
11964
|
+
"seenAt": {
|
|
11965
|
+
"type": "string",
|
|
11966
|
+
"description": "ISO 8601 timestamp of the user's most recent open. Absent means never seen."
|
|
11967
|
+
},
|
|
11968
|
+
"starredAt": {
|
|
11969
|
+
"type": "string",
|
|
11970
|
+
"description": "ISO 8601 timestamp of when the user starred the resource. Absent means not starred; used as the sort key for the `Starred` folder."
|
|
11971
|
+
},
|
|
11972
|
+
"spamAt": {
|
|
11973
|
+
"type": "string",
|
|
11974
|
+
"description": "ISO 8601 timestamp of when the user marked the resource as spam. Absent means not spam; used as the sort key for the `Spam` folder."
|
|
11975
|
+
},
|
|
11976
|
+
"resourceCreatedAt": {
|
|
11977
|
+
"type": "string",
|
|
11978
|
+
"description": "Denormalised copy of the underlying resource's own `created` timestamp. Used as the sparse unread-index sort key so the unread feed surfaces oldest resources first, not oldest state rows."
|
|
11979
|
+
},
|
|
11980
|
+
"flags": {
|
|
11981
|
+
"type": "object",
|
|
11982
|
+
"additionalProperties": true,
|
|
11983
|
+
"description": "Open-ended per-resource flags (e.g. `{muted: true}` on conversations, `{pinned: true}` on candidates). First-class state goes on the top-level attributes; ad-hoc state lives here."
|
|
11984
|
+
},
|
|
11985
|
+
"timestamps": {
|
|
11986
|
+
"title": "ResourceTimestampsSchema",
|
|
11987
|
+
"type": "object",
|
|
11988
|
+
"properties": {
|
|
11989
|
+
"created": {
|
|
11990
|
+
"type": "string",
|
|
11991
|
+
"format": "date-time"
|
|
11992
|
+
},
|
|
11993
|
+
"modified": {
|
|
11994
|
+
"type": "string",
|
|
11995
|
+
"format": "date-time"
|
|
11996
|
+
}
|
|
11997
|
+
}
|
|
11998
|
+
}
|
|
11999
|
+
}
|
|
12000
|
+
}
|
|
12001
|
+
}
|
|
12002
|
+
}
|
|
12003
|
+
}
|
|
12004
|
+
}
|
|
12005
|
+
}
|
|
12006
|
+
},
|
|
12007
|
+
{
|
|
12008
|
+
"type": "function",
|
|
12009
|
+
"function": {
|
|
12010
|
+
"name": "delete_state",
|
|
12011
|
+
"description": "Delete State",
|
|
12012
|
+
"parameters": {
|
|
12013
|
+
"type": "object",
|
|
12014
|
+
"properties": {}
|
|
12015
|
+
}
|
|
12016
|
+
}
|
|
12017
|
+
},
|
|
12018
|
+
{
|
|
12019
|
+
"type": "function",
|
|
12020
|
+
"function": {
|
|
12021
|
+
"name": "state_options",
|
|
12022
|
+
"description": "State Options",
|
|
12023
|
+
"parameters": {
|
|
12024
|
+
"type": "object",
|
|
12025
|
+
"properties": {}
|
|
12026
|
+
}
|
|
12027
|
+
}
|
|
12028
|
+
},
|
|
12029
|
+
{
|
|
12030
|
+
"type": "function",
|
|
12031
|
+
"function": {
|
|
12032
|
+
"name": "list_labels",
|
|
12033
|
+
"description": "List Labels",
|
|
12034
|
+
"parameters": {
|
|
12035
|
+
"type": "object",
|
|
12036
|
+
"properties": {
|
|
12037
|
+
"filterStatus": {
|
|
12038
|
+
"type": "string",
|
|
12039
|
+
"description": "filterStatus parameter",
|
|
12040
|
+
"enum": [
|
|
12041
|
+
"active",
|
|
12042
|
+
"archived"
|
|
12043
|
+
]
|
|
12044
|
+
},
|
|
12045
|
+
"pageSize": {
|
|
12046
|
+
"type": "integer",
|
|
12047
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
12048
|
+
}
|
|
12049
|
+
}
|
|
12050
|
+
}
|
|
12051
|
+
}
|
|
12052
|
+
},
|
|
12053
|
+
{
|
|
12054
|
+
"type": "function",
|
|
12055
|
+
"function": {
|
|
12056
|
+
"name": "create_label",
|
|
12057
|
+
"description": "Create Label",
|
|
12058
|
+
"parameters": {
|
|
12059
|
+
"title": "CreateLabelRequestBody",
|
|
12060
|
+
"type": "object",
|
|
12061
|
+
"required": [
|
|
12062
|
+
"data"
|
|
12063
|
+
],
|
|
12064
|
+
"properties": {
|
|
12065
|
+
"data": {
|
|
12066
|
+
"title": "CreateLabelRequestBodyData",
|
|
12067
|
+
"type": "object",
|
|
12068
|
+
"required": [
|
|
12069
|
+
"type",
|
|
12070
|
+
"attributes"
|
|
12071
|
+
],
|
|
12072
|
+
"properties": {
|
|
12073
|
+
"type": {
|
|
12074
|
+
"type": "string",
|
|
12075
|
+
"enum": [
|
|
12076
|
+
"labels"
|
|
12077
|
+
]
|
|
12078
|
+
},
|
|
12079
|
+
"attributes": {
|
|
12080
|
+
"title": "LabelAttributesSchema",
|
|
12081
|
+
"type": "object",
|
|
12082
|
+
"properties": {
|
|
12083
|
+
"name": {
|
|
12084
|
+
"type": "string",
|
|
12085
|
+
"description": "Display name. Unique within a scope by convention but not enforced."
|
|
12086
|
+
},
|
|
12087
|
+
"color": {
|
|
12088
|
+
"type": "string",
|
|
12089
|
+
"description": "Hex or CSS-named color the UI uses to render the label pill."
|
|
12090
|
+
},
|
|
12091
|
+
"description": {
|
|
12092
|
+
"type": "string"
|
|
12093
|
+
},
|
|
12094
|
+
"scope": {
|
|
12095
|
+
"type": "string",
|
|
12096
|
+
"enum": [
|
|
12097
|
+
"tenant",
|
|
12098
|
+
"user"
|
|
12099
|
+
],
|
|
12100
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
12101
|
+
},
|
|
12102
|
+
"ownerId": {
|
|
12103
|
+
"type": "string",
|
|
12104
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
12105
|
+
},
|
|
12106
|
+
"resourceTypes": {
|
|
12107
|
+
"type": "array",
|
|
12108
|
+
"items": {
|
|
12109
|
+
"type": "string"
|
|
12110
|
+
},
|
|
12111
|
+
"description": "Optional UI hint: if set, the frontend only exposes this label in the picker for these resource types (emails, candidates, ...). Not enforced server-side."
|
|
12112
|
+
},
|
|
12113
|
+
"status": {
|
|
12114
|
+
"type": "string",
|
|
12115
|
+
"enum": [
|
|
12116
|
+
"active",
|
|
12117
|
+
"archived"
|
|
12118
|
+
],
|
|
12119
|
+
"description": "Archived labels stay readable (for historical assignments) but disappear from the default list."
|
|
12120
|
+
},
|
|
12121
|
+
"timestamps": {
|
|
12122
|
+
"title": "ResourceTimestampsSchema",
|
|
12123
|
+
"type": "object",
|
|
12124
|
+
"properties": {
|
|
12125
|
+
"created": {
|
|
12126
|
+
"type": "string",
|
|
12127
|
+
"format": "date-time"
|
|
12128
|
+
},
|
|
12129
|
+
"modified": {
|
|
12130
|
+
"type": "string",
|
|
12131
|
+
"format": "date-time"
|
|
12132
|
+
}
|
|
12133
|
+
}
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
}
|
|
12137
|
+
}
|
|
12138
|
+
}
|
|
12139
|
+
}
|
|
12140
|
+
}
|
|
12141
|
+
}
|
|
12142
|
+
},
|
|
12143
|
+
{
|
|
12144
|
+
"type": "function",
|
|
12145
|
+
"function": {
|
|
12146
|
+
"name": "labels_options",
|
|
12147
|
+
"description": "Labels Options",
|
|
12148
|
+
"parameters": {
|
|
12149
|
+
"type": "object",
|
|
12150
|
+
"properties": {}
|
|
12151
|
+
}
|
|
12152
|
+
}
|
|
12153
|
+
},
|
|
12154
|
+
{
|
|
12155
|
+
"type": "function",
|
|
12156
|
+
"function": {
|
|
12157
|
+
"name": "show_label",
|
|
12158
|
+
"description": "Show Label",
|
|
12159
|
+
"parameters": {
|
|
12160
|
+
"type": "object",
|
|
12161
|
+
"properties": {}
|
|
12162
|
+
}
|
|
12163
|
+
}
|
|
12164
|
+
},
|
|
12165
|
+
{
|
|
12166
|
+
"type": "function",
|
|
12167
|
+
"function": {
|
|
12168
|
+
"name": "update_label",
|
|
12169
|
+
"description": "Update Label",
|
|
12170
|
+
"parameters": {
|
|
12171
|
+
"title": "UpdateLabelRequestBody",
|
|
12172
|
+
"type": "object",
|
|
12173
|
+
"required": [
|
|
12174
|
+
"data"
|
|
12175
|
+
],
|
|
12176
|
+
"properties": {
|
|
12177
|
+
"data": {
|
|
12178
|
+
"title": "UpdateLabelRequestBodyData",
|
|
12179
|
+
"type": "object",
|
|
12180
|
+
"required": [
|
|
12181
|
+
"type",
|
|
12182
|
+
"id",
|
|
12183
|
+
"attributes"
|
|
12184
|
+
],
|
|
12185
|
+
"properties": {
|
|
12186
|
+
"type": {
|
|
12187
|
+
"type": "string",
|
|
12188
|
+
"enum": [
|
|
12189
|
+
"labels"
|
|
12190
|
+
]
|
|
12191
|
+
},
|
|
12192
|
+
"id": {
|
|
12193
|
+
"type": "string"
|
|
12194
|
+
},
|
|
12195
|
+
"attributes": {
|
|
12196
|
+
"title": "LabelAttributesSchema",
|
|
12197
|
+
"type": "object",
|
|
12198
|
+
"properties": {
|
|
12199
|
+
"name": {
|
|
12200
|
+
"type": "string",
|
|
12201
|
+
"description": "Display name. Unique within a scope by convention but not enforced."
|
|
12202
|
+
},
|
|
12203
|
+
"color": {
|
|
12204
|
+
"type": "string",
|
|
12205
|
+
"description": "Hex or CSS-named color the UI uses to render the label pill."
|
|
12206
|
+
},
|
|
12207
|
+
"description": {
|
|
12208
|
+
"type": "string"
|
|
12209
|
+
},
|
|
12210
|
+
"scope": {
|
|
12211
|
+
"type": "string",
|
|
12212
|
+
"enum": [
|
|
12213
|
+
"tenant",
|
|
12214
|
+
"user"
|
|
12215
|
+
],
|
|
12216
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
12217
|
+
},
|
|
12218
|
+
"ownerId": {
|
|
12219
|
+
"type": "string",
|
|
12220
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
12221
|
+
},
|
|
12222
|
+
"resourceTypes": {
|
|
12223
|
+
"type": "array",
|
|
12224
|
+
"items": {
|
|
12225
|
+
"type": "string"
|
|
12226
|
+
},
|
|
12227
|
+
"description": "Optional UI hint: if set, the frontend only exposes this label in the picker for these resource types (emails, candidates, ...). Not enforced server-side."
|
|
12228
|
+
},
|
|
12229
|
+
"status": {
|
|
12230
|
+
"type": "string",
|
|
12231
|
+
"enum": [
|
|
12232
|
+
"active",
|
|
12233
|
+
"archived"
|
|
12234
|
+
],
|
|
12235
|
+
"description": "Archived labels stay readable (for historical assignments) but disappear from the default list."
|
|
12236
|
+
},
|
|
12237
|
+
"timestamps": {
|
|
12238
|
+
"title": "ResourceTimestampsSchema",
|
|
12239
|
+
"type": "object",
|
|
12240
|
+
"properties": {
|
|
12241
|
+
"created": {
|
|
12242
|
+
"type": "string",
|
|
12243
|
+
"format": "date-time"
|
|
12244
|
+
},
|
|
12245
|
+
"modified": {
|
|
12246
|
+
"type": "string",
|
|
12247
|
+
"format": "date-time"
|
|
12248
|
+
}
|
|
12249
|
+
}
|
|
12250
|
+
}
|
|
12251
|
+
}
|
|
12252
|
+
}
|
|
12253
|
+
}
|
|
12254
|
+
}
|
|
12255
|
+
}
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
},
|
|
12259
|
+
{
|
|
12260
|
+
"type": "function",
|
|
12261
|
+
"function": {
|
|
12262
|
+
"name": "delete_label",
|
|
12263
|
+
"description": "Delete Label",
|
|
12264
|
+
"parameters": {
|
|
12265
|
+
"type": "object",
|
|
12266
|
+
"properties": {}
|
|
12267
|
+
}
|
|
12268
|
+
}
|
|
12269
|
+
},
|
|
12270
|
+
{
|
|
12271
|
+
"type": "function",
|
|
12272
|
+
"function": {
|
|
12273
|
+
"name": "label_options",
|
|
12274
|
+
"description": "Label Options",
|
|
12275
|
+
"parameters": {
|
|
12276
|
+
"type": "object",
|
|
12277
|
+
"properties": {}
|
|
12278
|
+
}
|
|
12279
|
+
}
|
|
12280
|
+
},
|
|
11705
12281
|
{
|
|
11706
12282
|
"type": "function",
|
|
11707
12283
|
"function": {
|