@openvtc/trust-tasks 0.20.2 → 0.20.3
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/CHANGELOG.md +51 -0
- package/dist/_shared/components.d.ts +175 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/git-ns/_shared/0.1/git-ns.d.ts +16 -0
- package/dist/git-ns/_shared/0.1/git-ns.d.ts.map +1 -0
- package/dist/git-ns/_shared/0.1/git-ns.js +6 -0
- package/dist/git-ns/_shared/0.1/git-ns.js.map +1 -0
- package/dist/git-ns/account/link/0.1/payload.d.ts +355 -0
- package/dist/git-ns/account/link/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/account/link/0.1/payload.js +192 -0
- package/dist/git-ns/account/link/0.1/payload.js.map +1 -0
- package/dist/git-ns/account/link-status/0.1/payload.d.ts +403 -0
- package/dist/git-ns/account/link-status/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/account/link-status/0.1/payload.js +234 -0
- package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/event/0.1/payload.d.ts +1348 -0
- package/dist/git-ns/bridge/event/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/event/0.1/payload.js +785 -0
- package/dist/git-ns/bridge/event/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/0.1/payload.d.ts +1044 -0
- package/dist/git-ns/bridge/job/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/0.1/payload.js +564 -0
- package/dist/git-ns/bridge/job/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/result/0.1/payload.d.ts +462 -0
- package/dist/git-ns/bridge/result/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/result/0.1/payload.js +248 -0
- package/dist/git-ns/bridge/result/0.1/payload.js.map +1 -0
- package/dist/git-ns/namespace/bind/0.1/payload.d.ts +547 -0
- package/dist/git-ns/namespace/bind/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/bind/0.1/payload.js +322 -0
- package/dist/git-ns/namespace/bind/0.1/payload.js.map +1 -0
- package/dist/git-ns/namespace/unbind/0.1/payload.d.ts +300 -0
- package/dist/git-ns/namespace/unbind/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/unbind/0.1/payload.js +168 -0
- package/dist/git-ns/namespace/unbind/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/adopt/0.1/payload.d.ts +962 -0
- package/dist/git-ns/repo/adopt/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/adopt/0.1/payload.js +583 -0
- package/dist/git-ns/repo/adopt/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/archive/0.1/payload.d.ts +959 -0
- package/dist/git-ns/repo/archive/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/archive/0.1/payload.js +584 -0
- package/dist/git-ns/repo/archive/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/create/0.1/payload.d.ts +1074 -0
- package/dist/git-ns/repo/create/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/create/0.1/payload.js +636 -0
- package/dist/git-ns/repo/create/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/transfer/0.1/payload.d.ts +947 -0
- package/dist/git-ns/repo/transfer/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/transfer/0.1/payload.js +577 -0
- package/dist/git-ns/repo/transfer/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/grant/0.1/payload.d.ts +506 -0
- package/dist/git-ns/right/grant/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/grant/0.1/payload.js +289 -0
- package/dist/git-ns/right/grant/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/revoke/0.1/payload.d.ts +492 -0
- package/dist/git-ns/right/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/revoke/0.1/payload.js +284 -0
- package/dist/git-ns/right/revoke/0.1/payload.js.map +1 -0
- package/dist/git-ns/view/0.1/payload.d.ts +1407 -0
- package/dist/git-ns/view/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/view/0.1/payload.js +860 -0
- package/dist/git-ns/view/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +181 -0
- package/src/git-ns/_shared/0.1/git-ns.ts +17 -0
- package/src/git-ns/account/link/0.1/payload.ts +242 -0
- package/src/git-ns/account/link-status/0.1/payload.ts +276 -0
- package/src/git-ns/bridge/event/0.1/payload.ts +902 -0
- package/src/git-ns/bridge/job/0.1/payload.ts +676 -0
- package/src/git-ns/bridge/result/0.1/payload.ts +321 -0
- package/src/git-ns/namespace/bind/0.1/payload.ts +374 -0
- package/src/git-ns/namespace/unbind/0.1/payload.ts +211 -0
- package/src/git-ns/repo/adopt/0.1/payload.ts +628 -0
- package/src/git-ns/repo/archive/0.1/payload.ts +626 -0
- package/src/git-ns/repo/create/0.1/payload.ts +689 -0
- package/src/git-ns/repo/transfer/0.1/payload.ts +619 -0
- package/src/git-ns/right/grant/0.1/payload.ts +340 -0
- package/src/git-ns/right/revoke/0.1/payload.ts +331 -0
- package/src/git-ns/view/0.1/payload.ts +906 -0
- package/src/index.ts +15 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/git-ns/namespace/bind/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/git-ns/namespace/bind/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/git-ns/namespace/bind/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/git-ns/namespace/bind/0.1",
|
|
21
|
+
"title": "Git Namespaces — Bind Namespace — payload",
|
|
22
|
+
"description": "A VTC administrator binds the VTC to one owner on one forge, so that the VTC governs who may create, own, maintain and commit to repositories under it. In bridge mode the response says where to send the forge owner to prove control; the namespace stays `pending` until that proof arrives.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"forge",
|
|
27
|
+
"owner",
|
|
28
|
+
"mode"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"forge": {
|
|
32
|
+
"$ref": "#/$defs/ForgeHost",
|
|
33
|
+
"description": "The forge's host, lowercased."
|
|
34
|
+
},
|
|
35
|
+
"owner": {
|
|
36
|
+
"$ref": "#/$defs/Segment",
|
|
37
|
+
"description": "The organisation or user on that forge, lowercased."
|
|
38
|
+
},
|
|
39
|
+
"mode": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": [
|
|
42
|
+
"bridge",
|
|
43
|
+
"manual"
|
|
44
|
+
],
|
|
45
|
+
"description": "`bridge` — a bridge service serving this forge proves control and then acts on the forge. `manual` — no automation; the binding admin declares the namespace and people with forge access carry out the forge-side steps."
|
|
46
|
+
},
|
|
47
|
+
"ext": {
|
|
48
|
+
"$ref": "#/$defs/Ext"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"$defs": {
|
|
52
|
+
"Response": {
|
|
53
|
+
"$anchor": "response",
|
|
54
|
+
"title": "Git Namespaces — Bind Namespace — response payload",
|
|
55
|
+
"description": "The namespace as recorded, and where to go next if it is still pending.",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": [
|
|
59
|
+
"namespace"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"namespace": {
|
|
63
|
+
"$ref": "#/$defs/GitNamespace"
|
|
64
|
+
},
|
|
65
|
+
"next": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"url"
|
|
70
|
+
],
|
|
71
|
+
"description": "Present when the namespace is `pending`: where the administrator goes to prove control of the forge owner (install the community's forge app, or sign in to the forge and authorise the bridge).",
|
|
72
|
+
"properties": {
|
|
73
|
+
"url": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"format": "uri",
|
|
76
|
+
"maxLength": 2048,
|
|
77
|
+
"pattern": "^https://",
|
|
78
|
+
"description": "An https URL, single-use, carrying the bridge's binding nonce."
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"ext": {
|
|
83
|
+
"$ref": "#/$defs/Ext"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"Ext": {
|
|
88
|
+
"title": "Ext",
|
|
89
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"minProperties": 1,
|
|
92
|
+
"additionalProperties": true,
|
|
93
|
+
"propertyNames": {
|
|
94
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"GitNamespace": {
|
|
98
|
+
"title": "GitNamespace",
|
|
99
|
+
"description": "The VTC's binding to one owner on one forge.",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": [
|
|
103
|
+
"id",
|
|
104
|
+
"forge",
|
|
105
|
+
"owner",
|
|
106
|
+
"mode",
|
|
107
|
+
"state"
|
|
108
|
+
],
|
|
109
|
+
"properties": {
|
|
110
|
+
"id": {
|
|
111
|
+
"$ref": "#/$defs/NamespaceId"
|
|
112
|
+
},
|
|
113
|
+
"forge": {
|
|
114
|
+
"$ref": "#/$defs/ForgeHost"
|
|
115
|
+
},
|
|
116
|
+
"owner": {
|
|
117
|
+
"$ref": "#/$defs/Segment",
|
|
118
|
+
"description": "The organisation or user on the forge, lowercased."
|
|
119
|
+
},
|
|
120
|
+
"kind": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"enum": [
|
|
123
|
+
"organization",
|
|
124
|
+
"user"
|
|
125
|
+
],
|
|
126
|
+
"description": "Whether the owner is an organisation or a personal account, as the forge reports it. Present once known: a bridge-mode namespace learns it when binding completes, and a manual-mode namespace MAY never learn it."
|
|
127
|
+
},
|
|
128
|
+
"mode": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": [
|
|
131
|
+
"bridge",
|
|
132
|
+
"manual"
|
|
133
|
+
],
|
|
134
|
+
"description": "`bridge` — a bridge service acts on the forge for this namespace (creates repositories, projects roles, reports drift). `manual` — no automation; people with forge access carry out the steps the VTC names, and the VTC governs the rights alone."
|
|
135
|
+
},
|
|
136
|
+
"state": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"enum": [
|
|
139
|
+
"pending",
|
|
140
|
+
"bound"
|
|
141
|
+
],
|
|
142
|
+
"description": "`pending` — binding has started and the forge-side proof has not arrived yet. `bound` — the VTC governs rights under this namespace."
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"Segment": {
|
|
147
|
+
"title": "Segment",
|
|
148
|
+
"description": "One lowercased owner or repository name. Forges compare these case-insensitively, so the wire form is always lowercase and a producer lowercases before sending. A leading `.` is refused, which rules out `.` and `..`.",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"minLength": 1,
|
|
151
|
+
"maxLength": 100,
|
|
152
|
+
"pattern": "^[a-z0-9_-][a-z0-9._-]*$"
|
|
153
|
+
},
|
|
154
|
+
"ForgeHost": {
|
|
155
|
+
"title": "ForgeHost",
|
|
156
|
+
"description": "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 3,
|
|
159
|
+
"maxLength": 253,
|
|
160
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$"
|
|
161
|
+
},
|
|
162
|
+
"NamespaceId": {
|
|
163
|
+
"title": "NamespaceId",
|
|
164
|
+
"description": "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.",
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 128
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
172
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
173
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
174
|
+
"$ref": "#/$defs/Response",
|
|
175
|
+
"$defs": {
|
|
176
|
+
"Response": {
|
|
177
|
+
"$anchor": "response",
|
|
178
|
+
"title": "Git Namespaces — Bind Namespace — response payload",
|
|
179
|
+
"description": "The namespace as recorded, and where to go next if it is still pending.",
|
|
180
|
+
"type": "object",
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"required": [
|
|
183
|
+
"namespace"
|
|
184
|
+
],
|
|
185
|
+
"properties": {
|
|
186
|
+
"namespace": {
|
|
187
|
+
"$ref": "#/$defs/GitNamespace"
|
|
188
|
+
},
|
|
189
|
+
"next": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"required": [
|
|
193
|
+
"url"
|
|
194
|
+
],
|
|
195
|
+
"description": "Present when the namespace is `pending`: where the administrator goes to prove control of the forge owner (install the community's forge app, or sign in to the forge and authorise the bridge).",
|
|
196
|
+
"properties": {
|
|
197
|
+
"url": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"format": "uri",
|
|
200
|
+
"maxLength": 2048,
|
|
201
|
+
"pattern": "^https://",
|
|
202
|
+
"description": "An https URL, single-use, carrying the bridge's binding nonce."
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"ext": {
|
|
207
|
+
"$ref": "#/$defs/Ext"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"Ext": {
|
|
212
|
+
"title": "Ext",
|
|
213
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
214
|
+
"type": "object",
|
|
215
|
+
"minProperties": 1,
|
|
216
|
+
"additionalProperties": true,
|
|
217
|
+
"propertyNames": {
|
|
218
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"GitNamespace": {
|
|
222
|
+
"title": "GitNamespace",
|
|
223
|
+
"description": "The VTC's binding to one owner on one forge.",
|
|
224
|
+
"type": "object",
|
|
225
|
+
"additionalProperties": false,
|
|
226
|
+
"required": [
|
|
227
|
+
"id",
|
|
228
|
+
"forge",
|
|
229
|
+
"owner",
|
|
230
|
+
"mode",
|
|
231
|
+
"state"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"id": {
|
|
235
|
+
"$ref": "#/$defs/NamespaceId"
|
|
236
|
+
},
|
|
237
|
+
"forge": {
|
|
238
|
+
"$ref": "#/$defs/ForgeHost"
|
|
239
|
+
},
|
|
240
|
+
"owner": {
|
|
241
|
+
"$ref": "#/$defs/Segment",
|
|
242
|
+
"description": "The organisation or user on the forge, lowercased."
|
|
243
|
+
},
|
|
244
|
+
"kind": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"enum": [
|
|
247
|
+
"organization",
|
|
248
|
+
"user"
|
|
249
|
+
],
|
|
250
|
+
"description": "Whether the owner is an organisation or a personal account, as the forge reports it. Present once known: a bridge-mode namespace learns it when binding completes, and a manual-mode namespace MAY never learn it."
|
|
251
|
+
},
|
|
252
|
+
"mode": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"enum": [
|
|
255
|
+
"bridge",
|
|
256
|
+
"manual"
|
|
257
|
+
],
|
|
258
|
+
"description": "`bridge` — a bridge service acts on the forge for this namespace (creates repositories, projects roles, reports drift). `manual` — no automation; people with forge access carry out the steps the VTC names, and the VTC governs the rights alone."
|
|
259
|
+
},
|
|
260
|
+
"state": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"enum": [
|
|
263
|
+
"pending",
|
|
264
|
+
"bound"
|
|
265
|
+
],
|
|
266
|
+
"description": "`pending` — binding has started and the forge-side proof has not arrived yet. `bound` — the VTC governs rights under this namespace."
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"Segment": {
|
|
271
|
+
"title": "Segment",
|
|
272
|
+
"description": "One lowercased owner or repository name. Forges compare these case-insensitively, so the wire form is always lowercase and a producer lowercases before sending. A leading `.` is refused, which rules out `.` and `..`.",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"minLength": 1,
|
|
275
|
+
"maxLength": 100,
|
|
276
|
+
"pattern": "^[a-z0-9_-][a-z0-9._-]*$"
|
|
277
|
+
},
|
|
278
|
+
"ForgeHost": {
|
|
279
|
+
"title": "ForgeHost",
|
|
280
|
+
"description": "The lowercased DNS host of a forge: `github.com`, a GitHub Enterprise Server host, `codeberg.org`, or a self-hosted Forgejo instance such as `git.example.org`. No scheme, no port, no path. The host is a segment of every resource, so a right never crosses forges.",
|
|
281
|
+
"type": "string",
|
|
282
|
+
"minLength": 3,
|
|
283
|
+
"maxLength": 253,
|
|
284
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$"
|
|
285
|
+
},
|
|
286
|
+
"NamespaceId": {
|
|
287
|
+
"title": "NamespaceId",
|
|
288
|
+
"description": "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.",
|
|
289
|
+
"type": "string",
|
|
290
|
+
"minLength": 1,
|
|
291
|
+
"maxLength": 128
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
297
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
298
|
+
* per-specification and cannot be derived from the document alone, and
|
|
299
|
+
* item 2 needs the schema this carries.
|
|
300
|
+
*/
|
|
301
|
+
export const SPEC = {
|
|
302
|
+
typeUri: TYPE_URI,
|
|
303
|
+
isBearer: false,
|
|
304
|
+
isProofRequired: true,
|
|
305
|
+
isRecipientRequired: true,
|
|
306
|
+
isIssuedAtRequired: true,
|
|
307
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
311
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
312
|
+
* parties (§7.3 item 5).
|
|
313
|
+
*/
|
|
314
|
+
export const RESPONSE_SPEC = {
|
|
315
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
316
|
+
isBearer: false,
|
|
317
|
+
isProofRequired: true,
|
|
318
|
+
isRecipientRequired: true,
|
|
319
|
+
isIssuedAtRequired: true,
|
|
320
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
321
|
+
};
|
|
322
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/git-ns/namespace/bind/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,2CAA2C;IACpD,aAAa,EAAE,kSAAkS;IACjT,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,OAAO;QACP,OAAO;QACP,MAAM;KACP;IACD,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,+BAA+B;SAC/C;QACD,OAAO,EAAE;YACP,MAAM,EAAE,iBAAiB;YACzB,aAAa,EAAE,qDAAqD;SACrE;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,QAAQ;gBACR,QAAQ;aACT;YACD,aAAa,EAAE,2NAA2N;SAC3O;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,oDAAoD;YAC7D,aAAa,EAAE,yEAAyE;YACxF,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,WAAW;aACZ;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE;oBACX,MAAM,EAAE,sBAAsB;iBA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B,aAAa,EAAE,0NAA0N;YACzO,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,SAAS,EAAE,0BAA0B;SACtC;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,aAAa,EAAE,wQAAwQ;YACvR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,SAAS,EAAE,0EAA0E;SACtF;QACD,aAAa,EAAE;YACb,OAAO,EAAE,aAAa;YACtB,aAAa,EAAE,+IAA+I;YAC9J,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;SACjB;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/git-ns/namespace/unbind/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, NamespaceId } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A namespace admin ends the VTC's governance of a namespace. Every right recorded on a resource inside it is revoked and withdrawn from the Trust Registry, and every repository in it becomes `detached`.
|
|
8
|
+
*/
|
|
9
|
+
export interface GitNamespacesUnbindNamespacePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The namespace to unbind.
|
|
12
|
+
*/
|
|
13
|
+
namespace: NamespaceId;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What unbinding removed.
|
|
18
|
+
*/
|
|
19
|
+
export interface GitNamespacesUnbindNamespaceResponsePayload {
|
|
20
|
+
namespace: NamespaceId;
|
|
21
|
+
/**
|
|
22
|
+
* How many recorded rights were revoked.
|
|
23
|
+
*/
|
|
24
|
+
rightsRevoked: number;
|
|
25
|
+
/**
|
|
26
|
+
* How many repositories became `detached`.
|
|
27
|
+
*/
|
|
28
|
+
reposDetached: number;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
32
|
+
export type { Ext, NamespaceId };
|
|
33
|
+
/** Trust Task type URI. */
|
|
34
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1";
|
|
35
|
+
/** Stable alias for this specification's request payload shape. */
|
|
36
|
+
export type Payload = GitNamespacesUnbindNamespacePayload;
|
|
37
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
38
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1#response";
|
|
39
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
40
|
+
export type Response = GitNamespacesUnbindNamespaceResponsePayload;
|
|
41
|
+
/**
|
|
42
|
+
* This specification's payload schema, as a value.
|
|
43
|
+
*
|
|
44
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
45
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
46
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
47
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
48
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
49
|
+
*/
|
|
50
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
51
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
52
|
+
readonly $id: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1";
|
|
53
|
+
readonly title: "Git Namespaces — Unbind Namespace — payload";
|
|
54
|
+
readonly description: "A namespace admin ends the VTC's governance of a namespace. Every right recorded on a resource inside it is revoked and withdrawn from the Trust Registry, and every repository in it becomes `detached`.";
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
readonly required: readonly ["namespace"];
|
|
58
|
+
readonly properties: {
|
|
59
|
+
readonly namespace: {
|
|
60
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
61
|
+
readonly description: "The namespace to unbind.";
|
|
62
|
+
};
|
|
63
|
+
readonly ext: {
|
|
64
|
+
readonly $ref: "#/$defs/Ext";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly $defs: {
|
|
68
|
+
readonly Response: {
|
|
69
|
+
readonly $anchor: "response";
|
|
70
|
+
readonly title: "Git Namespaces — Unbind Namespace — response payload";
|
|
71
|
+
readonly description: "What unbinding removed.";
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
readonly required: readonly ["namespace", "rightsRevoked", "reposDetached"];
|
|
75
|
+
readonly properties: {
|
|
76
|
+
readonly namespace: {
|
|
77
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
78
|
+
};
|
|
79
|
+
readonly rightsRevoked: {
|
|
80
|
+
readonly type: "integer";
|
|
81
|
+
readonly minimum: 0;
|
|
82
|
+
readonly description: "How many recorded rights were revoked.";
|
|
83
|
+
};
|
|
84
|
+
readonly reposDetached: {
|
|
85
|
+
readonly type: "integer";
|
|
86
|
+
readonly minimum: 0;
|
|
87
|
+
readonly description: "How many repositories became `detached`.";
|
|
88
|
+
};
|
|
89
|
+
readonly ext: {
|
|
90
|
+
readonly $ref: "#/$defs/Ext";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly Ext: {
|
|
95
|
+
readonly title: "Ext";
|
|
96
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly minProperties: 1;
|
|
99
|
+
readonly additionalProperties: true;
|
|
100
|
+
readonly propertyNames: {
|
|
101
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
readonly NamespaceId: {
|
|
105
|
+
readonly title: "NamespaceId";
|
|
106
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly minLength: 1;
|
|
109
|
+
readonly maxLength: 128;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
114
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
115
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
116
|
+
readonly $ref: "#/$defs/Response";
|
|
117
|
+
readonly $defs: {
|
|
118
|
+
readonly Response: {
|
|
119
|
+
readonly $anchor: "response";
|
|
120
|
+
readonly title: "Git Namespaces — Unbind Namespace — response payload";
|
|
121
|
+
readonly description: "What unbinding removed.";
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
readonly required: readonly ["namespace", "rightsRevoked", "reposDetached"];
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly namespace: {
|
|
127
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
128
|
+
};
|
|
129
|
+
readonly rightsRevoked: {
|
|
130
|
+
readonly type: "integer";
|
|
131
|
+
readonly minimum: 0;
|
|
132
|
+
readonly description: "How many recorded rights were revoked.";
|
|
133
|
+
};
|
|
134
|
+
readonly reposDetached: {
|
|
135
|
+
readonly type: "integer";
|
|
136
|
+
readonly minimum: 0;
|
|
137
|
+
readonly description: "How many repositories became `detached`.";
|
|
138
|
+
};
|
|
139
|
+
readonly ext: {
|
|
140
|
+
readonly $ref: "#/$defs/Ext";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly Ext: {
|
|
145
|
+
readonly title: "Ext";
|
|
146
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly minProperties: 1;
|
|
149
|
+
readonly additionalProperties: true;
|
|
150
|
+
readonly propertyNames: {
|
|
151
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly NamespaceId: {
|
|
155
|
+
readonly title: "NamespaceId";
|
|
156
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly minLength: 1;
|
|
159
|
+
readonly maxLength: 128;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
165
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
166
|
+
* per-specification and cannot be derived from the document alone, and
|
|
167
|
+
* item 2 needs the schema this carries.
|
|
168
|
+
*/
|
|
169
|
+
export declare const SPEC: {
|
|
170
|
+
readonly typeUri: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1";
|
|
171
|
+
readonly isBearer: false;
|
|
172
|
+
readonly isProofRequired: true;
|
|
173
|
+
readonly isRecipientRequired: true;
|
|
174
|
+
readonly isIssuedAtRequired: true;
|
|
175
|
+
readonly payloadSchema: {
|
|
176
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
177
|
+
readonly $id: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1";
|
|
178
|
+
readonly title: "Git Namespaces — Unbind Namespace — payload";
|
|
179
|
+
readonly description: "A namespace admin ends the VTC's governance of a namespace. Every right recorded on a resource inside it is revoked and withdrawn from the Trust Registry, and every repository in it becomes `detached`.";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly additionalProperties: false;
|
|
182
|
+
readonly required: readonly ["namespace"];
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly namespace: {
|
|
185
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
186
|
+
readonly description: "The namespace to unbind.";
|
|
187
|
+
};
|
|
188
|
+
readonly ext: {
|
|
189
|
+
readonly $ref: "#/$defs/Ext";
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly $defs: {
|
|
193
|
+
readonly Response: {
|
|
194
|
+
readonly $anchor: "response";
|
|
195
|
+
readonly title: "Git Namespaces — Unbind Namespace — response payload";
|
|
196
|
+
readonly description: "What unbinding removed.";
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly additionalProperties: false;
|
|
199
|
+
readonly required: readonly ["namespace", "rightsRevoked", "reposDetached"];
|
|
200
|
+
readonly properties: {
|
|
201
|
+
readonly namespace: {
|
|
202
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
203
|
+
};
|
|
204
|
+
readonly rightsRevoked: {
|
|
205
|
+
readonly type: "integer";
|
|
206
|
+
readonly minimum: 0;
|
|
207
|
+
readonly description: "How many recorded rights were revoked.";
|
|
208
|
+
};
|
|
209
|
+
readonly reposDetached: {
|
|
210
|
+
readonly type: "integer";
|
|
211
|
+
readonly minimum: 0;
|
|
212
|
+
readonly description: "How many repositories became `detached`.";
|
|
213
|
+
};
|
|
214
|
+
readonly ext: {
|
|
215
|
+
readonly $ref: "#/$defs/Ext";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
readonly Ext: {
|
|
220
|
+
readonly title: "Ext";
|
|
221
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly minProperties: 1;
|
|
224
|
+
readonly additionalProperties: true;
|
|
225
|
+
readonly propertyNames: {
|
|
226
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly NamespaceId: {
|
|
230
|
+
readonly title: "NamespaceId";
|
|
231
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly minLength: 1;
|
|
234
|
+
readonly maxLength: 128;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
241
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
242
|
+
* parties (§7.3 item 5).
|
|
243
|
+
*/
|
|
244
|
+
export declare const RESPONSE_SPEC: {
|
|
245
|
+
readonly typeUri: "https://trusttasks.org/spec/git-ns/namespace/unbind/0.1#response";
|
|
246
|
+
readonly isBearer: false;
|
|
247
|
+
readonly isProofRequired: true;
|
|
248
|
+
readonly isRecipientRequired: true;
|
|
249
|
+
readonly isIssuedAtRequired: true;
|
|
250
|
+
readonly payloadSchema: {
|
|
251
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
252
|
+
readonly $ref: "#/$defs/Response";
|
|
253
|
+
readonly $defs: {
|
|
254
|
+
readonly Response: {
|
|
255
|
+
readonly $anchor: "response";
|
|
256
|
+
readonly title: "Git Namespaces — Unbind Namespace — response payload";
|
|
257
|
+
readonly description: "What unbinding removed.";
|
|
258
|
+
readonly type: "object";
|
|
259
|
+
readonly additionalProperties: false;
|
|
260
|
+
readonly required: readonly ["namespace", "rightsRevoked", "reposDetached"];
|
|
261
|
+
readonly properties: {
|
|
262
|
+
readonly namespace: {
|
|
263
|
+
readonly $ref: "#/$defs/NamespaceId";
|
|
264
|
+
};
|
|
265
|
+
readonly rightsRevoked: {
|
|
266
|
+
readonly type: "integer";
|
|
267
|
+
readonly minimum: 0;
|
|
268
|
+
readonly description: "How many recorded rights were revoked.";
|
|
269
|
+
};
|
|
270
|
+
readonly reposDetached: {
|
|
271
|
+
readonly type: "integer";
|
|
272
|
+
readonly minimum: 0;
|
|
273
|
+
readonly description: "How many repositories became `detached`.";
|
|
274
|
+
};
|
|
275
|
+
readonly ext: {
|
|
276
|
+
readonly $ref: "#/$defs/Ext";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly Ext: {
|
|
281
|
+
readonly title: "Ext";
|
|
282
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
283
|
+
readonly type: "object";
|
|
284
|
+
readonly minProperties: 1;
|
|
285
|
+
readonly additionalProperties: true;
|
|
286
|
+
readonly propertyNames: {
|
|
287
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly NamespaceId: {
|
|
291
|
+
readonly title: "NamespaceId";
|
|
292
|
+
readonly description: "The VTC's opaque identifier for a namespace, assigned when it is bound. Stable for the life of the binding; never reused for another binding.";
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
readonly minLength: 1;
|
|
295
|
+
readonly maxLength: 128;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/namespace/unbind/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAG1E;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,2CAA2C;IAC1D,SAAS,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;AAEjC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAE1D,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,2CAA2C,CAAC;AAEnE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CA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