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
@@ -1,113 +1,147 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::MemoriList < MemoriClient::Backend::Resource
|
3
|
-
# GET /api/v2/Memori/{strToken}
|
3
|
+
# `GET /api/v2/Memori/{strToken}`
|
4
|
+
#
|
4
5
|
# Gets a list of Memori objects owned by the currently logged in User.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strToken The login token. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# `list_memori(strToken:)`
|
8
11
|
def self.list_memori(strToken:)
|
9
12
|
args = build_arguments(binding)
|
10
13
|
|
11
14
|
exec_http_request('get', '/api/v2/Memori/{strToken}', **args)
|
12
15
|
end
|
13
16
|
|
14
|
-
# GET /api/v2/MemoriConfigs/{strToken}
|
17
|
+
# `GET /api/v2/MemoriConfigs/{strToken}`
|
18
|
+
#
|
15
19
|
# Gets a list of all the Memori Configuration objects.
|
16
|
-
#
|
20
|
+
#
|
21
|
+
#
|
17
22
|
# @param [string] strToken The login token. required
|
18
|
-
#
|
23
|
+
#
|
24
|
+
# `list_memori_configs(strToken:)`
|
19
25
|
def self.list_memori_configs(strToken:)
|
20
26
|
args = build_arguments(binding)
|
21
27
|
|
22
28
|
exec_http_request('get', '/api/v2/MemoriConfigs/{strToken}', **args)
|
23
29
|
end
|
24
30
|
|
25
|
-
# GET /api/v2/TenantMemoriCategories/{tenantName}
|
31
|
+
# `GET /api/v2/TenantMemoriCategories/{tenantName}`
|
32
|
+
#
|
26
33
|
# Gets a list of all the known Memori categories (or tags).
|
27
|
-
#
|
34
|
+
#
|
35
|
+
#
|
28
36
|
# @param [string] tenantName The name of Tenant. required
|
29
|
-
#
|
37
|
+
#
|
38
|
+
# `list_tenant_memori_categories(tenantName:)`
|
30
39
|
def self.list_tenant_memori_categories(tenantName:)
|
31
40
|
args = build_arguments(binding)
|
32
41
|
|
33
42
|
exec_http_request('get', '/api/v2/TenantMemoriCategories/{tenantName}', **args)
|
34
43
|
end
|
35
44
|
|
36
|
-
# GET /api/v2/TenantPublicMemori/{tenantName}
|
45
|
+
# `GET /api/v2/TenantPublicMemori/{tenantName}`
|
46
|
+
#
|
37
47
|
# Gets a list of all the public Memori objects for a specific Tenant.
|
38
|
-
#
|
48
|
+
#
|
49
|
+
#
|
39
50
|
# @param [string] tenantName The name of Tenant. required
|
40
|
-
#
|
51
|
+
#
|
52
|
+
# `list_tenant_public_memori(tenantName:)`
|
41
53
|
def self.list_tenant_public_memori(tenantName:)
|
42
54
|
args = build_arguments(binding)
|
43
55
|
|
44
56
|
exec_http_request('get', '/api/v2/TenantPublicMemori/{tenantName}', **args)
|
45
57
|
end
|
46
58
|
|
47
|
-
# GET /api/v2/TenantMetaverseMemori/{tenantName}
|
59
|
+
# `GET /api/v2/TenantMetaverseMemori/{tenantName}`
|
60
|
+
#
|
48
61
|
# Gets a list of all the Memori objects published on the Metaverse for a specific Tenant.
|
49
|
-
#
|
62
|
+
#
|
63
|
+
#
|
50
64
|
# @param [string] tenantName The name of Tenant. required
|
51
|
-
#
|
65
|
+
#
|
66
|
+
# `list_tenant_metaverse_memori(tenantName:)`
|
52
67
|
def self.list_tenant_metaverse_memori(tenantName:)
|
53
68
|
args = build_arguments(binding)
|
54
69
|
|
55
70
|
exec_http_request('get', '/api/v2/TenantMetaverseMemori/{tenantName}', **args)
|
56
71
|
end
|
57
72
|
|
58
|
-
# GET /api/v2/PublicMemori/{strToken}
|
73
|
+
# `GET /api/v2/PublicMemori/{strToken}`
|
74
|
+
#
|
59
75
|
# Gets a list of the public Memori objects for the currently logged in User.
|
60
|
-
#
|
76
|
+
#
|
77
|
+
#
|
61
78
|
# @param [string] strToken The login token. required
|
62
|
-
#
|
79
|
+
#
|
80
|
+
# `list_public_memori(strToken:)`
|
63
81
|
def self.list_public_memori(strToken:)
|
64
82
|
args = build_arguments(binding)
|
65
83
|
|
66
84
|
exec_http_request('get', '/api/v2/PublicMemori/{strToken}', **args)
|
67
85
|
end
|
68
86
|
|
69
|
-
# GET /api/v2/SharedMemori/{strToken}
|
87
|
+
# `GET /api/v2/SharedMemori/{strToken}`
|
88
|
+
#
|
70
89
|
# Gets a list of Memori objects shared with the currently logged in User.
|
71
|
-
#
|
90
|
+
#
|
91
|
+
#
|
72
92
|
# @param [string] strToken The login token. required
|
73
|
-
#
|
93
|
+
#
|
94
|
+
# `list_shared_memori(strToken:)`
|
74
95
|
def self.list_shared_memori(strToken:)
|
75
96
|
args = build_arguments(binding)
|
76
97
|
|
77
98
|
exec_http_request('get', '/api/v2/SharedMemori/{strToken}', **args)
|
78
99
|
end
|
79
100
|
|
80
|
-
# GET /api/v2/UserMemori/{tenantName}/{userName}/{strToken}
|
101
|
+
# `GET /api/v2/UserMemori/{tenantName}/{userName}/{strToken}`
|
102
|
+
#
|
81
103
|
# Gets a list of Memori objects owned by the specified user.
|
82
|
-
#
|
104
|
+
#
|
105
|
+
#
|
83
106
|
# @param [string] tenantName The name of Tenant. required
|
107
|
+
#
|
84
108
|
# @param [string] userName The name of the User. required
|
109
|
+
#
|
85
110
|
# @param [string] strToken The optional login token. optional
|
86
|
-
#
|
111
|
+
#
|
112
|
+
# `list_user_memori_by_name(tenantName:, userName:, strToken: nil)`
|
87
113
|
def self.list_user_memori_by_name(tenantName:, userName:, strToken: nil)
|
88
114
|
args = build_arguments(binding)
|
89
115
|
|
90
116
|
exec_http_request('get', '/api/v2/UserMemori/{tenantName}/{userName}/{strToken}', **args)
|
91
117
|
end
|
92
118
|
|
93
|
-
# GET /api/v2/UserMemoriByID/{tenantName}/{strUserID}/{strToken}
|
119
|
+
# `GET /api/v2/UserMemoriByID/{tenantName}/{strUserID}/{strToken}`
|
120
|
+
#
|
94
121
|
# Gets a list of Memori objects owned by the specified user.
|
95
|
-
#
|
122
|
+
#
|
123
|
+
#
|
96
124
|
# @param [string] tenantName The name of Tenant. required
|
125
|
+
#
|
97
126
|
# @param [string] strUserID The ID of the User object. required
|
127
|
+
#
|
98
128
|
# @param [string] strToken The optional login token. optional
|
99
|
-
#
|
129
|
+
#
|
130
|
+
# `list_user_memori_by_id(tenantName:, strUserID:, strToken: nil)`
|
100
131
|
def self.list_user_memori_by_id(tenantName:, strUserID:, strToken: nil)
|
101
132
|
args = build_arguments(binding)
|
102
133
|
|
103
134
|
exec_http_request('get', '/api/v2/UserMemoriByID/{tenantName}/{strUserID}/{strToken}', **args)
|
104
135
|
end
|
105
136
|
|
106
|
-
# GET /api/v2/AllMemori/{strToken}
|
137
|
+
# `GET /api/v2/AllMemori/{strToken}`
|
138
|
+
#
|
107
139
|
# Gets a list of all Memori objects.
|
108
|
-
#
|
140
|
+
#
|
141
|
+
#
|
109
142
|
# @param [string] strToken The login token. required
|
110
|
-
#
|
143
|
+
#
|
144
|
+
# `list_all_memori(strToken:)`
|
111
145
|
def self.list_all_memori(strToken:)
|
112
146
|
args = build_arguments(binding)
|
113
147
|
|
@@ -1,21 +1,27 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::Notification < MemoriClient::Backend::Resource
|
3
|
-
# GET /api/v2/TenantNotifications/{tenantName}
|
3
|
+
# `GET /api/v2/TenantNotifications/{tenantName}`
|
4
|
+
#
|
4
5
|
# Gets the Notification objects for a specific Tenant.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] tenantName The name of the Tenant. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# `get_tenant_notifications(tenantName:)`
|
8
11
|
def self.get_tenant_notifications(tenantName:)
|
9
12
|
args = build_arguments(binding)
|
10
13
|
|
11
14
|
exec_http_request('get', '/api/v2/TenantNotifications/{tenantName}', **args)
|
12
15
|
end
|
13
16
|
|
14
|
-
# GET /api/v2/UserNotifications/{strToken}
|
17
|
+
# `GET /api/v2/UserNotifications/{strToken}`
|
18
|
+
#
|
15
19
|
# Gets the Notification objects for the currently logged in user.
|
16
|
-
#
|
20
|
+
#
|
21
|
+
#
|
17
22
|
# @param [string] strToken The login token. required
|
18
|
-
#
|
23
|
+
#
|
24
|
+
# `get_user_notifications(strToken:)`
|
19
25
|
def self.get_user_notifications(strToken:)
|
20
26
|
args = build_arguments(binding)
|
21
27
|
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
|
+
class MemoriClient::Backend::V2::Process < MemoriClient::Backend::Resource
|
3
|
+
# `GET /api/v2/Processes/{strToken}/{strType}`
|
4
|
+
#
|
5
|
+
# Gets a list of Process objects started by the currently logged in User.
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# @param [string] strToken The login token. required
|
9
|
+
#
|
10
|
+
# @param [string] strType Optional filter for Process type. optional
|
11
|
+
#
|
12
|
+
# `list_processes(strToken:, strType: nil)`
|
13
|
+
def self.list_processes(strToken:, strType: nil)
|
14
|
+
args = build_arguments(binding)
|
15
|
+
|
16
|
+
exec_http_request('get', '/api/v2/Processes/{strToken}/{strType}', **args)
|
17
|
+
end
|
18
|
+
|
19
|
+
# `GET /api/v2/MemoriProcesses/{strToken}/{strMemoriID}/{strType}`
|
20
|
+
#
|
21
|
+
# Gets a list of Process objects for the specified Memori.
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# @param [string] strToken The login token. required
|
25
|
+
#
|
26
|
+
# @param [string] strMemoriID The ID of the Memori object. required
|
27
|
+
#
|
28
|
+
# @param [string] strType Optional filter for Process type. optional
|
29
|
+
#
|
30
|
+
# `list_memori_processes(strToken:, strMemoriID:, strType: nil)`
|
31
|
+
def self.list_memori_processes(strToken:, strMemoriID:, strType: nil)
|
32
|
+
args = build_arguments(binding)
|
33
|
+
|
34
|
+
exec_http_request('get', '/api/v2/MemoriProcesses/{strToken}/{strMemoriID}/{strType}', **args)
|
35
|
+
end
|
36
|
+
|
37
|
+
# `GET /api/v2/ProcessStatus/{strToken}/{strProcessID}`
|
38
|
+
#
|
39
|
+
# Gets the status of an Process object.
|
40
|
+
#
|
41
|
+
#
|
42
|
+
# @param [string] strToken The login token. required
|
43
|
+
#
|
44
|
+
# @param [string] strProcessID The Process object ID. required
|
45
|
+
#
|
46
|
+
# `get_process_status(strToken:, strProcessID:)`
|
47
|
+
def self.get_process_status(strToken:, strProcessID:)
|
48
|
+
args = build_arguments(binding)
|
49
|
+
|
50
|
+
exec_http_request('get', '/api/v2/ProcessStatus/{strToken}/{strProcessID}', **args)
|
51
|
+
end
|
52
|
+
|
53
|
+
# `POST /api/v2/StopProcess/{strToken}/{strProcessID}`
|
54
|
+
#
|
55
|
+
# Interrupts an ongoing Process object.
|
56
|
+
#
|
57
|
+
#
|
58
|
+
# @param [string] strToken The login token. required
|
59
|
+
#
|
60
|
+
# @param [string] strProcessID The Process object ID. required
|
61
|
+
#
|
62
|
+
# `stop_process(strToken:, strProcessID:)`
|
63
|
+
def self.stop_process(strToken:, strProcessID:)
|
64
|
+
args = build_arguments(binding)
|
65
|
+
|
66
|
+
exec_http_request('post', '/api/v2/StopProcess/{strToken}/{strProcessID}', **args)
|
67
|
+
end
|
68
|
+
|
69
|
+
|
70
|
+
end
|
@@ -1,88 +1,143 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 16:56:15 +0000
|
2
2
|
class MemoriClient::Backend::V2::Tenant < MemoriClient::Backend::Resource
|
3
|
-
# GET /api/v2/HealthCheck
|
3
|
+
# `GET /api/v2/HealthCheck`
|
4
|
+
#
|
4
5
|
# No operation.
|
5
|
-
#
|
6
|
+
#
|
6
7
|
|
7
|
-
#
|
8
|
+
#
|
9
|
+
# `health_check()`
|
8
10
|
def self.health_check()
|
9
11
|
args = build_arguments(binding)
|
10
12
|
|
11
13
|
exec_http_request('get', '/api/v2/HealthCheck', **args)
|
12
14
|
end
|
13
15
|
|
14
|
-
# GET /api/v2/Tenants/{strToken}
|
16
|
+
# `GET /api/v2/Tenants/{strToken}`
|
17
|
+
#
|
15
18
|
# Gets the list of of all Tenant objects.
|
16
|
-
#
|
19
|
+
#
|
20
|
+
#
|
17
21
|
# @param [string] strToken The login token. required
|
18
|
-
#
|
22
|
+
#
|
23
|
+
# `list_tenants(strToken:)`
|
19
24
|
def self.list_tenants(strToken:)
|
20
25
|
args = build_arguments(binding)
|
21
26
|
|
22
27
|
exec_http_request('get', '/api/v2/Tenants/{strToken}', **args)
|
23
28
|
end
|
24
29
|
|
25
|
-
# GET /api/v2/Tenant/{tenantName}
|
30
|
+
# `GET /api/v2/Tenant/{tenantName}`
|
31
|
+
#
|
26
32
|
# Gets the details of a Tenant object.
|
27
|
-
#
|
33
|
+
#
|
34
|
+
#
|
28
35
|
# @param [string] tenantName The name of the Tenant. required
|
29
|
-
#
|
36
|
+
#
|
37
|
+
# `get_tenant(tenantName:)`
|
30
38
|
def self.get_tenant(tenantName:)
|
31
39
|
args = build_arguments(binding)
|
32
40
|
|
33
41
|
exec_http_request('get', '/api/v2/Tenant/{tenantName}', **args)
|
34
42
|
end
|
35
43
|
|
36
|
-
# POST /api/v2/Tenant/{strToken}/{tenantName}
|
44
|
+
# `POST /api/v2/Tenant/{strToken}/{tenantName}`
|
45
|
+
#
|
37
46
|
# Duplicates a Tenant object.
|
38
|
-
#
|
47
|
+
#
|
48
|
+
#
|
39
49
|
# @param [string] strToken The login token. required
|
50
|
+
#
|
40
51
|
# @param [string] tenantName The name of the Tenant to duplicate. required
|
41
|
-
#
|
42
|
-
# @param [
|
43
|
-
#
|
44
|
-
# @param [
|
45
|
-
#
|
46
|
-
# @param [
|
47
|
-
#
|
48
|
-
# @param [
|
49
|
-
#
|
50
|
-
# @param [
|
51
|
-
#
|
52
|
-
# @param [
|
53
|
-
#
|
54
|
-
# @param [
|
55
|
-
#
|
56
|
-
# @param [
|
57
|
-
#
|
58
|
-
# @param [
|
59
|
-
#
|
60
|
-
# @param [
|
61
|
-
#
|
62
|
-
# @param [
|
63
|
-
#
|
64
|
-
# @param [
|
65
|
-
#
|
66
|
-
# @param [
|
67
|
-
#
|
68
|
-
# @param [
|
69
|
-
#
|
70
|
-
# @param [
|
71
|
-
#
|
72
|
-
# @param [
|
73
|
-
#
|
74
|
-
# @param [
|
75
|
-
#
|
52
|
+
#
|
53
|
+
# @param [Hash] payload request payload. optional
|
54
|
+
#
|
55
|
+
# @param [String] payload.tenantID . optional
|
56
|
+
#
|
57
|
+
# @param [String] payload.name . optional
|
58
|
+
#
|
59
|
+
# @param [Array] payload.aliases . optional
|
60
|
+
#
|
61
|
+
# @param [String] payload.description . optional
|
62
|
+
#
|
63
|
+
# @param [String] payload.logoURL . optional
|
64
|
+
#
|
65
|
+
# @param [String] payload.adminEmail . optional
|
66
|
+
#
|
67
|
+
# @param [String] payload.theme . optional
|
68
|
+
#
|
69
|
+
# @param [String] payload.feedbackURL . optional
|
70
|
+
#
|
71
|
+
# @param [Integer] payload.adminCount . optional
|
72
|
+
#
|
73
|
+
# @param [Integer] payload.userCount . optional
|
74
|
+
#
|
75
|
+
# @param [Integer] payload.memoriCount . optional
|
76
|
+
#
|
77
|
+
# @param [Boolean] payload.disableRegistration . optional
|
78
|
+
#
|
79
|
+
# @param [Integer] payload.maxMemoriPerAdmin . optional
|
80
|
+
#
|
81
|
+
# @param [Integer] payload.maxMemoriPerUser . optional
|
82
|
+
#
|
83
|
+
# @param [Integer] payload.maxTotalMemori . optional
|
84
|
+
#
|
85
|
+
# @param [Integer] payload.maxAdmins . optional
|
86
|
+
#
|
87
|
+
# @param [Integer] payload.maxUsers . optional
|
88
|
+
#
|
89
|
+
# @param [Integer] payload.maxFreeSessions . optional
|
90
|
+
#
|
91
|
+
# @param [Integer] payload.maxFreeSessionsPerUser . optional
|
92
|
+
#
|
93
|
+
# @param [Number] payload.nonFreeSessionCost . optional
|
94
|
+
#
|
95
|
+
# @param [Integer] payload.maxCompletions . optional
|
96
|
+
#
|
97
|
+
# @param [Integer] payload.maxCompletionsPerUser . optional
|
98
|
+
#
|
99
|
+
# @param [Integer] payload.maxImportSize . optional
|
100
|
+
#
|
101
|
+
# @param [Integer] payload.maxImportSizePerUser . optional
|
102
|
+
#
|
103
|
+
# @param [Boolean] payload.paying . optional
|
104
|
+
#
|
105
|
+
# @param [Boolean] payload.enableUserMemoriCreation . optional
|
106
|
+
#
|
107
|
+
# @param [Boolean] payload.enableBoardOfExperts . optional
|
108
|
+
#
|
109
|
+
# @param [Boolean] payload.enableDCMIntegration . optional
|
110
|
+
#
|
111
|
+
# @param [Boolean] payload.enableBadges . optional
|
112
|
+
#
|
113
|
+
# @param [Boolean] payload.enableDeepThought . optional
|
114
|
+
#
|
115
|
+
# @param [Boolean] payload.enableVirtualSpaces . optional
|
116
|
+
#
|
117
|
+
# @param [Boolean] payload.billingDelegation . optional
|
118
|
+
#
|
119
|
+
# @param [String] payload.creationTimestamp . optional
|
120
|
+
#
|
121
|
+
# @param [String] payload.lastChangeTimestamp . optional
|
122
|
+
#
|
123
|
+
# `duplicate_tenant(strToken:, tenantName:, payload: {})`
|
76
124
|
def self.duplicate_tenant(strToken:, tenantName:, payload: {})
|
77
125
|
args = build_arguments(binding)
|
78
126
|
payload_keys = [
|
79
127
|
'adminCount',
|
128
|
+
'adminEmail',
|
129
|
+
'aliases',
|
130
|
+
'billingDelegation',
|
80
131
|
'creationTimestamp',
|
81
|
-
'defaultCompletionProvider',
|
82
|
-
'defaultCompletionProviderConfig',
|
83
132
|
'description',
|
84
133
|
'disableRegistration',
|
85
134
|
'enableBadges',
|
135
|
+
'enableBoardOfExperts',
|
136
|
+
'enableDCMIntegration',
|
137
|
+
'enableDeepThought',
|
138
|
+
'enableUserMemoriCreation',
|
139
|
+
'enableVirtualSpaces',
|
140
|
+
'feedbackURL',
|
86
141
|
'lastChangeTimestamp',
|
87
142
|
'logoURL',
|
88
143
|
'maxAdmins',
|
@@ -101,14 +156,8 @@ class MemoriClient::Backend::V2::Tenant < MemoriClient::Backend::Resource
|
|
101
156
|
'nonFreeSessionCost',
|
102
157
|
'paying',
|
103
158
|
'tenantID',
|
159
|
+
'theme',
|
104
160
|
'userCount',
|
105
|
-
'usersCanAccessAPI',
|
106
|
-
'usersCanCreateMemori',
|
107
|
-
'usersCanEditDCMIntegration',
|
108
|
-
'usersCanEditDynamicIntents',
|
109
|
-
'usersCanEditIntegrations',
|
110
|
-
'usersCanEditMemoriChaining',
|
111
|
-
'usersCanRunSnippets',
|
112
161
|
]
|
113
162
|
payload_required_keys = %w[]
|
114
163
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
@@ -116,56 +165,103 @@ class MemoriClient::Backend::V2::Tenant < MemoriClient::Backend::Resource
|
|
116
165
|
exec_http_request('post', '/api/v2/Tenant/{strToken}/{tenantName}', **args)
|
117
166
|
end
|
118
167
|
|
119
|
-
# PATCH /api/v2/Tenant/{strToken}/{tenantName}
|
168
|
+
# `PATCH /api/v2/Tenant/{strToken}/{tenantName}`
|
169
|
+
#
|
120
170
|
# Updates the details of a Tenant object.
|
121
|
-
#
|
171
|
+
#
|
172
|
+
#
|
122
173
|
# @param [string] strToken The login token. required
|
174
|
+
#
|
123
175
|
# @param [string] tenantName The name of the Tenant to update. required
|
124
|
-
#
|
125
|
-
# @param [
|
126
|
-
#
|
127
|
-
# @param [
|
128
|
-
#
|
129
|
-
# @param [
|
130
|
-
#
|
131
|
-
# @param [
|
132
|
-
#
|
133
|
-
# @param [
|
134
|
-
#
|
135
|
-
# @param [
|
136
|
-
#
|
137
|
-
# @param [
|
138
|
-
#
|
139
|
-
# @param [
|
140
|
-
#
|
141
|
-
# @param [
|
142
|
-
#
|
143
|
-
# @param [
|
144
|
-
#
|
145
|
-
# @param [
|
146
|
-
#
|
147
|
-
# @param [
|
148
|
-
#
|
149
|
-
# @param [
|
150
|
-
#
|
151
|
-
# @param [
|
152
|
-
#
|
153
|
-
# @param [
|
154
|
-
#
|
155
|
-
# @param [
|
156
|
-
#
|
157
|
-
# @param [
|
158
|
-
#
|
176
|
+
#
|
177
|
+
# @param [Hash] payload request payload. optional
|
178
|
+
#
|
179
|
+
# @param [String] payload.tenantID . optional
|
180
|
+
#
|
181
|
+
# @param [String] payload.name . optional
|
182
|
+
#
|
183
|
+
# @param [Array] payload.aliases . optional
|
184
|
+
#
|
185
|
+
# @param [String] payload.description . optional
|
186
|
+
#
|
187
|
+
# @param [String] payload.logoURL . optional
|
188
|
+
#
|
189
|
+
# @param [String] payload.adminEmail . optional
|
190
|
+
#
|
191
|
+
# @param [String] payload.theme . optional
|
192
|
+
#
|
193
|
+
# @param [String] payload.feedbackURL . optional
|
194
|
+
#
|
195
|
+
# @param [Integer] payload.adminCount . optional
|
196
|
+
#
|
197
|
+
# @param [Integer] payload.userCount . optional
|
198
|
+
#
|
199
|
+
# @param [Integer] payload.memoriCount . optional
|
200
|
+
#
|
201
|
+
# @param [Boolean] payload.disableRegistration . optional
|
202
|
+
#
|
203
|
+
# @param [Integer] payload.maxMemoriPerAdmin . optional
|
204
|
+
#
|
205
|
+
# @param [Integer] payload.maxMemoriPerUser . optional
|
206
|
+
#
|
207
|
+
# @param [Integer] payload.maxTotalMemori . optional
|
208
|
+
#
|
209
|
+
# @param [Integer] payload.maxAdmins . optional
|
210
|
+
#
|
211
|
+
# @param [Integer] payload.maxUsers . optional
|
212
|
+
#
|
213
|
+
# @param [Integer] payload.maxFreeSessions . optional
|
214
|
+
#
|
215
|
+
# @param [Integer] payload.maxFreeSessionsPerUser . optional
|
216
|
+
#
|
217
|
+
# @param [Number] payload.nonFreeSessionCost . optional
|
218
|
+
#
|
219
|
+
# @param [Integer] payload.maxCompletions . optional
|
220
|
+
#
|
221
|
+
# @param [Integer] payload.maxCompletionsPerUser . optional
|
222
|
+
#
|
223
|
+
# @param [Integer] payload.maxImportSize . optional
|
224
|
+
#
|
225
|
+
# @param [Integer] payload.maxImportSizePerUser . optional
|
226
|
+
#
|
227
|
+
# @param [Boolean] payload.paying . optional
|
228
|
+
#
|
229
|
+
# @param [Boolean] payload.enableUserMemoriCreation . optional
|
230
|
+
#
|
231
|
+
# @param [Boolean] payload.enableBoardOfExperts . optional
|
232
|
+
#
|
233
|
+
# @param [Boolean] payload.enableDCMIntegration . optional
|
234
|
+
#
|
235
|
+
# @param [Boolean] payload.enableBadges . optional
|
236
|
+
#
|
237
|
+
# @param [Boolean] payload.enableDeepThought . optional
|
238
|
+
#
|
239
|
+
# @param [Boolean] payload.enableVirtualSpaces . optional
|
240
|
+
#
|
241
|
+
# @param [Boolean] payload.billingDelegation . optional
|
242
|
+
#
|
243
|
+
# @param [String] payload.creationTimestamp . optional
|
244
|
+
#
|
245
|
+
# @param [String] payload.lastChangeTimestamp . optional
|
246
|
+
#
|
247
|
+
# `update_tenant(strToken:, tenantName:, payload: {})`
|
159
248
|
def self.update_tenant(strToken:, tenantName:, payload: {})
|
160
249
|
args = build_arguments(binding)
|
161
250
|
payload_keys = [
|
162
251
|
'adminCount',
|
252
|
+
'adminEmail',
|
253
|
+
'aliases',
|
254
|
+
'billingDelegation',
|
163
255
|
'creationTimestamp',
|
164
|
-
'defaultCompletionProvider',
|
165
|
-
'defaultCompletionProviderConfig',
|
166
256
|
'description',
|
167
257
|
'disableRegistration',
|
168
258
|
'enableBadges',
|
259
|
+
'enableBoardOfExperts',
|
260
|
+
'enableDCMIntegration',
|
261
|
+
'enableDeepThought',
|
262
|
+
'enableUserMemoriCreation',
|
263
|
+
'enableVirtualSpaces',
|
264
|
+
'feedbackURL',
|
169
265
|
'lastChangeTimestamp',
|
170
266
|
'logoURL',
|
171
267
|
'maxAdmins',
|
@@ -184,14 +280,8 @@ class MemoriClient::Backend::V2::Tenant < MemoriClient::Backend::Resource
|
|
184
280
|
'nonFreeSessionCost',
|
185
281
|
'paying',
|
186
282
|
'tenantID',
|
283
|
+
'theme',
|
187
284
|
'userCount',
|
188
|
-
'usersCanAccessAPI',
|
189
|
-
'usersCanCreateMemori',
|
190
|
-
'usersCanEditDCMIntegration',
|
191
|
-
'usersCanEditDynamicIntents',
|
192
|
-
'usersCanEditIntegrations',
|
193
|
-
'usersCanEditMemoriChaining',
|
194
|
-
'usersCanRunSnippets',
|
195
285
|
]
|
196
286
|
payload_required_keys = %w[]
|
197
287
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|