forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpt_schema.example.yaml
More file actions
555 lines (555 loc) · 16 KB
/
Copy pathgpt_schema.example.yaml
File metadata and controls
555 lines (555 loc) · 16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
openapi: 3.1.0
info:
title: omi ai apis
description: Retrieves the omi's conversations, the omi's memories of users
version: v1.0.0
servers:
- url: https://b4cf-113-173-36-66.ngrok-free.app
paths:
/v2/integrations/01JQ6AHB37GWRZV66FC6EPTNY5/conversations:
get:
tags:
- integration
- conversations
summary: Get Conversations Via Integration
description: |-
Get all conversations for a user via integration API.
Authentication is required via API key in the Authorization header.
operationId: GetUserConversations
parameters:
- name: uid
in: query
required: true
schema:
type: string
title: Uid
description: User ID whose conversations are being requested
- name: max_transcript_segments
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: -1
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
default: 100
title: Max Transcript Segments
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Limit
description: Maximum number of conversations to return
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
description: Number of conversations to skip
- name: include_discarded
in: query
required: false
schema:
type: boolean
default: false
title: Include Discarded
description: Whether to include discarded conversations
- name: statuses
in: query
required: false
schema:
type: array
items:
type: string
default: []
title: Statuses
description: Filter conversations by status
- name: start_date
in: query
required: false
schema:
type: string
description: Filter conversations after this date (ISO format)
title: Start Date
description: Filter conversations after this date (ISO format)
- name: end_date
in: query
required: false
schema:
type: string
description: Filter conversations before this date (ISO format)
title: End Date
description: Filter conversations before this date (ISO format)
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/ConversationsResponse"
"401":
description: Unauthorized - Missing or invalid API key
"403":
description: Forbidden - App not enabled for user or lacks required capability
"404":
description: Not Found - App not found
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/v2/integrations/01JQ6AHB37GWRZV66FC6EPTNY5/search/conversations:
post:
tags:
- integration
- conversations
summary: Search Conversations Via Integration
description: |-
Search conversations for a user via integration API.
Authentication is required via API key in the Authorization header.
operationId: SearchUserConversations
parameters:
- name: uid
in: query
required: true
schema:
type: string
title: Uid
description: User ID whose conversations are being searched
- name: max_transcript_segments
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: -1
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
default: 100
title: Max Transcript Segments
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
- name: max_transcript_segments
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: -1
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
default: 100
title: Max Transcript Segments
description: Maximum number of transcript segments to include per conversation. Use -1 for no limit.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/SearchRequest"
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/SearchConversationsResponse"
"401":
description: Unauthorized - Missing or invalid API key
"403":
description: Forbidden - App not enabled for user or lacks required capability
"404":
description: Not Found - App not found
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
/v2/integrations/01JQ6AHB37GWRZV66FC6EPTNY5/memories:
get:
tags:
- integration
- facts
summary: Get Memories Via Integration
description: |-
Get all memories (facts) for a user via integration API.
Authentication is required via API key in the Authorization header.
operationId: GetUserMemories
parameters:
- name: uid
in: query
required: true
schema:
type: string
title: Uid
description: User ID whose memories are being requested
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Limit
description: Maximum number of memories to return
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
description: Number of memories to skip
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/MemoriesResponse"
"401":
description: Unauthorized - Missing or invalid API key
"403":
description: Forbidden - App not enabled for user or lacks required capability
"404":
description: Not Found - App not found
"422":
description: Validation Error
content:
application/json:
schema:
$ref: "#/components/schemas/HTTPValidationError"
components:
schemas:
ConversationsResponse:
type: object
required:
- conversations
properties:
conversations:
type: array
items:
$ref: "#/components/schemas/ConversationItem"
description: List of user conversations
title: ConversationsResponse
SearchConversationsResponse:
type: object
required:
- conversations
- total_pages
- current_page
- per_page
properties:
conversations:
type: array
items:
$ref: "#/components/schemas/ConversationItem"
description: List of user conversations
total_pages:
type: integer
title: Total Pages
description: Total number of pages
current_page:
type: integer
title: Current Page
description: Current page number
per_page:
type: integer
title: Per Page
description: Number of items per page
title: SearchConversationsResponse
ConversationItem:
type: object
required:
- id
- created_at
properties:
id:
type: string
title: Id
description: Unique identifier for the conversation
created_at:
type: string
format: date-time
title: Created At
description: When the conversation was created
started_at:
type: string
format: date-time
nullable: true
title: Started At
description: When the conversation started
finished_at:
type: string
format: date-time
nullable: true
title: Finished At
description: When the conversation finished
structured:
type: object
nullable: true
title: Structured
description: Structured data about the conversation
transcript_segments:
type: array
items:
type: object
nullable: true
title: Transcript Segments
description: Transcript segments of the conversation
visibility:
type: string
nullable: true
title: Visibility
description: Visibility setting of the conversation
discarded:
type: boolean
nullable: true
title: Discarded
description: Whether this conversation has been discarded
default: false
deleted:
type: boolean
nullable: true
title: Deleted
description: Whether this conversation has been deleted
default: false
app_id:
type: string
nullable: true
title: App Id
description: ID of the app that created this conversation
geolocation:
type: object
nullable: true
title: Geolocation
description: Geolocation data for this conversation
language:
type: string
nullable: true
title: Language
description: Language of the conversation
processing_memory_id:
type: string
nullable: true
title: Processing Memory Id
description: ID of the processing memory related to this conversation
external_data:
type: object
nullable: true
title: External Data
description: External data associated with this conversation
title: ConversationItem
description: Conversation item model for API responses
MemoriesResponse:
type: object
required:
- memories
properties:
memories:
type: array
items:
$ref: "#/components/schemas/MemoryItem"
description: List of user memories (facts)
title: MemoriesResponse
MemoryItem:
type: object
required:
- content
- id
- uid
- created_at
- updated_at
properties:
id:
type: string
title: Id
description: Unique identifier for the memory
content:
type: string
title: Content
description: The content of the fact
category:
$ref: "#/components/schemas/FactCategory"
description: The category of the fact
default: other
visibility:
type: string
title: Visibility
description: Visibility setting of the memory
default: public
tags:
type: array
items:
type: string
title: Tags
description: Tags associated with the memory
default: []
uid:
type: string
title: Uid
description: User ID who owns this memory
created_at:
type: string
format: date-time
title: Created At
description: When the memory was created
updated_at:
type: string
format: date-time
title: Updated At
description: When the memory was last updated
memory_id:
type: string
nullable: true
title: Memory Id
description: ID of the original memory this fact was extracted from
memory_category:
$ref: "#/components/schemas/CategoryEnum"
nullable: true
description: Category of the original memory
reviewed:
type: boolean
title: Reviewed
description: Whether this memory has been reviewed
default: false
user_review:
type: boolean
nullable: true
title: User Review
description: User's review status of this memory
manually_added:
type: boolean
title: Manually Added
description: Whether this memory was manually added
default: false
edited:
type: boolean
title: Edited
description: Whether this memory has been edited
default: false
deleted:
type: boolean
title: Deleted
description: Whether this memory has been deleted
default: false
scoring:
type: string
nullable: true
title: Scoring
description: Internal scoring value for ranking
app_id:
type: string
nullable: true
title: App Id
description: ID of the app that created this memory
title: MemoryItem
description: Memory item model that extends FactDB for API responses
FactCategory:
type: string
enum:
- interesting
- system
title: FactCategory
CategoryEnum:
type: string
enum:
- personal
- education
- health
- finance
- legal
- philosophy
- spiritual
- science
- entrepreneurship
- parenting
- romantic
- travel
- inspiration
- technology
- business
- social
- work
- sports
- politics
- literature
- history
- architecture
- music
- weather
- news
- entertainment
- psychology
- real
- design
- family
- economics
- environment
- other
title: CategoryEnum
HTTPValidationError:
type: object
properties:
detail:
type: array
items:
$ref: "#/components/schemas/ValidationError"
title: HTTPValidationError
SearchRequest:
type: object
required:
- query
properties:
query:
type: string
title: Query
page:
type: integer
title: Page
default: 1
per_page:
type: integer
title: Per Page
default: 10
include_discarded:
type: boolean
title: Include Discarded
default: true
start_date:
type: string
title: Start Date
end_date:
type: string
title: End Date
title: SearchRequest
ValidationError:
type: object
required:
- loc
- msg
- type
properties:
loc:
type: array
items:
anyOf:
- type: string
- type: integer
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
title: ValidationError