memori-client 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/memori_client/backend/v1/asset.rb +1 -1
- data/lib/memori_client/backend/v2/action_log.rb +1 -1
- data/lib/memori_client/backend/v2/asset.rb +1 -1
- data/lib/memori_client/backend/v2/badge.rb +1 -1
- data/lib/memori_client/backend/v2/consumption_log.rb +1 -1
- data/lib/memori_client/backend/v2/import_export.rb +5 -1
- data/lib/memori_client/backend/v2/integration.rb +1 -1
- data/lib/memori_client/backend/v2/invitation.rb +5 -1
- data/lib/memori_client/backend/v2/memori.rb +1 -1
- data/lib/memori_client/backend/v2/memori_list.rb +1 -1
- data/lib/memori_client/backend/v2/notification.rb +1 -1
- data/lib/memori_client/backend/v2/tenant.rb +1 -1
- data/lib/memori_client/backend/v2/user.rb +1 -1
- data/lib/memori_client/engine/resources.rb +2 -0
- data/lib/memori_client/engine/v2/chat_log.rb +1 -1
- data/lib/memori_client/engine/v2/completion_log.rb +1 -1
- data/lib/memori_client/engine/v2/context_var.rb +1 -1
- data/lib/memori_client/engine/v2/correlation_pair.rb +1 -1
- data/lib/memori_client/engine/v2/custom_dictionary.rb +3 -3
- data/lib/memori_client/engine/v2/dialog.rb +1 -1
- data/lib/memori_client/engine/v2/event_log.rb +1 -1
- data/lib/memori_client/engine/v2/expert_reference.rb +129 -0
- data/lib/memori_client/engine/v2/intent.rb +1 -1
- data/lib/memori_client/engine/v2/localization_key.rb +1 -1
- data/lib/memori_client/engine/v2/medium.rb +1 -1
- data/lib/memori_client/engine/v2/memori.rb +7 -1
- data/lib/memori_client/engine/v2/memory.rb +3 -3
- data/lib/memori_client/engine/v2/nlp.rb +1 -1
- data/lib/memori_client/engine/v2/person.rb +1 -1
- data/lib/memori_client/engine/v2/prompted_question.rb +1 -1
- data/lib/memori_client/engine/v2/search.rb +1 -1
- data/lib/memori_client/engine/v2/session.rb +1 -1
- data/lib/memori_client/engine/v2/stat.rb +6 -5
- data/lib/memori_client/engine/v2/unanswered_question.rb +1 -1
- data/lib/memori_client/engine/v2/user.rb +52 -0
- data/lib/memori_client/engine/v2/web_hook.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 194c84094fe7132c5e579146ab372a6f9b9308a3c8e56b9c45c855a2b640926b
|
4
|
+
data.tar.gz: 9bf85231186fe11b9dbd27409fbdb899b55c25b6919c589fa118a4f07fb14df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0cc6c0483826e2b78011a93b4542df1aa59f2a3c42f26de2b4d543b07d166019496a91dc86e35f642d001993cf928aa2ca23b72c40423d6a21a12f7e8729908
|
7
|
+
data.tar.gz: 69f717f3e33375c05972b7d3a47ee9aceef3d5b3c0f42a42efccfbb30acdf72ec4d914fb2316f340bac9096e3c97f351eff2b4ce508c1c2911d191b4613269f4
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V1::Asset < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v1/GuidAsset/{assetID}
|
4
4
|
# Downloads a file from an old Guid asset file URL, such as ```guid://<assetID>.<ext>```.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::ActionLog < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}
|
4
4
|
# Gets the Action Log objects for a specific User in a specific date interval.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::Asset < MemoriClient::Backend::Resource
|
3
3
|
# POST /api/v2/Asset/{strToken}/{strMemoriID}/{strEngineMemoryID}
|
4
4
|
# Uploads a file and creates a new Asset object to access it.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::ConsumptionLog < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v2/TenantConsumptionLogs/{strToken}/{tenantName}/{strType}/{strDateFrom}/{strDateTo}
|
4
4
|
# Gets the Consumption Log objects for a specific Tenant in a specific date interval.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::ImportExport < MemoriClient::Backend::Resource
|
3
3
|
# POST /api/v2/ImportExport/ImportCSV/{strToken}/{strMemoriID}
|
4
4
|
# Starts an Import process for memories from a CSV file.
|
@@ -14,6 +14,7 @@ class MemoriClient::Backend::V2::ImportExport < MemoriClient::Backend::Resource
|
|
14
14
|
# @param [boolean] payload.notPickable . optional
|
15
15
|
# @param [object] payload.contextVarsToSet . optional
|
16
16
|
# @param [object] payload.contextVarsToMatch . optional
|
17
|
+
# @param [string] payload.notes . optional
|
17
18
|
# import_csv(strToken:, strMemoriID:, payload: {})
|
18
19
|
def self.import_csv(strToken:, strMemoriID:, payload: {})
|
19
20
|
args = build_arguments(binding)
|
@@ -25,6 +26,7 @@ class MemoriClient::Backend::V2::ImportExport < MemoriClient::Backend::Resource
|
|
25
26
|
'forceImport',
|
26
27
|
'importName',
|
27
28
|
'notPickable',
|
29
|
+
'notes',
|
28
30
|
'rows',
|
29
31
|
]
|
30
32
|
payload_required_keys = %w[csvSpecs rows]
|
@@ -47,6 +49,7 @@ class MemoriClient::Backend::V2::ImportExport < MemoriClient::Backend::Resource
|
|
47
49
|
# @param [boolean] payload.notPickable . optional
|
48
50
|
# @param [object] payload.contextVarsToSet . optional
|
49
51
|
# @param [object] payload.contextVarsToMatch . optional
|
52
|
+
# @param [string] payload.notes . optional
|
50
53
|
# import_txt(strToken:, strMemoriID:, payload: {})
|
51
54
|
def self.import_txt(strToken:, strMemoriID:, payload: {})
|
52
55
|
args = build_arguments(binding)
|
@@ -57,6 +60,7 @@ class MemoriClient::Backend::V2::ImportExport < MemoriClient::Backend::Resource
|
|
57
60
|
'forceImport',
|
58
61
|
'importName',
|
59
62
|
'notPickable',
|
63
|
+
'notes',
|
60
64
|
'rows',
|
61
65
|
'txtSpecs',
|
62
66
|
]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::Integration < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v2/Integrations/{strToken}/{strMemoriID}
|
4
4
|
# Gets a list of Integration objects for a specified Memori object.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::Invitation < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v2/SentInvitations/{strToken}
|
4
4
|
# Gets a list of invitations sent by the currently logged in User.
|
@@ -65,6 +65,7 @@ class MemoriClient::Backend::V2::Invitation < MemoriClient::Backend::Resource
|
|
65
65
|
# @param [object] payload request payload. optional
|
66
66
|
# @param [string] payload.invitationID . optional
|
67
67
|
# @param [string] payload.memoriID . optional
|
68
|
+
# @param [string] payload.engineMemoriID . optional
|
68
69
|
# @param [boolean] payload.isInviter . optional
|
69
70
|
# @param [boolean] payload.isInvitee . optional
|
70
71
|
# @param [string] payload.text . optional
|
@@ -83,6 +84,7 @@ class MemoriClient::Backend::V2::Invitation < MemoriClient::Backend::Resource
|
|
83
84
|
'creationTimestamp',
|
84
85
|
'destinationEMail',
|
85
86
|
'destinationName',
|
87
|
+
'engineMemoriID',
|
86
88
|
'invitationID',
|
87
89
|
'isInvitee',
|
88
90
|
'isInviter',
|
@@ -143,6 +145,7 @@ class MemoriClient::Backend::V2::Invitation < MemoriClient::Backend::Resource
|
|
143
145
|
# @param [object] payload request payload. optional
|
144
146
|
# @param [string] payload.invitationID . optional
|
145
147
|
# @param [string] payload.memoriID . optional
|
148
|
+
# @param [string] payload.engineMemoriID . optional
|
146
149
|
# @param [boolean] payload.isInviter . optional
|
147
150
|
# @param [boolean] payload.isInvitee . optional
|
148
151
|
# @param [string] payload.text . optional
|
@@ -161,6 +164,7 @@ class MemoriClient::Backend::V2::Invitation < MemoriClient::Backend::Resource
|
|
161
164
|
'creationTimestamp',
|
162
165
|
'destinationEMail',
|
163
166
|
'destinationName',
|
167
|
+
'engineMemoriID',
|
164
168
|
'invitationID',
|
165
169
|
'isInvitee',
|
166
170
|
'isInviter',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:06 +0000
|
2
2
|
class MemoriClient::Backend::V2::Memori < MemoriClient::Backend::Resource
|
3
3
|
# GET /api/v2/Memori/{tenantName}/{userName}/{memoriName}/{strToken}
|
4
4
|
# Gets the details of a Memori object by tenant, user and Memori names.
|
@@ -5,6 +5,7 @@ require 'memori_client/engine/v2/correlation_pair.rb'
|
|
5
5
|
require 'memori_client/engine/v2/custom_dictionary.rb'
|
6
6
|
require 'memori_client/engine/v2/dialog.rb'
|
7
7
|
require 'memori_client/engine/v2/event_log.rb'
|
8
|
+
require 'memori_client/engine/v2/expert_reference.rb'
|
8
9
|
require 'memori_client/engine/v2/intent.rb'
|
9
10
|
require 'memori_client/engine/v2/localization_key.rb'
|
10
11
|
require 'memori_client/engine/v2/medium.rb'
|
@@ -17,4 +18,5 @@ require 'memori_client/engine/v2/search.rb'
|
|
17
18
|
require 'memori_client/engine/v2/session.rb'
|
18
19
|
require 'memori_client/engine/v2/stat.rb'
|
19
20
|
require 'memori_client/engine/v2/unanswered_question.rb'
|
21
|
+
require 'memori_client/engine/v2/user.rb'
|
20
22
|
require 'memori_client/engine/v2/web_hook.rb'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::ChatLog < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/ChatLogs/{strSessionID}/{strDateFrom}/{strDateTo}
|
4
4
|
# Gets the Chat Log objects for the Memori of the current session record in a specific date interval.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::CompletionLog < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/CompletionLogs/{strMemoriID}/{strDateFrom}/{strDateTo}
|
4
4
|
# Gets the Completion Log objects for the specified Memori in a specific date interval.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::CustomDictionary < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/CustomWords/{strSessionID}
|
4
4
|
# Lists all Custom Word objects.
|
@@ -15,8 +15,8 @@ class MemoriClient::Engine::V2::CustomDictionary < MemoriClient::Engine::Resourc
|
|
15
15
|
# Lists Custom Word objects with pagination.
|
16
16
|
# Params list:
|
17
17
|
# @param [string] strSessionID The session ID. required
|
18
|
-
# @param [integer] from The 0-based index of the first
|
19
|
-
# @param [integer] howMany The number of the
|
18
|
+
# @param [integer] from The 0-based index of the first Custom Word to list. required
|
19
|
+
# @param [integer] howMany The number of the Custom Word to list. required
|
20
20
|
# list_custom_words_paginated(strSessionID:, from:, howMany:)
|
21
21
|
def self.list_custom_words_paginated(strSessionID:, from:, howMany:)
|
22
22
|
args = build_arguments(binding)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::Dialog < MemoriClient::Engine::Resource
|
3
3
|
# POST /memori/v2/TextEnteredEvent/{strSessionID}
|
4
4
|
# Submits a Text Entered event to the session's Dialog State Machine.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}
|
4
4
|
# Gets the Event Log objects for the Memori of the current session in a specific date interval.
|
@@ -0,0 +1,129 @@
|
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
|
+
class MemoriClient::Engine::V2::ExpertReference < MemoriClient::Engine::Resource
|
3
|
+
# GET /memori/v2/ExpertReferences/{strSessionID}
|
4
|
+
# Lists all Expert Reference objects.
|
5
|
+
# Params list:
|
6
|
+
# @param [string] strSessionID The session ID. required
|
7
|
+
# list_expert_references(strSessionID:)
|
8
|
+
def self.list_expert_references(strSessionID:)
|
9
|
+
args = build_arguments(binding)
|
10
|
+
|
11
|
+
exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}', **args)
|
12
|
+
end
|
13
|
+
|
14
|
+
# GET /memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}
|
15
|
+
# Lists Expert Reference objects with pagination.
|
16
|
+
# Params list:
|
17
|
+
# @param [string] strSessionID The session ID. required
|
18
|
+
# @param [integer] from The 0-based index of the first Expert Reference object to list. required
|
19
|
+
# @param [integer] howMany The number of the Expert Reference objects to list. required
|
20
|
+
# list_expert_references_paginated(strSessionID:, from:, howMany:)
|
21
|
+
def self.list_expert_references_paginated(strSessionID:, from:, howMany:)
|
22
|
+
args = build_arguments(binding)
|
23
|
+
|
24
|
+
exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}', **args)
|
25
|
+
end
|
26
|
+
|
27
|
+
# GET /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
|
28
|
+
# Gets the details of an Expert Reference object.
|
29
|
+
# Params list:
|
30
|
+
# @param [string] strSessionID The session ID. required
|
31
|
+
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
32
|
+
# get_expert_reference(strSessionID:, strExpertReferenceID:)
|
33
|
+
def self.get_expert_reference(strSessionID:, strExpertReferenceID:)
|
34
|
+
args = build_arguments(binding)
|
35
|
+
|
36
|
+
exec_http_request('get', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
37
|
+
end
|
38
|
+
|
39
|
+
# PATCH /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
|
40
|
+
# Updates an existing Expert Reference object.
|
41
|
+
# Params list:
|
42
|
+
# @param [string] strSessionID The session ID. required
|
43
|
+
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
44
|
+
# @param [object] payload request payload. optional
|
45
|
+
# @param [string] payload.expertID . optional
|
46
|
+
# @param [string] payload.name . required
|
47
|
+
# @param [string] payload.description . required
|
48
|
+
# @param [boolean] payload.default . required
|
49
|
+
# @param [string] payload.expertMemoriID . required
|
50
|
+
# @param [string] payload.expertPassword . optional
|
51
|
+
# @param [string] payload.expertBaseURL . required
|
52
|
+
# @param [string] payload.creationTimestamp . optional
|
53
|
+
# @param [string] payload.creationSessionID . optional
|
54
|
+
# @param [string] payload.lastChangeTimestamp . optional
|
55
|
+
# @param [string] payload.lastChangeSessionID . optional
|
56
|
+
# update_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})
|
57
|
+
def self.update_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})
|
58
|
+
args = build_arguments(binding)
|
59
|
+
payload_keys = [
|
60
|
+
'creationSessionID',
|
61
|
+
'creationTimestamp',
|
62
|
+
'default',
|
63
|
+
'description',
|
64
|
+
'expertBaseURL',
|
65
|
+
'expertID',
|
66
|
+
'expertMemoriID',
|
67
|
+
'expertPassword',
|
68
|
+
'lastChangeSessionID',
|
69
|
+
'lastChangeTimestamp',
|
70
|
+
'name',
|
71
|
+
]
|
72
|
+
payload_required_keys = %w[default description expertBaseURL expertMemoriID name]
|
73
|
+
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
74
|
+
|
75
|
+
exec_http_request('patch', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
76
|
+
end
|
77
|
+
|
78
|
+
# DELETE /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
|
79
|
+
# Removes an existing Expert Reference object.
|
80
|
+
# Params list:
|
81
|
+
# @param [string] strSessionID The session ID. required
|
82
|
+
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
83
|
+
# remove_expert_reference(strSessionID:, strExpertReferenceID:)
|
84
|
+
def self.remove_expert_reference(strSessionID:, strExpertReferenceID:)
|
85
|
+
args = build_arguments(binding)
|
86
|
+
|
87
|
+
exec_http_request('delete', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
88
|
+
end
|
89
|
+
|
90
|
+
# POST /memori/v2/ExpertReference/{strSessionID}
|
91
|
+
# Adds a new Expert Reference object.
|
92
|
+
# Params list:
|
93
|
+
# @param [string] strSessionID The session ID. required
|
94
|
+
# @param [object] payload request payload. optional
|
95
|
+
# @param [string] payload.expertID . optional
|
96
|
+
# @param [string] payload.name . required
|
97
|
+
# @param [string] payload.description . required
|
98
|
+
# @param [boolean] payload.default . required
|
99
|
+
# @param [string] payload.expertMemoriID . required
|
100
|
+
# @param [string] payload.expertPassword . optional
|
101
|
+
# @param [string] payload.expertBaseURL . required
|
102
|
+
# @param [string] payload.creationTimestamp . optional
|
103
|
+
# @param [string] payload.creationSessionID . optional
|
104
|
+
# @param [string] payload.lastChangeTimestamp . optional
|
105
|
+
# @param [string] payload.lastChangeSessionID . optional
|
106
|
+
# add_expert_reference(strSessionID:, payload: {})
|
107
|
+
def self.add_expert_reference(strSessionID:, payload: {})
|
108
|
+
args = build_arguments(binding)
|
109
|
+
payload_keys = [
|
110
|
+
'creationSessionID',
|
111
|
+
'creationTimestamp',
|
112
|
+
'default',
|
113
|
+
'description',
|
114
|
+
'expertBaseURL',
|
115
|
+
'expertID',
|
116
|
+
'expertMemoriID',
|
117
|
+
'expertPassword',
|
118
|
+
'lastChangeSessionID',
|
119
|
+
'lastChangeTimestamp',
|
120
|
+
'name',
|
121
|
+
]
|
122
|
+
payload_required_keys = %w[default description expertBaseURL expertMemoriID name]
|
123
|
+
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
124
|
+
|
125
|
+
exec_http_request('post', '/memori/v2/ExpertReference/{strSessionID}', **args)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
3
3
|
# POST /memori/v2/Memori
|
4
4
|
# Registration of a new Memori object.
|
@@ -27,6 +27,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
27
27
|
# @param [string] payload.chainingMemoriID . optional
|
28
28
|
# @param [string] payload.chainingBaseURL . optional
|
29
29
|
# @param [string] payload.chainingPassword . optional
|
30
|
+
# @param [boolean] payload.enableBoardOfExperts . optional
|
30
31
|
# @param [string] payload.dcmUser . optional
|
31
32
|
# @param [string] payload.dcmSecret . optional
|
32
33
|
# @param [string] payload.dcmAppContext . optional
|
@@ -63,6 +64,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
63
64
|
'disableR2R3Loop',
|
64
65
|
'disableR4Loop',
|
65
66
|
'disableR5Loop',
|
67
|
+
'enableBoardOfExperts',
|
66
68
|
'enableCompletions',
|
67
69
|
'enableDeepThought',
|
68
70
|
'enableStrongEncryption',
|
@@ -113,6 +115,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
113
115
|
# @param [string] payload.chainingMemoriID . optional
|
114
116
|
# @param [string] payload.chainingBaseURL . optional
|
115
117
|
# @param [string] payload.chainingPassword . optional
|
118
|
+
# @param [boolean] payload.enableBoardOfExperts . optional
|
116
119
|
# @param [string] payload.dcmUser . optional
|
117
120
|
# @param [string] payload.dcmSecret . optional
|
118
121
|
# @param [string] payload.dcmAppContext . optional
|
@@ -149,6 +152,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
149
152
|
'disableR2R3Loop',
|
150
153
|
'disableR4Loop',
|
151
154
|
'disableR5Loop',
|
155
|
+
'enableBoardOfExperts',
|
152
156
|
'enableCompletions',
|
153
157
|
'enableDeepThought',
|
154
158
|
'enableStrongEncryption',
|
@@ -199,6 +203,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
199
203
|
# @param [string] payload.chainingMemoriID . optional
|
200
204
|
# @param [string] payload.chainingBaseURL . optional
|
201
205
|
# @param [string] payload.chainingPassword . optional
|
206
|
+
# @param [boolean] payload.enableBoardOfExperts . optional
|
202
207
|
# @param [string] payload.dcmUser . optional
|
203
208
|
# @param [string] payload.dcmSecret . optional
|
204
209
|
# @param [string] payload.dcmAppContext . optional
|
@@ -235,6 +240,7 @@ class MemoriClient::Engine::V2::Memori < MemoriClient::Engine::Resource
|
|
235
240
|
'disableR2R3Loop',
|
236
241
|
'disableR4Loop',
|
237
242
|
'disableR5Loop',
|
243
|
+
'enableBoardOfExperts',
|
238
244
|
'enableCompletions',
|
239
245
|
'enableDeepThought',
|
240
246
|
'enableStrongEncryption',
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::Memory < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/Memories/{strSessionID}/{type}
|
4
4
|
# Lists all Memory objects.
|
5
5
|
# Params list:
|
6
6
|
# @param [string] strSessionID The session ID. required
|
7
|
-
# @param [string] type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS. optional
|
7
|
+
# @param [string] type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS, EXPERT_REFERENCES. optional
|
8
8
|
# list_memories(strSessionID:, type: nil)
|
9
9
|
def self.list_memories(strSessionID:, type: nil)
|
10
10
|
args = build_arguments(binding)
|
@@ -18,7 +18,7 @@ class MemoriClient::Engine::V2::Memory < MemoriClient::Engine::Resource
|
|
18
18
|
# @param [string] strSessionID The session ID. required
|
19
19
|
# @param [integer] from The 0-based index of the first Memory object to list. required
|
20
20
|
# @param [integer] howMany The number of the Memory objects to list. required
|
21
|
-
# @param [string] type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS. optional
|
21
|
+
# @param [string] type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS, EXPERT_REFERENCES. optional
|
22
22
|
# list_memories_paginated(strSessionID:, from:, howMany:, type: nil)
|
23
23
|
def self.list_memories_paginated(strSessionID:, from:, howMany:, type: nil)
|
24
24
|
args = build_arguments(binding)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
2
|
class MemoriClient::Engine::V2::Stat < MemoriClient::Engine::Resource
|
3
3
|
# GET /memori/v2/Statistics/{strSessionID}
|
4
4
|
# Computes usage statistics for the Memori of the current session.
|
@@ -23,15 +23,16 @@ class MemoriClient::Engine::V2::Stat < MemoriClient::Engine::Resource
|
|
23
23
|
exec_http_request('get', '/memori/v2/ContentQualityIndexes/{strMemoriID}/{strLatestUpdate}', **args)
|
24
24
|
end
|
25
25
|
|
26
|
-
# GET /memori/v2/TextQualityIndexes/{strSessionID}
|
26
|
+
# GET /memori/v2/TextQualityIndexes/{strSessionID}/{strLatestUpdate}
|
27
27
|
# Computes text quality indexes for a Memori.
|
28
28
|
# Params list:
|
29
29
|
# @param [string] strSessionID The session ID. required
|
30
|
-
#
|
31
|
-
|
30
|
+
# @param [string] strLatestUpdate The optional latest update timestamp, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
31
|
+
# get_text_quality_indexes(strSessionID:, strLatestUpdate: nil)
|
32
|
+
def self.get_text_quality_indexes(strSessionID:, strLatestUpdate: nil)
|
32
33
|
args = build_arguments(binding)
|
33
34
|
|
34
|
-
exec_http_request('get', '/memori/v2/TextQualityIndexes/{strSessionID}', **args)
|
35
|
+
exec_http_request('get', '/memori/v2/TextQualityIndexes/{strSessionID}/{strLatestUpdate}', **args)
|
35
36
|
end
|
36
37
|
|
37
38
|
# GET /memori/v2/SessionStatistics/{strMemoriID}/{strDateFrom}/{strDateTo}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Generated on 2024-01-18 17:37:07 +0000
|
2
|
+
class MemoriClient::Engine::V2::User < MemoriClient::Engine::Resource
|
3
|
+
# GET /memori/v2/KnownFacts/{strSessionID}
|
4
|
+
# Lists all Known Facts objects associated with the current User.
|
5
|
+
# Params list:
|
6
|
+
# @param [string] strSessionID The session ID. required
|
7
|
+
# list_known_facts(strSessionID:)
|
8
|
+
def self.list_known_facts(strSessionID:)
|
9
|
+
args = build_arguments(binding)
|
10
|
+
|
11
|
+
exec_http_request('get', '/memori/v2/KnownFacts/{strSessionID}', **args)
|
12
|
+
end
|
13
|
+
|
14
|
+
# GET /memori/v2/KnownFacts/{strSessionID}/{from}/{howMany}
|
15
|
+
# Lists Known Facts objects associated with the current User, with pagination.
|
16
|
+
# Params list:
|
17
|
+
# @param [string] strSessionID The session ID. required
|
18
|
+
# @param [integer] from The 0-based index of the first Known Fact to list. required
|
19
|
+
# @param [integer] howMany The number of the Known Fact to list. required
|
20
|
+
# list_known_facts_paginated(strSessionID:, from:, howMany:)
|
21
|
+
def self.list_known_facts_paginated(strSessionID:, from:, howMany:)
|
22
|
+
args = build_arguments(binding)
|
23
|
+
|
24
|
+
exec_http_request('get', '/memori/v2/KnownFacts/{strSessionID}/{from}/{howMany}', **args)
|
25
|
+
end
|
26
|
+
|
27
|
+
# GET /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}
|
28
|
+
# Gets the details of a Known Fact object.
|
29
|
+
# Params list:
|
30
|
+
# @param [string] strSessionID The session ID. required
|
31
|
+
# @param [string] strKnownFactID The Known Fact object ID. required
|
32
|
+
# get_known_fact(strSessionID:, strKnownFactID:)
|
33
|
+
def self.get_known_fact(strSessionID:, strKnownFactID:)
|
34
|
+
args = build_arguments(binding)
|
35
|
+
|
36
|
+
exec_http_request('get', '/memori/v2/KnownFact/{strSessionID}/{strKnownFactID}', **args)
|
37
|
+
end
|
38
|
+
|
39
|
+
# DELETE /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}
|
40
|
+
# Deletes an existing Known Fact object.
|
41
|
+
# Params list:
|
42
|
+
# @param [string] strSessionID The session ID. required
|
43
|
+
# @param [string] strKnownFactID The Known Fact object ID. required
|
44
|
+
# delete_known_fact(strSessionID:, strKnownFactID:)
|
45
|
+
def self.delete_known_fact(strSessionID:, strKnownFactID:)
|
46
|
+
args = build_arguments(binding)
|
47
|
+
|
48
|
+
exec_http_request('delete', '/memori/v2/KnownFact/{strSessionID}/{strKnownFactID}', **args)
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memori-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Lampis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Memori Client to interact with Memori backend and engine API
|
14
14
|
email: me@stefanolampis.com
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/memori_client/engine/v2/custom_dictionary.rb
|
43
43
|
- lib/memori_client/engine/v2/dialog.rb
|
44
44
|
- lib/memori_client/engine/v2/event_log.rb
|
45
|
+
- lib/memori_client/engine/v2/expert_reference.rb
|
45
46
|
- lib/memori_client/engine/v2/intent.rb
|
46
47
|
- lib/memori_client/engine/v2/localization_key.rb
|
47
48
|
- lib/memori_client/engine/v2/medium.rb
|
@@ -54,6 +55,7 @@ files:
|
|
54
55
|
- lib/memori_client/engine/v2/session.rb
|
55
56
|
- lib/memori_client/engine/v2/stat.rb
|
56
57
|
- lib/memori_client/engine/v2/unanswered_question.rb
|
58
|
+
- lib/memori_client/engine/v2/user.rb
|
57
59
|
- lib/memori_client/engine/v2/web_hook.rb
|
58
60
|
- lib/memori_client/http_client.rb
|
59
61
|
- lib/memori_client/resource.rb
|