@epilot/sdk 2.20.23 → 2.20.25

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.
Files changed (233) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/calendar.cjs +6 -6
  20. package/dist/apis/calendar.js +1 -1
  21. package/dist/apis/chat.cjs +6 -6
  22. package/dist/apis/chat.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +6 -6
  28. package/dist/apis/customer-portal.js +1 -1
  29. package/dist/apis/dashboard.cjs +6 -6
  30. package/dist/apis/dashboard.js +1 -1
  31. package/dist/apis/data-governance.cjs +6 -6
  32. package/dist/apis/data-governance.js +1 -1
  33. package/dist/apis/deduplication.cjs +6 -6
  34. package/dist/apis/deduplication.js +1 -1
  35. package/dist/apis/design.cjs +6 -6
  36. package/dist/apis/design.js +1 -1
  37. package/dist/apis/document.cjs +6 -6
  38. package/dist/apis/document.js +1 -1
  39. package/dist/apis/email-settings.cjs +6 -6
  40. package/dist/apis/email-settings.js +1 -1
  41. package/dist/apis/email-template.cjs +6 -6
  42. package/dist/apis/email-template.js +1 -1
  43. package/dist/apis/entity-mapping.cjs +6 -6
  44. package/dist/apis/entity-mapping.d.cts +2 -2
  45. package/dist/apis/entity-mapping.d.ts +2 -2
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/file.cjs +6 -6
  54. package/dist/apis/file.js +1 -1
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/integration-toolkit.cjs +6 -6
  58. package/dist/apis/integration-toolkit.d.cts +2 -2
  59. package/dist/apis/integration-toolkit.d.ts +2 -2
  60. package/dist/apis/integration-toolkit.js +1 -1
  61. package/dist/apis/journey.cjs +6 -6
  62. package/dist/apis/journey.js +1 -1
  63. package/dist/apis/kanban.cjs +6 -6
  64. package/dist/apis/kanban.js +1 -1
  65. package/dist/apis/message.cjs +6 -6
  66. package/dist/apis/message.js +1 -1
  67. package/dist/apis/metering.cjs +6 -6
  68. package/dist/apis/metering.js +1 -1
  69. package/dist/apis/notes.cjs +6 -6
  70. package/dist/apis/notes.js +1 -1
  71. package/dist/apis/notification.cjs +6 -6
  72. package/dist/apis/notification.js +1 -1
  73. package/dist/apis/organization.cjs +6 -6
  74. package/dist/apis/organization.js +1 -1
  75. package/dist/apis/partner-directory.cjs +6 -6
  76. package/dist/apis/partner-directory.js +1 -1
  77. package/dist/apis/permissions.cjs +6 -6
  78. package/dist/apis/permissions.js +1 -1
  79. package/dist/apis/pricing-tier.cjs +6 -6
  80. package/dist/apis/pricing-tier.js +1 -1
  81. package/dist/apis/pricing.cjs +6 -6
  82. package/dist/apis/pricing.js +1 -1
  83. package/dist/apis/purpose.cjs +6 -6
  84. package/dist/apis/purpose.js +1 -1
  85. package/dist/apis/query.cjs +6 -6
  86. package/dist/apis/query.js +1 -1
  87. package/dist/apis/sandbox.cjs +6 -6
  88. package/dist/apis/sandbox.js +1 -1
  89. package/dist/apis/sharing.cjs +6 -6
  90. package/dist/apis/sharing.js +1 -1
  91. package/dist/apis/snapshot.cjs +6 -6
  92. package/dist/apis/snapshot.js +1 -1
  93. package/dist/apis/submission.cjs +6 -6
  94. package/dist/apis/submission.js +1 -1
  95. package/dist/apis/target.cjs +6 -6
  96. package/dist/apis/target.js +1 -1
  97. package/dist/apis/targeting.cjs +6 -6
  98. package/dist/apis/targeting.js +1 -1
  99. package/dist/apis/template-variables.cjs +6 -6
  100. package/dist/apis/template-variables.js +1 -1
  101. package/dist/apis/user.cjs +6 -6
  102. package/dist/apis/user.js +1 -1
  103. package/dist/apis/validation-rules.cjs +6 -6
  104. package/dist/apis/validation-rules.js +1 -1
  105. package/dist/apis/webhooks.cjs +6 -6
  106. package/dist/apis/webhooks.js +1 -1
  107. package/dist/apis/workflow-definition.cjs +6 -6
  108. package/dist/apis/workflow-definition.js +1 -1
  109. package/dist/apis/workflow.cjs +6 -6
  110. package/dist/apis/workflow.js +1 -1
  111. package/dist/{chunk-YCTBOY3T.cjs → chunk-PZ4TXAF5.cjs} +2 -2
  112. package/dist/{chunk-KZXOYL5D.js → chunk-X742W7MI.js} +2 -2
  113. package/dist/{entity-mapping-D67LJE74.js → entity-mapping-CBRH3VBZ.js} +1 -1
  114. package/dist/{entity-mapping-WFPSOXRK.cjs → entity-mapping-WE3QMZWA.cjs} +1 -1
  115. package/dist/{entity-mapping.d-CQv75o8M.d.cts → entity-mapping.d-8MtWa2_L.d.cts} +22 -0
  116. package/dist/{entity-mapping.d-CQv75o8M.d.ts → entity-mapping.d-8MtWa2_L.d.ts} +22 -0
  117. package/dist/index.cjs +8 -8
  118. package/dist/index.d.cts +2 -2
  119. package/dist/index.d.ts +2 -2
  120. package/dist/index.js +1 -1
  121. package/dist/integration-toolkit-FHPQSYLH.js +7 -0
  122. package/dist/integration-toolkit-YBZJK4IG.cjs +7 -0
  123. package/dist/{integration-toolkit.d-bhpB79pc.d.ts → integration-toolkit.d--hon4GPp.d.cts} +79 -26
  124. package/dist/{integration-toolkit.d-bhpB79pc.d.cts → integration-toolkit.d--hon4GPp.d.ts} +79 -26
  125. package/docs/entity-mapping.md +19 -0
  126. package/docs/integration-toolkit.md +19 -250
  127. package/package.json +1 -1
  128. package/definitions/access-token-runtime.json +0 -1
  129. package/definitions/access-token.json +0 -1025
  130. package/definitions/address-runtime.json +0 -1
  131. package/definitions/address-suggestions-runtime.json +0 -1
  132. package/definitions/address-suggestions.json +0 -582
  133. package/definitions/address.json +0 -578
  134. package/definitions/ai-agents-runtime.json +0 -1
  135. package/definitions/ai-agents.json +0 -2863
  136. package/definitions/app-runtime.json +0 -1
  137. package/definitions/app.json +0 -5994
  138. package/definitions/audit-logs-runtime.json +0 -1
  139. package/definitions/audit-logs.json +0 -305
  140. package/definitions/automation-runtime.json +0 -1
  141. package/definitions/automation.json +0 -5979
  142. package/definitions/billing-runtime.json +0 -1
  143. package/definitions/billing.json +0 -2394
  144. package/definitions/blueprint-manifest-runtime.json +0 -1
  145. package/definitions/blueprint-manifest.json +0 -7817
  146. package/definitions/calendar-runtime.json +0 -1
  147. package/definitions/calendar.json +0 -2904
  148. package/definitions/chat-runtime.json +0 -1
  149. package/definitions/chat.json +0 -2909
  150. package/definitions/configuration-hub-runtime.json +0 -1
  151. package/definitions/configuration-hub.json +0 -2250
  152. package/definitions/consent-runtime.json +0 -1
  153. package/definitions/consent.json +0 -344
  154. package/definitions/customer-portal-runtime.json +0 -1
  155. package/definitions/customer-portal.json +0 -21181
  156. package/definitions/dashboard-runtime.json +0 -1
  157. package/definitions/dashboard.json +0 -1355
  158. package/definitions/data-governance-runtime.json +0 -1
  159. package/definitions/data-governance.json +0 -1126
  160. package/definitions/deduplication-runtime.json +0 -1
  161. package/definitions/deduplication.json +0 -782
  162. package/definitions/design-runtime.json +0 -1
  163. package/definitions/design.json +0 -1827
  164. package/definitions/document-runtime.json +0 -1
  165. package/definitions/document.json +0 -758
  166. package/definitions/email-settings-runtime.json +0 -1
  167. package/definitions/email-settings.json +0 -3736
  168. package/definitions/email-template-runtime.json +0 -1
  169. package/definitions/email-template.json +0 -1441
  170. package/definitions/entity-mapping-runtime.json +0 -1
  171. package/definitions/entity-mapping.json +0 -1829
  172. package/definitions/entity-runtime.json +0 -1
  173. package/definitions/entity.json +0 -11546
  174. package/definitions/environments-runtime.json +0 -1
  175. package/definitions/environments.json +0 -988
  176. package/definitions/event-catalog-runtime.json +0 -1
  177. package/definitions/event-catalog.json +0 -2014
  178. package/definitions/file-runtime.json +0 -1
  179. package/definitions/file.json +0 -4298
  180. package/definitions/iban-runtime.json +0 -1
  181. package/definitions/iban.json +0 -132
  182. package/definitions/integration-toolkit-runtime.json +0 -1
  183. package/definitions/integration-toolkit.json +0 -13069
  184. package/definitions/journey-runtime.json +0 -1
  185. package/definitions/journey.json +0 -3586
  186. package/definitions/kanban-runtime.json +0 -1
  187. package/definitions/kanban.json +0 -1506
  188. package/definitions/message-runtime.json +0 -1
  189. package/definitions/message.json +0 -3667
  190. package/definitions/metering-runtime.json +0 -1
  191. package/definitions/metering.json +0 -3132
  192. package/definitions/notes-runtime.json +0 -1
  193. package/definitions/notes.json +0 -1698
  194. package/definitions/notification-runtime.json +0 -1
  195. package/definitions/notification.json +0 -1439
  196. package/definitions/organization-runtime.json +0 -1
  197. package/definitions/organization.json +0 -1192
  198. package/definitions/partner-directory-runtime.json +0 -1
  199. package/definitions/partner-directory.json +0 -2284
  200. package/definitions/permissions-runtime.json +0 -1
  201. package/definitions/permissions.json +0 -1598
  202. package/definitions/pricing-runtime.json +0 -1
  203. package/definitions/pricing-tier-runtime.json +0 -1
  204. package/definitions/pricing-tier.json +0 -105
  205. package/definitions/pricing.json +0 -14369
  206. package/definitions/purpose-runtime.json +0 -1
  207. package/definitions/purpose.json +0 -524
  208. package/definitions/query-runtime.json +0 -1
  209. package/definitions/query.json +0 -3178
  210. package/definitions/sandbox-runtime.json +0 -1
  211. package/definitions/sandbox.json +0 -453
  212. package/definitions/sharing-runtime.json +0 -1
  213. package/definitions/sharing.json +0 -956
  214. package/definitions/snapshot-runtime.json +0 -1
  215. package/definitions/snapshot.json +0 -1103
  216. package/definitions/submission-runtime.json +0 -1
  217. package/definitions/submission.json +0 -313
  218. package/definitions/targeting-runtime.json +0 -1
  219. package/definitions/targeting.json +0 -2285
  220. package/definitions/template-variables-runtime.json +0 -1
  221. package/definitions/template-variables.json +0 -1416
  222. package/definitions/user-runtime.json +0 -1
  223. package/definitions/user.json +0 -3051
  224. package/definitions/validation-rules-runtime.json +0 -1
  225. package/definitions/validation-rules.json +0 -2642
  226. package/definitions/webhooks-runtime.json +0 -1
  227. package/definitions/webhooks.json +0 -1875
  228. package/definitions/workflow-definition-runtime.json +0 -1
  229. package/definitions/workflow-definition.json +0 -3592
  230. package/definitions/workflow-runtime.json +0 -1
  231. package/definitions/workflow.json +0 -4669
  232. package/dist/integration-toolkit-GOFVOMNH.js +0 -7
  233. package/dist/integration-toolkit-XMM5LLK6.cjs +0 -7
@@ -1,1698 +0,0 @@
1
- {
2
- "openapi": "3.0.2",
3
- "info": {
4
- "version": "2.6.0",
5
- "title": "Notes API",
6
- "description": "Facade API Backend for Epilot Notes feature",
7
- "contact": {
8
- "name": "epilot",
9
- "url": "https://docs.epilot.io"
10
- }
11
- },
12
- "servers": [
13
- {
14
- "url": "https://notes.sls.epilot.io"
15
- }
16
- ],
17
- "tags": [
18
- {
19
- "name": "Notes"
20
- },
21
- {
22
- "name": "Pinning"
23
- },
24
- {
25
- "name": "Reactions"
26
- },
27
- {
28
- "name": "Archive"
29
- }
30
- ],
31
- "security": [
32
- {
33
- "EpilotAuth": []
34
- }
35
- ],
36
- "paths": {
37
- "/v1/note": {
38
- "post": {
39
- "operationId": "createNote",
40
- "summary": "createNote",
41
- "description": "Creates a new Note entry",
42
- "tags": [
43
- "Notes"
44
- ],
45
- "requestBody": {
46
- "content": {
47
- "application/json": {
48
- "schema": {
49
- "$ref": "#/components/schemas/NotePostRequestBody"
50
- }
51
- }
52
- }
53
- },
54
- "responses": {
55
- "200": {
56
- "description": "Successful response with Note content",
57
- "content": {
58
- "application/json": {
59
- "schema": {
60
- "$ref": "#/components/schemas/NoteEntity"
61
- }
62
- }
63
- }
64
- }
65
- }
66
- }
67
- },
68
- "/v1/note/{id}": {
69
- "get": {
70
- "operationId": "getNote",
71
- "summary": "getNote",
72
- "description": "Retrieves a single Note entry based on it's Entity ID",
73
- "tags": [
74
- "Notes"
75
- ],
76
- "parameters": [
77
- {
78
- "in": "path",
79
- "name": "id",
80
- "description": "The Entity ID of the Note entry to retrieve",
81
- "schema": {
82
- "type": "string",
83
- "description": "The Entity ID of the Note entry to retrieve"
84
- },
85
- "required": true
86
- },
87
- {
88
- "in": "query",
89
- "name": "hydrate",
90
- "description": "Whether to hydrate the Note's relation attributes",
91
- "schema": {
92
- "type": "boolean",
93
- "description": "Whether to hydrate the Note's relation attributes"
94
- }
95
- }
96
- ],
97
- "responses": {
98
- "200": {
99
- "description": "Successful response with Note content",
100
- "content": {
101
- "application/json": {
102
- "schema": {
103
- "$ref": "#/components/schemas/NoteGetRequestResponse"
104
- }
105
- }
106
- }
107
- }
108
- }
109
- },
110
- "patch": {
111
- "operationId": "patchNote",
112
- "summary": "patchNote",
113
- "description": "Updates an existing Note entry",
114
- "tags": [
115
- "Notes"
116
- ],
117
- "parameters": [
118
- {
119
- "in": "path",
120
- "name": "id",
121
- "description": "The Entity ID of the Note entry to update",
122
- "schema": {
123
- "type": "string",
124
- "description": "The Entity ID of the Note entry to update"
125
- },
126
- "required": true
127
- }
128
- ],
129
- "requestBody": {
130
- "content": {
131
- "application/json": {
132
- "schema": {
133
- "$ref": "#/components/schemas/NotePatchRequestBody"
134
- }
135
- }
136
- }
137
- },
138
- "responses": {
139
- "200": {
140
- "description": "Successful response with Note content",
141
- "content": {
142
- "application/json": {
143
- "schema": {
144
- "$ref": "#/components/schemas/NoteEntity"
145
- }
146
- }
147
- }
148
- }
149
- }
150
- },
151
- "put": {
152
- "operationId": "updateNote",
153
- "summary": "updateNote",
154
- "description": "Updates an existing Note entry",
155
- "tags": [
156
- "Notes"
157
- ],
158
- "parameters": [
159
- {
160
- "in": "path",
161
- "name": "id",
162
- "description": "The Entity ID of the Note entry to update",
163
- "schema": {
164
- "type": "string",
165
- "description": "The Entity ID of the Note entry to update"
166
- },
167
- "required": true
168
- }
169
- ],
170
- "requestBody": {
171
- "content": {
172
- "application/json": {
173
- "schema": {
174
- "$ref": "#/components/schemas/NotePutRequestBody"
175
- }
176
- }
177
- }
178
- },
179
- "responses": {
180
- "200": {
181
- "description": "Successful response with Note content",
182
- "content": {
183
- "application/json": {
184
- "schema": {
185
- "$ref": "#/components/schemas/NoteEntity"
186
- }
187
- }
188
- }
189
- }
190
- }
191
- },
192
- "delete": {
193
- "operationId": "deleteNote",
194
- "summary": "deleteNote",
195
- "description": "Deletes a single Note entry based on it's Entity ID",
196
- "tags": [
197
- "Notes"
198
- ],
199
- "parameters": [
200
- {
201
- "in": "path",
202
- "name": "id",
203
- "description": "The Entity ID of the Note entry to delete",
204
- "schema": {
205
- "type": "string",
206
- "description": "The Entity ID of the Note entry to delete"
207
- },
208
- "required": true
209
- }
210
- ],
211
- "responses": {
212
- "200": {
213
- "description": "Successful response with the deleted Note entity"
214
- }
215
- }
216
- }
217
- },
218
- "/v1/notes:search": {
219
- "post": {
220
- "operationId": "searchNotesByContext",
221
- "summary": "searchNotesByContext",
222
- "description": "Search for a paginated list of Notes based on one or more contexts",
223
- "tags": [
224
- "Notes"
225
- ],
226
- "requestBody": {
227
- "content": {
228
- "application/json": {
229
- "schema": {
230
- "$ref": "#/components/schemas/NoteSearchByContextRequestBody"
231
- }
232
- }
233
- }
234
- },
235
- "responses": {
236
- "200": {
237
- "description": "Successful response with Note content",
238
- "content": {
239
- "application/json": {
240
- "schema": {
241
- "$ref": "#/components/schemas/NotesSearchRequestResponse"
242
- }
243
- }
244
- }
245
- }
246
- }
247
- }
248
- },
249
- "/v1/notes/{entity_id}": {
250
- "get": {
251
- "operationId": "getNotesByContext",
252
- "summary": "getNotesByContext",
253
- "deprecated": true,
254
- "description": "Given a `context_type`, returns a list of Notes that belong to that context within the specified `id`. \nThis endpoint is deprecated but will be kept for backwards compatibility. Please use the `searchNotesByContext` endpoint instead.",
255
- "tags": [
256
- "Notes"
257
- ],
258
- "parameters": [
259
- {
260
- "in": "path",
261
- "name": "entity_id",
262
- "description": "The ID of the Contextual Entity from where to retrieve Notes",
263
- "schema": {
264
- "type": "string",
265
- "description": "The ID of the Contextual Entity from where to retrieve Notes"
266
- },
267
- "required": true
268
- },
269
- {
270
- "in": "query",
271
- "name": "contexts",
272
- "schema": {
273
- "type": "array",
274
- "items": {
275
- "type": "object",
276
- "properties": {
277
- "type": {
278
- "$ref": "#/components/schemas/ContextType"
279
- },
280
- "id": {
281
- "type": "string"
282
- }
283
- },
284
- "required": [
285
- "type",
286
- "id"
287
- ]
288
- }
289
- }
290
- },
291
- {
292
- "in": "query",
293
- "name": "filter",
294
- "description": "Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both.",
295
- "schema": {
296
- "$ref": "#/components/schemas/NotesListFilter"
297
- }
298
- },
299
- {
300
- "in": "query",
301
- "name": "from",
302
- "description": "The index of the first Note to return in this query",
303
- "schema": {
304
- "type": "number",
305
- "default": 0,
306
- "description": "The index of the first Note to return in this query"
307
- }
308
- },
309
- {
310
- "in": "query",
311
- "name": "size",
312
- "description": "The number of Note entries to return in this query",
313
- "schema": {
314
- "type": "number",
315
- "default": 10,
316
- "description": "The number of Note entries to return in this query"
317
- }
318
- }
319
- ],
320
- "responses": {
321
- "200": {
322
- "description": "Successful response with Note content",
323
- "content": {
324
- "application/json": {
325
- "schema": {
326
- "$ref": "#/components/schemas/NotesSearchRequestResponse"
327
- }
328
- }
329
- }
330
- }
331
- }
332
- }
333
- },
334
- "/v1/note/{id}/pin": {
335
- "post": {
336
- "operationId": "pinNote",
337
- "summary": "pinNote",
338
- "description": "Pins a single Note entry based on it's Entity ID",
339
- "tags": [
340
- "Pinning"
341
- ],
342
- "parameters": [
343
- {
344
- "in": "path",
345
- "name": "id",
346
- "description": "The Entity ID of the Note entry to pin",
347
- "schema": {
348
- "type": "string",
349
- "description": "The Entity ID of the Note entry to pin"
350
- },
351
- "required": true
352
- }
353
- ],
354
- "responses": {
355
- "200": {
356
- "description": "Successful response with the pinned Note entity"
357
- }
358
- }
359
- }
360
- },
361
- "/v1/note/{id}/archive": {
362
- "post": {
363
- "operationId": "archiveNote",
364
- "summary": "archiveNote",
365
- "description": "Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.",
366
- "tags": [
367
- "Archive"
368
- ],
369
- "parameters": [
370
- {
371
- "in": "path",
372
- "name": "id",
373
- "description": "The Entity ID of the Note entry to archive",
374
- "schema": {
375
- "type": "string",
376
- "description": "The Entity ID of the Note entry to archive"
377
- },
378
- "required": true
379
- }
380
- ],
381
- "responses": {
382
- "200": {
383
- "description": "Successful response with the archived Note entity",
384
- "content": {
385
- "application/json": {
386
- "schema": {
387
- "$ref": "#/components/schemas/NoteEntity"
388
- }
389
- }
390
- }
391
- }
392
- }
393
- }
394
- },
395
- "/v1/note/{id}/unarchive": {
396
- "post": {
397
- "operationId": "unarchiveNote",
398
- "summary": "unarchiveNote",
399
- "description": "Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.",
400
- "tags": [
401
- "Archive"
402
- ],
403
- "parameters": [
404
- {
405
- "in": "path",
406
- "name": "id",
407
- "description": "The Entity ID of the Note entry to unarchive",
408
- "schema": {
409
- "type": "string",
410
- "description": "The Entity ID of the Note entry to unarchive"
411
- },
412
- "required": true
413
- }
414
- ],
415
- "responses": {
416
- "200": {
417
- "description": "Successful response with the unarchived Note entity",
418
- "content": {
419
- "application/json": {
420
- "schema": {
421
- "$ref": "#/components/schemas/NoteEntity"
422
- }
423
- }
424
- }
425
- }
426
- }
427
- }
428
- },
429
- "/v1/note/{id}/context": {
430
- "get": {
431
- "operationId": "getNoteContexts",
432
- "summary": "getNoteContexts",
433
- "description": "Gets all the Entity and non-Entity records the Note is contextually attached to",
434
- "tags": [
435
- "Notes"
436
- ],
437
- "parameters": [
438
- {
439
- "in": "path",
440
- "name": "id",
441
- "description": "The Entity ID of the Note entry to get contexts for",
442
- "schema": {
443
- "type": "string",
444
- "description": "The Entity ID of the Note entry to get contexts for"
445
- },
446
- "required": true
447
- }
448
- ],
449
- "responses": {
450
- "200": {
451
- "description": "Successful response with the contexts for the Note Entity",
452
- "content": {
453
- "application/json": {
454
- "schema": {
455
- "type": "array",
456
- "items": {
457
- "$ref": "#/components/schemas/NoteContexts"
458
- }
459
- }
460
- }
461
- }
462
- }
463
- }
464
- }
465
- },
466
- "/v1/note/{id}/reaction": {
467
- "post": {
468
- "operationId": "addNoteReaction",
469
- "summary": "addNoteReaction",
470
- "description": "Adds an emoji reaction to a note",
471
- "tags": [
472
- "Reactions"
473
- ],
474
- "parameters": [
475
- {
476
- "in": "path",
477
- "name": "id",
478
- "description": "The Entity ID of the Note entry to add reaction to",
479
- "schema": {
480
- "type": "string",
481
- "description": "The Entity ID of the Note entry to add reaction to"
482
- },
483
- "required": true
484
- }
485
- ],
486
- "requestBody": {
487
- "content": {
488
- "application/json": {
489
- "schema": {
490
- "$ref": "#/components/schemas/ReactionRequest"
491
- }
492
- }
493
- }
494
- },
495
- "responses": {
496
- "200": {
497
- "description": "Successful response with the updated note reactions",
498
- "content": {
499
- "application/json": {
500
- "schema": {
501
- "$ref": "#/components/schemas/NoteEntity"
502
- }
503
- }
504
- }
505
- }
506
- }
507
- }
508
- },
509
- "/v1/note/{id}/reaction/{emoji_shortcode}": {
510
- "delete": {
511
- "operationId": "removeNoteReaction",
512
- "summary": "removeNoteReaction",
513
- "description": "Removes an emoji reaction from a note",
514
- "tags": [
515
- "Reactions"
516
- ],
517
- "parameters": [
518
- {
519
- "in": "path",
520
- "name": "id",
521
- "description": "The Entity ID of the Note entry to remove reaction from",
522
- "schema": {
523
- "type": "string",
524
- "description": "The Entity ID of the Note entry to remove reaction from"
525
- },
526
- "required": true
527
- },
528
- {
529
- "in": "path",
530
- "name": "emoji_shortcode",
531
- "description": "The emoji to remove from the note",
532
- "schema": {
533
- "type": "string",
534
- "description": "The emoji to remove from the note"
535
- },
536
- "required": true
537
- }
538
- ],
539
- "responses": {
540
- "200": {
541
- "description": "Successful response with the updated note reactions",
542
- "content": {
543
- "application/json": {
544
- "schema": {
545
- "$ref": "#/components/schemas/NoteEntity"
546
- }
547
- }
548
- }
549
- }
550
- }
551
- }
552
- },
553
- "/v1/note/{id}/reactions/toggle": {
554
- "post": {
555
- "operationId": "toggleNoteReactions",
556
- "summary": "toggleNoteReactions",
557
- "description": "Toggles multiple emoji reactions on a note. If a user has already reacted with an emoji, it removes the reaction. If a user hasn't reacted with an emoji, it adds the reaction.",
558
- "tags": [
559
- "Reactions"
560
- ],
561
- "parameters": [
562
- {
563
- "in": "path",
564
- "name": "id",
565
- "description": "The Entity ID of the Note entry to toggle reactions on",
566
- "schema": {
567
- "type": "string",
568
- "description": "The Entity ID of the Note entry to toggle reactions on"
569
- },
570
- "required": true
571
- }
572
- ],
573
- "requestBody": {
574
- "content": {
575
- "application/json": {
576
- "schema": {
577
- "$ref": "#/components/schemas/ToggleReactionsRequest"
578
- }
579
- }
580
- }
581
- },
582
- "responses": {
583
- "200": {
584
- "description": "Successful response with the updated note reactions",
585
- "content": {
586
- "application/json": {
587
- "schema": {
588
- "$ref": "#/components/schemas/NoteEntity"
589
- }
590
- }
591
- }
592
- }
593
- }
594
- }
595
- }
596
- },
597
- "components": {
598
- "securitySchemes": {
599
- "EpilotAuth": {
600
- "type": "http",
601
- "scheme": "bearer",
602
- "description": "Authorization header with epilot OAuth2 bearer token",
603
- "bearerFormat": "JWT"
604
- }
605
- },
606
- "schemas": {
607
- "NotePostRequestBody": {
608
- "type": "object",
609
- "properties": {
610
- "_tags": {
611
- "type": "array",
612
- "items": {
613
- "type": "string"
614
- },
615
- "description": "Tags associated with this Note"
616
- },
617
- "type": {
618
- "type": "string",
619
- "description": "Entity ID of the Note entry"
620
- },
621
- "entity_id": {
622
- "type": "string",
623
- "description": "The Entity ID of the Entity this Note will be related to. This option has been deprecated since 2.1.0. Please use `contexts` instead.",
624
- "deprecated": true
625
- },
626
- "parent_id": {
627
- "type": "string",
628
- "description": "The Entity ID of the Note's parent Note. If supplied, the Note will be a comment to the parent Note. Be aware that Notes can only have comments one level deep"
629
- },
630
- "contexts": {
631
- "type": "array",
632
- "items": {
633
- "type": "object",
634
- "properties": {
635
- "type": {
636
- "$ref": "#/components/schemas/ContextType"
637
- },
638
- "id": {
639
- "type": "string"
640
- }
641
- },
642
- "required": [
643
- "type",
644
- "id"
645
- ]
646
- },
647
- "description": "The contexts to which this Note will be related to"
648
- },
649
- "additional_contexts": {
650
- "type": "array",
651
- "items": {
652
- "type": "object",
653
- "properties": {
654
- "type": {
655
- "$ref": "#/components/schemas/ContextType"
656
- },
657
- "id": {
658
- "type": "string"
659
- }
660
- },
661
- "required": [
662
- "type",
663
- "id"
664
- ]
665
- },
666
- "description": "Any additional non-entity contexts to which this Note will be related to. This option has been deprecated since 2.1.0. Please use `contexts` instead.",
667
- "deprecated": true
668
- },
669
- "content": {
670
- "type": "string",
671
- "description": "The content of the Note"
672
- },
673
- "attachments": {
674
- "type": "array",
675
- "items": {
676
- "type": "string"
677
- },
678
- "description": "List of File Entity IDs attached to the Note"
679
- },
680
- "read_by": {
681
- "type": "array",
682
- "items": {
683
- "type": "string"
684
- },
685
- "description": "List of user IDs who have read this note"
686
- }
687
- }
688
- },
689
- "ContextType": {
690
- "type": "string",
691
- "enum": [
692
- "workflow_execution",
693
- "workflow_task",
694
- "workflow_configuration",
695
- "journey_configuration",
696
- "entity"
697
- ]
698
- },
699
- "NoteEntity": {
700
- "allOf": [
701
- {
702
- "$ref": "#/components/schemas/Entity"
703
- }
704
- ],
705
- "type": "object",
706
- "properties": {
707
- "context_entities": {
708
- "type": "array",
709
- "items": {
710
- "$ref": "#/components/schemas/Entity"
711
- }
712
- },
713
- "parent": {
714
- "type": "array",
715
- "items": {
716
- "$ref": "#/components/schemas/NoteEntity"
717
- }
718
- },
719
- "attachments": {
720
- "type": "array",
721
- "items": {
722
- "$ref": "#/components/schemas/Entity"
723
- }
724
- },
725
- "comments": {
726
- "type": "array",
727
- "items": {
728
- "$ref": "#/components/schemas/NoteEntity"
729
- }
730
- },
731
- "content": {
732
- "type": "string",
733
- "description": "The content of the Note"
734
- },
735
- "contexts": {
736
- "type": "array",
737
- "items": {
738
- "type": "object",
739
- "properties": {
740
- "type": {
741
- "$ref": "#/components/schemas/ContextType"
742
- },
743
- "id": {
744
- "type": "string"
745
- }
746
- },
747
- "required": [
748
- "type",
749
- "id"
750
- ]
751
- }
752
- },
753
- "pinned_at": {
754
- "type": "string",
755
- "description": "The timestamp of when this Note was pinned",
756
- "format": "date-time"
757
- },
758
- "edited_at": {
759
- "type": "string",
760
- "description": "The timestamp of when this Note was last updated",
761
- "format": "date-time"
762
- },
763
- "created_by": {
764
- "type": "array",
765
- "items": {
766
- "type": "object",
767
- "properties": {
768
- "type": {
769
- "$ref": "#/components/schemas/CreatedByType"
770
- },
771
- "user_id": {
772
- "type": "string"
773
- },
774
- "display_name": {
775
- "type": "string"
776
- },
777
- "org_id": {
778
- "type": "string"
779
- },
780
- "email": {
781
- "type": "string"
782
- },
783
- "phone": {
784
- "type": "string"
785
- }
786
- },
787
- "required": [
788
- "type"
789
- ]
790
- }
791
- },
792
- "read_by": {
793
- "type": "array",
794
- "items": {
795
- "type": "string"
796
- },
797
- "description": "List of user IDs who have read this note"
798
- },
799
- "reactions": {
800
- "type": "object",
801
- "additionalProperties": {
802
- "type": "array",
803
- "items": {
804
- "type": "string"
805
- }
806
- },
807
- "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
808
- },
809
- "_archived_at": {
810
- "type": "string",
811
- "nullable": true,
812
- "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
813
- "format": "date-time"
814
- }
815
- },
816
- "description": "A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place."
817
- },
818
- "Entity": {
819
- "type": "object",
820
- "properties": {
821
- "_id": {
822
- "type": "string",
823
- "description": "Entity ID of the Note entry"
824
- },
825
- "_org": {
826
- "type": "string",
827
- "description": "ID of the Organization that owns this Note"
828
- },
829
- "_schema": {
830
- "type": "string",
831
- "description": "The Entity schema of this Note"
832
- },
833
- "_created_at": {
834
- "type": "string",
835
- "description": "The timestamp of when this Note was created",
836
- "format": "date-time"
837
- },
838
- "_updated_at": {
839
- "type": "string",
840
- "description": "The timestamp of when this Note was last updated",
841
- "format": "date-time"
842
- },
843
- "_created_by": {
844
- "anyOf": [
845
- {
846
- "type": "string"
847
- },
848
- {
849
- "type": "number"
850
- }
851
- ],
852
- "description": "The Entity ID of the User that created this Note"
853
- },
854
- "_tags": {
855
- "type": "array",
856
- "items": {
857
- "type": "string"
858
- },
859
- "description": "Tags associated with this Note"
860
- },
861
- "_acl": {
862
- "type": "object",
863
- "additionalProperties": {
864
- "type": "array",
865
- "items": {
866
- "type": "string"
867
- }
868
- },
869
- "description": "Access Control List for this Note entry"
870
- },
871
- "_owners": {
872
- "type": "array",
873
- "items": {
874
- "type": "object",
875
- "properties": {
876
- "org_id": {
877
- "type": "string"
878
- },
879
- "user_id": {
880
- "type": "string"
881
- }
882
- },
883
- "required": [
884
- "org_id",
885
- "user_id"
886
- ]
887
- }
888
- },
889
- "type": {
890
- "type": "string",
891
- "description": "Entity ID of the Note entry"
892
- }
893
- },
894
- "required": [
895
- "_id"
896
- ],
897
- "description": "Base Entity schema"
898
- },
899
- "CreatedByType": {
900
- "type": "string",
901
- "enum": [
902
- "user",
903
- "group"
904
- ]
905
- },
906
- "NoteGetRequestResponse": {
907
- "allOf": [
908
- {
909
- "$ref": "#/components/schemas/Entity"
910
- }
911
- ],
912
- "type": "object",
913
- "properties": {
914
- "context_entities": {
915
- "type": "array",
916
- "items": {
917
- "$ref": "#/components/schemas/Entity"
918
- }
919
- },
920
- "parent": {
921
- "type": "array",
922
- "items": {
923
- "$ref": "#/components/schemas/NoteEntity"
924
- }
925
- },
926
- "attachments": {
927
- "type": "array",
928
- "items": {
929
- "$ref": "#/components/schemas/Entity"
930
- }
931
- },
932
- "comments": {
933
- "type": "array",
934
- "items": {
935
- "$ref": "#/components/schemas/NoteEntity"
936
- }
937
- },
938
- "content": {
939
- "type": "string",
940
- "description": "The content of the Note"
941
- },
942
- "contexts": {
943
- "type": "array",
944
- "items": {
945
- "type": "object",
946
- "properties": {
947
- "type": {
948
- "$ref": "#/components/schemas/ContextType"
949
- },
950
- "id": {
951
- "type": "string"
952
- }
953
- },
954
- "required": [
955
- "type",
956
- "id"
957
- ]
958
- }
959
- },
960
- "pinned_at": {
961
- "type": "string",
962
- "description": "The timestamp of when this Note was pinned",
963
- "format": "date-time"
964
- },
965
- "edited_at": {
966
- "type": "string",
967
- "description": "The timestamp of when this Note was last updated",
968
- "format": "date-time"
969
- },
970
- "created_by": {
971
- "type": "array",
972
- "items": {
973
- "type": "object",
974
- "properties": {
975
- "type": {
976
- "$ref": "#/components/schemas/CreatedByType"
977
- },
978
- "user_id": {
979
- "type": "string"
980
- },
981
- "display_name": {
982
- "type": "string"
983
- },
984
- "org_id": {
985
- "type": "string"
986
- },
987
- "email": {
988
- "type": "string"
989
- },
990
- "phone": {
991
- "type": "string"
992
- }
993
- },
994
- "required": [
995
- "type"
996
- ]
997
- }
998
- },
999
- "read_by": {
1000
- "type": "array",
1001
- "items": {
1002
- "type": "string"
1003
- },
1004
- "description": "List of user IDs who have read this note"
1005
- },
1006
- "reactions": {
1007
- "type": "object",
1008
- "additionalProperties": {
1009
- "type": "array",
1010
- "items": {
1011
- "type": "string"
1012
- }
1013
- },
1014
- "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1015
- },
1016
- "_archived_at": {
1017
- "type": "string",
1018
- "nullable": true,
1019
- "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1020
- "format": "date-time"
1021
- }
1022
- }
1023
- },
1024
- "NotePatchRequestBody": {
1025
- "type": "object",
1026
- "properties": {
1027
- "_tags": {
1028
- "type": "array",
1029
- "items": {
1030
- "type": "string"
1031
- },
1032
- "description": "Tags associated with this Note"
1033
- },
1034
- "type": {
1035
- "type": "string",
1036
- "description": "Entity ID of the Note entry"
1037
- },
1038
- "attachments": {
1039
- "type": "object",
1040
- "properties": {
1041
- "$relation": {
1042
- "type": "array",
1043
- "items": {
1044
- "type": "object",
1045
- "properties": {
1046
- "entity_id": {
1047
- "type": "string"
1048
- }
1049
- },
1050
- "required": [
1051
- "entity_id"
1052
- ]
1053
- }
1054
- }
1055
- },
1056
- "description": "The Note's parent Note"
1057
- },
1058
- "comments": {
1059
- "type": "array",
1060
- "items": {
1061
- "$ref": "#/components/schemas/NonHydratedNoteEntity"
1062
- }
1063
- },
1064
- "content": {
1065
- "type": "string",
1066
- "description": "The content of the Note"
1067
- },
1068
- "contexts": {
1069
- "type": "array",
1070
- "items": {
1071
- "type": "object",
1072
- "properties": {
1073
- "type": {
1074
- "$ref": "#/components/schemas/ContextType"
1075
- },
1076
- "id": {
1077
- "type": "string"
1078
- }
1079
- },
1080
- "required": [
1081
- "type",
1082
- "id"
1083
- ]
1084
- }
1085
- },
1086
- "pinned_at": {
1087
- "type": "string",
1088
- "description": "The timestamp of when this Note was pinned",
1089
- "format": "date-time"
1090
- },
1091
- "edited_at": {
1092
- "type": "string",
1093
- "description": "The timestamp of when this Note was last updated",
1094
- "format": "date-time"
1095
- },
1096
- "created_by": {
1097
- "type": "array",
1098
- "items": {
1099
- "type": "object",
1100
- "properties": {
1101
- "type": {
1102
- "type": "string",
1103
- "enum": [
1104
- "user",
1105
- "group"
1106
- ]
1107
- },
1108
- "user_id": {
1109
- "type": "string"
1110
- },
1111
- "display_name": {
1112
- "type": "string"
1113
- },
1114
- "org_id": {
1115
- "type": "string"
1116
- },
1117
- "email": {
1118
- "type": "string"
1119
- },
1120
- "phone": {
1121
- "type": "string"
1122
- }
1123
- },
1124
- "required": [
1125
- "type"
1126
- ]
1127
- }
1128
- },
1129
- "read_by": {
1130
- "type": "array",
1131
- "items": {
1132
- "type": "string"
1133
- },
1134
- "description": "List of user IDs who have read this note"
1135
- },
1136
- "reactions": {
1137
- "type": "object",
1138
- "additionalProperties": {
1139
- "type": "array",
1140
- "items": {
1141
- "type": "string"
1142
- }
1143
- },
1144
- "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1145
- },
1146
- "_archived_at": {
1147
- "type": "string",
1148
- "nullable": true,
1149
- "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1150
- "format": "date-time"
1151
- }
1152
- }
1153
- },
1154
- "NonHydratedNoteEntity": {
1155
- "allOf": [
1156
- {
1157
- "$ref": "#/components/schemas/Entity"
1158
- }
1159
- ],
1160
- "type": "object",
1161
- "properties": {
1162
- "context_entities": {
1163
- "type": "object",
1164
- "properties": {
1165
- "$relation": {
1166
- "type": "array",
1167
- "items": {
1168
- "type": "object",
1169
- "properties": {
1170
- "entity_id": {
1171
- "type": "string"
1172
- }
1173
- },
1174
- "required": [
1175
- "entity_id"
1176
- ]
1177
- }
1178
- }
1179
- },
1180
- "required": [
1181
- "$relation"
1182
- ]
1183
- },
1184
- "parent": {
1185
- "$ref": "#/components/schemas/NoteEntityParent"
1186
- },
1187
- "attachments": {
1188
- "type": "object",
1189
- "properties": {
1190
- "$relation": {
1191
- "type": "array",
1192
- "items": {
1193
- "type": "object",
1194
- "properties": {
1195
- "entity_id": {
1196
- "type": "string"
1197
- }
1198
- },
1199
- "required": [
1200
- "entity_id"
1201
- ]
1202
- }
1203
- }
1204
- },
1205
- "description": "The Note's parent Note"
1206
- },
1207
- "comments": {
1208
- "type": "array",
1209
- "items": {
1210
- "$ref": "#/components/schemas/NonHydratedNoteEntity"
1211
- }
1212
- },
1213
- "content": {
1214
- "type": "string",
1215
- "description": "The content of the Note"
1216
- },
1217
- "contexts": {
1218
- "type": "array",
1219
- "items": {
1220
- "type": "object",
1221
- "properties": {
1222
- "type": {
1223
- "$ref": "#/components/schemas/ContextType"
1224
- },
1225
- "id": {
1226
- "type": "string"
1227
- }
1228
- },
1229
- "required": [
1230
- "type",
1231
- "id"
1232
- ]
1233
- }
1234
- },
1235
- "pinned_at": {
1236
- "type": "string",
1237
- "description": "The timestamp of when this Note was pinned",
1238
- "format": "date-time"
1239
- },
1240
- "edited_at": {
1241
- "type": "string",
1242
- "description": "The timestamp of when this Note was last updated",
1243
- "format": "date-time"
1244
- },
1245
- "created_by": {
1246
- "type": "array",
1247
- "items": {
1248
- "type": "object",
1249
- "properties": {
1250
- "type": {
1251
- "type": "string",
1252
- "enum": [
1253
- "user",
1254
- "group"
1255
- ]
1256
- },
1257
- "user_id": {
1258
- "type": "string"
1259
- },
1260
- "display_name": {
1261
- "type": "string"
1262
- },
1263
- "org_id": {
1264
- "type": "string"
1265
- },
1266
- "email": {
1267
- "type": "string"
1268
- },
1269
- "phone": {
1270
- "type": "string"
1271
- }
1272
- },
1273
- "required": [
1274
- "type"
1275
- ]
1276
- }
1277
- },
1278
- "read_by": {
1279
- "type": "array",
1280
- "items": {
1281
- "type": "string"
1282
- },
1283
- "description": "List of user IDs who have read this note"
1284
- },
1285
- "reactions": {
1286
- "type": "object",
1287
- "additionalProperties": {
1288
- "type": "array",
1289
- "items": {
1290
- "type": "string"
1291
- }
1292
- },
1293
- "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1294
- },
1295
- "_archived_at": {
1296
- "type": "string",
1297
- "nullable": true,
1298
- "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1299
- "format": "date-time"
1300
- }
1301
- },
1302
- "required": [
1303
- "context_entities"
1304
- ],
1305
- "description": "A note Entity object cotaining Entity metadata and content. Relational attributes are not hydrated in place."
1306
- },
1307
- "NoteEntityParent": {
1308
- "type": "object",
1309
- "properties": {
1310
- "$relation": {
1311
- "type": "array",
1312
- "items": {
1313
- "type": "object",
1314
- "properties": {
1315
- "entity_id": {
1316
- "type": "string"
1317
- }
1318
- },
1319
- "required": [
1320
- "entity_id"
1321
- ]
1322
- }
1323
- }
1324
- },
1325
- "description": "The Note's parent Note"
1326
- },
1327
- "NotePutRequestBody": {
1328
- "type": "object",
1329
- "properties": {
1330
- "_id": {
1331
- "type": "string",
1332
- "description": "Entity ID of the Note entry"
1333
- },
1334
- "_org": {
1335
- "type": "string",
1336
- "description": "ID of the Organization that owns this Note"
1337
- },
1338
- "_schema": {
1339
- "type": "string",
1340
- "description": "The Entity schema of this Note"
1341
- },
1342
- "_created_at": {
1343
- "type": "string",
1344
- "description": "The timestamp of when this Note was created",
1345
- "format": "date-time"
1346
- },
1347
- "_updated_at": {
1348
- "type": "string",
1349
- "description": "The timestamp of when this Note was last updated",
1350
- "format": "date-time"
1351
- },
1352
- "_created_by": {
1353
- "anyOf": [
1354
- {
1355
- "type": "string"
1356
- },
1357
- {
1358
- "type": "number"
1359
- }
1360
- ],
1361
- "description": "The Entity ID of the User that created this Note"
1362
- },
1363
- "_tags": {
1364
- "type": "array",
1365
- "items": {
1366
- "type": "string"
1367
- },
1368
- "description": "Tags associated with this Note"
1369
- },
1370
- "_acl": {
1371
- "type": "object",
1372
- "additionalProperties": {
1373
- "type": "array",
1374
- "items": {
1375
- "type": "string"
1376
- }
1377
- },
1378
- "description": "Access Control List for this Note entry"
1379
- },
1380
- "_owners": {
1381
- "type": "array",
1382
- "items": {
1383
- "type": "object",
1384
- "properties": {
1385
- "org_id": {
1386
- "type": "string"
1387
- },
1388
- "user_id": {
1389
- "type": "string"
1390
- }
1391
- },
1392
- "required": [
1393
- "org_id",
1394
- "user_id"
1395
- ]
1396
- }
1397
- },
1398
- "type": {
1399
- "type": "string",
1400
- "description": "Entity ID of the Note entry"
1401
- },
1402
- "context_entities": {
1403
- "type": "object",
1404
- "properties": {
1405
- "$relation": {
1406
- "type": "array",
1407
- "items": {
1408
- "type": "object",
1409
- "properties": {
1410
- "entity_id": {
1411
- "type": "string"
1412
- }
1413
- },
1414
- "required": [
1415
- "entity_id"
1416
- ]
1417
- }
1418
- }
1419
- },
1420
- "required": [
1421
- "$relation"
1422
- ]
1423
- },
1424
- "parent": {
1425
- "$ref": "#/components/schemas/NoteEntityParent"
1426
- },
1427
- "attachments": {
1428
- "type": "object",
1429
- "properties": {
1430
- "$relation": {
1431
- "type": "array",
1432
- "items": {
1433
- "type": "object",
1434
- "properties": {
1435
- "entity_id": {
1436
- "type": "string"
1437
- }
1438
- },
1439
- "required": [
1440
- "entity_id"
1441
- ]
1442
- }
1443
- }
1444
- },
1445
- "description": "The Note's parent Note"
1446
- },
1447
- "content": {
1448
- "type": "string",
1449
- "description": "The content of the Note"
1450
- },
1451
- "contexts": {
1452
- "type": "array",
1453
- "items": {
1454
- "type": "object",
1455
- "properties": {
1456
- "type": {
1457
- "$ref": "#/components/schemas/ContextType"
1458
- },
1459
- "id": {
1460
- "type": "string"
1461
- }
1462
- },
1463
- "required": [
1464
- "type",
1465
- "id"
1466
- ]
1467
- }
1468
- },
1469
- "pinned_at": {
1470
- "type": "string",
1471
- "description": "The timestamp of when this Note was pinned",
1472
- "format": "date-time"
1473
- },
1474
- "edited_at": {
1475
- "type": "string",
1476
- "description": "The timestamp of when this Note was last updated",
1477
- "format": "date-time"
1478
- },
1479
- "created_by": {
1480
- "type": "array",
1481
- "items": {
1482
- "type": "object",
1483
- "properties": {
1484
- "type": {
1485
- "type": "string",
1486
- "enum": [
1487
- "user",
1488
- "group"
1489
- ]
1490
- },
1491
- "user_id": {
1492
- "type": "string"
1493
- },
1494
- "display_name": {
1495
- "type": "string"
1496
- },
1497
- "org_id": {
1498
- "type": "string"
1499
- },
1500
- "email": {
1501
- "type": "string"
1502
- },
1503
- "phone": {
1504
- "type": "string"
1505
- }
1506
- },
1507
- "required": [
1508
- "type"
1509
- ]
1510
- }
1511
- },
1512
- "read_by": {
1513
- "type": "array",
1514
- "items": {
1515
- "type": "string"
1516
- },
1517
- "description": "List of user IDs who have read this note"
1518
- },
1519
- "reactions": {
1520
- "type": "object",
1521
- "additionalProperties": {
1522
- "type": "array",
1523
- "items": {
1524
- "type": "string"
1525
- }
1526
- },
1527
- "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1528
- },
1529
- "_archived_at": {
1530
- "type": "string",
1531
- "nullable": true,
1532
- "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1533
- "format": "date-time"
1534
- }
1535
- }
1536
- },
1537
- "NoteSearchByContextRequestBody": {
1538
- "type": "object",
1539
- "properties": {
1540
- "contexts": {
1541
- "type": "array",
1542
- "items": {
1543
- "type": "object",
1544
- "properties": {
1545
- "type": {
1546
- "$ref": "#/components/schemas/ContextType"
1547
- },
1548
- "id": {
1549
- "type": "string"
1550
- }
1551
- },
1552
- "required": [
1553
- "type",
1554
- "id"
1555
- ]
1556
- },
1557
- "minItems": 1
1558
- },
1559
- "include_related_schemas": {
1560
- "type": "array",
1561
- "items": {
1562
- "type": "string"
1563
- },
1564
- "description": "When set, the API resolves related entities of these schemas for the primary entity context and includes their notes in the results."
1565
- },
1566
- "filter": {
1567
- "$ref": "#/components/schemas/NotesListFilter"
1568
- },
1569
- "from": {
1570
- "type": "number",
1571
- "default": 0,
1572
- "description": "The index of the first Note to return in this query"
1573
- },
1574
- "size": {
1575
- "type": "number",
1576
- "default": 10,
1577
- "description": "The number of Note entries to return in this query"
1578
- }
1579
- },
1580
- "required": [
1581
- "contexts"
1582
- ]
1583
- },
1584
- "NotesListFilter": {
1585
- "type": "string",
1586
- "enum": [
1587
- "all",
1588
- "active",
1589
- "archived"
1590
- ],
1591
- "default": "active",
1592
- "description": "Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both."
1593
- },
1594
- "NotesSearchRequestResponse": {
1595
- "type": "object",
1596
- "properties": {
1597
- "hits": {
1598
- "type": "number",
1599
- "description": "The number of Note entries returned in this query"
1600
- },
1601
- "results": {
1602
- "type": "array",
1603
- "items": {
1604
- "$ref": "#/components/schemas/NoteEntity"
1605
- },
1606
- "description": "The Note entries returned in this query"
1607
- }
1608
- },
1609
- "required": [
1610
- "results"
1611
- ]
1612
- },
1613
- "NoteContexts": {
1614
- "type": "object",
1615
- "properties": {
1616
- "type": {
1617
- "$ref": "#/components/schemas/ContextType"
1618
- },
1619
- "context": {
1620
- "anyOf": [
1621
- {
1622
- "$ref": "#/components/schemas/Entity"
1623
- },
1624
- {
1625
- "$ref": "#/components/schemas/WorkflowExecution"
1626
- }
1627
- ]
1628
- }
1629
- },
1630
- "required": [
1631
- "type",
1632
- "context"
1633
- ],
1634
- "description": "List of resolved Entity and non-Entity contexts attached to a given Note."
1635
- },
1636
- "WorkflowExecution": {
1637
- "type": "object",
1638
- "properties": {
1639
- "id": {
1640
- "type": "string"
1641
- },
1642
- "definitionId": {
1643
- "type": "string"
1644
- },
1645
- "orgId": {
1646
- "type": "string"
1647
- },
1648
- "name": {
1649
- "type": "string"
1650
- }
1651
- },
1652
- "required": [
1653
- "id",
1654
- "definitionId",
1655
- "orgId",
1656
- "name"
1657
- ],
1658
- "description": "Base metadata for a Workflow Execution. This is a lightweight representation of a Workflow Execution, and does not contain all it's data"
1659
- },
1660
- "ReactionRequest": {
1661
- "type": "object",
1662
- "properties": {
1663
- "emoji": {
1664
- "type": "string",
1665
- "minLength": 1,
1666
- "maxLength": 50,
1667
- "description": "The emoji identifier (e.g., 'thumbs-up', 'heart', 'thinking-face')",
1668
- "example": "thumbs-up"
1669
- }
1670
- },
1671
- "required": [
1672
- "emoji"
1673
- ]
1674
- },
1675
- "ToggleReactionsRequest": {
1676
- "type": "object",
1677
- "properties": {
1678
- "emojis": {
1679
- "type": "array",
1680
- "items": {
1681
- "type": "string",
1682
- "minLength": 1,
1683
- "maxLength": 50
1684
- },
1685
- "description": "Array of emoji identifiers to toggle (e.g., ['thumbs-up', 'heart', 'thinking-face'])",
1686
- "example": [
1687
- "thumbs-up",
1688
- "heart"
1689
- ]
1690
- }
1691
- },
1692
- "required": [
1693
- "emojis"
1694
- ]
1695
- }
1696
- }
1697
- }
1698
- }