@portpowered/reference-data 0.4.0 → 0.4.1
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.
- package/generated/openapi.json +375 -25
- package/generated/public/docs/for-ai/operations/addEndpointGroupMembers.md +2 -0
- package/generated/public/docs/for-ai/operations/authorizeDevice.md +16 -0
- package/generated/public/docs/for-ai/operations/completeOAuthConsent.md +5 -0
- package/generated/public/docs/for-ai/operations/createFlowNode.md +2 -0
- package/generated/public/docs/for-ai/operations/createOAuthClient.md +5 -0
- package/generated/public/docs/for-ai/operations/createToken.md +4 -0
- package/generated/public/docs/for-ai/operations/createView.md +6 -0
- package/generated/public/docs/for-ai/operations/deleteEndpoint.md +1 -1
- package/generated/public/docs/for-ai/operations/deleteFlowNode.md +2 -0
- package/generated/public/docs/for-ai/operations/deleteRoute.md +1 -1
- package/generated/public/docs/for-ai/operations/deviceAuthorize.md +21 -6
- package/generated/public/docs/for-ai/operations/enumerateEndpoints.md +14 -4
- package/generated/public/docs/for-ai/operations/establishAuthLink.md +2 -0
- package/generated/public/docs/for-ai/operations/establishPlugin.md +5 -0
- package/generated/public/docs/for-ai/operations/evaluateAccessControlRule.md +2 -0
- package/generated/public/docs/for-ai/operations/generateOAuthCode.md +6 -0
- package/generated/public/docs/for-ai/operations/generateToken.md +1 -1
- package/generated/public/docs/for-ai/operations/generateTuyaQrCode.md +3 -0
- package/generated/public/docs/for-ai/operations/getAccessControlRules.md +2 -0
- package/generated/public/docs/for-ai/operations/getEndpointGroup.md +8 -0
- package/generated/public/docs/for-ai/operations/getOAuthAuthorizationServerMetadata.md +19 -1
- package/generated/public/docs/for-ai/operations/getOAuthClient.md +3 -0
- package/generated/public/docs/for-ai/operations/getOpenIDConfiguration.md +12 -1
- package/generated/public/docs/for-ai/operations/getPendingOAuthConsent.md +6 -0
- package/generated/public/docs/for-ai/operations/getView.md +2 -0
- package/generated/public/docs/for-ai/operations/handleGoogleCloudSchedulerWebhook.md +3 -0
- package/generated/public/docs/for-ai/operations/handleOAuthCallback.md +7 -0
- package/generated/public/docs/for-ai/operations/index.md +1 -1
- package/generated/public/docs/for-ai/operations/invalidateToken.md +2 -0
- package/generated/public/docs/for-ai/operations/pluginAuthCodeExchange.md +4 -0
- package/generated/public/docs/for-ai/operations/pluginAuthMultifactorExchange.md +4 -0
- package/generated/public/docs/for-ai/operations/pushToMessageGateway.md +2 -0
- package/generated/public/docs/for-ai/operations/raiseAnonymousPrincipal.md +17 -0
- package/generated/public/docs/for-ai/operations/refreshAuthLinkToken.md +2 -0
- package/generated/public/docs/for-ai/operations/registerDynamicOAuthClient.md +9 -0
- package/generated/public/docs/for-ai/operations/removeEndpointGroupMembers.md +2 -0
- package/generated/public/docs/for-ai/operations/revokeOAuthGrant.md +3 -0
- package/generated/public/docs/for-ai/operations/setEndpointGroupName.md +4 -0
- package/generated/public/docs/for-ai/operations/synchronizeRoutes.md +2 -0
- package/generated/public/docs/for-ai/operations/updateOAuthClient.md +2 -0
- package/generated/public/docs/for-ai/operations/updateView.md +6 -0
- package/generated/public/docs/for-ai/operations/upsertAccessControlRule.md +5 -0
- package/generated/public/docs/for-ai/operations/upsertAuthLink.md +6 -0
- package/generated/public/docs/for-ai/operations/upsertEndpoint.md +6 -0
- package/generated/public/docs/for-ai/operations/upsertPluginRequest.md +2 -0
- package/generated/public/docs/for-ai/operations/upsertPrincipal.md +2 -0
- package/generated/public/docs/for-ai/operations/upsertRoute.md +4 -0
- package/generated/public/docs/for-ai/operations/upsertSecret.md +6 -0
- package/generated/public/docs/for-ai/operations/upsertSimulator.md +4 -0
- package/generated/public/docs/for-ai/operations/validateOAuthRequest.md +6 -0
- package/generated/public/docs/for-ai/operations/validateTuyaLoginCode.md +4 -0
- package/generated/public/docs/for-ai/operations/verifyDevice.md +11 -0
- package/generated/public/docs/references/authorization.json +2 -2
- package/generated/public/docs/references/authorization.yaml +2 -2
- package/generated/public/docs/references/manifest.json +108 -108
- package/generated/public/docs/references/openapi.yaml +282 -23
- package/package.json +1 -1
|
@@ -92,12 +92,21 @@ post:
|
|
|
92
92
|
client_id_issued_at:
|
|
93
93
|
type: integer
|
|
94
94
|
format: int64
|
|
95
|
+
example:
|
|
96
|
+
redirect_uris:
|
|
97
|
+
- http://127.0.0.1:8765/callback
|
|
98
|
+
token_endpoint_auth_method: none
|
|
99
|
+
client_id: dcr_example
|
|
100
|
+
client_id_issued_at: 1791504000
|
|
95
101
|
'400':
|
|
96
102
|
description: Invalid metadata, redirect URI, or unapproved software statement.
|
|
97
103
|
content:
|
|
98
104
|
application/json:
|
|
99
105
|
schema:
|
|
100
106
|
$ref: '#/components/schemas/OAuthProtocolError'
|
|
107
|
+
example:
|
|
108
|
+
error: invalid_client_metadata
|
|
109
|
+
error_description: Use HTTPS callbacks or an entirely local callback set.
|
|
101
110
|
'415':
|
|
102
111
|
description: Use application/json.
|
|
103
112
|
'429':
|
|
@@ -69,6 +69,12 @@ put:
|
|
|
69
69
|
application/json:
|
|
70
70
|
schema:
|
|
71
71
|
$ref: '#/components/schemas/UpsertViewRequest'
|
|
72
|
+
example:
|
|
73
|
+
title:
|
|
74
|
+
type: LIGHT
|
|
75
|
+
value: port1/principals/example
|
|
76
|
+
positions: []
|
|
77
|
+
widgets: []
|
|
72
78
|
responses:
|
|
73
79
|
'200':
|
|
74
80
|
description: View updated successfully
|
|
@@ -44,6 +44,11 @@ post:
|
|
|
44
44
|
application/json:
|
|
45
45
|
schema:
|
|
46
46
|
$ref: '#/components/schemas/UpsertAccessControlRuleRequest'
|
|
47
|
+
example:
|
|
48
|
+
operation: port1/principals/example
|
|
49
|
+
resource: port1/users/alice/endpoints/thermostat-zero
|
|
50
|
+
identity: port1/account/john/users/alice
|
|
51
|
+
effect: ALLOW
|
|
47
52
|
responses:
|
|
48
53
|
'200':
|
|
49
54
|
description: Access control rule upserted successfully
|
|
@@ -42,6 +42,12 @@ post:
|
|
|
42
42
|
application/json:
|
|
43
43
|
schema:
|
|
44
44
|
$ref: '#/components/schemas/UpsertAuthLinkRequest'
|
|
45
|
+
example:
|
|
46
|
+
authLink:
|
|
47
|
+
associatedPrincipalId: port1/principals/example
|
|
48
|
+
associatedPluginId: port1/systems/zero/plugins/example
|
|
49
|
+
associatedSecrets:
|
|
50
|
+
- id: port1/principals/example/secrets/plugin-credential
|
|
45
51
|
responses:
|
|
46
52
|
'200':
|
|
47
53
|
description: Auth link created successfully
|
|
@@ -36,6 +36,12 @@ post:
|
|
|
36
36
|
application/json:
|
|
37
37
|
schema:
|
|
38
38
|
$ref: '#/components/schemas/UpsertEndpointRequest'
|
|
39
|
+
example:
|
|
40
|
+
id: port1/principals/example/endpoints/light-1
|
|
41
|
+
name:
|
|
42
|
+
type: PLAIN
|
|
43
|
+
value: Office light
|
|
44
|
+
type: LIGHT
|
|
39
45
|
responses:
|
|
40
46
|
'200':
|
|
41
47
|
description: Endpoint upserted successfully
|
|
@@ -36,6 +36,10 @@ post:
|
|
|
36
36
|
application/json:
|
|
37
37
|
schema:
|
|
38
38
|
$ref: '#/components/schemas/UpsertRouteRequest'
|
|
39
|
+
example:
|
|
40
|
+
id: port1/principals/example/routes/light-route
|
|
41
|
+
endpointId: port1/principals/example/endpoints/light-1
|
|
42
|
+
pluginId: port1/systems/zero/plugins/example
|
|
39
43
|
responses:
|
|
40
44
|
'200':
|
|
41
45
|
description: Route upserted successfully
|
|
@@ -89,6 +89,12 @@ post:
|
|
|
89
89
|
application/json:
|
|
90
90
|
schema:
|
|
91
91
|
$ref: '#/components/schemas/UpsertSecretRequest'
|
|
92
|
+
example:
|
|
93
|
+
secret:
|
|
94
|
+
id: port1/principals/example
|
|
95
|
+
type: LIGHT
|
|
96
|
+
clientId: port1/principals/example
|
|
97
|
+
clientSecret: port1/principals/example
|
|
92
98
|
responses:
|
|
93
99
|
'200':
|
|
94
100
|
description: Secret created successfully
|
|
@@ -69,6 +69,10 @@ post:
|
|
|
69
69
|
application/json:
|
|
70
70
|
schema:
|
|
71
71
|
$ref: '#/components/schemas/Simulator'
|
|
72
|
+
example:
|
|
73
|
+
device_type: light
|
|
74
|
+
id: port1.simulator.example
|
|
75
|
+
name: Example device
|
|
72
76
|
application/vnd.portos.simulator.v2+json:
|
|
73
77
|
schema:
|
|
74
78
|
$ref: '#/components/schemas/SimulatorV2'
|
|
@@ -46,6 +46,9 @@ post:
|
|
|
46
46
|
application/json:
|
|
47
47
|
schema:
|
|
48
48
|
$ref: '#/components/schemas/ValidateOAuthRequestRequest'
|
|
49
|
+
example:
|
|
50
|
+
client_id: port1/principals/user123/oauth-clients/my-client
|
|
51
|
+
redirect_uri: https://myapp.com/callback
|
|
49
52
|
responses:
|
|
50
53
|
'200':
|
|
51
54
|
description: Request validated successfully, returns client information
|
|
@@ -53,6 +56,9 @@ post:
|
|
|
53
56
|
application/json:
|
|
54
57
|
schema:
|
|
55
58
|
$ref: '#/components/schemas/ValidateOAuthRequestResponse'
|
|
59
|
+
example:
|
|
60
|
+
clientName: My OAuth Application
|
|
61
|
+
scopes: []
|
|
56
62
|
'400':
|
|
57
63
|
description: Invalid request (e.g., invalid client_id, redirect_uri, or scopes)
|
|
58
64
|
'500':
|
|
@@ -58,6 +58,10 @@ post:
|
|
|
58
58
|
description: >
|
|
59
59
|
Optional override for the Tuya authentication API endpoint. Defaults to
|
|
60
60
|
https://apigw.iotbing.com if not provided.
|
|
61
|
+
example:
|
|
62
|
+
loginCode: port1/principals/example
|
|
63
|
+
userCode: port1/principals/example
|
|
64
|
+
clientId: port1/principals/example
|
|
61
65
|
responses:
|
|
62
66
|
'200':
|
|
63
67
|
description: Login code validated successfully
|
|
@@ -53,18 +53,29 @@ get:
|
|
|
53
53
|
application/json:
|
|
54
54
|
schema:
|
|
55
55
|
$ref: '#/components/schemas/VerifyDeviceResponse'
|
|
56
|
+
example:
|
|
57
|
+
deviceauth_id: da_1234567890abcdef
|
|
58
|
+
client_name: My OAuth Application
|
|
59
|
+
client_id: port1/principals/user123/oauth-clients/my-client
|
|
60
|
+
status: pending
|
|
56
61
|
'400':
|
|
57
62
|
description: Invalid request (e.g., missing or invalid user_code)
|
|
58
63
|
content:
|
|
59
64
|
application/json:
|
|
60
65
|
schema:
|
|
61
66
|
$ref: '#/components/schemas/OAuthErrorResponse'
|
|
67
|
+
example:
|
|
68
|
+
error: invalid_request
|
|
69
|
+
error_description: user_code is required
|
|
62
70
|
'500':
|
|
63
71
|
description: Internal server error
|
|
64
72
|
content:
|
|
65
73
|
application/json:
|
|
66
74
|
schema:
|
|
67
75
|
$ref: '#/components/schemas/OAuthErrorResponse'
|
|
76
|
+
example:
|
|
77
|
+
error: invalid_request
|
|
78
|
+
error_description: user_code is required
|
|
68
79
|
x-portos-delegated: false
|
|
69
80
|
x-portos-resource-permission: false
|
|
70
81
|
```
|
|
@@ -972,8 +972,8 @@
|
|
|
972
972
|
"resourcePermissionRequired": false
|
|
973
973
|
},
|
|
974
974
|
{
|
|
975
|
-
"path": "/auth/
|
|
976
|
-
"runtimePath": "/auth/
|
|
975
|
+
"path": "/auth/device-authorization",
|
|
976
|
+
"runtimePath": "/auth/device-authorization",
|
|
977
977
|
"method": "POST",
|
|
978
978
|
"operationId": "deviceAuthorize",
|
|
979
979
|
"security": [
|
|
@@ -599,8 +599,8 @@ operations:
|
|
|
599
599
|
security: []
|
|
600
600
|
delegated: false
|
|
601
601
|
resourcePermissionRequired: false
|
|
602
|
-
- path: /auth/
|
|
603
|
-
runtimePath: /auth/
|
|
602
|
+
- path: /auth/device-authorization
|
|
603
|
+
runtimePath: /auth/device-authorization
|
|
604
604
|
method: POST
|
|
605
605
|
operationId: deviceAuthorize
|
|
606
606
|
security:
|