@openplanr/protocol 0.10.3 → 0.12.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.
@@ -0,0 +1,179 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.19.0/enterprise-guest-authorization.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-guest-authorization",
6
+ "version": "1.19.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-guest-authorization"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.0.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.19.0"
19
+ },
20
+ "organizationId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
23
+ },
24
+ "projectId": {
25
+ "type": "string",
26
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
27
+ },
28
+ "artifactId": {
29
+ "type": "string",
30
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
31
+ },
32
+ "authorizationId": {
33
+ "type": "string",
34
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
35
+ },
36
+ "operationId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Za-z0-9_-]{22,64}(?![\\s\\S])"
39
+ },
40
+ "invitationId": {
41
+ "type": "string",
42
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
43
+ },
44
+ "actorId": {
45
+ "type": "string",
46
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
47
+ },
48
+ "role": {
49
+ "enum": [
50
+ "reviewer",
51
+ "viewer"
52
+ ]
53
+ },
54
+ "binding": {
55
+ "const": "fixed"
56
+ },
57
+ "pin": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "properties": {
61
+ "revisionId": {
62
+ "type": "string",
63
+ "pattern": "^[A-Za-z0-9_-]{1,128}(?![\\s\\S])"
64
+ },
65
+ "contentDigest": {
66
+ "type": "string",
67
+ "pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
68
+ },
69
+ "publicationId": {
70
+ "type": "string",
71
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
72
+ }
73
+ },
74
+ "required": [
75
+ "revisionId",
76
+ "contentDigest",
77
+ "publicationId"
78
+ ]
79
+ },
80
+ "status": {
81
+ "enum": [
82
+ "pending",
83
+ "active",
84
+ "denied",
85
+ "revoked"
86
+ ]
87
+ },
88
+ "lifecycleEpoch": {
89
+ "type": "integer",
90
+ "minimum": 1,
91
+ "maximum": 9007199254740991
92
+ },
93
+ "expiresAt": {
94
+ "type": "string",
95
+ "format": "date-time",
96
+ "maxLength": 40,
97
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
98
+ },
99
+ "receipt": {
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "properties": {
103
+ "receiptId": {
104
+ "type": "string",
105
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
106
+ },
107
+ "operationId": {
108
+ "type": "string",
109
+ "pattern": "^[A-Za-z0-9_-]{22,64}(?![\\s\\S])"
110
+ },
111
+ "authorizedAt": {
112
+ "type": "string",
113
+ "format": "date-time",
114
+ "maxLength": 40,
115
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
116
+ },
117
+ "publicationHeadAdvanced": {
118
+ "const": false
119
+ }
120
+ },
121
+ "required": [
122
+ "receiptId",
123
+ "operationId",
124
+ "authorizedAt",
125
+ "publicationHeadAdvanced"
126
+ ]
127
+ }
128
+ },
129
+ "required": [
130
+ "kind",
131
+ "schemaVersion",
132
+ "protocolVersion",
133
+ "organizationId",
134
+ "projectId",
135
+ "artifactId",
136
+ "authorizationId",
137
+ "operationId",
138
+ "invitationId",
139
+ "actorId",
140
+ "role",
141
+ "binding",
142
+ "pin",
143
+ "status",
144
+ "lifecycleEpoch",
145
+ "expiresAt"
146
+ ],
147
+ "allOf": [
148
+ {
149
+ "if": {
150
+ "properties": {
151
+ "status": {
152
+ "const": "active"
153
+ }
154
+ }
155
+ },
156
+ "then": {
157
+ "required": [
158
+ "receipt"
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "if": {
164
+ "properties": {
165
+ "status": {
166
+ "const": "pending"
167
+ }
168
+ }
169
+ },
170
+ "then": {
171
+ "not": {
172
+ "required": [
173
+ "receipt"
174
+ ]
175
+ }
176
+ }
177
+ }
178
+ ]
179
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.19.0/enterprise-guest-invitation.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-guest-invitation",
6
+ "version": "1.19.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-guest-invitation"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.0.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.19.0"
19
+ },
20
+ "organizationId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
23
+ },
24
+ "projectId": {
25
+ "type": "string",
26
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
27
+ },
28
+ "artifactId": {
29
+ "type": "string",
30
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
31
+ },
32
+ "invitationId": {
33
+ "type": "string",
34
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
35
+ },
36
+ "deliveryOperationId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Za-z0-9_-]{22,64}(?![\\s\\S])"
39
+ },
40
+ "inviterId": {
41
+ "type": "string",
42
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
43
+ },
44
+ "recipientId": {
45
+ "type": "string",
46
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
47
+ },
48
+ "role": {
49
+ "enum": [
50
+ "reviewer",
51
+ "viewer"
52
+ ]
53
+ },
54
+ "binding": {
55
+ "const": "fixed"
56
+ },
57
+ "pin": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "properties": {
61
+ "revisionId": {
62
+ "type": "string",
63
+ "pattern": "^[A-Za-z0-9_-]{1,128}(?![\\s\\S])"
64
+ },
65
+ "contentDigest": {
66
+ "type": "string",
67
+ "pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
68
+ },
69
+ "publicationId": {
70
+ "type": "string",
71
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
72
+ }
73
+ },
74
+ "required": [
75
+ "revisionId",
76
+ "contentDigest",
77
+ "publicationId"
78
+ ]
79
+ },
80
+ "deliveryStatus": {
81
+ "enum": [
82
+ "queued",
83
+ "failed",
84
+ "delivered",
85
+ "expired"
86
+ ]
87
+ },
88
+ "grantStatus": {
89
+ "enum": [
90
+ "pending",
91
+ "active",
92
+ "denied",
93
+ "revoked"
94
+ ]
95
+ },
96
+ "createdAt": {
97
+ "type": "string",
98
+ "format": "date-time",
99
+ "maxLength": 40,
100
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
101
+ },
102
+ "expiresAt": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "maxLength": 40,
106
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
107
+ }
108
+ },
109
+ "required": [
110
+ "kind",
111
+ "schemaVersion",
112
+ "protocolVersion",
113
+ "organizationId",
114
+ "projectId",
115
+ "artifactId",
116
+ "invitationId",
117
+ "deliveryOperationId",
118
+ "inviterId",
119
+ "recipientId",
120
+ "role",
121
+ "binding",
122
+ "pin",
123
+ "deliveryStatus",
124
+ "grantStatus",
125
+ "createdAt",
126
+ "expiresAt"
127
+ ]
128
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.19.0/enterprise-journey-capabilities.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-journey-capabilities",
6
+ "version": "1.19.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-journey-capabilities"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.0.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.19.0"
19
+ },
20
+ "readers": {
21
+ "type": "array",
22
+ "items": {
23
+ "enum": [
24
+ "resource-draft",
25
+ "resource-publication",
26
+ "fixed-guest",
27
+ "project-lifecycle",
28
+ "review-mentions",
29
+ "scoped-pages"
30
+ ]
31
+ },
32
+ "maxItems": 6,
33
+ "minItems": 0,
34
+ "uniqueItems": true
35
+ },
36
+ "writers": {
37
+ "type": "array",
38
+ "items": {
39
+ "enum": [
40
+ "resource-draft",
41
+ "resource-publication",
42
+ "fixed-guest",
43
+ "project-lifecycle",
44
+ "review-mentions",
45
+ "scoped-pages"
46
+ ]
47
+ },
48
+ "maxItems": 6,
49
+ "minItems": 0,
50
+ "uniqueItems": true
51
+ },
52
+ "rollbackFloor": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "protocolVersion": {
57
+ "const": "1.19.0"
58
+ },
59
+ "serviceVersion": {
60
+ "type": "string",
61
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
62
+ },
63
+ "candidateDigest": {
64
+ "type": "string",
65
+ "pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
66
+ }
67
+ },
68
+ "required": [
69
+ "protocolVersion",
70
+ "serviceVersion",
71
+ "candidateDigest"
72
+ ]
73
+ }
74
+ },
75
+ "required": [
76
+ "kind",
77
+ "schemaVersion",
78
+ "protocolVersion",
79
+ "readers",
80
+ "writers",
81
+ "rollbackFloor"
82
+ ]
83
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.19.0/enterprise-project-lifecycle.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-project-lifecycle",
6
+ "version": "1.19.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-project-lifecycle"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.0.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.19.0"
19
+ },
20
+ "organizationId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
23
+ },
24
+ "projectId": {
25
+ "type": "string",
26
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
27
+ },
28
+ "status": {
29
+ "enum": [
30
+ "active",
31
+ "archiving",
32
+ "archived",
33
+ "restoring"
34
+ ]
35
+ },
36
+ "version": {
37
+ "type": "integer",
38
+ "minimum": 0,
39
+ "maximum": 9007199254740991
40
+ },
41
+ "epoch": {
42
+ "type": "integer",
43
+ "minimum": 1,
44
+ "maximum": 9007199254740991
45
+ },
46
+ "updatedAt": {
47
+ "type": "string",
48
+ "format": "date-time",
49
+ "maxLength": 40,
50
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
51
+ },
52
+ "operation": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "operationId": {
57
+ "type": "string",
58
+ "pattern": "^[A-Za-z0-9_-]{22,64}(?![\\s\\S])"
59
+ },
60
+ "action": {
61
+ "enum": [
62
+ "archive",
63
+ "restore"
64
+ ]
65
+ },
66
+ "expectedVersion": {
67
+ "type": "integer",
68
+ "minimum": 0,
69
+ "maximum": 9007199254740991
70
+ },
71
+ "previousEpoch": {
72
+ "type": "integer",
73
+ "minimum": 1,
74
+ "maximum": 9007199254740991
75
+ },
76
+ "inventoryDigest": {
77
+ "type": "string",
78
+ "pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
79
+ },
80
+ "artifactCount": {
81
+ "type": "integer",
82
+ "minimum": 0,
83
+ "maximum": 9007199254740991
84
+ },
85
+ "acknowledgedCount": {
86
+ "type": "integer",
87
+ "minimum": 0,
88
+ "maximum": 9007199254740991
89
+ },
90
+ "acknowledgedInventoryDigest": {
91
+ "oneOf": [
92
+ {
93
+ "type": "string",
94
+ "pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ "required": [
103
+ "operationId",
104
+ "action",
105
+ "expectedVersion",
106
+ "previousEpoch",
107
+ "inventoryDigest",
108
+ "artifactCount",
109
+ "acknowledgedCount",
110
+ "acknowledgedInventoryDigest"
111
+ ]
112
+ },
113
+ "receipt": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "properties": {
117
+ "receiptId": {
118
+ "type": "string",
119
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
120
+ },
121
+ "operationId": {
122
+ "type": "string",
123
+ "pattern": "^[A-Za-z0-9_-]{22,64}(?![\\s\\S])"
124
+ },
125
+ "action": {
126
+ "enum": [
127
+ "archive",
128
+ "restore"
129
+ ]
130
+ },
131
+ "version": {
132
+ "type": "integer",
133
+ "minimum": 0,
134
+ "maximum": 9007199254740991
135
+ },
136
+ "epoch": {
137
+ "type": "integer",
138
+ "minimum": 1,
139
+ "maximum": 9007199254740991
140
+ },
141
+ "completedAt": {
142
+ "type": "string",
143
+ "format": "date-time",
144
+ "maxLength": 40,
145
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z(?![\\s\\S])"
146
+ }
147
+ },
148
+ "required": [
149
+ "receiptId",
150
+ "operationId",
151
+ "action",
152
+ "version",
153
+ "epoch",
154
+ "completedAt"
155
+ ]
156
+ }
157
+ },
158
+ "required": [
159
+ "kind",
160
+ "schemaVersion",
161
+ "protocolVersion",
162
+ "organizationId",
163
+ "projectId",
164
+ "status",
165
+ "version",
166
+ "epoch",
167
+ "updatedAt"
168
+ ]
169
+ }