files.com 1.1.667 → 1.1.669
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/ai_assistant_personality.md +8 -0
- data/docs/file.md +4 -2
- data/lib/files.com/models/ai_assistant_personality.rb +16 -0
- data/lib/files.com/models/file.rb +6 -2
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d692c5a048b732bf366e40d39f16e35b46a71a36cf349cd9124f50ab6b57059c
|
|
4
|
+
data.tar.gz: 933b3ce82d104092049644e6a192eb58b0d15880ca8728675fadac7a0d5b57fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcf59a8eaff96d3cfc221f7cd5e385d2f169d6c4da146e0d88313ca46a2c82a2b7324fc0b09f01b94d6692cf3fc41ada53b69c7e1677963380a6951eaebd9b43
|
|
7
|
+
data.tar.gz: eef09a1ae015bc00930126be6404b1eefaaf823e179424ddde46a1599d9eb12796e3beeee01f170175725979b4d03e7677dcacfee7609bde76f9fcf31ea441f9
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.669
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"workspace_id": 1,
|
|
9
|
+
"name": "Concise Assistant",
|
|
9
10
|
"system_prompt": "Respond as a concise operations assistant.",
|
|
10
11
|
"use_by_default": true,
|
|
11
12
|
"apply_to_all_workspaces": true,
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
|
|
17
18
|
* `id` (int64): AI Assistant Personality ID.
|
|
18
19
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
20
|
+
* `name` (string): AI Assistant Personality name.
|
|
19
21
|
* `system_prompt` (string): System prompt injected into the in-app AI Assistant.
|
|
20
22
|
* `use_by_default` (boolean): Whether this personality is the default personality for the Workspace.
|
|
21
23
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace personality can apply to users in all workspaces.
|
|
@@ -59,6 +61,7 @@ Files::AiAssistantPersonality.find(id)
|
|
|
59
61
|
```
|
|
60
62
|
Files::AiAssistantPersonality.create(
|
|
61
63
|
apply_to_all_workspaces: false,
|
|
64
|
+
name: "Concise Assistant",
|
|
62
65
|
system_prompt: "Respond as a concise operations assistant.",
|
|
63
66
|
use_by_default: false,
|
|
64
67
|
workspace_id: 0
|
|
@@ -68,6 +71,7 @@ Files::AiAssistantPersonality.create(
|
|
|
68
71
|
### Parameters
|
|
69
72
|
|
|
70
73
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace personality can apply to users in all workspaces.
|
|
74
|
+
* `name` (string): Required - AI Assistant Personality name.
|
|
71
75
|
* `system_prompt` (string): Required - System prompt injected into the in-app AI Assistant.
|
|
72
76
|
* `use_by_default` (boolean): Whether this personality is the default personality for the Workspace.
|
|
73
77
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
@@ -80,6 +84,7 @@ Files::AiAssistantPersonality.create(
|
|
|
80
84
|
```
|
|
81
85
|
Files::AiAssistantPersonality.update(id,
|
|
82
86
|
apply_to_all_workspaces: false,
|
|
87
|
+
name: "Concise Assistant",
|
|
83
88
|
system_prompt: "Respond as a concise operations assistant.",
|
|
84
89
|
use_by_default: false,
|
|
85
90
|
workspace_id: 0
|
|
@@ -90,6 +95,7 @@ Files::AiAssistantPersonality.update(id,
|
|
|
90
95
|
|
|
91
96
|
* `id` (int64): Required - Ai Assistant Personality ID.
|
|
92
97
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace personality can apply to users in all workspaces.
|
|
98
|
+
* `name` (string): AI Assistant Personality name.
|
|
93
99
|
* `system_prompt` (string): System prompt injected into the in-app AI Assistant.
|
|
94
100
|
* `use_by_default` (boolean): Whether this personality is the default personality for the Workspace.
|
|
95
101
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
@@ -117,6 +123,7 @@ ai_assistant_personality = Files::AiAssistantPersonality.find(id)
|
|
|
117
123
|
|
|
118
124
|
ai_assistant_personality.update(
|
|
119
125
|
apply_to_all_workspaces: false,
|
|
126
|
+
name: "Concise Assistant",
|
|
120
127
|
system_prompt: "Respond as a concise operations assistant.",
|
|
121
128
|
use_by_default: false,
|
|
122
129
|
workspace_id: 0
|
|
@@ -127,6 +134,7 @@ ai_assistant_personality.update(
|
|
|
127
134
|
|
|
128
135
|
* `id` (int64): Required - Ai Assistant Personality ID.
|
|
129
136
|
* `apply_to_all_workspaces` (boolean): If true, this default-workspace personality can apply to users in all workspaces.
|
|
137
|
+
* `name` (string): AI Assistant Personality name.
|
|
130
138
|
* `system_prompt` (string): System prompt injected into the in-app AI Assistant.
|
|
131
139
|
* `use_by_default` (boolean): Whether this personality is the default personality for the Workspace.
|
|
132
140
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
data/docs/file.md
CHANGED
|
@@ -287,8 +287,9 @@ Files::File.transform(path,
|
|
|
287
287
|
|
|
288
288
|
* `path` (string): Required - Path to operate on.
|
|
289
289
|
* `destination` (string): Required - Destination file path for the transformed output.
|
|
290
|
-
* `transform_type` (string): Required - Transform type. Supported values are `image_convert` and `
|
|
290
|
+
* `transform_type` (string): Required - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
291
291
|
* `target_format` (string): Required - Destination format to create.
|
|
292
|
+
* `script` (string): Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
292
293
|
* `width` (int64): Maximum output width for image_convert.
|
|
293
294
|
* `height` (int64): Maximum output height for image_convert.
|
|
294
295
|
* `overwrite` (boolean): Overwrite existing file in the destination?
|
|
@@ -554,8 +555,9 @@ file.transform(
|
|
|
554
555
|
|
|
555
556
|
* `path` (string): Required - Path to operate on.
|
|
556
557
|
* `destination` (string): Required - Destination file path for the transformed output.
|
|
557
|
-
* `transform_type` (string): Required - Transform type. Supported values are `image_convert` and `
|
|
558
|
+
* `transform_type` (string): Required - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
558
559
|
* `target_format` (string): Required - Destination format to create.
|
|
560
|
+
* `script` (string): Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
559
561
|
* `width` (int64): Maximum output width for image_convert.
|
|
560
562
|
* `height` (int64): Maximum output height for image_convert.
|
|
561
563
|
* `overwrite` (boolean): Overwrite existing file in the destination?
|
|
@@ -27,6 +27,15 @@ module Files
|
|
|
27
27
|
@attributes[:workspace_id] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# string - AI Assistant Personality name.
|
|
31
|
+
def name
|
|
32
|
+
@attributes[:name]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def name=(value)
|
|
36
|
+
@attributes[:name] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
30
39
|
# string - System prompt injected into the in-app AI Assistant.
|
|
31
40
|
def system_prompt
|
|
32
41
|
@attributes[:system_prompt]
|
|
@@ -66,6 +75,7 @@ module Files
|
|
|
66
75
|
|
|
67
76
|
# Parameters:
|
|
68
77
|
# apply_to_all_workspaces - boolean - If true, this default-workspace personality can apply to users in all workspaces.
|
|
78
|
+
# name - string - AI Assistant Personality name.
|
|
69
79
|
# system_prompt - string - System prompt injected into the in-app AI Assistant.
|
|
70
80
|
# use_by_default - boolean - Whether this personality is the default personality for the Workspace.
|
|
71
81
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
@@ -74,6 +84,7 @@ module Files
|
|
|
74
84
|
params[:id] = @attributes[:id]
|
|
75
85
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
76
86
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
87
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
77
88
|
raise InvalidParameterError.new("Bad parameter: system_prompt must be an String") if params[:system_prompt] and !params[:system_prompt].is_a?(String)
|
|
78
89
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
79
90
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
@@ -145,12 +156,15 @@ module Files
|
|
|
145
156
|
|
|
146
157
|
# Parameters:
|
|
147
158
|
# apply_to_all_workspaces - boolean - If true, this default-workspace personality can apply to users in all workspaces.
|
|
159
|
+
# name (required) - string - AI Assistant Personality name.
|
|
148
160
|
# system_prompt (required) - string - System prompt injected into the in-app AI Assistant.
|
|
149
161
|
# use_by_default - boolean - Whether this personality is the default personality for the Workspace.
|
|
150
162
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
151
163
|
def self.create(params = {}, options = {})
|
|
164
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
152
165
|
raise InvalidParameterError.new("Bad parameter: system_prompt must be an String") if params[:system_prompt] and !params[:system_prompt].is_a?(String)
|
|
153
166
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
167
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
154
168
|
raise MissingParameterError.new("Parameter missing: system_prompt") unless params[:system_prompt]
|
|
155
169
|
|
|
156
170
|
response, options = Api.send_request("/ai_assistant_personalities", :post, params, options)
|
|
@@ -159,6 +173,7 @@ module Files
|
|
|
159
173
|
|
|
160
174
|
# Parameters:
|
|
161
175
|
# apply_to_all_workspaces - boolean - If true, this default-workspace personality can apply to users in all workspaces.
|
|
176
|
+
# name - string - AI Assistant Personality name.
|
|
162
177
|
# system_prompt - string - System prompt injected into the in-app AI Assistant.
|
|
163
178
|
# use_by_default - boolean - Whether this personality is the default personality for the Workspace.
|
|
164
179
|
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
@@ -166,6 +181,7 @@ module Files
|
|
|
166
181
|
params ||= {}
|
|
167
182
|
params[:id] = id
|
|
168
183
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
184
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
169
185
|
raise InvalidParameterError.new("Bad parameter: system_prompt must be an String") if params[:system_prompt] and !params[:system_prompt].is_a?(String)
|
|
170
186
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
171
187
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
@@ -1079,8 +1079,9 @@ module Files
|
|
|
1079
1079
|
#
|
|
1080
1080
|
# Parameters:
|
|
1081
1081
|
# destination (required) - string - Destination file path for the transformed output.
|
|
1082
|
-
# transform_type (required) - string - Transform type. Supported values are `image_convert` and `
|
|
1082
|
+
# transform_type (required) - string - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
1083
1083
|
# target_format (required) - string - Destination format to create.
|
|
1084
|
+
# script - string - Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
1084
1085
|
# width - int64 - Maximum output width for image_convert.
|
|
1085
1086
|
# height - int64 - Maximum output height for image_convert.
|
|
1086
1087
|
# overwrite - boolean - Overwrite existing file in the destination?
|
|
@@ -1092,6 +1093,7 @@ module Files
|
|
|
1092
1093
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1093
1094
|
raise InvalidParameterError.new("Bad parameter: transform_type must be an String") if params[:transform_type] and !params[:transform_type].is_a?(String)
|
|
1094
1095
|
raise InvalidParameterError.new("Bad parameter: target_format must be an String") if params[:target_format] and !params[:target_format].is_a?(String)
|
|
1096
|
+
raise InvalidParameterError.new("Bad parameter: script must be an String") if params[:script] and !params[:script].is_a?(String)
|
|
1095
1097
|
raise InvalidParameterError.new("Bad parameter: width must be an Integer") if params[:width] and !params[:width].is_a?(Integer)
|
|
1096
1098
|
raise InvalidParameterError.new("Bad parameter: height must be an Integer") if params[:height] and !params[:height].is_a?(Integer)
|
|
1097
1099
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
@@ -1362,8 +1364,9 @@ module Files
|
|
|
1362
1364
|
#
|
|
1363
1365
|
# Parameters:
|
|
1364
1366
|
# destination (required) - string - Destination file path for the transformed output.
|
|
1365
|
-
# transform_type (required) - string - Transform type. Supported values are `image_convert` and `
|
|
1367
|
+
# transform_type (required) - string - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
1366
1368
|
# target_format (required) - string - Destination format to create.
|
|
1369
|
+
# script - string - Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
1367
1370
|
# width - int64 - Maximum output width for image_convert.
|
|
1368
1371
|
# height - int64 - Maximum output height for image_convert.
|
|
1369
1372
|
# overwrite - boolean - Overwrite existing file in the destination?
|
|
@@ -1374,6 +1377,7 @@ module Files
|
|
|
1374
1377
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1375
1378
|
raise InvalidParameterError.new("Bad parameter: transform_type must be an String") if params[:transform_type] and !params[:transform_type].is_a?(String)
|
|
1376
1379
|
raise InvalidParameterError.new("Bad parameter: target_format must be an String") if params[:target_format] and !params[:target_format].is_a?(String)
|
|
1380
|
+
raise InvalidParameterError.new("Bad parameter: script must be an String") if params[:script] and !params[:script].is_a?(String)
|
|
1377
1381
|
raise InvalidParameterError.new("Bad parameter: width must be an Integer") if params[:width] and !params[:width].is_a?(Integer)
|
|
1378
1382
|
raise InvalidParameterError.new("Bad parameter: height must be an Integer") if params[:height] and !params[:height].is_a?(Integer)
|
|
1379
1383
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
data/lib/files.com/version.rb
CHANGED
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.669
|
|
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-
|
|
11
|
+
date: 2026-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|