modus-sdk 0.2.0__py3-none-any.whl

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 (98) hide show
  1. modus/__init__.py +144 -0
  2. modus/_auth.py +111 -0
  3. modus/_chat.py +411 -0
  4. modus/_client.py +240 -0
  5. modus/_config.py +89 -0
  6. modus/_deprecation.py +29 -0
  7. modus/_exceptions.py +149 -0
  8. modus/_generated/__init__.py +341 -0
  9. modus/_generated/models.py +3182 -0
  10. modus/_generated/operations.py +891 -0
  11. modus/_http.py +471 -0
  12. modus/_openapi_invoke.py +137 -0
  13. modus/_pagination.py +175 -0
  14. modus/_query.py +38 -0
  15. modus/_retry.py +123 -0
  16. modus/_streaming.py +115 -0
  17. modus/_validation.py +61 -0
  18. modus/_version.py +24 -0
  19. modus/management/__init__.py +74 -0
  20. modus/management/_client.py +168 -0
  21. modus/management/resources/__init__.py +21 -0
  22. modus/management/resources/_access_config_write.py +31 -0
  23. modus/management/resources/context/__init__.py +0 -0
  24. modus/management/resources/context/_content_merge.py +128 -0
  25. modus/management/resources/context/context.py +362 -0
  26. modus/management/resources/context/custom_items.py +318 -0
  27. modus/management/resources/context/items.py +234 -0
  28. modus/management/resources/organization.py +52 -0
  29. modus/management/resources/scopes/__init__.py +0 -0
  30. modus/management/resources/scopes/_update_body.py +38 -0
  31. modus/management/resources/scopes/conversations.py +177 -0
  32. modus/management/resources/scopes/evaluations.py +142 -0
  33. modus/management/resources/scopes/memories.py +273 -0
  34. modus/management/resources/scopes/scopes.py +764 -0
  35. modus/management/resources/scopes/supervision.py +85 -0
  36. modus/management/resources/usage.py +92 -0
  37. modus/management/resources/users.py +56 -0
  38. modus/management/resources/workflows/__init__.py +0 -0
  39. modus/management/resources/workflows/_update_body.py +29 -0
  40. modus/management/resources/workflows/interfaces.py +136 -0
  41. modus/management/resources/workflows/workflows.py +647 -0
  42. modus/management/types/__init__.py +57 -0
  43. modus/management/types/_guardrails_access.py +33 -0
  44. modus/management/types/_serialize.py +52 -0
  45. modus/management/types/agent_selection.py +66 -0
  46. modus/management/types/agents.py +5 -0
  47. modus/management/types/context.py +25 -0
  48. modus/management/types/conversations.py +5 -0
  49. modus/management/types/evaluations.py +25 -0
  50. modus/management/types/json_blob.py +51 -0
  51. modus/management/types/memories.py +69 -0
  52. modus/management/types/ownership.py +9 -0
  53. modus/management/types/skills.py +5 -0
  54. modus/management/types/toolset.py +236 -0
  55. modus/management/types/triggers.py +284 -0
  56. modus/management/types/usage.py +13 -0
  57. modus/management/types/workflow.py +45 -0
  58. modus/py.typed +0 -0
  59. modus/resources/__init__.py +21 -0
  60. modus/resources/connections/__init__.py +3 -0
  61. modus/resources/connections/connections.py +189 -0
  62. modus/resources/context/__init__.py +3 -0
  63. modus/resources/context/context.py +48 -0
  64. modus/resources/context/items.py +410 -0
  65. modus/resources/modus/__init__.py +3 -0
  66. modus/resources/modus/conversations.py +144 -0
  67. modus/resources/modus/modus.py +138 -0
  68. modus/resources/scopes/__init__.py +3 -0
  69. modus/resources/scopes/conversations.py +213 -0
  70. modus/resources/scopes/scopes.py +431 -0
  71. modus/resources/suggestions/__init__.py +3 -0
  72. modus/resources/suggestions/suggestions.py +207 -0
  73. modus/resources/workflows/__init__.py +15 -0
  74. modus/resources/workflows/runs.py +833 -0
  75. modus/resources/workflows/workflow_actions.py +122 -0
  76. modus/resources/workflows/workflows.py +358 -0
  77. modus/types/__init__.py +80 -0
  78. modus/types/agent_runs.py +70 -0
  79. modus/types/agents.py +17 -0
  80. modus/types/chat.py +9 -0
  81. modus/types/compose.py +21 -0
  82. modus/types/connections.py +9 -0
  83. modus/types/context.py +28 -0
  84. modus/types/context_accessors.py +89 -0
  85. modus/types/context_compose.py +18 -0
  86. modus/types/context_values.py +21 -0
  87. modus/types/conversations.py +30 -0
  88. modus/types/json_blob.py +24 -0
  89. modus/types/pagination.py +142 -0
  90. modus/types/runs.py +71 -0
  91. modus/types/skills.py +16 -0
  92. modus/types/suggestions.py +16 -0
  93. modus/types/tool_calls.py +34 -0
  94. modus/types/views.py +6 -0
  95. modus_sdk-0.2.0.dist-info/METADATA +225 -0
  96. modus_sdk-0.2.0.dist-info/RECORD +98 -0
  97. modus_sdk-0.2.0.dist-info/WHEEL +4 -0
  98. modus_sdk-0.2.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,891 @@
1
+ """Auto-generated operation registry. Do not edit by hand."""
2
+ from __future__ import annotations
3
+
4
+ from typing import Literal, Optional, Tuple, TypedDict
5
+
6
+ OperationMethod = Literal["GET", "POST", "PUT", "PATCH", "DELETE"]
7
+
8
+
9
+ class OperationSpec(TypedDict):
10
+ method: OperationMethod
11
+ path: str
12
+ service: str
13
+ server_url: Optional[str]
14
+ path_params: Tuple[str, ...]
15
+ query_params: Tuple[str, ...]
16
+ request_schema: Optional[str]
17
+ response_schema: Optional[str]
18
+
19
+
20
+ OPERATIONS: dict[str, OperationSpec] = {
21
+ "ConnectionsController_list": {
22
+ "method": "GET",
23
+ "path": '/api/v1/connections',
24
+ "service": 'modus-api',
25
+ "server_url": 'https://api.modus.com',
26
+ "path_params": (),
27
+ "query_params": ('pageToken', 'pageSize', 'type'),
28
+ "request_schema": None,
29
+ "response_schema": 'ListConnectionsResponseDto',
30
+ },
31
+ "ContextCreatorsController_createLink": {
32
+ "method": "POST",
33
+ "path": '/api/v1/context/links',
34
+ "service": 'modus-api',
35
+ "server_url": 'https://api.modus.com',
36
+ "path_params": (),
37
+ "query_params": (),
38
+ "request_schema": 'CreateLinkDto',
39
+ "response_schema": 'CreatedContextItemResponseDto',
40
+ },
41
+ "ContextCreatorsController_createNote": {
42
+ "method": "POST",
43
+ "path": '/api/v1/context/notes',
44
+ "service": 'modus-api',
45
+ "server_url": 'https://api.modus.com',
46
+ "path_params": (),
47
+ "query_params": (),
48
+ "request_schema": 'CreateNoteDto',
49
+ "response_schema": 'CreatedContextItemResponseDto',
50
+ },
51
+ "ContextCreatorsController_createSavedQuery": {
52
+ "method": "POST",
53
+ "path": '/api/v1/context/saved-queries',
54
+ "service": 'modus-api',
55
+ "server_url": 'https://api.modus.com',
56
+ "path_params": (),
57
+ "query_params": (),
58
+ "request_schema": 'CreateSavedQueryDto',
59
+ "response_schema": 'CreatedContextItemResponseDto',
60
+ },
61
+ "ContextItemsController_delete": {
62
+ "method": "DELETE",
63
+ "path": '/api/v1/context/items/{uid}',
64
+ "service": 'modus-api',
65
+ "server_url": 'https://api.modus.com',
66
+ "path_params": ('uid',),
67
+ "query_params": (),
68
+ "request_schema": None,
69
+ "response_schema": 'DeleteContextItemResponseDto',
70
+ },
71
+ "ContextItemsController_get": {
72
+ "method": "GET",
73
+ "path": '/api/v1/context/items/{uid}',
74
+ "service": 'modus-api',
75
+ "server_url": 'https://api.modus.com',
76
+ "path_params": ('uid',),
77
+ "query_params": (),
78
+ "request_schema": None,
79
+ "response_schema": 'ContextItemDto',
80
+ },
81
+ "ContextItemsController_list": {
82
+ "method": "GET",
83
+ "path": '/api/v1/context/items',
84
+ "service": 'modus-api',
85
+ "server_url": 'https://api.modus.com',
86
+ "path_params": (),
87
+ "query_params": ('pageToken', 'pageSize', 'contextTypes', 'verificationStatuses', 'searchQuery', 'topics'),
88
+ "request_schema": None,
89
+ "response_schema": 'ListContextItemsResponseDto',
90
+ },
91
+ "ContextItemsController_listValues": {
92
+ "method": "GET",
93
+ "path": '/api/v1/context/items/{uid}/values',
94
+ "service": 'modus-api',
95
+ "server_url": 'https://api.modus.com',
96
+ "path_params": ('uid',),
97
+ "query_params": ('contextType', 'contentKeyPath', 'pageSize', 'offset', 'pageToken', 'searchQuery', 'dataPathPrefix'),
98
+ "request_schema": None,
99
+ "response_schema": 'ListContextItemValuesResponseDto',
100
+ },
101
+ "ContextItemsController_lookup": {
102
+ "method": "POST",
103
+ "path": '/api/v1/context/items/lookup',
104
+ "service": 'modus-api',
105
+ "server_url": 'https://api.modus.com',
106
+ "path_params": (),
107
+ "query_params": (),
108
+ "request_schema": 'LookupContextItemDto',
109
+ "response_schema": 'LookupContextItemResponseDto',
110
+ },
111
+ "ContextItemsController_update": {
112
+ "method": "PATCH",
113
+ "path": '/api/v1/context/items/{uid}',
114
+ "service": 'modus-api',
115
+ "server_url": 'https://api.modus.com',
116
+ "path_params": ('uid',),
117
+ "query_params": ('updateMask',),
118
+ "request_schema": 'UpdateContextItemDto',
119
+ "response_schema": None,
120
+ },
121
+ "CustomContextItemsController_batchCreate": {
122
+ "method": "POST",
123
+ "path": '/api/v1/context/custom-items/batch',
124
+ "service": 'modus-api',
125
+ "server_url": 'https://api.modus.com',
126
+ "path_params": (),
127
+ "query_params": (),
128
+ "request_schema": 'BatchCreateCustomContextItemsDto',
129
+ "response_schema": 'BatchCreateCustomContextItemsResponseDto',
130
+ },
131
+ "CustomContextItemsController_create": {
132
+ "method": "POST",
133
+ "path": '/api/v1/context/custom-items',
134
+ "service": 'modus-api',
135
+ "server_url": 'https://api.modus.com',
136
+ "path_params": (),
137
+ "query_params": (),
138
+ "request_schema": 'CreateCustomContextItemDto',
139
+ "response_schema": 'CreatedCustomContextItemResponseDto',
140
+ },
141
+ "CustomContextItemsController_delete": {
142
+ "method": "DELETE",
143
+ "path": '/api/v1/context/custom-items/{uid}',
144
+ "service": 'modus-api',
145
+ "server_url": 'https://api.modus.com',
146
+ "path_params": ('uid',),
147
+ "query_params": (),
148
+ "request_schema": None,
149
+ "response_schema": 'DeleteContextItemResponseDto',
150
+ },
151
+ "CustomContextItemsController_get": {
152
+ "method": "GET",
153
+ "path": '/api/v1/context/custom-items/{uid}',
154
+ "service": 'modus-api',
155
+ "server_url": 'https://api.modus.com',
156
+ "path_params": ('uid',),
157
+ "query_params": (),
158
+ "request_schema": None,
159
+ "response_schema": 'ContextItemDto',
160
+ },
161
+ "CustomContextItemsController_list": {
162
+ "method": "GET",
163
+ "path": '/api/v1/context/custom-items',
164
+ "service": 'modus-api',
165
+ "server_url": 'https://api.modus.com',
166
+ "path_params": (),
167
+ "query_params": ('pageToken', 'pageSize', 'contextTypes', 'verificationStatuses', 'searchQuery', 'topics'),
168
+ "request_schema": None,
169
+ "response_schema": 'ListCustomContextItemsResponseDto',
170
+ },
171
+ "CustomContextItemsController_update": {
172
+ "method": "PATCH",
173
+ "path": '/api/v1/context/custom-items/{uid}',
174
+ "service": 'modus-api',
175
+ "server_url": 'https://api.modus.com',
176
+ "path_params": ('uid',),
177
+ "query_params": (),
178
+ "request_schema": 'UpdateCustomContextItemDto',
179
+ "response_schema": None,
180
+ },
181
+ "EvaluationsController_getConfig": {
182
+ "method": "GET",
183
+ "path": '/api/v1/scopes/{id}/evaluations/config',
184
+ "service": 'modus-api',
185
+ "server_url": 'https://api.modus.com',
186
+ "path_params": ('id',),
187
+ "query_params": (),
188
+ "request_schema": None,
189
+ "response_schema": 'EvaluationConfigDto',
190
+ },
191
+ "EvaluationsController_getRun": {
192
+ "method": "GET",
193
+ "path": '/api/v1/scopes/{id}/evaluations/runs/{runId}',
194
+ "service": 'modus-api',
195
+ "server_url": 'https://api.modus.com',
196
+ "path_params": ('id', 'runId'),
197
+ "query_params": (),
198
+ "request_schema": None,
199
+ "response_schema": 'EvaluationRunWithResultsDto',
200
+ },
201
+ "EvaluationsController_listRuns": {
202
+ "method": "GET",
203
+ "path": '/api/v1/scopes/{id}/evaluations/runs',
204
+ "service": 'modus-api',
205
+ "server_url": 'https://api.modus.com',
206
+ "path_params": ('id',),
207
+ "query_params": ('pageSize', 'pageToken'),
208
+ "request_schema": None,
209
+ "response_schema": 'ListEvaluationRunsResponseDto',
210
+ },
211
+ "EvaluationsController_triggerRun": {
212
+ "method": "POST",
213
+ "path": '/api/v1/scopes/{id}/evaluations/runs',
214
+ "service": 'modus-api',
215
+ "server_url": 'https://api.modus.com',
216
+ "path_params": ('id',),
217
+ "query_params": (),
218
+ "request_schema": None,
219
+ "response_schema": 'TriggerEvaluationRunResponseDto',
220
+ },
221
+ "EvaluationsController_updateConfig": {
222
+ "method": "PUT",
223
+ "path": '/api/v1/scopes/{id}/evaluations/config',
224
+ "service": 'modus-api',
225
+ "server_url": 'https://api.modus.com',
226
+ "path_params": ('id',),
227
+ "query_params": (),
228
+ "request_schema": 'UpdateEvaluationConfigDto',
229
+ "response_schema": 'EvaluationConfigDto',
230
+ },
231
+ "MemberGroupsController_list": {
232
+ "method": "GET",
233
+ "path": '/api/v1/users/member-groups',
234
+ "service": 'modus-api',
235
+ "server_url": 'https://api.modus.com',
236
+ "path_params": (),
237
+ "query_params": ('pageSize', 'pageToken'),
238
+ "request_schema": None,
239
+ "response_schema": 'ListMemberGroupsResponseDto',
240
+ },
241
+ "ModusChatController_chat": {
242
+ "method": "POST",
243
+ "path": '/api/v1/modus/chat',
244
+ "service": 'modus-api',
245
+ "server_url": 'https://api.modus.com',
246
+ "path_params": (),
247
+ "query_params": (),
248
+ "request_schema": 'ModusChatRequestDto',
249
+ "response_schema": 'ModusChatResponseDto',
250
+ },
251
+ "ModusChatController_chatContinue": {
252
+ "method": "POST",
253
+ "path": '/api/v1/modus/conversations/{threadId}/chat',
254
+ "service": 'modus-api',
255
+ "server_url": 'https://api.modus.com',
256
+ "path_params": ('threadId',),
257
+ "query_params": (),
258
+ "request_schema": 'ModusChatRequestDto',
259
+ "response_schema": 'ModusChatResponseDto',
260
+ },
261
+ "ModusContextController_compose": {
262
+ "method": "POST",
263
+ "path": '/api/v1/modus/context',
264
+ "service": 'modus-api',
265
+ "server_url": 'https://api.modus.com',
266
+ "path_params": (),
267
+ "query_params": (),
268
+ "request_schema": 'ModusContextRequestDto',
269
+ "response_schema": 'ModusContextResponseDto',
270
+ },
271
+ "ModusConversationsController_get": {
272
+ "method": "GET",
273
+ "path": '/api/v1/modus/conversations/{threadId}',
274
+ "service": 'modus-api',
275
+ "server_url": 'https://api.modus.com',
276
+ "path_params": ('threadId',),
277
+ "query_params": (),
278
+ "request_schema": None,
279
+ "response_schema": 'ConversationDto',
280
+ },
281
+ "ModusConversationsController_list": {
282
+ "method": "GET",
283
+ "path": '/api/v1/modus/conversations',
284
+ "service": 'modus-api',
285
+ "server_url": 'https://api.modus.com',
286
+ "path_params": (),
287
+ "query_params": ('pageToken', 'page', 'pageSize', 'userId', 'toolName', 'timeframe', 'includeTools', 'kind'),
288
+ "request_schema": None,
289
+ "response_schema": 'ListConversationsResponseDto',
290
+ },
291
+ "ModusRunsController_create": {
292
+ "method": "POST",
293
+ "path": '/agent/v1/modus/runs',
294
+ "service": 'agent-service',
295
+ "server_url": 'https://agent.modus.com',
296
+ "path_params": (),
297
+ "query_params": (),
298
+ "request_schema": 'ModusRunDto',
299
+ "response_schema": None,
300
+ },
301
+ "OrgMembersController_list": {
302
+ "method": "GET",
303
+ "path": '/api/v1/users/org-members',
304
+ "service": 'modus-api',
305
+ "server_url": 'https://api.modus.com',
306
+ "path_params": (),
307
+ "query_params": ('pageSize', 'pageToken'),
308
+ "request_schema": None,
309
+ "response_schema": 'ListOrgMembersResponseDto',
310
+ },
311
+ "OrganizationController_deleteOrganization": {
312
+ "method": "DELETE",
313
+ "path": '/api/v1/users/organization',
314
+ "service": 'modus-api',
315
+ "server_url": 'https://api.modus.com',
316
+ "path_params": (),
317
+ "query_params": (),
318
+ "request_schema": None,
319
+ "response_schema": None,
320
+ },
321
+ "ResumeRunsController_create": {
322
+ "method": "POST",
323
+ "path": '/agent/v1/runs/{runId}/resume',
324
+ "service": 'agent-service',
325
+ "server_url": 'https://agent.modus.com',
326
+ "path_params": ('runId',),
327
+ "query_params": (),
328
+ "request_schema": 'ResumeRunDto',
329
+ "response_schema": None,
330
+ },
331
+ "RunLifecycleController_active": {
332
+ "method": "GET",
333
+ "path": '/agent/v1/runs/active',
334
+ "service": 'agent-service',
335
+ "server_url": 'https://agent.modus.com',
336
+ "path_params": (),
337
+ "query_params": ('pageToken', 'pageSize'),
338
+ "request_schema": None,
339
+ "response_schema": 'ActiveRunsResponseDto',
340
+ },
341
+ "RunLifecycleController_activeBySession": {
342
+ "method": "POST",
343
+ "path": '/agent/v1/runs/active-by-session',
344
+ "service": 'agent-service',
345
+ "server_url": 'https://agent.modus.com',
346
+ "path_params": (),
347
+ "query_params": (),
348
+ "request_schema": 'ActiveRunsBySessionDto',
349
+ "response_schema": 'ActiveRunsBySessionResponseDto',
350
+ },
351
+ "RunLifecycleController_cancel": {
352
+ "method": "POST",
353
+ "path": '/agent/v1/runs/{runId}/cancel',
354
+ "service": 'agent-service',
355
+ "server_url": 'https://agent.modus.com',
356
+ "path_params": ('runId',),
357
+ "query_params": (),
358
+ "request_schema": 'CancelRunDto',
359
+ "response_schema": None,
360
+ },
361
+ "RunLifecycleController_editQueued": {
362
+ "method": "POST",
363
+ "path": '/agent/v1/runs/{runId}/queue-edit',
364
+ "service": 'agent-service',
365
+ "server_url": 'https://agent.modus.com',
366
+ "path_params": ('runId',),
367
+ "query_params": (),
368
+ "request_schema": 'EditQueuedRunDto',
369
+ "response_schema": None,
370
+ },
371
+ "RunLifecycleController_events": {
372
+ "method": "GET",
373
+ "path": '/agent/v1/runs/{runId}/events',
374
+ "service": 'agent-service',
375
+ "server_url": 'https://agent.modus.com',
376
+ "path_params": ('runId',),
377
+ "query_params": (),
378
+ "request_schema": None,
379
+ "response_schema": None,
380
+ },
381
+ "RunLifecycleController_interrupt": {
382
+ "method": "POST",
383
+ "path": '/agent/v1/runs/{runId}/interrupt',
384
+ "service": 'agent-service',
385
+ "server_url": 'https://agent.modus.com',
386
+ "path_params": ('runId',),
387
+ "query_params": (),
388
+ "request_schema": 'InterruptRunDto',
389
+ "response_schema": None,
390
+ },
391
+ "RunLifecycleController_stream": {
392
+ "method": "GET",
393
+ "path": '/agent/v1/runs/{runId}/stream',
394
+ "service": 'agent-service',
395
+ "server_url": 'https://agent.modus.com',
396
+ "path_params": ('runId',),
397
+ "query_params": (),
398
+ "request_schema": None,
399
+ "response_schema": None,
400
+ },
401
+ "ScopeChatController_chat": {
402
+ "method": "POST",
403
+ "path": '/api/v1/scopes/{id}/chat',
404
+ "service": 'modus-api',
405
+ "server_url": 'https://api.modus.com',
406
+ "path_params": ('id',),
407
+ "query_params": (),
408
+ "request_schema": 'SkillChatRequestDto',
409
+ "response_schema": 'SkillChatResponseDto',
410
+ },
411
+ "ScopeChatController_chatContinue": {
412
+ "method": "POST",
413
+ "path": '/api/v1/scopes/{id}/conversations/{threadId}/chat',
414
+ "service": 'modus-api',
415
+ "server_url": 'https://api.modus.com',
416
+ "path_params": ('id', 'threadId'),
417
+ "query_params": (),
418
+ "request_schema": 'SkillChatRequestDto',
419
+ "response_schema": 'SkillChatResponseDto',
420
+ },
421
+ "ScopeContextController_compose": {
422
+ "method": "POST",
423
+ "path": '/api/v1/scopes/{id}/context',
424
+ "service": 'modus-api',
425
+ "server_url": 'https://api.modus.com',
426
+ "path_params": ('id',),
427
+ "query_params": (),
428
+ "request_schema": 'ComposeSkillContextRequestDto',
429
+ "response_schema": 'ComposeSkillContextResponseDto',
430
+ },
431
+ "ScopeConversationsController_get": {
432
+ "method": "GET",
433
+ "path": '/api/v1/scopes/{id}/conversations/{threadId}',
434
+ "service": 'modus-api',
435
+ "server_url": 'https://api.modus.com',
436
+ "path_params": ('id', 'threadId'),
437
+ "query_params": ('messageLimit', 'beforeMessageIndex'),
438
+ "request_schema": None,
439
+ "response_schema": 'ConversationDto',
440
+ },
441
+ "ScopeConversationsController_list": {
442
+ "method": "GET",
443
+ "path": '/api/v1/scopes/{id}/conversations',
444
+ "service": 'modus-api',
445
+ "server_url": 'https://api.modus.com',
446
+ "path_params": ('id',),
447
+ "query_params": ('pageToken', 'page', 'pageSize', 'userId', 'toolName', 'timeframe', 'includeTools'),
448
+ "request_schema": None,
449
+ "response_schema": 'ListConversationsResponseDto',
450
+ },
451
+ "ScopeMemoriesController_delete": {
452
+ "method": "DELETE",
453
+ "path": '/api/v1/scopes/{id}/memories/{memoryId}',
454
+ "service": 'modus-api',
455
+ "server_url": 'https://api.modus.com',
456
+ "path_params": ('id', 'memoryId'),
457
+ "query_params": (),
458
+ "request_schema": None,
459
+ "response_schema": None,
460
+ },
461
+ "ScopeMemoriesController_list": {
462
+ "method": "GET",
463
+ "path": '/api/v1/scopes/{id}/memories',
464
+ "service": 'modus-api',
465
+ "server_url": 'https://api.modus.com',
466
+ "path_params": ('id',),
467
+ "query_params": ('pageToken', 'pageSize', 'userId', 'limit'),
468
+ "request_schema": None,
469
+ "response_schema": 'ListMemoriesResponseDto',
470
+ },
471
+ "ScopeMemoriesController_search": {
472
+ "method": "POST",
473
+ "path": '/api/v1/scopes/{id}/memories/search',
474
+ "service": 'modus-api',
475
+ "server_url": 'https://api.modus.com',
476
+ "path_params": ('id',),
477
+ "query_params": (),
478
+ "request_schema": 'SearchMemoriesRequestDto',
479
+ "response_schema": 'ListMemoriesResponseDto',
480
+ },
481
+ "ScopeMemoriesController_update": {
482
+ "method": "PATCH",
483
+ "path": '/api/v1/scopes/{id}/memories/{memoryId}',
484
+ "service": 'modus-api',
485
+ "server_url": 'https://api.modus.com',
486
+ "path_params": ('id', 'memoryId'),
487
+ "query_params": ('updateMask',),
488
+ "request_schema": 'UpdateMemoryRequestDto',
489
+ "response_schema": None,
490
+ },
491
+ "ScopeRunsController_create": {
492
+ "method": "POST",
493
+ "path": '/agent/v1/scopes/{id}/runs',
494
+ "service": 'agent-service',
495
+ "server_url": 'https://agent.modus.com',
496
+ "path_params": ('id',),
497
+ "query_params": (),
498
+ "request_schema": 'SkillRunDto',
499
+ "response_schema": None,
500
+ },
501
+ "ScopeSupervisionController_get": {
502
+ "method": "GET",
503
+ "path": '/api/v1/scopes/{id}/supervision',
504
+ "service": 'modus-api',
505
+ "server_url": 'https://api.modus.com',
506
+ "path_params": ('id',),
507
+ "query_params": ('view',),
508
+ "request_schema": None,
509
+ "response_schema": 'SupervisionDto',
510
+ },
511
+ "ScopeSupervisionController_set": {
512
+ "method": "PUT",
513
+ "path": '/api/v1/scopes/{id}/supervision',
514
+ "service": 'modus-api',
515
+ "server_url": 'https://api.modus.com',
516
+ "path_params": ('id',),
517
+ "query_params": (),
518
+ "request_schema": 'SetSupervisionRequestDto',
519
+ "response_schema": 'SupervisionDto',
520
+ },
521
+ "ScopeSupervisionController_setActive": {
522
+ "method": "PUT",
523
+ "path": '/api/v1/scopes/{id}/supervision/active',
524
+ "service": 'modus-api',
525
+ "server_url": 'https://api.modus.com',
526
+ "path_params": ('id',),
527
+ "query_params": (),
528
+ "request_schema": 'SetSupervisionRequestDto',
529
+ "response_schema": 'SupervisionDto',
530
+ },
531
+ "ScopesController_acceptOwnershipTransfer": {
532
+ "method": "POST",
533
+ "path": '/api/v1/scopes/{id}/transfer-ownership/accept',
534
+ "service": 'modus-api',
535
+ "server_url": 'https://api.modus.com',
536
+ "path_params": ('id',),
537
+ "query_params": (),
538
+ "request_schema": None,
539
+ "response_schema": 'SkillDto',
540
+ },
541
+ "ScopesController_cancelOwnershipTransfer": {
542
+ "method": "DELETE",
543
+ "path": '/api/v1/scopes/{id}/transfer-ownership',
544
+ "service": 'modus-api',
545
+ "server_url": 'https://api.modus.com',
546
+ "path_params": ('id',),
547
+ "query_params": (),
548
+ "request_schema": None,
549
+ "response_schema": 'SkillDto',
550
+ },
551
+ "ScopesController_create": {
552
+ "method": "POST",
553
+ "path": '/api/v1/scopes',
554
+ "service": 'modus-api',
555
+ "server_url": 'https://api.modus.com',
556
+ "path_params": (),
557
+ "query_params": (),
558
+ "request_schema": 'CreateSkillDto',
559
+ "response_schema": 'SkillDto',
560
+ },
561
+ "ScopesController_delete": {
562
+ "method": "DELETE",
563
+ "path": '/api/v1/scopes/{id}',
564
+ "service": 'modus-api',
565
+ "server_url": 'https://api.modus.com',
566
+ "path_params": ('id',),
567
+ "query_params": (),
568
+ "request_schema": None,
569
+ "response_schema": None,
570
+ },
571
+ "ScopesController_deploy": {
572
+ "method": "POST",
573
+ "path": '/api/v1/scopes/{id}/deploy',
574
+ "service": 'modus-api',
575
+ "server_url": 'https://api.modus.com',
576
+ "path_params": ('id',),
577
+ "query_params": (),
578
+ "request_schema": 'DeploySkillDto',
579
+ "response_schema": 'DeployResponseDto',
580
+ },
581
+ "ScopesController_get": {
582
+ "method": "GET",
583
+ "path": '/api/v1/scopes/{id}',
584
+ "service": 'modus-api',
585
+ "server_url": 'https://api.modus.com',
586
+ "path_params": ('id',),
587
+ "query_params": ('view',),
588
+ "request_schema": None,
589
+ "response_schema": 'SkillDto',
590
+ },
591
+ "ScopesController_getVariation": {
592
+ "method": "GET",
593
+ "path": '/api/v1/scopes/{id}/variations/{variationUid}',
594
+ "service": 'modus-api',
595
+ "server_url": 'https://api.modus.com',
596
+ "path_params": ('id', 'variationUid'),
597
+ "query_params": (),
598
+ "request_schema": None,
599
+ "response_schema": 'SkillDto',
600
+ },
601
+ "ScopesController_list": {
602
+ "method": "GET",
603
+ "path": '/api/v1/scopes',
604
+ "service": 'modus-api',
605
+ "server_url": 'https://api.modus.com',
606
+ "path_params": (),
607
+ "query_params": ('pageToken', 'pageSize', 'view', 'search', 'managerId', 'includeVariation'),
608
+ "request_schema": None,
609
+ "response_schema": 'ListSkillsResponseDto',
610
+ },
611
+ "ScopesController_patchMcpConfig": {
612
+ "method": "PATCH",
613
+ "path": '/api/v1/scopes/{id}/mcp-config',
614
+ "service": 'modus-api',
615
+ "server_url": 'https://api.modus.com',
616
+ "path_params": ('id',),
617
+ "query_params": (),
618
+ "request_schema": 'PatchSkillMcpConfigDto',
619
+ "response_schema": 'PatchSkillMcpConfigResponseDto',
620
+ },
621
+ "ScopesController_requestOwnershipTransfer": {
622
+ "method": "POST",
623
+ "path": '/api/v1/scopes/{id}/transfer-ownership',
624
+ "service": 'modus-api',
625
+ "server_url": 'https://api.modus.com',
626
+ "path_params": ('id',),
627
+ "query_params": (),
628
+ "request_schema": 'TransferOwnershipDto',
629
+ "response_schema": 'SkillDto',
630
+ },
631
+ "ScopesController_restore": {
632
+ "method": "POST",
633
+ "path": '/api/v1/scopes/{id}/restore',
634
+ "service": 'modus-api',
635
+ "server_url": 'https://api.modus.com',
636
+ "path_params": ('id',),
637
+ "query_params": (),
638
+ "request_schema": None,
639
+ "response_schema": 'SkillDto',
640
+ },
641
+ "ScopesController_update": {
642
+ "method": "PATCH",
643
+ "path": '/api/v1/scopes/{id}',
644
+ "service": 'modus-api',
645
+ "server_url": 'https://api.modus.com',
646
+ "path_params": ('id',),
647
+ "query_params": ('updateMask',),
648
+ "request_schema": 'UpdateSkillDto',
649
+ "response_schema": 'SkillDto',
650
+ },
651
+ "SuggestionsController_listApproved": {
652
+ "method": "GET",
653
+ "path": '/api/v1/suggestions/questions',
654
+ "service": 'modus-api',
655
+ "server_url": 'https://api.modus.com',
656
+ "path_params": (),
657
+ "query_params": ('pageToken', 'pageSize', 'skill_id', 'skill_ids'),
658
+ "request_schema": None,
659
+ "response_schema": 'ListSuggestionQuestionsResponseDto',
660
+ },
661
+ "SuggestionsController_recordEvent": {
662
+ "method": "POST",
663
+ "path": '/api/v1/suggestions/questions/{id}/events',
664
+ "service": 'modus-api',
665
+ "server_url": 'https://api.modus.com',
666
+ "path_params": ('id',),
667
+ "query_params": (),
668
+ "request_schema": 'RecordSuggestionEventDto',
669
+ "response_schema": None,
670
+ },
671
+ "UsageController_list": {
672
+ "method": "GET",
673
+ "path": '/api/v1/usage',
674
+ "service": 'modus-api',
675
+ "server_url": 'https://api.modus.com',
676
+ "path_params": (),
677
+ "query_params": ('since', 'until', 'rollup', 'model', 'group_by', 'skill_id', 'agent_id', 'user_id', 'interface'),
678
+ "request_schema": None,
679
+ "response_schema": 'ListUsageResponseDto',
680
+ },
681
+ "WorkflowActionsController_cancel": {
682
+ "method": "POST",
683
+ "path": '/agent/v1/workflow-actions/{runId}/cancel',
684
+ "service": 'agent-service',
685
+ "server_url": 'https://agent.modus.com',
686
+ "path_params": ('runId',),
687
+ "query_params": (),
688
+ "request_schema": 'CancelRunDto',
689
+ "response_schema": None,
690
+ },
691
+ "WorkflowActionsController_execute": {
692
+ "method": "POST",
693
+ "path": '/agent/v1/workflow-actions',
694
+ "service": 'agent-service',
695
+ "server_url": 'https://agent.modus.com',
696
+ "path_params": (),
697
+ "query_params": (),
698
+ "request_schema": 'WorkflowActionDto',
699
+ "response_schema": None,
700
+ },
701
+ "WorkflowInterfacesController_add": {
702
+ "method": "POST",
703
+ "path": '/api/v1/workflows/{id}/interfaces',
704
+ "service": 'modus-api',
705
+ "server_url": 'https://api.modus.com',
706
+ "path_params": ('id',),
707
+ "query_params": (),
708
+ "request_schema": 'AddAgentInterfaceDto',
709
+ "response_schema": 'AgentInterfaceDto',
710
+ },
711
+ "WorkflowInterfacesController_delete": {
712
+ "method": "DELETE",
713
+ "path": '/api/v1/workflows/{id}/interfaces/{interfaceId}',
714
+ "service": 'modus-api',
715
+ "server_url": 'https://api.modus.com',
716
+ "path_params": ('id', 'interfaceId'),
717
+ "query_params": (),
718
+ "request_schema": None,
719
+ "response_schema": None,
720
+ },
721
+ "WorkflowInterfacesController_deleteAll": {
722
+ "method": "DELETE",
723
+ "path": '/api/v1/workflows/{id}/interfaces',
724
+ "service": 'modus-api',
725
+ "server_url": 'https://api.modus.com',
726
+ "path_params": ('id',),
727
+ "query_params": (),
728
+ "request_schema": None,
729
+ "response_schema": None,
730
+ },
731
+ "WorkflowInterfacesController_list": {
732
+ "method": "GET",
733
+ "path": '/api/v1/workflows/{id}/interfaces',
734
+ "service": 'modus-api',
735
+ "server_url": 'https://api.modus.com',
736
+ "path_params": ('id',),
737
+ "query_params": ('pageSize', 'pageToken'),
738
+ "request_schema": None,
739
+ "response_schema": 'ListAgentInterfacesResponseDto',
740
+ },
741
+ "WorkflowInterfacesController_update": {
742
+ "method": "PATCH",
743
+ "path": '/api/v1/workflows/{id}/interfaces/{interfaceId}',
744
+ "service": 'modus-api',
745
+ "server_url": 'https://api.modus.com',
746
+ "path_params": ('id', 'interfaceId'),
747
+ "query_params": ('updateMask',),
748
+ "request_schema": 'UpdateAgentInterfaceDto',
749
+ "response_schema": 'AgentInterfaceDto',
750
+ },
751
+ "WorkflowRunsController_create": {
752
+ "method": "POST",
753
+ "path": '/agent/v1/workflows/{id}/runs',
754
+ "service": 'agent-service',
755
+ "server_url": 'https://agent.modus.com',
756
+ "path_params": ('id',),
757
+ "query_params": (),
758
+ "request_schema": 'AgentRunDto',
759
+ "response_schema": None,
760
+ },
761
+ "WorkflowRunsController_get": {
762
+ "method": "GET",
763
+ "path": '/api/v1/workflows/{id}/runs/{runId}',
764
+ "service": 'modus-api',
765
+ "server_url": 'https://api.modus.com',
766
+ "path_params": ('id', 'runId'),
767
+ "query_params": ('temporalRunId',),
768
+ "request_schema": None,
769
+ "response_schema": 'GetAutomationRunResponseDto',
770
+ },
771
+ "WorkflowRunsController_list": {
772
+ "method": "GET",
773
+ "path": '/api/v1/workflows/{id}/runs',
774
+ "service": 'modus-api',
775
+ "server_url": 'https://api.modus.com',
776
+ "path_params": ('id',),
777
+ "query_params": ('status', 'timeframe', 'approvalScope', 'search', 'pageSize', 'pageToken'),
778
+ "request_schema": None,
779
+ "response_schema": 'ListAutomationRunsResponseDto',
780
+ },
781
+ "WorkflowsController_acceptOwnershipTransfer": {
782
+ "method": "POST",
783
+ "path": '/api/v1/workflows/{id}/transfer-ownership/accept',
784
+ "service": 'modus-api',
785
+ "server_url": 'https://api.modus.com',
786
+ "path_params": ('id',),
787
+ "query_params": (),
788
+ "request_schema": None,
789
+ "response_schema": 'AgentDto',
790
+ },
791
+ "WorkflowsController_cancelOwnershipTransfer": {
792
+ "method": "DELETE",
793
+ "path": '/api/v1/workflows/{id}/transfer-ownership',
794
+ "service": 'modus-api',
795
+ "server_url": 'https://api.modus.com',
796
+ "path_params": ('id',),
797
+ "query_params": (),
798
+ "request_schema": None,
799
+ "response_schema": 'AgentDto',
800
+ },
801
+ "WorkflowsController_create": {
802
+ "method": "POST",
803
+ "path": '/api/v1/workflows',
804
+ "service": 'modus-api',
805
+ "server_url": 'https://api.modus.com',
806
+ "path_params": (),
807
+ "query_params": (),
808
+ "request_schema": 'CreateAgentDto',
809
+ "response_schema": 'AgentDto',
810
+ },
811
+ "WorkflowsController_delete": {
812
+ "method": "DELETE",
813
+ "path": '/api/v1/workflows/{id}',
814
+ "service": 'modus-api',
815
+ "server_url": 'https://api.modus.com',
816
+ "path_params": ('id',),
817
+ "query_params": (),
818
+ "request_schema": None,
819
+ "response_schema": None,
820
+ },
821
+ "WorkflowsController_deploy": {
822
+ "method": "POST",
823
+ "path": '/api/v1/workflows/{id}/deploy',
824
+ "service": 'modus-api',
825
+ "server_url": 'https://api.modus.com',
826
+ "path_params": ('id',),
827
+ "query_params": (),
828
+ "request_schema": 'DeployAgentDto',
829
+ "response_schema": 'AgentDeployResponseDto',
830
+ },
831
+ "WorkflowsController_get": {
832
+ "method": "GET",
833
+ "path": '/api/v1/workflows/{id}',
834
+ "service": 'modus-api',
835
+ "server_url": 'https://api.modus.com',
836
+ "path_params": ('id',),
837
+ "query_params": ('view',),
838
+ "request_schema": None,
839
+ "response_schema": 'AgentDto',
840
+ },
841
+ "WorkflowsController_list": {
842
+ "method": "GET",
843
+ "path": '/api/v1/workflows',
844
+ "service": 'modus-api',
845
+ "server_url": 'https://api.modus.com',
846
+ "path_params": (),
847
+ "query_params": ('pageToken', 'pageSize', 'view', 'type', 'search', 'includeVariation'),
848
+ "request_schema": None,
849
+ "response_schema": 'ListAgentsResponseDto',
850
+ },
851
+ "WorkflowsController_requestOwnershipTransfer": {
852
+ "method": "POST",
853
+ "path": '/api/v1/workflows/{id}/transfer-ownership',
854
+ "service": 'modus-api',
855
+ "server_url": 'https://api.modus.com',
856
+ "path_params": ('id',),
857
+ "query_params": (),
858
+ "request_schema": 'TransferOwnershipDto',
859
+ "response_schema": 'AgentDto',
860
+ },
861
+ "WorkflowsController_restore": {
862
+ "method": "POST",
863
+ "path": '/api/v1/workflows/{id}/restore',
864
+ "service": 'modus-api',
865
+ "server_url": 'https://api.modus.com',
866
+ "path_params": ('id',),
867
+ "query_params": (),
868
+ "request_schema": None,
869
+ "response_schema": 'AgentDto',
870
+ },
871
+ "WorkflowsController_toggle": {
872
+ "method": "POST",
873
+ "path": '/api/v1/workflows/{id}/toggle',
874
+ "service": 'modus-api',
875
+ "server_url": 'https://api.modus.com',
876
+ "path_params": ('id',),
877
+ "query_params": (),
878
+ "request_schema": 'ToggleAgentDto',
879
+ "response_schema": 'AgentDto',
880
+ },
881
+ "WorkflowsController_update": {
882
+ "method": "PATCH",
883
+ "path": '/api/v1/workflows/{id}',
884
+ "service": 'modus-api',
885
+ "server_url": 'https://api.modus.com',
886
+ "path_params": ('id',),
887
+ "query_params": ('updateMask',),
888
+ "request_schema": 'UpdateAgentDto',
889
+ "response_schema": 'AgentDto',
890
+ },
891
+ }