losant_rest 1.11.1 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/docs/_schemas.md +34959 -19022
- data/docs/application.md +46 -5
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationDashboard.md +133 -0
- data/docs/applicationDashboards.md +93 -0
- data/docs/applicationKeys.md +3 -2
- data/docs/applications.md +1 -1
- data/docs/dataTable.md +1 -1
- data/docs/dataTableRows.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/device.md +43 -0
- data/docs/devices.md +41 -2
- data/docs/edgeDeployment.md +49 -0
- data/docs/events.md +3 -3
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- data/docs/experienceEndpoint.md +1 -0
- data/docs/experienceGroup.md +2 -0
- data/docs/experienceSlugs.md +1 -1
- data/docs/experienceVersion.md +3 -3
- data/docs/experienceVersions.md +2 -2
- data/docs/experienceView.md +4 -4
- data/docs/experienceViews.md +2 -2
- data/docs/file.md +5 -5
- data/docs/files.md +2 -2
- data/docs/flow.md +41 -0
- data/docs/flowVersions.md +44 -0
- data/docs/flows.md +1 -0
- data/docs/instance.md +166 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMember.md +133 -0
- data/docs/instanceMembers.md +91 -0
- data/docs/instanceOrg.md +135 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMember.md +139 -0
- data/docs/instanceOrgMembers.md +96 -0
- data/docs/instanceOrgs.md +91 -0
- data/docs/instances.md +50 -0
- data/docs/integration.md +1 -0
- data/docs/me.md +1 -1
- data/docs/org.md +1 -1
- data/docs/userApiToken.md +125 -0
- data/docs/userApiTokens.md +87 -0
- data/docs/webhook.md +1 -0
- data/lib/losant_rest.rb +18 -1
- data/lib/losant_rest/application.rb +53 -6
- data/lib/losant_rest/application_api_token.rb +1 -1
- data/lib/losant_rest/application_api_tokens.rb +2 -2
- data/lib/losant_rest/application_certificate.rb +1 -1
- data/lib/losant_rest/application_certificate_authorities.rb +1 -1
- data/lib/losant_rest/application_certificate_authority.rb +1 -1
- data/lib/losant_rest/application_certificates.rb +1 -1
- data/lib/losant_rest/application_dashboard.rb +176 -0
- data/lib/losant_rest/application_dashboards.rb +138 -0
- data/lib/losant_rest/application_key.rb +1 -1
- data/lib/losant_rest/application_keys.rb +4 -1
- data/lib/losant_rest/application_template.rb +1 -1
- data/lib/losant_rest/application_templates.rb +1 -1
- data/lib/losant_rest/applications.rb +2 -2
- data/lib/losant_rest/audit_log.rb +1 -1
- data/lib/losant_rest/audit_logs.rb +1 -1
- data/lib/losant_rest/auth.rb +1 -1
- data/lib/losant_rest/client.rb +71 -3
- data/lib/losant_rest/dashboard.rb +1 -1
- data/lib/losant_rest/dashboards.rb +1 -1
- data/lib/losant_rest/data.rb +1 -1
- data/lib/losant_rest/data_table.rb +2 -2
- data/lib/losant_rest/data_table_row.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +2 -2
- data/lib/losant_rest/data_tables.rb +2 -2
- data/lib/losant_rest/device.rb +51 -1
- data/lib/losant_rest/device_recipe.rb +1 -1
- data/lib/losant_rest/device_recipes.rb +1 -1
- data/lib/losant_rest/devices.rb +49 -3
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/edge_deployments.rb +1 -1
- data/lib/losant_rest/error.rb +1 -1
- data/lib/losant_rest/event.rb +1 -1
- data/lib/losant_rest/events.rb +4 -4
- data/lib/losant_rest/experience.rb +2 -2
- data/lib/losant_rest/experience_domain.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +2 -2
- data/lib/losant_rest/experience_endpoint.rb +3 -1
- data/lib/losant_rest/experience_endpoints.rb +1 -1
- data/lib/losant_rest/experience_group.rb +5 -1
- data/lib/losant_rest/experience_groups.rb +1 -1
- data/lib/losant_rest/experience_slug.rb +1 -1
- data/lib/losant_rest/experience_slugs.rb +2 -2
- data/lib/losant_rest/experience_user.rb +1 -1
- data/lib/losant_rest/experience_users.rb +1 -1
- data/lib/losant_rest/experience_version.rb +4 -4
- data/lib/losant_rest/experience_versions.rb +3 -3
- data/lib/losant_rest/experience_view.rb +5 -5
- data/lib/losant_rest/experience_views.rb +3 -3
- data/lib/losant_rest/file.rb +5 -5
- data/lib/losant_rest/files.rb +3 -3
- data/lib/losant_rest/flow.rb +47 -1
- data/lib/losant_rest/flow_version.rb +1 -1
- data/lib/losant_rest/flow_versions.rb +51 -1
- data/lib/losant_rest/flows.rb +3 -1
- data/lib/losant_rest/instance.rb +226 -0
- data/lib/losant_rest/instance_api_token.rb +176 -0
- data/lib/losant_rest/instance_api_tokens.rb +136 -0
- data/lib/losant_rest/instance_member.rb +176 -0
- data/lib/losant_rest/instance_members.rb +134 -0
- data/lib/losant_rest/instance_org.rb +180 -0
- data/lib/losant_rest/instance_org_invite.rb +182 -0
- data/lib/losant_rest/instance_org_invites.rb +138 -0
- data/lib/losant_rest/instance_org_member.rb +182 -0
- data/lib/losant_rest/instance_org_members.rb +138 -0
- data/lib/losant_rest/instance_orgs.rb +139 -0
- data/lib/losant_rest/instances.rb +88 -0
- data/lib/losant_rest/integration.rb +3 -1
- data/lib/losant_rest/integrations.rb +1 -1
- data/lib/losant_rest/me.rb +2 -2
- data/lib/losant_rest/notebook.rb +1 -1
- data/lib/losant_rest/notebooks.rb +1 -1
- data/lib/losant_rest/org.rb +2 -2
- data/lib/losant_rest/org_invites.rb +1 -1
- data/lib/losant_rest/orgs.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +170 -0
- data/lib/losant_rest/user_api_tokens.rb +132 -0
- data/lib/losant_rest/utils.rb +1 -1
- data/lib/losant_rest/version.rb +2 -2
- data/lib/losant_rest/webhook.rb +3 -1
- data/lib/losant_rest/webhooks.rb +1 -1
- data/schemas/advancedApplicationKeyQuery.json +1082 -0
- data/schemas/advancedDeviceQuery.json +309 -0
- data/schemas/advancedFlowQuery.json +218 -0
- data/schemas/advancedFlowVersionQuery.json +218 -0
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +431 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/applicationApiTokenPost.json +8 -0
- data/schemas/applicationDashboardPost.json +5687 -0
- data/schemas/applicationGlobalPatch.json +33 -0
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +66 -17
- data/schemas/dashboardPatch.json +66 -17
- data/schemas/dashboardPost.json +66 -17
- data/schemas/dashboardSendReport.json +4 -0
- data/schemas/dashboards.json +66 -17
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicesDeletePost.json +309 -0
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/devicesExportPost.json +309 -0
- data/schemas/devicesPatch.json +309 -0
- data/schemas/devicesRemoveDataPost.json +309 -0
- data/schemas/edgeDeployment.json +16 -0
- data/schemas/edgeDeployments.json +16 -0
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/experienceLinkedResources.json +45 -0
- data/schemas/filePost.json +8 -2
- data/schemas/files.json +3 -0
- data/schemas/flow.json +15 -0
- data/schemas/flowPatch.json +15 -0
- data/schemas/flowPost.json +15 -0
- data/schemas/flowStorageMetadata.json +13 -0
- data/schemas/flowVersion.json +30 -0
- data/schemas/flowVersionPost.json +15 -0
- data/schemas/flowVersions.json +30 -0
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/flows.json +15 -0
- data/schemas/flowsImportPost.json +30 -0
- data/schemas/flowsImportResult.json +45 -0
- data/schemas/githubLogin.json +72 -1
- data/schemas/historicalSummaries.json +43 -0
- data/schemas/historicalSummary.json +490 -0
- data/schemas/instance.json +192 -0
- data/schemas/instanceMember.json +41 -0
- data/schemas/instanceMemberPatch.json +17 -0
- data/schemas/instanceMemberPost.json +37 -0
- data/schemas/instanceMembers.json +77 -0
- data/schemas/instanceOrg.json +133 -0
- data/schemas/instanceOrgMember.json +45 -0
- data/schemas/instanceOrgMemberPatch.json +69 -0
- data/schemas/instanceOrgMemberPost.json +161 -0
- data/schemas/instanceOrgMembers.json +42 -0
- data/schemas/instanceOrgPatch.json +122 -0
- data/schemas/instanceOrgPost.json +291 -0
- data/schemas/instanceOrgs.json +178 -0
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +41 -0
- data/schemas/instances.json +43 -0
- data/schemas/me.json +30 -14
- data/schemas/multiDeviceCommand.json +309 -0
- data/schemas/notebook.json +45 -0
- data/schemas/notebookPatch.json +30 -0
- data/schemas/notebookPost.json +30 -0
- data/schemas/notebooks.json +45 -0
- data/schemas/org.json +30 -14
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgPatch.json +0 -9
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +30 -14
- data/schemas/payloadStats.json +126 -0
- data/schemas/userCredentials.json +72 -1
- data/schemas/userPost.json +72 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +68 -3
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"instanceId": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"orgId": {
|
10
|
+
"type": "string",
|
11
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
12
|
+
},
|
13
|
+
"userId": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"email": {
|
18
|
+
"type": "string",
|
19
|
+
"format": "email",
|
20
|
+
"maxLength": 1024
|
21
|
+
},
|
22
|
+
"firstName": {
|
23
|
+
"type": "string",
|
24
|
+
"minLength": 1,
|
25
|
+
"maxLength": 1024
|
26
|
+
},
|
27
|
+
"lastName": {
|
28
|
+
"type": "string",
|
29
|
+
"minLength": 1,
|
30
|
+
"maxLength": 1024
|
31
|
+
},
|
32
|
+
"role": {
|
33
|
+
"type": "string",
|
34
|
+
"enum": [
|
35
|
+
"admin",
|
36
|
+
"view"
|
37
|
+
]
|
38
|
+
},
|
39
|
+
"avatarUrl": {
|
40
|
+
"type": "string",
|
41
|
+
"format": "url"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"additionalProperties": false
|
45
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"role": {
|
6
|
+
"type": "string",
|
7
|
+
"enum": [
|
8
|
+
"admin",
|
9
|
+
"edit",
|
10
|
+
"collaborate",
|
11
|
+
"view",
|
12
|
+
"none"
|
13
|
+
]
|
14
|
+
},
|
15
|
+
"applicationRoles": {
|
16
|
+
"type": "array",
|
17
|
+
"items": {
|
18
|
+
"type": "object",
|
19
|
+
"properties": {
|
20
|
+
"resourceId": {
|
21
|
+
"type": "string",
|
22
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
23
|
+
},
|
24
|
+
"role": {
|
25
|
+
"type": "string",
|
26
|
+
"enum": [
|
27
|
+
"collaborate",
|
28
|
+
"view",
|
29
|
+
"none"
|
30
|
+
]
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"required": [
|
34
|
+
"resourceId",
|
35
|
+
"role"
|
36
|
+
],
|
37
|
+
"additionalProperties": false
|
38
|
+
},
|
39
|
+
"maxItems": 1000
|
40
|
+
},
|
41
|
+
"dashboardRoles": {
|
42
|
+
"type": "array",
|
43
|
+
"items": {
|
44
|
+
"type": "object",
|
45
|
+
"properties": {
|
46
|
+
"resourceId": {
|
47
|
+
"type": "string",
|
48
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
49
|
+
},
|
50
|
+
"role": {
|
51
|
+
"type": "string",
|
52
|
+
"enum": [
|
53
|
+
"collaborate",
|
54
|
+
"view",
|
55
|
+
"none"
|
56
|
+
]
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"required": [
|
60
|
+
"resourceId",
|
61
|
+
"role"
|
62
|
+
],
|
63
|
+
"additionalProperties": false
|
64
|
+
},
|
65
|
+
"maxItems": 1000
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"additionalProperties": false
|
69
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"oneOf": [
|
4
|
+
{
|
5
|
+
"type": "object",
|
6
|
+
"properties": {
|
7
|
+
"userId": {
|
8
|
+
"type": "string",
|
9
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
10
|
+
},
|
11
|
+
"role": {
|
12
|
+
"type": "string",
|
13
|
+
"enum": [
|
14
|
+
"admin",
|
15
|
+
"edit",
|
16
|
+
"collaborate",
|
17
|
+
"view",
|
18
|
+
"none"
|
19
|
+
]
|
20
|
+
},
|
21
|
+
"applicationRoles": {
|
22
|
+
"type": "array",
|
23
|
+
"items": {
|
24
|
+
"type": "object",
|
25
|
+
"properties": {
|
26
|
+
"resourceId": {
|
27
|
+
"type": "string",
|
28
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
29
|
+
},
|
30
|
+
"role": {
|
31
|
+
"type": "string",
|
32
|
+
"enum": [
|
33
|
+
"collaborate",
|
34
|
+
"view",
|
35
|
+
"none"
|
36
|
+
]
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"required": [
|
40
|
+
"resourceId",
|
41
|
+
"role"
|
42
|
+
],
|
43
|
+
"additionalProperties": false
|
44
|
+
},
|
45
|
+
"maxItems": 1000
|
46
|
+
},
|
47
|
+
"dashboardRoles": {
|
48
|
+
"type": "array",
|
49
|
+
"items": {
|
50
|
+
"type": "object",
|
51
|
+
"properties": {
|
52
|
+
"resourceId": {
|
53
|
+
"type": "string",
|
54
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
55
|
+
},
|
56
|
+
"role": {
|
57
|
+
"type": "string",
|
58
|
+
"enum": [
|
59
|
+
"collaborate",
|
60
|
+
"view",
|
61
|
+
"none"
|
62
|
+
]
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"required": [
|
66
|
+
"resourceId",
|
67
|
+
"role"
|
68
|
+
],
|
69
|
+
"additionalProperties": false
|
70
|
+
},
|
71
|
+
"maxItems": 1000
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"additionalProperties": false,
|
75
|
+
"required": [
|
76
|
+
"userId",
|
77
|
+
"role"
|
78
|
+
]
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"type": "object",
|
82
|
+
"properties": {
|
83
|
+
"email": {
|
84
|
+
"type": "string",
|
85
|
+
"format": "email",
|
86
|
+
"maxLength": 1024
|
87
|
+
},
|
88
|
+
"role": {
|
89
|
+
"type": "string",
|
90
|
+
"enum": [
|
91
|
+
"admin",
|
92
|
+
"edit",
|
93
|
+
"collaborate",
|
94
|
+
"view",
|
95
|
+
"none"
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"applicationRoles": {
|
99
|
+
"type": "array",
|
100
|
+
"items": {
|
101
|
+
"type": "object",
|
102
|
+
"properties": {
|
103
|
+
"resourceId": {
|
104
|
+
"type": "string",
|
105
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
106
|
+
},
|
107
|
+
"role": {
|
108
|
+
"type": "string",
|
109
|
+
"enum": [
|
110
|
+
"collaborate",
|
111
|
+
"view",
|
112
|
+
"none"
|
113
|
+
]
|
114
|
+
}
|
115
|
+
},
|
116
|
+
"required": [
|
117
|
+
"resourceId",
|
118
|
+
"role"
|
119
|
+
],
|
120
|
+
"additionalProperties": false
|
121
|
+
},
|
122
|
+
"maxItems": 1000
|
123
|
+
},
|
124
|
+
"dashboardRoles": {
|
125
|
+
"type": "array",
|
126
|
+
"items": {
|
127
|
+
"type": "object",
|
128
|
+
"properties": {
|
129
|
+
"resourceId": {
|
130
|
+
"type": "string",
|
131
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
132
|
+
},
|
133
|
+
"role": {
|
134
|
+
"type": "string",
|
135
|
+
"enum": [
|
136
|
+
"collaborate",
|
137
|
+
"view",
|
138
|
+
"none"
|
139
|
+
]
|
140
|
+
}
|
141
|
+
},
|
142
|
+
"required": [
|
143
|
+
"resourceId",
|
144
|
+
"role"
|
145
|
+
],
|
146
|
+
"additionalProperties": false
|
147
|
+
},
|
148
|
+
"maxItems": 1000
|
149
|
+
},
|
150
|
+
"disallowTransfer": {
|
151
|
+
"type": "boolean"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"additionalProperties": false,
|
155
|
+
"required": [
|
156
|
+
"email",
|
157
|
+
"role"
|
158
|
+
]
|
159
|
+
}
|
160
|
+
]
|
161
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"$ref": "#/definitions/instanceOrgMembers"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"instanceId": {
|
12
|
+
"type": "string",
|
13
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
14
|
+
},
|
15
|
+
"orgId": {
|
16
|
+
"type": "string",
|
17
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
18
|
+
},
|
19
|
+
"count": {
|
20
|
+
"type": "integer"
|
21
|
+
},
|
22
|
+
"filter": {
|
23
|
+
"type": "string"
|
24
|
+
},
|
25
|
+
"filterField": {
|
26
|
+
"type": "string"
|
27
|
+
},
|
28
|
+
"sortField": {
|
29
|
+
"type": "string"
|
30
|
+
},
|
31
|
+
"sortDirection": {
|
32
|
+
"type": "string",
|
33
|
+
"enum": [
|
34
|
+
"asc",
|
35
|
+
"desc",
|
36
|
+
"ASC",
|
37
|
+
"DESC",
|
38
|
+
""
|
39
|
+
]
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"name": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 1,
|
8
|
+
"maxLength": 255
|
9
|
+
},
|
10
|
+
"description": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767
|
13
|
+
},
|
14
|
+
"iconColor": {
|
15
|
+
"type": "string",
|
16
|
+
"maxLength": 64
|
17
|
+
},
|
18
|
+
"limits": {
|
19
|
+
"type": "object",
|
20
|
+
"properties": {
|
21
|
+
"apitoken": {
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
"application": {
|
25
|
+
"type": "number"
|
26
|
+
},
|
27
|
+
"applicationkey": {
|
28
|
+
"type": "number"
|
29
|
+
},
|
30
|
+
"dashboard": {
|
31
|
+
"type": "number"
|
32
|
+
},
|
33
|
+
"datatable": {
|
34
|
+
"type": "number"
|
35
|
+
},
|
36
|
+
"device": {
|
37
|
+
"type": "number"
|
38
|
+
},
|
39
|
+
"devicerecipe": {
|
40
|
+
"type": "number"
|
41
|
+
},
|
42
|
+
"experiencedomain": {
|
43
|
+
"type": "number"
|
44
|
+
},
|
45
|
+
"experienceendpoint": {
|
46
|
+
"type": "number"
|
47
|
+
},
|
48
|
+
"experiencegroup": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"experienceslug": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"experienceuser": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"experienceversion": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"experienceview": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"file": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"flow": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"integration": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"notebook": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"webhook": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"dataTTL": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"member": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"payload": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"notebookMinutesPerRun": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"notebookMinutesPerMonth": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"notebookInParallel": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"whitelistedEmailDomains": {
|
99
|
+
"type": "array",
|
100
|
+
"items": {
|
101
|
+
"type": "string",
|
102
|
+
"maxLength": 45,
|
103
|
+
"minLength": 3
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"auditLogEnabled": {
|
107
|
+
"type": "boolean"
|
108
|
+
},
|
109
|
+
"disabledAt": {
|
110
|
+
"oneOf": [
|
111
|
+
{
|
112
|
+
"type": "string",
|
113
|
+
"format": "date-time"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"type": "boolean"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
}
|
120
|
+
},
|
121
|
+
"additionalProperties": false
|
122
|
+
}
|
@@ -0,0 +1,291 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"name": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 1,
|
8
|
+
"maxLength": 255
|
9
|
+
},
|
10
|
+
"description": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767
|
13
|
+
},
|
14
|
+
"iconColor": {
|
15
|
+
"type": "string",
|
16
|
+
"maxLength": 64
|
17
|
+
},
|
18
|
+
"limits": {
|
19
|
+
"type": "object",
|
20
|
+
"properties": {
|
21
|
+
"apitoken": {
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
"application": {
|
25
|
+
"type": "number"
|
26
|
+
},
|
27
|
+
"applicationkey": {
|
28
|
+
"type": "number"
|
29
|
+
},
|
30
|
+
"dashboard": {
|
31
|
+
"type": "number"
|
32
|
+
},
|
33
|
+
"datatable": {
|
34
|
+
"type": "number"
|
35
|
+
},
|
36
|
+
"device": {
|
37
|
+
"type": "number"
|
38
|
+
},
|
39
|
+
"devicerecipe": {
|
40
|
+
"type": "number"
|
41
|
+
},
|
42
|
+
"experiencedomain": {
|
43
|
+
"type": "number"
|
44
|
+
},
|
45
|
+
"experienceendpoint": {
|
46
|
+
"type": "number"
|
47
|
+
},
|
48
|
+
"experiencegroup": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"experienceslug": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"experienceuser": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"experienceversion": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"experienceview": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"file": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"flow": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"integration": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"notebook": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"webhook": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"dataTTL": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"member": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"payload": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"notebookMinutesPerRun": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"notebookMinutesPerMonth": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"notebookInParallel": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"members": {
|
99
|
+
"type": "array",
|
100
|
+
"max": "10",
|
101
|
+
"items": {
|
102
|
+
"title": "Instance Org Member Post",
|
103
|
+
"description": "Schema for an Instance Organization member creation request",
|
104
|
+
"oneOf": [
|
105
|
+
{
|
106
|
+
"type": "object",
|
107
|
+
"properties": {
|
108
|
+
"userId": {
|
109
|
+
"type": "string",
|
110
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
111
|
+
},
|
112
|
+
"role": {
|
113
|
+
"type": "string",
|
114
|
+
"enum": [
|
115
|
+
"admin",
|
116
|
+
"edit",
|
117
|
+
"collaborate",
|
118
|
+
"view",
|
119
|
+
"none"
|
120
|
+
]
|
121
|
+
},
|
122
|
+
"applicationRoles": {
|
123
|
+
"type": "array",
|
124
|
+
"items": {
|
125
|
+
"type": "object",
|
126
|
+
"properties": {
|
127
|
+
"resourceId": {
|
128
|
+
"type": "string",
|
129
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
130
|
+
},
|
131
|
+
"role": {
|
132
|
+
"type": "string",
|
133
|
+
"enum": [
|
134
|
+
"collaborate",
|
135
|
+
"view",
|
136
|
+
"none"
|
137
|
+
]
|
138
|
+
}
|
139
|
+
},
|
140
|
+
"required": [
|
141
|
+
"resourceId",
|
142
|
+
"role"
|
143
|
+
],
|
144
|
+
"additionalProperties": false
|
145
|
+
},
|
146
|
+
"maxItems": 1000
|
147
|
+
},
|
148
|
+
"dashboardRoles": {
|
149
|
+
"type": "array",
|
150
|
+
"items": {
|
151
|
+
"type": "object",
|
152
|
+
"properties": {
|
153
|
+
"resourceId": {
|
154
|
+
"type": "string",
|
155
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
156
|
+
},
|
157
|
+
"role": {
|
158
|
+
"type": "string",
|
159
|
+
"enum": [
|
160
|
+
"collaborate",
|
161
|
+
"view",
|
162
|
+
"none"
|
163
|
+
]
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"required": [
|
167
|
+
"resourceId",
|
168
|
+
"role"
|
169
|
+
],
|
170
|
+
"additionalProperties": false
|
171
|
+
},
|
172
|
+
"maxItems": 1000
|
173
|
+
}
|
174
|
+
},
|
175
|
+
"additionalProperties": false,
|
176
|
+
"required": [
|
177
|
+
"userId",
|
178
|
+
"role"
|
179
|
+
]
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"type": "object",
|
183
|
+
"properties": {
|
184
|
+
"email": {
|
185
|
+
"type": "string",
|
186
|
+
"format": "email",
|
187
|
+
"maxLength": 1024
|
188
|
+
},
|
189
|
+
"role": {
|
190
|
+
"type": "string",
|
191
|
+
"enum": [
|
192
|
+
"admin",
|
193
|
+
"edit",
|
194
|
+
"collaborate",
|
195
|
+
"view",
|
196
|
+
"none"
|
197
|
+
]
|
198
|
+
},
|
199
|
+
"applicationRoles": {
|
200
|
+
"type": "array",
|
201
|
+
"items": {
|
202
|
+
"type": "object",
|
203
|
+
"properties": {
|
204
|
+
"resourceId": {
|
205
|
+
"type": "string",
|
206
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
207
|
+
},
|
208
|
+
"role": {
|
209
|
+
"type": "string",
|
210
|
+
"enum": [
|
211
|
+
"collaborate",
|
212
|
+
"view",
|
213
|
+
"none"
|
214
|
+
]
|
215
|
+
}
|
216
|
+
},
|
217
|
+
"required": [
|
218
|
+
"resourceId",
|
219
|
+
"role"
|
220
|
+
],
|
221
|
+
"additionalProperties": false
|
222
|
+
},
|
223
|
+
"maxItems": 1000
|
224
|
+
},
|
225
|
+
"dashboardRoles": {
|
226
|
+
"type": "array",
|
227
|
+
"items": {
|
228
|
+
"type": "object",
|
229
|
+
"properties": {
|
230
|
+
"resourceId": {
|
231
|
+
"type": "string",
|
232
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
233
|
+
},
|
234
|
+
"role": {
|
235
|
+
"type": "string",
|
236
|
+
"enum": [
|
237
|
+
"collaborate",
|
238
|
+
"view",
|
239
|
+
"none"
|
240
|
+
]
|
241
|
+
}
|
242
|
+
},
|
243
|
+
"required": [
|
244
|
+
"resourceId",
|
245
|
+
"role"
|
246
|
+
],
|
247
|
+
"additionalProperties": false
|
248
|
+
},
|
249
|
+
"maxItems": 1000
|
250
|
+
},
|
251
|
+
"disallowTransfer": {
|
252
|
+
"type": "boolean"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
"additionalProperties": false,
|
256
|
+
"required": [
|
257
|
+
"email",
|
258
|
+
"role"
|
259
|
+
]
|
260
|
+
}
|
261
|
+
]
|
262
|
+
}
|
263
|
+
},
|
264
|
+
"whitelistedEmailDomains": {
|
265
|
+
"type": "array",
|
266
|
+
"items": {
|
267
|
+
"type": "string",
|
268
|
+
"maxLength": 45,
|
269
|
+
"minLength": 3
|
270
|
+
}
|
271
|
+
},
|
272
|
+
"auditLogEnabled": {
|
273
|
+
"type": "boolean"
|
274
|
+
},
|
275
|
+
"disabledAt": {
|
276
|
+
"oneOf": [
|
277
|
+
{
|
278
|
+
"type": "string",
|
279
|
+
"format": "date-time"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"type": "boolean"
|
283
|
+
}
|
284
|
+
]
|
285
|
+
}
|
286
|
+
},
|
287
|
+
"additionalProperties": false,
|
288
|
+
"required": [
|
289
|
+
"name"
|
290
|
+
]
|
291
|
+
}
|