memori-client 0.0.9 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/memori_client/backend/resource.rb +37 -30
  3. data/lib/memori_client/backend/resources.rb +4 -0
  4. data/lib/memori_client/backend/v1/asset.rb +94 -0
  5. data/lib/memori_client/backend/v2/action_log.rb +11 -7
  6. data/lib/memori_client/backend/v2/asset.rb +33 -13
  7. data/lib/memori_client/backend/v2/badge.rb +60 -0
  8. data/lib/memori_client/backend/v2/consumption_log.rb +16 -10
  9. data/lib/memori_client/backend/v2/import_export.rb +163 -0
  10. data/lib/memori_client/backend/v2/integration.rb +65 -21
  11. data/lib/memori_client/backend/v2/invitation.rb +92 -24
  12. data/lib/memori_client/backend/v2/memori.rb +364 -118
  13. data/lib/memori_client/backend/v2/memori_list.rb +118 -0
  14. data/lib/memori_client/backend/v2/notification.rb +11 -7
  15. data/lib/memori_client/backend/v2/tenant.rb +194 -4
  16. data/lib/memori_client/backend/v2/user.rb +620 -106
  17. data/lib/memori_client/engine/resource.rb +36 -29
  18. data/lib/memori_client/engine/resources.rb +8 -0
  19. data/lib/memori_client/engine/v2/chat_log.rb +21 -13
  20. data/lib/memori_client/engine/v2/completion_log.rb +17 -0
  21. data/lib/memori_client/engine/v2/context_var.rb +16 -10
  22. data/lib/memori_client/engine/v2/correlation_pair.rb +50 -10
  23. data/lib/memori_client/engine/v2/custom_dictionary.rb +113 -0
  24. data/lib/memori_client/engine/v2/dialog.rb +99 -34
  25. data/lib/memori_client/engine/v2/event_log.rb +21 -13
  26. data/lib/memori_client/engine/v2/expert_reference.rb +129 -0
  27. data/lib/memori_client/engine/v2/intent.rb +123 -43
  28. data/lib/memori_client/engine/v2/localization_key.rb +108 -0
  29. data/lib/memori_client/engine/v2/medium.rb +129 -0
  30. data/lib/memori_client/engine/v2/memori.rb +215 -16
  31. data/lib/memori_client/engine/v2/memory.rb +124 -25
  32. data/lib/memori_client/engine/v2/nlp.rb +162 -22
  33. data/lib/memori_client/engine/v2/person.rb +125 -0
  34. data/lib/memori_client/engine/v2/prompted_question.rb +121 -0
  35. data/lib/memori_client/engine/v2/search.rb +67 -10
  36. data/lib/memori_client/engine/v2/session.rb +31 -11
  37. data/lib/memori_client/engine/v2/stat.rb +26 -16
  38. data/lib/memori_client/engine/v2/unanswered_question.rb +56 -10
  39. data/lib/memori_client/engine/v2/user.rb +52 -0
  40. data/lib/memori_client/engine/v2/web_hook.rb +62 -25
  41. data/lib/memori_client/http_client.rb +1 -1
  42. data/lib/memori_client/resource.rb +56 -0
  43. data/lib/memori_client.rb +4 -0
  44. metadata +15 -2
@@ -1,4 +1,4 @@
1
- # Generated on 2023-07-11 06:40:04 +0000
1
+ # Generated on 2024-01-18 17:37:07 +0000
2
2
  class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
3
3
  # GET /memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}
4
4
  # Gets the Event Log objects for the Memori of the current session in a specific date interval.
@@ -6,9 +6,11 @@ class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
6
6
  # @param [string] strSessionID The session ID. required
7
7
  # @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
8
8
  # @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
9
- # event_logs(strSessionID:, strDateFrom: nil, strDateTo: nil)
10
- def self.event_logs(**args)
11
- exec_http_request('get', '/memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}', args)
9
+ # list_memori_event_logs(strSessionID:, strDateFrom: nil, strDateTo: nil)
10
+ def self.list_memori_event_logs(strSessionID:, strDateFrom: nil, strDateTo: nil)
11
+ args = build_arguments(binding)
12
+
13
+ exec_http_request('get', '/memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}', **args)
12
14
  end
13
15
 
14
16
  # GET /memori/v2/MemoryEventLogs/{strSessionID}/{strMemoryID}/{strDateFrom}/{strDateTo}
@@ -18,9 +20,11 @@ class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
18
20
  # @param [string] strMemoryID The Memory object ID. required
19
21
  # @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
20
22
  # @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
21
- # memory_event_logs(strSessionID:, strMemoryID:, strDateFrom: nil, strDateTo: nil)
22
- def self.memory_event_logs(**args)
23
- exec_http_request('get', '/memori/v2/MemoryEventLogs/{strSessionID}/{strMemoryID}/{strDateFrom}/{strDateTo}', args)
23
+ # list_memory_event_logs(strSessionID:, strMemoryID:, strDateFrom: nil, strDateTo: nil)
24
+ def self.list_memory_event_logs(strSessionID:, strMemoryID:, strDateFrom: nil, strDateTo: nil)
25
+ args = build_arguments(binding)
26
+
27
+ exec_http_request('get', '/memori/v2/MemoryEventLogs/{strSessionID}/{strMemoryID}/{strDateFrom}/{strDateTo}', **args)
24
28
  end
25
29
 
26
30
  # GET /memori/v2/IntentEventLogs/{strSessionID}/{strIntentID}/{strDateFrom}/{strDateTo}
@@ -30,9 +34,11 @@ class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
30
34
  # @param [string] strIntentID The Intent object ID. required
31
35
  # @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
32
36
  # @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
33
- # intent_event_logs(strSessionID:, strIntentID:, strDateFrom: nil, strDateTo: nil)
34
- def self.intent_event_logs(**args)
35
- exec_http_request('get', '/memori/v2/IntentEventLogs/{strSessionID}/{strIntentID}/{strDateFrom}/{strDateTo}', args)
37
+ # list_intent_event_logs(strSessionID:, strIntentID:, strDateFrom: nil, strDateTo: nil)
38
+ def self.list_intent_event_logs(strSessionID:, strIntentID:, strDateFrom: nil, strDateTo: nil)
39
+ args = build_arguments(binding)
40
+
41
+ exec_http_request('get', '/memori/v2/IntentEventLogs/{strSessionID}/{strIntentID}/{strDateFrom}/{strDateTo}', **args)
36
42
  end
37
43
 
38
44
  # GET /memori/v2/SessionEventLogs/{strSessionID}/{strEventLogSessionID}
@@ -40,9 +46,11 @@ class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
40
46
  # Params list:
41
47
  # @param [string] strSessionID The session ID. required
42
48
  # @param [string] strEventLogSessionID The session ID for which Event Log objects are being searched. required
43
- # session_event_logs(strSessionID:, strEventLogSessionID:)
44
- def self.session_event_logs(**args)
45
- exec_http_request('get', '/memori/v2/SessionEventLogs/{strSessionID}/{strEventLogSessionID}', args)
49
+ # list_session_event_logs(strSessionID:, strEventLogSessionID:)
50
+ def self.list_session_event_logs(strSessionID:, strEventLogSessionID:)
51
+ args = build_arguments(binding)
52
+
53
+ exec_http_request('get', '/memori/v2/SessionEventLogs/{strSessionID}/{strEventLogSessionID}', **args)
46
54
  end
47
55
 
48
56
 
@@ -0,0 +1,129 @@
1
+ # Generated on 2024-01-18 17:37:07 +0000
2
+ class MemoriClient::Engine::V2::ExpertReference < MemoriClient::Engine::Resource
3
+ # GET /memori/v2/ExpertReferences/{strSessionID}
4
+ # Lists all Expert Reference objects.
5
+ # Params list:
6
+ # @param [string] strSessionID The session ID. required
7
+ # list_expert_references(strSessionID:)
8
+ def self.list_expert_references(strSessionID:)
9
+ args = build_arguments(binding)
10
+
11
+ exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}', **args)
12
+ end
13
+
14
+ # GET /memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}
15
+ # Lists Expert Reference objects with pagination.
16
+ # Params list:
17
+ # @param [string] strSessionID The session ID. required
18
+ # @param [integer] from The 0-based index of the first Expert Reference object to list. required
19
+ # @param [integer] howMany The number of the Expert Reference objects to list. required
20
+ # list_expert_references_paginated(strSessionID:, from:, howMany:)
21
+ def self.list_expert_references_paginated(strSessionID:, from:, howMany:)
22
+ args = build_arguments(binding)
23
+
24
+ exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}', **args)
25
+ end
26
+
27
+ # GET /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
28
+ # Gets the details of an Expert Reference object.
29
+ # Params list:
30
+ # @param [string] strSessionID The session ID. required
31
+ # @param [string] strExpertReferenceID The Expert Reference object ID. required
32
+ # get_expert_reference(strSessionID:, strExpertReferenceID:)
33
+ def self.get_expert_reference(strSessionID:, strExpertReferenceID:)
34
+ args = build_arguments(binding)
35
+
36
+ exec_http_request('get', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
37
+ end
38
+
39
+ # PATCH /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
40
+ # Updates an existing Expert Reference object.
41
+ # Params list:
42
+ # @param [string] strSessionID The session ID. required
43
+ # @param [string] strExpertReferenceID The Expert Reference object ID. required
44
+ # @param [object] payload request payload. optional
45
+ # @param [string] payload.expertID . optional
46
+ # @param [string] payload.name . required
47
+ # @param [string] payload.description . required
48
+ # @param [boolean] payload.default . required
49
+ # @param [string] payload.expertMemoriID . required
50
+ # @param [string] payload.expertPassword . optional
51
+ # @param [string] payload.expertBaseURL . required
52
+ # @param [string] payload.creationTimestamp . optional
53
+ # @param [string] payload.creationSessionID . optional
54
+ # @param [string] payload.lastChangeTimestamp . optional
55
+ # @param [string] payload.lastChangeSessionID . optional
56
+ # update_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})
57
+ def self.update_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})
58
+ args = build_arguments(binding)
59
+ payload_keys = [
60
+ 'creationSessionID',
61
+ 'creationTimestamp',
62
+ 'default',
63
+ 'description',
64
+ 'expertBaseURL',
65
+ 'expertID',
66
+ 'expertMemoriID',
67
+ 'expertPassword',
68
+ 'lastChangeSessionID',
69
+ 'lastChangeTimestamp',
70
+ 'name',
71
+ ]
72
+ payload_required_keys = %w[default description expertBaseURL expertMemoriID name]
73
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
74
+
75
+ exec_http_request('patch', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
76
+ end
77
+
78
+ # DELETE /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}
79
+ # Removes an existing Expert Reference object.
80
+ # Params list:
81
+ # @param [string] strSessionID The session ID. required
82
+ # @param [string] strExpertReferenceID The Expert Reference object ID. required
83
+ # remove_expert_reference(strSessionID:, strExpertReferenceID:)
84
+ def self.remove_expert_reference(strSessionID:, strExpertReferenceID:)
85
+ args = build_arguments(binding)
86
+
87
+ exec_http_request('delete', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
88
+ end
89
+
90
+ # POST /memori/v2/ExpertReference/{strSessionID}
91
+ # Adds a new Expert Reference object.
92
+ # Params list:
93
+ # @param [string] strSessionID The session ID. required
94
+ # @param [object] payload request payload. optional
95
+ # @param [string] payload.expertID . optional
96
+ # @param [string] payload.name . required
97
+ # @param [string] payload.description . required
98
+ # @param [boolean] payload.default . required
99
+ # @param [string] payload.expertMemoriID . required
100
+ # @param [string] payload.expertPassword . optional
101
+ # @param [string] payload.expertBaseURL . required
102
+ # @param [string] payload.creationTimestamp . optional
103
+ # @param [string] payload.creationSessionID . optional
104
+ # @param [string] payload.lastChangeTimestamp . optional
105
+ # @param [string] payload.lastChangeSessionID . optional
106
+ # add_expert_reference(strSessionID:, payload: {})
107
+ def self.add_expert_reference(strSessionID:, payload: {})
108
+ args = build_arguments(binding)
109
+ payload_keys = [
110
+ 'creationSessionID',
111
+ 'creationTimestamp',
112
+ 'default',
113
+ 'description',
114
+ 'expertBaseURL',
115
+ 'expertID',
116
+ 'expertMemoriID',
117
+ 'expertPassword',
118
+ 'lastChangeSessionID',
119
+ 'lastChangeTimestamp',
120
+ 'name',
121
+ ]
122
+ payload_required_keys = %w[default description expertBaseURL expertMemoriID name]
123
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
124
+
125
+ exec_http_request('post', '/memori/v2/ExpertReference/{strSessionID}', **args)
126
+ end
127
+
128
+
129
+ end
@@ -1,12 +1,14 @@
1
- # Generated on 2023-07-11 06:40:04 +0000
1
+ # Generated on 2024-01-18 17:37:07 +0000
2
2
  class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
3
3
  # GET /memori/v2/Intents/{strSessionID}
4
4
  # Lists all Intent objects.
5
5
  # Params list:
6
6
  # @param [string] strSessionID The session ID. required
7
- # intents(strSessionID:)
8
- def self.intents(**args)
9
- exec_http_request('get', '/memori/v2/Intents/{strSessionID}', args)
7
+ # list_intents(strSessionID:)
8
+ def self.list_intents(strSessionID:)
9
+ args = build_arguments(binding)
10
+
11
+ exec_http_request('get', '/memori/v2/Intents/{strSessionID}', **args)
10
12
  end
11
13
 
12
14
  # GET /memori/v2/Intents/{strSessionID}/{from}/{howMany}
@@ -15,9 +17,11 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
15
17
  # @param [string] strSessionID The session ID. required
16
18
  # @param [integer] from The 0-based index of the first Intent object to list. required
17
19
  # @param [integer] howMany The number of the Intent objects to list. required
18
- # paginated_intents(strSessionID:, from:, howMany:)
19
- def self.paginated_intents(**args)
20
- exec_http_request('get', '/memori/v2/Intents/{strSessionID}/{from}/{howMany}', args)
20
+ # list_intents_paginated(strSessionID:, from:, howMany:)
21
+ def self.list_intents_paginated(strSessionID:, from:, howMany:)
22
+ args = build_arguments(binding)
23
+
24
+ exec_http_request('get', '/memori/v2/Intents/{strSessionID}/{from}/{howMany}', **args)
21
25
  end
22
26
 
23
27
  # GET /memori/v2/Intent/{strSessionID}/{strIntentID}
@@ -26,8 +30,10 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
26
30
  # @param [string] strSessionID The session ID. required
27
31
  # @param [string] strIntentID The Intent object ID. required
28
32
  # get_intent(strSessionID:, strIntentID:)
29
- def self.get_intent(**args)
30
- exec_http_request('get', '/memori/v2/Intent/{strSessionID}/{strIntentID}', args)
33
+ def self.get_intent(strSessionID:, strIntentID:)
34
+ args = build_arguments(binding)
35
+
36
+ exec_http_request('get', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
31
37
  end
32
38
 
33
39
  # PATCH /memori/v2/Intent/{strSessionID}/{strIntentID}
@@ -37,9 +43,9 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
37
43
  # @param [string] strIntentID The Intent object ID. required
38
44
  # @param [object] payload request payload. optional
39
45
  # @param [string] payload.intentID . optional
40
- # @param [string] payload.intentType . optional
41
- # @param [string] payload.name . optional
42
- # @param [array] payload.utterances . optional
46
+ # @param [string] payload.intentType . required
47
+ # @param [string] payload.name . required
48
+ # @param [array] payload.utterances . required
43
49
  # @param [boolean] payload.timeoutIntent . optional
44
50
  # @param [string] payload.webHook . optional
45
51
  # @param [number] payload.validityMinutes . optional
@@ -47,9 +53,26 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
47
53
  # @param [string] payload.creationSessionID . optional
48
54
  # @param [string] payload.lastChangeTimestamp . optional
49
55
  # @param [string] payload.lastChangeSessionID . optional
50
- # update_intent(strSessionID:, strIntentID:)
51
- def self.update_intent(**args)
52
- exec_http_request('patch', '/memori/v2/Intent/{strSessionID}/{strIntentID}', args)
56
+ # update_intent(strSessionID:, strIntentID:, payload: {})
57
+ def self.update_intent(strSessionID:, strIntentID:, payload: {})
58
+ args = build_arguments(binding)
59
+ payload_keys = [
60
+ 'creationSessionID',
61
+ 'creationTimestamp',
62
+ 'intentID',
63
+ 'intentType',
64
+ 'lastChangeSessionID',
65
+ 'lastChangeTimestamp',
66
+ 'name',
67
+ 'timeoutIntent',
68
+ 'utterances',
69
+ 'validityMinutes',
70
+ 'webHook',
71
+ ]
72
+ payload_required_keys = %w[intentType name utterances]
73
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
74
+
75
+ exec_http_request('patch', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
53
76
  end
54
77
 
55
78
  # DELETE /memori/v2/Intent/{strSessionID}/{strIntentID}
@@ -57,9 +80,11 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
57
80
  # Params list:
58
81
  # @param [string] strSessionID The session ID. required
59
82
  # @param [string] strIntentID The Intent object ID. required
60
- # delete_intent(strSessionID:, strIntentID:)
61
- def self.delete_intent(**args)
62
- exec_http_request('delete', '/memori/v2/Intent/{strSessionID}/{strIntentID}', args)
83
+ # remove_intent(strSessionID:, strIntentID:)
84
+ def self.remove_intent(strSessionID:, strIntentID:)
85
+ args = build_arguments(binding)
86
+
87
+ exec_http_request('delete', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
63
88
  end
64
89
 
65
90
  # POST /memori/v2/Intent/{strSessionID}
@@ -68,9 +93,9 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
68
93
  # @param [string] strSessionID The session ID. required
69
94
  # @param [object] payload request payload. optional
70
95
  # @param [string] payload.intentID . optional
71
- # @param [string] payload.intentType . optional
72
- # @param [string] payload.name . optional
73
- # @param [array] payload.utterances . optional
96
+ # @param [string] payload.intentType . required
97
+ # @param [string] payload.name . required
98
+ # @param [array] payload.utterances . required
74
99
  # @param [boolean] payload.timeoutIntent . optional
75
100
  # @param [string] payload.webHook . optional
76
101
  # @param [number] payload.validityMinutes . optional
@@ -78,18 +103,37 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
78
103
  # @param [string] payload.creationSessionID . optional
79
104
  # @param [string] payload.lastChangeTimestamp . optional
80
105
  # @param [string] payload.lastChangeSessionID . optional
81
- # create_intent(strSessionID:)
82
- def self.create_intent(**args)
83
- exec_http_request('post', '/memori/v2/Intent/{strSessionID}', args)
106
+ # add_intent(strSessionID:, payload: {})
107
+ def self.add_intent(strSessionID:, payload: {})
108
+ args = build_arguments(binding)
109
+ payload_keys = [
110
+ 'creationSessionID',
111
+ 'creationTimestamp',
112
+ 'intentID',
113
+ 'intentType',
114
+ 'lastChangeSessionID',
115
+ 'lastChangeTimestamp',
116
+ 'name',
117
+ 'timeoutIntent',
118
+ 'utterances',
119
+ 'validityMinutes',
120
+ 'webHook',
121
+ ]
122
+ payload_required_keys = %w[intentType name utterances]
123
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
124
+
125
+ exec_http_request('post', '/memori/v2/Intent/{strSessionID}', **args)
84
126
  end
85
127
 
86
128
  # GET /memori/v2/IntentSlots/{strSessionID}
87
129
  # Lists all Intent Slot objects.
88
130
  # Params list:
89
131
  # @param [string] strSessionID The session ID. required
90
- # intent_slots(strSessionID:)
91
- def self.intent_slots(**args)
92
- exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}', args)
132
+ # list_intent_slots(strSessionID:)
133
+ def self.list_intent_slots(strSessionID:)
134
+ args = build_arguments(binding)
135
+
136
+ exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}', **args)
93
137
  end
94
138
 
95
139
  # GET /memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}
@@ -98,9 +142,11 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
98
142
  # @param [string] strSessionID The session ID. required
99
143
  # @param [integer] from The 0-based index of the first Intent Slot object to list. required
100
144
  # @param [integer] howMany The number of the Intent Slot objects to list. required
101
- # paginated_intent_slots(strSessionID:, from:, howMany:)
102
- def self.paginated_intent_slots(**args)
103
- exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}', args)
145
+ # list_intent_slots_paginated(strSessionID:, from:, howMany:)
146
+ def self.list_intent_slots_paginated(strSessionID:, from:, howMany:)
147
+ args = build_arguments(binding)
148
+
149
+ exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}', **args)
104
150
  end
105
151
 
106
152
  # GET /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
@@ -109,8 +155,10 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
109
155
  # @param [string] strSessionID The session ID. required
110
156
  # @param [string] strSlotID The Intent Slot object ID. required
111
157
  # get_intent_slot(strSessionID:, strSlotID:)
112
- def self.get_intent_slot(**args)
113
- exec_http_request('get', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', args)
158
+ def self.get_intent_slot(strSessionID:, strSlotID:)
159
+ args = build_arguments(binding)
160
+
161
+ exec_http_request('get', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
114
162
  end
115
163
 
116
164
  # PATCH /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
@@ -120,7 +168,7 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
120
168
  # @param [string] strSlotID The Intent Slot object ID. required
121
169
  # @param [object] payload request payload. optional
122
170
  # @param [string] payload.intentSlotID . optional
123
- # @param [string] payload.name . optional
171
+ # @param [string] payload.name . required
124
172
  # @param [array] payload.values . optional
125
173
  # @param [string] payload.webHook . optional
126
174
  # @param [number] payload.validityMinutes . optional
@@ -128,9 +176,24 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
128
176
  # @param [string] payload.creationSessionID . optional
129
177
  # @param [string] payload.lastChangeTimestamp . optional
130
178
  # @param [string] payload.lastChangeSessionID . optional
131
- # update_intent_slot(strSessionID:, strSlotID:)
132
- def self.update_intent_slot(**args)
133
- exec_http_request('patch', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', args)
179
+ # update_intent_slot(strSessionID:, strSlotID:, payload: {})
180
+ def self.update_intent_slot(strSessionID:, strSlotID:, payload: {})
181
+ args = build_arguments(binding)
182
+ payload_keys = [
183
+ 'creationSessionID',
184
+ 'creationTimestamp',
185
+ 'intentSlotID',
186
+ 'lastChangeSessionID',
187
+ 'lastChangeTimestamp',
188
+ 'name',
189
+ 'validityMinutes',
190
+ 'values',
191
+ 'webHook',
192
+ ]
193
+ payload_required_keys = %w[name]
194
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
195
+
196
+ exec_http_request('patch', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
134
197
  end
135
198
 
136
199
  # DELETE /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
@@ -138,9 +201,11 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
138
201
  # Params list:
139
202
  # @param [string] strSessionID The session ID. required
140
203
  # @param [string] strSlotID The Intent Slot object ID. required
141
- # delete_intent_slot(strSessionID:, strSlotID:)
142
- def self.delete_intent_slot(**args)
143
- exec_http_request('delete', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', args)
204
+ # remove_intent_slot(strSessionID:, strSlotID:)
205
+ def self.remove_intent_slot(strSessionID:, strSlotID:)
206
+ args = build_arguments(binding)
207
+
208
+ exec_http_request('delete', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
144
209
  end
145
210
 
146
211
  # POST /memori/v2/IntentSlot/{strSessionID}
@@ -149,7 +214,7 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
149
214
  # @param [string] strSessionID The session ID. required
150
215
  # @param [object] payload request payload. optional
151
216
  # @param [string] payload.intentSlotID . optional
152
- # @param [string] payload.name . optional
217
+ # @param [string] payload.name . required
153
218
  # @param [array] payload.values . optional
154
219
  # @param [string] payload.webHook . optional
155
220
  # @param [number] payload.validityMinutes . optional
@@ -157,9 +222,24 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
157
222
  # @param [string] payload.creationSessionID . optional
158
223
  # @param [string] payload.lastChangeTimestamp . optional
159
224
  # @param [string] payload.lastChangeSessionID . optional
160
- # create_intent_slot(strSessionID:)
161
- def self.create_intent_slot(**args)
162
- exec_http_request('post', '/memori/v2/IntentSlot/{strSessionID}', args)
225
+ # add_intent_slot(strSessionID:, payload: {})
226
+ def self.add_intent_slot(strSessionID:, payload: {})
227
+ args = build_arguments(binding)
228
+ payload_keys = [
229
+ 'creationSessionID',
230
+ 'creationTimestamp',
231
+ 'intentSlotID',
232
+ 'lastChangeSessionID',
233
+ 'lastChangeTimestamp',
234
+ 'name',
235
+ 'validityMinutes',
236
+ 'values',
237
+ 'webHook',
238
+ ]
239
+ payload_required_keys = %w[name]
240
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
241
+
242
+ exec_http_request('post', '/memori/v2/IntentSlot/{strSessionID}', **args)
163
243
  end
164
244
 
165
245
 
@@ -0,0 +1,108 @@
1
+ # Generated on 2024-01-18 17:37:07 +0000
2
+ class MemoriClient::Engine::V2::LocalizationKey < MemoriClient::Engine::Resource
3
+ # GET /memori/v2/LocalizationKeys/{strSessionID}
4
+ # Lists all Localization Keys.
5
+ # Params list:
6
+ # @param [string] strSessionID The session ID. required
7
+ # list_localization_keys(strSessionID:)
8
+ def self.list_localization_keys(strSessionID:)
9
+ args = build_arguments(binding)
10
+
11
+ exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}', **args)
12
+ end
13
+
14
+ # GET /memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}
15
+ # Lists Localization Keys with pagination.
16
+ # Params list:
17
+ # @param [string] strSessionID The session ID. required
18
+ # @param [integer] from The 0-based index of the first Localization Key to list. required
19
+ # @param [integer] howMany The number of the Localization Keys to list. required
20
+ # list_localization_keys_paginated(strSessionID:, from:, howMany:)
21
+ def self.list_localization_keys_paginated(strSessionID:, from:, howMany:)
22
+ args = build_arguments(binding)
23
+
24
+ exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}', **args)
25
+ end
26
+
27
+ # GET /memori/v2/LocalizationKey/{strSessionID}/{strKey}
28
+ # Get an existing Localization Key.
29
+ # Params list:
30
+ # @param [string] strSessionID The session ID. required
31
+ # @param [string] strKey The key of the Localization Key. required
32
+ # get_localization_key(strSessionID:, strKey:)
33
+ def self.get_localization_key(strSessionID:, strKey:)
34
+ args = build_arguments(binding)
35
+
36
+ exec_http_request('get', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
37
+ end
38
+
39
+ # DELETE /memori/v2/LocalizationKey/{strSessionID}/{strKey}
40
+ # Removes an existing Localization Key.
41
+ # Params list:
42
+ # @param [string] strSessionID The session ID. required
43
+ # @param [string] strKey The key of the Localization Key. required
44
+ # remove_localization_key(strSessionID:, strKey:)
45
+ def self.remove_localization_key(strSessionID:, strKey:)
46
+ args = build_arguments(binding)
47
+
48
+ exec_http_request('delete', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
49
+ end
50
+
51
+ # POST /memori/v2/LocalizationKey/{strSessionID}
52
+ # Add an new Localization Key.
53
+ # Params list:
54
+ # @param [string] strSessionID The session ID. required
55
+ # @param [object] payload request payload. optional
56
+ # @param [string] payload.key . optional
57
+ # @param [string] payload.value . required
58
+ # @param [string] payload.creationTimestamp . optional
59
+ # @param [string] payload.creationSessionID . optional
60
+ # @param [string] payload.lastChangeTimestamp . optional
61
+ # @param [string] payload.lastChangeSessionID . optional
62
+ # add_localization_key(strSessionID:, payload: {})
63
+ def self.add_localization_key(strSessionID:, payload: {})
64
+ args = build_arguments(binding)
65
+ payload_keys = [
66
+ 'creationSessionID',
67
+ 'creationTimestamp',
68
+ 'key',
69
+ 'lastChangeSessionID',
70
+ 'lastChangeTimestamp',
71
+ 'value',
72
+ ]
73
+ payload_required_keys = %w[value]
74
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
75
+
76
+ exec_http_request('post', '/memori/v2/LocalizationKey/{strSessionID}', **args)
77
+ end
78
+
79
+ # PATCH /memori/v2/LocalizationKey/{strSessionID}
80
+ # Updates an existing Localization Key.
81
+ # Params list:
82
+ # @param [string] strSessionID The session ID. required
83
+ # @param [object] payload request payload. optional
84
+ # @param [string] payload.key . optional
85
+ # @param [string] payload.value . required
86
+ # @param [string] payload.creationTimestamp . optional
87
+ # @param [string] payload.creationSessionID . optional
88
+ # @param [string] payload.lastChangeTimestamp . optional
89
+ # @param [string] payload.lastChangeSessionID . optional
90
+ # update_localization_key(strSessionID:, payload: {})
91
+ def self.update_localization_key(strSessionID:, payload: {})
92
+ args = build_arguments(binding)
93
+ payload_keys = [
94
+ 'creationSessionID',
95
+ 'creationTimestamp',
96
+ 'key',
97
+ 'lastChangeSessionID',
98
+ 'lastChangeTimestamp',
99
+ 'value',
100
+ ]
101
+ payload_required_keys = %w[value]
102
+ validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
103
+
104
+ exec_http_request('patch', '/memori/v2/LocalizationKey/{strSessionID}', **args)
105
+ end
106
+
107
+
108
+ end