@tryvitris/website-admin-contracts 1.3.0 → 1.4.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.
- package/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/pairing.d.ts +31 -0
- package/package.json +3 -2
- package/vitris-release.json +15 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Vitris contributors
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vitris contributors
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Website Admin Contracts
|
|
2
|
-
|
|
3
|
-
Validated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.
|
|
1
|
+
# Website Admin Contracts
|
|
2
|
+
|
|
3
|
+
Validated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.
|
package/dist/pairing.d.ts
CHANGED
|
@@ -12,6 +12,13 @@ export declare const pairingPolicy: {
|
|
|
12
12
|
export interface PairingStart {
|
|
13
13
|
requestId: string;
|
|
14
14
|
challenge: string;
|
|
15
|
+
signOn?: {
|
|
16
|
+
version: 1;
|
|
17
|
+
subject: {
|
|
18
|
+
id: string;
|
|
19
|
+
email: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
15
22
|
}
|
|
16
23
|
export interface PairingExchange {
|
|
17
24
|
requestId: string;
|
|
@@ -48,6 +55,10 @@ export interface PairingCapabilities {
|
|
|
48
55
|
scope: 'analytics:read';
|
|
49
56
|
requestPath: string;
|
|
50
57
|
approvalPath: string;
|
|
58
|
+
connectionSetup?: {
|
|
59
|
+
version: 1;
|
|
60
|
+
signOn: boolean;
|
|
61
|
+
};
|
|
51
62
|
}
|
|
52
63
|
export interface PairingEnvelope {
|
|
53
64
|
version: 1;
|
|
@@ -69,6 +80,11 @@ export interface PairingCredential {
|
|
|
69
80
|
keyId: string;
|
|
70
81
|
scope: 'analytics:read';
|
|
71
82
|
operations: readonly ['status', 'analytics'];
|
|
83
|
+
signOn?: {
|
|
84
|
+
version: 1;
|
|
85
|
+
subjectId: string;
|
|
86
|
+
approved: boolean;
|
|
87
|
+
};
|
|
72
88
|
}
|
|
73
89
|
export interface PairingGrantView {
|
|
74
90
|
id: string;
|
|
@@ -89,6 +105,21 @@ export interface PairingRequestView {
|
|
|
89
105
|
status: 'pending' | 'approved' | 'revoked' | 'expired';
|
|
90
106
|
scope: 'analytics:read';
|
|
91
107
|
createsRelationship: boolean;
|
|
108
|
+
signOn?: {
|
|
109
|
+
version: 1;
|
|
110
|
+
subject: {
|
|
111
|
+
id: string;
|
|
112
|
+
email: string;
|
|
113
|
+
};
|
|
114
|
+
approved: boolean;
|
|
115
|
+
localUserId: string | null;
|
|
116
|
+
users: {
|
|
117
|
+
id: string;
|
|
118
|
+
email: string;
|
|
119
|
+
role: string;
|
|
120
|
+
permissions?: readonly string[];
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
92
123
|
}
|
|
93
124
|
export type PairingErrorCode = 'invalid_request' | 'unauthorized' | 'forbidden' | 'expired' | 'replay' | 'conflict' | 'unavailable' | 'unsupported';
|
|
94
125
|
export declare function samePairingIdentity(a: PairingIdentity, b: PairingIdentity): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvitris/website-admin-contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Validated installation and module contracts for Cloudflare business admin apps",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"dist"
|
|
18
|
+
"dist",
|
|
19
|
+
"vitris-release.json"
|
|
19
20
|
],
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "@tryvitris/website-admin-contracts",
|
|
4
|
+
"version": "1.4.0",
|
|
5
|
+
"title": "Optional combined connection approval contract",
|
|
6
|
+
"notesScope": "package",
|
|
7
|
+
"notes": [
|
|
8
|
+
"Adds versioned combined-setup capability discovery, optional named-subject intent, owner-selected existing-account approval and explicit sign-on result metadata. Legacy reporting-only requests remain supported."
|
|
9
|
+
],
|
|
10
|
+
"repository": "https://github.com/jackperrotta/website-admin-harness",
|
|
11
|
+
"readmePath": "packages/contracts/README.md",
|
|
12
|
+
"ref": "v1.4.0",
|
|
13
|
+
"documentation": "# Website Admin Contracts\r\n\r\nValidated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.\r\n",
|
|
14
|
+
"documentationSha256": "dc7fd3ba89b1a0a49046735adc8963115551a0d8cc7a4e64e8fba70c79ca9389"
|
|
15
|
+
}
|