losant_rest 1.22.2 → 1.22.4

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.
@@ -121,7 +121,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
121
121
  | end | string | N | End of time range in milliseconds since epoch | 0 | 0 |
122
122
  | resolution | string | N | Resolution in milliseconds | 3600000 | 3600000 |
123
123
  | versionFilter | string | N | Filters the stats to a particular experience version | | myVersion |
124
- | domainFilter | string | N | Filters the stats to a particular experience domain or slug | | mycustomdomain.com |
124
+ | domainFilter | string | N | Filters the stats to a particular experience domain or slug | | example.com |
125
125
  | statusCodeFilter | string | N | Filters the stats to a particular status code | | 200 |
126
126
  | endpointIdFilter | string | N | Filters the stats to a particular endpoint | | 575ec8687ae143cd83dc4a98 |
127
127
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
data/docs/me.md CHANGED
@@ -194,6 +194,9 @@ all.User, me.*, or me.disableTwoFactorAuth.
194
194
  | Name | Type | Required | Description | Default | Example |
195
195
  | ---- | ---- | -------- | ----------- | ------- | ------- |
196
196
  | data | [Disable Multi-Factor Authentication](_schemas.md#disable-multi-factor-authentication) | Y | Object containing multi-factor authentication properties | | [Disable Multi-Factor Authentication Example](_schemas.md#disable-multi-factor-authentication-example) |
197
+ | includeRecent | string | N | Should the user include recent app/dashboard info | | true |
198
+ | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
199
+ | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
197
200
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
198
201
 
199
202
  #### Successful Responses
@@ -229,6 +232,9 @@ all.User, me.*, or me.disconnectGithub.
229
232
 
230
233
  | Name | Type | Required | Description | Default | Example |
231
234
  | ---- | ---- | -------- | ----------- | ------- | ------- |
235
+ | includeRecent | string | N | Should the user include recent app/dashboard info | | true |
236
+ | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
237
+ | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
232
238
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
233
239
 
234
240
  #### Successful Responses
@@ -265,6 +271,9 @@ all.User, me.*, or me.enableTwoFactorAuth.
265
271
  | Name | Type | Required | Description | Default | Example |
266
272
  | ---- | ---- | -------- | ----------- | ------- | ------- |
267
273
  | data | [Enable Multi-Factor Authentication](_schemas.md#enable-multi-factor-authentication) | Y | Object containing multi-factor authentication properties | | [Enable Multi-Factor Authentication Example](_schemas.md#enable-multi-factor-authentication-example) |
274
+ | includeRecent | string | N | Should the user include recent app/dashboard info | | true |
275
+ | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
276
+ | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
268
277
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
269
278
 
270
279
  #### Successful Responses
@@ -372,7 +381,7 @@ all.User, all.User.read, me.*, or me.get.
372
381
 
373
382
  | Name | Type | Required | Description | Default | Example |
374
383
  | ---- | ---- | -------- | ----------- | ------- | ------- |
375
- | includeRecent | undefined | N | Should the user include recent app/dashboard info | | true |
384
+ | includeRecent | string | N | Should the user include recent app/dashboard info | | true |
376
385
  | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
377
386
  | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
378
387
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
@@ -519,6 +528,7 @@ all.User, me.*, or me.patch.
519
528
  | Name | Type | Required | Description | Default | Example |
520
529
  | ---- | ---- | -------- | ----------- | ------- | ------- |
521
530
  | user | [Me Patch](_schemas.md#me-patch) | Y | Object containing new user properties | | [Me Patch Example](_schemas.md#me-patch-example) |
531
+ | includeRecent | string | N | Should the user include recent app/dashboard info | | true |
522
532
  | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
523
533
  | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
524
534
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
@@ -27,7 +27,7 @@ module PlatformRest
27
27
  #
28
28
  # User API for accessing platform data
29
29
  #
30
- # Built For Version 1.28.1
30
+ # Built For Version 1.28.4
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -422,7 +422,7 @@ module PlatformRest
422
422
 
423
423
  headers["Accept"] = "application/json"
424
424
  headers["Content-Type"] = "application/json"
425
- headers["Accept-Version"] = "^1.28.1"
425
+ headers["Accept-Version"] = "^1.28.4"
426
426
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
427
427
  path = self.url + options.fetch(:path, "")
428
428
 
@@ -218,6 +218,9 @@ module PlatformRest
218
218
  #
219
219
  # Parameters:
220
220
  # * {hash} data - Object containing multi-factor authentication properties (https://api.losant.com/#/definitions/multiFactorAuthDisable)
221
+ # * {string} includeRecent - Should the user include recent app/dashboard info
222
+ # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
223
+ # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
221
224
  # * {string} losantdomain - Domain scope of request (rarely needed)
222
225
  # * {boolean} _actions - Return resource actions in response
223
226
  # * {boolean} _links - Return resource link in response
@@ -237,6 +240,9 @@ module PlatformRest
237
240
  raise ArgumentError.new("data is required") unless params.has_key?(:data)
238
241
 
239
242
  body = params[:data] if params.has_key?(:data)
243
+ query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
244
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
245
+ query_params[:summaryInclude] = params[:summaryInclude] if params.has_key?(:summaryInclude)
240
246
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
241
247
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
242
248
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
@@ -261,6 +267,9 @@ module PlatformRest
261
267
  # all.User, me.*, or me.disconnectGithub.
262
268
  #
263
269
  # Parameters:
270
+ # * {string} includeRecent - Should the user include recent app/dashboard info
271
+ # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
272
+ # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
264
273
  # * {string} losantdomain - Domain scope of request (rarely needed)
265
274
  # * {boolean} _actions - Return resource actions in response
266
275
  # * {boolean} _links - Return resource link in response
@@ -278,6 +287,9 @@ module PlatformRest
278
287
  body = nil
279
288
 
280
289
 
290
+ query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
291
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
292
+ query_params[:summaryInclude] = params[:summaryInclude] if params.has_key?(:summaryInclude)
281
293
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
282
294
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
283
295
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
@@ -303,6 +315,9 @@ module PlatformRest
303
315
  #
304
316
  # Parameters:
305
317
  # * {hash} data - Object containing multi-factor authentication properties (https://api.losant.com/#/definitions/multiFactorAuthEnable)
318
+ # * {string} includeRecent - Should the user include recent app/dashboard info
319
+ # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
320
+ # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
306
321
  # * {string} losantdomain - Domain scope of request (rarely needed)
307
322
  # * {boolean} _actions - Return resource actions in response
308
323
  # * {boolean} _links - Return resource link in response
@@ -322,6 +337,9 @@ module PlatformRest
322
337
  raise ArgumentError.new("data is required") unless params.has_key?(:data)
323
338
 
324
339
  body = params[:data] if params.has_key?(:data)
340
+ query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
341
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
342
+ query_params[:summaryInclude] = params[:summaryInclude] if params.has_key?(:summaryInclude)
325
343
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
326
344
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
327
345
  query_params[:_links] = params[:_links] if params.has_key?(:_links)
@@ -433,7 +451,7 @@ module PlatformRest
433
451
  # all.User, all.User.read, me.*, or me.get.
434
452
  #
435
453
  # Parameters:
436
- # * {undefined} includeRecent - Should the user include recent app/dashboard info
454
+ # * {string} includeRecent - Should the user include recent app/dashboard info
437
455
  # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
438
456
  # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
439
457
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -610,6 +628,7 @@ module PlatformRest
610
628
  #
611
629
  # Parameters:
612
630
  # * {hash} user - Object containing new user properties (https://api.losant.com/#/definitions/mePatch)
631
+ # * {string} includeRecent - Should the user include recent app/dashboard info
613
632
  # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
614
633
  # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
615
634
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -631,6 +650,7 @@ module PlatformRest
631
650
  raise ArgumentError.new("user is required") unless params.has_key?(:user)
632
651
 
633
652
  body = params[:user] if params.has_key?(:user)
653
+ query_params[:includeRecent] = params[:includeRecent] if params.has_key?(:includeRecent)
634
654
  query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
635
655
  query_params[:summaryInclude] = params[:summaryInclude] if params.has_key?(:summaryInclude)
636
656
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2025 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module PlatformRest
24
- VERSION = "1.22.2"
24
+ VERSION = "1.22.4"
25
25
  end
@@ -461,6 +461,60 @@
461
461
  },
462
462
  "maxItems": 1000
463
463
  },
464
+ "includeApplicationExport": {
465
+ "type": "boolean",
466
+ "default": false
467
+ },
468
+ "applicationExportOptions": {
469
+ "type": "object",
470
+ "properties": {
471
+ "includeFiles": {
472
+ "type": "boolean",
473
+ "default": false
474
+ },
475
+ "includeDataTableRows": {
476
+ "type": "boolean",
477
+ "default": false
478
+ },
479
+ "includeDevices": {
480
+ "type": "boolean",
481
+ "default": false
482
+ },
483
+ "exportType": {
484
+ "type": "string",
485
+ "enum": [
486
+ "repo"
487
+ ],
488
+ "default": "repo"
489
+ },
490
+ "credentialName": {
491
+ "type": "string",
492
+ "minLength": 1,
493
+ "maxLength": 255
494
+ },
495
+ "repo": {
496
+ "type": "object",
497
+ "properties": {
498
+ "branch": {
499
+ "type": "string",
500
+ "maxLength": 255
501
+ },
502
+ "directory": {
503
+ "type": "string",
504
+ "maxLength": 1024
505
+ },
506
+ "commitMessage": {
507
+ "type": "string",
508
+ "maxLength": 1024
509
+ }
510
+ }
511
+ }
512
+ },
513
+ "required": [
514
+ "credentialName"
515
+ ],
516
+ "additionalProperties": false
517
+ },
464
518
  "delayDays": {
465
519
  "type": "integer",
466
520
  "minimum": 1
@@ -466,6 +466,60 @@
466
466
  },
467
467
  "maxItems": 1000
468
468
  },
469
+ "includeApplicationExport": {
470
+ "type": "boolean",
471
+ "default": false
472
+ },
473
+ "applicationExportOptions": {
474
+ "type": "object",
475
+ "properties": {
476
+ "includeFiles": {
477
+ "type": "boolean",
478
+ "default": false
479
+ },
480
+ "includeDataTableRows": {
481
+ "type": "boolean",
482
+ "default": false
483
+ },
484
+ "includeDevices": {
485
+ "type": "boolean",
486
+ "default": false
487
+ },
488
+ "exportType": {
489
+ "type": "string",
490
+ "enum": [
491
+ "repo"
492
+ ],
493
+ "default": "repo"
494
+ },
495
+ "credentialName": {
496
+ "type": "string",
497
+ "minLength": 1,
498
+ "maxLength": 255
499
+ },
500
+ "repo": {
501
+ "type": "object",
502
+ "properties": {
503
+ "branch": {
504
+ "type": "string",
505
+ "maxLength": 255
506
+ },
507
+ "directory": {
508
+ "type": "string",
509
+ "maxLength": 1024
510
+ },
511
+ "commitMessage": {
512
+ "type": "string",
513
+ "maxLength": 1024
514
+ }
515
+ }
516
+ }
517
+ },
518
+ "required": [
519
+ "credentialName"
520
+ ],
521
+ "additionalProperties": false
522
+ },
469
523
  "delayDays": {
470
524
  "type": "integer",
471
525
  "minimum": 1
@@ -85,159 +85,220 @@
85
85
  "maxItems": 100
86
86
  },
87
87
  "archiveConfig": {
88
- "type": "object",
89
- "properties": {
90
- "directory": {
91
- "type": "string",
92
- "maxLength": 255
93
- },
94
- "mode": {
95
- "type": "string",
96
- "enum": [
97
- "all",
98
- "whitelist",
99
- "blacklist"
100
- ]
101
- },
102
- "deviceIds": {
103
- "type": "array",
104
- "items": {
105
- "type": "string",
106
- "pattern": "^[A-Fa-f\\d]{24}$"
107
- },
108
- "maxItems": 1000
109
- },
110
- "deviceTags": {
111
- "type": "array",
112
- "items": {
113
- "type": "object",
114
- "properties": {
115
- "key": {
116
- "type": "string",
117
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
118
- },
119
- "value": {
120
- "type": "string",
121
- "minLength": 1,
122
- "maxLength": 255
123
- }
124
- },
125
- "additionalProperties": false
126
- },
127
- "maxItems": 100
128
- },
129
- "includeDevices": {
130
- "type": "boolean",
131
- "default": true
132
- },
133
- "includeEvents": {
134
- "type": "boolean",
135
- "default": false
136
- },
137
- "includeDataTables": {
138
- "type": "boolean",
139
- "default": false
140
- },
141
- "dataTablesMode": {
142
- "type": "string",
143
- "enum": [
144
- "all",
145
- "whitelist",
146
- "blacklist"
147
- ]
148
- },
149
- "dataTableIds": {
150
- "type": "array",
151
- "items": {
152
- "type": "string",
153
- "pattern": "^[A-Fa-f\\d]{24}$"
154
- },
155
- "maxItems": 1000
156
- },
157
- "delayDays": {
158
- "type": "integer",
159
- "minimum": 1
160
- },
161
- "s3": {
88
+ "oneOf": [
89
+ {
162
90
  "type": "object",
163
91
  "properties": {
164
- "bucket": {
92
+ "directory": {
165
93
  "type": "string",
166
94
  "maxLength": 255
167
95
  },
168
- "accessKeyId": {
96
+ "mode": {
169
97
  "type": "string",
170
- "minLength": 4,
171
- "maxLength": 128
98
+ "enum": [
99
+ "all",
100
+ "whitelist",
101
+ "blacklist"
102
+ ]
172
103
  },
173
- "secretAccessKey": {
174
- "type": "string",
175
- "minLength": 4,
176
- "maxLength": 128
104
+ "deviceIds": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string",
108
+ "pattern": "^[A-Fa-f\\d]{24}$"
109
+ },
110
+ "maxItems": 1000
177
111
  },
178
- "region": {
179
- "type": "string",
180
- "maxLength": 128
181
- }
182
- },
183
- "required": [
184
- "bucket"
185
- ],
186
- "additionalProperties": false
187
- },
188
- "credentialName": {
189
- "type": "string",
190
- "minLength": 1,
191
- "maxLength": 255
192
- },
193
- "gcs": {
194
- "type": "object",
195
- "properties": {
196
- "projectId": {
197
- "type": "string",
198
- "minLength": 1,
199
- "maxLength": 1024
112
+ "deviceTags": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "object",
116
+ "properties": {
117
+ "key": {
118
+ "type": "string",
119
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
120
+ },
121
+ "value": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 255
125
+ }
126
+ },
127
+ "additionalProperties": false
128
+ },
129
+ "maxItems": 100
200
130
  },
201
- "keyJson": {
202
- "type": "string",
203
- "maxLength": 32767,
204
- "minLength": 4
131
+ "includeDevices": {
132
+ "type": "boolean",
133
+ "default": true
205
134
  },
206
- "bucket": {
207
- "type": "string",
208
- "maxLength": 255
209
- }
210
- },
211
- "required": [
212
- "bucket"
213
- ],
214
- "additionalProperties": false
215
- },
216
- "azure": {
217
- "type": "object",
218
- "properties": {
219
- "account": {
135
+ "includeEvents": {
136
+ "type": "boolean",
137
+ "default": false
138
+ },
139
+ "includeDataTables": {
140
+ "type": "boolean",
141
+ "default": false
142
+ },
143
+ "dataTablesMode": {
220
144
  "type": "string",
221
- "minLength": 3,
222
- "maxLength": 24
145
+ "enum": [
146
+ "all",
147
+ "whitelist",
148
+ "blacklist"
149
+ ]
150
+ },
151
+ "dataTableIds": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "string",
155
+ "pattern": "^[A-Fa-f\\d]{24}$"
156
+ },
157
+ "maxItems": 1000
158
+ },
159
+ "includeApplicationExport": {
160
+ "type": "boolean",
161
+ "default": false
162
+ },
163
+ "applicationExportOptions": {
164
+ "type": "object",
165
+ "properties": {
166
+ "includeFiles": {
167
+ "type": "boolean",
168
+ "default": false
169
+ },
170
+ "includeDataTableRows": {
171
+ "type": "boolean",
172
+ "default": false
173
+ },
174
+ "includeDevices": {
175
+ "type": "boolean",
176
+ "default": false
177
+ },
178
+ "exportType": {
179
+ "type": "string",
180
+ "enum": [
181
+ "repo"
182
+ ],
183
+ "default": "repo"
184
+ },
185
+ "credentialName": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 255
189
+ },
190
+ "repo": {
191
+ "type": "object",
192
+ "properties": {
193
+ "branch": {
194
+ "type": "string",
195
+ "maxLength": 255
196
+ },
197
+ "directory": {
198
+ "type": "string",
199
+ "maxLength": 1024
200
+ },
201
+ "commitMessage": {
202
+ "type": "string",
203
+ "maxLength": 1024
204
+ }
205
+ }
206
+ }
207
+ },
208
+ "required": [
209
+ "credentialName"
210
+ ],
211
+ "additionalProperties": false
212
+ },
213
+ "delayDays": {
214
+ "type": "integer",
215
+ "minimum": 1
216
+ },
217
+ "s3": {
218
+ "type": "object",
219
+ "properties": {
220
+ "bucket": {
221
+ "type": "string",
222
+ "maxLength": 255
223
+ },
224
+ "accessKeyId": {
225
+ "type": "string",
226
+ "minLength": 4,
227
+ "maxLength": 128
228
+ },
229
+ "secretAccessKey": {
230
+ "type": "string",
231
+ "minLength": 4,
232
+ "maxLength": 128
233
+ },
234
+ "region": {
235
+ "type": "string",
236
+ "maxLength": 128
237
+ }
238
+ },
239
+ "required": [
240
+ "bucket"
241
+ ],
242
+ "additionalProperties": false
223
243
  },
224
- "accountKey": {
244
+ "credentialName": {
225
245
  "type": "string",
246
+ "minLength": 1,
226
247
  "maxLength": 255
227
248
  },
228
- "bucket": {
229
- "type": "string",
230
- "minLength": 3,
231
- "maxLength": 63
249
+ "gcs": {
250
+ "type": "object",
251
+ "properties": {
252
+ "projectId": {
253
+ "type": "string",
254
+ "minLength": 1,
255
+ "maxLength": 1024
256
+ },
257
+ "keyJson": {
258
+ "type": "string",
259
+ "maxLength": 32767,
260
+ "minLength": 4
261
+ },
262
+ "bucket": {
263
+ "type": "string",
264
+ "maxLength": 255
265
+ }
266
+ },
267
+ "required": [
268
+ "bucket"
269
+ ],
270
+ "additionalProperties": false
271
+ },
272
+ "azure": {
273
+ "type": "object",
274
+ "properties": {
275
+ "account": {
276
+ "type": "string",
277
+ "minLength": 3,
278
+ "maxLength": 24
279
+ },
280
+ "accountKey": {
281
+ "type": "string",
282
+ "maxLength": 255
283
+ },
284
+ "bucket": {
285
+ "type": "string",
286
+ "minLength": 3,
287
+ "maxLength": 63
288
+ }
289
+ },
290
+ "required": [
291
+ "bucket"
292
+ ],
293
+ "additionalProperties": false
232
294
  }
233
295
  },
234
- "required": [
235
- "bucket"
236
- ],
237
296
  "additionalProperties": false
297
+ },
298
+ {
299
+ "type": "null"
238
300
  }
239
- },
240
- "additionalProperties": false
301
+ ]
241
302
  },
242
303
  "blobUrlTTL": {
243
304
  "type": "number",