rapida-python 0.1.17__py3-none-any.whl → 0.1.19__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 (57) hide show
  1. rapida/__init__.py +11 -248
  2. rapida/clients/__init__.py +21 -0
  3. rapida/clients/assistant.py +21 -0
  4. rapida/clients/call.py +21 -0
  5. rapida/clients/endpoint.py +21 -0
  6. rapida/clients/invoke.py +21 -0
  7. rapida/clients/protos/assistant_analysis_pb2.py +2 -2
  8. rapida/clients/protos/assistant_api_pb2.py +41 -70
  9. rapida/clients/protos/assistant_api_pb2.pyi +39 -104
  10. rapida/clients/protos/assistant_api_pb2_grpc.py +73 -29
  11. rapida/clients/protos/assistant_deployment_pb2.py +59 -35
  12. rapida/clients/protos/assistant_deployment_pb2.pyi +56 -38
  13. rapida/clients/protos/assistant_knowledge_pb2.py +2 -2
  14. rapida/clients/protos/assistant_provider_pb2.py +111 -0
  15. rapida/clients/protos/assistant_provider_pb2.pyi +241 -0
  16. rapida/clients/protos/assistant_provider_pb2_grpc.py +24 -0
  17. rapida/clients/protos/assistant_tool_pb2.py +2 -2
  18. rapida/clients/protos/assistant_webhook_pb2.py +2 -2
  19. rapida/clients/protos/audit_logging_api_pb2.py +2 -2
  20. rapida/clients/protos/common_pb2.py +127 -74
  21. rapida/clients/protos/common_pb2.pyi +230 -55
  22. rapida/clients/protos/connect_api_pb2.py +14 -30
  23. rapida/clients/protos/connect_api_pb2.pyi +8 -60
  24. rapida/clients/protos/connect_api_pb2_grpc.py +0 -86
  25. rapida/clients/protos/document_api_pb2.py +2 -2
  26. rapida/clients/protos/endpoint_api_pb2.py +63 -67
  27. rapida/clients/protos/endpoint_api_pb2.pyi +4 -8
  28. rapida/clients/protos/integration_api_pb2.py +24 -22
  29. rapida/clients/protos/integration_api_pb2_grpc.py +215 -14
  30. rapida/clients/protos/invoker_api_pb2.py +2 -2
  31. rapida/clients/protos/knowledge_api_pb2.py +59 -61
  32. rapida/clients/protos/knowledge_api_pb2.pyi +2 -4
  33. rapida/clients/protos/notification_api_pb2.py +49 -0
  34. rapida/clients/protos/notification_api_pb2.pyi +51 -0
  35. rapida/clients/protos/{provider_api_pb2_grpc.py → notification_api_pb2_grpc.py} +34 -34
  36. rapida/clients/protos/talk_api_pb2.py +32 -59
  37. rapida/clients/protos/talk_api_pb2.pyi +14 -103
  38. rapida/clients/protos/talk_api_pb2_grpc.py +89 -7
  39. rapida/clients/protos/vault_api_pb2.py +19 -33
  40. rapida/clients/protos/vault_api_pb2.pyi +10 -36
  41. rapida/clients/protos/vault_api_pb2_grpc.py +0 -86
  42. rapida/clients/protos/web_api_pb2.py +98 -102
  43. rapida/clients/protos/web_api_pb2.pyi +32 -34
  44. rapida/clients/protos/web_api_pb2_grpc.py +43 -0
  45. {rapida_python-0.1.17.dist-info → rapida_python-0.1.19.dist-info}/METADATA +1 -1
  46. rapida_python-0.1.19.dist-info/RECORD +76 -0
  47. {rapida_python-0.1.17.dist-info → rapida_python-0.1.19.dist-info}/WHEEL +1 -1
  48. rapida/clients/protos/marketplace_api_pb2.py +0 -48
  49. rapida/clients/protos/marketplace_api_pb2.pyi +0 -72
  50. rapida/clients/protos/marketplace_api_pb2_grpc.py +0 -97
  51. rapida/clients/protos/provider_api_pb2.py +0 -54
  52. rapida/clients/protos/provider_api_pb2.pyi +0 -71
  53. rapida/clients/protos/sendgrid_api_pb2.py +0 -51
  54. rapida/clients/protos/sendgrid_api_pb2.pyi +0 -70
  55. rapida/clients/protos/sendgrid_api_pb2_grpc.py +0 -183
  56. rapida_python-0.1.17.dist-info/RECORD +0 -79
  57. {rapida_python-0.1.17.dist-info → rapida_python-0.1.19.dist-info}/top_level.txt +0 -0
rapida/__init__.py CHANGED
@@ -65,140 +65,6 @@ from rapida.utils.rapida_header import (
65
65
  HEADER_LONGITUDE,
66
66
  )
67
67
 
68
- # from rapida.clients.document import IndexKnowledgeDocument
69
- # from rapida.clients.marketplace import GetAllDeployment
70
- # from rapida.clients.invoke import Invoke
71
- # from rapida.clients.auth import (
72
- # AuthenticateUser,
73
- # AuthorizeUser,
74
- # RegisterUser,
75
- # VerifyToken,
76
- # ForgotPassword,
77
- # CreatePassword,
78
- # GetUser,
79
- # UpdateUser,
80
- # GetAllUser,
81
- # Google,
82
- # Linkedin,
83
- # Github,
84
- # )
85
- # from rapida.clients.provider import GetAllProvider, GetAllToolProvider
86
- # from rapida.clients.index import (
87
- # WithPlatform,
88
- # WithAuthContext,
89
- # get_client_info,
90
- # WithClientContext,
91
- # )
92
- # from rapida.clients.connect import (
93
- # GeneralConnect,
94
- # KnowledgeConnect,
95
- # ActionConnect,
96
- # GetConnectorFiles,
97
- # )
98
- # from rapida.clients.organization import (
99
- # CreateOrganization,
100
- # UpdateOrganization,
101
- # GetOrganization,
102
- # )
103
- # from rapida.clients.assistant import (
104
- # GetAllAssistant,
105
- # UpdateAssistantVersion,
106
- # GetAllAssistantProviderModel,
107
- # GetAssistant,
108
- # CreateAssistantProviderModel,
109
- # CreateAssistant,
110
- # CreateAssistantTag,
111
- # UpdateAssistantDetail,
112
- # GetAssistantMessages,
113
- # GetMessages,
114
- # GetAllAssistantSession,
115
- # GetAllAssistantConversationMessage,
116
- # GetAllAssistantWebhook,
117
- # CreateWebhook,
118
- # UpdateWebhook,
119
- # GetAssistantWebhook,
120
- # DeleteAssistantWebhook,
121
- # GetAssistantConversation,
122
- # DeleteAssistant,
123
- # GetAllAssistantAnalysis,
124
- # CreateAnalysis,
125
- # UpdateAnalysis,
126
- # GetAssistantAnalysis,
127
- # DeleteAssistantAnalysis,
128
- # GetAllWebhookLog,
129
- # GetWebhookLog,
130
- # GetAllAssistantTool,
131
- # CreateAssistantTool,
132
- # UpdateAssistantTool,
133
- # GetAssistantTool,
134
- # DeleteAssistantTool,
135
- # GetAllAssistantKnowledge,
136
- # CreateAssistantKnowledge,
137
- # UpdateAssistantKnowledge,
138
- # GetAssistantKnowledge,
139
- # DeleteAssistantKnowledge,
140
- # )
141
- # from rapida.clients.deployment import (
142
- # CreateAssistantDebuggerDeployment,
143
- # GetAssistantDebuggerDeployment,
144
- # CreateAssistantApiDeployment,
145
- # GetAssistantApiDeployment,
146
- # CreateAssistantWebpluginDeployment,
147
- # GetAssistantWebpluginDeployment,
148
- # CreateAssistantPhoneDeployment,
149
- # GetAssistantPhoneDeployment,
150
- # CreateAssistantWhatsappDeployment,
151
- # GetAssistantWhatsappDeployment,
152
- # )
153
- # from rapida.clients.activity import GetActivities, GetActivity
154
- # from rapida.clients.endpoint import (
155
- # GetAllEndpoint,
156
- # UpdateEndpointVersion,
157
- # GetAllEndpointProviderModel,
158
- # GetEndpoint,
159
- # CreateEndpointProviderModel,
160
- # CreateEndpoint,
161
- # CreateEndpointTag,
162
- # UpdateEndpointDetail,
163
- # CreateEndpointRetryConfiguration,
164
- # CreateEndpointCacheConfiguration,
165
- # GetAllEndpointLog,
166
- # GetEndpointLog,
167
- # )
168
- # from rapida.clients.vault import (
169
- # CreateProviderKey,
170
- # DeleteProviderKey,
171
- # AllOrganizationCredential,
172
- # CreateToolCredential,
173
- # )
174
- # from rapida.clients.talk import (
175
- # AssistantTalk,
176
- # CreateMessageMetric,
177
- # CreateConversationMetric,
178
- # GetAllAssistantConversation,
179
- # )
180
- # from rapida.clients.knowledge import (
181
- # CreateKnowledge,
182
- # GetKnowledgeBase,
183
- # GetAllKnowledgeBases,
184
- # CreateKnowledgeDocument,
185
- # GetAllKnowledgeDocument,
186
- # GetAllKnowledgeDocumentSegment,
187
- # CreateKnowledgeTag,
188
- # UpdateKnowledgeDetail,
189
- # DeleteKnowledgeDocumentSegment,
190
- # UpdateKnowledgeDocumentSegment,
191
- # )
192
- # from rapida.clients.project import (
193
- # AddUsersToProject,
194
- # CreateProject,
195
- # UpdateProject,
196
- # GetAllProject,
197
- # GetProject,
198
- # DeleteProject,
199
- # GetAllProjectCredential,
200
- # CreateProjectCredential,
201
- # )
202
68
  from rapida.clients.call import create_phone_call, create_bulk_phone_call
203
69
  from rapida.clients.assistant import (
204
70
  get_assistant,
@@ -226,6 +92,7 @@ from rapida.clients.endpoint import (
226
92
 
227
93
  from rapida.clients.invoke import invoke
228
94
 
95
+
229
96
  # # Protobuf imports
230
97
  from rapida.clients.protos.assistant_knowledge_pb2 import (
231
98
  AssistantKnowledge,
@@ -398,6 +265,8 @@ from rapida.clients.protos.common_pb2 import (
398
265
  GetAllAssistantConversationResponse,
399
266
  GetAllConversationMessageRequest,
400
267
  GetAllConversationMessageResponse,
268
+ AssistantConversationMessageTextContent,
269
+ AssistantConversationMessageAudioContent,
401
270
  )
402
271
  from rapida.clients.protos.assistant_webhook_pb2 import (
403
272
  AssistantWebhook,
@@ -540,6 +409,8 @@ from rapida.clients.protos.assistant_api_pb2 import (
540
409
  GetAssistantConversationResponse,
541
410
  )
542
411
 
412
+ from rapida.clients.protos.talk_api_pb2_grpc import AgentKitStub, AgentKit, AgentKitServicer, add_AgentKitServicer_to_server
413
+
543
414
  __all__ = [
544
415
  "Any",
545
416
  "RapidaSource",
@@ -601,120 +472,6 @@ __all__ = [
601
472
  "invoke",
602
473
  "get_assistant_analysis",
603
474
  "get_all_assistant_analysis",
604
- # "IndexKnowledgeDocument",
605
- # "GetAllDeployment",
606
- # "Invoke",
607
- # "AuthenticateUser",
608
- # "AuthorizeUser",
609
- # "RegisterUser",
610
- # "VerifyToken",
611
- # "ForgotPassword",
612
- # "CreatePassword",
613
- # "GetUser",
614
- # "UpdateUser",
615
- # "GetAllUser",
616
- # "Google",
617
- # "Linkedin",
618
- # "Github",
619
- # "GetAllProvider",
620
- # "GetAllToolProvider",
621
- # "WithPlatform",
622
- # "WithAuthContext",
623
- # "get_client_info",
624
- # "WithClientContext",
625
- # "GeneralConnect",
626
- # "KnowledgeConnect",
627
- # "ActionConnect",
628
- # "GetConnectorFiles",
629
- # "CreateOrganization",
630
- # "UpdateOrganization",
631
- # "GetOrganization",
632
- # "GetAllAssistant",
633
- # "UpdateAssistantVersion",
634
- # "GetAllAssistantProviderModel",
635
- # "GetAssistant",
636
- # "CreateAssistantProviderModel",
637
- # "CreateAssistant",
638
- # "CreateAssistantTag",
639
- # "UpdateAssistantDetail",
640
- # "GetAssistantMessages",
641
- # "GetMessages",
642
- # "GetAllAssistantSession",
643
- # "GetAllAssistantConversationMessage",
644
- # "GetAllAssistantWebhook",
645
- # "CreateWebhook",
646
- # "UpdateWebhook",
647
- # "GetAssistantWebhook",
648
- # "DeleteAssistantWebhook",
649
- # "GetAssistantConversation",
650
- # "DeleteAssistant",
651
- # "GetAllAssistantAnalysis",
652
- # "CreateAnalysis",
653
- # "UpdateAnalysis",
654
- # "GetAssistantAnalysis",
655
- # "DeleteAssistantAnalysis",
656
- # "GetAllWebhookLog",
657
- # "GetWebhookLog",
658
- # "GetAllAssistantTool",
659
- # "CreateAssistantTool",
660
- # "UpdateAssistantTool",
661
- # "GetAssistantTool",
662
- # "DeleteAssistantTool",
663
- # "GetAllAssistantKnowledge",
664
- # "CreateAssistantKnowledge",
665
- # "UpdateAssistantKnowledge",
666
- # "GetAssistantKnowledge",
667
- # "DeleteAssistantKnowledge",
668
- # "CreateAssistantDebuggerDeployment",
669
- # "GetAssistantDebuggerDeployment",
670
- # "CreateAssistantApiDeployment",
671
- # "GetAssistantApiDeployment",
672
- # "CreateAssistantWebpluginDeployment",
673
- # "GetAssistantWebpluginDeployment",
674
- # "CreateAssistantPhoneDeployment",
675
- # "GetAssistantPhoneDeployment",
676
- # "CreateAssistantWhatsappDeployment",
677
- # "GetAssistantWhatsappDeployment",
678
- # "GetActivities",
679
- # "GetActivity",
680
- # "GetAllEndpoint",
681
- # "UpdateEndpointVersion",
682
- # "GetAllEndpointProviderModel",
683
- # "GetEndpoint",
684
- # "CreateEndpointProviderModel",
685
- # "CreateEndpoint",
686
- # "CreateEndpointTag",
687
- # "UpdateEndpointDetail",
688
- # "CreateEndpointRetryConfiguration",
689
- # "CreateEndpointCacheConfiguration",
690
- # "GetAllEndpointLog",
691
- # "GetEndpointLog",
692
- # "CreateProviderKey",
693
- # "DeleteProviderKey",
694
- # "AllOrganizationCredential",
695
- # "CreateToolCredential",
696
- # "AssistantTalk",
697
- # "CreateMessageMetric",
698
- # "CreateConversationMetric",
699
- # "GetAllAssistantConversation",
700
- # "CreateKnowledge",
701
- # "GetKnowledgeBase",
702
- # "GetAllKnowledgeBases",
703
- # "CreateKnowledgeDocument",
704
- # "GetAllKnowledgeDocument",
705
- # "GetAllKnowledgeDocumentSegment",
706
- # "CreateKnowledgeTag",
707
- # "UpdateKnowledgeDetail",
708
- # "DeleteKnowledgeDocumentSegment",
709
- # "UpdateKnowledgeDocumentSegment",
710
- # "AddUsersToProject",
711
- # "CreateProject",
712
- # "UpdateProject",
713
- # "GetAllProject",
714
- # "GetProject",
715
- # "DeleteProject",
716
- # "GetAllProjectCredential",
717
- # "CreateProjectCredential",
718
475
  "create_phone_call",
719
476
  "create_bulk_phone_call",
720
477
  # Protobuf classes
@@ -992,4 +749,10 @@ __all__ = [
992
749
  "UpdateAssistantDetailRequest",
993
750
  "GetAssistantConversationRequest",
994
751
  "GetAssistantConversationResponse",
752
+ "AssistantConversationMessageTextContent",
753
+ "AssistantConversationMessageAudioContent",
754
+ "AgentKitStub",
755
+ "AgentKit",
756
+ "AgentKitServicer",
757
+ "add_AgentKitServicer_to_server",
995
758
  ]
@@ -0,0 +1,21 @@
1
+ # Copyright (c) 2024. Rapida
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Prashant <prashant@rapida.ai>
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2024. Rapida
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Prashant <prashant@rapida.ai>
1
22
  from typing import Union
2
23
  from rapida.clients.protos.assistant_knowledge_pb2 import (
3
24
  GetAllAssistantKnowledgeRequest,
rapida/clients/call.py CHANGED
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2024. Rapida
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Prashant <prashant@rapida.ai>
1
22
  from typing import Union
2
23
  from rapida.clients.protos.talk_api_pb2 import (
3
24
  CreateBulkPhoneCallRequest,
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2024. Rapida
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Prashant <prashant@rapida.ai>
1
22
  from typing import Union
2
23
  from rapida.clients.protos.endpoint_api_pb2 import (
3
24
  GetAllEndpointLogRequest,
rapida/clients/invoke.py CHANGED
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2024. Rapida
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
20
+ #
21
+ # Author: Prashant <prashant@rapida.ai>
1
22
  from typing import Union
2
23
  from rapida.clients.protos.invoker_api_pb2 import (
3
24
  InvokeRequest,
@@ -26,14 +26,14 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
26
26
  import rapida.clients.protos.common_pb2 as common__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x61ssistant-analysis.proto\x12\rassistant_api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"\x94\x04\n\x11\x41ssistantAnalysis\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12T\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x38.assistant_api.AssistantAnalysis.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x0e\n\x06status\x18\x0c \x01(\t\x12\x15\n\tcreatedBy\x18\r \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0b\x63reatedUser\x18\x0e \x01(\x0b\x32\x05.User\x12\x15\n\tupdatedBy\x18\x0f \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0bupdatedUser\x18\x10 \x01(\x0b\x32\x05.User\x12/\n\x0b\x63reatedDate\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdatedDate\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x02\n\x1e\x43reateAssistantAnalysisRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.CreateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x02\n\x1eUpdateAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.UpdateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x1bGetAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"I\n\x1e\x44\x65leteAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"\x84\x01\n\x1cGetAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\"t\n\x1eGetAllAssistantAnalysisRequest\x12\x17\n\x0b\x61ssistantId\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x08paginate\x18\x02 \x01(\x0b\x32\t.Paginate\x12\x1c\n\tcriterias\x18\x03 \x03(\x0b\x32\t.Criteria\"\xa6\x01\n\x1fGetAllAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12\x1d\n\tpaginated\x18\x05 \x01(\x0b\x32\n.PaginatedB7Z5github.com/lexatic/web-backend/protos/lexatic-backendb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x61ssistant-analysis.proto\x12\rassistant_api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"\x94\x04\n\x11\x41ssistantAnalysis\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12T\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x38.assistant_api.AssistantAnalysis.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x0e\n\x06status\x18\x0c \x01(\t\x12\x15\n\tcreatedBy\x18\r \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0b\x63reatedUser\x18\x0e \x01(\x0b\x32\x05.User\x12\x15\n\tupdatedBy\x18\x0f \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0bupdatedUser\x18\x10 \x01(\x0b\x32\x05.User\x12/\n\x0b\x63reatedDate\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdatedDate\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x02\n\x1e\x43reateAssistantAnalysisRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.CreateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x02\n\x1eUpdateAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.UpdateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x1bGetAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"I\n\x1e\x44\x65leteAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"\x84\x01\n\x1cGetAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\"t\n\x1eGetAllAssistantAnalysisRequest\x12\x17\n\x0b\x61ssistantId\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x08paginate\x18\x02 \x01(\x0b\x32\t.Paginate\x12\x1c\n\tcriterias\x18\x03 \x03(\x0b\x32\t.Criteria\"\xa6\x01\n\x1fGetAllAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12\x1d\n\tpaginated\x18\x05 \x01(\x0b\x32\n.PaginatedB\x1cZ\x1agithub.com/rapidaai/protosb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
33
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'assistant_analysis_pb2', _globals)
34
34
  if not _descriptor._USE_C_DESCRIPTORS:
35
35
  _globals['DESCRIPTOR']._loaded_options = None
36
- _globals['DESCRIPTOR']._serialized_options = b'Z5github.com/lexatic/web-backend/protos/lexatic-backend'
36
+ _globals['DESCRIPTOR']._serialized_options = b'Z\032github.com/rapidaai/protos'
37
37
  _globals['_ASSISTANTANALYSIS_ENDPOINTPARAMETERSENTRY']._loaded_options = None
38
38
  _globals['_ASSISTANTANALYSIS_ENDPOINTPARAMETERSENTRY']._serialized_options = b'8\001'
39
39
  _globals['_ASSISTANTANALYSIS'].fields_by_name['id']._loaded_options = None