memori-client 0.1.6 → 0.1.9
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/doc/MemoriClient::Backend::V1::Asset.md +117 -0
- data/doc/MemoriClient::Backend::V2::ActionLog.md +37 -0
- data/doc/MemoriClient::Backend::V2::Analysis.md +39 -0
- data/doc/MemoriClient::Backend::V2::Asset.md +102 -0
- data/doc/MemoriClient::Backend::V2::Badge.md +64 -0
- data/doc/MemoriClient::Backend::V2::CompletionConfig.md +115 -0
- data/doc/MemoriClient::Backend::V2::ConsumptionLog.md +57 -0
- data/doc/MemoriClient::Backend::V2::ImportExport.md +180 -0
- data/doc/MemoriClient::Backend::V2::Integration.md +117 -0
- data/doc/MemoriClient::Backend::V2::Invitation.md +179 -0
- data/doc/MemoriClient::Backend::V2::Memori.md +394 -0
- data/doc/MemoriClient::Backend::V2::MemoriList.md +147 -0
- data/doc/MemoriClient::Backend::V2::Notification.md +31 -0
- data/doc/MemoriClient::Backend::V2::Process.md +64 -0
- data/doc/MemoriClient::Backend::V2::Tenant.md +142 -0
- data/doc/MemoriClient::Backend::V2::User.md +647 -0
- data/doc/MemoriClient::Engine::V2::ChatLog.md +82 -0
- data/doc/MemoriClient::Engine::V2::ContextVar.md +46 -0
- data/doc/MemoriClient::Engine::V2::CorrelationPair.md +72 -0
- data/doc/MemoriClient::Engine::V2::CustomDictionary.md +108 -0
- data/doc/MemoriClient::Engine::V2::Dialog.md +152 -0
- data/doc/MemoriClient::Engine::V2::EventLog.md +85 -0
- data/doc/MemoriClient::Engine::V2::ExpertReference.md +116 -0
- data/doc/MemoriClient::Engine::V2::Function.md +140 -0
- data/doc/MemoriClient::Engine::V2::Intent.md +225 -0
- data/doc/MemoriClient::Engine::V2::LocalizationKey.md +105 -0
- data/doc/MemoriClient::Engine::V2::Medium.md +118 -0
- data/doc/MemoriClient::Engine::V2::Memory.md +244 -0
- data/doc/MemoriClient::Engine::V2::NLP.md +100 -0
- data/doc/MemoriClient::Engine::V2::Person.md +114 -0
- data/doc/MemoriClient::Engine::V2::Search.md +151 -0
- data/doc/MemoriClient::Engine::V2::Session.md +55 -0
- data/doc/MemoriClient::Engine::V2::Stat.md +18 -0
- data/doc/MemoriClient::Engine::V2::Topic.md +80 -0
- data/doc/MemoriClient::Engine::V2::UnansweredQuestion.md +75 -0
- data/doc/MemoriClient::Engine::V2::User.md +140 -0
- data/doc/MemoriClient::Engine::V2::WebHook.md +67 -0
- data/lib/memori_client/railtie.rb +12 -0
- data/lib/memori_client/utils/rails.rb +54 -0
- data/lib/memori_client.rb +7 -0
- data/lib/tasks/memori_client.rake +15 -0
- metadata +42 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2514386c5093864c79a74f317030cf2ab058fbd41a3337decfc5415d8a3182b4
|
4
|
+
data.tar.gz: e33a09045201dbd2ceea70acf767e73037f368de5223a157b99c1959bd4b7406
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258e0813e4c0998df0e1f746d02984a55eb249de7adec552ccedec1b6eb3b906e0e7b43834659e099ec0268891adc6c6914bf7050737f021e7e84e8c3a0207a3
|
7
|
+
data.tar.gz: '0795c94a010caac4a6697eb1d8833b852eff369e00ee00dab0f2c74d95b8ed980d322f614fd655ee092e059499087d36a9312becefa749071c37ae0cf6f23f38'
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V1::Asset`
|
2
|
+
|
3
|
+
## download_old_guid_asset
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Downloads a file from an old Guid asset file URL, such as ```guid://<assetID>.<ext>```.
|
7
|
+
|
8
|
+
Signature: `download_old_guid_asset(assetID:)`
|
9
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_guid_asset(assetID:)`
|
10
|
+
|
11
|
+
HTTP API: GET /api/v1/GuidAsset/{assetID}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `assetID`: **string** ID of the old Guid asset file. required
|
16
|
+
|
17
|
+
## download_old_alternative_guid_asset
|
18
|
+
|
19
|
+
Summary:
|
20
|
+
Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/media/<assetID>.<ext>```.
|
21
|
+
|
22
|
+
Signature: `download_old_alternative_guid_asset(assetID:)`
|
23
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_alternative_guid_asset(assetID:)`
|
24
|
+
|
25
|
+
HTTP API: GET /api/v1/memoriai/memory/media/{assetID}`
|
26
|
+
|
27
|
+
Parameters:
|
28
|
+
|
29
|
+
- `assetID`: **string** ID of the old Guid asset file. required
|
30
|
+
|
31
|
+
## download_old_alternative_guid_asset_with_memory
|
32
|
+
|
33
|
+
Summary:
|
34
|
+
Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/<memoryID>/media/<assetID>.<ext>```.
|
35
|
+
|
36
|
+
Signature: `download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)`
|
37
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)`
|
38
|
+
|
39
|
+
HTTP API: GET /api/v1/memoriai/memory/{strMemoryID}/media/{assetID}`
|
40
|
+
|
41
|
+
Parameters:
|
42
|
+
|
43
|
+
- `strMemoryID`: **string** ID of the engine Memory object (ignored). required
|
44
|
+
- `assetID`: **string** ID of the old Guid asset file. required
|
45
|
+
|
46
|
+
## download_old_cloud_asset
|
47
|
+
|
48
|
+
Summary:
|
49
|
+
Downloads a file from an old Cloud asset file URL, such as ```cloud://<path>/<assetID>.<ext>```.
|
50
|
+
|
51
|
+
Signature: `download_old_cloud_asset(assetID:)`
|
52
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_cloud_asset(assetID:)`
|
53
|
+
|
54
|
+
HTTP API: GET /api/v1/CloudAsset/{assetID}`
|
55
|
+
|
56
|
+
Parameters:
|
57
|
+
|
58
|
+
- `assetID`: **string** ID of the old Cloud asset file. required
|
59
|
+
|
60
|
+
## download_old_asset
|
61
|
+
|
62
|
+
Summary:
|
63
|
+
Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/media/cloud/<path>/<assetID>.<ext>```.
|
64
|
+
|
65
|
+
Signature: `download_old_asset(assetID:)`
|
66
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_asset(assetID:)`
|
67
|
+
|
68
|
+
HTTP API: GET /api/v1/memoriai/memory/media/cloud/{assetID}`
|
69
|
+
|
70
|
+
Parameters:
|
71
|
+
|
72
|
+
- `assetID`: **string** ID of the old asset file. required
|
73
|
+
|
74
|
+
## download_old_asset_with_memory_check
|
75
|
+
|
76
|
+
Summary:
|
77
|
+
Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/<memoryID>/media/cloud/<path>/<assetID>.<ext>```.
|
78
|
+
|
79
|
+
Signature: `download_old_asset_with_memory_check(strMemoryID:, assetID:)`
|
80
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_asset_with_memory_check(strMemoryID:, assetID:)`
|
81
|
+
|
82
|
+
HTTP API: GET /api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}`
|
83
|
+
|
84
|
+
Parameters:
|
85
|
+
|
86
|
+
- `strMemoryID`: **string** ID of the engine Memory object. required
|
87
|
+
- `assetID`: **string** ID of the old asset file. required
|
88
|
+
|
89
|
+
## download_old_cover_asset
|
90
|
+
|
91
|
+
Summary:
|
92
|
+
Downloads the cover file from an old cover asset URL, sucs as ```/api/v1/memoriai/memori/cover/<memoriID>```.
|
93
|
+
|
94
|
+
Signature: `download_old_cover_asset(strMemoriID:)`
|
95
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_cover_asset(strMemoriID:)`
|
96
|
+
|
97
|
+
HTTP API: GET /api/v1/memoriai/memori/cover/{strMemoriID}`
|
98
|
+
|
99
|
+
Parameters:
|
100
|
+
|
101
|
+
- `strMemoriID`: **string** ID of the engine Memori object. required
|
102
|
+
|
103
|
+
## download_old_avatar_asset
|
104
|
+
|
105
|
+
Summary:
|
106
|
+
Downloads the avatar file from an old avatar asset URL, sucs as ```/api/v1/memoriai/memori/avatar/<memoriID>```.
|
107
|
+
|
108
|
+
Signature: `download_old_avatar_asset(strMemoriID:)`
|
109
|
+
Invocation: `MemoriClient::Backend::V1::Asset.download_old_avatar_asset(strMemoriID:)`
|
110
|
+
|
111
|
+
HTTP API: GET /api/v1/memoriai/memori/avatar/{strMemoriID}`
|
112
|
+
|
113
|
+
Parameters:
|
114
|
+
|
115
|
+
- `strMemoriID`: **string** ID of the engine Memori object. required
|
116
|
+
|
117
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::ActionLog`
|
2
|
+
|
3
|
+
## get_user_action_logs
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Gets the Action Log objects for a specific User in a specific date interval.
|
7
|
+
|
8
|
+
Signature: `get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::ActionLog.get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)`
|
10
|
+
|
11
|
+
HTTP API: GET /api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `strUserID`: **string** The ID of the User object. required
|
17
|
+
- `strDateFrom`: **string** The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
18
|
+
- `strDateTo`: **string** The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
19
|
+
|
20
|
+
## get_memori_action_logs
|
21
|
+
|
22
|
+
Summary:
|
23
|
+
Gets the Action Log objects for a specific Memori in a specific date interval.
|
24
|
+
|
25
|
+
Signature: `get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)`
|
26
|
+
Invocation: `MemoriClient::Backend::V2::ActionLog.get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)`
|
27
|
+
|
28
|
+
HTTP API: GET /api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}`
|
29
|
+
|
30
|
+
Parameters:
|
31
|
+
|
32
|
+
- `strToken`: **string** The login token. required
|
33
|
+
- `strMemoriID`: **string** The ID of the Memori object. required
|
34
|
+
- `strDateFrom`: **string** The optional begin of the date interval, in the format yyyyMMddHHmmssfff. optional
|
35
|
+
- `strDateTo`: **string** The optional end of the date interval, in the format yyyyMMddHHmmssfff. optional
|
36
|
+
|
37
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::Analysis`
|
2
|
+
|
3
|
+
## analyze_user_query
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Starts an Analysis process for User/query match on Deep Thought known facts.
|
7
|
+
|
8
|
+
Signature: `analyze_user_query(strToken:, strMemoriID:, payload: {})`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::Analysis.analyze_user_query(strToken:, strMemoriID:, payload: {})`
|
10
|
+
|
11
|
+
HTTP API: POST /api/v2/Analysis/AnalyzeUserQuery/{strToken}/{strMemoriID}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `strMemoriID`: **string** The ID of the Memori object. required
|
17
|
+
- `payload`: **Hash** request payload. optional
|
18
|
+
- `payload.query`: **String** . optional
|
19
|
+
- `payload.threshold`: **Number** . optional
|
20
|
+
|
21
|
+
## list_user_query_matches
|
22
|
+
|
23
|
+
Summary:
|
24
|
+
Lists Deep Thought User/query Match objects of the specified Analysis object, with pagination.
|
25
|
+
|
26
|
+
Signature: `list_user_query_matches(strToken:, strAnalysisID:, from:, howMany:, threshold: nil)`
|
27
|
+
Invocation: `MemoriClient::Backend::V2::Analysis.list_user_query_matches(strToken:, strAnalysisID:, from:, howMany:, threshold: nil)`
|
28
|
+
|
29
|
+
HTTP API: GET /api/v2/Analysis/UserQueryMatches/{strToken}/{strAnalysisID}/{from}/{howMany}/{threshold}`
|
30
|
+
|
31
|
+
Parameters:
|
32
|
+
|
33
|
+
- `strToken`: **string** The login token. required
|
34
|
+
- `strAnalysisID`: **string** The Analysis process ID. required
|
35
|
+
- `from`: **integer** The 0-based index of the first Match object to list. required
|
36
|
+
- `howMany`: **integer** The number of the Match objects to list. required
|
37
|
+
- `threshold`: **number** Optional threshold between 0.0 and 1.0: Match objects below the threshold are excluded from the list. optional
|
38
|
+
|
39
|
+
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::Asset`
|
2
|
+
|
3
|
+
## upload_asset
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Uploads a file and creates a new Asset object to access it.
|
7
|
+
|
8
|
+
Signature: `upload_asset(strToken:, strMemoriID: nil, strEngineMemoryID: nil)`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::Asset.upload_asset(strToken:, strMemoriID: nil, strEngineMemoryID: nil)`
|
10
|
+
|
11
|
+
HTTP API: POST /api/v2/Asset/{strToken}/{strMemoriID}/{strEngineMemoryID}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `strMemoriID`: **string** The optional ID of a Memori object the Asset belongs to. optional
|
17
|
+
- `strEngineMemoryID`: **string** The optional ID of an Engine Memory object the Asset belogs to. optional
|
18
|
+
|
19
|
+
## get_asset_details
|
20
|
+
|
21
|
+
Summary:
|
22
|
+
Gets the details of an Asset object.
|
23
|
+
|
24
|
+
Signature: `get_asset_details(strToken:, fileName:)`
|
25
|
+
Invocation: `MemoriClient::Backend::V2::Asset.get_asset_details(strToken:, fileName:)`
|
26
|
+
|
27
|
+
HTTP API: GET /api/v2/AssetDetails/{strToken}/{fileName}`
|
28
|
+
|
29
|
+
Parameters:
|
30
|
+
|
31
|
+
- `strToken`: **string** The login token. required
|
32
|
+
- `fileName`: **string** Name of the Asset file. required
|
33
|
+
|
34
|
+
## list_sent_invitations
|
35
|
+
|
36
|
+
Summary:
|
37
|
+
Gets a list of Asset objects owned the currently logged in User.
|
38
|
+
|
39
|
+
Signature: `list_sent_invitations(strToken:)`
|
40
|
+
Invocation: `MemoriClient::Backend::V2::Asset.list_sent_invitations(strToken:)`
|
41
|
+
|
42
|
+
HTTP API: GET /api/v2/Assets/{strToken}`
|
43
|
+
|
44
|
+
Parameters:
|
45
|
+
|
46
|
+
- `strToken`: **string** The login token. required
|
47
|
+
|
48
|
+
## download_asset
|
49
|
+
|
50
|
+
Summary:
|
51
|
+
Downloads a file from an Asset object.
|
52
|
+
|
53
|
+
Signature: `download_asset(fileName:, memoriSessionID: nil)`
|
54
|
+
Invocation: `MemoriClient::Backend::V2::Asset.download_asset(fileName:, memoriSessionID: nil)`
|
55
|
+
|
56
|
+
HTTP API: GET /api/v2/Asset/{fileName}/{memoriSessionID}`
|
57
|
+
|
58
|
+
Parameters:
|
59
|
+
|
60
|
+
- `fileName`: **string** Name of the Asset file. required
|
61
|
+
- `memoriSessionID`: **string** Optional ID of an Engine Memori session. optional
|
62
|
+
|
63
|
+
## update_asset
|
64
|
+
|
65
|
+
Summary:
|
66
|
+
Updates an Asset object.
|
67
|
+
|
68
|
+
Signature: `update_asset(strToken:, fileName:, payload: {})`
|
69
|
+
Invocation: `MemoriClient::Backend::V2::Asset.update_asset(strToken:, fileName:, payload: {})`
|
70
|
+
|
71
|
+
HTTP API: PATCH /api/v2/Asset/{strToken}/{fileName}`
|
72
|
+
|
73
|
+
Parameters:
|
74
|
+
|
75
|
+
- `strToken`: **string** The login token. required
|
76
|
+
- `fileName`: **string** Name of the Asset file. required
|
77
|
+
- `payload`: **Hash** request payload. optional
|
78
|
+
- `payload.assetID`: **String** . optional
|
79
|
+
- `payload.assetURL`: **String** . optional
|
80
|
+
- `payload.mimeType`: **String** . optional
|
81
|
+
- `payload.originalFileName`: **String** . optional
|
82
|
+
- `payload.memoriID`: **String** . optional
|
83
|
+
- `payload.engineMemoryID`: **String** . optional
|
84
|
+
- `payload.creationTimestamp`: **String** . optional
|
85
|
+
- `payload.lastChangeTimestamp`: **String** . optional
|
86
|
+
|
87
|
+
## delete_asset
|
88
|
+
|
89
|
+
Summary:
|
90
|
+
Deletes a file and its corresponding Asset object.
|
91
|
+
|
92
|
+
Signature: `delete_asset(strToken:, fileName:)`
|
93
|
+
Invocation: `MemoriClient::Backend::V2::Asset.delete_asset(strToken:, fileName:)`
|
94
|
+
|
95
|
+
HTTP API: DELETE /api/v2/Asset/{strToken}/{fileName}`
|
96
|
+
|
97
|
+
Parameters:
|
98
|
+
|
99
|
+
- `strToken`: **string** The login token. required
|
100
|
+
- `fileName`: **string** Name of the Asset file. required
|
101
|
+
|
102
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::Badge`
|
2
|
+
|
3
|
+
## send_outcome
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Processes the specified outcome.
|
7
|
+
|
8
|
+
Signature: `send_outcome(strToken:, outcomeCode:)`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::Badge.send_outcome(strToken:, outcomeCode:)`
|
10
|
+
|
11
|
+
HTTP API: POST /api/v2/Outcome/{strToken}/{outcomeCode}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `outcomeCode`: **string** The outcome code. required
|
17
|
+
|
18
|
+
## badge_assignment_callback
|
19
|
+
|
20
|
+
Summary:
|
21
|
+
Processes a badge assignment.
|
22
|
+
|
23
|
+
Signature: `badge_assignment_callback(payload: {})`
|
24
|
+
Invocation: `MemoriClient::Backend::V2::Badge.badge_assignment_callback(payload: {})`
|
25
|
+
|
26
|
+
HTTP API: POST /api/v2/BadgeAssignment`
|
27
|
+
|
28
|
+
Parameters:
|
29
|
+
|
30
|
+
- `payload`: **Hash** request payload. optional
|
31
|
+
- `payload.refId`: **String** . required
|
32
|
+
- `payload.outcome`: **String** . required
|
33
|
+
- `payload.badgeUrl`: **String** . required
|
34
|
+
|
35
|
+
## list_badges
|
36
|
+
|
37
|
+
Summary:
|
38
|
+
Gets a list of Badge objects assigned to the currently logged in User.
|
39
|
+
|
40
|
+
Signature: `list_badges(strToken:)`
|
41
|
+
Invocation: `MemoriClient::Backend::V2::Badge.list_badges(strToken:)`
|
42
|
+
|
43
|
+
HTTP API: GET /api/v2/Badges/{strToken}`
|
44
|
+
|
45
|
+
Parameters:
|
46
|
+
|
47
|
+
- `strToken`: **string** The login token. required
|
48
|
+
|
49
|
+
## get_badge
|
50
|
+
|
51
|
+
Summary:
|
52
|
+
Gets a list of Badge objects assigned to the currently logged in User.
|
53
|
+
|
54
|
+
Signature: `get_badge(strToken:, strBadgeID:)`
|
55
|
+
Invocation: `MemoriClient::Backend::V2::Badge.get_badge(strToken:, strBadgeID:)`
|
56
|
+
|
57
|
+
HTTP API: GET /api/v2/Badge/{strToken}/{strBadgeID}`
|
58
|
+
|
59
|
+
Parameters:
|
60
|
+
|
61
|
+
- `strToken`: **string** The login token. required
|
62
|
+
- `strBadgeID`: **string** The ID of the Badge object. required
|
63
|
+
|
64
|
+
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::CompletionConfig`
|
2
|
+
|
3
|
+
## list_completion_configs
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Gets a list of Completion Config objects allowed for the user.
|
7
|
+
|
8
|
+
Signature: `list_completion_configs(strToken:, purpose: nil)`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::CompletionConfig.list_completion_configs(strToken:, purpose: nil)`
|
10
|
+
|
11
|
+
HTTP API: GET /api/v2/CompletionConfigs/{strToken}/{purpose}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `purpose`: **string** Optional filter on Completion Config purpose ("QA" for Question Answering, "IE" for Import/Export, "DT" for Deep Thought).. optional
|
17
|
+
|
18
|
+
## get_completion_config
|
19
|
+
|
20
|
+
Summary:
|
21
|
+
Gets the details of a Completion Config of a specific object
|
22
|
+
|
23
|
+
Signature: `get_completion_config(strToken:, strConfigID:)`
|
24
|
+
Invocation: `MemoriClient::Backend::V2::CompletionConfig.get_completion_config(strToken:, strConfigID:)`
|
25
|
+
|
26
|
+
HTTP API: GET /api/v2/CompletionConfig/{strToken}/{strConfigID}`
|
27
|
+
|
28
|
+
Parameters:
|
29
|
+
|
30
|
+
- `strToken`: **string** The login token. required
|
31
|
+
- `strConfigID`: **string** The Completion Config object ID. required
|
32
|
+
|
33
|
+
## update_completion_config
|
34
|
+
|
35
|
+
Summary:
|
36
|
+
Updates an existing Completion Config object. A user can only update a Completion Config object owned by him, unless it has administrative rights.
|
37
|
+
|
38
|
+
Signature: `update_completion_config(strToken:, strConfigID:, payload: {})`
|
39
|
+
Invocation: `MemoriClient::Backend::V2::CompletionConfig.update_completion_config(strToken:, strConfigID:, payload: {})`
|
40
|
+
|
41
|
+
HTTP API: PATCH /api/v2/CompletionConfig/{strToken}/{strConfigID}`
|
42
|
+
|
43
|
+
Parameters:
|
44
|
+
|
45
|
+
- `strToken`: **string** The login token. required
|
46
|
+
- `strConfigID`: **string** The ID of the Completion Config object. required
|
47
|
+
- `payload`: **Hash** request payload. optional
|
48
|
+
- `payload.completionConfigID`: **String** . optional
|
49
|
+
- `payload.configName`: **String** . optional
|
50
|
+
- `payload.description`: **String** . optional
|
51
|
+
- `payload.provider`: **String** . optional
|
52
|
+
- `payload.endPoint`: **String** . optional
|
53
|
+
- `payload.apiKey`: **String** . optional
|
54
|
+
- `payload.model`: **String** . optional
|
55
|
+
- `payload.questionAnsweringEnabled`: **Boolean** . optional
|
56
|
+
- `payload.importExportEnabled`: **Boolean** . optional
|
57
|
+
- `payload.deepThoughtEnabled`: **Boolean** . optional
|
58
|
+
- `payload.ownerUserID`: **String** . optional
|
59
|
+
- `payload.ownerUserName`: **String** . optional
|
60
|
+
- `payload.ownerTenantName`: **String** . optional
|
61
|
+
- `payload.visibleToTenantUsers`: **Boolean** . optional
|
62
|
+
- `payload.visibleToOtherUsers`: **Boolean** . optional
|
63
|
+
- `payload.useAsDefault`: **Boolean** . optional
|
64
|
+
- `payload.chargeable`: **Boolean** . optional
|
65
|
+
- `payload.applyTo`: **String** . optional
|
66
|
+
|
67
|
+
## delete_completion_config
|
68
|
+
|
69
|
+
Summary:
|
70
|
+
Deletes an existing Completion Config object. A user can only delete a Completion Config object owned by him, unless it has administrative rights.
|
71
|
+
|
72
|
+
Signature: `delete_completion_config(strToken:, strConfigID:)`
|
73
|
+
Invocation: `MemoriClient::Backend::V2::CompletionConfig.delete_completion_config(strToken:, strConfigID:)`
|
74
|
+
|
75
|
+
HTTP API: DELETE /api/v2/CompletionConfig/{strToken}/{strConfigID}`
|
76
|
+
|
77
|
+
Parameters:
|
78
|
+
|
79
|
+
- `strToken`: **string** The login token. required
|
80
|
+
- `strConfigID`: **string** The ID of the Completion Config object. required
|
81
|
+
|
82
|
+
## add_completion_config
|
83
|
+
|
84
|
+
Summary:
|
85
|
+
Creates a new Completion Config object. The created Completion Config object is owned by the currently logged-in user.
|
86
|
+
|
87
|
+
Signature: `add_completion_config(strToken:, payload: {})`
|
88
|
+
Invocation: `MemoriClient::Backend::V2::CompletionConfig.add_completion_config(strToken:, payload: {})`
|
89
|
+
|
90
|
+
HTTP API: POST /api/v2/CompletionConfig/{strToken}`
|
91
|
+
|
92
|
+
Parameters:
|
93
|
+
|
94
|
+
- `strToken`: **string** The login token. required
|
95
|
+
- `payload`: **Hash** request payload. optional
|
96
|
+
- `payload.completionConfigID`: **String** . optional
|
97
|
+
- `payload.configName`: **String** . optional
|
98
|
+
- `payload.description`: **String** . optional
|
99
|
+
- `payload.provider`: **String** . optional
|
100
|
+
- `payload.endPoint`: **String** . optional
|
101
|
+
- `payload.apiKey`: **String** . optional
|
102
|
+
- `payload.model`: **String** . optional
|
103
|
+
- `payload.questionAnsweringEnabled`: **Boolean** . optional
|
104
|
+
- `payload.importExportEnabled`: **Boolean** . optional
|
105
|
+
- `payload.deepThoughtEnabled`: **Boolean** . optional
|
106
|
+
- `payload.ownerUserID`: **String** . optional
|
107
|
+
- `payload.ownerUserName`: **String** . optional
|
108
|
+
- `payload.ownerTenantName`: **String** . optional
|
109
|
+
- `payload.visibleToTenantUsers`: **Boolean** . optional
|
110
|
+
- `payload.visibleToOtherUsers`: **Boolean** . optional
|
111
|
+
- `payload.useAsDefault`: **Boolean** . optional
|
112
|
+
- `payload.chargeable`: **Boolean** . optional
|
113
|
+
- `payload.applyTo`: **String** . optional
|
114
|
+
|
115
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Module `MemoriClient::Backend::V2::ConsumptionLog`
|
2
|
+
|
3
|
+
## get_tenant_consumption_logs
|
4
|
+
|
5
|
+
Summary:
|
6
|
+
Gets the Consumption Log objects for a specific Tenant in a specific date interval.
|
7
|
+
|
8
|
+
Signature: `get_tenant_consumption_logs(strToken:, tenantName:, strType:, strDateFrom: nil, strDateTo: nil)`
|
9
|
+
Invocation: `MemoriClient::Backend::V2::ConsumptionLog.get_tenant_consumption_logs(strToken:, tenantName:, strType:, strDateFrom: nil, strDateTo: nil)`
|
10
|
+
|
11
|
+
HTTP API: GET /api/v2/TenantConsumptionLogs/{strToken}/{tenantName}/{strType}/{strDateFrom}/{strDateTo}`
|
12
|
+
|
13
|
+
Parameters:
|
14
|
+
|
15
|
+
- `strToken`: **string** The login token. required
|
16
|
+
- `tenantName`: **string** The name of the Tenant. required
|
17
|
+
- `strType`: **string** Type of consumption (i.e. granularity), it may either be Daily or Monthly. required
|
18
|
+
- `strDateFrom`: **string** The optional begin of the date interval, in UTC time, in the format yyyyMMdd. optional
|
19
|
+
- `strDateTo`: **string** The optional end of the date interval, in UTC time, in the format yyyyMMdd. optional
|
20
|
+
|
21
|
+
## get_user_consumption_logs
|
22
|
+
|
23
|
+
Summary:
|
24
|
+
Gets the Consumption Log objects for a specific User in a specific date interval.
|
25
|
+
|
26
|
+
Signature: `get_user_consumption_logs(strToken:, strUserID:, strType:, strDateFrom: nil, strDateTo: nil)`
|
27
|
+
Invocation: `MemoriClient::Backend::V2::ConsumptionLog.get_user_consumption_logs(strToken:, strUserID:, strType:, strDateFrom: nil, strDateTo: nil)`
|
28
|
+
|
29
|
+
HTTP API: GET /api/v2/UserConsumptionLogs/{strToken}/{strUserID}/{strType}/{strDateFrom}/{strDateTo}`
|
30
|
+
|
31
|
+
Parameters:
|
32
|
+
|
33
|
+
- `strToken`: **string** The login token. required
|
34
|
+
- `strUserID`: **string** The ID of the User object. required
|
35
|
+
- `strType`: **string** Type of consumption (i.e. granularity), it may either be Daily or Monthly. required
|
36
|
+
- `strDateFrom`: **string** The optional begin of the date interval, in UTC time, in the format yyyyMMdd. optional
|
37
|
+
- `strDateTo`: **string** The optional end of the date interval, in UTC time, in the format yyyyMMdd. optional
|
38
|
+
|
39
|
+
## get_memori_consumption_logs
|
40
|
+
|
41
|
+
Summary:
|
42
|
+
Gets the Consumption Log objects for a specific Memori in a specific date interval.
|
43
|
+
|
44
|
+
Signature: `get_memori_consumption_logs(strToken:, strMemoriID:, strType:, strDateFrom: nil, strDateTo: nil)`
|
45
|
+
Invocation: `MemoriClient::Backend::V2::ConsumptionLog.get_memori_consumption_logs(strToken:, strMemoriID:, strType:, strDateFrom: nil, strDateTo: nil)`
|
46
|
+
|
47
|
+
HTTP API: GET /api/v2/MemoriConsumptionLogs/{strToken}/{strMemoriID}/{strType}/{strDateFrom}/{strDateTo}`
|
48
|
+
|
49
|
+
Parameters:
|
50
|
+
|
51
|
+
- `strToken`: **string** The login token. required
|
52
|
+
- `strMemoriID`: **string** The ID of the Memori object. required
|
53
|
+
- `strType`: **string** Type of consumption (i.e. granularity), it may either be Daily or Monthly. required
|
54
|
+
- `strDateFrom`: **string** The optional begin of the date interval, in UTC time, in the format yyyyMMdd. optional
|
55
|
+
- `strDateTo`: **string** The optional end of the date interval, in UTC time, in the format yyyyMMdd. optional
|
56
|
+
|
57
|
+
|