memori-client 0.1.9 → 0.2.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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/backend_overrides.jsonc +4 -0
  3. data/engine_overrides.jsonc +3 -0
  4. data/lib/memori_client/client.rb +49 -0
  5. data/lib/memori_client/client_factory.rb +105 -0
  6. data/lib/memori_client/engine/hmac_helper.rb +1 -1
  7. data/lib/memori_client/http_client.rb +4 -17
  8. data/lib/memori_client/operation.rb +132 -0
  9. data/lib/memori_client/proxy/client.rb +115 -0
  10. data/lib/memori_client/resource.rb +174 -26
  11. data/lib/memori_client/resource_proxy.rb +25 -0
  12. data/lib/memori_client/response.rb +48 -0
  13. data/lib/memori_client/swagger/get_module_and_method.rb +44 -0
  14. data/lib/memori_client/swagger/process_specification.rb +127 -0
  15. data/lib/memori_client/swagger/schema_store.rb +26 -0
  16. data/lib/memori_client.rb +14 -42
  17. data/lib/tasks/memori_client.rake +0 -7
  18. metadata +17 -90
  19. data/doc/MemoriClient::Backend::V1::Asset.md +0 -117
  20. data/doc/MemoriClient::Backend::V2::ActionLog.md +0 -37
  21. data/doc/MemoriClient::Backend::V2::Analysis.md +0 -39
  22. data/doc/MemoriClient::Backend::V2::Asset.md +0 -102
  23. data/doc/MemoriClient::Backend::V2::Badge.md +0 -64
  24. data/doc/MemoriClient::Backend::V2::CompletionConfig.md +0 -115
  25. data/doc/MemoriClient::Backend::V2::ConsumptionLog.md +0 -57
  26. data/doc/MemoriClient::Backend::V2::ImportExport.md +0 -180
  27. data/doc/MemoriClient::Backend::V2::Integration.md +0 -117
  28. data/doc/MemoriClient::Backend::V2::Invitation.md +0 -179
  29. data/doc/MemoriClient::Backend::V2::Memori.md +0 -394
  30. data/doc/MemoriClient::Backend::V2::MemoriList.md +0 -147
  31. data/doc/MemoriClient::Backend::V2::Notification.md +0 -31
  32. data/doc/MemoriClient::Backend::V2::Process.md +0 -64
  33. data/doc/MemoriClient::Backend::V2::Tenant.md +0 -142
  34. data/doc/MemoriClient::Backend::V2::User.md +0 -647
  35. data/doc/MemoriClient::Engine::V2::ChatLog.md +0 -82
  36. data/doc/MemoriClient::Engine::V2::ContextVar.md +0 -46
  37. data/doc/MemoriClient::Engine::V2::CorrelationPair.md +0 -72
  38. data/doc/MemoriClient::Engine::V2::CustomDictionary.md +0 -108
  39. data/doc/MemoriClient::Engine::V2::Dialog.md +0 -152
  40. data/doc/MemoriClient::Engine::V2::EventLog.md +0 -85
  41. data/doc/MemoriClient::Engine::V2::ExpertReference.md +0 -116
  42. data/doc/MemoriClient::Engine::V2::Function.md +0 -140
  43. data/doc/MemoriClient::Engine::V2::Intent.md +0 -225
  44. data/doc/MemoriClient::Engine::V2::LocalizationKey.md +0 -105
  45. data/doc/MemoriClient::Engine::V2::Medium.md +0 -118
  46. data/doc/MemoriClient::Engine::V2::Memory.md +0 -244
  47. data/doc/MemoriClient::Engine::V2::NLP.md +0 -100
  48. data/doc/MemoriClient::Engine::V2::Person.md +0 -114
  49. data/doc/MemoriClient::Engine::V2::Search.md +0 -151
  50. data/doc/MemoriClient::Engine::V2::Session.md +0 -55
  51. data/doc/MemoriClient::Engine::V2::Stat.md +0 -18
  52. data/doc/MemoriClient::Engine::V2::Topic.md +0 -80
  53. data/doc/MemoriClient::Engine::V2::UnansweredQuestion.md +0 -75
  54. data/doc/MemoriClient::Engine::V2::User.md +0 -140
  55. data/doc/MemoriClient::Engine::V2::WebHook.md +0 -67
  56. data/lib/memori_client/backend/resource.rb +0 -39
  57. data/lib/memori_client/backend/resources.rb +0 -16
  58. data/lib/memori_client/backend/v1/asset.rb +0 -120
  59. data/lib/memori_client/backend/v2/action_log.rb +0 -44
  60. data/lib/memori_client/backend/v2/analysis.rb +0 -54
  61. data/lib/memori_client/backend/v2/asset.rb +0 -130
  62. data/lib/memori_client/backend/v2/badge.rb +0 -77
  63. data/lib/memori_client/backend/v2/completion_config.rb +0 -202
  64. data/lib/memori_client/backend/v2/consumption_log.rb +0 -70
  65. data/lib/memori_client/backend/v2/import_export.rb +0 -327
  66. data/lib/memori_client/backend/v2/integration.rb +0 -180
  67. data/lib/memori_client/backend/v2/invitation.rb +0 -252
  68. data/lib/memori_client/backend/v2/memori.rb +0 -954
  69. data/lib/memori_client/backend/v2/memori_list.rb +0 -152
  70. data/lib/memori_client/backend/v2/notification.rb +0 -32
  71. data/lib/memori_client/backend/v2/process.rb +0 -70
  72. data/lib/memori_client/backend/v2/tenant.rb +0 -293
  73. data/lib/memori_client/backend/v2/user.rb +0 -1520
  74. data/lib/memori_client/configuration.rb +0 -20
  75. data/lib/memori_client/engine/resource.rb +0 -13
  76. data/lib/memori_client/engine/resources.rb +0 -21
  77. data/lib/memori_client/engine/v2/chat_log.rb +0 -92
  78. data/lib/memori_client/engine/v2/completion_log.rb +0 -17
  79. data/lib/memori_client/engine/v2/context_var.rb +0 -48
  80. data/lib/memori_client/engine/v2/correlation_pair.rb +0 -99
  81. data/lib/memori_client/engine/v2/custom_dictionary.rb +0 -152
  82. data/lib/memori_client/engine/v2/dialog.rb +0 -223
  83. data/lib/memori_client/engine/v2/event_log.rb +0 -98
  84. data/lib/memori_client/engine/v2/expert_reference.rb +0 -176
  85. data/lib/memori_client/engine/v2/function.rb +0 -220
  86. data/lib/memori_client/engine/v2/intent.rb +0 -336
  87. data/lib/memori_client/engine/v2/localization_key.rb +0 -144
  88. data/lib/memori_client/engine/v2/medium.rb +0 -178
  89. data/lib/memori_client/engine/v2/memori.rb +0 -329
  90. data/lib/memori_client/engine/v2/memory.rb +0 -477
  91. data/lib/memori_client/engine/v2/nlp.rb +0 -137
  92. data/lib/memori_client/engine/v2/person.rb +0 -170
  93. data/lib/memori_client/engine/v2/private/memori.rb +0 -17
  94. data/lib/memori_client/engine/v2/private/memori_block.rb +0 -24
  95. data/lib/memori_client/engine/v2/prompted_question.rb +0 -121
  96. data/lib/memori_client/engine/v2/search.rb +0 -318
  97. data/lib/memori_client/engine/v2/session.rb +0 -80
  98. data/lib/memori_client/engine/v2/stat.rb +0 -20
  99. data/lib/memori_client/engine/v2/topic.rb +0 -88
  100. data/lib/memori_client/engine/v2/unanswered_question.rb +0 -108
  101. data/lib/memori_client/engine/v2/user.rb +0 -152
  102. data/lib/memori_client/engine/v2/web_hook.rb +0 -128
@@ -1,80 +0,0 @@
1
- # Module `MemoriClient::Engine::V2::Topic`
2
-
3
- ## list_topics
4
-
5
- Summary:
6
- Lists all Topic objects.
7
-
8
- Signature: `list_topics(strSessionID:)`
9
- Invocation: `MemoriClient::Engine::V2::Topic.list_topics(strSessionID:)`
10
-
11
- HTTP API: GET /memori/v2/Topics/{strSessionID}`
12
-
13
- Parameters:
14
-
15
- - `strSessionID`: **string** The session ID. required
16
-
17
- ## list_topics_paginated
18
-
19
- Summary:
20
- Lists Topic objects with pagination.
21
-
22
- Signature: `list_topics_paginated(strSessionID:, from:, howMany:)`
23
- Invocation: `MemoriClient::Engine::V2::Topic.list_topics_paginated(strSessionID:, from:, howMany:)`
24
-
25
- HTTP API: GET /memori/v2/Topics/{strSessionID}/{from}/{howMany}`
26
-
27
- Parameters:
28
-
29
- - `strSessionID`: **string** The session ID. required
30
- - `from`: **integer** The 0-based index of the first Topic object to list. required
31
- - `howMany`: **integer** The number of the Topic objects to list. required
32
-
33
- ## get_topic
34
-
35
- Summary:
36
- Gets the details of a Topic object.
37
-
38
- Signature: `get_topic(strSessionID:, strTopicID:)`
39
- Invocation: `MemoriClient::Engine::V2::Topic.get_topic(strSessionID:, strTopicID:)`
40
-
41
- HTTP API: GET /memori/v2/Topic/{strSessionID}/{strTopicID}`
42
-
43
- Parameters:
44
-
45
- - `strSessionID`: **string** The session ID. required
46
- - `strTopicID`: **string** The Topic object ID. required
47
-
48
- ## list_topic_users
49
-
50
- Summary:
51
- Lists all User objects referencing a specified Topic object.
52
-
53
- Signature: `list_topic_users(strSessionID:, strTopicID:)`
54
- Invocation: `MemoriClient::Engine::V2::Topic.list_topic_users(strSessionID:, strTopicID:)`
55
-
56
- HTTP API: GET /memori/v2/TopicUsers/{strSessionID}/{strTopicID}`
57
-
58
- Parameters:
59
-
60
- - `strSessionID`: **string** The session ID. required
61
- - `strTopicID`: **string** The Topic object ID. required
62
-
63
- ## list_topic_users_paginated
64
-
65
- Summary:
66
- Lists User objects referencing a specified User object, with pagination.
67
-
68
- Signature: `list_topic_users_paginated(strSessionID:, strTopicID:, from:, howMany:)`
69
- Invocation: `MemoriClient::Engine::V2::Topic.list_topic_users_paginated(strSessionID:, strTopicID:, from:, howMany:)`
70
-
71
- HTTP API: GET /memori/v2/TopicUsers/{strSessionID}/{strTopicID}/{from}/{howMany}`
72
-
73
- Parameters:
74
-
75
- - `strSessionID`: **string** The session ID. required
76
- - `strTopicID`: **string** The Topic object ID. required
77
- - `from`: **integer** The 0-based index of the first User object to list. required
78
- - `howMany`: **integer** The number of User objects to list. required
79
-
80
-
@@ -1,75 +0,0 @@
1
- # Module `MemoriClient::Engine::V2::UnansweredQuestion`
2
-
3
- ## list_unanswered_questions
4
-
5
- Summary:
6
- Lists all Unanswered Question objects.
7
-
8
- Signature: `list_unanswered_questions(strSessionID:)`
9
- Invocation: `MemoriClient::Engine::V2::UnansweredQuestion.list_unanswered_questions(strSessionID:)`
10
-
11
- HTTP API: GET /memori/v2/UnansweredQuestions/{strSessionID}`
12
-
13
- Parameters:
14
-
15
- - `strSessionID`: **string** The session ID. required
16
-
17
- ## list_unanswered_questions_paginated
18
-
19
- Summary:
20
- Lists Unanswered Question objects with pagination.
21
-
22
- Signature: `list_unanswered_questions_paginated(strSessionID:, from:, howMany:)`
23
- Invocation: `MemoriClient::Engine::V2::UnansweredQuestion.list_unanswered_questions_paginated(strSessionID:, from:, howMany:)`
24
-
25
- HTTP API: GET /memori/v2/UnansweredQuestions/{strSessionID}/{from}/{howMany}`
26
-
27
- Parameters:
28
-
29
- - `strSessionID`: **string** The session ID. required
30
- - `from`: **integer** The 0-based index of the first Unanswered Question object to list. required
31
- - `howMany`: **integer** The number of the Unanswered Question objects to list. required
32
-
33
- ## add_unanswered_question
34
-
35
- Summary:
36
- Adds a new Unanswered Question object.
37
-
38
- Signature: `add_unanswered_question(strSessionID:, payload: {})`
39
- Invocation: `MemoriClient::Engine::V2::UnansweredQuestion.add_unanswered_question(strSessionID:, payload: {})`
40
-
41
- HTTP API: POST /memori/v2/UnansweredQuestion/{strSessionID}`
42
-
43
- Parameters:
44
-
45
- - `strSessionID`: **string** The session ID. required
46
- - `payload`: **Hash** request payload. optional
47
- - `payload.unansweredQuestionID`: **String** . optional
48
- - `payload.text`: **String** . optional
49
- - `payload.contextVars`: **Object** . optional
50
- - `payload.occurrences`: **Integer** . optional
51
- - `payload.receiverID`: **String** . optional
52
- - `payload.receiverTag`: **String** . optional
53
- - `payload.receiverName`: **String** . optional
54
- - `payload.suggestions`: **Array** . optional
55
- - `payload.creationTimestamp`: **String** . optional
56
- - `payload.creationSessionID`: **String** . optional
57
- - `payload.lastChangeTimestamp`: **String** . optional
58
- - `payload.lastChangeSessionID`: **String** . optional
59
-
60
- ## remove_unanswered_question
61
-
62
- Summary:
63
- Removes an existing Unanswered Question object.
64
-
65
- Signature: `remove_unanswered_question(strSessionID:, strUnansweredQuestionID:)`
66
- Invocation: `MemoriClient::Engine::V2::UnansweredQuestion.remove_unanswered_question(strSessionID:, strUnansweredQuestionID:)`
67
-
68
- HTTP API: DELETE /memori/v2/UnansweredQuestion/{strSessionID}/{strUnansweredQuestionID}`
69
-
70
- Parameters:
71
-
72
- - `strSessionID`: **string** The session ID. required
73
- - `strUnansweredQuestionID`: **string** The Unanswered Question object ID. required
74
-
75
-
@@ -1,140 +0,0 @@
1
- # Module `MemoriClient::Engine::V2::User`
2
-
3
- ## list_users
4
-
5
- Summary:
6
- Lists all User objects associated with the Memori of the current session.
7
-
8
- Signature: `list_users(strSessionID:)`
9
- Invocation: `MemoriClient::Engine::V2::User.list_users(strSessionID:)`
10
-
11
- HTTP API: GET /memori/v2/Users/{strSessionID}`
12
-
13
- Parameters:
14
-
15
- - `strSessionID`: **string** The session ID. required
16
-
17
- ## list_users_paginated
18
-
19
- Summary:
20
- Lists User objects associated with the Memori of the current session, with pagination.
21
-
22
- Signature: `list_users_paginated(strSessionID:, from:, howMany:)`
23
- Invocation: `MemoriClient::Engine::V2::User.list_users_paginated(strSessionID:, from:, howMany:)`
24
-
25
- HTTP API: GET /memori/v2/Users/{strSessionID}/{from}/{howMany}`
26
-
27
- Parameters:
28
-
29
- - `strSessionID`: **string** The session ID. required
30
- - `from`: **integer** The 0-based index of the first User to list. required
31
- - `howMany`: **integer** The number of User objects to list. required
32
-
33
- ## get_user
34
-
35
- Summary:
36
- Gets the details of a User object.
37
-
38
- Signature: `get_user(strSessionID:, strUserID:)`
39
- Invocation: `MemoriClient::Engine::V2::User.get_user(strSessionID:, strUserID:)`
40
-
41
- HTTP API: GET /memori/v2/User/{strSessionID}/{strUserID}`
42
-
43
- Parameters:
44
-
45
- - `strSessionID`: **string** The session ID. required
46
- - `strUserID`: **string** The User object ID. required
47
-
48
- ## list_user_topics
49
-
50
- Summary:
51
- Lists all Topic objects referenced by a specified User object.
52
-
53
- Signature: `list_user_topics(strSessionID:, strUserID:)`
54
- Invocation: `MemoriClient::Engine::V2::User.list_user_topics(strSessionID:, strUserID:)`
55
-
56
- HTTP API: GET /memori/v2/UserTopics/{strSessionID}/{strUserID}`
57
-
58
- Parameters:
59
-
60
- - `strSessionID`: **string** The session ID. required
61
- - `strUserID`: **string** The User object ID. required
62
-
63
- ## list_user_topics_paginated
64
-
65
- Summary:
66
- Lists Topic objects referenced by a specified User object, with pagination.
67
-
68
- Signature: `list_user_topics_paginated(strSessionID:, strUserID:, from:, howMany:)`
69
- Invocation: `MemoriClient::Engine::V2::User.list_user_topics_paginated(strSessionID:, strUserID:, from:, howMany:)`
70
-
71
- HTTP API: GET /memori/v2/UserTopics/{strSessionID}/{strUserID}/{from}/{howMany}`
72
-
73
- Parameters:
74
-
75
- - `strSessionID`: **string** The session ID. required
76
- - `strUserID`: **string** The User object ID. required
77
- - `from`: **integer** The 0-based index of the first Topic object to list. required
78
- - `howMany`: **integer** The number of Topic objects to list. required
79
-
80
- ## list_known_facts
81
-
82
- Summary:
83
- Lists all Known Facts objects associated with the current User.
84
-
85
- Signature: `list_known_facts(strSessionID:)`
86
- Invocation: `MemoriClient::Engine::V2::User.list_known_facts(strSessionID:)`
87
-
88
- HTTP API: GET /memori/v2/KnownFacts/{strSessionID}`
89
-
90
- Parameters:
91
-
92
- - `strSessionID`: **string** The session ID. required
93
-
94
- ## list_known_facts_paginated
95
-
96
- Summary:
97
- Lists Known Facts objects associated with the current User, with pagination.
98
-
99
- Signature: `list_known_facts_paginated(strSessionID:, from:, howMany:)`
100
- Invocation: `MemoriClient::Engine::V2::User.list_known_facts_paginated(strSessionID:, from:, howMany:)`
101
-
102
- HTTP API: GET /memori/v2/KnownFacts/{strSessionID}/{from}/{howMany}`
103
-
104
- Parameters:
105
-
106
- - `strSessionID`: **string** The session ID. required
107
- - `from`: **integer** The 0-based index of the first Known Fact to list. required
108
- - `howMany`: **integer** The number of Known Fact objects to list. required
109
-
110
- ## get_known_fact
111
-
112
- Summary:
113
- Gets the details of a Known Fact object.
114
-
115
- Signature: `get_known_fact(strSessionID:, strKnownFactID:)`
116
- Invocation: `MemoriClient::Engine::V2::User.get_known_fact(strSessionID:, strKnownFactID:)`
117
-
118
- HTTP API: GET /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}`
119
-
120
- Parameters:
121
-
122
- - `strSessionID`: **string** The session ID. required
123
- - `strKnownFactID`: **string** The Known Fact object ID. required
124
-
125
- ## delete_known_fact
126
-
127
- Summary:
128
- Deletes an existing Known Fact object.
129
-
130
- Signature: `delete_known_fact(strSessionID:, strKnownFactID:)`
131
- Invocation: `MemoriClient::Engine::V2::User.delete_known_fact(strSessionID:, strKnownFactID:)`
132
-
133
- HTTP API: DELETE /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}`
134
-
135
- Parameters:
136
-
137
- - `strSessionID`: **string** The session ID. required
138
- - `strKnownFactID`: **string** The Known Fact object ID. required
139
-
140
-
@@ -1,67 +0,0 @@
1
- # Module `MemoriClient::Engine::V2::WebHook`
2
-
3
- ## test_slot
4
-
5
- Summary:
6
- Returns test slot values.
7
-
8
- Signature: `test_slot(payload: {})`
9
- Invocation: `MemoriClient::Engine::V2::WebHook.test_slot(payload: {})`
10
-
11
- HTTP API: POST /memori/v2/TestSlot`
12
-
13
- Parameters:
14
-
15
- - `payload`: **Hash** request payload. optional
16
- - `payload.slotName`: **String** . optional
17
- - `payload.requestID`: **Integer** . optional
18
- - `payload.requestDateTime`: **String** . optional
19
- - `payload.requestValidityMinutes`: **Number** . optional
20
- - `payload.memoriID`: **String** . optional
21
- - `payload.culture`: **String** . optional
22
-
23
- ## test_intent
24
-
25
- Summary:
26
- Returns test intent results.
27
-
28
- Signature: `test_intent(payload: {})`
29
- Invocation: `MemoriClient::Engine::V2::WebHook.test_intent(payload: {})`
30
-
31
- HTTP API: POST /memori/v2/TestIntent`
32
-
33
- Parameters:
34
-
35
- - `payload`: **Hash** request payload. optional
36
- - `payload.intentName`: **String** . optional
37
- - `payload.utterance`: **String** . optional
38
- - `payload.slotValues`: **Object** . optional
39
- - `payload.sessionID`: **String** . optional
40
- - `payload.currentTag`: **String** . optional
41
- - `payload.currentTagAuthenticated`: **Boolean** . optional
42
- - `payload.currentDateUTC`: **String** . optional
43
- - `payload.currentPlace`: **** . optional
44
- - `payload.timeZone`: **String** . optional
45
- - `payload.beginUTC`: **String** . optional
46
- - `payload.endUTC`: **String** . optional
47
- - `payload.contextVars`: **Object** . optional
48
- - `payload.transitionHistory`: **Array** . optional
49
- - `payload.userEmail`: **String** . optional
50
- - `payload.requestID`: **Integer** . optional
51
- - `payload.requestDateTime`: **String** . optional
52
- - `payload.requestValidityMinutes`: **Number** . optional
53
- - `payload.memoriID`: **String** . optional
54
- - `payload.culture`: **String** . optional
55
-
56
- ## test_function_random_number
57
-
58
- Summary:
59
- Test function: returns a random number between 0 and 999999.
60
-
61
- Signature: `test_function_random_number()`
62
- Invocation: `MemoriClient::Engine::V2::WebHook.test_function_random_number()`
63
-
64
- HTTP API: GET /memori/v2/TestFunctions/RandomNumber`
65
-
66
-
67
-
@@ -1,39 +0,0 @@
1
- class MemoriClient::Backend::Resource < MemoriClient::Resource
2
- # def self.exec_http_request(method, path, args)
3
- # stop = false
4
- # processed_tokens = []
5
- # path.split('/').each do |token|
6
- # break if stop == true
7
- # if token =~ /^{.*}$/
8
- # param_name = token.match(/^{(.*)}$/).captures.first
9
- # if args[param_name.to_sym].blank?
10
- # stop = true
11
- # else
12
- # processed_tokens << args[param_name.to_sym]
13
- # end
14
- # else
15
- # processed_tokens << token
16
- # end
17
- # end
18
- #
19
- # url = processed_tokens.join('/')
20
- # url = [MemoriClient.configuration.backend_api_root, url].join('')
21
- # http = MemoriClient::HttpClient.new
22
- #
23
- # case method
24
- # when 'get'
25
- # status, body = http.get(url)
26
- # else
27
- # status, body = http.send(method, url, payload: args[:payload])
28
- # end
29
- #
30
- # [status, body]
31
- # end
32
- def self.build_url(url)
33
- [
34
- MemoriClient.configuration.backend_api_root,
35
- url
36
- ].join('')
37
- end
38
-
39
- end
@@ -1,16 +0,0 @@
1
- require 'memori_client/backend/v2/action_log.rb'
2
- require 'memori_client/backend/v2/analysis.rb'
3
- require 'memori_client/backend/v2/asset.rb'
4
- require 'memori_client/backend/v1/asset.rb'
5
- require 'memori_client/backend/v2/badge.rb'
6
- require 'memori_client/backend/v2/completion_config.rb'
7
- require 'memori_client/backend/v2/consumption_log.rb'
8
- require 'memori_client/backend/v2/import_export.rb'
9
- require 'memori_client/backend/v2/integration.rb'
10
- require 'memori_client/backend/v2/invitation.rb'
11
- require 'memori_client/backend/v2/memori.rb'
12
- require 'memori_client/backend/v2/memori_list.rb'
13
- require 'memori_client/backend/v2/notification.rb'
14
- require 'memori_client/backend/v2/process.rb'
15
- require 'memori_client/backend/v2/tenant.rb'
16
- require 'memori_client/backend/v2/user.rb'
@@ -1,120 +0,0 @@
1
- # Generated on 2025-01-27 20:29:51 +0000
2
- class MemoriClient::Backend::V1::Asset < MemoriClient::Backend::Resource
3
- # `GET /api/v1/GuidAsset/{assetID}`
4
- #
5
- # Downloads a file from an old Guid asset file URL, such as ```guid://<assetID>.<ext>```.
6
- #
7
- #
8
- # @param [string] assetID ID of the old Guid asset file. required
9
- #
10
- # `download_old_guid_asset(assetID:)`
11
- def self.download_old_guid_asset(assetID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/api/v1/GuidAsset/{assetID}', **args)
15
- end
16
-
17
- # `GET /api/v1/memoriai/memory/media/{assetID}`
18
- #
19
- # Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/media/<assetID>.<ext>```.
20
- #
21
- #
22
- # @param [string] assetID ID of the old Guid asset file. required
23
- #
24
- # `download_old_alternative_guid_asset(assetID:)`
25
- def self.download_old_alternative_guid_asset(assetID:)
26
- args = build_arguments(binding)
27
-
28
- exec_http_request('get', '/api/v1/memoriai/memory/media/{assetID}', **args)
29
- end
30
-
31
- # `GET /api/v1/memoriai/memory/{strMemoryID}/media/{assetID}`
32
- #
33
- # Downloads a file from an old alternative Guid asset file URL, sucs as ```/api/v1/memoriai/memory/<memoryID>/media/<assetID>.<ext>```.
34
- #
35
- #
36
- # @param [string] strMemoryID ID of the engine Memory object (ignored). required
37
- #
38
- # @param [string] assetID ID of the old Guid asset file. required
39
- #
40
- # `download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)`
41
- def self.download_old_alternative_guid_asset_with_memory(strMemoryID:, assetID:)
42
- args = build_arguments(binding)
43
-
44
- exec_http_request('get', '/api/v1/memoriai/memory/{strMemoryID}/media/{assetID}', **args)
45
- end
46
-
47
- # `GET /api/v1/CloudAsset/{assetID}`
48
- #
49
- # Downloads a file from an old Cloud asset file URL, such as ```cloud://<path>/<assetID>.<ext>```.
50
- #
51
- #
52
- # @param [string] assetID ID of the old Cloud asset file. required
53
- #
54
- # `download_old_cloud_asset(assetID:)`
55
- def self.download_old_cloud_asset(assetID:)
56
- args = build_arguments(binding)
57
-
58
- exec_http_request('get', '/api/v1/CloudAsset/{assetID}', **args)
59
- end
60
-
61
- # `GET /api/v1/memoriai/memory/media/cloud/{assetID}`
62
- #
63
- # Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/media/cloud/<path>/<assetID>.<ext>```.
64
- #
65
- #
66
- # @param [string] assetID ID of the old asset file. required
67
- #
68
- # `download_old_asset(assetID:)`
69
- def self.download_old_asset(assetID:)
70
- args = build_arguments(binding)
71
-
72
- exec_http_request('get', '/api/v1/memoriai/memory/media/cloud/{assetID}', **args)
73
- end
74
-
75
- # `GET /api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}`
76
- #
77
- # Downloads a file from an old asset file URL, such as ```/api/v1/memoriai/memory/<memoryID>/media/cloud/<path>/<assetID>.<ext>```.
78
- #
79
- #
80
- # @param [string] strMemoryID ID of the engine Memory object. required
81
- #
82
- # @param [string] assetID ID of the old asset file. required
83
- #
84
- # `download_old_asset_with_memory_check(strMemoryID:, assetID:)`
85
- def self.download_old_asset_with_memory_check(strMemoryID:, assetID:)
86
- args = build_arguments(binding)
87
-
88
- exec_http_request('get', '/api/v1/memoriai/memory/{strMemoryID}/media/cloud/{assetID}', **args)
89
- end
90
-
91
- # `GET /api/v1/memoriai/memori/cover/{strMemoriID}`
92
- #
93
- # Downloads the cover file from an old cover asset URL, sucs as ```/api/v1/memoriai/memori/cover/<memoriID>```.
94
- #
95
- #
96
- # @param [string] strMemoriID ID of the engine Memori object. required
97
- #
98
- # `download_old_cover_asset(strMemoriID:)`
99
- def self.download_old_cover_asset(strMemoriID:)
100
- args = build_arguments(binding)
101
-
102
- exec_http_request('get', '/api/v1/memoriai/memori/cover/{strMemoriID}', **args)
103
- end
104
-
105
- # `GET /api/v1/memoriai/memori/avatar/{strMemoriID}`
106
- #
107
- # Downloads the avatar file from an old avatar asset URL, sucs as ```/api/v1/memoriai/memori/avatar/<memoriID>```.
108
- #
109
- #
110
- # @param [string] strMemoriID ID of the engine Memori object. required
111
- #
112
- # `download_old_avatar_asset(strMemoriID:)`
113
- def self.download_old_avatar_asset(strMemoriID:)
114
- args = build_arguments(binding)
115
-
116
- exec_http_request('get', '/api/v1/memoriai/memori/avatar/{strMemoriID}', **args)
117
- end
118
-
119
-
120
- end
@@ -1,44 +0,0 @@
1
- # Generated on 2025-01-27 20:29:51 +0000
2
- class MemoriClient::Backend::V2::ActionLog < MemoriClient::Backend::Resource
3
- # `GET /api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}`
4
- #
5
- # Gets the Action Log objects for a specific User in a specific date interval.
6
- #
7
- #
8
- # @param [string] strToken The login token. required
9
- #
10
- # @param [string] strUserID The ID of the User object. required
11
- #
12
- # @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
13
- #
14
- # @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
15
- #
16
- # `get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)`
17
- def self.get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)
18
- args = build_arguments(binding)
19
-
20
- exec_http_request('get', '/api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}', **args)
21
- end
22
-
23
- # `GET /api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}`
24
- #
25
- # Gets the Action Log objects for a specific Memori in a specific date interval.
26
- #
27
- #
28
- # @param [string] strToken The login token. required
29
- #
30
- # @param [string] strMemoriID The ID of the Memori object. required
31
- #
32
- # @param [string] strDateFrom The optional begin of the date interval, in the format yyyyMMddHHmmssfff. optional
33
- #
34
- # @param [string] strDateTo The optional end of the date interval, in the format yyyyMMddHHmmssfff. optional
35
- #
36
- # `get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)`
37
- def self.get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)
38
- args = build_arguments(binding)
39
-
40
- exec_http_request('get', '/api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}', **args)
41
- end
42
-
43
-
44
- end
@@ -1,54 +0,0 @@
1
- # Generated on 2025-01-27 20:29:51 +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