losant_rest 1.21.2 → 1.22.0

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.
@@ -13,7 +13,8 @@
13
13
  "enum": [
14
14
  "importBundle",
15
15
  "importUrl",
16
- "fromApplication"
16
+ "fromApplication",
17
+ "repository"
17
18
  ]
18
19
  },
19
20
  "importExecutionId": {
@@ -199,6 +200,22 @@
199
200
  "type": "string",
200
201
  "format": "uri",
201
202
  "maxLength": 1024
203
+ },
204
+ "credentialName": {
205
+ "type": "string"
206
+ },
207
+ "repo": {
208
+ "type": "object",
209
+ "properties": {
210
+ "branch": {
211
+ "type": "string",
212
+ "maxLength": 255
213
+ },
214
+ "directory": {
215
+ "type": "string",
216
+ "maxLength": 1024
217
+ }
218
+ }
202
219
  }
203
220
  }
204
221
  }
@@ -68,7 +68,9 @@
68
68
  "whatsapp",
69
69
  "sql",
70
70
  "mongodb",
71
- "mailgun"
71
+ "mailgun",
72
+ "snowflake",
73
+ "git"
72
74
  ]
73
75
  },
74
76
  "awsConfig": {
@@ -268,6 +270,69 @@
268
270
  "type": "object",
269
271
  "properties": {},
270
272
  "additionalProperties": false
273
+ },
274
+ "snowflakeConfig": {
275
+ "type": "object",
276
+ "properties": {
277
+ "host": {
278
+ "type": "string",
279
+ "minLength": 1,
280
+ "maxLength": 128
281
+ },
282
+ "username": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "maxLength": 128
286
+ },
287
+ "publicKey": {
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "maxLength": 8192
291
+ }
292
+ },
293
+ "required": [
294
+ "host",
295
+ "username",
296
+ "publicKey"
297
+ ],
298
+ "additionalProperties": false
299
+ },
300
+ "gitConfig": {
301
+ "type": "object",
302
+ "properties": {
303
+ "type": {
304
+ "type": "string",
305
+ "enum": [
306
+ "ssh-key",
307
+ "http-password"
308
+ ]
309
+ },
310
+ "cloneUrl": {
311
+ "type": "string",
312
+ "minLength": 5,
313
+ "maxLength": 1024
314
+ },
315
+ "publicKey": {
316
+ "type": "string",
317
+ "maxLength": 8192
318
+ },
319
+ "username": {
320
+ "type": "string",
321
+ "maxLength": 128
322
+ },
323
+ "committerName": {
324
+ "type": "string",
325
+ "maxLength": 128
326
+ },
327
+ "committerEmail": {
328
+ "type": "string",
329
+ "maxLength": 128
330
+ }
331
+ },
332
+ "required": [
333
+ "type",
334
+ "cloneUrl"
335
+ ]
271
336
  }
272
337
  },
273
338
  "additionalProperties": false,
@@ -249,6 +249,66 @@
249
249
  }
250
250
  },
251
251
  "additionalProperties": false
252
+ },
253
+ "snowflakeConfig": {
254
+ "type": "object",
255
+ "properties": {
256
+ "host": {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 128
260
+ },
261
+ "username": {
262
+ "type": "string",
263
+ "minLength": 1,
264
+ "maxLength": 128
265
+ },
266
+ "privateKey": {
267
+ "type": "string",
268
+ "maxLength": 8196
269
+ },
270
+ "generatePrivateKey": {
271
+ "type": "boolean"
272
+ }
273
+ },
274
+ "additionalProperties": false
275
+ },
276
+ "gitConfig": {
277
+ "type": "object",
278
+ "properties": {
279
+ "type": {
280
+ "type": "string",
281
+ "enum": [
282
+ "ssh-key",
283
+ "http-password"
284
+ ]
285
+ },
286
+ "cloneUrl": {
287
+ "type": "string",
288
+ "minLength": 5,
289
+ "maxLength": 1024
290
+ },
291
+ "username": {
292
+ "type": "string",
293
+ "maxLength": 128
294
+ },
295
+ "committerName": {
296
+ "type": "string",
297
+ "maxLength": 128
298
+ },
299
+ "committerEmail": {
300
+ "type": "string",
301
+ "maxLength": 128
302
+ },
303
+ "generatePrivateKey": {
304
+ "type": "boolean"
305
+ },
306
+ "secretValue": {
307
+ "type": "string",
308
+ "maxLength": 8196
309
+ }
310
+ },
311
+ "additionalProperties": false
252
312
  }
253
313
  },
254
314
  "additionalProperties": false
@@ -28,7 +28,9 @@
28
28
  "whatsapp",
29
29
  "sql",
30
30
  "mongodb",
31
- "mailgun"
31
+ "mailgun",
32
+ "snowflake",
33
+ "git"
32
34
  ]
33
35
  },
34
36
  "awsConfig": {
@@ -293,12 +295,12 @@
293
295
  "type": "string",
294
296
  "minLength": 1,
295
297
  "maxLength": 2048
296
- },
297
- "required": [
298
- "connectionUri"
299
- ]
298
+ }
300
299
  },
301
- "additionalProperties": false
300
+ "additionalProperties": false,
301
+ "required": [
302
+ "connectionUri"
303
+ ]
302
304
  },
303
305
  "mailgunConfig": {
304
306
  "type": "object",
@@ -313,6 +315,97 @@
313
315
  "required": [
314
316
  "apiKey"
315
317
  ]
318
+ },
319
+ "snowflakeConfig": {
320
+ "type": "object",
321
+ "properties": {
322
+ "host": {
323
+ "type": "string",
324
+ "minLength": 1,
325
+ "maxLength": 128
326
+ },
327
+ "username": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "maxLength": 128
331
+ },
332
+ "privateKey": {
333
+ "type": "string",
334
+ "maxLength": 8196
335
+ },
336
+ "generatePrivateKey": {
337
+ "type": "boolean"
338
+ }
339
+ },
340
+ "additionalProperties": false,
341
+ "anyOf": [
342
+ {
343
+ "required": [
344
+ "host",
345
+ "username",
346
+ "privateKey"
347
+ ]
348
+ },
349
+ {
350
+ "required": [
351
+ "host",
352
+ "username",
353
+ "generatePrivateKey"
354
+ ]
355
+ }
356
+ ]
357
+ },
358
+ "gitConfig": {
359
+ "type": "object",
360
+ "properties": {
361
+ "type": {
362
+ "type": "string",
363
+ "enum": [
364
+ "ssh-key",
365
+ "http-password"
366
+ ]
367
+ },
368
+ "cloneUrl": {
369
+ "type": "string",
370
+ "minLength": 5,
371
+ "maxLength": 1024
372
+ },
373
+ "username": {
374
+ "type": "string",
375
+ "maxLength": 128
376
+ },
377
+ "committerName": {
378
+ "type": "string",
379
+ "maxLength": 128
380
+ },
381
+ "committerEmail": {
382
+ "type": "string",
383
+ "maxLength": 128
384
+ },
385
+ "generatePrivateKey": {
386
+ "type": "boolean"
387
+ },
388
+ "secretValue": {
389
+ "type": "string",
390
+ "maxLength": 8196
391
+ }
392
+ },
393
+ "additionalProperties": false,
394
+ "anyOf": [
395
+ {
396
+ "required": [
397
+ "type",
398
+ "cloneUrl",
399
+ "generatePrivateKey"
400
+ ]
401
+ },
402
+ {
403
+ "required": [
404
+ "type",
405
+ "cloneUrl"
406
+ ]
407
+ }
408
+ ]
316
409
  }
317
410
  },
318
411
  "additionalProperties": false,
@@ -75,7 +75,9 @@
75
75
  "whatsapp",
76
76
  "sql",
77
77
  "mongodb",
78
- "mailgun"
78
+ "mailgun",
79
+ "snowflake",
80
+ "git"
79
81
  ]
80
82
  },
81
83
  "awsConfig": {
@@ -275,6 +277,69 @@
275
277
  "type": "object",
276
278
  "properties": {},
277
279
  "additionalProperties": false
280
+ },
281
+ "snowflakeConfig": {
282
+ "type": "object",
283
+ "properties": {
284
+ "host": {
285
+ "type": "string",
286
+ "minLength": 1,
287
+ "maxLength": 128
288
+ },
289
+ "username": {
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 128
293
+ },
294
+ "publicKey": {
295
+ "type": "string",
296
+ "minLength": 1,
297
+ "maxLength": 8192
298
+ }
299
+ },
300
+ "required": [
301
+ "host",
302
+ "username",
303
+ "publicKey"
304
+ ],
305
+ "additionalProperties": false
306
+ },
307
+ "gitConfig": {
308
+ "type": "object",
309
+ "properties": {
310
+ "type": {
311
+ "type": "string",
312
+ "enum": [
313
+ "ssh-key",
314
+ "http-password"
315
+ ]
316
+ },
317
+ "cloneUrl": {
318
+ "type": "string",
319
+ "minLength": 5,
320
+ "maxLength": 1024
321
+ },
322
+ "publicKey": {
323
+ "type": "string",
324
+ "maxLength": 8192
325
+ },
326
+ "username": {
327
+ "type": "string",
328
+ "maxLength": 128
329
+ },
330
+ "committerName": {
331
+ "type": "string",
332
+ "maxLength": 128
333
+ },
334
+ "committerEmail": {
335
+ "type": "string",
336
+ "maxLength": 128
337
+ }
338
+ },
339
+ "required": [
340
+ "type",
341
+ "cloneUrl"
342
+ ]
278
343
  }
279
344
  },
280
345
  "additionalProperties": false,
data/schemas/device.json CHANGED
@@ -119,7 +119,6 @@
119
119
  "type": "object",
120
120
  "additionalProperties": false
121
121
  },
122
- "additionalProperties": false,
123
122
  "maxItems": 0
124
123
  },
125
124
  "childAttributes": {
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "name": {
6
+ "type": "string",
7
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
8
+ },
9
+ "dataType": {
10
+ "type": "string",
11
+ "enum": [
12
+ "string",
13
+ "number",
14
+ "gps",
15
+ "boolean",
16
+ "blob"
17
+ ]
18
+ },
19
+ "contentType": {
20
+ "type": "string",
21
+ "maxLength": 64
22
+ },
23
+ "description": {
24
+ "type": "string",
25
+ "maxLength": 32767
26
+ },
27
+ "attributeTags": {
28
+ "type": "object",
29
+ "patternProperties": {
30
+ "^[0-9a-zA-Z_-]{1,255}$": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 255
34
+ }
35
+ },
36
+ "additionalProperties": false
37
+ },
38
+ "system": {
39
+ "type": "object",
40
+ "properties": {
41
+ "aggregation": {
42
+ "type": "string",
43
+ "enum": [
44
+ "FIRST",
45
+ "LAST",
46
+ "COUNT",
47
+ "MAX",
48
+ "MIN",
49
+ "MEDIAN",
50
+ "MEAN",
51
+ "SUM",
52
+ "STD_DEV"
53
+ ]
54
+ },
55
+ "aggregationOptions": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "additionalProperties": false
60
+ },
61
+ "maxItems": 0
62
+ },
63
+ "childAttributes": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "properties": {
68
+ "name": {
69
+ "type": "string",
70
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
71
+ },
72
+ "mode": {
73
+ "type": "string",
74
+ "enum": [
75
+ "all",
76
+ "whitelist",
77
+ "blacklist"
78
+ ]
79
+ },
80
+ "deviceIds": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string",
84
+ "pattern": "^[A-Fa-f\\d]{24}$"
85
+ },
86
+ "maxItems": 1000
87
+ },
88
+ "deviceTags": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "object",
92
+ "properties": {
93
+ "key": {
94
+ "type": "string",
95
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
96
+ },
97
+ "value": {
98
+ "type": "string",
99
+ "minLength": 1,
100
+ "maxLength": 255
101
+ }
102
+ },
103
+ "additionalProperties": false
104
+ },
105
+ "maxItems": 100
106
+ }
107
+ },
108
+ "required": [
109
+ "name",
110
+ "mode"
111
+ ],
112
+ "additionalProperties": false
113
+ },
114
+ "maxItems": 256
115
+ }
116
+ },
117
+ "additionalProperties": false
118
+ },
119
+ "applicationId": {
120
+ "type": "string",
121
+ "pattern": "^[A-Fa-f\\d]{24}$"
122
+ },
123
+ "deviceId": {
124
+ "type": "string",
125
+ "pattern": "^[A-Fa-f\\d]{24}$"
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "name": {
6
+ "type": "string",
7
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
8
+ },
9
+ "contentType": {
10
+ "type": "string",
11
+ "maxLength": 64
12
+ },
13
+ "description": {
14
+ "type": "string",
15
+ "maxLength": 32767
16
+ },
17
+ "attributeTags": {
18
+ "type": "object",
19
+ "patternProperties": {
20
+ "^[0-9a-zA-Z_-]{1,255}$": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 255
24
+ }
25
+ },
26
+ "additionalProperties": false
27
+ },
28
+ "system": {
29
+ "type": "object",
30
+ "properties": {
31
+ "aggregation": {
32
+ "type": "string",
33
+ "enum": [
34
+ "FIRST",
35
+ "LAST",
36
+ "COUNT",
37
+ "MAX",
38
+ "MIN",
39
+ "MEDIAN",
40
+ "MEAN",
41
+ "SUM",
42
+ "STD_DEV"
43
+ ]
44
+ },
45
+ "aggregationOptions": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "additionalProperties": false
50
+ },
51
+ "maxItems": 0
52
+ },
53
+ "childAttributes": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "properties": {
58
+ "name": {
59
+ "type": "string",
60
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
61
+ },
62
+ "mode": {
63
+ "type": "string",
64
+ "enum": [
65
+ "all",
66
+ "whitelist",
67
+ "blacklist"
68
+ ]
69
+ },
70
+ "deviceIds": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string",
74
+ "pattern": "^[A-Fa-f\\d]{24}$"
75
+ },
76
+ "maxItems": 1000
77
+ },
78
+ "deviceTags": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "object",
82
+ "properties": {
83
+ "key": {
84
+ "type": "string",
85
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
86
+ },
87
+ "value": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "maxLength": 255
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "maxItems": 100
96
+ }
97
+ },
98
+ "required": [
99
+ "name",
100
+ "mode"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ "maxItems": 256
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ }
109
+ },
110
+ "additionalProperties": false
111
+ }