losant_rest 1.13.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +19437 -10622
- data/docs/application.md +6 -6
- data/docs/applicationApiTokens.md +1 -1
- 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/embeddedDeployment.md +49 -0
- data/docs/embeddedDeployments.md +215 -0
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- 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 +3 -3
- data/docs/flowVersions.md +44 -0
- data/docs/flows.md +2 -2
- data/docs/instance.md +40 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMembers.md +1 -1
- data/docs/instanceOrg.md +2 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMembers.md +3 -3
- data/docs/instanceOrgs.md +1 -1
- 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/lib/losant_rest/application.rb +5 -5
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/client.rb +38 -2
- data/lib/losant_rest/data_table.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/device.rb +50 -0
- data/lib/losant_rest/devices.rb +48 -2
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployments.rb +280 -0
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_group.rb +4 -0
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_version.rb +3 -3
- data/lib/losant_rest/experience_versions.rb +2 -2
- data/lib/losant_rest/experience_view.rb +4 -4
- data/lib/losant_rest/experience_views.rb +2 -2
- data/lib/losant_rest/file.rb +4 -4
- data/lib/losant_rest/files.rb +2 -2
- data/lib/losant_rest/flow.rb +3 -3
- data/lib/losant_rest/flow_versions.rb +50 -0
- data/lib/losant_rest/flows.rb +2 -2
- data/lib/losant_rest/instance.rb +47 -1
- 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 +1 -1
- data/lib/losant_rest/instance_members.rb +2 -2
- data/lib/losant_rest/instance_org.rb +5 -1
- 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 +1 -1
- data/lib/losant_rest/instance_org_members.rb +4 -4
- data/lib/losant_rest/instance_orgs.rb +3 -3
- data/lib/losant_rest/instances.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/version.rb +1 -1
- data/lib/losant_rest.rb +9 -0
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +439 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/application.json +32 -32
- data/schemas/applicationCreationByTemplateResult.json +32 -32
- data/schemas/applicationDashboardPost.json +28 -21
- data/schemas/applicationPatch.json +13 -13
- data/schemas/applicationPost.json +13 -13
- data/schemas/applicationTemplate.json +16 -16
- data/schemas/applicationTemplates.json +16 -16
- data/schemas/applications.json +32 -32
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/authedDevice.json +2 -1
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +28 -21
- data/schemas/dashboardPatch.json +28 -21
- data/schemas/dashboardPost.json +28 -21
- data/schemas/dashboardSendReport.json +9 -5
- data/schemas/dashboards.json +28 -21
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/device.json +2 -1
- data/schemas/deviceClassFilter.json +4 -2
- data/schemas/devicePatch.json +2 -1
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicePost.json +2 -1
- data/schemas/deviceRecipe.json +2 -1
- data/schemas/deviceRecipePatch.json +2 -1
- data/schemas/deviceRecipePost.json +2 -1
- data/schemas/deviceRecipes.json +2 -1
- data/schemas/devices.json +4 -2
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/devicesPatch.json +4 -2
- data/schemas/edgeDeployment.json +20 -0
- data/schemas/edgeDeployments.json +20 -0
- data/schemas/embeddedDeployment.json +179 -0
- data/schemas/embeddedDeploymentExport.json +44 -0
- data/schemas/embeddedDeploymentRelease.json +58 -0
- data/schemas/embeddedDeploymentRemove.json +25 -0
- data/schemas/embeddedDeploymentReplace.json +29 -0
- data/schemas/embeddedDeployments.json +212 -0
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/experienceEndpoint.json +6 -8
- data/schemas/experienceEndpointPatch.json +6 -8
- data/schemas/experienceEndpointPost.json +6 -8
- data/schemas/experienceEndpoints.json +6 -8
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/experienceLinkedResources.json +790 -85
- data/schemas/flow.json +252 -16
- data/schemas/flowPatch.json +251 -16
- data/schemas/flowPost.json +252 -16
- data/schemas/flowVersion.json +503 -33
- data/schemas/flowVersionPost.json +251 -16
- data/schemas/flowVersions.json +503 -33
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/flows.json +253 -16
- data/schemas/flowsImportPost.json +503 -32
- data/schemas/flowsImportResult.json +785 -79
- data/schemas/githubLogin.json +38 -1
- data/schemas/historicalSummary.json +150 -102
- data/schemas/instance.json +150 -77
- data/schemas/instanceMember.json +10 -0
- data/schemas/instanceMemberPost.json +18 -3
- data/schemas/instanceMembers.json +14 -0
- data/schemas/instanceOrg.json +87 -74
- data/schemas/instanceOrgMember.json +14 -0
- data/schemas/instanceOrgMembers.json +8 -0
- data/schemas/instanceOrgPatch.json +64 -26
- data/schemas/instanceOrgPost.json +229 -25
- data/schemas/instanceOrgs.json +91 -74
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +1 -0
- data/schemas/me.json +134 -105
- 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 +145 -110
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +145 -110
- data/schemas/payloadStats.json +28 -12
- data/schemas/userCredentials.json +38 -1
- data/schemas/userPost.json +38 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +39 -6
@@ -0,0 +1,132 @@
|
|
1
|
+
# The MIT License (MIT)
|
2
|
+
#
|
3
|
+
# Copyright (c) 2021 Losant IoT, Inc.
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
13
|
+
# copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
# SOFTWARE.
|
22
|
+
|
23
|
+
require "json"
|
24
|
+
|
25
|
+
module LosantRest
|
26
|
+
|
27
|
+
# Class containing all the actions for the User Api Tokens Resource
|
28
|
+
class UserApiTokens
|
29
|
+
|
30
|
+
def initialize(client)
|
31
|
+
@client = client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Returns the API tokens for a user
|
35
|
+
#
|
36
|
+
# Authentication:
|
37
|
+
# The client must be configured with a valid api
|
38
|
+
# access token to call this action. The token
|
39
|
+
# must include at least one of the following scopes:
|
40
|
+
# all.User, all.User.read, userApiTokens.*, or userApiTokens.get.
|
41
|
+
#
|
42
|
+
# Parameters:
|
43
|
+
# * {string} sortField - Field to sort the results by. Accepted values are: name, status, id, creationDate, lastUpdated, expirationDate
|
44
|
+
# * {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
|
45
|
+
# * {string} page - Which page of results to return
|
46
|
+
# * {string} perPage - How many items to return per page
|
47
|
+
# * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name, status
|
48
|
+
# * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
|
49
|
+
# * {string} losantdomain - Domain scope of request (rarely needed)
|
50
|
+
# * {boolean} _actions - Return resource actions in response
|
51
|
+
# * {boolean} _links - Return resource link in response
|
52
|
+
# * {boolean} _embedded - Return embedded resources in response
|
53
|
+
#
|
54
|
+
# Responses:
|
55
|
+
# * 200 - Collection of API tokens (https://api.losant.com/#/definitions/apiToken)
|
56
|
+
#
|
57
|
+
# Errors:
|
58
|
+
# * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
|
59
|
+
def get(params = {})
|
60
|
+
params = Utils.symbolize_hash_keys(params)
|
61
|
+
query_params = { _actions: false, _links: true, _embedded: true }
|
62
|
+
headers = {}
|
63
|
+
body = nil
|
64
|
+
|
65
|
+
|
66
|
+
query_params[:sortField] = params[:sortField] if params.has_key?(:sortField)
|
67
|
+
query_params[:sortDirection] = params[:sortDirection] if params.has_key?(:sortDirection)
|
68
|
+
query_params[:page] = params[:page] if params.has_key?(:page)
|
69
|
+
query_params[:perPage] = params[:perPage] if params.has_key?(:perPage)
|
70
|
+
query_params[:filterField] = params[:filterField] if params.has_key?(:filterField)
|
71
|
+
query_params[:filter] = params[:filter] if params.has_key?(:filter)
|
72
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
73
|
+
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
74
|
+
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
75
|
+
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|
76
|
+
|
77
|
+
path = "/me/tokens"
|
78
|
+
|
79
|
+
@client.request(
|
80
|
+
method: :get,
|
81
|
+
path: path,
|
82
|
+
query: query_params,
|
83
|
+
headers: headers,
|
84
|
+
body: body)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Create a new API token for an user
|
88
|
+
#
|
89
|
+
# Authentication:
|
90
|
+
# The client must be configured with a valid api
|
91
|
+
# access token to call this action. The token
|
92
|
+
# must include at least one of the following scopes:
|
93
|
+
# all.User, userApiTokens.*, or userApiTokens.post.
|
94
|
+
#
|
95
|
+
# Parameters:
|
96
|
+
# * {hash} apiToken - API token information (https://api.losant.com/#/definitions/apiTokenPost)
|
97
|
+
# * {string} losantdomain - Domain scope of request (rarely needed)
|
98
|
+
# * {boolean} _actions - Return resource actions in response
|
99
|
+
# * {boolean} _links - Return resource link in response
|
100
|
+
# * {boolean} _embedded - Return embedded resources in response
|
101
|
+
#
|
102
|
+
# Responses:
|
103
|
+
# * 201 - The successfully created API token (https://api.losant.com/#/definitions/apiToken)
|
104
|
+
#
|
105
|
+
# Errors:
|
106
|
+
# * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
|
107
|
+
def post(params = {})
|
108
|
+
params = Utils.symbolize_hash_keys(params)
|
109
|
+
query_params = { _actions: false, _links: true, _embedded: true }
|
110
|
+
headers = {}
|
111
|
+
body = nil
|
112
|
+
|
113
|
+
raise ArgumentError.new("apiToken is required") unless params.has_key?(:apiToken)
|
114
|
+
|
115
|
+
body = params[:apiToken] if params.has_key?(:apiToken)
|
116
|
+
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
117
|
+
query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
|
118
|
+
query_params[:_links] = params[:_links] if params.has_key?(:_links)
|
119
|
+
query_params[:_embedded] = params[:_embedded] if params.has_key?(:_embedded)
|
120
|
+
|
121
|
+
path = "/me/tokens"
|
122
|
+
|
123
|
+
@client.request(
|
124
|
+
method: :post,
|
125
|
+
path: path,
|
126
|
+
query: query_params,
|
127
|
+
headers: headers,
|
128
|
+
body: body)
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
end
|
data/lib/losant_rest/version.rb
CHANGED
data/lib/losant_rest.rb
CHANGED
@@ -51,7 +51,10 @@ require_relative "losant_rest/device"
|
|
51
51
|
require_relative "losant_rest/device_recipe"
|
52
52
|
require_relative "losant_rest/device_recipes"
|
53
53
|
require_relative "losant_rest/devices"
|
54
|
+
require_relative "losant_rest/edge_deployment"
|
54
55
|
require_relative "losant_rest/edge_deployments"
|
56
|
+
require_relative "losant_rest/embedded_deployment"
|
57
|
+
require_relative "losant_rest/embedded_deployments"
|
55
58
|
require_relative "losant_rest/event"
|
56
59
|
require_relative "losant_rest/events"
|
57
60
|
require_relative "losant_rest/experience"
|
@@ -76,9 +79,13 @@ require_relative "losant_rest/flow_version"
|
|
76
79
|
require_relative "losant_rest/flow_versions"
|
77
80
|
require_relative "losant_rest/flows"
|
78
81
|
require_relative "losant_rest/instance"
|
82
|
+
require_relative "losant_rest/instance_api_token"
|
83
|
+
require_relative "losant_rest/instance_api_tokens"
|
79
84
|
require_relative "losant_rest/instance_member"
|
80
85
|
require_relative "losant_rest/instance_members"
|
81
86
|
require_relative "losant_rest/instance_org"
|
87
|
+
require_relative "losant_rest/instance_org_invite"
|
88
|
+
require_relative "losant_rest/instance_org_invites"
|
82
89
|
require_relative "losant_rest/instance_org_member"
|
83
90
|
require_relative "losant_rest/instance_org_members"
|
84
91
|
require_relative "losant_rest/instance_orgs"
|
@@ -91,6 +98,8 @@ require_relative "losant_rest/notebooks"
|
|
91
98
|
require_relative "losant_rest/org"
|
92
99
|
require_relative "losant_rest/org_invites"
|
93
100
|
require_relative "losant_rest/orgs"
|
101
|
+
require_relative "losant_rest/user_api_token"
|
102
|
+
require_relative "losant_rest/user_api_tokens"
|
94
103
|
require_relative "losant_rest/webhook"
|
95
104
|
require_relative "losant_rest/webhooks"
|
96
105
|
require_relative "losant_rest/client"
|
data/schemas/apiToken.json
CHANGED
@@ -0,0 +1,439 @@
|
|
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
|
+
"expirationDate": {
|
15
|
+
"type": "string",
|
16
|
+
"format": "date-time"
|
17
|
+
},
|
18
|
+
"scope": {
|
19
|
+
"type": "array",
|
20
|
+
"uniqueItems": true,
|
21
|
+
"items": {
|
22
|
+
"oneOf": [
|
23
|
+
{
|
24
|
+
"oneOf": [
|
25
|
+
{
|
26
|
+
"type": "string",
|
27
|
+
"enum": [
|
28
|
+
"all.Application",
|
29
|
+
"all.Application.read",
|
30
|
+
"all.Application.cli",
|
31
|
+
"all.Device",
|
32
|
+
"all.Device.read",
|
33
|
+
"application.*",
|
34
|
+
"applicationApiToken.*",
|
35
|
+
"applicationApiTokens.*",
|
36
|
+
"applicationCertificate.*",
|
37
|
+
"applicationCertificates.*",
|
38
|
+
"applicationCertificateAuthority.*",
|
39
|
+
"applicationCertificateAuthorities.*",
|
40
|
+
"applicationDashboards.*",
|
41
|
+
"applicationDashboard.*",
|
42
|
+
"applicationKey.*",
|
43
|
+
"applicationKeys.*",
|
44
|
+
"data.*",
|
45
|
+
"dataTable.*",
|
46
|
+
"dataTables.*",
|
47
|
+
"dataTableRow.*",
|
48
|
+
"dataTableRows.*",
|
49
|
+
"device.*",
|
50
|
+
"deviceRecipe.*",
|
51
|
+
"deviceRecipes.*",
|
52
|
+
"devices.*",
|
53
|
+
"edgeDeployment.*",
|
54
|
+
"edgeDeployments.*",
|
55
|
+
"embeddedDeployment.*",
|
56
|
+
"embeddedDeployments.*",
|
57
|
+
"event.*",
|
58
|
+
"events.*",
|
59
|
+
"experience.*",
|
60
|
+
"experienceDomain.*",
|
61
|
+
"experienceDomains.*",
|
62
|
+
"experienceEndpoint.*",
|
63
|
+
"experienceEndpoints.*",
|
64
|
+
"experienceGroup.*",
|
65
|
+
"experienceGroups.*",
|
66
|
+
"experienceSlug.*",
|
67
|
+
"experienceSlugs.*",
|
68
|
+
"experienceUser.*",
|
69
|
+
"experienceUsers.*",
|
70
|
+
"experienceVersion.*",
|
71
|
+
"experienceVersions.*",
|
72
|
+
"experienceView.*",
|
73
|
+
"experienceViews.*",
|
74
|
+
"integration.*",
|
75
|
+
"integrations.*",
|
76
|
+
"file.*",
|
77
|
+
"files.*",
|
78
|
+
"flow.*",
|
79
|
+
"flows.*",
|
80
|
+
"flowVersion.*",
|
81
|
+
"flowVersions.*",
|
82
|
+
"notebook.*",
|
83
|
+
"notebooks.*",
|
84
|
+
"webhook.*",
|
85
|
+
"webhooks.*",
|
86
|
+
"application.applyTemplate",
|
87
|
+
"application.archiveData",
|
88
|
+
"application.backfillArchiveData",
|
89
|
+
"application.clone",
|
90
|
+
"application.export",
|
91
|
+
"application.import",
|
92
|
+
"application.fullEventsArchive",
|
93
|
+
"application.fullDataTablesArchive",
|
94
|
+
"application.debug",
|
95
|
+
"application.delete",
|
96
|
+
"application.get",
|
97
|
+
"application.mqttPublishMessage",
|
98
|
+
"application.mqttSubscriptionStream",
|
99
|
+
"application.patch",
|
100
|
+
"application.payloadCounts",
|
101
|
+
"application.search",
|
102
|
+
"applicationApiToken.delete",
|
103
|
+
"applicationApiToken.get",
|
104
|
+
"applicationApiToken.patch",
|
105
|
+
"applicationApiTokens.get",
|
106
|
+
"applicationApiTokens.post",
|
107
|
+
"applicationCertificate.delete",
|
108
|
+
"applicationCertificate.get",
|
109
|
+
"applicationCertificate.patch",
|
110
|
+
"applicationCertificates.get",
|
111
|
+
"applicationCertificates.post",
|
112
|
+
"applicationCertificateAuthority.delete",
|
113
|
+
"applicationCertificateAuthority.get",
|
114
|
+
"applicationCertificateAuthority.patch",
|
115
|
+
"applicationCertificateAuthorities.get",
|
116
|
+
"applicationCertificateAuthorities.post",
|
117
|
+
"applicationDashboard.get",
|
118
|
+
"applicationDashboard.patch",
|
119
|
+
"applicationDashboard.delete",
|
120
|
+
"applicationDashboards.get",
|
121
|
+
"applicationDashboards.post",
|
122
|
+
"applicationKey.delete",
|
123
|
+
"applicationKey.get",
|
124
|
+
"applicationKey.patch",
|
125
|
+
"applicationKeys.get",
|
126
|
+
"applicationKeys.post",
|
127
|
+
"data.export",
|
128
|
+
"data.lastValueQuery",
|
129
|
+
"data.timeSeriesQuery",
|
130
|
+
"dataTable.addColumn",
|
131
|
+
"dataTable.delete",
|
132
|
+
"dataTable.get",
|
133
|
+
"dataTable.patch",
|
134
|
+
"dataTable.removeColumn",
|
135
|
+
"dataTableRow.delete",
|
136
|
+
"dataTableRow.get",
|
137
|
+
"dataTableRow.patch",
|
138
|
+
"dataTableRows.get",
|
139
|
+
"dataTableRows.post",
|
140
|
+
"dataTableRows.query",
|
141
|
+
"dataTableRows.export",
|
142
|
+
"dataTableRows.delete",
|
143
|
+
"dataTableRows.truncate",
|
144
|
+
"dataTables.get",
|
145
|
+
"dataTables.post",
|
146
|
+
"device.commandStream",
|
147
|
+
"device.debug",
|
148
|
+
"device.delete",
|
149
|
+
"device.export",
|
150
|
+
"device.get",
|
151
|
+
"device.getCommand",
|
152
|
+
"device.getCompositeState",
|
153
|
+
"device.getLogEntries",
|
154
|
+
"device.getState",
|
155
|
+
"device.patch",
|
156
|
+
"device.payloadCounts",
|
157
|
+
"device.removeData",
|
158
|
+
"device.sendCommand",
|
159
|
+
"device.sendState",
|
160
|
+
"device.setConnectionStatus",
|
161
|
+
"device.stateStream",
|
162
|
+
"deviceRecipe.bulkCreate",
|
163
|
+
"deviceRecipe.delete",
|
164
|
+
"deviceRecipe.get",
|
165
|
+
"deviceRecipe.patch",
|
166
|
+
"deviceRecipes.get",
|
167
|
+
"deviceRecipes.post",
|
168
|
+
"devices.attributeNames",
|
169
|
+
"devices.patch",
|
170
|
+
"devices.delete",
|
171
|
+
"devices.removeData",
|
172
|
+
"devices.detailedSummary",
|
173
|
+
"devices.export",
|
174
|
+
"devices.get",
|
175
|
+
"devices.payloadCounts",
|
176
|
+
"devices.post",
|
177
|
+
"devices.sendCommand",
|
178
|
+
"devices.tagKeys",
|
179
|
+
"devices.tagValues",
|
180
|
+
"edgeDeployment.get",
|
181
|
+
"edgeDeployments.get",
|
182
|
+
"edgeDeployments.release",
|
183
|
+
"edgeDeployments.remove",
|
184
|
+
"edgeDeployments.replace",
|
185
|
+
"embeddedDeployment.get",
|
186
|
+
"embeddedDeployments.get",
|
187
|
+
"embeddedDeployments.release",
|
188
|
+
"embeddedDeployments.remove",
|
189
|
+
"embeddedDeployments.replace",
|
190
|
+
"embeddedDeployments.export",
|
191
|
+
"event.delete",
|
192
|
+
"event.get",
|
193
|
+
"event.patch",
|
194
|
+
"events.delete",
|
195
|
+
"events.get",
|
196
|
+
"events.mostRecentBySeverity",
|
197
|
+
"events.patch",
|
198
|
+
"events.post",
|
199
|
+
"events.export",
|
200
|
+
"experience.delete",
|
201
|
+
"experience.bootstrap",
|
202
|
+
"experienceDomain.delete",
|
203
|
+
"experienceDomain.get",
|
204
|
+
"experienceDomain.patch",
|
205
|
+
"experienceDomains.get",
|
206
|
+
"experienceDomains.post",
|
207
|
+
"experienceEndpoint.delete",
|
208
|
+
"experienceEndpoint.get",
|
209
|
+
"experienceEndpoint.linkedResources",
|
210
|
+
"experienceEndpoint.patch",
|
211
|
+
"experienceEndpoints.get",
|
212
|
+
"experienceEndpoints.post",
|
213
|
+
"experienceEndpoints.stats",
|
214
|
+
"experienceGroup.delete",
|
215
|
+
"experienceGroup.get",
|
216
|
+
"experienceGroup.patch",
|
217
|
+
"experienceGroups.detailedSummary",
|
218
|
+
"experienceGroups.get",
|
219
|
+
"experienceGroups.post",
|
220
|
+
"experienceSlug.delete",
|
221
|
+
"experienceSlug.get",
|
222
|
+
"experienceSlug.patch",
|
223
|
+
"experienceSlugs.get",
|
224
|
+
"experienceSlugs.post",
|
225
|
+
"experienceUser.delete",
|
226
|
+
"experienceUser.get",
|
227
|
+
"experienceUser.patch",
|
228
|
+
"experienceUsers.detailedSummary",
|
229
|
+
"experienceUsers.get",
|
230
|
+
"experienceUsers.post",
|
231
|
+
"experienceVersion.delete",
|
232
|
+
"experienceVersion.get",
|
233
|
+
"experienceVersion.patch",
|
234
|
+
"experienceVersions.get",
|
235
|
+
"experienceVersions.post",
|
236
|
+
"experienceView.debug",
|
237
|
+
"experienceView.delete",
|
238
|
+
"experienceView.get",
|
239
|
+
"experienceView.linkedResources",
|
240
|
+
"experienceView.patch",
|
241
|
+
"experienceViews.debug",
|
242
|
+
"experienceViews.detailedSummary",
|
243
|
+
"experienceViews.get",
|
244
|
+
"experienceViews.post",
|
245
|
+
"file.get",
|
246
|
+
"file.patch",
|
247
|
+
"file.move",
|
248
|
+
"file.delete",
|
249
|
+
"file.upload",
|
250
|
+
"files.get",
|
251
|
+
"files.post",
|
252
|
+
"flow.clearStorageEntries",
|
253
|
+
"flow.debug",
|
254
|
+
"flow.delete",
|
255
|
+
"flow.errors",
|
256
|
+
"flow.get",
|
257
|
+
"flow.getStorageEntries",
|
258
|
+
"flow.log",
|
259
|
+
"flow.patch",
|
260
|
+
"flow.pressVirtualButton",
|
261
|
+
"flow.setStorageEntry",
|
262
|
+
"flow.getStorageEntriesMetadata",
|
263
|
+
"flow.stats",
|
264
|
+
"flows.get",
|
265
|
+
"flows.getByVersion",
|
266
|
+
"flows.import",
|
267
|
+
"flows.post",
|
268
|
+
"flowVersion.delete",
|
269
|
+
"flowVersion.errors",
|
270
|
+
"flowVersion.get",
|
271
|
+
"flowVersion.log",
|
272
|
+
"flowVersion.patch",
|
273
|
+
"flowVersion.stats",
|
274
|
+
"flowVersions.delete",
|
275
|
+
"flowVersions.get",
|
276
|
+
"flowVersions.post",
|
277
|
+
"integration.delete",
|
278
|
+
"integration.get",
|
279
|
+
"integration.patch",
|
280
|
+
"integrations.get",
|
281
|
+
"integrations.post",
|
282
|
+
"notebook.delete",
|
283
|
+
"notebook.execute",
|
284
|
+
"notebook.get",
|
285
|
+
"notebook.logs",
|
286
|
+
"notebook.patch",
|
287
|
+
"notebook.requestInputDataExport",
|
288
|
+
"notebook.upload",
|
289
|
+
"notebooks.get",
|
290
|
+
"notebooks.post",
|
291
|
+
"webhook.delete",
|
292
|
+
"webhook.get",
|
293
|
+
"webhook.patch",
|
294
|
+
"webhooks.get",
|
295
|
+
"webhooks.post"
|
296
|
+
]
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"type": "string",
|
300
|
+
"enum": [
|
301
|
+
"all.Organization",
|
302
|
+
"all.Organization.read",
|
303
|
+
"applications.*",
|
304
|
+
"auditLog.*",
|
305
|
+
"auditLogs.*",
|
306
|
+
"dashboard.*",
|
307
|
+
"dashboards.*",
|
308
|
+
"org.*",
|
309
|
+
"applications.get",
|
310
|
+
"applications.post",
|
311
|
+
"applications.import",
|
312
|
+
"applications.detailedSummary",
|
313
|
+
"auditLog.get",
|
314
|
+
"auditLogs.get",
|
315
|
+
"dashboard.patch",
|
316
|
+
"dashboard.delete",
|
317
|
+
"dashboard.sendReport",
|
318
|
+
"dashboards.get",
|
319
|
+
"dashboards.post",
|
320
|
+
"org.get",
|
321
|
+
"org.patch",
|
322
|
+
"org.delete",
|
323
|
+
"org.pendingInvites",
|
324
|
+
"org.inviteMember",
|
325
|
+
"org.revokeInvite",
|
326
|
+
"org.modifyMember",
|
327
|
+
"org.removeMember",
|
328
|
+
"org.payloadCounts",
|
329
|
+
"org.invoices",
|
330
|
+
"org.currentCard",
|
331
|
+
"org.chargeDetails",
|
332
|
+
"org.transferResources"
|
333
|
+
]
|
334
|
+
}
|
335
|
+
]
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"type": "string",
|
339
|
+
"enum": [
|
340
|
+
"all.Instance",
|
341
|
+
"all.Instance.read",
|
342
|
+
"instance.*",
|
343
|
+
"instance.get",
|
344
|
+
"instance.patch",
|
345
|
+
"instance.historicalSummaries",
|
346
|
+
"instance.generateReport",
|
347
|
+
"instanceOrg.*",
|
348
|
+
"instanceOrg.get",
|
349
|
+
"instanceOrg.patch",
|
350
|
+
"instanceOrg.delete",
|
351
|
+
"instanceOrgs.*",
|
352
|
+
"instanceOrgs.get",
|
353
|
+
"instanceOrgs.post",
|
354
|
+
"instanceMember.*",
|
355
|
+
"instanceMember.get",
|
356
|
+
"instanceMember.patch",
|
357
|
+
"instanceMember.delete",
|
358
|
+
"instanceMembers.*",
|
359
|
+
"instanceMembers.get",
|
360
|
+
"instanceMembers.post",
|
361
|
+
"instanceOrgMember.*",
|
362
|
+
"instanceOrgMember.get",
|
363
|
+
"instanceOrgMember.patch",
|
364
|
+
"instanceOrgMember.delete",
|
365
|
+
"instanceOrgMembers.*",
|
366
|
+
"instanceOrgMembers.get",
|
367
|
+
"instanceOrgMembers.post",
|
368
|
+
"instanceOrgInvite.*",
|
369
|
+
"instanceOrgInvite.get",
|
370
|
+
"instanceOrgInvite.delete",
|
371
|
+
"instanceOrgInvite.resendInvite",
|
372
|
+
"instanceOrgInvites.*",
|
373
|
+
"instanceOrgInvites.get",
|
374
|
+
"instanceOrgInvites.post",
|
375
|
+
"instanceApiTokens.*",
|
376
|
+
"instanceApiTokens.get",
|
377
|
+
"instanceApiTokens.post",
|
378
|
+
"instanceApiToken.*",
|
379
|
+
"instanceApiToken.get",
|
380
|
+
"instanceApiToken.patch",
|
381
|
+
"instanceApiToken.delete"
|
382
|
+
]
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"type": "string",
|
386
|
+
"enum": [
|
387
|
+
"all.User",
|
388
|
+
"all.User.read",
|
389
|
+
"all.User.cli",
|
390
|
+
"userApiToken.*",
|
391
|
+
"userApiToken.get",
|
392
|
+
"userApiToken.patch",
|
393
|
+
"userApiToken.delete",
|
394
|
+
"userApiTokens.*",
|
395
|
+
"userApiTokens.get",
|
396
|
+
"userApiTokens.post",
|
397
|
+
"applicationTemplate.*",
|
398
|
+
"applicationTemplate.get",
|
399
|
+
"applicationTemplates.*",
|
400
|
+
"applicationTemplates.get",
|
401
|
+
"applicationTemplates.getCategories",
|
402
|
+
"applicationTemplates.getUniqueKeywords",
|
403
|
+
"instances.*",
|
404
|
+
"instances.get",
|
405
|
+
"me.*",
|
406
|
+
"me.get",
|
407
|
+
"me.patch",
|
408
|
+
"me.delete",
|
409
|
+
"me.verifyEmail",
|
410
|
+
"me.changePassword",
|
411
|
+
"me.enableTwoFactorAuth",
|
412
|
+
"me.disableTwoFactorAuth",
|
413
|
+
"me.disconnectGithub",
|
414
|
+
"me.connectGithub",
|
415
|
+
"me.addRecentItem",
|
416
|
+
"me.fetchRecentItems",
|
417
|
+
"me.payloadCounts",
|
418
|
+
"me.transferResources",
|
419
|
+
"orgs.*",
|
420
|
+
"orgs.get",
|
421
|
+
"orgs.post"
|
422
|
+
]
|
423
|
+
}
|
424
|
+
]
|
425
|
+
}
|
426
|
+
},
|
427
|
+
"status": {
|
428
|
+
"type": "string",
|
429
|
+
"enum": [
|
430
|
+
"active",
|
431
|
+
"inactive"
|
432
|
+
]
|
433
|
+
}
|
434
|
+
},
|
435
|
+
"additionalProperties": false,
|
436
|
+
"required": [
|
437
|
+
"name"
|
438
|
+
]
|
439
|
+
}
|
data/schemas/apiTokens.json
CHANGED
@@ -24,7 +24,8 @@
|
|
24
24
|
"ownerType": {
|
25
25
|
"type": "string",
|
26
26
|
"enum": [
|
27
|
-
"application"
|
27
|
+
"application",
|
28
|
+
"user"
|
28
29
|
]
|
29
30
|
},
|
30
31
|
"creatorId": {
|
@@ -124,7 +125,8 @@
|
|
124
125
|
"ownerType": {
|
125
126
|
"type": "string",
|
126
127
|
"enum": [
|
127
|
-
"application"
|
128
|
+
"application",
|
129
|
+
"user"
|
128
130
|
]
|
129
131
|
}
|
130
132
|
}
|