@withgateway/sdk 0.1.19 → 0.2.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.
Files changed (130) hide show
  1. package/README.md +141 -2
  2. package/dist/cli.js +8677 -1320
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.mjs +8683 -1327
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/index.d.mts +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +1005 -55
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +969 -47
  11. package/dist/index.mjs.map +1 -1
  12. package/dist/tracing/index.js +9 -2
  13. package/dist/tracing/index.js.map +1 -1
  14. package/dist/tracing/index.mjs +9 -2
  15. package/dist/tracing/index.mjs.map +1 -1
  16. package/dist/worlds/index.d.mts +738 -28
  17. package/dist/worlds/index.d.ts +738 -28
  18. package/dist/worlds/index.js +966 -51
  19. package/dist/worlds/index.js.map +1 -1
  20. package/dist/worlds/index.mjs +960 -45
  21. package/dist/worlds/index.mjs.map +1 -1
  22. package/package.json +9 -2
  23. package/runtime/gatewaysdk/__init__.py +0 -0
  24. package/runtime/gatewaysdk/environment/__init__.py +108 -0
  25. package/runtime/gatewaysdk/environment/_bundle.py +281 -0
  26. package/runtime/gatewaysdk/environment/_harbor.py +276 -0
  27. package/runtime/gatewaysdk/environment/_materialize.py +97 -0
  28. package/runtime/gatewaysdk/environment/_tar.py +33 -0
  29. package/runtime/gatewaysdk/environment/_world.py +346 -0
  30. package/runtime/gatewaysdk/environment/core.py +527 -0
  31. package/runtime/gatewaysdk/environment/errors.py +58 -0
  32. package/runtime/gatewaysdk/environment/runtime.py +150 -0
  33. package/runtime/gatewaysdk/environment/schema/__init__.py +35 -0
  34. package/runtime/gatewaysdk/environment/schema/__main__.py +225 -0
  35. package/runtime/gatewaysdk/environment/schema/_slack_fidelity.py +116 -0
  36. package/runtime/gatewaysdk/environment/schema/_slack_scenario.py +183 -0
  37. package/runtime/gatewaysdk/environment/schema/api.py +1628 -0
  38. package/runtime/gatewaysdk/environment/schema/batch.py +755 -0
  39. package/runtime/gatewaysdk/environment/schema/compiler.py +615 -0
  40. package/runtime/gatewaysdk/environment/schema/conform.py +428 -0
  41. package/runtime/gatewaysdk/environment/schema/connector.py +777 -0
  42. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +17 -0
  43. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +28 -0
  44. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +233 -0
  45. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +112 -0
  46. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +1380 -0
  47. package/runtime/gatewaysdk/environment/schema/connectors/base.json +28 -0
  48. package/runtime/gatewaysdk/environment/schema/connectors/custom/handlers.py +18 -0
  49. package/runtime/gatewaysdk/environment/schema/connectors/custom/world.json +123 -0
  50. package/runtime/gatewaysdk/environment/schema/connectors/github/handlers.py +81 -0
  51. package/runtime/gatewaysdk/environment/schema/connectors/github/parity.json +37 -0
  52. package/runtime/gatewaysdk/environment/schema/connectors/github/provenance.json +134 -0
  53. package/runtime/gatewaysdk/environment/schema/connectors/github/scope.toml +158 -0
  54. package/runtime/gatewaysdk/environment/schema/connectors/github/world.json +5869 -0
  55. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/handlers.py +23 -0
  56. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/world.json +209 -0
  57. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/handlers.py +18 -0
  58. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/world.json +286 -0
  59. package/runtime/gatewaysdk/environment/schema/connectors/jamf/handlers.py +34 -0
  60. package/runtime/gatewaysdk/environment/schema/connectors/jamf/parity.json +49 -0
  61. package/runtime/gatewaysdk/environment/schema/connectors/jamf/provenance.json +181 -0
  62. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scope.toml +128 -0
  63. package/runtime/gatewaysdk/environment/schema/connectors/jamf/world.json +2218 -0
  64. package/runtime/gatewaysdk/environment/schema/connectors/jira/handlers.py +28 -0
  65. package/runtime/gatewaysdk/environment/schema/connectors/jira/world.json +389 -0
  66. package/runtime/gatewaysdk/environment/schema/connectors/kandji/handlers.py +38 -0
  67. package/runtime/gatewaysdk/environment/schema/connectors/kandji/parity.json +29 -0
  68. package/runtime/gatewaysdk/environment/schema/connectors/kandji/provenance.json +152 -0
  69. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scope.toml +120 -0
  70. package/runtime/gatewaysdk/environment/schema/connectors/kandji/world.json +765 -0
  71. package/runtime/gatewaysdk/environment/schema/connectors/linear/handlers.py +20 -0
  72. package/runtime/gatewaysdk/environment/schema/connectors/linear/world.json +363 -0
  73. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +45 -0
  74. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/handlers.py +1 -0
  75. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +851 -0
  76. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +231 -0
  77. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +1710 -0
  78. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +858 -0
  79. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/handlers.py +32 -0
  80. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/parity.json +50 -0
  81. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +137 -0
  82. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scope.toml +78 -0
  83. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +16243 -0
  84. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/handlers.py +806 -0
  85. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/parity.json +46 -0
  86. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +143 -0
  87. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scope.toml +174 -0
  88. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +4695 -0
  89. package/runtime/gatewaysdk/environment/schema/connectors/slack/MODEL.md +236 -0
  90. package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +1039 -0
  91. package/runtime/gatewaysdk/environment/schema/connectors/slack/handlers.py +762 -0
  92. package/runtime/gatewaysdk/environment/schema/connectors/slack/parity.json +65 -0
  93. package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +294 -0
  94. package/runtime/gatewaysdk/environment/schema/connectors/slack/scope.toml +44 -0
  95. package/runtime/gatewaysdk/environment/schema/connectors/slack/world.json +4993 -0
  96. package/runtime/gatewaysdk/environment/schema/connectors/workday/handlers.py +75 -0
  97. package/runtime/gatewaysdk/environment/schema/connectors/workday/parity.json +36 -0
  98. package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +179 -0
  99. package/runtime/gatewaysdk/environment/schema/connectors/workday/scope.toml +180 -0
  100. package/runtime/gatewaysdk/environment/schema/connectors/workday/world.json +806 -0
  101. package/runtime/gatewaysdk/environment/schema/data.py +593 -0
  102. package/runtime/gatewaysdk/environment/schema/extract.py +263 -0
  103. package/runtime/gatewaysdk/environment/schema/host.py +2407 -0
  104. package/runtime/gatewaysdk/environment/schema/host_surfaces.py +275 -0
  105. package/runtime/gatewaysdk/environment/schema/platform.py +1272 -0
  106. package/runtime/gatewaysdk/environment/schema/scaffold.py +250 -0
  107. package/runtime/gatewaysdk/environment/schema/skill.py +118 -0
  108. package/runtime/gatewaysdk/environment/schema/skills/agents/connector-template-author.md +202 -0
  109. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +331 -0
  110. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
  111. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +313 -0
  112. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +223 -0
  113. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +293 -0
  114. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +390 -0
  115. package/runtime/gatewaysdk/environment/schema/slack.py +757 -0
  116. package/runtime/gatewaysdk/environment/schema/snapshot.py +479 -0
  117. package/runtime/gatewaysdk/environment/schema/store.py +904 -0
  118. package/runtime/gatewaysdk/environment/schema/tasks.py +525 -0
  119. package/runtime/gatewaysdk/environment/schema/tools_world.py +322 -0
  120. package/runtime/gatewaysdk/environment/schema/validation.py +577 -0
  121. package/runtime/gatewaysdk/environment/schema/worker.py +78 -0
  122. package/runtime/gatewaysdk/environment/schema/workers.py +500 -0
  123. package/runtime/gatewaysdk/environment/schema/world_tests.py +336 -0
  124. package/skills/agents/connector-template-author.md +202 -0
  125. package/skills/connector-schema-authoring/CONNECTORS.md +331 -0
  126. package/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
  127. package/skills/connector-schema-authoring/SKILL.md +313 -0
  128. package/skills/world-data-ingestion/ROWS.md +223 -0
  129. package/skills/world-data-ingestion/SKILL.md +293 -0
  130. package/skills/worlds-getting-started/SKILL.md +390 -0
@@ -0,0 +1,765 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:gateway:connector:kandji",
4
+ "$defs": {
5
+ "DeviceUser": {
6
+ "type": "object",
7
+ "properties": {
8
+ "email": {
9
+ "$ref": "base.json#/$defs/Email"
10
+ },
11
+ "name": {
12
+ "$ref": "base.json#/$defs/Label"
13
+ },
14
+ "id": {
15
+ "$ref": "base.json#/$defs/Id"
16
+ },
17
+ "is_archived": {
18
+ "type": "boolean"
19
+ }
20
+ },
21
+ "required": [
22
+ "email",
23
+ "name",
24
+ "id",
25
+ "is_archived"
26
+ ],
27
+ "additionalProperties": false
28
+ },
29
+ "Device": {
30
+ "type": "object",
31
+ "properties": {
32
+ "device_id": {
33
+ "$ref": "base.json#/$defs/Id"
34
+ },
35
+ "device_name": {
36
+ "$ref": "base.json#/$defs/Label"
37
+ },
38
+ "serial_number": {
39
+ "$ref": "base.json#/$defs/Label"
40
+ },
41
+ "model": {
42
+ "$ref": "base.json#/$defs/Label"
43
+ },
44
+ "platform": {
45
+ "type": "string",
46
+ "enum": [
47
+ "Mac",
48
+ "iPhone",
49
+ "iPad",
50
+ "AppleTV",
51
+ "Windows",
52
+ "Android"
53
+ ]
54
+ },
55
+ "os_version": {
56
+ "$ref": "base.json#/$defs/Label"
57
+ },
58
+ "supplemental_build_version": {
59
+ "type": "string",
60
+ "maxLength": 256
61
+ },
62
+ "supplemental_os_version_extra": {
63
+ "type": "string",
64
+ "maxLength": 256
65
+ },
66
+ "blueprint_id": {
67
+ "$ref": "base.json#/$defs/Id"
68
+ },
69
+ "blueprint_name": {
70
+ "$ref": "base.json#/$defs/Label"
71
+ },
72
+ "user": {
73
+ "anyOf": [
74
+ {
75
+ "$ref": "#/$defs/DeviceUser"
76
+ },
77
+ {
78
+ "type": "string",
79
+ "enum": [
80
+ ""
81
+ ]
82
+ }
83
+ ]
84
+ },
85
+ "last_check_in": {
86
+ "anyOf": [
87
+ {
88
+ "$ref": "base.json#/$defs/Timestamp"
89
+ },
90
+ {
91
+ "type": "string",
92
+ "enum": [
93
+ ""
94
+ ]
95
+ }
96
+ ]
97
+ },
98
+ "agent_installed": {
99
+ "type": "boolean"
100
+ },
101
+ "agent_version": {
102
+ "type": "string",
103
+ "maxLength": 256
104
+ },
105
+ "mdm_enabled": {
106
+ "type": "boolean"
107
+ },
108
+ "is_missing": {
109
+ "type": "boolean"
110
+ },
111
+ "is_removed": {
112
+ "type": "boolean"
113
+ },
114
+ "asset_tag": {
115
+ "type": "string",
116
+ "maxLength": 256
117
+ },
118
+ "first_enrollment": {
119
+ "type": "string",
120
+ "maxLength": 256
121
+ },
122
+ "last_enrollment": {
123
+ "type": "string",
124
+ "maxLength": 256
125
+ },
126
+ "lost_mode_status": {
127
+ "type": "string",
128
+ "maxLength": 256
129
+ },
130
+ "tags": {
131
+ "type": "array",
132
+ "items": {
133
+ "$ref": "base.json#/$defs/Label"
134
+ }
135
+ }
136
+ },
137
+ "required": [
138
+ "device_id",
139
+ "device_name",
140
+ "serial_number",
141
+ "model",
142
+ "platform",
143
+ "os_version",
144
+ "supplemental_build_version",
145
+ "supplemental_os_version_extra",
146
+ "blueprint_id",
147
+ "blueprint_name",
148
+ "user",
149
+ "last_check_in",
150
+ "agent_installed",
151
+ "agent_version",
152
+ "mdm_enabled",
153
+ "is_missing",
154
+ "is_removed",
155
+ "asset_tag",
156
+ "first_enrollment",
157
+ "last_enrollment",
158
+ "tags"
159
+ ],
160
+ "additionalProperties": false
161
+ },
162
+ "Blueprint": {
163
+ "type": "object",
164
+ "properties": {
165
+ "id": {
166
+ "$ref": "base.json#/$defs/Id"
167
+ },
168
+ "name": {
169
+ "$ref": "base.json#/$defs/Label"
170
+ },
171
+ "icon": {
172
+ "$ref": "base.json#/$defs/Label"
173
+ },
174
+ "color": {
175
+ "$ref": "base.json#/$defs/Label"
176
+ },
177
+ "type": {
178
+ "type": "string",
179
+ "enum": [
180
+ "classic",
181
+ "map"
182
+ ]
183
+ },
184
+ "description": {
185
+ "$ref": "base.json#/$defs/Text"
186
+ },
187
+ "params": {
188
+ "type": "object",
189
+ "properties": {},
190
+ "additionalProperties": true
191
+ },
192
+ "computers_count": {
193
+ "type": "integer",
194
+ "minimum": 0
195
+ },
196
+ "enrollment_code": {
197
+ "type": "object",
198
+ "properties": {
199
+ "code": {
200
+ "type": "string",
201
+ "maxLength": 256
202
+ },
203
+ "is_active": {
204
+ "type": "boolean"
205
+ }
206
+ },
207
+ "required": [
208
+ "code",
209
+ "is_active"
210
+ ],
211
+ "additionalProperties": false
212
+ }
213
+ },
214
+ "required": [
215
+ "id",
216
+ "name",
217
+ "icon",
218
+ "color",
219
+ "type",
220
+ "description",
221
+ "params",
222
+ "computers_count",
223
+ "enrollment_code"
224
+ ],
225
+ "additionalProperties": false
226
+ },
227
+ "LibraryItem": {
228
+ "type": "object",
229
+ "properties": {
230
+ "id": {
231
+ "$ref": "base.json#/$defs/Id"
232
+ },
233
+ "name": {
234
+ "$ref": "base.json#/$defs/Label"
235
+ },
236
+ "type": {
237
+ "$ref": "base.json#/$defs/Label"
238
+ },
239
+ "status": {
240
+ "type": "string",
241
+ "enum": [
242
+ "AVAILABLE",
243
+ "CACHED",
244
+ "CHANGE_PENDING",
245
+ "DOWNLOADING",
246
+ "ERROR",
247
+ "EXCLUDED",
248
+ "INCOMPATIBLE",
249
+ "INSTALLING",
250
+ "PASS",
251
+ "PENDING",
252
+ "failed",
253
+ "pending",
254
+ "success"
255
+ ]
256
+ },
257
+ "reported_at": {
258
+ "anyOf": [
259
+ {
260
+ "$ref": "base.json#/$defs/Timestamp"
261
+ },
262
+ {
263
+ "type": "null"
264
+ }
265
+ ]
266
+ },
267
+ "log": {
268
+ "type": [
269
+ "string",
270
+ "null"
271
+ ],
272
+ "maxLength": 40000
273
+ },
274
+ "last_audit_run": {
275
+ "anyOf": [
276
+ {
277
+ "$ref": "base.json#/$defs/Timestamp"
278
+ },
279
+ {
280
+ "type": "null"
281
+ }
282
+ ]
283
+ },
284
+ "last_audit_log": {
285
+ "type": [
286
+ "string",
287
+ "null"
288
+ ],
289
+ "maxLength": 40000
290
+ },
291
+ "control_log": {
292
+ "type": [
293
+ "string",
294
+ "null"
295
+ ],
296
+ "maxLength": 40000
297
+ },
298
+ "control_reported_at": {
299
+ "anyOf": [
300
+ {
301
+ "$ref": "base.json#/$defs/Timestamp"
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ]
307
+ },
308
+ "rules_present": {
309
+ "type": "boolean"
310
+ }
311
+ },
312
+ "required": [
313
+ "id",
314
+ "name"
315
+ ],
316
+ "additionalProperties": false
317
+ },
318
+ "BlueprintItem": {
319
+ "type": "object",
320
+ "properties": {
321
+ "blueprint_id": {
322
+ "$ref": "base.json#/$defs/Id"
323
+ },
324
+ "library_item_id": {
325
+ "$ref": "base.json#/$defs/Id"
326
+ },
327
+ "assignment_node_id": {
328
+ "$ref": "base.json#/$defs/Id"
329
+ }
330
+ },
331
+ "required": [
332
+ "blueprint_id",
333
+ "library_item_id"
334
+ ],
335
+ "additionalProperties": false
336
+ },
337
+ "User": {
338
+ "type": "object",
339
+ "properties": {
340
+ "id": {
341
+ "$ref": "base.json#/$defs/Id"
342
+ },
343
+ "email": {
344
+ "$ref": "base.json#/$defs/Email"
345
+ },
346
+ "name": {
347
+ "$ref": "base.json#/$defs/Label"
348
+ },
349
+ "active": {
350
+ "type": "boolean"
351
+ },
352
+ "archived": {
353
+ "type": "boolean"
354
+ },
355
+ "created_at": {
356
+ "$ref": "base.json#/$defs/Timestamp"
357
+ },
358
+ "department": {
359
+ "type": [
360
+ "string",
361
+ "null"
362
+ ],
363
+ "maxLength": 256
364
+ },
365
+ "deprecated_user_id": {
366
+ "$ref": "base.json#/$defs/Id"
367
+ },
368
+ "integration": {
369
+ "type": "object",
370
+ "properties": {
371
+ "id": {
372
+ "type": "integer"
373
+ },
374
+ "name": {
375
+ "$ref": "base.json#/$defs/Label"
376
+ },
377
+ "uuid": {
378
+ "$ref": "base.json#/$defs/Id"
379
+ },
380
+ "type": {
381
+ "$ref": "base.json#/$defs/Label"
382
+ }
383
+ },
384
+ "required": [
385
+ "id",
386
+ "name",
387
+ "uuid",
388
+ "type"
389
+ ],
390
+ "additionalProperties": false
391
+ },
392
+ "job_title": {
393
+ "type": [
394
+ "string",
395
+ "null"
396
+ ],
397
+ "maxLength": 256
398
+ },
399
+ "device_count": {
400
+ "type": "integer",
401
+ "minimum": 0
402
+ },
403
+ "updated_at": {
404
+ "$ref": "base.json#/$defs/Timestamp"
405
+ }
406
+ },
407
+ "required": [
408
+ "id",
409
+ "email",
410
+ "name",
411
+ "active",
412
+ "archived",
413
+ "created_at",
414
+ "department",
415
+ "deprecated_user_id",
416
+ "integration",
417
+ "job_title",
418
+ "device_count",
419
+ "updated_at"
420
+ ],
421
+ "additionalProperties": false
422
+ },
423
+ "Tag": {
424
+ "type": "object",
425
+ "properties": {
426
+ "id": {
427
+ "$ref": "base.json#/$defs/Id"
428
+ },
429
+ "name": {
430
+ "$ref": "base.json#/$defs/Label"
431
+ }
432
+ },
433
+ "required": [
434
+ "id",
435
+ "name"
436
+ ],
437
+ "additionalProperties": false
438
+ },
439
+ "DeviceTag": {
440
+ "type": "object",
441
+ "properties": {
442
+ "device_id": {
443
+ "$ref": "base.json#/$defs/Id"
444
+ },
445
+ "tag_id": {
446
+ "$ref": "base.json#/$defs/Id"
447
+ }
448
+ },
449
+ "required": [
450
+ "device_id",
451
+ "tag_id"
452
+ ],
453
+ "additionalProperties": false
454
+ },
455
+ "DeviceApp": {
456
+ "type": "object",
457
+ "properties": {
458
+ "device_id": {
459
+ "$ref": "base.json#/$defs/Id"
460
+ },
461
+ "bundle_id": {
462
+ "$ref": "base.json#/$defs/Label"
463
+ },
464
+ "app_id": {
465
+ "$ref": "base.json#/$defs/Id"
466
+ },
467
+ "app_name": {
468
+ "$ref": "base.json#/$defs/Label"
469
+ },
470
+ "version": {
471
+ "type": "string",
472
+ "maxLength": 256
473
+ },
474
+ "bundle_size": {
475
+ "type": "string",
476
+ "maxLength": 256
477
+ },
478
+ "app_store_vendable": {
479
+ "type": "string",
480
+ "maxLength": 256
481
+ },
482
+ "device_based_vpp": {
483
+ "type": "string",
484
+ "maxLength": 256
485
+ },
486
+ "source": {
487
+ "type": "string",
488
+ "maxLength": 256
489
+ },
490
+ "process": {
491
+ "type": "string",
492
+ "maxLength": 256
493
+ },
494
+ "signature": {
495
+ "$ref": "base.json#/$defs/Text"
496
+ },
497
+ "creation_date": {
498
+ "anyOf": [
499
+ {
500
+ "$ref": "base.json#/$defs/Timestamp"
501
+ },
502
+ {
503
+ "type": "string",
504
+ "enum": [
505
+ ""
506
+ ]
507
+ }
508
+ ]
509
+ },
510
+ "modification_date": {
511
+ "anyOf": [
512
+ {
513
+ "$ref": "base.json#/$defs/Timestamp"
514
+ },
515
+ {
516
+ "type": "string",
517
+ "enum": [
518
+ ""
519
+ ]
520
+ }
521
+ ]
522
+ },
523
+ "path": {
524
+ "type": "string",
525
+ "maxLength": 40000
526
+ }
527
+ },
528
+ "required": [
529
+ "device_id",
530
+ "bundle_id",
531
+ "app_id",
532
+ "app_name",
533
+ "version",
534
+ "bundle_size",
535
+ "app_store_vendable",
536
+ "device_based_vpp",
537
+ "source",
538
+ "process",
539
+ "signature",
540
+ "creation_date",
541
+ "modification_date",
542
+ "path"
543
+ ],
544
+ "additionalProperties": false
545
+ }
546
+ },
547
+ "x-gateway": {
548
+ "version": 1,
549
+ "domain_version": "1.1.0",
550
+ "package": {
551
+ "id": "gateway-connector-kandji",
552
+ "version": "1.0.1"
553
+ },
554
+ "entities": {
555
+ "kandji_devices": {
556
+ "schema": {
557
+ "$ref": "#/$defs/Device"
558
+ },
559
+ "primary_key": [
560
+ "device_id"
561
+ ],
562
+ "unique": [],
563
+ "relationships": [
564
+ {
565
+ "fields": [
566
+ "blueprint_id"
567
+ ],
568
+ "target": "kandji_blueprints",
569
+ "on_delete": "restrict"
570
+ },
571
+ {
572
+ "fields": [
573
+ "/user/id"
574
+ ],
575
+ "target": "kandji_users",
576
+ "on_delete": "restrict"
577
+ }
578
+ ]
579
+ },
580
+ "kandji_blueprints": {
581
+ "schema": {
582
+ "$ref": "#/$defs/Blueprint"
583
+ },
584
+ "primary_key": [
585
+ "id"
586
+ ],
587
+ "unique": [
588
+ [
589
+ "name"
590
+ ]
591
+ ],
592
+ "relationships": []
593
+ },
594
+ "kandji_library_items": {
595
+ "schema": {
596
+ "$ref": "#/$defs/LibraryItem"
597
+ },
598
+ "primary_key": [
599
+ "id"
600
+ ],
601
+ "unique": [],
602
+ "relationships": []
603
+ },
604
+ "kandji_blueprint_items": {
605
+ "schema": {
606
+ "$ref": "#/$defs/BlueprintItem"
607
+ },
608
+ "primary_key": [
609
+ "blueprint_id",
610
+ "library_item_id"
611
+ ],
612
+ "unique": [],
613
+ "relationships": [
614
+ {
615
+ "fields": [
616
+ "blueprint_id"
617
+ ],
618
+ "target": "kandji_blueprints",
619
+ "on_delete": "restrict"
620
+ },
621
+ {
622
+ "fields": [
623
+ "library_item_id"
624
+ ],
625
+ "target": "kandji_library_items",
626
+ "on_delete": "restrict"
627
+ }
628
+ ]
629
+ },
630
+ "kandji_users": {
631
+ "schema": {
632
+ "$ref": "#/$defs/User"
633
+ },
634
+ "primary_key": [
635
+ "id"
636
+ ],
637
+ "unique": [],
638
+ "relationships": []
639
+ },
640
+ "kandji_tags": {
641
+ "schema": {
642
+ "$ref": "#/$defs/Tag"
643
+ },
644
+ "primary_key": [
645
+ "id"
646
+ ],
647
+ "unique": [],
648
+ "relationships": []
649
+ },
650
+ "kandji_device_tags": {
651
+ "schema": {
652
+ "$ref": "#/$defs/DeviceTag"
653
+ },
654
+ "primary_key": [
655
+ "device_id",
656
+ "tag_id"
657
+ ],
658
+ "unique": [],
659
+ "relationships": [
660
+ {
661
+ "fields": [
662
+ "device_id"
663
+ ],
664
+ "target": "kandji_devices",
665
+ "on_delete": "restrict"
666
+ },
667
+ {
668
+ "fields": [
669
+ "tag_id"
670
+ ],
671
+ "target": "kandji_tags",
672
+ "on_delete": "restrict"
673
+ }
674
+ ]
675
+ },
676
+ "kandji_device_apps": {
677
+ "schema": {
678
+ "$ref": "#/$defs/DeviceApp"
679
+ },
680
+ "primary_key": [
681
+ "device_id",
682
+ "bundle_id"
683
+ ],
684
+ "unique": [],
685
+ "relationships": [
686
+ {
687
+ "fields": [
688
+ "device_id"
689
+ ],
690
+ "target": "kandji_devices",
691
+ "on_delete": "restrict"
692
+ }
693
+ ]
694
+ }
695
+ },
696
+ "tools": {
697
+ "list_devices": {
698
+ "input": {
699
+ "type": "object",
700
+ "properties": {
701
+ "blueprint_id": {
702
+ "$ref": "base.json#/$defs/Id"
703
+ }
704
+ },
705
+ "required": [],
706
+ "additionalProperties": false
707
+ },
708
+ "output": {
709
+ "type": "array",
710
+ "items": {
711
+ "$ref": "#/$defs/Device"
712
+ }
713
+ },
714
+ "description": "Devices in the tenant, optionally filtered to one blueprint."
715
+ },
716
+ "get_device": {
717
+ "input": {
718
+ "type": "object",
719
+ "properties": {
720
+ "device_id": {
721
+ "$ref": "base.json#/$defs/Id"
722
+ }
723
+ },
724
+ "required": [
725
+ "device_id"
726
+ ],
727
+ "additionalProperties": false
728
+ },
729
+ "output": {
730
+ "anyOf": [
731
+ {
732
+ "$ref": "#/$defs/Device"
733
+ },
734
+ {
735
+ "type": "null"
736
+ }
737
+ ]
738
+ },
739
+ "description": "One device by device_id, or null when absent."
740
+ },
741
+ "assign_blueprint": {
742
+ "input": {
743
+ "type": "object",
744
+ "properties": {
745
+ "device_id": {
746
+ "$ref": "base.json#/$defs/Id"
747
+ },
748
+ "blueprint_id": {
749
+ "$ref": "base.json#/$defs/Id"
750
+ }
751
+ },
752
+ "required": [
753
+ "device_id",
754
+ "blueprint_id"
755
+ ],
756
+ "additionalProperties": false
757
+ },
758
+ "output": {
759
+ "$ref": "#/$defs/Device"
760
+ },
761
+ "description": "Assign an existing blueprint to a device and return the device."
762
+ }
763
+ }
764
+ }
765
+ }