memori-client 0.1.1 → 0.1.2
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/resources.rb +3 -0
- data/lib/memori_client/backend/v1/asset.rb +51 -25
- data/lib/memori_client/backend/v2/action_log.rb +19 -7
- data/lib/memori_client/backend/v2/analysis.rb +54 -0
- data/lib/memori_client/backend/v2/asset.rb +79 -23
- data/lib/memori_client/backend/v2/badge.rb +34 -17
- data/lib/memori_client/backend/v2/completion_config.rb +202 -0
- data/lib/memori_client/backend/v2/consumption_log.rb +31 -10
- data/lib/memori_client/backend/v2/import_export.rb +244 -80
- data/lib/memori_client/backend/v2/integration.rb +95 -47
- data/lib/memori_client/backend/v2/invitation.rb +127 -61
- data/lib/memori_client/backend/v2/memori.rb +652 -313
- data/lib/memori_client/backend/v2/memori_list.rb +65 -31
- data/lib/memori_client/backend/v2/notification.rb +13 -7
- data/lib/memori_client/backend/v2/process.rb +70 -0
- data/lib/memori_client/backend/v2/tenant.rb +192 -102
- data/lib/memori_client/backend/v2/user.rb +1058 -547
- data/lib/memori_client/engine/resources.rb +2 -3
- data/lib/memori_client/engine/v2/chat_log.rb +51 -13
- data/lib/memori_client/engine/v2/context_var.rb +20 -10
- data/lib/memori_client/engine/v2/correlation_pair.rb +48 -23
- data/lib/memori_client/engine/v2/custom_dictionary.rb +74 -35
- data/lib/memori_client/engine/v2/dialog.rb +107 -57
- data/lib/memori_client/engine/v2/event_log.rb +54 -13
- data/lib/memori_client/engine/v2/expert_reference.rb +92 -45
- data/lib/memori_client/engine/v2/function.rb +220 -0
- data/lib/memori_client/engine/v2/intent.rb +175 -85
- data/lib/memori_client/engine/v2/localization_key.rb +72 -36
- data/lib/memori_client/engine/v2/medium.rb +92 -43
- data/lib/memori_client/engine/v2/memory.rb +341 -89
- data/lib/memori_client/engine/v2/nlp.rb +65 -128
- data/lib/memori_client/engine/v2/person.rb +88 -43
- data/lib/memori_client/engine/v2/search.rb +240 -52
- data/lib/memori_client/engine/v2/session.rb +41 -22
- data/lib/memori_client/engine/v2/stat.rb +8 -40
- data/lib/memori_client/engine/v2/topic.rb +88 -0
- data/lib/memori_client/engine/v2/unanswered_question.rb +54 -26
- data/lib/memori_client/engine/v2/user.rb +114 -14
- data/lib/memori_client/engine/v2/web_hook.rb +80 -34
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f675f054951f807d98bebddf4be54751ec274b65748b3f2eb0b0e529ce9e1ef1
|
4
|
+
data.tar.gz: ad95a4e560bc59d1e4ff728b741b49d0544b7e9e7c4e5ea9a408900755bd85f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 408417ff5fd64f6a853c4ca03ed94c14641f91452d981f65db9ab521e57773aa2295e2472842c03c1c12fb7fe274d1735fd66fa400c072a41832c48788757724
|
7
|
+
data.tar.gz: 281ec055e3b9f4351ce52ab9dd076b4954580e8ce0796ec7ca83933afc1ffeb168f7261a55f4627dfa3f0c5c470691e07c45669a8d05b0eb14708344c65a9c0e
|
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'memori_client/backend/v2/action_log.rb'
|
2
|
+
require 'memori_client/backend/v2/analysis.rb'
|
2
3
|
require 'memori_client/backend/v2/asset.rb'
|
3
4
|
require 'memori_client/backend/v1/asset.rb'
|
4
5
|
require 'memori_client/backend/v2/badge.rb'
|
6
|
+
require 'memori_client/backend/v2/completion_config.rb'
|
5
7
|
require 'memori_client/backend/v2/consumption_log.rb'
|
6
8
|
require 'memori_client/backend/v2/import_export.rb'
|
7
9
|
require 'memori_client/backend/v2/integration.rb'
|
@@ -9,5 +11,6 @@ require 'memori_client/backend/v2/invitation.rb'
|
|
9
11
|
require 'memori_client/backend/v2/memori.rb'
|
10
12
|
require 'memori_client/backend/v2/memori_list.rb'
|
11
13
|
require 'memori_client/backend/v2/notification.rb'
|
14
|
+
require 'memori_client/backend/v2/process.rb'
|
12
15
|
require 'memori_client/backend/v2/tenant.rb'
|
13
16
|
require 'memori_client/backend/v2/user.rb'
|
@@ -1,89 +1,115 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V1::Asset < MemoriClient::Backend::Resource
|
3
|
-
# GET /api/v1/GuidAsset/{assetID}
|
3
|
+
# `GET /api/v1/GuidAsset/{assetID}`
|
4
|
+
#
|
4
5
|
# Downloads a file from an old Guid asset file URL, such as ```guid://<assetID>.<ext>```.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] assetID ID of the old Guid asset file. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# `download_old_guid_asset(assetID:)`
|
8
11
|
def self.download_old_guid_asset(assetID:)
|
9
12
|
args = build_arguments(binding)
|
10
13
|
|
11
14
|
exec_http_request('get', '/api/v1/GuidAsset/{assetID}', **args)
|
12
15
|
end
|
13
16
|
|
14
|
-
# GET /api/v1/memoriai/memory/media/{assetID}
|
17
|
+
# `GET /api/v1/memoriai/memory/media/{assetID}`
|
18
|
+
#
|
15
19
|
# Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/media/<assetID>.<ext>```.
|
16
|
-
#
|
20
|
+
#
|
21
|
+
#
|
17
22
|
# @param [string] assetID ID of the old Guid asset file. required
|
18
|
-
#
|
23
|
+
#
|
24
|
+
# `download_old_alternative_guid_asset(assetID:)`
|
19
25
|
def self.download_old_alternative_guid_asset(assetID:)
|
20
26
|
args = build_arguments(binding)
|
21
27
|
|
22
28
|
exec_http_request('get', '/api/v1/memoriai/memory/media/{assetID}', **args)
|
23
29
|
end
|
24
30
|
|
25
|
-
# GET /api/v1/memoriai/memory/{strMemoryID}/media/{assetID}
|
31
|
+
# `GET /api/v1/memoriai/memory/{strMemoryID}/media/{assetID}`
|
32
|
+
#
|
26
33
|
# Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/<memoryID>/media/<assetID>.<ext>```.
|
27
|
-
#
|
34
|
+
#
|
35
|
+
#
|
28
36
|
# @param [string] strMemoryID ID of the engine Memory object (ignored). required
|
37
|
+
#
|
29
38
|
# @param [string] assetID ID of the old Guid asset file. required
|
30
|
-
#
|
39
|
+
#
|
40
|
+
# `download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)`
|
31
41
|
def self.download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)
|
32
42
|
args = build_arguments(binding)
|
33
43
|
|
34
44
|
exec_http_request('get', '/api/v1/memoriai/memory/{strMemoryID}/media/{assetID}', **args)
|
35
45
|
end
|
36
46
|
|
37
|
-
# GET /api/v1/CloudAsset/{assetID}
|
47
|
+
# `GET /api/v1/CloudAsset/{assetID}`
|
48
|
+
#
|
38
49
|
# Downloads a file from an old Cloud asset file URL, such as ```cloud://<path>/<assetID>.<ext>```.
|
39
|
-
#
|
50
|
+
#
|
51
|
+
#
|
40
52
|
# @param [string] assetID ID of the old Cloud asset file. required
|
41
|
-
#
|
53
|
+
#
|
54
|
+
# `download_old_cloud_asset(assetID:)`
|
42
55
|
def self.download_old_cloud_asset(assetID:)
|
43
56
|
args = build_arguments(binding)
|
44
57
|
|
45
58
|
exec_http_request('get', '/api/v1/CloudAsset/{assetID}', **args)
|
46
59
|
end
|
47
60
|
|
48
|
-
# GET /api/v1/memoriai/memory/media/cloud/{assetID}
|
61
|
+
# `GET /api/v1/memoriai/memory/media/cloud/{assetID}`
|
62
|
+
#
|
49
63
|
# Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/media/cloud/<path>/<assetID>.<ext>```.
|
50
|
-
#
|
64
|
+
#
|
65
|
+
#
|
51
66
|
# @param [string] assetID ID of the old asset file. required
|
52
|
-
#
|
67
|
+
#
|
68
|
+
# `download_old_asset(assetID:)`
|
53
69
|
def self.download_old_asset(assetID:)
|
54
70
|
args = build_arguments(binding)
|
55
71
|
|
56
72
|
exec_http_request('get', '/api/v1/memoriai/memory/media/cloud/{assetID}', **args)
|
57
73
|
end
|
58
74
|
|
59
|
-
# GET /api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}
|
75
|
+
# `GET /api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}`
|
76
|
+
#
|
60
77
|
# Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/<memoryID>/media/cloud/<path>/<assetID>.<ext>```.
|
61
|
-
#
|
78
|
+
#
|
79
|
+
#
|
62
80
|
# @param [string] strMemoryID ID of the engine Memory object. required
|
81
|
+
#
|
63
82
|
# @param [string] assetID ID of the old asset file. required
|
64
|
-
#
|
83
|
+
#
|
84
|
+
# `download_old_asset_with_memory_check(strMemoryID:, assetID:)`
|
65
85
|
def self.download_old_asset_with_memory_check(strMemoryID:, assetID:)
|
66
86
|
args = build_arguments(binding)
|
67
87
|
|
68
88
|
exec_http_request('get', '/api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}', **args)
|
69
89
|
end
|
70
90
|
|
71
|
-
# GET /api/v1/memoriai/memori/cover/{strMemoriID}
|
91
|
+
# `GET /api/v1/memoriai/memori/cover/{strMemoriID}`
|
92
|
+
#
|
72
93
|
# Downloads the cover file from an old cover asset URL, sucs as ```/api/v1/memoriai/memori/cover/<memoriID>```.
|
73
|
-
#
|
94
|
+
#
|
95
|
+
#
|
74
96
|
# @param [string] strMemoriID ID of the engine Memori object. required
|
75
|
-
#
|
97
|
+
#
|
98
|
+
# `download_old_cover_asset(strMemoriID:)`
|
76
99
|
def self.download_old_cover_asset(strMemoriID:)
|
77
100
|
args = build_arguments(binding)
|
78
101
|
|
79
102
|
exec_http_request('get', '/api/v1/memoriai/memori/cover/{strMemoriID}', **args)
|
80
103
|
end
|
81
104
|
|
82
|
-
# GET /api/v1/memoriai/memori/avatar/{strMemoriID}
|
105
|
+
# `GET /api/v1/memoriai/memori/avatar/{strMemoriID}`
|
106
|
+
#
|
83
107
|
# Downloads the avatar file from an old avatar asset URL, sucs as ```/api/v1/memoriai/memori/avatar/<memoriID>```.
|
84
|
-
#
|
108
|
+
#
|
109
|
+
#
|
85
110
|
# @param [string] strMemoriID ID of the engine Memori object. required
|
86
|
-
#
|
111
|
+
#
|
112
|
+
# `download_old_avatar_asset(strMemoriID:)`
|
87
113
|
def self.download_old_avatar_asset(strMemoriID:)
|
88
114
|
args = build_arguments(binding)
|
89
115
|
|
@@ -1,27 +1,39 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::ActionLog < MemoriClient::Backend::Resource
|
3
|
-
# GET /api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}
|
3
|
+
# `GET /api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}`
|
4
|
+
#
|
4
5
|
# Gets the Action Log objects for a specific User in a specific date interval.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strToken The login token. required
|
9
|
+
#
|
7
10
|
# @param [string] strUserID The ID of the User object. required
|
11
|
+
#
|
8
12
|
# @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
13
|
+
#
|
9
14
|
# @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
10
|
-
#
|
15
|
+
#
|
16
|
+
# `get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)`
|
11
17
|
def self.get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)
|
12
18
|
args = build_arguments(binding)
|
13
19
|
|
14
20
|
exec_http_request('get', '/api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}', **args)
|
15
21
|
end
|
16
22
|
|
17
|
-
# GET /api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}
|
23
|
+
# `GET /api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}`
|
24
|
+
#
|
18
25
|
# Gets the Action Log objects for a specific Memori in a specific date interval.
|
19
|
-
#
|
26
|
+
#
|
27
|
+
#
|
20
28
|
# @param [string] strToken The login token. required
|
29
|
+
#
|
21
30
|
# @param [string] strMemoriID The ID of the Memori object. required
|
31
|
+
#
|
22
32
|
# @param [string] strDateFrom The optional begin of the date interval, in the format yyyyMMddHHmmssfff. optional
|
33
|
+
#
|
23
34
|
# @param [string] strDateTo The optional end of the date interval, in the format yyyyMMddHHmmssfff. optional
|
24
|
-
#
|
35
|
+
#
|
36
|
+
# `get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)`
|
25
37
|
def self.get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)
|
26
38
|
args = build_arguments(binding)
|
27
39
|
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
|
+
class MemoriClient::Backend::V2::Analysis < MemoriClient::Backend::Resource
|
3
|
+
# `POST /api/v2/Analysis/AnalyzeUserQuery/{strToken}/{strMemoriID}`
|
4
|
+
#
|
5
|
+
# Starts an Analysis process for User/query match on Deep Thought known facts.
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# @param [string] strToken The login token. required
|
9
|
+
#
|
10
|
+
# @param [string] strMemoriID The ID of the Memori object. required
|
11
|
+
#
|
12
|
+
# @param [Hash] payload request payload. optional
|
13
|
+
#
|
14
|
+
# @param [String] payload.query . optional
|
15
|
+
#
|
16
|
+
# @param [Number] payload.threshold . optional
|
17
|
+
#
|
18
|
+
# `analyze_user_query(strToken:, strMemoriID:, payload: {})`
|
19
|
+
def self.analyze_user_query(strToken:, strMemoriID:, payload: {})
|
20
|
+
args = build_arguments(binding)
|
21
|
+
payload_keys = [
|
22
|
+
'query',
|
23
|
+
'threshold',
|
24
|
+
]
|
25
|
+
payload_required_keys = %w[]
|
26
|
+
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
27
|
+
|
28
|
+
exec_http_request('post', '/api/v2/Analysis/AnalyzeUserQuery/{strToken}/{strMemoriID}', **args)
|
29
|
+
end
|
30
|
+
|
31
|
+
# `GET /api/v2/Analysis/UserQueryMatches/{strToken}/{strAnalysisID}/{from}/{howMany}/{threshold}`
|
32
|
+
#
|
33
|
+
# Lists Deep Thought User/query Match objects of the specified Analysis object, with pagination.
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# @param [string] strToken The login token. required
|
37
|
+
#
|
38
|
+
# @param [string] strAnalysisID The Analysis process ID. required
|
39
|
+
#
|
40
|
+
# @param [integer] from The 0-based index of the first Match object to list. required
|
41
|
+
#
|
42
|
+
# @param [integer] howMany The number of the Match objects to list. required
|
43
|
+
#
|
44
|
+
# @param [number] threshold Optional threshold between 0.0 and 1.0: Match objects below the threshold are excluded from the list. optional
|
45
|
+
#
|
46
|
+
# `list_user_query_matches(strToken:, strAnalysisID:, from:, howMany:, threshold: nil)`
|
47
|
+
def self.list_user_query_matches(strToken:, strAnalysisID:, from:, howMany:, threshold: nil)
|
48
|
+
args = build_arguments(binding)
|
49
|
+
|
50
|
+
exec_http_request('get', '/api/v2/Analysis/UserQueryMatches/{strToken}/{strAnalysisID}/{from}/{howMany}/{threshold}', **args)
|
51
|
+
end
|
52
|
+
|
53
|
+
|
54
|
+
end
|
@@ -1,45 +1,97 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::Asset < MemoriClient::Backend::Resource
|
3
|
-
# POST /api/v2/Asset/{strToken}/{strMemoriID}/{strEngineMemoryID}
|
3
|
+
# `POST /api/v2/Asset/{strToken}/{strMemoriID}/{strEngineMemoryID}`
|
4
|
+
#
|
4
5
|
# Uploads a file and creates a new Asset object to access it.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strToken The login token. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# @param [string] strMemoriID The optional ID of a Memori object the Asset belongs to. optional
|
11
|
+
#
|
8
12
|
# @param [string] strEngineMemoryID The optional ID of an Engine Memory object the Asset belogs to. optional
|
9
|
-
#
|
13
|
+
#
|
14
|
+
# `upload_asset(strToken:, strMemoriID: nil, strEngineMemoryID: nil)`
|
10
15
|
def self.upload_asset(strToken:, strMemoriID: nil, strEngineMemoryID: nil)
|
11
16
|
args = build_arguments(binding)
|
12
17
|
|
13
18
|
exec_http_request('post', '/api/v2/Asset/{strToken}/{strMemoriID}/{strEngineMemoryID}', **args)
|
14
19
|
end
|
15
20
|
|
16
|
-
# GET /api/v2/
|
21
|
+
# `GET /api/v2/AssetDetails/{strToken}/{fileName}`
|
22
|
+
#
|
23
|
+
# Gets the details of an Asset object.
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @param [string] strToken The login token. required
|
27
|
+
#
|
28
|
+
# @param [string] fileName Name of the Asset file. required
|
29
|
+
#
|
30
|
+
# `get_asset_details(strToken:, fileName:)`
|
31
|
+
def self.get_asset_details(strToken:, fileName:)
|
32
|
+
args = build_arguments(binding)
|
33
|
+
|
34
|
+
exec_http_request('get', '/api/v2/AssetDetails/{strToken}/{fileName}', **args)
|
35
|
+
end
|
36
|
+
|
37
|
+
# `GET /api/v2/Assets/{strToken}`
|
38
|
+
#
|
39
|
+
# Gets a list of Asset objects owned the currently logged in User.
|
40
|
+
#
|
41
|
+
#
|
42
|
+
# @param [string] strToken The login token. required
|
43
|
+
#
|
44
|
+
# `list_sent_invitations(strToken:)`
|
45
|
+
def self.list_sent_invitations(strToken:)
|
46
|
+
args = build_arguments(binding)
|
47
|
+
|
48
|
+
exec_http_request('get', '/api/v2/Assets/{strToken}', **args)
|
49
|
+
end
|
50
|
+
|
51
|
+
# `GET /api/v2/Asset/{fileName}/{memoriSessionID}`
|
52
|
+
#
|
17
53
|
# Downloads a file from an Asset object.
|
18
|
-
#
|
54
|
+
#
|
55
|
+
#
|
19
56
|
# @param [string] fileName Name of the Asset file. required
|
57
|
+
#
|
20
58
|
# @param [string] memoriSessionID Optional ID of an Engine Memori session. optional
|
21
|
-
#
|
59
|
+
#
|
60
|
+
# `download_asset(fileName:, memoriSessionID: nil)`
|
22
61
|
def self.download_asset(fileName:, memoriSessionID: nil)
|
23
62
|
args = build_arguments(binding)
|
24
63
|
|
25
64
|
exec_http_request('get', '/api/v2/Asset/{fileName}/{memoriSessionID}', **args)
|
26
65
|
end
|
27
66
|
|
28
|
-
# PATCH /api/v2/Asset/{strToken}/{fileName}
|
67
|
+
# `PATCH /api/v2/Asset/{strToken}/{fileName}`
|
68
|
+
#
|
29
69
|
# Updates an Asset object.
|
30
|
-
#
|
70
|
+
#
|
71
|
+
#
|
31
72
|
# @param [string] strToken The login token. required
|
73
|
+
#
|
32
74
|
# @param [string] fileName Name of the Asset file. required
|
33
|
-
#
|
34
|
-
# @param [
|
35
|
-
#
|
36
|
-
# @param [
|
37
|
-
#
|
38
|
-
# @param [
|
39
|
-
#
|
40
|
-
# @param [
|
41
|
-
#
|
42
|
-
#
|
75
|
+
#
|
76
|
+
# @param [Hash] payload request payload. optional
|
77
|
+
#
|
78
|
+
# @param [String] payload.assetID . optional
|
79
|
+
#
|
80
|
+
# @param [String] payload.assetURL . optional
|
81
|
+
#
|
82
|
+
# @param [String] payload.mimeType . optional
|
83
|
+
#
|
84
|
+
# @param [String] payload.originalFileName . optional
|
85
|
+
#
|
86
|
+
# @param [String] payload.memoriID . optional
|
87
|
+
#
|
88
|
+
# @param [String] payload.engineMemoryID . optional
|
89
|
+
#
|
90
|
+
# @param [String] payload.creationTimestamp . optional
|
91
|
+
#
|
92
|
+
# @param [String] payload.lastChangeTimestamp . optional
|
93
|
+
#
|
94
|
+
# `update_asset(strToken:, fileName:, payload: {})`
|
43
95
|
def self.update_asset(strToken:, fileName:, payload: {})
|
44
96
|
args = build_arguments(binding)
|
45
97
|
payload_keys = [
|
@@ -58,12 +110,16 @@ class MemoriClient::Backend::V2::Asset < MemoriClient::Backend::Resource
|
|
58
110
|
exec_http_request('patch', '/api/v2/Asset/{strToken}/{fileName}', **args)
|
59
111
|
end
|
60
112
|
|
61
|
-
# DELETE /api/v2/Asset/{strToken}/{fileName}
|
113
|
+
# `DELETE /api/v2/Asset/{strToken}/{fileName}`
|
114
|
+
#
|
62
115
|
# Deletes a file and its corresponding Asset object.
|
63
|
-
#
|
116
|
+
#
|
117
|
+
#
|
64
118
|
# @param [string] strToken The login token. required
|
119
|
+
#
|
65
120
|
# @param [string] fileName Name of the Asset file. required
|
66
|
-
#
|
121
|
+
#
|
122
|
+
# `delete_asset(strToken:, fileName:)`
|
67
123
|
def self.delete_asset(strToken:, fileName:)
|
68
124
|
args = build_arguments(binding)
|
69
125
|
|
@@ -1,25 +1,35 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::Badge < MemoriClient::Backend::Resource
|
3
|
-
# POST /api/v2/Outcome/{strToken}/{outcomeCode}
|
3
|
+
# `POST /api/v2/Outcome/{strToken}/{outcomeCode}`
|
4
|
+
#
|
4
5
|
# Processes the specified outcome.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strToken The login token. required
|
9
|
+
#
|
7
10
|
# @param [string] outcomeCode The outcome code. required
|
8
|
-
#
|
11
|
+
#
|
12
|
+
# `send_outcome(strToken:, outcomeCode:)`
|
9
13
|
def self.send_outcome(strToken:, outcomeCode:)
|
10
14
|
args = build_arguments(binding)
|
11
15
|
|
12
16
|
exec_http_request('post', '/api/v2/Outcome/{strToken}/{outcomeCode}', **args)
|
13
17
|
end
|
14
18
|
|
15
|
-
# POST /api/v2/BadgeAssignment
|
19
|
+
# `POST /api/v2/BadgeAssignment`
|
20
|
+
#
|
16
21
|
# Processes a badge assignment.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
# @param [
|
20
|
-
#
|
21
|
-
# @param [
|
22
|
-
#
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# @param [Hash] payload request payload. optional
|
25
|
+
#
|
26
|
+
# @param [String] payload.refId . required
|
27
|
+
#
|
28
|
+
# @param [String] payload.outcome . required
|
29
|
+
#
|
30
|
+
# @param [String] payload.badgeUrl . required
|
31
|
+
#
|
32
|
+
# `badge_assignment_callback(payload: {})`
|
23
33
|
def self.badge_assignment_callback(payload: {})
|
24
34
|
args = build_arguments(binding)
|
25
35
|
payload_keys = [
|
@@ -33,23 +43,30 @@ class MemoriClient::Backend::V2::Badge < MemoriClient::Backend::Resource
|
|
33
43
|
exec_http_request('post', '/api/v2/BadgeAssignment', **args)
|
34
44
|
end
|
35
45
|
|
36
|
-
# GET /api/v2/Badges/{strToken}
|
46
|
+
# `GET /api/v2/Badges/{strToken}`
|
47
|
+
#
|
37
48
|
# Gets a list of Badge objects assigned to the currently logged in User.
|
38
|
-
#
|
49
|
+
#
|
50
|
+
#
|
39
51
|
# @param [string] strToken The login token. required
|
40
|
-
#
|
52
|
+
#
|
53
|
+
# `list_badges(strToken:)`
|
41
54
|
def self.list_badges(strToken:)
|
42
55
|
args = build_arguments(binding)
|
43
56
|
|
44
57
|
exec_http_request('get', '/api/v2/Badges/{strToken}', **args)
|
45
58
|
end
|
46
59
|
|
47
|
-
# GET /api/v2/Badge/{strToken}/{strBadgeID}
|
60
|
+
# `GET /api/v2/Badge/{strToken}/{strBadgeID}`
|
61
|
+
#
|
48
62
|
# Gets a list of Badge objects assigned to the currently logged in User.
|
49
|
-
#
|
63
|
+
#
|
64
|
+
#
|
50
65
|
# @param [string] strToken The login token. required
|
66
|
+
#
|
51
67
|
# @param [string] strBadgeID The ID of the Badge object. required
|
52
|
-
#
|
68
|
+
#
|
69
|
+
# `get_badge(strToken:, strBadgeID:)`
|
53
70
|
def self.get_badge(strToken:, strBadgeID:)
|
54
71
|
args = build_arguments(binding)
|
55
72
|
|