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
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::Session < MemoriClient::Engine::Resource
3
- # `POST /memori/v2/Session`
4
- #
5
- # Initializes a new Dialog State Machine session for an existing Memori.
6
- #
7
- #
8
- # @param [Hash] payload request payload. optional
9
- #
10
- # @param [String] payload.memoriID . optional
11
- #
12
- # @param [String] payload.password . optional
13
- #
14
- # @param [Array] payload.recoveryTokens . optional
15
- #
16
- # @param [String] payload.tag . optional
17
- #
18
- # @param [String] payload.pin . optional
19
- #
20
- # @param [Object] payload.initialContextVars . optional
21
- #
22
- # @param [String] payload.initialQuestion . optional
23
- #
24
- # @param [String] payload.birthDate . optional
25
- #
26
- # @param [String] payload.maintenanceCode . optional
27
- #
28
- # @param [Object] payload.additionalInfo . optional
29
- #
30
- # `open_session(payload: {})`
31
- def self.open_session(payload: {})
32
- args = build_arguments(binding)
33
- payload_keys = [
34
- 'additionalInfo',
35
- 'birthDate',
36
- 'initialContextVars',
37
- 'initialQuestion',
38
- 'maintenanceCode',
39
- 'memoriID',
40
- 'password',
41
- 'pin',
42
- 'recoveryTokens',
43
- 'tag',
44
- ]
45
- payload_required_keys = %w[]
46
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
47
-
48
- exec_http_request('post', '/memori/v2/Session', **args)
49
- end
50
-
51
- # `GET /memori/v2/Session/{strSessionID}`
52
- #
53
- # Returns the current state of a session's Dialog State Machine.
54
- #
55
- #
56
- # @param [string] strSessionID The session ID. required
57
- #
58
- # `get_current_state(strSessionID:)`
59
- def self.get_current_state(strSessionID:)
60
- args = build_arguments(binding)
61
-
62
- exec_http_request('get', '/memori/v2/Session/{strSessionID}', **args)
63
- end
64
-
65
- # `DELETE /memori/v2/Session/{strSessionID}`
66
- #
67
- # Closes the session and disposes of its Dialog State Machine.
68
- #
69
- #
70
- # @param [string] strSessionID The session ID. required
71
- #
72
- # `close_session(strSessionID:)`
73
- def self.close_session(strSessionID:)
74
- args = build_arguments(binding)
75
-
76
- exec_http_request('delete', '/memori/v2/Session/{strSessionID}', **args)
77
- end
78
-
79
-
80
- end
@@ -1,20 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::Stat < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/TextQualityIndexes/{strSessionID}/{strLatestUpdate}`
4
- #
5
- # Computes text quality indexes for a Memori.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # @param [string] strLatestUpdate The optional latest update timestamp, in UTC time, in the format yyyyMMddHHmmssfff. optional
11
- #
12
- # `get_text_quality_indexes(strSessionID:, strLatestUpdate: nil)`
13
- def self.get_text_quality_indexes(strSessionID:, strLatestUpdate: nil)
14
- args = build_arguments(binding)
15
-
16
- exec_http_request('get', '/memori/v2/TextQualityIndexes/{strSessionID}/{strLatestUpdate}', **args)
17
- end
18
-
19
-
20
- end
@@ -1,88 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::Topic < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/Topics/{strSessionID}`
4
- #
5
- # Lists all Topic objects.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # `list_topics(strSessionID:)`
11
- def self.list_topics(strSessionID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/memori/v2/Topics/{strSessionID}', **args)
15
- end
16
-
17
- # `GET /memori/v2/Topics/{strSessionID}/{from}/{howMany}`
18
- #
19
- # Lists Topic objects with pagination.
20
- #
21
- #
22
- # @param [string] strSessionID The session ID. required
23
- #
24
- # @param [integer] from The 0-based index of the first Topic object to list. required
25
- #
26
- # @param [integer] howMany The number of the Topic objects to list. required
27
- #
28
- # `list_topics_paginated(strSessionID:, from:, howMany:)`
29
- def self.list_topics_paginated(strSessionID:, from:, howMany:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('get', '/memori/v2/Topics/{strSessionID}/{from}/{howMany}', **args)
33
- end
34
-
35
- # `GET /memori/v2/Topic/{strSessionID}/{strTopicID}`
36
- #
37
- # Gets the details of a Topic object.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [string] strTopicID The Topic object ID. required
43
- #
44
- # `get_topic(strSessionID:, strTopicID:)`
45
- def self.get_topic(strSessionID:, strTopicID:)
46
- args = build_arguments(binding)
47
-
48
- exec_http_request('get', '/memori/v2/Topic/{strSessionID}/{strTopicID}', **args)
49
- end
50
-
51
- # `GET /memori/v2/TopicUsers/{strSessionID}/{strTopicID}`
52
- #
53
- # Lists all User objects referencing a specified Topic object.
54
- #
55
- #
56
- # @param [string] strSessionID The session ID. required
57
- #
58
- # @param [string] strTopicID The Topic object ID. required
59
- #
60
- # `list_topic_users(strSessionID:, strTopicID:)`
61
- def self.list_topic_users(strSessionID:, strTopicID:)
62
- args = build_arguments(binding)
63
-
64
- exec_http_request('get', '/memori/v2/TopicUsers/{strSessionID}/{strTopicID}', **args)
65
- end
66
-
67
- # `GET /memori/v2/TopicUsers/{strSessionID}/{strTopicID}/{from}/{howMany}`
68
- #
69
- # Lists User objects referencing a specified User object, with pagination.
70
- #
71
- #
72
- # @param [string] strSessionID The session ID. required
73
- #
74
- # @param [string] strTopicID The Topic object ID. required
75
- #
76
- # @param [integer] from The 0-based index of the first User object to list. required
77
- #
78
- # @param [integer] howMany The number of User objects to list. required
79
- #
80
- # `list_topic_users_paginated(strSessionID:, strTopicID:, from:, howMany:)`
81
- def self.list_topic_users_paginated(strSessionID:, strTopicID:, from:, howMany:)
82
- args = build_arguments(binding)
83
-
84
- exec_http_request('get', '/memori/v2/TopicUsers/{strSessionID}/{strTopicID}/{from}/{howMany}', **args)
85
- end
86
-
87
-
88
- end
@@ -1,108 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::UnansweredQuestion < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/UnansweredQuestions/{strSessionID}`
4
- #
5
- # Lists all Unanswered Question objects.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # `list_unanswered_questions(strSessionID:)`
11
- def self.list_unanswered_questions(strSessionID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/memori/v2/UnansweredQuestions/{strSessionID}', **args)
15
- end
16
-
17
- # `GET /memori/v2/UnansweredQuestions/{strSessionID}/{from}/{howMany}`
18
- #
19
- # Lists Unanswered Question objects with pagination.
20
- #
21
- #
22
- # @param [string] strSessionID The session ID. required
23
- #
24
- # @param [integer] from The 0-based index of the first Unanswered Question object to list. required
25
- #
26
- # @param [integer] howMany The number of the Unanswered Question objects to list. required
27
- #
28
- # `list_unanswered_questions_paginated(strSessionID:, from:, howMany:)`
29
- def self.list_unanswered_questions_paginated(strSessionID:, from:, howMany:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('get', '/memori/v2/UnansweredQuestions/{strSessionID}/{from}/{howMany}', **args)
33
- end
34
-
35
- # `POST /memori/v2/UnansweredQuestion/{strSessionID}`
36
- #
37
- # Adds a new Unanswered Question object.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [Hash] payload request payload. optional
43
- #
44
- # @param [String] payload.unansweredQuestionID . optional
45
- #
46
- # @param [String] payload.text . optional
47
- #
48
- # @param [Object] payload.contextVars . optional
49
- #
50
- # @param [Integer] payload.occurrences . optional
51
- #
52
- # @param [String] payload.receiverID . optional
53
- #
54
- # @param [String] payload.receiverTag . optional
55
- #
56
- # @param [String] payload.receiverName . optional
57
- #
58
- # @param [Array] payload.suggestions . optional
59
- #
60
- # @param [String] payload.creationTimestamp . optional
61
- #
62
- # @param [String] payload.creationSessionID . optional
63
- #
64
- # @param [String] payload.lastChangeTimestamp . optional
65
- #
66
- # @param [String] payload.lastChangeSessionID . optional
67
- #
68
- # `add_unanswered_question(strSessionID:, payload: {})`
69
- def self.add_unanswered_question(strSessionID:, payload: {})
70
- args = build_arguments(binding)
71
- payload_keys = [
72
- 'contextVars',
73
- 'creationSessionID',
74
- 'creationTimestamp',
75
- 'lastChangeSessionID',
76
- 'lastChangeTimestamp',
77
- 'occurrences',
78
- 'receiverID',
79
- 'receiverName',
80
- 'receiverTag',
81
- 'suggestions',
82
- 'text',
83
- 'unansweredQuestionID',
84
- ]
85
- payload_required_keys = %w[]
86
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
87
-
88
- exec_http_request('post', '/memori/v2/UnansweredQuestion/{strSessionID}', **args)
89
- end
90
-
91
- # `DELETE /memori/v2/UnansweredQuestion/{strSessionID}/{strUnansweredQuestionID}`
92
- #
93
- # Removes an existing Unanswered Question object.
94
- #
95
- #
96
- # @param [string] strSessionID The session ID. required
97
- #
98
- # @param [string] strUnansweredQuestionID The Unanswered Question object ID. required
99
- #
100
- # `remove_unanswered_question(strSessionID:, strUnansweredQuestionID:)`
101
- def self.remove_unanswered_question(strSessionID:, strUnansweredQuestionID:)
102
- args = build_arguments(binding)
103
-
104
- exec_http_request('delete', '/memori/v2/UnansweredQuestion/{strSessionID}/{strUnansweredQuestionID}', **args)
105
- end
106
-
107
-
108
- end
@@ -1,152 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::User < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/Users/{strSessionID}`
4
- #
5
- # Lists all User objects associated with the Memori of the current session.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # `list_users(strSessionID:)`
11
- def self.list_users(strSessionID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/memori/v2/Users/{strSessionID}', **args)
15
- end
16
-
17
- # `GET /memori/v2/Users/{strSessionID}/{from}/{howMany}`
18
- #
19
- # Lists User objects associated with the Memori of the current session, with pagination.
20
- #
21
- #
22
- # @param [string] strSessionID The session ID. required
23
- #
24
- # @param [integer] from The 0-based index of the first User to list. required
25
- #
26
- # @param [integer] howMany The number of User objects to list. required
27
- #
28
- # `list_users_paginated(strSessionID:, from:, howMany:)`
29
- def self.list_users_paginated(strSessionID:, from:, howMany:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('get', '/memori/v2/Users/{strSessionID}/{from}/{howMany}', **args)
33
- end
34
-
35
- # `GET /memori/v2/User/{strSessionID}/{strUserID}`
36
- #
37
- # Gets the details of a User object.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [string] strUserID The User object ID. required
43
- #
44
- # `get_user(strSessionID:, strUserID:)`
45
- def self.get_user(strSessionID:, strUserID:)
46
- args = build_arguments(binding)
47
-
48
- exec_http_request('get', '/memori/v2/User/{strSessionID}/{strUserID}', **args)
49
- end
50
-
51
- # `GET /memori/v2/UserTopics/{strSessionID}/{strUserID}`
52
- #
53
- # Lists all Topic objects referenced by a specified User object.
54
- #
55
- #
56
- # @param [string] strSessionID The session ID. required
57
- #
58
- # @param [string] strUserID The User object ID. required
59
- #
60
- # `list_user_topics(strSessionID:, strUserID:)`
61
- def self.list_user_topics(strSessionID:, strUserID:)
62
- args = build_arguments(binding)
63
-
64
- exec_http_request('get', '/memori/v2/UserTopics/{strSessionID}/{strUserID}', **args)
65
- end
66
-
67
- # `GET /memori/v2/UserTopics/{strSessionID}/{strUserID}/{from}/{howMany}`
68
- #
69
- # Lists Topic objects referenced by a specified User object, with pagination.
70
- #
71
- #
72
- # @param [string] strSessionID The session ID. required
73
- #
74
- # @param [string] strUserID The User object ID. required
75
- #
76
- # @param [integer] from The 0-based index of the first Topic object to list. required
77
- #
78
- # @param [integer] howMany The number of Topic objects to list. required
79
- #
80
- # `list_user_topics_paginated(strSessionID:, strUserID:, from:, howMany:)`
81
- def self.list_user_topics_paginated(strSessionID:, strUserID:, from:, howMany:)
82
- args = build_arguments(binding)
83
-
84
- exec_http_request('get', '/memori/v2/UserTopics/{strSessionID}/{strUserID}/{from}/{howMany}', **args)
85
- end
86
-
87
- # `GET /memori/v2/KnownFacts/{strSessionID}`
88
- #
89
- # Lists all Known Facts objects associated with the current User.
90
- #
91
- #
92
- # @param [string] strSessionID The session ID. required
93
- #
94
- # `list_known_facts(strSessionID:)`
95
- def self.list_known_facts(strSessionID:)
96
- args = build_arguments(binding)
97
-
98
- exec_http_request('get', '/memori/v2/KnownFacts/{strSessionID}', **args)
99
- end
100
-
101
- # `GET /memori/v2/KnownFacts/{strSessionID}/{from}/{howMany}`
102
- #
103
- # Lists Known Facts objects associated with the current User, with pagination.
104
- #
105
- #
106
- # @param [string] strSessionID The session ID. required
107
- #
108
- # @param [integer] from The 0-based index of the first Known Fact to list. required
109
- #
110
- # @param [integer] howMany The number of Known Fact objects to list. required
111
- #
112
- # `list_known_facts_paginated(strSessionID:, from:, howMany:)`
113
- def self.list_known_facts_paginated(strSessionID:, from:, howMany:)
114
- args = build_arguments(binding)
115
-
116
- exec_http_request('get', '/memori/v2/KnownFacts/{strSessionID}/{from}/{howMany}', **args)
117
- end
118
-
119
- # `GET /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}`
120
- #
121
- # Gets the details of a Known Fact object.
122
- #
123
- #
124
- # @param [string] strSessionID The session ID. required
125
- #
126
- # @param [string] strKnownFactID The Known Fact object ID. required
127
- #
128
- # `get_known_fact(strSessionID:, strKnownFactID:)`
129
- def self.get_known_fact(strSessionID:, strKnownFactID:)
130
- args = build_arguments(binding)
131
-
132
- exec_http_request('get', '/memori/v2/KnownFact/{strSessionID}/{strKnownFactID}', **args)
133
- end
134
-
135
- # `DELETE /memori/v2/KnownFact/{strSessionID}/{strKnownFactID}`
136
- #
137
- # Deletes an existing Known Fact object.
138
- #
139
- #
140
- # @param [string] strSessionID The session ID. required
141
- #
142
- # @param [string] strKnownFactID The Known Fact object ID. required
143
- #
144
- # `delete_known_fact(strSessionID:, strKnownFactID:)`
145
- def self.delete_known_fact(strSessionID:, strKnownFactID:)
146
- args = build_arguments(binding)
147
-
148
- exec_http_request('delete', '/memori/v2/KnownFact/{strSessionID}/{strKnownFactID}', **args)
149
- end
150
-
151
-
152
- end
@@ -1,128 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::WebHook < MemoriClient::Engine::Resource
3
- # `POST /memori/v2/TestSlot`
4
- #
5
- # Returns test slot values.
6
- #
7
- #
8
- # @param [Hash] payload request payload. optional
9
- #
10
- # @param [String] payload.slotName . optional
11
- #
12
- # @param [Integer] payload.requestID . optional
13
- #
14
- # @param [String] payload.requestDateTime . optional
15
- #
16
- # @param [Number] payload.requestValidityMinutes . optional
17
- #
18
- # @param [String] payload.memoriID . optional
19
- #
20
- # @param [String] payload.culture . optional
21
- #
22
- # `test_slot(payload: {})`
23
- def self.test_slot(payload: {})
24
- args = build_arguments(binding)
25
- payload_keys = [
26
- 'culture',
27
- 'memoriID',
28
- 'requestDateTime',
29
- 'requestID',
30
- 'requestValidityMinutes',
31
- 'slotName',
32
- ]
33
- payload_required_keys = %w[]
34
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
35
-
36
- exec_http_request('post', '/memori/v2/TestSlot', **args)
37
- end
38
-
39
- # `POST /memori/v2/TestIntent`
40
- #
41
- # Returns test intent results.
42
- #
43
- #
44
- # @param [Hash] payload request payload. optional
45
- #
46
- # @param [String] payload.intentName . optional
47
- #
48
- # @param [String] payload.utterance . optional
49
- #
50
- # @param [Object] payload.slotValues . optional
51
- #
52
- # @param [String] payload.sessionID . optional
53
- #
54
- # @param [String] payload.currentTag . optional
55
- #
56
- # @param [Boolean] payload.currentTagAuthenticated . optional
57
- #
58
- # @param [String] payload.currentDateUTC . optional
59
- #
60
- # @param [] payload.currentPlace . optional
61
- #
62
- # @param [String] payload.timeZone . optional
63
- #
64
- # @param [String] payload.beginUTC . optional
65
- #
66
- # @param [String] payload.endUTC . optional
67
- #
68
- # @param [Object] payload.contextVars . optional
69
- #
70
- # @param [Array] payload.transitionHistory . optional
71
- #
72
- # @param [String] payload.userEmail . optional
73
- #
74
- # @param [Integer] payload.requestID . optional
75
- #
76
- # @param [String] payload.requestDateTime . optional
77
- #
78
- # @param [Number] payload.requestValidityMinutes . optional
79
- #
80
- # @param [String] payload.memoriID . optional
81
- #
82
- # @param [String] payload.culture . optional
83
- #
84
- # `test_intent(payload: {})`
85
- def self.test_intent(payload: {})
86
- args = build_arguments(binding)
87
- payload_keys = [
88
- 'beginUTC',
89
- 'contextVars',
90
- 'culture',
91
- 'currentDateUTC',
92
- 'currentPlace',
93
- 'currentTag',
94
- 'currentTagAuthenticated',
95
- 'endUTC',
96
- 'intentName',
97
- 'memoriID',
98
- 'requestDateTime',
99
- 'requestID',
100
- 'requestValidityMinutes',
101
- 'sessionID',
102
- 'slotValues',
103
- 'timeZone',
104
- 'transitionHistory',
105
- 'userEmail',
106
- 'utterance',
107
- ]
108
- payload_required_keys = %w[]
109
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
110
-
111
- exec_http_request('post', '/memori/v2/TestIntent', **args)
112
- end
113
-
114
- # `GET /memori/v2/TestFunctions/RandomNumber`
115
- #
116
- # Test function: returns a random number between 0 and 999999.
117
- #
118
-
119
- #
120
- # `test_function_random_number()`
121
- def self.test_function_random_number()
122
- args = build_arguments(binding)
123
-
124
- exec_http_request('get', '/memori/v2/TestFunctions/RandomNumber', **args)
125
- end
126
-
127
-
128
- end