files.com 1.1.653 → 1.1.655
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/_VERSION +1 -1
- data/docs/chat_message.md +17 -0
- data/docs/chat_session.md +55 -0
- data/docs/site.md +4 -0
- data/lib/files.com/models/chat_message.rb +32 -0
- data/lib/files.com/models/chat_session.rb +74 -0
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f550b866a12c5e9fd573f826a139df67f7e7848f02547449196489566285812
|
|
4
|
+
data.tar.gz: 410a965a82c44ea690a81577c6474a9e2ba0db9ee65dcbee8c0807e341a37ef7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 610a8f1c87eea42c786776d83c22639ed35d4c7540bbc500f6d692cc79a533ebfe7cd9e06e19935890856a810d735f74b116855f70e20d3000ae680b8480a305
|
|
7
|
+
data.tar.gz: 4620f3a86fdc11734cb9739d6303d186933182a9007a20af745877672d97fd9de5430794bf73b42f74b273cb6fabac40ccedbaad3d9020f7d26e7b105f0a2be5
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.655
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ChatMessage
|
|
2
|
+
|
|
3
|
+
## Example ChatMessage Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"role": "example",
|
|
9
|
+
"content": "example",
|
|
10
|
+
"created_at": "2000-01-01T01:00:00Z"
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
* `id` (int64): Chat Message ID.
|
|
15
|
+
* `role` (string): Message role.
|
|
16
|
+
* `content` (string): Message content.
|
|
17
|
+
* `created_at` (date-time): Message creation date/time.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# ChatSession
|
|
2
|
+
|
|
3
|
+
## Example ChatSession Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"user_id": 1,
|
|
9
|
+
"workspace_id": 1,
|
|
10
|
+
"last_active_at": "2000-01-01T01:00:00Z",
|
|
11
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
12
|
+
"messages": [
|
|
13
|
+
{
|
|
14
|
+
"id": 1,
|
|
15
|
+
"role": "example",
|
|
16
|
+
"content": "example",
|
|
17
|
+
"created_at": "2000-01-01T01:00:00Z"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
* `id` (int64): Chat Session ID.
|
|
24
|
+
* `user_id` (int64): User ID.
|
|
25
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
26
|
+
* `last_active_at` (date-time): Most recent chat activity date/time.
|
|
27
|
+
* `created_at` (date-time): Chat session creation date/time.
|
|
28
|
+
* `messages` (array(object)): Visible conversation messages in this chat session. For performance reasons, this is not provided when listing chat sessions.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## List Chat Sessions
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Files::ChatSession.list
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
42
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Show Chat Session
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Files::ChatSession.find(id)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
* `id` (int64): Required - Chat Session ID.
|
data/docs/site.md
CHANGED
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"desktop_app_session_lifetime": 1,
|
|
82
82
|
"legacy_checksums_mode": true,
|
|
83
83
|
"migrate_remote_server_sync_to_sync": true,
|
|
84
|
+
"mcp_dcr_enabled": true,
|
|
84
85
|
"mobile_app": true,
|
|
85
86
|
"mobile_app_session_ip_pinning": true,
|
|
86
87
|
"mobile_app_session_lifetime": 1,
|
|
@@ -411,6 +412,7 @@
|
|
|
411
412
|
* `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
|
|
412
413
|
* `legacy_checksums_mode` (boolean): Use legacy checksums mode?
|
|
413
414
|
* `migrate_remote_server_sync_to_sync` (boolean): If true, we will migrate all remote server syncs to the new Sync model.
|
|
415
|
+
* `mcp_dcr_enabled` (boolean): Is OAuth DCR (dynamic client registration) for MCP enabled?
|
|
414
416
|
* `mobile_app` (boolean): Is the mobile app enabled?
|
|
415
417
|
* `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
|
|
416
418
|
* `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
|
|
@@ -599,6 +601,7 @@ Files::Site.update(
|
|
|
599
601
|
motd_use_for_sftp: false,
|
|
600
602
|
disable_all_ai_features: false,
|
|
601
603
|
ai_feature_availability: {"in_app_ai_assistant":{"site_admins":true,"workspace_admins":true,"folder_admins":true,"all_users":true}},
|
|
604
|
+
mcp_dcr_enabled: false,
|
|
602
605
|
additional_text_file_types: ["example"],
|
|
603
606
|
bundle_require_note: false,
|
|
604
607
|
bundle_send_shared_receipts: false,
|
|
@@ -776,6 +779,7 @@ Files::Site.update(
|
|
|
776
779
|
* `left_navigation_visibility` (object): Visibility settings for account navigation
|
|
777
780
|
* `disable_all_ai_features` (boolean): If true, all AI features are disabled for this site.
|
|
778
781
|
* `ai_feature_availability` (object): Availability settings for AI features by user class
|
|
782
|
+
* `mcp_dcr_enabled` (boolean): Is OAuth DCR (dynamic client registration) for MCP enabled?
|
|
779
783
|
* `additional_text_file_types` (array(string)): Additional extensions that are considered text files
|
|
780
784
|
* `bundle_require_note` (boolean): Do Bundles require internal notes?
|
|
781
785
|
* `bundle_send_shared_receipts` (boolean): Do Bundle creators receive receipts of invitations?
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class ChatMessage
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Chat Message ID.
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Message role.
|
|
18
|
+
def role
|
|
19
|
+
@attributes[:role]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# string - Message content.
|
|
23
|
+
def content
|
|
24
|
+
@attributes[:content]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# date-time - Message creation date/time.
|
|
28
|
+
def created_at
|
|
29
|
+
@attributes[:created_at]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class ChatSession
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Chat Session ID.
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# int64 - User ID.
|
|
18
|
+
def user_id
|
|
19
|
+
@attributes[:user_id]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# int64 - Workspace ID. `0` means the default workspace.
|
|
23
|
+
def workspace_id
|
|
24
|
+
@attributes[:workspace_id]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# date-time - Most recent chat activity date/time.
|
|
28
|
+
def last_active_at
|
|
29
|
+
@attributes[:last_active_at]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# date-time - Chat session creation date/time.
|
|
33
|
+
def created_at
|
|
34
|
+
@attributes[:created_at]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# array(object) - Visible conversation messages in this chat session. For performance reasons, this is not provided when listing chat sessions.
|
|
38
|
+
def messages
|
|
39
|
+
@attributes[:messages]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Parameters:
|
|
43
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
44
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
45
|
+
def self.list(params = {}, options = {})
|
|
46
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
47
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
48
|
+
|
|
49
|
+
List.new(ChatSession, params) do
|
|
50
|
+
Api.send_request("/chat_sessions", :get, params, options)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def self.all(params = {}, options = {})
|
|
55
|
+
list(params, options)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Parameters:
|
|
59
|
+
# id (required) - int64 - Chat Session ID.
|
|
60
|
+
def self.find(id, params = {}, options = {})
|
|
61
|
+
params ||= {}
|
|
62
|
+
params[:id] = id
|
|
63
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
64
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
65
|
+
|
|
66
|
+
response, options = Api.send_request("/chat_sessions/#{params[:id]}", :get, params, options)
|
|
67
|
+
ChatSession.new(response.data, options)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def self.get(id, params = {}, options = {})
|
|
71
|
+
find(id, params, options)
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -316,6 +316,11 @@ module Files
|
|
|
316
316
|
@attributes[:migrate_remote_server_sync_to_sync]
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
+
# boolean - Is OAuth DCR (dynamic client registration) for MCP enabled?
|
|
320
|
+
def mcp_dcr_enabled
|
|
321
|
+
@attributes[:mcp_dcr_enabled]
|
|
322
|
+
end
|
|
323
|
+
|
|
319
324
|
# boolean - Is the mobile app enabled?
|
|
320
325
|
def mobile_app
|
|
321
326
|
@attributes[:mobile_app]
|
|
@@ -1001,6 +1006,7 @@ module Files
|
|
|
1001
1006
|
# left_navigation_visibility - object - Visibility settings for account navigation
|
|
1002
1007
|
# disable_all_ai_features - boolean - If true, all AI features are disabled for this site.
|
|
1003
1008
|
# ai_feature_availability - object - Availability settings for AI features by user class
|
|
1009
|
+
# mcp_dcr_enabled - boolean - Is OAuth DCR (dynamic client registration) for MCP enabled?
|
|
1004
1010
|
# additional_text_file_types - array(string) - Additional extensions that are considered text files
|
|
1005
1011
|
# bundle_require_note - boolean - Do Bundles require internal notes?
|
|
1006
1012
|
# bundle_send_shared_receipts - boolean - Do Bundle creators receive receipts of invitations?
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -58,6 +58,8 @@ require "files.com/models/bundle_notification"
|
|
|
58
58
|
require "files.com/models/bundle_path"
|
|
59
59
|
require "files.com/models/bundle_recipient"
|
|
60
60
|
require "files.com/models/bundle_registration"
|
|
61
|
+
require "files.com/models/chat_message"
|
|
62
|
+
require "files.com/models/chat_session"
|
|
61
63
|
require "files.com/models/child_site_management_policy"
|
|
62
64
|
require "files.com/models/clickwrap"
|
|
63
65
|
require "files.com/models/custom_domain"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.655
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -196,6 +196,8 @@ files:
|
|
|
196
196
|
- docs/bundle_path.md
|
|
197
197
|
- docs/bundle_recipient.md
|
|
198
198
|
- docs/bundle_registration.md
|
|
199
|
+
- docs/chat_message.md
|
|
200
|
+
- docs/chat_session.md
|
|
199
201
|
- docs/child_site_management_policy.md
|
|
200
202
|
- docs/clickwrap.md
|
|
201
203
|
- docs/custom_domain.md
|
|
@@ -336,6 +338,8 @@ files:
|
|
|
336
338
|
- lib/files.com/models/bundle_path.rb
|
|
337
339
|
- lib/files.com/models/bundle_recipient.rb
|
|
338
340
|
- lib/files.com/models/bundle_registration.rb
|
|
341
|
+
- lib/files.com/models/chat_message.rb
|
|
342
|
+
- lib/files.com/models/chat_session.rb
|
|
339
343
|
- lib/files.com/models/child_site_management_policy.rb
|
|
340
344
|
- lib/files.com/models/clickwrap.rb
|
|
341
345
|
- lib/files.com/models/custom_domain.rb
|