files.com 1.1.662 → 1.1.663
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_task.md +8 -0
- data/docs/api_key.md +10 -6
- data/lib/files.com/models/ai_task.rb +15 -0
- data/lib/files.com/models/api_key.rb +15 -4
- 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: 218b3a030f1329067ae82c1af1375c610643aa60e03758b5d32cfd55f6a6b747
|
|
4
|
+
data.tar.gz: '0078f10d646a7f3e3b72fbdfb68015bd4e686e92913edbf054baebd0b69e45ce'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b1df0d63d27ff0eda2e0e5237a6123052897d55dc1a069a9adc3638998f78be984bbb1cba42c15ab6d68a7816050245e5fe2a2f66ee3147e3b771d134587e6b
|
|
7
|
+
data.tar.gz: 400128a4f14c42fbbe9c410dad318e9bd4a88355228350eabb0b8ef83eacc2fdf77c73498b9fbffdf3f08d716a6146632e3a222b7f92cb9b3458dfd1f5702899
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.663
|
data/docs/ai_task.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"name": "Summarize daily reports",
|
|
10
10
|
"description": "Summarizes files uploaded by the accounting team.",
|
|
11
11
|
"prompt": "Summarize the uploaded file and identify follow-up actions.",
|
|
12
|
+
"permission_set": "files_only",
|
|
12
13
|
"path": "incoming/reports",
|
|
13
14
|
"source": "*.pdf",
|
|
14
15
|
"disabled": true,
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
* `name` (string): AI Task name.
|
|
42
43
|
* `description` (string): AI Task description.
|
|
43
44
|
* `prompt` (string): Prompt sent when this AI Task is invoked.
|
|
45
|
+
* `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
44
46
|
* `path` (string): Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
45
47
|
* `source` (string): Source glob used with `path` for action-triggered AI Tasks.
|
|
46
48
|
* `disabled` (boolean): If true, this AI Task will not run.
|
|
@@ -100,6 +102,7 @@ Files::AiTask.create(
|
|
|
100
102
|
interval: "day",
|
|
101
103
|
name: "Summarize daily reports",
|
|
102
104
|
path: "incoming/reports",
|
|
105
|
+
permission_set: "files_only",
|
|
103
106
|
prompt: "Summarize the uploaded file and identify follow-up actions.",
|
|
104
107
|
recurring_day: 1,
|
|
105
108
|
schedule_days_of_week: [1,3,5],
|
|
@@ -120,6 +123,7 @@ Files::AiTask.create(
|
|
|
120
123
|
* `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
|
|
121
124
|
* `name` (string): Required - AI Task name.
|
|
122
125
|
* `path` (string): Path scope used for action-triggered AI Tasks.
|
|
126
|
+
* `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
123
127
|
* `prompt` (string): Required - Prompt sent when this AI Task is invoked.
|
|
124
128
|
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
125
129
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
@@ -156,6 +160,7 @@ Files::AiTask.update(id,
|
|
|
156
160
|
interval: "day",
|
|
157
161
|
name: "Summarize daily reports",
|
|
158
162
|
path: "incoming/reports",
|
|
163
|
+
permission_set: "files_only",
|
|
159
164
|
prompt: "Summarize the uploaded file and identify follow-up actions.",
|
|
160
165
|
recurring_day: 1,
|
|
161
166
|
schedule_days_of_week: [1,3,5],
|
|
@@ -177,6 +182,7 @@ Files::AiTask.update(id,
|
|
|
177
182
|
* `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
|
|
178
183
|
* `name` (string): AI Task name.
|
|
179
184
|
* `path` (string): Path scope used for action-triggered AI Tasks.
|
|
185
|
+
* `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
180
186
|
* `prompt` (string): Prompt sent when this AI Task is invoked.
|
|
181
187
|
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
182
188
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
@@ -230,6 +236,7 @@ ai_task.update(
|
|
|
230
236
|
interval: "day",
|
|
231
237
|
name: "Summarize daily reports",
|
|
232
238
|
path: "incoming/reports",
|
|
239
|
+
permission_set: "files_only",
|
|
233
240
|
prompt: "Summarize the uploaded file and identify follow-up actions.",
|
|
234
241
|
recurring_day: 1,
|
|
235
242
|
schedule_days_of_week: [1,3,5],
|
|
@@ -251,6 +258,7 @@ ai_task.update(
|
|
|
251
258
|
* `interval` (string): If trigger is `daily`, this specifies how often to run the AI Task.
|
|
252
259
|
* `name` (string): AI Task name.
|
|
253
260
|
* `path` (string): Path scope used for action-triggered AI Tasks.
|
|
261
|
+
* `permission_set` (string): Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
254
262
|
* `prompt` (string): Prompt sent when this AI Task is invoked.
|
|
255
263
|
* `recurring_day` (int64): If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
256
264
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
data/docs/api_key.md
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"site_id": 1,
|
|
21
21
|
"site_name": "example",
|
|
22
22
|
"url": "example",
|
|
23
|
-
"user_id": 1
|
|
23
|
+
"user_id": 1,
|
|
24
|
+
"workspace_id": 1
|
|
24
25
|
}
|
|
25
26
|
```
|
|
26
27
|
|
|
@@ -35,12 +36,13 @@
|
|
|
35
36
|
* `aws_secret_key` (string): AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
36
37
|
* `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
|
|
37
38
|
* `name` (string): Internal name for the API Key. For your use.
|
|
38
|
-
* `permission_set` (string): Permissions for this API Key.
|
|
39
|
+
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
39
40
|
* `platform` (string): If this API key represents a Desktop app, what platform was it created on?
|
|
40
41
|
* `site_id` (int64): Site ID
|
|
41
42
|
* `site_name` (string): Site Name
|
|
42
43
|
* `url` (string): URL for API host.
|
|
43
44
|
* `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
|
|
45
|
+
* `workspace_id` (int64): Workspace ID for this API Key. `0` means the default workspace.
|
|
44
46
|
* `path` (string): Folder path restriction for `office_integration` permission set API keys.
|
|
45
47
|
|
|
46
48
|
|
|
@@ -59,7 +61,7 @@ Files::ApiKey.list(
|
|
|
59
61
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
60
62
|
* `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.
|
|
61
63
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
62
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`.
|
|
64
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `workspace_id`.
|
|
63
65
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `aws_style_credentials` and `expires_at`.
|
|
64
66
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
|
|
65
67
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.
|
|
@@ -101,7 +103,8 @@ Files::ApiKey.create(
|
|
|
101
103
|
name: "My Main API Key",
|
|
102
104
|
aws_style_credentials: true,
|
|
103
105
|
path: "shared/docs",
|
|
104
|
-
permission_set: "full"
|
|
106
|
+
permission_set: "full",
|
|
107
|
+
workspace_id: 1
|
|
105
108
|
)
|
|
106
109
|
```
|
|
107
110
|
|
|
@@ -113,7 +116,8 @@ Files::ApiKey.create(
|
|
|
113
116
|
* `name` (string): Required - Internal name for the API Key. For your use.
|
|
114
117
|
* `aws_style_credentials` (boolean): If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
115
118
|
* `path` (string): Folder path restriction for `office_integration` permission set API keys.
|
|
116
|
-
* `permission_set` (string): Permissions for this API Key.
|
|
119
|
+
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
120
|
+
* `workspace_id` (int64): Workspace ID for this API Key. `0` means the default workspace.
|
|
117
121
|
|
|
118
122
|
|
|
119
123
|
---
|
|
@@ -132,7 +136,7 @@ Files::ApiKey.update_current(
|
|
|
132
136
|
|
|
133
137
|
* `expires_at` (string): API Key expiration date
|
|
134
138
|
* `name` (string): Internal name for the API Key. For your use.
|
|
135
|
-
* `permission_set` (string): Permissions for this API Key.
|
|
139
|
+
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
136
140
|
|
|
137
141
|
|
|
138
142
|
---
|
|
@@ -54,6 +54,15 @@ module Files
|
|
|
54
54
|
@attributes[:prompt] = value
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
58
|
+
def permission_set
|
|
59
|
+
@attributes[:permission_set]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def permission_set=(value)
|
|
63
|
+
@attributes[:permission_set] = value
|
|
64
|
+
end
|
|
65
|
+
|
|
57
66
|
# string - Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
58
67
|
def path
|
|
59
68
|
@attributes[:path]
|
|
@@ -208,6 +217,7 @@ module Files
|
|
|
208
217
|
# interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
|
|
209
218
|
# name - string - AI Task name.
|
|
210
219
|
# path - string - Path scope used for action-triggered AI Tasks.
|
|
220
|
+
# permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
211
221
|
# prompt - string - Prompt sent when this AI Task is invoked.
|
|
212
222
|
# recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
213
223
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
@@ -227,6 +237,7 @@ module Files
|
|
|
227
237
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
228
238
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
229
239
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
240
|
+
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
230
241
|
raise InvalidParameterError.new("Bad parameter: prompt must be an String") if params[:prompt] and !params[:prompt].is_a?(String)
|
|
231
242
|
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
|
232
243
|
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
|
@@ -310,6 +321,7 @@ module Files
|
|
|
310
321
|
# interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
|
|
311
322
|
# name (required) - string - AI Task name.
|
|
312
323
|
# path - string - Path scope used for action-triggered AI Tasks.
|
|
324
|
+
# permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
313
325
|
# prompt (required) - string - Prompt sent when this AI Task is invoked.
|
|
314
326
|
# recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
315
327
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
@@ -325,6 +337,7 @@ module Files
|
|
|
325
337
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
326
338
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
327
339
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
340
|
+
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
328
341
|
raise InvalidParameterError.new("Bad parameter: prompt must be an String") if params[:prompt] and !params[:prompt].is_a?(String)
|
|
329
342
|
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
|
330
343
|
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
|
@@ -359,6 +372,7 @@ module Files
|
|
|
359
372
|
# interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
|
|
360
373
|
# name - string - AI Task name.
|
|
361
374
|
# path - string - Path scope used for action-triggered AI Tasks.
|
|
375
|
+
# permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
|
|
362
376
|
# prompt - string - Prompt sent when this AI Task is invoked.
|
|
363
377
|
# recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
|
|
364
378
|
# schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
|
|
@@ -377,6 +391,7 @@ module Files
|
|
|
377
391
|
raise InvalidParameterError.new("Bad parameter: interval must be an String") if params[:interval] and !params[:interval].is_a?(String)
|
|
378
392
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
379
393
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
394
|
+
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
380
395
|
raise InvalidParameterError.new("Bad parameter: prompt must be an String") if params[:prompt] and !params[:prompt].is_a?(String)
|
|
381
396
|
raise InvalidParameterError.new("Bad parameter: recurring_day must be an Integer") if params[:recurring_day] and !params[:recurring_day].is_a?(Integer)
|
|
382
397
|
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
|
@@ -104,7 +104,7 @@ module Files
|
|
|
104
104
|
@attributes[:name] = value
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
# string - Permissions for this API Key.
|
|
107
|
+
# string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
108
108
|
def permission_set
|
|
109
109
|
@attributes[:permission_set]
|
|
110
110
|
end
|
|
@@ -158,6 +158,15 @@ module Files
|
|
|
158
158
|
@attributes[:user_id] = value
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# int64 - Workspace ID for this API Key. `0` means the default workspace.
|
|
162
|
+
def workspace_id
|
|
163
|
+
@attributes[:workspace_id]
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def workspace_id=(value)
|
|
167
|
+
@attributes[:workspace_id] = value
|
|
168
|
+
end
|
|
169
|
+
|
|
161
170
|
# string - Folder path restriction for `office_integration` permission set API keys.
|
|
162
171
|
def path
|
|
163
172
|
@attributes[:path]
|
|
@@ -214,7 +223,7 @@ module Files
|
|
|
214
223
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
215
224
|
# 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.
|
|
216
225
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
217
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`.
|
|
226
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `workspace_id`.
|
|
218
227
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `aws_style_credentials` and `expires_at`.
|
|
219
228
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
|
|
220
229
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.
|
|
@@ -268,7 +277,8 @@ module Files
|
|
|
268
277
|
# name (required) - string - Internal name for the API Key. For your use.
|
|
269
278
|
# aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
270
279
|
# path - string - Folder path restriction for `office_integration` permission set API keys.
|
|
271
|
-
# permission_set - string - Permissions for this API Key.
|
|
280
|
+
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
281
|
+
# workspace_id - int64 - Workspace ID for this API Key. `0` means the default workspace.
|
|
272
282
|
def self.create(params = {}, options = {})
|
|
273
283
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
274
284
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
@@ -276,6 +286,7 @@ module Files
|
|
|
276
286
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
277
287
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
278
288
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
289
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
279
290
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
280
291
|
|
|
281
292
|
response, options = Api.send_request("/api_keys", :post, params, options)
|
|
@@ -285,7 +296,7 @@ module Files
|
|
|
285
296
|
# Parameters:
|
|
286
297
|
# expires_at - string - API Key expiration date
|
|
287
298
|
# name - string - Internal name for the API Key. For your use.
|
|
288
|
-
# permission_set - string - Permissions for this API Key.
|
|
299
|
+
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope, but cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user.
|
|
289
300
|
def self.update_current(params = {}, options = {})
|
|
290
301
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
|
291
302
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
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.663
|
|
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-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|